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