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