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