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