* m68klinux-tdep.c (m68k_linux_init_abi): Register
[binutils-gdb.git] / gdb / ChangeLog
1 2012-03-08 Andreas Schwab <schwab@linux-m68k.org>
2
3 * m68klinux-tdep.c (m68k_linux_init_abi): Register
4 linux_get_siginfo_type.
5
6 * m68klinux-nat.c: Include "gdb_proc_service.h".
7 (PTRACE_GET_THREAD_AREA): Define.
8 (ps_get_thread_area): New function.
9
10 2012-03-08 Yao Qi <yao@codesourcery.com>
11
12 * remote.c (remote_get_noisy_reply): Replace `sprintf' with
13 `xsnprintf'.
14 (remote_query_attached): Likewise.
15 (remote_static_tracepoint_marker_at): Likewise.
16 (remote_set_permissions): Likewise.
17 (remote_detach_1, extended_remote_attach_1): Likewise.
18 (send_g_packet, remote_vkill): Likewise.
19 (extended_remote_disable_randomization): Likewise.
20 (remote_add_target_side_condition): Likewise.
21 (remote_insert_breakpoint): Likewise.
22 (remote_remove_breakpoint): Likewise.
23 (remote_insert_watchpoint): Likewise.
24 (remote_remove_watchpoint): Likewise.
25 (remote_insert_hw_breakpoint): Likewise.
26 (remote_insert_hw_breakpoint): Likewise.
27 (remote_remove_hw_breakpoint): Likewise.
28 (remote_download_command_source): Likewise.
29 (remote_download_tracepoint): Likewise.
30 (remote_download_trace_state_variable): Likewise.
31 (remote_disable_tracepoint): Likewise.
32 (remote_trace_set_readonly_regions): Likewise.
33 (remote_get_tracepoint_status): Likewise.
34 (remote_trace_find): Likewise.
35 (remote_get_trace_state_variable_value): Likewise.
36 (remote_set_disconnected_tracing): Likewise.
37 (remote_set_circular_trace_buffer): Likewise.
38 (remote_get_min_fast_tracepoint_insn_len): Likewise.
39 (remote_use_agent): Likewise.
40 (remote_add_target_side_condition): Add one parameter BUF_SIZE.
41 Update callers.
42
43 2012-03-07 Pedro Alves <palves@redhat.com>
44
45 * NEWS: Mention QProgramSignals.
46 * inferior.h (update_signals_program_target): Declare.
47 * infrun.c: (update_signals_program_target): New.
48 (handle_command): Update the target of the new program signals
49 array changes.
50 * remote.c (PACKET_QProgramSignals): New enum.
51 (last_program_signals_packet): New global.
52 (remote_program_signals): New.
53 (remote_start_remote): Update the target with the program signals
54 list.
55 (remote_protocol_features): Add entry for QPassSignals.
56 (remote_open_1): Free anc clear last_program_signals_packet.
57 (init_remote_ops): Install remote_program_signals.
58 * target.c (update_current_target): Adjust.
59 (target_program_signals): New.
60 * target.h (struct target_ops) <to_program_signals>: New field.
61 (target_program_signals): Declare.
62
63 2012-03-07 Pedro Alves <palves@redhat.com>
64
65 * NEWS: Add subtitle for new z0/z1 conditional breakpoint
66 extensions.
67
68 2012-03-07 Andreas Schwab <schwab@linux-m68k.org>
69
70 * m68klinux-nat.c (getregs_supplies): Make static.
71 (getfpregs_supplies): Likewise.
72 (have_ptrace_getregs): Likewise.
73
74 2012-03-06 Joel Brobecker <brobecker@adacore.com>
75
76 * dwarf2read.c (dwarf2_get_die_type): Pass absolute offset
77 in call to get_die_type_at_offset.
78
79 2012-03-06 Stan Shebs <stan@codesourcery.com>
80
81 * mi/mi-cmd-break.c: Enforce coding standards, fix comments.
82 * mi/mi-cmd-disas.c: Ditto.
83 * mi/mi-cmd-env.c: Ditto.
84 * mi/mi-cmd-file.c: Ditto.
85 * mi/mi-cmd-stack.c: Ditto.
86 * mi/mi-cmd-target.c: Ditto.
87 * mi/mi-cmd-var.c: Ditto.
88 * mi/mi-cmds.c: Ditto.
89 * mi/mi-cmds.h: Ditto.
90 * mi/mi-console.c: Ditto.
91 * mi/mi-getopt.c: Ditto.
92 * mi/mi-getopt.h: Ditto.
93 * mi/mi-interp.c: Ditto.
94 * mi/mi-main.c: Ditto.
95 * mi/mi-out.c: Ditto.
96 * mi/mi-parse.c: Ditto.
97 * mi/mi-parse.h: Ditto.
98 * mi/mi-symbol-cmds.c: Ditto.
99
100 * mi/mi-getopt.h: Move mi_opt struct up.
101 * mi/mi-main.c (captured_mi_execute_command): Remove redundant
102 return.
103 * mi/mi-out.c (_initialize_mi_out): Remove empty initialize.
104
105 2012-03-06 Tom Tromey <tromey@redhat.com>
106
107 * proc-service.c (ps_pglobal_lookup): Set the current program
108 space.
109
110 2012-03-06 Pedro Alves <palves@redhat.com>
111
112 * gregset.h [HAVE_SYS_PROCFS_H]: Include <sys/procfs.h>.
113
114 2012-03-05 Joel Brobecker <brobecker@adacore.com>
115
116 * MAINTAINERS: List Maciej W. Rozycki as the mips maintainer.
117
118 2012-03-05 Jan Kratochvil <jan.kratochvil@redhat.com>
119
120 Code cleanup.
121 * common/linux-osdata.c (linux_common_core_of_thread): New function
122 comment.
123 * linux-nat.c (linux_nat_wait_1): Replace linux_nat_core_of_thread_1
124 call by linux_common_core_of_thread.
125 (linux_nat_core_of_thread_1): Remove.
126 * linux-nat.h (linux_nat_core_of_thread_1): Remove declaration.
127 * linux-thread-db.c: Include linux-osdata.h.
128 (update_thread_core): Replace linux_nat_core_of_thread_1 call by
129 linux_common_core_of_thread.
130
131 2012-03-05 Tom Tromey <tromey@redhat.com>
132
133 * value.c (value_primitive_field): Don't fetch contents for
134 non-virtual bases.
135
136 2012-03-05 Tom Tromey <tromey@redhat.com>
137
138 * jv-valprint.c (java_value_print): Correctly compute 'obj_addr'.
139
140 2012-03-05 Joel Brobecker <brobecker@adacore.com>
141
142 From Andreas Arnez <arnez@linux.vnet.ibm.com>:
143 * s390-nat.c: Include "gregset.h".
144
145 2012-03-05 Jan Kratochvil <jan.kratochvil@redhat.com>
146
147 * libunwind-frame.c (LIBUNWIND_SO): Change .7 to .8.
148 [!LIBUNWIND_SO] (LIBUNWIND_SO_7): New #define.
149 (libunwind_load): New variable so_error, use it for dlerror. Try to
150 load also LIBUNWIND_SO_7.
151
152 2012-03-05 Pedro Alves <palves@redhat.com>
153
154 * i387-tdep.c (i387_supply_xsave): Assert the xsave section buffer
155 is not NULL, and remove resulting dead code.
156
157 2012-03-05 Thomas Schwinge <thomas@codesourcery.com>
158
159 * sh-tdep.c (sh_skip_prologue): Provide an upper limit on the function
160 prologue to sh_analyze_prologue.
161 (sh_analyze_prologue): Make better use of such an upper limit, and
162 generally be more cautious about accessing memory.
163
164 2012-03-05 Tom Tromey <tromey@redhat.com>
165
166 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Rename from
167 _initialize_ia64_hpux_tdep.
168
169 2012-03-05 Pedro Alves <palves@redhat.com>
170
171 PR gdb/13766
172
173 * i387-tdep.c (i387_supply_xsave): If we have an xsave buffer, and
174 the register state is clear, supply explicit zero, instead of
175 marking the register unavailable.
176
177 2012-03-05 Tristan Gingold <gingold@adacore.com>
178
179 * NEWS: Mention OpenVMS ia64 new target.
180
181 2012-03-05 Tristan Gingold <gingold@adacore.com>
182
183 * ia64-tdep.h: Include libunwind-frame.h and libunwind-ia64.h.
184 (ia64_unw_accessors, ia64_unw_rse_accessors)
185 (ia64_libunwind_descr): Declare.
186 * ia64-vms-tdep.c: New file.
187 * ia64-tdep.c (ia64_unw_accessors, ia64_unw_rse_accessors)
188 (ia64_libunwind_descr): Make them public.
189 * configure.tgt: Add ia64-*-*vms*.
190 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-vms-tdep.o
191 (ALLDEPFILES): Add ia64-vms-tdep.c
192
193 2012-03-05 Tristan Gingold <gingold@adacore.com>
194
195 * target.h (target_object): Add TARGET_OBJECT_OPENVMS_UIB.
196 * remote.c (PACKET_qXfer_uib): New enum value.
197 (remote_protocol_features): Add entry for PACKET_qXfer_uib.
198 (remote_xfer_partial): Handle TARGET_OBJECT_OPENVMS_UIB.
199 (_initialize_remote): Call add_packet_config_cmd for
200 xfer:uib packet.
201
202 2012-03-05 Tristan Gingold <gingold@adacore.com>
203
204 * osabi.c (gdb_osabi_names): Add OpenVMS.
205 (generic_elf_osabi_sniffer): Likewise.
206 * defs.h (gdb_osabi): Add GDB_OSABI_OPENVMS.
207
208 2012-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
209
210 Removed unused code.
211 * libunwind-frame.c (libunwind_frame_unwind)
212 (libunwind_frame_base_address): Remove.
213 * libunwind-frame.h (libunwind_frame_base_address): Remove declaration.
214
215 2012-03-04 Yao Qi <yao@codesourcery.com>
216
217 * common/agent.c (gdb_connect_sync_socket): Add _ markup and
218 remove trailing new line.
219 (agent_run_command, agent_run_command): Add _ markup.
220 (agent_capability_check): Likewise.
221
222 2012-03-03 Jan Kratochvil <jan.kratochvil@redhat.com>
223
224 * breakpoint.c (set_condition_evaluation_mode): Set
225 CONDITION_EVALUATION_MODE unconditionally.
226
227 2012-03-03 Yao Qi <yao@codesourcery.com>
228
229 * common/agent.c (agent_look_up_symbols): Add one parameter 'arg'.
230 * common/agent.h: Update declaration.
231 * inf-child.c (inf_child_use_agent): New.
232 (inf_child_can_use_agent): New.
233 (inf_child_target): Initialize fields `to_use_agent'
234 and `to_can_use_agent'.
235 * agent.c (agent_new_objfile): New.
236 (_initialize_agent): Add agent_new_objfile to new_objfile
237 observer.
238
239 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
240 New.
241 (linux_target_install_ops): Initialize field
242 `to_static_tracepoint_markers_by_strid'.
243 * remote.c (free_current_marker): Move it to ...
244 * tracepoint.c (free_current_marker): ... here. New.
245 (cleanup_target_stop): New.
246 * tracepoint.h: Declare free_current_marker.
247 * NEWS: Add one entry about `info static-tracepoint-marker'.
248
249 2012-03-03 Yao Qi <yao@codesourcery.com>
250
251 * common/agent.c (agent_loaded_p): New.
252 (agent_look_up_symbols): New global.
253 * common/agent.h: Declare agent_loaded_p.
254
255 2012-03-03 Yao Qi <yao@codesourcery.com>
256
257 * common/agent.c (struct ipa_sym_addresses) <addr_capability>: New.
258 (agent_capability_check, agent_capability_invalidate): New.
259 (symbol_list): New array element.
260 * common/agent.h (enum agent_capa): New.
261 * target.c (target_pre_inferior): Call agent_capability_invalidate.
262
263 2012-03-03 Yao Qi <yao@codesourcery.com>
264
265 * target.h (struct target_ops) <to_use_agent>: New field.
266 (struct target_ops) <to_can_use_agent>: New field.
267 (target_use_agent, target_can_use_agent): New macro.
268 * target.c (update_current_target): Update.
269 * remote.c: New enum `PACKET_QAgent'.
270 (remote_protocol_features): Add a new element.
271 (remote_use_agent, remote_can_use_agent): New.
272 (init_remote_ops): Initialize field `can_use_agent' with
273 remote_can_use_agent. Intiailize field `use_agent' with
274 remote_use_agent.
275 * common/agent.c (use_agent): New global.
276 * common/agent.h: Declare it.
277 * tracepoint.c (info_static_tracepoint_markers_command): Add
278 comment.
279 * Makefile.in (SFILES): Add common/agent.c and agent.c.
280 (COMMON_OBS): Add common/agent.o and agent.o
281 (common-agent.o): New rule.
282 * agent.c: New.
283
284 2012-03-03 Yao Qi <yao@codesourcery.com>
285
286 * common/agent.c: New.
287 * common/agent.h: New.
288 * configure.ac: Add `sys/socket.h' and `sys/un.h' to
289 AC_CHECK_HEADERS.
290 * configure, configh.in: Regenerated.
291
292 2012-03-02 Kevin Buettner <kevinb@redhat.com>
293
294 * sh-tdep.c (sh_frame_cache): Don't fetch the FPSCR register
295 unless it exists for this architecture.
296
297 2012-03-02 Joel Brobecker <brobecker@adacore.com>
298
299 * language.h (struct language_defn): New "method" la_read_var_value.
300 * findvar.c: #include "language.h".
301 (default_read_var_value): Renames read_var_value. Rewrite
302 function description.
303 (read_var_value): New function.
304 * value.h (default_read_var_value): Add prototype.
305 * ada-lang.c (ada_read_renaming_var_value, ada_read_var_value):
306 New functions.
307 (ada_language_defn): Add entry for la_read_var_value.
308 * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, language.c,
309 * m2-lang.c, objc-lang.c, opencl-lang.c, p-lang.c: Update
310 language_defn structures to add entry for new la_read_var_value
311 field.
312
313 2012-03-02 Tom Tromey <tromey@redhat.com>
314 Pedro Alves <palves@redhat.com>
315
316 PR breakpoints/13776:
317 * breakpoint.c (breakpoint_init_inferior): Delete step-resume
318 breakpoints.
319 (delete_longjmp_breakpoint_at_next_stop): New.
320 * breakpoint.h (delete_longjmp_breakpoint_at_next_stop): Declare.
321 * target.c (generic_mourn_inferior): Call mark_breakpoints_out
322 before deleting the inferior. Add comments.
323 * thread.c (clear_thread_inferior_resources): Don't delete lonjmp
324 breakpoints immediately, but only on next stop. Move that code
325 next to where we mark other breakpoints for deletion.
326
327 2012-03-02 Joel Brobecker <brobecker@adacore.com>
328
329 * mips-linux-nat.c (mips_linux_read_description): Add missing i18n
330 marker.
331 * mips-tdep.c (mips_linux_reg_names): Improve comment to avoid ARI
332 violation.
333
334 2012-03-02 Pedro Alves <palves@redhat.com>
335
336 * linux-thread-db.c (attach_thread): Avoid in_thread_list call.
337
338 2012-03-02 Ulrich Weigand <uweigand@de.ibm.com>
339
340 Fix -Wmissing-prototypes build.
341 * ppc-linux-nat.c (ppc_linux_get_hwcap): Make static.
342 * remote-sim.c (gdbsim_has_all_memory): Likewise.
343 (gdbsim_has_memory): Likewise.
344
345 2012-03-02 Yao Qi <yao@codesourcery.com>
346
347 Fix -Wmissing-prototypes build.
348 * charset.c (phony_iconv_open): Make static.
349 (phony_iconv_close, phony_iconv): Likewise.
350 * i386-linux-nat.c (_initialize_i386_linux_nat): New prototype.
351 * i386-windows-nat.c (_initialize_i386_windows_nat): New
352 prototype.
353 * mingw-hdep.c (_initialize_mingw_hdep): New prototype.
354 * ser-mingw.c (create_select_thread): Make static.
355 * windows-termcap.c (tgetent): New prototype.
356 (tgetnum, tgetflag, tgetstr, tputs, tgoto): Likewise.
357
358 2012-03-02 Zhang Yuanhui <asmwarrior@gmail.com>
359
360 Fix -Wmissing-prototypes build.
361 * windows-nat.c (dll_symbol_command, ctrl_c_handler): Make them static.
362 (_initialize_windows_nat, _initialize_check_for_gdb_ini)
363 (_initialize_loadable): New prototypes.
364
365 2012-03-02 Doug Evans <dje@google.com>
366
367 * dwarf2read.c (load_full_comp_unit): Remove unnecessary reading of
368 abbrev table, read_comp_unit will do it.
369
370 2012-03-02 Jan Kratochvil <jan.kratochvil@redhat.com>
371
372 Fix -Wmissing-prototypes build.
373 * alpha-tdep.c (alpha_deal_with_atomic_sequence): Make it static.
374 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): New prototype.
375 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Likewise.
376 * arm-symbian-tdep.c (arm_symbian_skip_trampoline_code): Make it static.
377 (_initialize_arm_symbian_tdep): New prototype.
378 * arm-wince-tdep.c (arm_wince_skip_main_prologue): Make it static.
379 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): New prototype.
380 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Make it
381 static.
382 * lm32-tdep.c (_initialize_lm32_tdep): New prototype.
383 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): New
384 prototype.
385 * microblaze-tdep.c (microblaze_debug, microblaze_fetch_instruction)
386 (microblaze_skip_prologue, microblaze_frame_cache): Make them static.
387 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Make it
388 static.
389 * moxie-tdep.c (moxie_process_record): Likewise.
390 * remote-mips.c (mips_can_use_watchpoint, mips_insert_watchpoint)
391 (mips_remove_watchpoint, mips_stopped_by_watchpoint): Make them static.
392 * rl78-tdep.c (rl78_breakpoint_from_pc): Make it static.
393 (_initialize_rl78_tdep): New prototype.
394 * rx-tdep.c (rx_breakpoint_from_pc): Make it static.
395 (_initialize_rx_tdep): New prototype.
396 * solib-darwin.c (darwin_in_dynsym_resolve_code): Make it static.
397 (_initialize_darwin_solib): New prototype.
398 * solib-spu.c: Include solib-spu.h.
399 (_initialize_spu_solib): New prototype.
400 * spu-multiarch.c (_initialize_spu_multiarch): New prototype.
401 * tic6x-tdep.c (tic6x_analyze_prologue, tic6x_skip_prologue)
402 (tic6x_breakpoint_from_pc, tic6x_frame_unwind_cache)
403 (tic6x_software_single_step): Make it static.
404 (_initialize_tic6x_tdep): New prototype.
405
406 2012-03-02 Jan Kratochvil <jan.kratochvil@redhat.com>
407
408 Fix -Wmissing-prototypes build.
409 * cris-tdep.c (cris_can_use_hardware_watchpoint)
410 (cris_region_ok_for_watchpoint, cris_stopped_data_address): Remove.
411
412 2012-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
413
414 Fix -Wmissing-prototypes build.
415 * frv-tdep.c (frv_check_watch_resources, frv_stopped_data_address)
416 (frv_have_stopped_data_address): Remove.
417
418 2012-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
419
420 Fix -Wmissing-prototypes build.
421 * Makefile.in (HFILES_NO_SRCDIR): Add sh64-tdep.h.
422 * sh-tdep.c: Include sh64-tdep.h.
423 * sh-tdep.h (sh64_gdbarch_init, sh64_show_regs): Remove declarations.
424 * sh64-tdep.c: Include sh64-tdep.h.
425 * sh64-tdep.h: New file.
426
427 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
428
429 * mips-tdep.c (mips32_scan_prologue): Correct indentation.
430
431 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
432
433 * mips-tdep.c (mips_gdbarch_init): Only set pc_regnum and
434 sp_regnum once the gdbarch_init_osabi hook has been called.
435
436 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
437
438 * mips-tdep.c (mips32_bc1_pc): New function.
439 (mips32_next_pc): Handle BC1ANY2F, BC1ANY2T, BC1ANY4F, BC1ANY4T,
440 BPOSGE32 and BPOSGE64 instructions.
441 (deal_with_atomic_sequence): Likewise.
442 (mips32_instruction_has_delay_slot): Likewise.
443
444 2012-03-01 Maciej W. Rozycki <macro@mips.com>
445 Chris Dearman <chris@mips.com>
446 Maciej W. Rozycki <macro@codesourcery.com>
447 Joseph Myers <joseph@codesourcery.com>
448
449 * features/mips-dsp.xml: New file.
450 * features/mips64-dsp.xml: New file.
451 * features/mips-dsp-linux.xml: New file.
452 * features/mips64-dsp-linux.xml: New file.
453 * features/Makefile (WHICH): Add mips-dsp-linux and
454 mips64-dsp-linux.
455 (mips-dsp-expedite, mips64-dsp-expedite): New variables.
456 * features/mips-dsp-linux.c: New file.
457 * features/mips64-dsp-linux.c: New file.
458 * regformats/mips-dsp-linux.dat: New file.
459 * regformats/mips64-dsp-linux.dat: New file.
460 * mips-linux-nat.c (mips_linux_register_addr): Handle DSP
461 registers.
462 (mips64_linux_register_addr): Likewise.
463 (mips64_linux_regsets_fetch_registers): Likewise.
464 (mips64_linux_regsets_store_registers): Likewise.
465 (mips64_linux_fetch_registers): Update call to
466 mips64_linux_regsets_fetch_registers.
467 (mips64_linux_store_registers): Update call to
468 mips64_linux_regsets_store_registers.
469 (mips_linux_read_description): Probe for DSP registers.
470 (_initialize_mips_linux_nat): Call initialize_tdesc_mips_dsp_linux
471 and initialize_tdesc_mips64_dsp_linux.
472 * mips-linux-tdep.c (supply_gregset, mips64_supply_gregset):
473 Remove padding of no longer used embedded register slots.
474 * mips-linux-tdep.h (DSP_BASE, DSP_CONTROL): New macros.
475 (MIPS_RESTART_REGNUM): Redefine enum value.
476 * mips-tdep.c (mips_generic_reg_names): Remove trailing null
477 strings.
478 (mips_tx39_reg_names): Likewise.
479 (mips_linux_reg_names): New array of register names for Linux
480 targets.
481 (mips_register_name): Check for a null pointer in
482 mips_processor_reg_names and return an empty string.
483 (mips_register_type): Exclude embedded registers for the IRIX
484 and Linux ABIs.
485 (mips_pseudo_register_type): Likewise. Use dynamic numbers to
486 refer to FP registers, LO, HI, BadVAddr, Cause and PC. Handle
487 DSP registers.
488 (mips_stab_reg_to_regnum): Handle DSP accumulators.
489 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Likewise.
490 (mips_gdbarch_init): Likewise. Initialize internal register
491 indices for the Linux ABI. Use dynamic numbers to refer to
492 registers, as applicable, while parsing the target description.
493 * mips-tdep.h (struct mips_regnum): Add dspacc/dspctl offsets.
494
495 2012-03-01 Joel Brobecker <brobecker@adacore.com>
496
497 * frame.h (read_frame_register_unsigned): Fix typo in function
498 description.
499
500 2012-03-01 Pedro Alves <palves@redhat.com>
501
502 * jit-reader.in [!__cplusplus]
503 (GDB_DECLARE_GPL_COMPATIBLE_READER): Add missing backslash.
504
505 2012-03-01 Pedro Alves <palves@redhat.com>
506
507 * configure.ac (build_warnings): Add -Wmissing-prototypes.
508 * configure: Regenerate.
509
510 2012-03-01 Pedro Alves <palves@redhat.com>
511
512 * amd64-linux-tdep.c (amd64_linux_record_signal): Make static.
513 * breakpoint.c (create_exception_master_breakpoint, trace_command)
514 (ftrace_command, strace_command): Make static.
515 * d-lang.c (_initialize_d_language): Declare.
516 * dwarf2expr.c (_initialize_dwarf2expr): Declare.
517 * dwarf2loc.c (_initialize_dwarf2loc):
518 * dwarf2read.c (process_psymtab_comp_unit): Make static.
519 * exec.c (exec_get_section_table): Make static.
520 * i386-linux-tdep.c (i386_linux_record_signal): Make static.
521 * infcmd.c (ensure_valid_thread, ensure_not_tfind_mode): Make static.
522 * inferior.c (remove_inferior_command, add_inferior_command)
523 (clone_inferior_command): Make static.
524 * linux-nat.c (linux_nat_thread_address_space)
525 (linux_nat_core_of_thread): Make static.
526 * linux-tdep.c (_initialize_linux_tdep): Declare.
527 * objc-lang.c (_initialize_objc_lang): Declare.
528 * opencl-lang.c (builtin_opencl_type, opencl_language_arch_info):
529 Make static.
530 (_initialize_opencl_language): Declare.
531 * record.c (_initialize_record): Declare.
532 * remote.c (demand_private_info, remote_get_tib_address)
533 (remote_supports_cond_tracepoints)
534 (remote_supports_fast_tracepoints, remote_get_tracepoint_status):
535 Make static.
536 * skip.c (_initialize_step_skip): Declare.
537 * symtab.c (skip_prologue_using_lineinfo): Make static.
538 * tracepoint.c (delete_trace_state_variable)
539 (trace_variable_command, delete_trace_variable_command)
540 (get_uploaded_tsv, find_matching_tracepoint_location)
541 (find_matching_tsv, create_tsv_from_upload, get_traceframe_info):
542 Make static.
543 * value.c (pack_unsigned_long): Make static.
544 * varobj.c (varobj_ensure_python_env): Make static.
545 * windows-tdep.c (_initialize_windows_tdep): Declare.
546 * xml-syscall.c (make_cleanup_free_syscalls_info): Make static.
547
548 2012-03-01 Pedro Alves <palves@redhat.com>
549
550 * linux-tdep.c (linux_has_shared_address_space): Make static. Add
551 gdbarch parameter.
552 (linux_init_abi): Install it as has_shared_address_space gdbarch
553 callback.
554
555 2012-03-01 Pedro Alves <palves@redhat.com>
556
557 * observer.c (observer_test_first_notification_function)
558 (observer_test_second_notification_function)
559 (observer_test_third_notification_function): Add declarations.
560
561 2012-03-01 Pedro Alves <palves@redhat.com>
562
563 * common/signals.c (default_target_signal_to_host)
564 (default_target_signal_from_host): Move ...
565 * arch-utils.c: ... here.
566 * arch-utils.h (default_target_signal_to_host)
567 (default_target_signal_from_host): Declare.
568
569 * common/signals.c (target_signal_from_command): Move ...
570 * infrun.c: ... here.
571 * inferior.h (target_signal_from_command): Declare.
572 * target.h (target_signal_from_command)
573 (default_target_signal_from_host, default_target_signal_to_host):
574 Delete declarations.
575
576 * common/signals.c (_initialize_signals): Delete.
577
578 2012-03-01 Pedro Alves <palves@redhat.com>
579
580 * jit-reader.in (plugin_is_GPL_compatible): Add declarations for
581 both __cplusplus and !__cplusplus.
582
583 2012-03-01 Pedro Alves <palves@redhat.com>
584
585 * psymtab.c (find_and_open_source): Delete declaration.
586 * source.c (find_and_open_source): Move comment ...
587 * source.h (find_and_open_source): ... to this new declaration.
588
589 2012-03-01 Pedro Alves <palves@redhat.com>
590
591 * inline-frame.c: Include inline-frame.h.
592
593 2012-03-01 Pedro Alves <palves@redhat.com>
594
595 * tui/tui-data.c (set_gen_win_origin): Delete.
596 * tui/tui-data.h (tui_set_gen_win_origin): Delete declaration.
597 * tui/tui-regs.c (tui_last_reg_element_no_in_line): Delete.
598
599 2012-03-01 Pedro Alves <palves@redhat.com>
600
601 * remote.c (encode_actions): Delete declaration.
602 * tracepoint.c (encode_actions): Make extern.
603 * tracepoint.h (encode_actions): Declare.
604
605 2012-03-01 Pedro Alves <palves@redhat.com>
606
607 * python/py-breakpoint.c: Include python.h.
608 * python/py-continueevent.c (create_continue_event_object): Make
609 static.
610 * python/py-lazy-string.c (stpy_get_type): Make static.
611 * python/py-newobjfileevent.c (create_new_objfile_event_object):
612 Make static.
613 * python/py-utils.c (unicode_to_target_python_string): Make
614 static.
615 * python/py-value.c: Include python.h.
616
617 2012-03-01 Pedro Alves <palves@redhat.com>
618
619 * inferior.c (delete_threads_of_inferior): Delete.
620
621 2012-03-01 Pedro Alves <palves@redhat.com>
622
623 Import fallback definitions from glibc.
624
625 * gdb_proc_service.h [!HAVE_PROC_SERVICE_H] (struct
626 ps_prochandle): Forward declare.
627 (ps_err_e): Use glibc's comments.
628 [!HAVE_PROC_SERVICE_H] (ps_pdread, ps_pdwrite, ps_ptread)
629 (ps_ptwrite, ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
630 (ps_lsetfpregs, ps_getpid, ps_get_thread_area, ps_pglobal_lookup)
631 (ps_pstop, ps_pcontinue, ps_lstop, ps_lcontinue, ps_lgetxregsize)
632 (ps_lgetxregs, ps_lsetxregs, ps_plog): Declare.
633 (struct ps_prochandle): Adjust comment.
634
635 2012-03-01 Pedro Alves <palves@redhat.com>
636
637 * ada-lang.c (ada_modulus_from_name): Delete.
638 * ada-lex.l (lexer_init): Make static.
639
640 2012-03-01 Pedro Alves <palves@redhat.com>
641
642 PR gdb/13767
643
644 * frame.c (read_frame_register_unsigned): New.
645 * frame.h (read_frame_register_unsigned): Declare.
646 * i387-tdep.c (print_i387_status_word): New parameter `status_p'.
647 Handle it.
648 (print_i387_control_word): New parameter `control_p'. Handle it.
649 (i387_print_float_info): Handle unavailable float registers.
650
651 2012-03-01 Keith Seitz <keiths@redhat.com>
652
653 * linespec.c (decode_line_2): Sort the list of methods
654 alphabetically before presenting the user with a selection
655 menu.
656
657 2012-03-01 Doug Evans <dje@google.com>
658
659 * dwarf2read.c (dwarf2_cu): Remove unused members has_form_ref_addr,
660 has_namespace_info.
661 (dwarf2_read_abbrevs): Remove corresponding initialization.
662
663 2012-03-01 Scott J. Goldman <scottjg@vmware.com>
664
665 * NEWS: Mention new python command class gdb.COMMAND_USER.
666 * cli/cli-cmds.c (show_user): Print error when used on a python
667 command.
668 (init_cli_cmds): Update documentation strings for "show user" and
669 "set/show max-user-call-depth" to clarify that it does not apply to
670 python commands.
671 * python/py-cmd.c (cmdpy_init): Treat class_user as a valid class in
672 error check.
673 (gdbpy_initialize_commands): Add COMMAND_USER as a constant in
674 gdb python api.
675 * top.c (execute_command): Only execute a user-defined command as a
676 legacy macro if c->user_commands is set.
677
678 2012-03-01 Tom Tromey <tromey@redhat.com>
679
680 * valprint.h (struct generic_val_print_decorations): New.
681 (generic_val_print): Declare.
682 * valprint.c (generic_val_print): New function.
683 * p-valprint.c (p_decorations): New global.
684 (pascal_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM,
685 TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_RANGE, TYPE_CODE_INT,
686 TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ERROR, TYPE_CODE_UNDEF,
687 TYPE_CODE_BOOL, TYPE_CODE_CHAR>: Call generic_val_print.
688 * m2-valprint.c (m2_decorations): New global.
689 (m2_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM, TYPE_CODE_FUNC,
690 TYPE_CODE_BOOL, TYPE_CODE_RANGE, TYPE_CODE_INT, TYPE_CODE_CHAR,
691 TYPE_CODE_FLT, TYPE_CODE_METHOD, TYPE_CODE_VOID, TYPE_CODE_UNDEF,
692 TYPE_CODE_ERROR>: Call generic_val_print.
693 * f-valprint.c (f_decorations): New global.
694 (f_val_print): Use print_function_pointer_address.
695 <TYPE_CODE_REF, TYPE_CODE_FUNC, TYPE_CODE_CHAR, TYPE_CODE_FLAGS,
696 TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ENUM, TYPE_CODE_RANGE,
697 TYPE_CODE_BOOL, TYPE_CODE_COMPLEX, TYPE_CODE_UNDEF>: Call
698 generic_val_print.
699 * c-valprint.c (c_decorations): New global.
700 (c_val_print) <TYPE_CODE_MEMBERPTR, TYPE_CODE_REF, TYPE_CODE_ENUM,
701 TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_METHOD, TYPE_CODE_BOOL,
702 TYPE_CODE_RANGE, TYPE_CODE_CHAR, TYPE_CODE_FLT,
703 TYPE_CODE_DECFLOAT, TYPE_CODE_VOID, TYPE_CODE_ERROR,
704 TYPE_CODE_UNDEF, TYPE_CODE_COMPLEX>: Call generic_val_print.
705 * ada-valprint.c (ada_val_print_1) <TYPE_CODE_FLAGS>: Remove
706 case.
707
708 2012-03-01 Tom Tromey <tromey@redhat.com>
709
710 * valprint.c (val_print): Update.
711 * p-valprint (pascal_val_print): Return void.
712 * p-lang.h (pascal_val_print): Return void.
713 * m2-valprint.c (m2_val_print): Return void.
714 * m2-lang.h (m2_val_print): Return void.
715 * language.h (struct language_defn) <la_val_print>: Return void.
716 * language.c (unk_lang_val_print): Return void.
717 * jv-valprint.c (java_val_print): Return void.
718 * jv-lang.h (java_val_print): Return void.
719 * f-valprint.c (f_val_print): Return void.
720 * f-lang.h (f_val_print): Return void.
721 * d-valprint.c (d_val_print): Return void.
722 (dynamic_array_type): Update.
723 * d-lang.h (d_val_print): Return void.
724 * c-valprint.c (c_val_print): Return void.
725 * c-lang.h (c_val_print): Return void.
726 * ada-valprint.c (ada_vada_val_print, ada_val_print_1): Return
727 void.
728 * ada-lang.h (ada_val_print): Return void.
729
730 2012-03-01 Tom Tromey <tromey@redhat.com>
731
732 * value.h (val_print): Return void.
733 * valprint.c (val_print): Return void.
734
735 2012-03-01 Tom Tromey <tromey@redhat.com>
736
737 * value.h (common_val_print): Return void.
738 * valprint.c (common_val_print): Return void.
739
740 2012-03-01 Tom Tromey <tromey@redhat.com>
741
742 * value.h (value_print): Return void.
743 * valprint.c (value_print): Return void.
744 * p-valprint.c (pascal_value_print): Return void.
745 * p-lang.h (pascal_value_print): Return void.
746 * language.h (struct language_defn) <la_value_print>: Return
747 void.
748 * language.c (unk_lang_value_print): Return void.
749 * jv-valprint.c (java_value_print): Return void.
750 * jv-lang.h (java_value_print): Return void.
751 * f-valprint.c (c_value_print): Don't declare.
752 Include c-lang.h.
753 * c-valprint.c (c_value_print): Return void.
754 * c-lang.h (c_value_print): Return void.
755 * ada-valprint.c (ada_value_print): Return void.
756 * ada-lang.h (ada_value_print): Return void.
757
758 2012-03-01 Tom Tromey <tromey@redhat.com>
759
760 * value.c (value_primitive_field): Handle virtual base classes.
761
762 2012-03-01 Tom Tromey <tromey@redhat.com>
763
764 * gdbtypes.h (struct vbase): Remove.
765
766 2012-03-01 Tom Tromey <tromey@redhat.com>
767
768 * c-valprint.c (print_function_pointer_address): Move...
769 * valprint.c: ... here. Make non-static.
770 * m2-valprint.c (print_function_pointer_address): Remove.
771 * valprint.h (print_function_pointer_address): Declare.
772
773 2012-03-01 Joel Brobecker <brobecker@adacore.com>
774
775 * NEWS: Document the fact that one can provide a condition when
776 creating an Ada exception catchpoint.
777
778 2012-03-01 Tom Tromey <tromey@redhat.com>
779
780 * valprint.c (val_print_type_code_flags): Fix placement of
781 trailing brace.
782
783 2012-03-01 Joel Brobecker <brobecker@adacore.com>
784
785 * copyright.py (MULTILINE_COMMENT_PREFIXES): Delete.
786 (update_files): Do not set MULTILINE_COMMENT_PREFIXES
787 environment variable before calling update-copyright.
788
789 2012-03-01 Joel Brobecker <brobecker@adacore.com>
790
791 * gnulib/extra/update-copyright: Update to the latest from
792 gnulib's git repository.
793 * copyright.py: Set UPDATE_COPYRIGHT_USE_INTERVALS environment
794 variable to 2 instead of 1.
795
796 2012-02-29 Joel Brobecker <brobecker@adacore.com>
797
798 * varobj.c (c_value_of_variable): Remove dead code.
799
800 2012-02-29 Joel Brobecker <brobecker@adacore.com>
801
802 * ada-lex.p (processId): Do not modify already encoded IDs.
803 Update function documentation.
804
805 2012-02-29 Joel Brobecker <brobecker@adacore.com>
806
807 * ada-lang.h (ada_find_renaming_symbol): Replace parameter
808 "name" with "struct symbol *name_sym".
809 * ada-exp.y (write_var_or_type): Update call to
810 ada_find_renaming_symbol.
811 "name" with "struct symbol *name_sym". Adjust Implementation
812 accordingly. Adjust the function documentation.
813
814 2012-02-29 Joel Brobecker <brobecker@adacore.com>
815
816 * ada-lang.h (ada_find_any_symbol, ada_find_any_type): Delete.
817 * ada-lang.c (ada_find_any_type): Add advance declaration.
818 Make static. Replace ada_find_any_symbol by
819 ada_find_any_type_symbol.
820 (ada_find_any_type_symbol): Renames ada_find_any_symbol.
821 Improve function description. Make static.
822 (ada_find_renaming_symbol, find_old_style_renaming_symbol):
823 Replace ada_find_any_symbol by ada_find_any_type_symbol.
824
825 2012-02-29 Joel Brobecker <brobecker@adacore.com>
826
827 * ada-lang.c (struct tag_args): Delete.
828 (ada_get_tsd_type): Function body moved up in source file.
829 (ada_tag_name_1, ada_tag_name_2): Delete.
830 (ada_get_tsd_from_tag): New function.
831 (ada_tag_name_from_tsd): New function.
832 (ada_tag_name): Use a TRY_CATCH block instead of catch_errors
833 to determine the tag name.
834
835 2012-02-29 Joel Brobecker <brobecker@adacore.com>
836
837 * ada-lang.h (ada_get_decoded_value, ada_get_decoded_type): Add
838 declaration.
839 * ada-lang.c (ada_get_decoded_value, ada_get_decoded_type): New
840 function.
841
842 2012-02-29 Joel Brobecker <brobecker@adacore.com>
843
844 * ada-lang.c (ada_is_ignored_field): Rewrite wrong comment.
845
846 2012-02-29 Joel Brobecker <brobecker@adacore.com>
847
848 * ada-lang.c (ada_lookup_symbol_list): Only cache the result of
849 full searches.
850
851 2012-02-29 Joel Brobecker <brobecker@adacore.com>
852
853 * ada-lang.c (constrained_packed_array_type): If there is a
854 parallel XA type, use it to determine the array index type.
855
856 2012-02-29 Joel Brobecker <brobecker@adacore.com>
857
858 * ada-valprint.c (ada_val_print_1): If our value is a reference
859 to an array descriptor, dereference it before converting it
860 to a simple array.
861
862 2012-02-29 Joel Brobecker <brobecker@adacore.com>
863
864 * ada-lang.c (ada_to_fixed_value): Call unwrap_value before
865 creating fixed value.
866 (ada_value_ind, ada_coerce_ref, assign_component)
867 (ada_evaluate_subexp): Remove call to unwrap_value before
868 call to ada_to_fixed_value.
869
870 2012-02-29 Joel Brobecker <brobecker@adacore.com>
871
872 * ada-lang.c (to_fixed_array_type): Set result's type name.
873
874 2012-02-29 Joel Brobecker <brobecker@adacore.com>
875
876 * ada-lang.c (catch_ada_exception_command_split): Add new
877 argument cond_string. Add support for condition at end of
878 "catch exception" commands.
879 (ada_decode_exception_location): Add new argument cond_string.
880 Update call to catch_ada_exception_command_split.
881 (create_ada_exception_catchpoint): Add new argument cond_string.
882 Set the breakpoint condition if needed.
883 (catch_ada_exception_command): Update call to
884 ada_decode_exception_location.
885 (ada_decode_assert_location): Add function documentation.
886 Add support for condition at end of "catch assert" command.
887 (catch_assert_command): Update calls to ada_decode_assert_location
888 and create_ada_exception_catchpoint.
889
890 2012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
891
892 Fix disp-step-syscall.exp: fork: single step over fork.
893 * i386-linux-tdep.c (-i386_linux_get_syscall_number): Rename to ...
894 (i386_linux_get_syscall_number_from_regcache): ... here, new function
895 comment, change parameters gdbarch and ptid to regcache. Remove
896 parameter regcache, initialize gdbarch from regcache here.
897 (i386_linux_get_syscall_number, i386_linux_displaced_step_copy_insn):
898 New functions.
899 (i386_linux_init_abi): Install i386_linux_displaced_step_copy_insn
900 instead.
901 * i386-tdep.c (i386_syscall_p): Check also for 'sysenter' and
902 'syscall'. Make the 'int' check more strict.
903
904 2012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
905
906 Fix reverse mode for syscall on AMD CPUs in 32-bit mode.
907 * i386-linux-tdep.c (i386_linux_intx80_sysenter_record): Rename to ...
908 (i386_linux_intx80_sysenter_syscall_record): ... here.
909 (i386_linux_init_abi): Initialize also I386_SYSCALL_RECORD.
910 Use the renamed function name.
911
912 2012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
913
914 * arm-linux-tdep.c (arm_linux_copy_svc): Reset stale FRAME.
915 * breakpoint.c (until_break_command): Likewise.
916 * elfread.c (elf_gnu_ifunc_resolver_stop): Likewise.
917 * infcall.c (call_function_by_hand): Likewise.
918 * infcmd.c (finish_forward): Likewise.
919 * infrun.c (insert_exception_resume_breakpoint): Likewise.
920
921 2012-02-28 Joel Brobecker <brobecker@adacore.com>
922
923 From Tristan Gingold <gingold@adacore.com>.
924 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Rework code to
925 avoid variable assignments inside condition.
926
927 2012-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
928
929 Fix static analysis issue found by cppcheck.
930 * microblaze-tdep.c (microblaze_extract_return_value): Fix
931 uninitialized BUF for size 2.
932
933 2012-02-27 Chris Dearman <chris@mips.com>
934 Nathan Froyd <froydnj@codesourcery.com>
935 Maciej W. Rozycki <macro@codesourcery.com>
936
937 * mips-tdep.c (mips32_instruction_has_delay_slot): New function.
938 (mips16_instruction_has_delay_slot): Likewise.
939 (mips_segment_boundary): Likewise.
940 (mips_adjust_breakpoint_address): Likewise.
941 (mips_gdbarch_init): Use mips_adjust_breakpoint_address.
942
943 2012-02-27 Maciej W. Rozycki <macro@mips.com>
944 Maciej W. Rozycki <macro@codesourcery.com>
945
946 * infrun.c (handle_inferior_event): Don't proceed through
947 shared library trampolines if stepping at the machine
948 instruction level.
949
950 2012-02-27 Maciej W. Rozycki <macro@codesourcery.com>
951
952 * mips-linux-tdep.c (mips_linux_init_abi): Set num_pseudo_regs
953 too.
954
955 2012-02-27 Thomas Schwinge <thomas@codesourcery.com>
956
957 * sh-tdep.c (sh_make_stub_cache, sh_stub_this_id)
958 (sh_stub_unwind_sniffer): New functions.
959 (sh_stub_unwind): New variable.
960 (sh_gdbarch_init): Wire everything.
961
962 2012-02-27 Pedro Alves <palves@redhat.com>
963
964 * linux-nat.c (pid_is_stopped): Delete, moved to common/.
965 (linux_nat_post_attach_wait): Adjust to use
966 linux_proc_pid_is_stopped.
967 * common/linux-procfs.h (linux_proc_pid_is_stopped): Declare.
968 * common/linux-procfs.c (linux_proc_pid_is_stopped): New function,
969 based on pid_is_stopped from both linux-nat.c and
970 gdbserver/linux-low.c, and renamed.
971
972 2012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
973
974 * remote.c (remote_watchpoint_addr_within_range): New function.
975 (init_remote_ops): Use it.
976
977 2012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
978
979 * target.h (target_watchpoint_addr_within_range): Document macro.
980
981 2012-02-24 Pedro Alves <palves@redhat.com>
982
983 * stack.c (set_last_displayed_sal): Issue internal_error instead
984 of warning, and issue it after clearing the last displayed sal.
985
986 2012-02-24 Jan Kratochvil <jan.kratochvil@redhat.com>
987 Pedro Alves <palves@redhat.com>
988
989 * breakpoint.c (until_break_command): Install breakpoints after
990 all frame manipulations.
991
992 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
993
994 * remote.c (remote_supports_cond_breakpoints): New forward
995 declaration.
996 (remote_add_target_side_condition): New function.
997 (remote_insert_breakpoint): Add target-side breakpoint
998 conditional if supported.
999 (remote_insert_hw_breakpoint): Likewise.
1000 (init_remote_ops): Set to_supports_evaluation_of_breakpoint_conditions
1001 hook.
1002
1003 * target.c (update_current_target): Inherit
1004 to_supports_evaluation_of_breakpoint_conditions.
1005 Default to_supports_evaluation_of_breakpoint_conditions to return_zero.
1006
1007 * target.h (struct target_ops)
1008 <to_supports_evaluation_of_breakpoint_conditions>: New field.
1009 (target_supports_evaluation_of_breakpoint_conditions): New #define.
1010
1011 * breakpoint.c (get_first_locp_gte_addr): New forward declaration.
1012 (condition_evaluation_both, condition_evaluation_auto,
1013 condition_evaluation_host, condition_evaluation_target,
1014 condition_evaluation_enums, condition_evaluation_mode_1,
1015 condition_evaluation_mode): New static globals.
1016 (translate_condition_evaluation_mode): New function.
1017 (breakpoint_condition_evaluation_mode): New function.
1018 (gdb_evaluates_breakpoint_condition_p): New function.
1019 (ALL_BP_LOCATIONS_AT_ADDR): New helper macro.
1020 (mark_breakpoint_modified): New function.
1021 (mark_breakpoint_location_modified): New function.
1022 (set_condition_evaluation_mode): New function.
1023 (show_condition_evaluation_mode): New function.
1024 (bp_location_compare_addrs): New function.
1025 (get_first_location_gte_addr): New helper function.
1026 (set_breakpoint_condition): Free condition bytecode if locations
1027 has become unconditional. Call mark_breakpoint_modified (...).
1028 (condition_command): Call update_global_location_list (1) for
1029 breakpoints.
1030 (breakpoint_xfer_memory): Use is_breakpoint (...).
1031 (is_breakpoint): New function.
1032 (parse_cond_to_aexpr): New function.
1033 (build_target_condition_list): New function.
1034 (insert_bp_location): Handle target-side conditional
1035 breakpoints and call build_target_condition_list (...).
1036 (update_inserted_breakpoint_locations): New function.
1037 (insert_breakpoint_locations): Handle target-side conditional
1038 breakpoints.
1039 (bpstat_check_breakpoint_conditions): Add comment.
1040 (bp_condition_evaluator): New function.
1041 (bp_location_condition_evaluator): New function.
1042 (print_breakpoint_location): Print information on where the condition
1043 will be evaluated.
1044 (print_one_breakpoint_location): Likewise.
1045 (init_bp_location): Call mark_breakpoint_location_modified (...) for
1046 breakpoint location.
1047 (force_breakpoint_reinsertion): New functions.
1048 (update_global_location_list): Handle target-side breakpoint
1049 conditions.
1050 Reinsert locations that are already inserted if conditions have
1051 changed.
1052 (bp_location_dtor): Free agent expression bytecode.
1053 (disable_breakpoint): Call mark_breakpoint_modified (...).
1054 Call update_global_location_list (...) with parameter 1 for breakpoints.
1055 (disable_command): Call mark_breakpoint_location_modified (...).
1056 Call update_global_location_list (...) with parameter 1 for breakpoints.
1057 (enable_breakpoint_disp): Call mark_breakpoint_modified (...).
1058 (enable_command): mark_breakpoint_location_modified (...).
1059 (_initialize_breakpoint): Update documentation and add
1060 condition-evaluation breakpoint subcommand.
1061
1062 * breakpoint.h: Include ax.h.
1063 (condition_list): New data structure.
1064 (condition_status): New enum.
1065 (bp_target_info) <cond_list>: New field.
1066 (bp_location) <condition_changed, cond_bytecode>: New fields.
1067 (is_breakpoint): New prototype.
1068
1069 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
1070
1071 * remote.c (remote_state) <cond_breakpoints>: New field.
1072 (PACKET_ConditionalBreakpoints): New enum.
1073 (remote_cond_breakpoint_feature): New function.
1074 (remote_protocol_features): Add new ConditionalBreakpoints entry.
1075 (remote_supports_cond_breakpoints): New function.
1076 (_initialize_remote): Add new packet configuration for
1077 target-side conditional breakpoints.
1078
1079 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
1080
1081 * NEWS: Mention target-side conditional breakpoint support,
1082 new condition-evaluation breakpoint subcommand and remote
1083 packet extensions.
1084
1085 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
1086
1087 * breakpoint.c (bp_location_compare): Sort by pspace before sorting by
1088 number.
1089
1090 2012-02-24 Thomas Schwinge <thomas@codesourcery.com>
1091
1092 * sh-tdep.c (sh_skip_prologue): Use skip_prologue_using_sal.
1093 (after_prologue): Remove.
1094
1095 2012-02-23 Tom Tromey <tromey@redhat.com>
1096
1097 * jv-valprint.c (java_val_print): Remove dead code.
1098
1099 2012-02-23 Tristan Gingold <gingold@adacore.com>
1100
1101 * ada-tasks.c (struct ada_tasks_inferior_data): Add
1102 known_tasks_element and known_tasks_length fields.
1103 (read_known_tasks_array): Change argument type. Use pointer type
1104 and number of elements from DATA. Adjust.
1105 (read_known_tasks_list): Likewise.
1106 (get_known_tasks_addr): Remove.
1107 (ada_set_current_inferior_known_tasks_addr): Renamed to ...
1108 (ada_tasks_inferior_data_sniffer): ... this. Use symtab for element
1109 type and array length. Merge former get_known_tasks_addr code.
1110
1111 2012-02-23 Jan Kratochvil <jan.kratochvil@redhat.com>
1112
1113 PR backtrace/13716
1114 * infcmd.c (finish_forward): New variable frame_id, initialize it, use
1115 it after set_momentary_breakpoint.
1116
1117 2012-02-22 Sterling Augustine <saugustine@google.com>
1118
1119 PR 13689:
1120 * breakpoint.c (watchpoint_exp_is_constant): Add UNOP_CAST to switch.
1121
1122 2012-02-22 Gary Benson <gbenson@redhat.com>
1123
1124 * dwarf2read.c (dwarf2_read_index): Correct misspelling.
1125 (find_slot_in_mapped_hash): Likewise.
1126
1127 2012-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
1128
1129 PR build/13638
1130 * configure.ac (MAKEINFO): Replace AC_CHECK_PROG by AC_ARG_VAR.
1131 (MAKEINFOFLAGS): Replace static string by AC_ARG_VAR.
1132 * configure: Regenerate.
1133
1134 2012-02-21 Tristan Gingold <gingold@adacore.com>
1135 Pedro Alves <palves@redhat.com>
1136
1137 * ia64-tdep.c: Do not include libunwind-ia64.h.
1138 * libunwind-frame.h: Remove #ifdef HAVE_LIBUNWIND_H guard.
1139 Include libunwind-ia64.h instead of libunwind.h.
1140 * configure.ac (--with-libunwind, $enable_libunwind): Don't check
1141 for libunwind.h existence.
1142 * configure, config.in: Regenerate.
1143
1144 2012-02-21 Anton Gorenkov <xgsa@yandex.ru>
1145
1146 * c-valprint.c (c_value_print): Use value_rtti_indirect_type
1147 instead of value_rtti_target_type.
1148 * eval.c (evaluate_subexp_standard): Use value_rtti_indirect_type
1149 instead of value_rtti_target_type.
1150 * typeprint.c (whatis_exp): Use value_rtti_indirect_type instead of
1151 value_rtti_target_type.
1152 * valops.c (value_ind): Extract function readjust_indirect_value_type.
1153 (value_rtti_target_type): Rename to ...
1154 (value_rtti_indirect_type): ... here and make it indirect. Update
1155 function comment.
1156 * value.c (readjust_indirect_value_type): New function.
1157 (coerce_ref): Support for enclosing type setting for references
1158 with readjust_indirect_value_type.
1159 * value.h (readjust_value_type): New declaration.
1160 (value_rtti_target_type): Rename to ...
1161 (value_rtti_indirect_type): ... here.
1162
1163 2012-02-21 Anton Gorenkov <xgsa@yandex.ru>
1164
1165 * MAINTAINERS (Write After Approval): Add myself to the list.
1166
1167 2012-02-20 Doug Evans <dje@google.com>
1168
1169 * objfiles.c (add_to_objfile_sections): Remove outdated comments.
1170 Rename objfile_p_char parameter to objfilep.
1171 (build_objfile_section_table): Result is now void. All callers
1172 updated.
1173 * objfiles.h (struct objfile): Tweak comments, whitespace.
1174 (build_objfile_section_table): Update.
1175
1176 * elfread.c (elf_symfile_segments): Fix warning text.
1177
1178 2012-02-20 Tom Tromey <tromey@redhat.com>
1179
1180 PR gdb/13498:
1181 * dwarf2read.c (dw2_expand_symtabs_matching): Only visit a
1182 particular set of file names once.
1183 (dw2_map_symbol_filenames): Likewise.
1184
1185 2012-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
1186
1187 Code cleanup.
1188 * main.c (write_files): Remove the declaration.
1189 (external_editor_command): Move the declaration ...
1190 [GDBTK] (external_editor_command): ... here. Fix the comment.
1191
1192 2012-02-20 Tom Tromey <tromey@redhat.com>
1193
1194 * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove
1195 extraneous block.
1196
1197 2012-02-20 Tristan Gingold <gingold@adacore.com>
1198
1199 * darwin-nat.h (enum darwin_msg_state): Add comments.
1200
1201 2012-02-20 Tristan Gingold <gingold@adacore.com>
1202
1203 * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Fix jb_pc_offset
1204 value.
1205
1206 2012-20-18 Joel Brobecker <brobecker@adacore.com>
1207
1208 * breakpoint.c (watchpoint_exp_is_const): Add missing empty line
1209 between function description and implementation.
1210
1211 2012-02-17 Tom Tromey <tromey@redhat.com>
1212
1213 PR python/12070:
1214 * python/py-event.c (event_object_getset): New global.
1215 (event_object_type): Reference it.
1216 * python/py-type.c (field_object_getset): New global.
1217 (field_object_type): Reference it.
1218 * python/python-internal.h (gdb_py_generic_dict): Declare.
1219 * python/py-utils.c (gdb_py_generic_dict): New function.
1220
1221 2012-02-17 Tristan Gingold <gingold@adacore.com>
1222
1223 * solib-darwin.c (darwin_current_sos): Check magic and filetype
1224
1225 2012-02-17 Thomas Schwinge <thomas@codesourcery.com>
1226
1227 * sh-tdep.c (sh_is_renesas_calling_convention): Fix handling of
1228 TYPE_CALLING_CONVENTION annotation.
1229
1230 2012-02-16 Kevin Buettner <kevinb@redhat.com>
1231
1232 * MAINTAINERS: Add rx to target ISA section.
1233 * Makefile.in (ALL_TARGET_OBS): Add rx-tdep.o.
1234 (ALLDEPFILES): Add rx-tdep.c.
1235
1236 2012-02-16 Tom Tromey <tromey@redhat.com>
1237
1238 * symfile.c (symbol_file_add_main_1): Use inferior's
1239 symfile_flags.
1240 * solib.c (solib_read_symbols): Use inferior's symfile_flags.
1241 * linux-nat.c (linux_child_follow_fork): Set symfile_flags on
1242 inferior.
1243 * infrun.c (handle_vfork_child_exec_or_exit): Set symfile_flags on
1244 inferior.
1245 (follow_exec): Use inferior's symfile_flags.
1246 * inferior.h (struct inferior) <symfile_flags>: New field.
1247
1248 2012-02-16 Mike Frysinger <vapier@gentoo.org>
1249
1250 PR gdb/9734:
1251 * remote-sim.c (gdbsim_create_inferior): Call error() when
1252 sim_create_inferior() fails.
1253
1254 2012-02-16 Josh Matthews <josh@joshmatthews.net>
1255
1256 * machoread.c: Initialize nbr_syms to avoid warnings-as-errors failure.
1257
1258 2012-02-16 Tom Tromey <tromey@redhat.com>
1259
1260 PR c++/13653:
1261 * thread.c (struct current_thread_cleanup) <was_removable>: New
1262 field.
1263 (restore_current_thread_cleanup_dtor): Restore 'removable' field.
1264 (make_cleanup_restore_current_thread): Initialize new field.
1265
1266 2012-02-15 Kevin Buettner <kevinb@redhat.com>
1267
1268 * MAINTAINERS: Add rl78 to target ISA section.
1269 * Makefile.in (ALL_TARGET_OBS): Add rl78-tdep.o.
1270 (ALLDEPFILES): Add rl78-tdep.c.
1271 * NEWS: Mention rl78 as a new target.
1272
1273 2012-02-15 Aleksandar Ristovski <aristovski@qnx.com>
1274
1275 * frame.c (find_frame_sal): Initialize sal->pspace field from frame
1276 data.
1277 * stack.c (set_last_displayed_sal): Validate that PSPACE is not NULL.
1278
1279 2012-02-15 Tom Tromey <tromey@redhat.com>
1280
1281 PR gdb/12659:
1282 * infcmd.c (registers_info): Print just the current register's
1283 name.
1284
1285 2012-02-15 Tom Tromey <tromey@redhat.com>
1286
1287 * python/py-symbol.c (sympy_value): Use _().
1288
1289 2012-02-15 Pedro Alves <palves@redhat.com>
1290
1291 * remote.c (remote_detach_1, extended_remote_attach_1): Tweak
1292 output to be like native targets'.
1293 (remote_pid_to_str): Special case the null ptid.
1294
1295 2012-02-14 Stan Shebs <stan@codesourcery.com>
1296
1297 * NEWS: Mention enable count command.
1298 * breakpoint.h (struct breakpoint): New field enable_count.
1299 * breakpoint.c (enable_breakpoint_disp): Add count argument.
1300 (enable_breakpoint): Add arg to call.
1301 (struct disp_data): New struct.
1302 (do_enable_breakpoint_disp): Interp arg as disp_data and unpack.
1303 (do_map_enable_once_breakpoint): Create a struct and pass it.
1304 (do_map_enable_delete_breakpoint): Ditto.
1305 (do_map_enable_count_breakpoint): New function.
1306 (enable_count_command): New function.
1307 (bpstat_stop_status): Decrement enable_count.
1308 (print_one_breakpoint_location): Report enable count.
1309 (_initialize_breakpoint): Add enable count command.
1310
1311 2012-02-14 Kevin Buettner <kevinb@redhat.com>
1312
1313 * rl78-tdep.c (reggroups.h): Include.
1314 (RL78_RAW_BANK0_R0_REGNUM, RL78_RAW_BANK0_R1_REGNUM)
1315 (RL78_RAW_BANK0_R2_REGNUM, RL78_RAW_BANK0_R3_REGNUM)
1316 (RL78_RAW_BANK0_R4_REGNUM, RL78_RAW_BANK0_R5_REGNUM)
1317 (RL78_RAW_BANK0_R6_REGNUM, RL78_RAW_BANK0_R7_REGNUM)
1318 (RL78_RAW_BANK1_R0_REGNUM, RL78_RAW_BANK1_R1_REGNUM)
1319 (RL78_RAW_BANK1_R2_REGNUM, RL78_RAW_BANK1_R3_REGNUM)
1320 (RL78_RAW_BANK1_R4_REGNUM, RL78_RAW_BANK1_R5_REGNUM)
1321 (RL78_RAW_BANK1_R6_REGNUM, RL78_RAW_BANK1_R7_REGNUM)
1322 (RL78_RAW_BANK2_R0_REGNUM, RL78_RAW_BANK2_R1_REGNUM)
1323 (RL78_RAW_BANK2_R2_REGNUM, RL78_RAW_BANK2_R3_REGNUM)
1324 (RL78_RAW_BANK2_R4_REGNUM, RL78_RAW_BANK2_R5_REGNUM)
1325 (RL78_RAW_BANK2_R6_REGNUM, RL78_RAW_BANK2_R7_REGNUM)
1326 (RL78_RAW_BANK3_R0_REGNUM, RL78_RAW_BANK3_R1_REGNUM)
1327 (RL78_RAW_BANK3_R2_REGNUM, RL78_RAW_BANK3_R3_REGNUM)
1328 (RL78_RAW_BANK3_R4_REGNUM, RL78_RAW_BANK3_R5_REGNUM)
1329 (RL78_RAW_BANK3_R6_REGNUM, RL78_RAW_BANK3_R7_REGNUM): Add to
1330 beginning of register list.
1331 (RL78_BANK0_R0_REGNUM, RL78_BANK0_R1_REGNUM, RL78_BANK0_R2_REGNUM)
1332 (RL78_BANK0_R3_REGNUM, RL78_BANK0_R4_REGNUM, RL78_BANK0_R5_REGNUM)
1333 (RL78_BANK0_R6_REGNUM, RL78_BANK0_R7_REGNUM, RL78_BANK1_R0_REGNUM)
1334 (RL78_BANK1_R1_REGNUM, RL78_BANK1_R2_REGNUM, RL78_BANK1_R3_REGNUM)
1335 (RL78_BANK1_R4_REGNUM, RL78_BANK1_R5_REGNUM, RL78_BANK1_R6_REGNUM)
1336 (RL78_BANK1_R7_REGNUM, RL78_BANK2_R0_REGNUM, RL78_BANK2_R1_REGNUM)
1337 (RL78_BANK2_R2_REGNUM, RL78_BANK2_R3_REGNUM, RL78_BANK2_R4_REGNUM)
1338 (RL78_BANK2_R5_REGNUM, RL78_BANK2_R6_REGNUM, RL78_BANK2_R7_REGNUM)
1339 (RL78_BANK3_R0_REGNUM, RL78_BANK3_R1_REGNUM, RL78_BANK3_R2_REGNUM)
1340 (RL78_BANK3_R3_REGNUM, RL78_BANK3_R4_REGNUM, RL78_BANK3_R5_REGNUM)
1341 (RL78_BANK3_R6_REGNUM, RL78_BANK3_R7_REGNUM): Move these into
1342 the pseudo registers. Rearrange other pseudo registers too so
1343 that the bank registers appear at the end.
1344 (rl78_register_type): Account for the fact that the byte sized
1345 bank registers are now pseudo-registers.
1346 (rl78_register_name): Rearrange the register name array. Make
1347 initial set of raw banked registers inaccessible.
1348 (rl78_register_reggroup_p, rl78_register_sim_regno): New functions.
1349 (rl78_pseudo_register_read, rl78_pseudo_register_write): Add
1350 case for copying bytes back and forth between raw and pseudo
1351 versions of the banked registers. Update other cases to reflect
1352 the changed names.
1353 (rl78_return_value): Update to account for changed names of
1354 raw registers.
1355 (rl78_gdbarch_init): Register rl78_register_reggroup_p() and
1356 rl78_register_sim_regno().
1357
1358 2012-02-14 Kevin Buettner <kevinb@redhat.com>
1359
1360 * rl78-tdep.c (rl78_skip_prologue): Make `const' the type of
1361 the name parameter being passed to find_pc_partial_function().
1362
1363 2012-02-14 Jan Kratochvil <jan.kratochvil@redhat.com>
1364
1365 * MAINTAINERS: Step down from being ia64 target maintainer.
1366
1367 2012-02-12 Jan Kratochvil <jan.kratochvil@redhat.com>
1368
1369 * ppc-linux-nat.c (fetch_register, store_register): Fix GCC aliasing
1370 compilation warning.
1371
1372 2012-02-12 Jan Kratochvil <jan.kratochvil@redhat.com>
1373
1374 Fix crash on loaded shlibs without loaded exec_bfd.
1375 * exec.c (exec_files_info): Do not crash on NULL EXEC_BFD.
1376 (set_section_command): Replace exec_bfd by p->bfd.
1377
1378 2012-02-10 Tom Tromey <tromey@redhat.com>
1379
1380 * linespec.c (decode_line_internal): Skip symtabs_from_filename
1381 when we have a C++ qualified name.
1382
1383 2012-02-10 Pedro Alves <palves@redhat.com>
1384
1385 * inferior.c (inferior_pid_to_str): New.
1386 (print_inferior, inferior_command): Use it.
1387
1388 2012-02-10 Pedro Alves <palves@redhat.com>
1389
1390 * configure.ac (HAVE_ELF test): Put the old CFLAGS at the end of
1391 the test CFLAGS.
1392 * configure: Regenerate.
1393
1394 2012-02-10 Jan Kratochvil <jan.kratochvil@redhat.com>
1395
1396 * linespec.c (decode_line_internal): Fix comment correctness.
1397
1398 2012-02-09 Valery Khromov <valery.khromov@gmail.com>
1399
1400 PR gdb/12953
1401 * Makefile.in (HFILES_NO_SRCDIR): Add amd64bsd-nat.h.
1402 * amd64bsd-nat.c: Add support for debug registers (adapted from
1403 i386bsd-nat.c).
1404 [HAVE_PT_GETDBREGS] (amd64bsd_dr_get, amd64bsd_dr_set)
1405 (amd64bsd_dr_set_control, amd64bsd_dr_set_addr)
1406 (amd64bsd_dr_get_addr, amd64bsd_dr_get_status)
1407 (amd64bsd_dr_get_control): New functions.
1408 * amd64bsd-nat.h: New file (adapted from i386bsd-nat.h).
1409 * amd64fbsd-nat.c: Include "amd64bsd-nat.h", "i386-nat.h".
1410 [HAVE_PT_GETDBREGS] (_initialize_amd64fbsd_nat): Add hardware
1411 watchpoints initialization.
1412 * config/i386/fbsd64.mh (NATDEPFILES): Add i386-nat.o.
1413
1414 2012-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1415
1416 * gdb-gdb.py (StructMainTypePrettyPrinter) <struct_field_img>: Print
1417 flds_bnds.fields.
1418 (StructMainTypePrettyPrinter) <bounds_img>: Print flds_bnds.bounds.
1419
1420 2012-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1421
1422 * breakpoint.c (bp_location_compare): Fix comment. Reindent the code.
1423
1424 2012-02-08 Joel Brobecker <brobecker@adacore.com>
1425
1426 * language.h (symbol_name_cmp_ftype): Renames
1427 symbol_name_match_p_ftype.
1428 (struct language_defn)[la_get_symbol_name_cmp]: Renames
1429 la_get_symbol_name_match_p.
1430 * ada-lang.c (ada_get_symbol_name_cmp): Renames
1431 ada_get_symbol_name_match_p. Update comment.
1432 (ada_language_defn)[la_get_symbol_name_cmp]: Update value.
1433 * linespec.c (struct symbol_matcher_data)[symbol_name_cmp]:
1434 Renames symbol_name_match_p. Update field type.
1435 (iterate_name_matcher, iterate_over_all_matching_symtabs): Adjust.
1436 * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
1437 opencl-lang.c, p-lang.c: Replace "la_get_symbol_name_match_p" by
1438 "la_get_symbol_name_cmp" in comments.
1439 * language.c: Likewise.
1440
1441 2012-02-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1442
1443 * amd64-sol2-tdep.c (amd64_sol2_gregset_reg_offset): Correct
1444 %eflags offset.
1445 * i386-sol2-nat.c (amd64_sol2_gregset64_reg_offs)
1446 (amd64_sol2_gregset32_reg_offs): Likewise.
1447
1448 2012-02-08 Joel Brobecker <brobecker@adacore.com>
1449
1450 * solib-darwin.c (darwin_bfd_open): Make sure that the filename
1451 of the returned BFD is allocated by GDB.
1452
1453 2012-02-07 Tom Tromey <tromey@redhat.com>
1454
1455 PR python/12027:
1456 * python/python-internal.h (frame_object_type): Declare.
1457 * python/py-symbol.c (sympy_needs_frame): New function.
1458 (sympy_value): New function.
1459 (symbol_object_getset): Add "needs_frame".
1460 (symbol_object_methods): Add "value".
1461 * python/py-frame.c (frame_object_type): No longer static.
1462
1463 2012-02-07 Tom Tromey <tromey@redhat.com>
1464
1465 PR python/13599:
1466 * python/py-symbol.c (sympy_line): New function.
1467 (symbol_object_getset): Add "line".
1468
1469 2012-02-07 Tom Tromey <tromey@redhat.com>
1470
1471 * charset.c (find_charset_names): Check 'in' against NULL.
1472
1473 2012-02-06 Doug Evans <dje@google.com>
1474
1475 * gdbtypes.h (struct main_type): Change type of name,tag_name,
1476 and fields.name members from char * to const char *. All uses updated.
1477 (struct cplus_struct_type): Change type of fn_fieldlists.name member
1478 from char * to const char *. All uses updated.
1479 (type_name_no_tag): Update.
1480 (lookup_unsigned_typename, lookup_signed_typename): Update.
1481 * gdbtypes.c (type_name_no_tag): Change result type
1482 from char * to const char *. All callers updated.
1483 (lookup_unsigned_typename, lookup_signed_typename): Change type of
1484 name parameter from char * to const char *.
1485 * symtab.h (struct cplus_specific): Change type of demangled_name
1486 member from char * to const char *. All uses updated.
1487 (struct general_symbol_info): Change type of name and
1488 mangled_lang.demangled_name members from char * to const char *.
1489 All uses updated.
1490 (symbol_get_demangled_name, symbol_natural_name): Update.
1491 (symbol_demangled_name, symbol_search_name): Update.
1492 * symtab.c (symbol_get_demangled_name): Change result type
1493 from char * to const char *. All callers updated.
1494 (symbol_natural_name, symbol_demangled_name): Ditto.
1495 (symbol_search_name): Ditto.
1496 (completion_list_add_name): Change type of symname,sym_text,
1497 text,word parameters from char * to const char *.
1498 (completion_list_objc_symbol): Change type of sym_text,
1499 text,word parameters from char * to const char *.
1500 * ada-lang.c (find_struct_field): Change type of name parameter
1501 from char * to const char *.
1502 (encoded_ordered_before): Similarly for N0,N1 parameters.
1503 (old_renaming_is_invisible): Similarly for function_name parameter.
1504 (ada_type_name): Change result type from char * to const char *.
1505 All callers updated.
1506 * ada-lang.h (ada_type_name): Update.
1507 * buildsym.c (hashname): Change type of name parameter
1508 from char * to const char *.
1509 * buildsym.h (hashname): Update.
1510 * dbxread.c (end_psymtab): Change type of include_list parameter
1511 from char ** to const char **.
1512 * dwarf2read.c (determine_prefix): Change result type
1513 from char * to const char *. All callers updated.
1514 * f-lang.c (find_common_for_function): Change type of name, funcname
1515 parameters from char * to const char *.
1516 * f-lang.c (find_common_for_function): Update.
1517 * f-valprint.c (list_all_visible_commons): Change type of funcname
1518 parameters from char * to const char *.
1519 * gdbarch.sh (static_transform_name): Change type of name parameter
1520 and result from char * to const char *.
1521 * gdbarch.c: Regenerate.
1522 * gdbarch.h: Regenerate.
1523 * i386-sol2-tdep.c (i386_sol2_static_transform_name): Change type
1524 of name parameter from char * to const char *.
1525 * jv-lang.c (java_primitive_type_from_name): Ditto.
1526 (java_demangled_signature_length): Similarly for signature parameter.
1527 (java_demangled_signature_copy): Ditto.
1528 (java_demangle_type_signature): Ditto.
1529 * jv-lang.h (java_primitive_type_from_name): Update.
1530 (java_demangle_type_signature): Update.
1531 * objc-lang.c (specialcmp): Change type of a,b parameters
1532 from char * to const char *.
1533 * p-lang.c (is_pascal_string_type): Change type of arrayname parameter
1534 from char * to const char *. All callers updated.
1535 * p-lang.h (is_pascal_string_type): Update.
1536 * solib-frv.c (find_canonical_descriptor_in_load_object): Change type
1537 of name parameter from char * to const char *.
1538 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Ditto.
1539 * utils.c (fprintf_symbol_filtered): Ditto.
1540 * defs.h (fprintf_symbol_filtered): Update.
1541 * sparc-tdep.h (sparc_sol2_static_transform_name): Update.
1542 * stabsread.h (end_psymtab): Update.
1543 * stack.c (find_frame_funname): Change type of funname parameter
1544 from char ** to const char **.
1545 * stack.h (find_frame_funname): Update.
1546 * typeprint.c (type_print): Change type of varstring parameter
1547 from char * to const char *.
1548 * value.h (type_print): Update.
1549 * xcoffread.c (xcoff_start_psymtab): Change type of filename parameter
1550 from char * to const char *. All callers updated.
1551 (xcoff_end_psymtab): Change type of include_list parameter
1552 from char ** to const char **. All callers updated.
1553 (swap_sym): Similarly for name parameter. All callers updated.
1554 * coffread.c (patch_type): Add (char*) cast to xfree parameter.
1555 Use xstrdup.
1556 (process_coff_symbol): Use xstrdup.
1557 * stabsread.c (stabs_method_name_from_physname): Renamed from
1558 update_method_name_from_physname. Change result type from void
1559 to char *. All callers updated.
1560 (read_member_functions): In has_destructor case, store name in objfile
1561 obstack instead of malloc space. In !has_stub case, fix mem leak.
1562
1563 2012-02-06 Luca Pizzamiglio <luca.pizzamiglio@gmail.com>
1564
1565 * configure: Rebuild.
1566 * configure.ac: Put -L../bfd and -L../libiberty at the front of
1567 LDFLAGS.
1568
1569 2012-02-03 Kevin Buettner <kevinb@redhat.com>
1570
1571 * configure.tgt (rl78-*-elf): New target.
1572 * rl78-tdep.c: New file.
1573
1574 2012-02-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1575
1576 * remote.c (remote_rcmd): Use getpkt_sane to detect timeout
1577 and continue the loop. Add QUIT statement.
1578
1579 2012-02-03 Tom Tromey <tromey@redhat.com>
1580
1581 PR gdb/13596:
1582 * solib.h (gdb_bfd_lookup_symbol_from_symtab): Rename from
1583 bfd_lookup_symbol_from_symtab.
1584 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
1585 gdb_bfd_lookup_symbol_from_symtab.
1586
1587 2012-02-03 Joel Brobecker <brobecker@adacore.com>
1588
1589 * mi/mi-cmd-stack.c (list_args_or_locals): For argument symbols,
1590 use SYMBOL_LINKAGE_NAME to find the corresponding non-argument
1591 symbol. Add assertion that sym2 is never NULL.
1592
1593 2012-02-02 Doug Evans <dje@google.com>
1594
1595 * blockframe.c (find_pc_partial_function_gnu_ifunc): Change type of
1596 "name" parameter to const char ** from char **. All callers updated.
1597 (find_pc_partial_function): Ditto.
1598 (cache_pc_function_name): Change type to const char * from char *.
1599 * symtab.h ((find_pc_partial_function_gnu_ifunc): Update.
1600 (find_pc_partial_function): Update.
1601 * alpha-tdep.h (struct gdbarch_tdep, member pc_in_sigtramp): Change
1602 type of "name" parameter to const char * from char *.
1603 All uses updated.
1604 * arch-utils.c (generic_in_solib_return_trampoline): Change
1605 type of "name" parameter to const char * from char *.
1606 * arch-utils.h (generic_in_solib_return_trampoline): Update.
1607 * frv-linux-tdep.c (frv_linux_pc_in_sigtramp): Change
1608 type of "name" parameter to const char * from char *.
1609 * gdbarch.sh (in_solib_return_trampoline): Ditto.
1610 * gdbarch.c: Regenerate.
1611 * gdbarch.h: Regenerate.
1612 * hppa-hpux-tdep.c (hppa_hpux_in_solib_return_trampoline): Update.
1613 * rs6000-tdep.c (rs6000_in_solib_return_trampoline): Update.
1614 * m32r-linux-tdep.c (m32r_linux_pc_in_sigtramp): Change
1615 type of "name" parameter to const char * from char *.
1616 * skip.c (skip_function_pc): Ditto.
1617 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Ditto.
1618 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp): Update.
1619 * sparc64fbsd-tdep.c (sparc64fbsd_pc_in_sigtramp): Ditto.
1620 * sparc64nbsd-tdep.c (sparc64nbsd_pc_in_sigtramp): Ditto.
1621 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Ditto.
1622 * sparcnbsd-tdep.c (sparc32nbsd_pc_in_sigtramp): Ditto.
1623 * sparcobsd-tdep.c (sparc32obsd_pc_in_sigtramp): Ditto.
1624 * nbsd-tdep.c (nbsd_pc_in_sigtramp): Similary for "func_name".
1625 * nbsd-tdep.h (nbsd_pc_in_sigtramp): Update.
1626
1627 2012-02-02 Pedro Alves <palves@redhat.com>
1628
1629 * remote.c (remote_get_min_fast_tracepoint_insn_len): Return 0 if
1630 the current inferior has no execution. Make sure the current
1631 remote process matches gdb's current inferior.
1632
1633 2012-02-02 Tom Tromey <tromey@redhat.com>
1634
1635 PR gdb/13405:
1636 * tui/tui-win.c (parse_scrolling_args): Don't write to possibly
1637 read-only memory.
1638
1639 2012-02-02 Tom Tromey <tromey@redhat.com>
1640
1641 PR gdb/9307:
1642 * symtab.c (lookup_language_this): Set block_found.
1643
1644 2012-02-01 Tom Tromey <tromey@redhat.com>
1645
1646 PR gdb/13431:
1647 * jit.c (struct jit_inferior_data): Rewrite.
1648 (struct jit_objfile_data): New.
1649 (get_jit_objfile_data): New function.
1650 (add_objfile_entry): Update.
1651 (jit_read_descriptor): Return int. Replace descriptor_addr
1652 argument with inf_data. Update. Don't call error.
1653 (jit_breakpoint_re_set_internal): Reorder logic. Update. Look up
1654 descriptor here.
1655 (jit_inferior_init): Don't look up descriptor. Don't call error.
1656 (jit_reset_inferior_data_and_breakpoints)
1657 (jit_inferior_created_observer): Remove.
1658 (jit_inferior_exit_hook): Update.
1659 (jit_executable_changed_observer): Remove.
1660 (jit_event_handler): Update.
1661 (free_objfile_data): Reset inferior data if needed.
1662 (_initialize_jit): Update.
1663
1664 2012-02-01 Tom Tromey <tromey@redhat.com>
1665
1666 * jit.c (bfd_open_from_target_memory): Move higher in file.
1667
1668 2012-02-01 Tristan Gingold <gingold@adacore.com>
1669
1670 * libunwind-frame.c (libunwind_load): Display message if dlopen
1671 failed.
1672
1673 2012-02-01 Gary Benson <gbenson@redhat.com>
1674
1675 * symtab.h (symbol_name_match_p_ftype): New typedef.
1676 (iterate_over_symbols): Use the above.
1677 * symtab.c (iterate_over_symbols): Likewise.
1678 * language.h (language_defn->la_iterate_over_symbols): Likewise.
1679 * ada-lang.c (ada_iterate_over_symbols): Likewise.
1680 * linespec.c (iterate_over_all_matching_symtabs): Likewise.
1681 (iterate_name_matcher): Document return values.
1682 (collect_one_symbol): Likewise.
1683 (collect_function_symbols): Likewise.
1684 (collect_symbols): Likewise.
1685
1686 2012-02-01 Tom Tromey <tromey@redhat.com>
1687
1688 * ada-lang.c (resolve_subexp): Update.
1689 (ada_lookup_symbol_list): Add 'full_search' argument.
1690 (ada_iterate_over_symbols): Pass 0 as full_search argument to
1691 ada_lookup_symbol_list.
1692 (ada_lookup_encoded_symbol): Update.
1693 (get_var_value): Update.
1694 * ada-exp.y (block_lookup): Update.
1695 (write_var_or_type): Update.
1696 (write_name_assoc): Update.
1697 * ada-lang.h (ada_lookup_symbol_list): Update.
1698
1699 2012-01-31 Tom Tromey <tromey@redhat.com>
1700
1701 * language.h (struct language_defn) <la_iterate_over_symbols>: Fix
1702 comment.
1703
1704 2012-01-31 Doug Evans <dje@google.com>
1705
1706 * symtab.h: Remove outdated comment.
1707 (SYMBOL_MATCHES_NATURAL_NAME): Delete.
1708
1709 2012-02-01 Josh Matthews <josh@joshmatthews.net> (tiny change)
1710
1711 Fix build error in Darwin port.
1712 * i386-darwin-nat.c: Include i386-nat.h.
1713
1714 2012-01-30 Tom Tromey <tromey@redhat.com>
1715
1716 PR breakpoints/13568:
1717 * dwarf2read.c (dwarf_decode_macro_bytes): Add 'include_hash'
1718 argument. Check for recursive includes.
1719 (dwarf_decode_macros): Create an include hash.
1720
1721 2012-01-30 Michael Eager <eager@eagercon.com>
1722
1723 * configure.tgt (powerpc-*-linux*): Add glibc-tdep.o.
1724 * ppc-linux-tdep.c: Include glibc-tdep.h.
1725 (powerpc32_plt_stub, powerpc32_plt_stub_so): Add PLT stub templates.
1726 (powerpc_linux_in_plt_stub): New function.
1727 (powerpc_linux_in_dynsym_resolve_code): New function.
1728 (ppc_skip_trampoline_code): New function.
1729 (ppc_linux_init_abi): Use PPC specific functions rather than generic.
1730 Use glibc_skip_solib_resolver.
1731
1732 2012-01-28 Jan Kratochvil <jan.kratochvil@redhat.com>
1733
1734 Code cleanup: Make 1440 bytes of data segment read-only.
1735 * arch-utils.c (endian_enum): Make it const char *const [].
1736 * arm-tdep.c (fp_model_strings, arm_abi_strings, arm_mode_strings):
1737 Likewise.
1738 * breakpoint.c (always_inserted_enums): Likewise.
1739 * cli/cli-cmds.c (script_ext_enums): Likewise.
1740 * cli/cli-decode.c (add_setshow_enum_cmd, complete_on_enum): Make the
1741 enumlist parameter const char *const *.
1742 * cli/cli-decode.h (struct cmd_list_element): Make the enums field
1743 const char *const *.
1744 * command.h (complete_on_enum, add_setshow_enum_cmd): Make the enumlist
1745 parameter const char *const *.
1746 * cris-tdep.c (cris_modes): Make it const char *const [].
1747 * filesystem.c (target_file_system_kinds): Likewise.
1748 * i386-tdep.c (valid_flavors, valid_conventions): Likewise.
1749 * infrun.c (follow_fork_mode_kind_names, follow_exec_mode_names)
1750 (can_use_displaced_stepping_enum, scheduler_enums)
1751 (exec_direction_names): Likewise.
1752 * language.c (_initialize_language): Make the type_or_range_names and
1753 case_sensitive_names variables const char *const [].
1754 * mips-tdep.c (mips_abi_strings): Make it const char *const [].
1755 * python/python.c (python_excp_enums): Likewise.
1756 * remote.c (interrupt_sequence_modes): Likewise.
1757 * rs6000-tdep.c (powerpc_vector_strings): Likewise.
1758 * serial.c (logbase_enums): Likewise.
1759 * sh-tdep.c (sh_cc_enum): Likewise.
1760 * stack.c (print_frame_arguments_choices, print_entry_values_choices):
1761 Likewise.
1762 * symtab.c (multiple_symbols_modes): Likewise.
1763 * tui/tui-win.c (tui_border_kind_enums, tui_border_mode_enums):
1764 Likewise.
1765 * utils.c (internal_problem_modes): Likewise.
1766
1767 2012-01-27 Jan Kratochvil <jan.kratochvil@redhat.com>
1768
1769 Fix the 2012-01-26 regression by la_get_symbol_name_match_p.
1770 * linespec.c (iterate_name_matcher): Negate the SYMBOL_NAME_MATCH_P
1771 result.
1772
1773 2012-01-27 Doug Evans <dje@google.com>
1774
1775 * configure.ac (with_python): Fix absolute path handling for win32.
1776 * configure: Regenerate.
1777
1778 2012-01-26 Doug Evans <dje@google.com>
1779
1780 * symtab.c: Whitespace cleanup, no code changes.
1781
1782 * symtab.c (lookup_symbol_in_language): Improve comment.
1783 (lookup_symbol_aux): Fix comment.
1784
1785 * psymtab.c (add_psymbol_to_list): Result is now "void".
1786 * psympriv.h (add_psymbol_to_list): Update.
1787
1788 * dwarf2read.c (add_partial_symbol): Delete local psym, unused.
1789
1790 2012-01-26 Jan Kratochvil <jan.kratochvil@redhat.com>
1791
1792 Do not open script filenames twice.
1793 * cli/cli-cmds.c (source_script_from_stream): Pass to
1794 source_python_script also STREAM.
1795 * python/py-auto-load.c (source_section_scripts): Pass to
1796 source_python_script_for_objfile also STREAM.
1797 (auto_load_objfile_script): Pass to source_python_script_for_objfile
1798 also INPUT.
1799 * python/python-internal.h (source_python_script_for_objfile): New
1800 parameter file, rename parameter file to filename.
1801 * python/python.c (python_run_simple_file): Call PyRun_SimpleFile
1802 instead if !_WIN32. Update the function comment.
1803 (source_python_script, source_python_script_for_objfile)
1804 (source_python_script): New parameter file, rename parameter file to
1805 filename. Pass FILENAME to python_run_simple_file.
1806 * python/python.h (source_python_script): New parameter file, rename
1807 parameter file to filename.
1808
1809 2012-01-26 Pedro Alves <palves@redhat.com>
1810
1811 * corelow.c (core_has_fake_pid): Delete.
1812 (core_close): Delete references to `core_has_fake_pid'.
1813 (add_to_thread_list): Adjust to mark the inferior's pid as fake.
1814 (core_open): Delete references to `core_has_fake_pid'.
1815 (core_pid_to_str): Adjust to check inferior->fake_pid_p instead of
1816 the removed global.
1817
1818 2012-01-26 Joel Brobecker <brobecker@adacore.com>
1819
1820 * symfile.h (struct quick_symbol_functions) [expand_symtabs_matching]:
1821 Remove language parameter from name_matcher. Adjust the comment.
1822 * symtab.c (search_symbols_name_matches, expand_partial_symbol_name):
1823 Remove language parameter.
1824 * ada-lang.c (ada_expand_partial_symbol_name): Likewise.
1825 * linespec.c (iterate_name_matcher): Likewise.
1826 * dwarf2read.c (dw2_expand_symtabs_matching): Adjust type of
1827 name_matcher. Adjust call accordingly.
1828 * psymtab.c (expand_symtabs_matching_via_partial): Likewise.
1829 (maintenance_check_symtabs): Adjust type of parameter "fun".
1830 * psymtab.h (maintenance_check_symtabs): Likewise.
1831
1832 2012-01-26 Joel Brobecker <brobecker@adacore.com>
1833
1834 * language.h (symbol_name_match_p_ftype): New typedef.
1835 (struct language_defn): Replace field la_symbol_name_compare
1836 by la_get_symbol_name_match_p.
1837 * ada-lang.c (ada_get_symbol_name_match_p): New function.
1838 (ada_language_defn): Use it.
1839 * linespec.c (struct symbol_matcher_data): New type.
1840 (iterate_name_matcher): Rewrite.
1841 (iterate_over_all_matching_symtabs): Pass a pointer to
1842 a symbol_matcher_data struct to expand_symtabs_matching
1843 instead of just the lookup name.
1844 * c-lang.c, d-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
1845 opencl-lang.c, p-lang.c, language.c: Delete field
1846 la_symbol_name_compare, and replace by NULL for new field
1847 la_get_symbol_name_match_p.
1848 * symfile.h (struct quick_symbol_functions): Update comment.
1849
1850 2012-01-25 Tom Tromey <tromey@redhat.com>
1851
1852 * breakpoint.c (bpstat_stop_status): Check 'breakpoint_at' before
1853 dereferencing.
1854
1855 2012-01-24 Tom Tromey <tromey@redhat.com>
1856
1857 PR symtab/12406:
1858 * solib.c (update_solib_list): Update the program space's
1859 added_solibs and deleted_solibs fields.
1860 * progspace.h (struct program_space) <added_solibs,
1861 deleted_solibs>: New fields.
1862 (clear_program_space_solib_cache): Declare.
1863 * progspace.c (release_program_space): Call
1864 clear_program_space_solib_cache.
1865 (clear_program_space_solib_cache): New function.
1866 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>: Call
1867 bpstat_stop_status. Use handle_solib_event.
1868 * breakpoint.c: Include gdb_regex.h.
1869 (print_solib_event): New function.
1870 (bpstat_print): Use print_solib_event.
1871 (bpstat_stop_status): Add special case for bp_shlib_event.
1872 (handle_solib_event): New function.
1873 (bpstat_what): Use handle_solib_event.
1874 (struct solib_catchpoint): New.
1875 (dtor_catch_solib, insert_catch_solib, remove_catch_solib)
1876 (breakpoint_hit_catch_solib, check_status_catch_solib)
1877 (print_it_catch_solib, print_one_catch_solib)
1878 (print_mention_catch_solib, print_recreate_catch_solib): New
1879 functions.
1880 (catch_solib_breakpoint_ops): New global.
1881 (catch_load_or_unload, catch_load_command_1)
1882 (catch_unload_command_1): New functions.
1883 (internal_bkpt_check_status): Add special case for
1884 bp_shlib_event.
1885 (internal_bkpt_print_it): Use print_solib_event.
1886 (initialize_breakpoint_ops): Initialize
1887 catch_solib_breakpoint_ops.
1888 (_initialize_breakpoint): Register "catch load" and "catch
1889 unload".
1890 * breakpoint.h (handle_solib_event): Declare.
1891 * NEWS: Add entry for "catch load" and "catch unload".
1892
1893 2012-01-24 Tom Tromey <tromey@redhat.com>
1894
1895 * ada-lang.c: Include gdb_vecs.h.
1896 * charset.c: Include gdb_vecs.h.
1897 * tracepoint.h: Include gdb_vecs.h.
1898 * gdb_vecs.h: New file.
1899
1900 2012-01-24 Pedro Alves <pedro@codesourcery.com>
1901
1902 * breakpoint.c (breakpoint_hit_catch_fork)
1903 (breakpoint_hit_catch_vfork, breakpoint_hit_catch_syscall)
1904 (breakpoint_hit_catch_exec): Make use of the `ws' argument.
1905 * infrun.c (inferior_has_forked, inferior_has_vforked)
1906 (inferior_has_execd, inferior_has_called_syscall): Delete.
1907 (handle_syscall_event): Get syscall_number from the execution
1908 control state's wait status.
1909 (wait_for_inferior): Don't clear syscall_number.
1910
1911 2012-01-24 Pedro Alves <palves@redhat.com>
1912
1913 * breakpoint.c (bpstat_check_location, bpstat_stop_status,
1914 pc_at_non_inline_function): Add `ws' parameter, and pass it down.
1915 (breakpoint_hit_catch_fork, breakpoint_hit_catch_vfork)
1916 (breakpoint_hit_catch_syscall, breakpoint_hit_catch_exec): Add
1917 `ws' parameter.
1918 (breakpoint_hit_ranged_breakpoint): Add `ws' parameter. Return
1919 false for events other than TARGET_SIGNAL_TRAP.
1920 (breakpoint_hit_watchpoint, base_breakpoint_breakpoint_hit):
1921 Add `ws' parameter.
1922 (bkpt_breakpoint_hit): Add `ws' parameter. Return false for
1923 events other than TARGET_SIGNAL_TRAP.
1924 (tracepoint_breakpoint_hit): Add `ws' parameter.
1925 * breakpoint.h (struct breakpoint_ops) <breakpoint_hit>: Add `ws'
1926 parameter.
1927 (bpstat_stop_status): Same.
1928 (pc_at_non_inline_function): Same.
1929 * infrun.c (handle_syscall_event, handle_inferior_event): Adjust
1930 to pass the current event's waitstatus to bpstat_stop_status
1931 and pc_at_non_inline_function.
1932
1933 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1934
1935 Code cleanup.
1936 * cli/cli-cmds.c (source_script_from_stream): Never fclose STREAM.
1937 Update the function comment for it.
1938 (source_script_with_search): Call make_cleanup_fclose for STREAM.
1939 * cli/cli-script.c (script_from_file): Do not call make_cleanup_fclose
1940 for STREAM.
1941
1942 2012-01-24 Pedro Alves <palves@redhat.com>
1943
1944 * breakpoint.c (bpstat_stop_status): Moving clearing print_it
1945 outside `bs->stop' block.
1946 (bpstat_what): Rework bp_shlib_event handling.
1947 (internal_bkpt_check_status): If the breakpoint is a
1948 bp_shlib_event, then set bs->stop and bs->print if
1949 stop_on_solib_events is set.
1950
1951 2012-01-24 Gary Benson <gbenson@redhat.com>
1952
1953 Delete #if 0'd out code.
1954 * stack.c (print_frame_label_vars): Remove.
1955 (catch_info): Likewise.
1956 (_initialize_stack): Remove "info catch" command.
1957 * NEWS: Mention the above.
1958
1959 2012-01-24 Pedro Alves <palves@redhat.com>
1960
1961 * remote.c (remote_add_inferior): New `fake_pid_p' parameter. Use
1962 it.
1963 (remote_notice_new_inferior): If the remote end doesn't support
1964 the multiprocess extensions, then the PID is fake.
1965 (add_current_inferior_and_thread): New.
1966 (remote_start_remote): Use it.
1967 (extended_remote_attach_1): Adjust.
1968 (extended_remote_create_inferior_1): Use
1969 add_current_inferior_and_thread.
1970
1971 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1972
1973 Fix watchpoints to be specific for each inferior.
1974 * breakpoint.c (watchpoint_in_thread_scope): Verify also
1975 current_program_space.
1976 * i386-nat.c (i386_inferior_data_cleanup): New.
1977 (i386_inferior_data_get): Replace variable inf_data_local by an
1978 inferior_data call.
1979 (i386_use_watchpoints): Initialize i386_inferior_data.
1980 * linux-nat.c (linux_nat_iterate_watchpoint_lwps): Use INFERIOR_PTID
1981 specific iterate_over_lwps.
1982
1983 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1984
1985 Fix watchpoints across inferior fork.
1986 * amd64-linux-nat.c (update_debug_registers_callback): Update the
1987 comment for linux_nat_iterate_watchpoint_lwps.
1988 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
1989 linux_nat_iterate_watchpoint_lwps.
1990 (amd64_linux_prepare_to_resume): New comment on Linux kernel.
1991 * i386-linux-nat.c (update_debug_registers_callback): Update the
1992 comment for linux_nat_iterate_watchpoint_lwps.
1993 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
1994 linux_nat_iterate_watchpoint_lwps.
1995 (i386_linux_prepare_to_resume): New comment on Linux kernel.
1996 * i386-nat.c: Include inferior.h.
1997 (dr_mirror): Remove.
1998 (i386_inferior_data, struct i386_inferior_data)
1999 (i386_inferior_data_get): New.
2000 (i386_debug_reg_state): Use i386_inferior_data_get.
2001 (i386_cleanup_dregs, i386_update_inferior_debug_regs)
2002 (i386_insert_watchpoint, i386_remove_watchpoint)
2003 (i386_stopped_data_address, i386_insert_hw_breakpoint)
2004 (i386_remove_hw_breakpoint): New variable state, use
2005 i386_debug_reg_state instead of DR_MIRROR.
2006 * linux-nat.c (delete_lwp): New declaration.
2007 (num_lwps): Move here from downwards.
2008 (delete_lwp_cleanup): New.
2009 (linux_child_follow_fork): Create new child_lp, call
2010 linux_nat_new_thread and linux_nat_prepare_to_resume before calling
2011 PTRACE_DETACH.
2012 (num_lwps): Move upwards.
2013 (linux_nat_iterate_watchpoint_lwps): New.
2014 * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): New.
2015 (linux_nat_iterate_watchpoint_lwps_ftype): New declaration.
2016
2017 2012-01-24 Joel Brobecker <brobecker@adacore.com>
2018
2019 GDB 7.4 released.
2020
2021 2012-01-23 Pedro Alves <palves@redhat.com>
2022
2023 * top.c (caution): Rename to ...
2024 (confirm): ... this.
2025 (show_caution): Rename to ...
2026 (show_confirm): ... this.
2027 (quit_cover): Adjust.
2028 (init_main): Adjust.
2029 * top.h (caution): Rename to ...
2030 (confirm): ... this.
2031 * utils.c (internal_vproblem, defaulted_query): Adjust.
2032
2033 2012-01-23 Pedro Alves <palves@redhat.com>
2034
2035 * top.c (caution): Update comment.
2036 (execute_command): Don't consider the current value of `caution'.
2037
2038 2012-01-23 Jan Kratochvil <jan.kratochvil@redhat.com>
2039
2040 * cli/cli-cmds.c (find_and_open_script): Handle failure of fdopen.
2041
2042 2012-01-23 Ulrich Weigand <ulrich.weigand@linaro.org>
2043
2044 * inf-child.c: Include "gdb_stat.h" instead of <sys/stat.h>.
2045 * linux-tdep.c (linux_info_proc): Avoid ARI coding style warning.
2046 * target.c (target_fileio_pwrite): Remove buffer address from
2047 debug output.
2048 (target_fileio_pread): Likewise.
2049
2050 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
2051
2052 * NEWS: Document remote "info proc" and "generate-core-file".
2053
2054 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
2055
2056 * gdbarch.sh (find_memory_regions): New callback.
2057 * gdbarch.c, gdbarch.h: Regenerate.
2058
2059 * gcore.c (gcore_memory_sections): Try gdbarch find_memory_regions
2060 callback before falling back to target method.
2061
2062 * linux-nat.c (read_mapping, linux_nat_find_memory_regions): Remove.
2063 (linux_target_install_ops): No longer install it.
2064
2065 * linux-tdep.c (linux_find_memory_regions): New function.
2066 (linux_init_abi): Install it.
2067
2068 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
2069
2070 * gdbarch.sh (make_corefile_notes): New architecture callback.
2071 * gdbarch.c: Regenerate.
2072 * gdbarch.h: Likewise.
2073
2074 * gcore.c (write_gcore_file): Try gdbarch_make_corefile_notes
2075 before target_make_corefile_notes. If NULL is returned, the
2076 target does not support core file generation.
2077
2078 * linux-nat.c: Include "linux-tdep.h".
2079 (find_signalled_thread, find_stop_signal): Remove.
2080 (linux_nat_do_thread_registers): Likewise.
2081 (struct linux_nat_corefile_thread_data): Likewise.
2082 (linux_nat_corefile_thread_callback): Likewise.
2083 (iterate_over_spus): Likewise.
2084 (struct linux_spu_corefile_data): Likewise.
2085 (linux_spu_corefile_callback): Likewise.
2086 (linux_spu_make_corefile_notes): Likewise.
2087 (linux_nat_collect_thread_registers): New function.
2088 (linux_nat_make_corefile_notes): Replace contents by call to
2089 linux_make_corefile_notes passing linux_nat_collect_thread_registers
2090 as native-only callback.
2091
2092 * linux-tdep.h: Include "bfd.h".
2093 (struct regcache): Add forward declaration.
2094 (linux_collect_thread_registers_ftype): New typedef.
2095 (linux_make_corefile_notes): Add prototype.
2096 * linux-tdep.c: Include "gdbthread.h", "gdbcore.h", "regcache.h",
2097 "regset.h", and "elf-bfd.h".
2098 (find_signalled_thread, find_stop_signal): New functions.
2099 (linux_spu_make_corefile_notes): Likewise.
2100 (linux_collect_thread_registers): Likewise.
2101 (struct linux_corefile_thread_data): New data structure.
2102 (linux_corefile_thread_callback): New funcion.
2103 (linux_make_corefile_notes): Likewise.
2104 (linux_make_corefile_notes_1): Likewise.
2105 (linux_init_abi): Install it.
2106
2107 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
2108
2109 * gdbarch.sh (info_proc): New callback.
2110 * gdbarch.c, gdbarch.h: Regenerate.
2111
2112 * infcmd.c (info_proc_cmd_1): Try gdbarch info_proc callback
2113 before falling back to the target info_proc callback.
2114
2115 * linux-nat.c: Do not include "cli/cli-utils.h".
2116 (linux_nat_info_proc): Remove.
2117 (linux_target_install_ops): No longer install it.
2118
2119 * linux-tdep.c: Include "cli/cli-utils.h" and <ctype.h>.
2120 (read_mapping): New function.
2121 (linux_info_proc): Likewise.
2122 (linux_init_abi): Install it.
2123
2124 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
2125
2126 * defs.h (enum info_proc_what): Moved here from linux-nat.c
2127 * infcmd.c: (info_proc_cmd_1): New function.
2128 (info_proc_cmd): New function, moved here from equivalent routine
2129 orignally in linux-nat.c.
2130 (info_proc_cmd_mappings): Likewise.
2131 (info_proc_cmd_stat): Likewise.
2132 (info_proc_cmd_status): Likewise.
2133 (info_proc_cmd_cwd): Likewise.
2134 (info_proc_cmd_cmdline): Likewise.
2135 (info_proc_cmd_exe): Likewise.
2136 (info_proc_cmd_all): Likewise.
2137 (_initialize_infcmd): Install "info proc" command and subcommands.
2138
2139 * target.h (struct target_ops): Add to_info_proc.
2140 (target_info_proc): Add prototype.
2141 * target.c (target_info_proc): New function.
2142
2143 * procfs.c (procfs_info_proc): Add prototype.
2144 (info_proc_cmd): Rename into ...
2145 (procfs_info_proc): ... this. Update argument types as appropriate
2146 for a to_info_proc implementation. Handle "what" argument.
2147 (procfs_target): Install procfs_info_proc.
2148 (_initialize_procfs): No longer install "info proc" command.
2149
2150 * linux-nat.c: (enum info_proc_what): Remove.
2151 (linux_nat_info_proc_cmd_1): Rename into ...
2152 (linux_nat_info_proc): ... this. Update argument types as appropriate
2153 for a to_info_proc implementation.
2154 (linux_nat_info_proc_cmd): Remove.
2155 (linux_nat_info_proc_cmd_mappings): Likewise.
2156 (linux_nat_info_proc_cmd_stat): Likewise.
2157 (linux_nat_info_proc_cmd_status): Likewise.
2158 (linux_nat_info_proc_cmd_cwd): Likewise.
2159 (linux_nat_info_proc_cmd_cmdline): Likewise.
2160 (linux_nat_info_proc_cmd_exe): Likewise.
2161 (linux_nat_info_proc_cmd_all): Likewise.
2162 (linux_target_install_ops): Install linux_nat_info_proc.
2163 (_initialize_linux_nat): No longer install "info proc" command
2164 and subcommands.
2165
2166 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
2167
2168 * configure.ac [AC_CHECK_FUNCS]: Check for readlink.
2169 * config.in, configure: Regenerate.
2170
2171 * target.h (struct target_ops): Add to_fileio_readlink.
2172 (target_fileio_readlink): Add prototype.
2173 * target.c (target_fileio_readlink): New function.
2174
2175 * inf-child.c: Conditionally include <sys/param.h>.
2176 (inf_child_fileio_readlink): New function.
2177 (inf_child_target): Install it.
2178
2179 * remote.c (PACKET_vFile_readlink): New enum value.
2180 (remote_hostio_readlink): New function.
2181 (init_remote_ops): Install it.
2182 (_initialize_remote): Handle vFile:readlink packet type.
2183
2184 2012-01-20 Pedro Alves <palves@redhat.com>
2185 Ulrich Weigand <ulrich.weigand@linaro.org>
2186
2187 * configure.ac [AC_CHECK_FUNCS]: Check for pread and pwrite.
2188 * config.in, configure: Regenerate.
2189
2190 * target.h (struct target_ops): Add to_fileio_open, to_fileio_pwrite,
2191 to_fileio_pread, to_fileio_close, to_fileio_unlink.
2192 (target_fileio_open): Add prototype.
2193 (target_fileio_pwrite): Likewise.
2194 (target_fileio_pread): Likewise.
2195 (target_fileio_close): Likewise.
2196 (target_fileio_unlink): Likewise.
2197 (target_fileio_read_alloc): Likewise.
2198 (target_fileio_read_stralloc): Likewise.
2199
2200 * target.c: Include "gdb/fileio.h".
2201 (target_read_stralloc): Accept trailing, but not embedded NUL bytes.
2202 (default_fileio_target): New function.
2203 (target_fileio_open): Likewise.
2204 (target_fileio_pwrite): Likewise.
2205 (target_fileio_pread): Likewise.
2206 (target_fileio_close): Likewise.
2207 (target_fileio_unlink): Likewise.
2208 (target_fileio_close_cleanup): Likewise.
2209 (target_fileio_read_alloc_1): Likewise.
2210 (target_fileio_read_alloc): Likewise.
2211 (target_fileio_read_stralloc): Likewise.
2212
2213 * inf-child.c: Include "gdb/fileio.h", <sys/types.h>, <sys/stat.h>,
2214 <fcntl.h>, and <unistd.h>.
2215 (inf_child_fileio_open_flags_to_host): New function.
2216 (inf_child_errno_to_fileio_error): Likewise.
2217 (inf_child_fileio_open): Likewise.
2218 (inf_child_fileio_pwrite): Likewise.
2219 (inf_child_fileio_pread): Likewise.
2220 (inf_child_fileio_close): Likewise.
2221 (inf_child_fileio_unlink): Likewise.
2222 (inf_child_target): Install to_fileio routines.
2223
2224 * remote.c (init_remote_ops): Install to_fileio routines.
2225
2226 2012-01-20 Pedro Alves <palves@redhat.com>
2227 Ulrich Weigand <ulrich.weigand@linaro.org>
2228
2229 * remote.c (remote_multi_process_p): Only check for multi-process
2230 protocol feature, do not check for extended protocol.
2231 (remote_supports_multi_process): Check for extended protocol here.
2232 (set_general_process): Likewise.
2233 (extended_remote_kill): Likewise.
2234 (remote_pid_to_str): Likewise.
2235 (remote_query_supported): Always query multiprocess mode.
2236
2237 2012-01-20 Pedro Alves <palves@redhat.com>
2238 Ulrich Weigand <ulrich.weigand@linaro.org>
2239
2240 * inferior.h (struct inferior): Add fake_pid_p.
2241 * inferior.c (exit_inferior_1): Clear fake_pid_p.
2242 * remote.c (remote_start_remote): Set fake_pid_p if we have to use
2243 magic_null_ptid since the remote side doesn't provide a real PID.
2244
2245 2012-01-19 Tom Tromey <tromey@redhat.com>
2246
2247 * NEWS: Combine the two Python sections.
2248
2249 2012-01-19 Jan Kratochvil <jan.kratochvil@redhat.com>
2250
2251 * target.h (target_close): Update comment on the target's unpush state.
2252
2253 2012-01-19 Pedro Alves <palves@redhat.com>
2254
2255 * linux-nat.c (linux_nat_close): Call linux_nat_is_async_p and
2256 linux_nat_async directly instead of going through the target
2257 vector.
2258 * target.c (unpush_target): Close target after unpushing it, not
2259 before.
2260
2261 2012-01-19 Gary Benson <gbenson@redhat.com>
2262
2263 * mdebugread.c (sort_blocks): Replace integer constants with ones
2264 derived from FIRST_LOCAL_BLOCK.
2265
2266 2012-01-18 Paul Pluzhnikov <ppluzhnikov@google.com>
2267 Jan Kratochvil <jan.kratochvil@redhat.com>
2268
2269 PR gdb/9538
2270 * symfile.c (find_separate_debug_file): New function.
2271 (terminate_after_last_dir_separator): Likewise.
2272 (find_separate_debug_file_by_debuglink): Also try realpath.
2273 * configure.ac (AC_CHECK_FUNCS): Add lstat.
2274 * configure: Regenerate.
2275 * config.in: Regenerate.
2276
2277 2012-01-18 Doug Evans <dje@google.com>
2278
2279 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): Delete.
2280 (main.o): Remove rule.
2281 * configure.ac (BINDIR): Define with AC_DEFINE_DIR.
2282 (--with-sysroot): Rewrite.
2283 * configure: Regenerate.
2284 * config.in: Regenerate.
2285
2286 2012-01-18 Sergio Durigan Junior <sergiodj@redhat.com>
2287
2288 * parse.c (initialize_expout): New function.
2289 (reallocate_expout): Likewise.
2290 (parse_exp_in_context): Use `initialize_expout' and
2291 `reallocate_expout' when appropriate.
2292
2293 2012-01-18 Pedro Alves <palves@redhat.com>
2294
2295 * record.c (struct record_breakpoint, record_breakpoint_p)
2296 (record_breakpoints): New.
2297 (record_insert_breakpoint, record_remove_breakpoint): Manage
2298 record breakpoints list. Only remove breakpoints from the
2299 inferior if they had been inserted there in the first place.
2300
2301 2012-01-17 Doug Evans <dje@google.com>
2302
2303 * linespec.c (decode_line_internal): Don't call symtabs_from_filename
2304 if we know we don't have a file name to look for.
2305
2306 2012-01-17 Pedro Alves <palves@redhat.com>
2307
2308 * dwarf2-frame.c (dwarf2_frame_cfa): Throw NOT_AVAILABLE_ERROR, if
2309 the frame's stop reason is UNWIND_UNAVAILABLE.
2310
2311 2012-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
2312
2313 Fix compilation error.
2314 * m2-exp.y (yyerror): Use ANSI C prototype.
2315
2316 2012-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
2317
2318 * f-exp.y (parse_number): Convert prototype from K&R to ANSI C.
2319 (growbuf_by_size): Likewise.
2320 (yyerror): Likewise.
2321 * m2-exp.y (make_qualname): Remove function (was #if 0'ed).
2322 (modblock): Remove variable (was #if 0'ed).
2323 (parse_number): Convert prototype from K&R to ANSI C.
2324 (yyerror): Likewise.
2325 * objc-exp.y (parse_number): Likewise.
2326 (yyerror): Likewise.
2327 (yylex): Remove #if 0'ed code.
2328 * p-exp.y (uptok): Convert prototype from K&R to ANSI C.
2329 (yyerror): Likewise.
2330
2331 2012-01-16 Tom Tromey <tromey@redhat.com>
2332
2333 * NEWS: Add item.
2334 * symtab.h (compare_filenames_for_search): Declare.
2335 * symtab.c (compare_filenames_for_search): New function.
2336 (iterate_over_some_symtabs): Use it.
2337 * symfile.h (struct quick_symbol_functions)
2338 <map_symtabs_matching_filename>: Change spec.
2339 * psymtab.c (partial_map_symtabs_matching_filename): Use
2340 compare_filenames_for_search. Update for new spec.
2341 * dwarf2read.c (dw2_map_symtabs_matching_filename): Use
2342 compare_filenames_for_search. Update for new spec.
2343 * breakpoint.c (clear_command): Use compare_filenames_for_search.
2344
2345 2012-01-16 Tom Tromey <tromey@redhat.com>
2346
2347 PR python/13281:
2348 * gdbtypes.h (TYPE_FLAG_ENUM): New macro.
2349 (struct main_type) <flag_flag_enum>: New field.
2350 * dwarf2read.c (process_enumeration_scope): Detect "flag" enums.
2351 * NEWS: Add entries.
2352 * c-valprint.c (c_val_print) <TYPE_CODE_ENUM>: Handle "flag"
2353 enums.
2354 * python/lib/gdb/printing.py (_EnumInstance): New class.
2355 (FlagEnumerationPrinter): Likewise.
2356
2357 2012-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
2358
2359 * breakpoint.c (create_sals_from_address_default): New function.
2360 (create_breakpoints_sal_default): Likewise.
2361 (decode_linespec_default): Likewise.
2362 (is_marker_spec): Removed.
2363 (strace_marker_p): New function.
2364 (init_breakpoint_sal): Using `strace_marker_p' instead of
2365 `is_marker_spec'.
2366 (create_breakpoint): Call method `create_sals_from_address' from
2367 breakpoint_ops, replacing code that created SALs conditionally
2368 on the type of the breakpoint. Call method `create_breakpoints_sal',
2369 replacing code that created breakpoints conditionally on the type
2370 wanted.
2371 (base_breakpoint_create_sals_from_address): New function.
2372 (base_breakpoint_create_breakpoints_sal): Likewise.
2373 (base_breakpoint_decode_linespec): Likewise.
2374 (base_breakpoint_ops): Add methods
2375 `base_breakpoint_create_sals_from_address',
2376 `base_breakpoint_create_breakpoints_sal' and
2377 `base_breakpoint_decode_linespec'.
2378 (bkpt_create_sals_from_address): New function.
2379 (bkpt_create_breakpoints_sal): Likewise.
2380 (bkpt_decode_linespec): Likewise.
2381 (tracepoint_create_sals_from_address): Likewise.
2382 (tracepoint_create_breakpoints_sal): Likewise.
2383 (tracepoint_decode_linespec): Likewise.
2384 (strace_marker_create_sals_from_address): Likewise.
2385 (strace_marker_create_breakpoints_sal): Likewise.
2386 (strace_marker_decode_linespec): Likewise.
2387 (strace_marker_breakpoint_ops): New variable.
2388 (addr_string_to_sals): Remove `marker_spec'. Call method
2389 `decode_linespec' from breakpoint_ops, replacing code that decoded
2390 an address string into a SAL. Use `strace_marker_p' instead of
2391 `marker_spec'.
2392 (strace_command): Decide whether we are dealing with a static
2393 tracepoint with marker or not. Use the appropriate breakpoint_ops.
2394 (initialize_breakpoint_ops): Initialize new fields of breakpoint_ops.
2395 * breakpoint.h (linespec_result, linespec_sals): New forward
2396 declarations.
2397 (breakpoint_ops) <create_sals_from_address>,
2398 <create_breakpoints_sal>, <decode_linespec>: New methods.
2399
2400 2012-01-14 Doug Evans <dje@google.com>
2401
2402 * NEWS: Update text for "maint set python print-stack".
2403 It is deprecated in gdb 7.4 and deleted in 7.5.
2404
2405 2012-01-13 Eli Zaretskii <eliz@gnu.org>
2406
2407 * gdb_curses.h (MOUSE_MOVED) [__MINGW32__]: Undefine before
2408 including curses.h.
2409
2410 2012-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
2411
2412 * configure: Regenerate.
2413 * config.in: Regenerate.
2414
2415 2012-01-12 Keith Seitz <keiths@redhat.com>
2416
2417 PR mi/10586
2418 * varobj.c (ANONYMOUS_STRUCT_NAME): Define.
2419 (ANONYMOUS_UNION_NAME): Define.
2420 (is_path_expr_parent): New function.
2421 (get_path_expr_parent): New function.
2422 (is_anonymous_child): New function.
2423 (create_child_with_value): If the child is anonymous and without
2424 a name, assign an object name to it.
2425 (c_describe_child): Use get_path_expr_parent to determine
2426 the parent expression.
2427 If there field represents an anonymous struct or union and
2428 has no name, set an appropriate display name and expression.
2429 (cplus_describe_child): Likewise.
2430
2431 2012-01-12 Pedro Alves <palves@redhat.com>
2432
2433 * i386-tdep.c (i386_frame_cache_1): Also mark the frame base as
2434 available when %ebp is found to be zero (outermost).
2435
2436 2012-01-11 Andreas Tobler <andreast@fgznet.ch>
2437
2438 * common/gdb_assert.h (gdb_static_assert): Rename static_assert to
2439 an internal gdb_static_assert.
2440 * mi/mi-common.c: Rename static_assert to gdb_static_assert.
2441
2442 2012-01-11 Tom Tromey <tromey@redhat.com>
2443
2444 PR gdb/9598:
2445 * breakpoint.c (_initialize_breakpoint): Fix help for "catch
2446 catch" and "catch throw".
2447
2448 2012-01-11 Paul Hilfinger <hilfingr@adacore.com>
2449
2450 * blockframe.c (block_innermost_frame): Start search from selected
2451 frame, if present, or otherwise the current frame.
2452
2453 * c-exp.y (variable): Update innermost_block for
2454 'block COLONCOLON NAME' clause.
2455 * m2-exp.y (variable): Ditto.
2456 * objc-exp.y (variable): Ditto.
2457
2458 2012-01-10 Tom Tromey <tromey@redhat.com>
2459
2460 PR python/13199:
2461 * python/python.c (finish_python_initialization): Set sys.argv.
2462
2463 2012-01-10 Doug Evans <dje@google.com>
2464
2465 * dwarf2read.c (dwarf_decode_lines): Remove arg "abfd". New arg
2466 "want_line_info". All callers updated.
2467 (dwarf_decode_lines_1): New function.
2468 (handle_DW_AT_stmt_list): Add function comment.
2469 New arg "want_line_info". All callers updated.
2470 (read_file_scope,read_type_unit_scope): Move comment from
2471 handle_DW_AT_stmt_list to here.
2472
2473 2012-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
2474
2475 Fix regression after libiberty/ update for GCC PR 6057 and others.
2476 * c-exp.y (operator) <OPERATOR DELETE>
2477 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
2478 * cp-name-parser.y (fill_comp, make_operator, make_dtor)
2479 (make_builtin_type, make_name): New variable i, add gdb_assert.
2480 (operator) <OPERATOR NEW>: Update ARGS to 3.
2481 (operator) <OPERATOR DELETE>: Add trailing space.
2482 (operator) <OPERATOR NEW '[' ']'>: Update ARGS to 3.
2483 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
2484 * cp-support.c (cp_canonicalize_string): Check NULL from
2485 cp_comp_to_string, call warning and return.
2486
2487 2012-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
2488
2489 Fix duplicate .o files after omitting libbfd.a.
2490 * Makefile.in (ALL_TARGET_OBS): Remove corelow.o.
2491 (SFILES): Add corelow.c.
2492 (COMMON_OBS): Add corelow.o.
2493 (ALLDEPFILES): Remove corelow.c.
2494 * config/alpha/alpha-linux.mh (NATDEPFILES): Remove corelow.o.
2495 * config/alpha/alpha-osf3.mh: Likewise.
2496 * config/alpha/fbsd.mh: Likewise.
2497 * config/arm/nbsdaout.mh: Likewise.
2498 * config/arm/nbsdelf.mh: Likewise.
2499 * config/i386/i386gnu.mh: Likewise.
2500 * config/ia64/hpux.mh: Likewise.
2501 * config/ia64/linux.mh: Likewise.
2502 * config/m32r/linux.mh: Likewise.
2503 * config/m68k/linux.mh: Likewise.
2504 * config/mips/irix5.mh: Likewise.
2505 * config/mips/irix6.mh: Likewise.
2506 * config/pa/hpux.mh: Likewise.
2507 * config/pa/linux.mh: Likewise.
2508 * config/powerpc/aix.mh: Likewise.
2509 * config/sparc/linux.mh: Likewise.
2510 * config/sparc/linux64.mh: Likewise.
2511 * config/sparc/sol2.mh: Likewise.
2512 * config/vax/vax.mh: Likewise.
2513 * configure.tgt (alpha*-*-freebsd* alpha*-*-kfreebsd*-gnu)
2514 (alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu, alpha*-*-openbsd*)
2515 (am33_2.0*-*-linux*, arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-linux*)
2516 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-netbsd*)
2517 (hppa*-*-openbsd*, i[34567]86-*-dicos*, i[34567]86-*-freebsd*)
2518 (i[34567]86-*-kfreebsd*-gnu, i[34567]86-*-netbsd*)
2519 (i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*, i[34567]86-*-nto*)
2520 (i[34567]86-*-solaris2.1[0-9]*, x86_64-*-solaris2.1[0-9]*)
2521 (i[34567]86-*-solaris*, i[34567]86-*-linux*, i[34567]86-*-cygwin*)
2522 (i[34567]86-*-mingw32*, m68*-*-netbsd*, m68*-*-knetbsd*-gnu)
2523 (m68*-*-openbsd*, m88*-*-openbsd*, microblaze*-linux-*)
2524 (microblaze*-*-linux*, mips*-*-linux*, mips*-*-netbsd*)
2525 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
2526 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-linux*)
2527 (powerpc64-*-linux*, s390*-*-*, score-*-*, sh*-*-linux*)
2528 (sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
2529 (sparc*-*-freebsd*, sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*)
2530 (sparc-*-knetbsd*-gnu, sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu)
2531 (sparc-*-openbsd*, sparc64-*-openbsd*, tic6x-*-*linux, vax-*-netbsd*)
2532 (vax-*-knetbsd*-gnu, vax-*-openbsd*, x86_64-*-dicos*, x86_64-*-linux*)
2533 (x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu, x86_64-*-netbsd*)
2534 (x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*, xtensa*-*-linux*): Remove
2535 corelow.o from gdb_target_obs.
2536 * corefile.c (core_target): Update the comment on NULL value.
2537 (core_file_command): Replace error by gdb_assert on CORE_TARGET.
2538 * corelow.c (sniff_core_bfd): Call error instead of warning on zero
2539 MATCHES. Drop YUMMY set on NULL.
2540 (core_close): Do not call exit_inferior_silent on zero PID. Do not
2541 reclaim CORE_DATA if it is already NULL.
2542
2543 2012-01-09 Doug Evans <dje@google.com>
2544
2545 * gdbtypes.c (safe_parse_type): Initialize type to keep gcc happy.
2546 * varobj.c (varobj_set_value): Initialize val,value to keep gcc happy.
2547
2548 2012-01-09 Keith Seitz <keiths@redhat.com>
2549
2550 * breakpoint.c (wrapper.h): Don't include.
2551
2552 2012-01-09 Keith Seitz <keiths@redhat.com>
2553
2554 * Makefile.in (SFILES): Remove wrapper.c.
2555 (HFILES_NO_SRCDIR): Remove wrapper.h.
2556 (COMMON_OBS): Remove wrapper.o.
2557 * cli/cli-interp.c: Don't inlude wrapper.h.
2558 * corelow.c: Likewise.
2559 (core_open): Replace gdb_target_find_new_threads with
2560 TRY_CATCH around target_find_new_threads.
2561 * eval.c (fetch_subexp_value): Likewise for value_fetch_lazy.
2562 * gdbtypes.c (safe_parse_type): Likewise for parse_and_eval_type.
2563 * varobj.c (varobj_create): Likewise for parse_exp_1 and
2564 evaluate_expression.
2565 (varobj_set_value): Likewise for evaluate_expression and
2566 value_assign.
2567 (install_new_variable): Likewise for value_fetch_lazy.
2568 (adjust_value_for_child_access): Likewise for value_ind.
2569 (c_describe_child): Likewise for value_subscript and
2570 value_ind.
2571 (c_value_of_root): Likewise for evaluate_expression.
2572 * wrapper.c: Remove.
2573 * wrapper.h: Remove.
2574
2575 2012-01-09 Doug Evans <dje@google.com>
2576
2577 * dwarf2read.c (read_and_check_comp_unit_head): Renamed from
2578 partial_read_comp_unit_head. Replace "buffer", "buffer_size" and
2579 "abfd" args with "section". All callers updated.
2580 Error checking code moved ...
2581 (error_check_comp_unit_head): ... here. New function.
2582 (read_and_check_type_unit_head): Renamed from read_type_unit_head.
2583 Delete arg "abfd". New arg "type_offset". All callers updated.
2584 (create_debug_types_hash_table): Simplify by using
2585 read_and_check_type_unit_head.
2586
2587 * parser-defs.h (namecopy): Delete.
2588 * parse.c (namecopy, namecopy_size): Move into copy_name.
2589
2590 2012-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2591
2592 Partially fix duplicate .o files after omitting libbfd.a.
2593 * config/alpha/alpha-osf3.mh (NATDEPFILES): Remove solib.o.
2594 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
2595 * config/i386/obsdaout.mh (NATDEPFILES): Remove solib.o.
2596 * config/m68k/nbsdaout.mh (NATDEPFILES): Remove solib.o.
2597 * config/m68k/obsd.mh (NATDEPFILES): Remove solib.o.
2598 * config/powerpc/aix.mh (NATDEPFILES): Remove xcoffread.o.
2599 * config/vax/nbsdaout.mh (NATDEPFILES): Remove solib.o.
2600
2601 2012-01-09 Pedro Alves <palves@redhat.com>
2602
2603 * MAINTAINERS: Update my email address.
2604
2605 2012-01-08 Doug Evans <dje@google.com>
2606
2607 * dwarf2read.c (dwarf2_per_objfile): Rename n_type_comp_units to
2608 n_type_units. Rename type_comp_units to all_type_units.
2609 All uses updated.
2610 (add_signatured_type_cu_to_table): Renamed from
2611 add_signatured_type_cu_to_list. All callers updated.
2612
2613 * gdbtypes.h (struct cplus_struct_type): Delete member
2614 nfn_fields_total. All uses removed.
2615
2616 2012-01-06 Doug Evans <dje@google.com>
2617
2618 * dwarf2read.c: Move FIXME from dwarf2_build_psymtabs_hard
2619 to top of file.
2620 (dwarf2_find_comp_unit): Delete.
2621 (process_psymtab_comp_unit): Make result "void".
2622 Delete args buffer, info_ptr, buffer_size, and replace with
2623 "section". All callers updated.
2624 (dwarf2_build_psymtabs_hard): Simplify.
2625
2626 2012-01-06 Sergio Durigan Junior <sergiodj@redhat.com>
2627 Thiago Jung Bauermann <bauerman@br.ibm.com>
2628
2629 * ada-lang.c (ada_exception_name_addr): Add `volatile' keyword
2630 before `struct gdb_exception'.
2631 * breakpoint.c (update_global_location_list_nothrow)
2632 (update_breakpoint_locations, enable_breakpoint_disp): Likewise.
2633 * cp-abi.c (value_rtti_type): Likewise.
2634 * cp-support.c (cp_validate_operator): Likewise.
2635 * infrun.c (insert_exception_resume_breakpoint)
2636 (check_exception_resume, keep_going): Likewise.
2637 * mi-interp.c (mi_breakpoint_created)
2638 (mi_breakpoint_modified): Likewise.
2639 * rs6000-aix-tdep.c (rs6000_convert_from_func_ptr_addr): Likewise.
2640 * solib-ia64-hpux.c (ia64_hpux_at_dld_breakpoint_p)
2641 (ia64_hpux_handle_dld_breakpoint_1): Likewise.
2642
2643 2012-01-05 Doug Evans <dje@google.com>
2644
2645 * dwarf2read.c (statement_prologue): Delete, unused.
2646
2647 * dwarf2read.c (dwarf2_per_cu_addr_size): Make result type an int.
2648 * dwarf2loc.h (dwarf2_per_cu_addr_size): Update.
2649
2650 * dwarf2read.c (comp_unit_header): Delete, unused.
2651
2652 2012-01-05 Ulrich Weigand <uweigand@de.ibm.com>
2653
2654 * configure.tgt [s390*-*-*] (gdb_target_obs): Add corelow.o.
2655 * config/s390/s390.mh (NATDEPFILES): Remove corelow.o.
2656
2657 2012-01-05 Khoo Yit Phang <khooyp@cs.umd.edu>
2658
2659 * infrun.c (normal_stop): Don't skip calling the normal_stop
2660 observers if the thread was doing a multi-step, but stopped for
2661 some reason other than stepping.
2662
2663 2012-01-05 Pedro Alves <alves.ped@gmail.com>
2664
2665 * cli/cli-decode.h: Add comments.
2666 (CMD_LIST_AMBIGUOUS): Moved to command.h
2667 (add_cmd, add_alias_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
2668 (set_cmd_cfunc, set_cmd_sfunc, set_cmd_completer, cmd_cfunc_eq)
2669 (set_cmd_context, get_cmd_context, lookup_cmd, lookup_cmd_1)
2670 (deprecate_cmd, deprecated_cmd_warning, lookup_cmd_composition)
2671 (add_com, add_com_alias, add_info, add_info_alias)
2672 (complete_on_cmdlist, complete_on_enum, help_list): Remove
2673 declarations.
2674 * command.h: Add and adjust comments.
2675 (CMD_LIST_AMBIGUOUS): Moved here.
2676 (help_cmd, help_cmd_list): Delete declarations.
2677
2678 2012-01-04 Doug Evans <dje@google.com>
2679
2680 * dwarf2read.c (dwarf2_read_abbrevs): Delete arg "abfd".
2681 All callers updated.
2682 (load_full_type_unit): Renamed from read_signatured_type_at_offset.
2683 Replace all arguments with "per_cu". All callers updated.
2684
2685 * dwarf2read.c (dwarf2_per_cu_data): Remove outdated comment.
2686
2687 * dwarf2read.c (init_one_comp_unit): Delete arg "objfile".
2688 New arg "per_cu". All callers updated.
2689
2690 Delete #if 0'd out code.
2691 * language.c (binop_result_type): Delete.
2692 (simple_type, ordered_type, same_type, integral_type): Delete.
2693 (numeric_type, character_type, string_type, boolean_type): Delete.
2694 (float_type, structured_type): Delete.
2695 * language.h: Update.
2696
2697 2012-01-04 Tom Tromey <tromey@redhat.com>
2698
2699 * python/py-value.c (valpy_binop): Initialize 'res_val'.
2700
2701 2012-01-04 Joel Brobecker <brobecker@adacore.com>
2702
2703 * corefile.c (close_exec_file): Delete.
2704 (reopen_exec_file): Remove commented out code that seems related
2705 to close_exec_file, which is being deleted here.
2706 * inferior.h (close_exec_file): Delete.
2707 * fork-child.c (fork_inferior): Remove call to fork_inferior.
2708
2709 2012-01-04 Joel Brobecker <brobecker@adacore.com>
2710
2711 * ada-lang.c: #include "cli/cli-utils.h".
2712 (get_selections): Use skip_spaces.
2713 (ada_get_next_arg): Use skip_spaces and skip_to_space.
2714 (catch_ada_exception_command_split): Use skip_spaces.
2715 (ada_decode_assert_location): Likewise.
2716
2717 2012-01-04 Joel Brobecker <brobecker@adacore.com>
2718
2719 * linespec.c (decode_line_internal): Check for C++ or Java
2720 compound constructs only if the current language is C, C++
2721 or Java.
2722
2723 2012-01-04 Jan Kratochvil <jan.kratochvil@redhat.com>
2724
2725 Revert:
2726 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2727 Joel Brobecker <brobecker@adacore.com>
2728 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
2729 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
2730 3 times.
2731 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
2732 fall through into AT_ENTRY_POINT.
2733 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
2734 DUMMY_ADDR with it.
2735 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
2736 PPC_INSN_SIZE skip to 3 times.
2737
2738 2012-01-04 Joel Brobecker <brobecker@adacore.com>
2739
2740 * linespec.c (add_minsym): Preserve function descriptors.
2741
2742 2012-01-04 Ulrich Weigand <uweigand@de.ibm.com>
2743
2744 * breakpoint.c (all_locations_are_pending): Consider locations
2745 in program spaces executing during startup pending as well.
2746
2747 2012-01-04 Joel Brobecker <brobecker@adacore.com>
2748
2749 Copyright year update in most files of the GDB Project.
2750
2751 2012-01-04 Joel Brobecker <brobecker@adacore.com>
2752
2753 * copyright.sh: Delete.
2754 * copyright.py: Rewrite.
2755
2756 2012-01-04 Joel Brobecker <brobecker@adacore.com>
2757
2758 * gnulib/extra/update-copyright: New file, imported from gnulib.
2759
2760 2012-01-04 Joel Brobecker <brobecker@adacore.com>
2761
2762 * README (Copyright and License Notices): New section.
2763
2764 2012-01-03 Tom Tromey <tromey@redhat.com>
2765
2766 PR python/12533:
2767 * python/py-value.c (valpy_dereference, valpy_get_address
2768 valpy_get_dynamic_type, valpy_lazy_string, valpy_do_cast)
2769 (valpy_getitem, valpy_call, valpy_binop, valpy_negative)
2770 (valpy_absolute, valpy_richcompare): Free intermediate values.
2771
2772 2011-01-03 Joel Brobecker <brobecker@adacore.com>
2773
2774 * ada-lang.c: Reformat the copyright notice.
2775
2776 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2777
2778 * Makefile.in (ALL_TARGET_OBS): Remove solib-target.o.
2779 * configure.tgt (arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-symbianelf*)
2780 (i[34567]86-*-dicos*, i[34567]86-*-cygwin*, i[34567]86-*-mingw32*)
2781 (x86_64-*-dicos*, x86_64-*-mingw*): Remove solib-target.o.
2782 Revert this part of:
2783 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2784 Build gdb directly from *.o files not using libgdb.a.
2785 * Makefile.in (COMMON_OBS): Remove solib-target.o.
2786
2787 2012-01-02 Joel Brobecker <brobecker@adacore.com>
2788
2789 * gdb/common/gdb_thread_db.h, gdb/dbxread.c, gdb/environ.c,
2790 gdb/gcore.h, gdb/rs6000-tdep.h, gdb/s390-nat.c, gdb/tic6x-tdep.c:
2791 Reformat the copyright header.
2792
2793 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2794
2795 Revert this part of:
2796 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2797 Remove the gdbtui binary.
2798 * gdb.c (main): Remove args.interpreter_p initialization.
2799 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
2800 * main.h (struct captured_main_args): Remove interpreter_p.
2801
2802 2012-01-02 Joel Brobecker <brobecker@adacore.com>
2803
2804 * config/djgpp/fnchange.lst: Add entry for ChangeLog-2011.
2805
2806 2012-01-02 Joel Brobecker <brobecker@adacore.com>
2807
2808 * top.c (print_gdb_version): Update copyright year.
2809
2810 2012-01-02 Yao Qi <yao@codesourcery.com>
2811
2812 * inf-ptrace.c (inf_ptrace_xfer_partial): Reindent.
2813
2814 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2815 Joel Brobecker <brobecker@adacore.com>
2816
2817 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
2818 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
2819 3 times.
2820 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
2821 fall through into AT_ENTRY_POINT.
2822 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
2823 DUMMY_ADDR with it.
2824 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
2825 PPC_INSN_SIZE skip to 3 times.
2826
2827 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2828
2829 * amd64-linux-nat.c (update_debug_registers_callback): New comment on
2830 the return value.
2831 * i386-linux-nat.c (update_debug_registers_callback): Likewise.
2832
2833 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2834
2835 Build gdb directly from *.o files not using libgdb.a.
2836 * Makefile.in (SUBDIR_TUI_OBS): Remove duplicate tui.o.
2837 (COMMON_OBS): Remove solib-target.o.
2838 (LIBGDB_OBS, libgdb.a): Move it before the gdb$(EXEEXT) rule.
2839 (gdb$(EXEEXT)): Replace libgdb.a with $(LIBGDB_OBS).
2840 (LIBGDB_OBS, libgdb.a): Move it above.
2841 * configure.tgt (alpha*-*-linux*, alpha*-*-freebsd*)
2842 (alpha*-*-kfreebsd*-gnu, alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu)
2843 (alpha*-*-openbsd*, am33_2.0*-*-linux*, arm*-wince-pe)
2844 (arm*-*-mingw32ce*, arm*-*-linux*, arm*-*-netbsd*, arm*-*-knetbsd*-gnu)
2845 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-linux*)
2846 (hppa*-*-netbsd*, hppa*-*-openbsd*, i[34567]86-*-darwin*)
2847 (i[34567]86-*-dicos*, i[34567]86-*-freebsd*, i[34567]86-*-kfreebsd*-gnu)
2848 (i[34567]86-*-netbsd*, i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*)
2849 (i[34567]86-*-nto*, i[34567]86-*-solaris2.1[0-9]*)
2850 (x86_64-*-solaris2.1[0-9]*, i[34567]86-*-solaris*, i[34567]86-*-linux*)
2851 (i[34567]86-*-gnu*, ia64-*-linux*, m32r*-*-linux*, m68*-*-linux*)
2852 (m68*-*-netbsd*, m68*-*-knetbsd*-gnu, m68*-*-openbsd*)
2853 (microblaze*-linux-*, microblaze*-*-linux*, mips*-sgi-irix5*)
2854 (mips*-sgi-irix6*, mips*-*-linux*, mips*-*-netbsd*)
2855 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
2856 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-aix*, rs6000-*-*)
2857 (powerpc-*-linux*, powerpc64-*-linux*, powerpc*-*-*, s390*-*-*)
2858 (sh*-*-linux*, sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
2859 (sparc-*-linux*, sparc64-*-linux*, sparc*-*-freebsd*)
2860 (sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*, sparc-*-knetbsd*-gnu)
2861 (sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu, sparc-*-openbsd*)
2862 (sparc64-*-openbsd*, sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*)
2863 (sparc-*-solaris2*, sparcv9-*-solaris2*, sparc64-*-solaris2*)
2864 (vax-*-netbsd*, vax-*-knetbsd*-gnu, x86_64-*-darwin*, x86_64-*-dicos*)
2865 (x86_64-*-linux*, x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu)
2866 (x86_64-*-netbsd*, x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*)
2867 (xtensa*-*-linux*, xtensa*): Remove solib.o from gdb_target_obs.
2868
2869 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2870
2871 Remove the gdbtui binary.
2872 * .gitignore (/gdbtui): Remove.
2873 * Makefile.in (TUI): Remove.
2874 (SUBDIR_TUI_OBS): Remove tui-main.o.
2875 (SUBDIR_TUI_SRCS): Remove tui/tui-main.c.
2876 (all-tui, install-tui, uninstall-tui, $(TUI)$(EXEEXT), clean-tui)
2877 (tui-main.o): Remove.
2878 (all_object_files): Remove tui-main.o.
2879 * NEWS: New note for the gdbtui removal.
2880 * configure: Rebuilt.
2881 * configure.ac: No longer add all-tui, clean-tui, install-tui and
2882 uninstall-tui to CONFIG_ALL, CONFIG_CLEAN, CONFIG_INSTALL and
2883 CONFIG_UNINSTALL respectively.
2884 * gdb.c (main): Remove args.interpreter_p initialization.
2885 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
2886 * main.h (struct captured_main_args): Remove interpreter_p.
2887 * tui/tui-main.c: Remove.
2888
2889 2012-01-01 Doug Evans <dje@google.com>
2890
2891 * dwarf2read.c (dwarf2_compute_name): Simplify objfile references.
2892 (dwarf2_physname, read_import_statement): Ditto.
2893 (read_call_site_scope, dwarf2_record_block_ranges): Ditto.
2894 (process_structure_scope read_subroutine_type): Ditto.
2895 (read_typedef, load_partial_dies, read_partial_die): Ditto.
2896 (find_partial_die, dwarf_decode_lines, lookup_die_type): Ditto.
2897 (dwarf2_fetch_die_location_block): Ditto.
2898 (dwarf_decode_macros, dwarf2_symbol_mark_computed): Ditto.
2899
2900 * dwarf2read.c (read_signatured_type): Delete `objfile' arg.
2901 All callers updated.
2902 (load_full_comp_unit, queue_comp_unit, process_queue): Ditto.
2903 (dw2_do_instantiate_symtab, dw2_instantiate_symtab): Ditto.
2904 (process_psymtab_comp_unit, load_partial_comp_unit): Ditto.
2905
2906 * dwarf2read.c (load_cu): Move assert to more useful location.
2907
2908 * dwarf2read.c (free_heap_comp_unit): Renamed from free_one_comp_unit.
2909 All callers updated.
2910
2911 * dwarf2read.c (dwarf2_per_objfile): Add comment.
2912 (dwarf2_elf_names): Minor reformat.
2913 (dwarf2_per_cu_data): Tweak comment.
2914 (dwarf2_read_section): Fix comment.
2915 (create_all_comp_units): Fix comment.
2916 (load_full_comp_unit): Fix comment.
2917 (process_full_comp_unit): Fix comment.
2918 (read_signatured_type): Fix comment.
2919
2920 For older changes see ChangeLog-2011.
2921 \f
2922 Local Variables:
2923 mode: change-log
2924 left-margin: 8
2925 fill-column: 74
2926 version-control: never
2927 coding: utf-8
2928 End: