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