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