ada-lang.c:ada_find_renaming_symbol minor improvement.
[platform/upstream/binutils.git] / gdb / ChangeLog
1 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
2
3         * ada-lang.h (ada_find_renaming_symbol): Replace parameter
4         "name" with "struct symbol *name_sym".
5         * ada-exp.y (write_var_or_type): Update call to
6         ada_find_renaming_symbol.
7         "name" with "struct symbol *name_sym". Adjust Implementation
8         accordingly.  Adjust the function documentation.
9
10 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
11
12         * ada-lang.h (ada_find_any_symbol, ada_find_any_type): Delete.
13         * ada-lang.c (ada_find_any_type): Add advance declaration.
14         Make static.  Replace ada_find_any_symbol by
15         ada_find_any_type_symbol.
16         (ada_find_any_type_symbol): Renames ada_find_any_symbol.
17         Improve function description.  Make static.
18         (ada_find_renaming_symbol, find_old_style_renaming_symbol):
19         Replace ada_find_any_symbol by ada_find_any_type_symbol.
20
21 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
22
23         * ada-lang.c (struct tag_args): Delete.
24         (ada_get_tsd_type): Function body moved up in source file.
25         (ada_tag_name_1, ada_tag_name_2): Delete.
26         (ada_get_tsd_from_tag): New function.
27         (ada_tag_name_from_tsd): New function.
28         (ada_tag_name): Use a TRY_CATCH block instead of catch_errors
29         to determine the tag name.
30
31 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
32
33         * ada-lang.h (ada_get_decoded_value, ada_get_decoded_type): Add
34         declaration.
35         * ada-lang.c (ada_get_decoded_value, ada_get_decoded_type): New
36         function.
37
38 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
39
40         * ada-lang.c (ada_is_ignored_field): Rewrite wrong comment.
41
42 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
43
44         * ada-lang.c (ada_lookup_symbol_list): Only cache the result of
45         full searches.
46
47 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
48
49         * ada-lang.c (constrained_packed_array_type): If there is a
50         parallel XA type, use it to determine the array index type.
51
52 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
53
54         * ada-valprint.c (ada_val_print_1): If our value is a reference
55         to an array descriptor, dereference it before converting it
56         to a simple array.
57
58 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
59
60         * ada-lang.c (ada_to_fixed_value): Call unwrap_value before
61         creating fixed value.
62         (ada_value_ind, ada_coerce_ref, assign_component)
63         (ada_evaluate_subexp): Remove call to unwrap_value before
64         call to ada_to_fixed_value.
65
66 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
67
68         * ada-lang.c (to_fixed_array_type): Set result's type name.
69
70 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
71
72         * ada-lang.c (catch_ada_exception_command_split): Add new
73         argument cond_string.  Add support for condition at end of
74         "catch exception" commands.
75         (ada_decode_exception_location): Add new argument cond_string.
76         Update call to catch_ada_exception_command_split.
77         (create_ada_exception_catchpoint): Add new argument cond_string.
78         Set the breakpoint condition if needed.
79         (catch_ada_exception_command): Update call to
80         ada_decode_exception_location.
81         (ada_decode_assert_location): Add function documentation.
82         Add support for condition at end of "catch assert" command.
83         (catch_assert_command): Update calls to ada_decode_assert_location
84         and create_ada_exception_catchpoint.
85
86 2012-02-29  Jan Kratochvil  <jan.kratochvil@redhat.com>
87
88         Fix disp-step-syscall.exp: fork: single step over fork.
89         * i386-linux-tdep.c (-i386_linux_get_syscall_number): Rename to ...
90         (i386_linux_get_syscall_number_from_regcache): ... here, new function
91         comment, change parameters gdbarch and ptid to regcache.  Remove
92         parameter regcache, initialize gdbarch from regcache here.
93         (i386_linux_get_syscall_number, i386_linux_displaced_step_copy_insn):
94         New functions.
95         (i386_linux_init_abi): Install i386_linux_displaced_step_copy_insn
96         instead.
97         * i386-tdep.c (i386_syscall_p): Check also for 'sysenter' and
98         'syscall'.  Make the 'int' check more strict.
99
100 2012-02-29  Jan Kratochvil  <jan.kratochvil@redhat.com>
101
102         Fix reverse mode for syscall on AMD CPUs in 32-bit mode.
103         * i386-linux-tdep.c (i386_linux_intx80_sysenter_record): Rename to ...
104         (i386_linux_intx80_sysenter_syscall_record): ... here.
105         (i386_linux_init_abi): Initialize also I386_SYSCALL_RECORD.
106         Use the renamed function name.
107
108 2012-02-29  Jan Kratochvil  <jan.kratochvil@redhat.com>
109
110         * arm-linux-tdep.c (arm_linux_copy_svc): Reset stale FRAME.
111         * breakpoint.c (until_break_command): Likewise.
112         * elfread.c (elf_gnu_ifunc_resolver_stop): Likewise.
113         * infcall.c (call_function_by_hand): Likewise.
114         * infcmd.c (finish_forward): Likewise.
115         * infrun.c (insert_exception_resume_breakpoint): Likewise.
116
117 2012-02-28  Joel Brobecker  <brobecker@adacore.com>
118
119         From Tristan Gingold  <gingold@adacore.com>.
120         * ada-tasks.c (ada_tasks_inferior_data_sniffer): Rework code to
121         avoid variable assignments inside condition.
122
123 2012-02-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
124
125         Fix static analysis issue found by cppcheck.
126         * microblaze-tdep.c (microblaze_extract_return_value): Fix
127         uninitialized BUF for size 2.
128
129 2012-02-27  Chris Dearman  <chris@mips.com>
130             Nathan Froyd  <froydnj@codesourcery.com>
131             Maciej W. Rozycki  <macro@codesourcery.com>
132
133         * mips-tdep.c (mips32_instruction_has_delay_slot): New function.
134         (mips16_instruction_has_delay_slot): Likewise.
135         (mips_segment_boundary): Likewise.
136         (mips_adjust_breakpoint_address): Likewise.
137         (mips_gdbarch_init): Use mips_adjust_breakpoint_address.
138
139 2012-02-27  Maciej W. Rozycki  <macro@mips.com>
140             Maciej W. Rozycki  <macro@codesourcery.com>
141
142         * infrun.c (handle_inferior_event): Don't proceed through
143         shared library trampolines if stepping at the machine
144         instruction level.
145
146 2012-02-27  Maciej W. Rozycki  <macro@codesourcery.com>
147
148         * mips-linux-tdep.c (mips_linux_init_abi): Set num_pseudo_regs
149         too.
150
151 2012-02-27  Thomas Schwinge  <thomas@codesourcery.com>
152
153         * sh-tdep.c (sh_make_stub_cache, sh_stub_this_id)
154         (sh_stub_unwind_sniffer): New functions.
155         (sh_stub_unwind): New variable.
156         (sh_gdbarch_init): Wire everything.
157
158 2012-02-27  Pedro Alves  <palves@redhat.com>
159
160         * linux-nat.c (pid_is_stopped): Delete, moved to common/.
161         (linux_nat_post_attach_wait): Adjust to use
162         linux_proc_pid_is_stopped.
163         * common/linux-procfs.h (linux_proc_pid_is_stopped): Declare.
164         * common/linux-procfs.c (linux_proc_pid_is_stopped): New function,
165         based on pid_is_stopped from both linux-nat.c and
166         gdbserver/linux-low.c, and renamed.
167
168 2012-02-24  Maciej W. Rozycki  <macro@codesourcery.com>
169
170         * remote.c (remote_watchpoint_addr_within_range): New function.
171         (init_remote_ops): Use it.
172
173 2012-02-24  Maciej W. Rozycki  <macro@codesourcery.com>
174
175         * target.h (target_watchpoint_addr_within_range): Document macro.
176
177 2012-02-24  Pedro Alves  <palves@redhat.com>
178
179         * stack.c (set_last_displayed_sal): Issue internal_error instead
180         of warning, and issue it after clearing the last displayed sal.
181
182 2012-02-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
183             Pedro Alves  <palves@redhat.com>
184
185         * breakpoint.c (until_break_command): Install breakpoints after
186         all frame manipulations.
187
188 2012-02-24  Luis Machado  <lgustavo@codesourcery.com>
189
190         * remote.c (remote_supports_cond_breakpoints): New forward
191         declaration.
192         (remote_add_target_side_condition): New function.
193         (remote_insert_breakpoint): Add target-side breakpoint
194         conditional if supported.
195         (remote_insert_hw_breakpoint): Likewise.
196         (init_remote_ops): Set to_supports_evaluation_of_breakpoint_conditions
197         hook.
198
199         * target.c (update_current_target): Inherit
200         to_supports_evaluation_of_breakpoint_conditions.
201         Default to_supports_evaluation_of_breakpoint_conditions to return_zero.
202
203         * target.h (struct target_ops)
204         <to_supports_evaluation_of_breakpoint_conditions>: New field.
205         (target_supports_evaluation_of_breakpoint_conditions): New #define.
206
207         * breakpoint.c (get_first_locp_gte_addr): New forward declaration.
208         (condition_evaluation_both, condition_evaluation_auto,
209         condition_evaluation_host, condition_evaluation_target,
210         condition_evaluation_enums, condition_evaluation_mode_1,
211         condition_evaluation_mode): New static globals.
212         (translate_condition_evaluation_mode): New function.
213         (breakpoint_condition_evaluation_mode): New function.
214         (gdb_evaluates_breakpoint_condition_p): New function.
215         (ALL_BP_LOCATIONS_AT_ADDR): New helper macro.
216         (mark_breakpoint_modified): New function.
217         (mark_breakpoint_location_modified): New function.
218         (set_condition_evaluation_mode): New function.
219         (show_condition_evaluation_mode): New function.
220         (bp_location_compare_addrs): New function.
221         (get_first_location_gte_addr): New helper function.
222         (set_breakpoint_condition): Free condition bytecode if locations
223         has become unconditional.  Call mark_breakpoint_modified (...).
224         (condition_command): Call update_global_location_list (1) for
225         breakpoints.
226         (breakpoint_xfer_memory): Use is_breakpoint (...).
227         (is_breakpoint): New function.
228         (parse_cond_to_aexpr): New function.
229         (build_target_condition_list): New function.
230         (insert_bp_location): Handle target-side conditional
231         breakpoints and call build_target_condition_list (...).
232         (update_inserted_breakpoint_locations): New function.
233         (insert_breakpoint_locations): Handle target-side conditional
234         breakpoints.
235         (bpstat_check_breakpoint_conditions): Add comment.
236         (bp_condition_evaluator): New function.
237         (bp_location_condition_evaluator): New function.
238         (print_breakpoint_location): Print information on where the condition
239         will be evaluated.
240         (print_one_breakpoint_location): Likewise.
241         (init_bp_location): Call mark_breakpoint_location_modified (...) for
242         breakpoint location.
243         (force_breakpoint_reinsertion): New functions.
244         (update_global_location_list): Handle target-side breakpoint
245         conditions.
246         Reinsert locations that are already inserted if conditions have
247         changed.
248         (bp_location_dtor): Free agent expression bytecode.
249         (disable_breakpoint): Call mark_breakpoint_modified (...).
250         Call update_global_location_list (...) with parameter 1 for breakpoints.
251         (disable_command): Call mark_breakpoint_location_modified (...).
252         Call update_global_location_list (...) with parameter 1 for breakpoints.
253         (enable_breakpoint_disp): Call mark_breakpoint_modified (...).
254         (enable_command): mark_breakpoint_location_modified (...).
255         (_initialize_breakpoint): Update documentation and add
256         condition-evaluation breakpoint subcommand.
257
258         * breakpoint.h: Include ax.h.
259         (condition_list): New data structure.
260         (condition_status): New enum.
261         (bp_target_info) <cond_list>: New field.
262         (bp_location) <condition_changed, cond_bytecode>: New fields.
263         (is_breakpoint): New prototype.
264
265 2012-02-24  Luis Machado  <lgustavo@codesourcery.com>
266
267         * remote.c (remote_state) <cond_breakpoints>: New field.
268         (PACKET_ConditionalBreakpoints): New enum.
269         (remote_cond_breakpoint_feature): New function.
270         (remote_protocol_features): Add new ConditionalBreakpoints entry.
271         (remote_supports_cond_breakpoints): New function.
272         (_initialize_remote): Add new packet configuration for
273         target-side conditional breakpoints.
274
275 2012-02-24  Luis Machado  <lgustavo@codesourcery.com>
276
277         * NEWS: Mention target-side conditional breakpoint support,
278         new condition-evaluation breakpoint subcommand and remote
279         packet extensions.
280
281 2012-02-24  Luis Machado  <lgustavo@codesourcery.com>
282
283         * breakpoint.c (bp_location_compare): Sort by pspace before sorting by
284         number.
285
286 2012-02-24  Thomas Schwinge  <thomas@codesourcery.com>
287
288         * sh-tdep.c (sh_skip_prologue): Use skip_prologue_using_sal.
289         (after_prologue): Remove.
290
291 2012-02-23  Tom Tromey  <tromey@redhat.com>
292
293         * jv-valprint.c (java_val_print): Remove dead code.
294
295 2012-02-23  Tristan Gingold  <gingold@adacore.com>
296
297        * ada-tasks.c (struct ada_tasks_inferior_data): Add
298         known_tasks_element and known_tasks_length fields.
299         (read_known_tasks_array): Change argument type.  Use pointer type
300         and number of elements from DATA.  Adjust.
301         (read_known_tasks_list): Likewise.
302         (get_known_tasks_addr): Remove.
303         (ada_set_current_inferior_known_tasks_addr): Renamed to ...
304         (ada_tasks_inferior_data_sniffer): ... this.  Use symtab for element
305         type and array length.  Merge former get_known_tasks_addr code.
306
307 2012-02-23  Jan Kratochvil  <jan.kratochvil@redhat.com>
308
309         PR backtrace/13716
310         * infcmd.c (finish_forward): New variable frame_id, initialize it, use
311         it after set_momentary_breakpoint.
312
313 2012-02-22  Sterling Augustine  <saugustine@google.com>
314
315         PR 13689:
316         * breakpoint.c (watchpoint_exp_is_constant): Add UNOP_CAST to switch.
317
318 2012-02-22  Gary Benson  <gbenson@redhat.com>
319
320         * dwarf2read.c (dwarf2_read_index): Correct misspelling.
321         (find_slot_in_mapped_hash): Likewise.
322
323 2012-02-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
324
325         PR build/13638
326         * configure.ac (MAKEINFO): Replace AC_CHECK_PROG by AC_ARG_VAR.
327         (MAKEINFOFLAGS): Replace static string by AC_ARG_VAR.
328         * configure: Regenerate.
329
330 2012-02-21  Tristan Gingold  <gingold@adacore.com>
331             Pedro Alves  <palves@redhat.com>
332
333         * ia64-tdep.c: Do not include libunwind-ia64.h.
334         * libunwind-frame.h: Remove #ifdef HAVE_LIBUNWIND_H guard.
335         Include libunwind-ia64.h instead of libunwind.h.
336         * configure.ac (--with-libunwind, $enable_libunwind): Don't check
337         for libunwind.h existence.
338         * configure, config.in: Regenerate.
339
340 2012-02-21  Anton Gorenkov  <xgsa@yandex.ru>
341
342         * c-valprint.c (c_value_print): Use value_rtti_indirect_type
343         instead of value_rtti_target_type.
344         * eval.c (evaluate_subexp_standard): Use value_rtti_indirect_type
345         instead of value_rtti_target_type.
346         * typeprint.c (whatis_exp): Use value_rtti_indirect_type instead of
347         value_rtti_target_type.
348         * valops.c (value_ind): Extract function readjust_indirect_value_type.
349         (value_rtti_target_type): Rename to ...
350         (value_rtti_indirect_type): ... here and make it indirect.  Update
351         function comment.
352         * value.c (readjust_indirect_value_type): New function.
353         (coerce_ref): Support for enclosing type setting for references
354         with readjust_indirect_value_type.
355         * value.h (readjust_value_type): New declaration.
356         (value_rtti_target_type): Rename to ...
357         (value_rtti_indirect_type): ... here.
358
359 2012-02-21  Anton Gorenkov  <xgsa@yandex.ru>
360
361         * MAINTAINERS (Write After Approval): Add myself to the list.
362
363 2012-02-20  Doug Evans  <dje@google.com>
364
365         * objfiles.c (add_to_objfile_sections): Remove outdated comments.
366         Rename objfile_p_char parameter to objfilep.
367         (build_objfile_section_table): Result is now void.  All callers
368         updated.
369         * objfiles.h (struct objfile): Tweak comments, whitespace.
370         (build_objfile_section_table): Update.
371
372         * elfread.c (elf_symfile_segments): Fix warning text.
373
374 2012-02-20  Tom Tromey  <tromey@redhat.com>
375
376         PR gdb/13498:
377         * dwarf2read.c (dw2_expand_symtabs_matching): Only visit a
378         particular set of file names once.
379         (dw2_map_symbol_filenames): Likewise.
380
381 2012-02-20  Jan Kratochvil  <jan.kratochvil@redhat.com>
382
383         Code cleanup.
384         * main.c (write_files): Remove the declaration.
385         (external_editor_command): Move the declaration ...
386         [GDBTK] (external_editor_command): ... here.  Fix the comment.
387
388 2012-02-20  Tom Tromey  <tromey@redhat.com>
389
390         * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove
391         extraneous block.
392
393 2012-02-20  Tristan Gingold  <gingold@adacore.com>
394
395         * darwin-nat.h (enum darwin_msg_state): Add comments.
396
397 2012-02-20  Tristan Gingold  <gingold@adacore.com>
398
399         * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Fix jb_pc_offset
400         value.
401
402 2012-20-18  Joel Brobecker  <brobecker@adacore.com>
403
404         * breakpoint.c (watchpoint_exp_is_const): Add missing empty line
405         between function description and implementation.
406
407 2012-02-17  Tom Tromey  <tromey@redhat.com>
408
409         PR python/12070:
410         * python/py-event.c (event_object_getset): New global.
411         (event_object_type): Reference it.
412         * python/py-type.c (field_object_getset): New global.
413         (field_object_type): Reference it.
414         * python/python-internal.h (gdb_py_generic_dict): Declare.
415         * python/py-utils.c (gdb_py_generic_dict): New function.
416
417 2012-02-17  Tristan Gingold  <gingold@adacore.com>
418
419         * solib-darwin.c (darwin_current_sos): Check magic and filetype
420
421 2012-02-17  Thomas Schwinge  <thomas@codesourcery.com>
422
423         * sh-tdep.c (sh_is_renesas_calling_convention): Fix handling of
424         TYPE_CALLING_CONVENTION annotation.
425
426 2012-02-16  Kevin Buettner  <kevinb@redhat.com>
427
428         * MAINTAINERS: Add rx to target ISA section.
429         * Makefile.in (ALL_TARGET_OBS): Add rx-tdep.o.
430         (ALLDEPFILES): Add rx-tdep.c.
431
432 2012-02-16  Tom Tromey  <tromey@redhat.com>
433
434         * symfile.c (symbol_file_add_main_1): Use inferior's
435         symfile_flags.
436         * solib.c (solib_read_symbols): Use inferior's symfile_flags.
437         * linux-nat.c (linux_child_follow_fork): Set symfile_flags on
438         inferior.
439         * infrun.c (handle_vfork_child_exec_or_exit): Set symfile_flags on
440         inferior.
441         (follow_exec): Use inferior's symfile_flags.
442         * inferior.h (struct inferior) <symfile_flags>: New field.
443
444 2012-02-16  Mike Frysinger  <vapier@gentoo.org>
445
446         PR gdb/9734:
447         * remote-sim.c (gdbsim_create_inferior): Call error() when
448         sim_create_inferior() fails.
449
450 2012-02-16  Josh Matthews  <josh@joshmatthews.net>
451
452         * machoread.c: Initialize nbr_syms to avoid warnings-as-errors failure.
453
454 2012-02-16  Tom Tromey  <tromey@redhat.com>
455
456         PR c++/13653:
457         * thread.c (struct current_thread_cleanup) <was_removable>: New
458         field.
459         (restore_current_thread_cleanup_dtor): Restore 'removable' field.
460         (make_cleanup_restore_current_thread): Initialize new field.
461
462 2012-02-15  Kevin Buettner  <kevinb@redhat.com>
463
464         * MAINTAINERS: Add rl78 to target ISA section.
465         * Makefile.in (ALL_TARGET_OBS): Add rl78-tdep.o.
466         (ALLDEPFILES): Add rl78-tdep.c.
467         * NEWS: Mention rl78 as a new target.
468
469 2012-02-15  Aleksandar Ristovski  <aristovski@qnx.com>
470
471         * frame.c (find_frame_sal): Initialize sal->pspace field from frame
472         data.
473         * stack.c (set_last_displayed_sal): Validate that PSPACE is not NULL.
474
475 2012-02-15  Tom Tromey  <tromey@redhat.com>
476
477         PR gdb/12659:
478         * infcmd.c (registers_info): Print just the current register's
479         name.
480
481 2012-02-15  Tom Tromey  <tromey@redhat.com>
482
483         * python/py-symbol.c (sympy_value): Use _().
484
485 2012-02-15  Pedro Alves  <palves@redhat.com>
486
487         * remote.c (remote_detach_1, extended_remote_attach_1): Tweak
488         output to be like native targets'.
489         (remote_pid_to_str): Special case the null ptid.
490
491 2012-02-14  Stan Shebs  <stan@codesourcery.com>
492
493         * NEWS: Mention enable count command.
494         * breakpoint.h (struct breakpoint): New field enable_count.
495         * breakpoint.c (enable_breakpoint_disp): Add count argument.
496         (enable_breakpoint): Add arg to call.
497         (struct disp_data): New struct.
498         (do_enable_breakpoint_disp): Interp arg as disp_data and unpack.
499         (do_map_enable_once_breakpoint): Create a struct and pass it.
500         (do_map_enable_delete_breakpoint): Ditto.
501         (do_map_enable_count_breakpoint): New function.
502         (enable_count_command): New function.
503         (bpstat_stop_status): Decrement enable_count.
504         (print_one_breakpoint_location): Report enable count.
505         (_initialize_breakpoint): Add enable count command.
506
507 2012-02-14  Kevin Buettner  <kevinb@redhat.com>
508
509         * rl78-tdep.c (reggroups.h): Include.
510         (RL78_RAW_BANK0_R0_REGNUM, RL78_RAW_BANK0_R1_REGNUM)
511         (RL78_RAW_BANK0_R2_REGNUM, RL78_RAW_BANK0_R3_REGNUM)
512         (RL78_RAW_BANK0_R4_REGNUM, RL78_RAW_BANK0_R5_REGNUM)
513         (RL78_RAW_BANK0_R6_REGNUM, RL78_RAW_BANK0_R7_REGNUM)
514         (RL78_RAW_BANK1_R0_REGNUM, RL78_RAW_BANK1_R1_REGNUM)
515         (RL78_RAW_BANK1_R2_REGNUM, RL78_RAW_BANK1_R3_REGNUM)
516         (RL78_RAW_BANK1_R4_REGNUM, RL78_RAW_BANK1_R5_REGNUM)
517         (RL78_RAW_BANK1_R6_REGNUM, RL78_RAW_BANK1_R7_REGNUM)
518         (RL78_RAW_BANK2_R0_REGNUM, RL78_RAW_BANK2_R1_REGNUM)
519         (RL78_RAW_BANK2_R2_REGNUM, RL78_RAW_BANK2_R3_REGNUM)
520         (RL78_RAW_BANK2_R4_REGNUM, RL78_RAW_BANK2_R5_REGNUM)
521         (RL78_RAW_BANK2_R6_REGNUM, RL78_RAW_BANK2_R7_REGNUM)
522         (RL78_RAW_BANK3_R0_REGNUM, RL78_RAW_BANK3_R1_REGNUM)
523         (RL78_RAW_BANK3_R2_REGNUM, RL78_RAW_BANK3_R3_REGNUM)
524         (RL78_RAW_BANK3_R4_REGNUM, RL78_RAW_BANK3_R5_REGNUM)
525         (RL78_RAW_BANK3_R6_REGNUM, RL78_RAW_BANK3_R7_REGNUM): Add to
526         beginning of register list.
527         (RL78_BANK0_R0_REGNUM, RL78_BANK0_R1_REGNUM, RL78_BANK0_R2_REGNUM)
528         (RL78_BANK0_R3_REGNUM, RL78_BANK0_R4_REGNUM, RL78_BANK0_R5_REGNUM)
529         (RL78_BANK0_R6_REGNUM, RL78_BANK0_R7_REGNUM, RL78_BANK1_R0_REGNUM)
530         (RL78_BANK1_R1_REGNUM, RL78_BANK1_R2_REGNUM, RL78_BANK1_R3_REGNUM)
531         (RL78_BANK1_R4_REGNUM, RL78_BANK1_R5_REGNUM, RL78_BANK1_R6_REGNUM)
532         (RL78_BANK1_R7_REGNUM, RL78_BANK2_R0_REGNUM, RL78_BANK2_R1_REGNUM)
533         (RL78_BANK2_R2_REGNUM, RL78_BANK2_R3_REGNUM, RL78_BANK2_R4_REGNUM)
534         (RL78_BANK2_R5_REGNUM, RL78_BANK2_R6_REGNUM, RL78_BANK2_R7_REGNUM)
535         (RL78_BANK3_R0_REGNUM, RL78_BANK3_R1_REGNUM, RL78_BANK3_R2_REGNUM)
536         (RL78_BANK3_R3_REGNUM, RL78_BANK3_R4_REGNUM, RL78_BANK3_R5_REGNUM)
537         (RL78_BANK3_R6_REGNUM, RL78_BANK3_R7_REGNUM): Move these into
538         the pseudo registers.  Rearrange other pseudo registers too so
539         that the bank registers appear at the end.
540         (rl78_register_type): Account for the fact that the byte sized
541         bank registers are now pseudo-registers.
542         (rl78_register_name): Rearrange the register name array.  Make
543         initial set of raw banked registers inaccessible.
544         (rl78_register_reggroup_p, rl78_register_sim_regno): New functions.
545         (rl78_pseudo_register_read, rl78_pseudo_register_write): Add
546         case for copying bytes back and forth between raw and pseudo
547         versions of the banked registers.  Update other cases to reflect
548         the changed names.
549         (rl78_return_value): Update to account for changed names of
550         raw registers.
551         (rl78_gdbarch_init): Register rl78_register_reggroup_p() and
552         rl78_register_sim_regno().
553
554 2012-02-14  Kevin Buettner  <kevinb@redhat.com>
555
556         * rl78-tdep.c (rl78_skip_prologue): Make `const' the type of
557         the name parameter being passed to find_pc_partial_function().
558
559 2012-02-14  Jan Kratochvil  <jan.kratochvil@redhat.com>
560
561         * MAINTAINERS: Step down from being ia64 target maintainer.
562
563 2012-02-12  Jan Kratochvil  <jan.kratochvil@redhat.com>
564
565         * ppc-linux-nat.c (fetch_register, store_register): Fix GCC aliasing
566         compilation warning.
567
568 2012-02-12  Jan Kratochvil  <jan.kratochvil@redhat.com>
569
570         Fix crash on loaded shlibs without loaded exec_bfd.
571         * exec.c (exec_files_info): Do not crash on NULL EXEC_BFD.
572         (set_section_command): Replace exec_bfd by p->bfd.
573
574 2012-02-10  Tom Tromey  <tromey@redhat.com>
575
576         * linespec.c (decode_line_internal): Skip symtabs_from_filename
577         when we have a C++ qualified name.
578
579 2012-02-10  Pedro Alves  <palves@redhat.com>
580
581         * inferior.c (inferior_pid_to_str): New.
582         (print_inferior, inferior_command): Use it.
583
584 2012-02-10  Pedro Alves  <palves@redhat.com>
585
586         * configure.ac (HAVE_ELF test): Put the old CFLAGS at the end of
587         the test CFLAGS.
588         * configure: Regenerate.
589
590 2012-02-10  Jan Kratochvil  <jan.kratochvil@redhat.com>
591
592         * linespec.c (decode_line_internal): Fix comment correctness.
593
594 2012-02-09  Valery Khromov  <valery.khromov@gmail.com>
595
596         PR gdb/12953
597         * Makefile.in (HFILES_NO_SRCDIR): Add amd64bsd-nat.h.
598         * amd64bsd-nat.c: Add support for debug registers (adapted from
599         i386bsd-nat.c).
600         [HAVE_PT_GETDBREGS] (amd64bsd_dr_get, amd64bsd_dr_set)
601         (amd64bsd_dr_set_control, amd64bsd_dr_set_addr)
602         (amd64bsd_dr_get_addr, amd64bsd_dr_get_status)
603         (amd64bsd_dr_get_control): New functions.
604         * amd64bsd-nat.h: New file (adapted from i386bsd-nat.h).
605         * amd64fbsd-nat.c: Include "amd64bsd-nat.h", "i386-nat.h".
606         [HAVE_PT_GETDBREGS] (_initialize_amd64fbsd_nat): Add hardware
607         watchpoints initialization.
608         * config/i386/fbsd64.mh (NATDEPFILES): Add i386-nat.o.
609
610 2012-02-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
611
612         * gdb-gdb.py (StructMainTypePrettyPrinter) <struct_field_img>: Print
613         flds_bnds.fields.
614         (StructMainTypePrettyPrinter) <bounds_img>: Print flds_bnds.bounds.
615
616 2012-02-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
617
618         * breakpoint.c (bp_location_compare): Fix comment.  Reindent the code.
619
620 2012-02-08  Joel Brobecker  <brobecker@adacore.com>
621
622         * language.h (symbol_name_cmp_ftype): Renames
623         symbol_name_match_p_ftype.
624         (struct language_defn)[la_get_symbol_name_cmp]: Renames
625         la_get_symbol_name_match_p.
626         * ada-lang.c (ada_get_symbol_name_cmp): Renames
627         ada_get_symbol_name_match_p.  Update comment.
628         (ada_language_defn)[la_get_symbol_name_cmp]: Update value.
629         * linespec.c (struct symbol_matcher_data)[symbol_name_cmp]:
630         Renames symbol_name_match_p.  Update field type.
631         (iterate_name_matcher, iterate_over_all_matching_symtabs): Adjust.
632         * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
633         opencl-lang.c, p-lang.c: Replace "la_get_symbol_name_match_p" by
634         "la_get_symbol_name_cmp" in comments.
635         * language.c: Likewise.
636
637 2012-02-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
638
639         * amd64-sol2-tdep.c (amd64_sol2_gregset_reg_offset): Correct
640         %eflags offset.
641         * i386-sol2-nat.c (amd64_sol2_gregset64_reg_offs)
642         (amd64_sol2_gregset32_reg_offs): Likewise.
643
644 2012-02-08  Joel Brobecker  <brobecker@adacore.com>
645
646         * solib-darwin.c (darwin_bfd_open): Make sure that the filename
647         of the returned BFD is allocated by GDB.
648
649 2012-02-07  Tom Tromey  <tromey@redhat.com>
650
651         PR python/12027:
652         * python/python-internal.h (frame_object_type): Declare.
653         * python/py-symbol.c (sympy_needs_frame): New function.
654         (sympy_value): New function.
655         (symbol_object_getset): Add "needs_frame".
656         (symbol_object_methods): Add "value".
657         * python/py-frame.c (frame_object_type): No longer static.
658
659 2012-02-07  Tom Tromey  <tromey@redhat.com>
660
661         PR python/13599:
662         * python/py-symbol.c (sympy_line): New function.
663         (symbol_object_getset): Add "line".
664
665 2012-02-07  Tom Tromey  <tromey@redhat.com>
666
667         * charset.c (find_charset_names): Check 'in' against NULL.
668
669 2012-02-06  Doug Evans  <dje@google.com>
670
671         * gdbtypes.h (struct main_type): Change type of name,tag_name,
672         and fields.name members from char * to const char *.  All uses updated.
673         (struct cplus_struct_type): Change type of fn_fieldlists.name member
674         from char * to const char *.  All uses updated.
675         (type_name_no_tag): Update.
676         (lookup_unsigned_typename, lookup_signed_typename): Update.
677         * gdbtypes.c (type_name_no_tag): Change result type
678         from char * to const char *.  All callers updated.
679         (lookup_unsigned_typename, lookup_signed_typename): Change type of
680         name parameter from char * to const char *.
681         * symtab.h (struct cplus_specific): Change type of demangled_name
682         member from char * to const char *.  All uses updated.
683         (struct general_symbol_info): Change type of name and
684         mangled_lang.demangled_name members from char * to const char *.
685         All uses updated.
686         (symbol_get_demangled_name, symbol_natural_name): Update.
687         (symbol_demangled_name, symbol_search_name): Update.
688         * symtab.c (symbol_get_demangled_name): Change result type
689         from char * to const char *.  All callers updated.
690         (symbol_natural_name, symbol_demangled_name): Ditto.
691         (symbol_search_name): Ditto.
692         (completion_list_add_name): Change type of symname,sym_text,
693         text,word parameters from char * to const char *.
694         (completion_list_objc_symbol): Change type of sym_text,
695         text,word parameters from char * to const char *.
696         * ada-lang.c (find_struct_field): Change type of name parameter
697         from char * to const char *.
698         (encoded_ordered_before): Similarly for N0,N1 parameters.
699         (old_renaming_is_invisible): Similarly for function_name parameter.
700         (ada_type_name): Change result type from char * to const char *.
701         All callers updated.
702         * ada-lang.h (ada_type_name): Update.
703         * buildsym.c (hashname): Change type of name parameter
704         from char * to const char *.
705         * buildsym.h (hashname): Update.
706         * dbxread.c (end_psymtab): Change type of include_list parameter
707         from char ** to const char **.
708         * dwarf2read.c (determine_prefix): Change result type
709         from char * to const char *.  All callers updated.
710         * f-lang.c (find_common_for_function): Change type of name, funcname
711         parameters from char * to const char *.
712         * f-lang.c (find_common_for_function): Update.
713         * f-valprint.c (list_all_visible_commons): Change type of funcname
714         parameters from char * to const char *.
715         * gdbarch.sh (static_transform_name): Change type of name parameter
716         and result from char * to const char *.
717         * gdbarch.c: Regenerate.
718         * gdbarch.h: Regenerate.
719         * i386-sol2-tdep.c (i386_sol2_static_transform_name): Change type
720         of name parameter from char * to const char *.
721         * jv-lang.c (java_primitive_type_from_name): Ditto.
722         (java_demangled_signature_length): Similarly for signature parameter.
723         (java_demangled_signature_copy): Ditto.
724         (java_demangle_type_signature): Ditto.
725         * jv-lang.h (java_primitive_type_from_name): Update.
726         (java_demangle_type_signature): Update.
727         * objc-lang.c (specialcmp): Change type of a,b parameters
728         from char * to const char *.
729         * p-lang.c (is_pascal_string_type): Change type of arrayname parameter
730         from char * to const char *.  All callers updated.
731         * p-lang.h (is_pascal_string_type): Update.
732         * solib-frv.c (find_canonical_descriptor_in_load_object): Change type
733         of name parameter from char * to const char *.
734         * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Ditto.
735         * utils.c (fprintf_symbol_filtered): Ditto.
736         * defs.h (fprintf_symbol_filtered): Update.
737         * sparc-tdep.h (sparc_sol2_static_transform_name): Update.
738         * stabsread.h (end_psymtab): Update.
739         * stack.c (find_frame_funname): Change type of funname parameter
740         from char ** to const char **.
741         * stack.h (find_frame_funname): Update.
742         * typeprint.c (type_print): Change type of varstring parameter
743         from char * to const char *.
744         * value.h (type_print): Update.
745         * xcoffread.c (xcoff_start_psymtab): Change type of filename parameter
746         from char * to const char *.  All callers updated.
747         (xcoff_end_psymtab): Change type of include_list parameter
748         from char ** to const char **.  All callers updated.
749         (swap_sym): Similarly for name parameter.  All callers updated.
750         * coffread.c (patch_type): Add (char*) cast to xfree parameter.
751         Use xstrdup.
752         (process_coff_symbol): Use xstrdup.
753         * stabsread.c (stabs_method_name_from_physname): Renamed from
754         update_method_name_from_physname.  Change result type from void
755         to char *.  All callers updated.
756         (read_member_functions): In has_destructor case, store name in objfile
757         obstack instead of malloc space.  In !has_stub case, fix mem leak.
758
759 2012-02-06  Luca Pizzamiglio  <luca.pizzamiglio@gmail.com>
760
761         * configure: Rebuild.
762         * configure.ac: Put -L../bfd and -L../libiberty at the front of
763         LDFLAGS.
764
765 2012-02-03  Kevin Buettner  <kevinb@redhat.com>
766
767         * configure.tgt (rl78-*-elf): New target.
768         * rl78-tdep.c: New file.
769
770 2012-02-03  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
771
772         * remote.c (remote_rcmd): Use getpkt_sane to detect timeout
773         and continue the loop.  Add QUIT statement.
774
775 2012-02-03  Tom Tromey  <tromey@redhat.com>
776
777         PR gdb/13596:
778         * solib.h (gdb_bfd_lookup_symbol_from_symtab): Rename from
779         bfd_lookup_symbol_from_symtab.
780         * solib-pa64.c (pa64_solib_create_inferior_hook): Use
781         gdb_bfd_lookup_symbol_from_symtab.
782
783 2012-02-03  Joel Brobecker  <brobecker@adacore.com>
784
785         * mi/mi-cmd-stack.c (list_args_or_locals): For argument symbols,
786         use SYMBOL_LINKAGE_NAME to find the corresponding non-argument
787         symbol.  Add assertion that sym2 is never NULL.
788
789 2012-02-02  Doug Evans  <dje@google.com>
790
791         * blockframe.c (find_pc_partial_function_gnu_ifunc): Change type of
792         "name" parameter to const char ** from char **.  All callers updated.
793         (find_pc_partial_function): Ditto.
794         (cache_pc_function_name): Change type to const char * from char *.
795         * symtab.h ((find_pc_partial_function_gnu_ifunc): Update.
796         (find_pc_partial_function): Update.
797         * alpha-tdep.h (struct gdbarch_tdep, member pc_in_sigtramp): Change
798         type of "name" parameter to const char * from char *.
799         All uses updated.
800         * arch-utils.c (generic_in_solib_return_trampoline): Change
801         type of "name" parameter to const char * from char *.
802         * arch-utils.h (generic_in_solib_return_trampoline): Update.
803         * frv-linux-tdep.c (frv_linux_pc_in_sigtramp): Change
804         type of "name" parameter to const char * from char *.
805         * gdbarch.sh (in_solib_return_trampoline): Ditto.
806         * gdbarch.c: Regenerate.
807         * gdbarch.h: Regenerate.
808         * hppa-hpux-tdep.c (hppa_hpux_in_solib_return_trampoline): Update.
809         * rs6000-tdep.c (rs6000_in_solib_return_trampoline): Update.
810         * m32r-linux-tdep.c (m32r_linux_pc_in_sigtramp): Change
811         type of "name" parameter to const char * from char *.
812         * skip.c (skip_function_pc): Ditto.
813         * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Ditto.
814         * sparc-tdep.h (sparc_sol2_pc_in_sigtramp): Update.
815         * sparc64fbsd-tdep.c (sparc64fbsd_pc_in_sigtramp): Ditto.
816         * sparc64nbsd-tdep.c (sparc64nbsd_pc_in_sigtramp): Ditto.
817         * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Ditto.
818         * sparcnbsd-tdep.c (sparc32nbsd_pc_in_sigtramp): Ditto.
819         * sparcobsd-tdep.c (sparc32obsd_pc_in_sigtramp): Ditto.
820         * nbsd-tdep.c (nbsd_pc_in_sigtramp): Similary for "func_name".
821         * nbsd-tdep.h (nbsd_pc_in_sigtramp): Update.
822
823 2012-02-02  Pedro Alves  <palves@redhat.com>
824
825         * remote.c (remote_get_min_fast_tracepoint_insn_len): Return 0 if
826         the current inferior has no execution.  Make sure the current
827         remote process matches gdb's current inferior.
828
829 2012-02-02  Tom Tromey  <tromey@redhat.com>
830
831         PR gdb/13405:
832         * tui/tui-win.c (parse_scrolling_args): Don't write to possibly
833         read-only memory.
834
835 2012-02-02  Tom Tromey  <tromey@redhat.com>
836
837         PR gdb/9307:
838         * symtab.c (lookup_language_this): Set block_found.
839
840 2012-02-01  Tom Tromey  <tromey@redhat.com>
841
842         PR gdb/13431:
843         * jit.c (struct jit_inferior_data): Rewrite.
844         (struct jit_objfile_data): New.
845         (get_jit_objfile_data): New function.
846         (add_objfile_entry): Update.
847         (jit_read_descriptor): Return int.  Replace descriptor_addr
848         argument with inf_data.  Update.  Don't call error.
849         (jit_breakpoint_re_set_internal): Reorder logic.  Update.  Look up
850         descriptor here.
851         (jit_inferior_init): Don't look up descriptor.  Don't call error.
852         (jit_reset_inferior_data_and_breakpoints)
853         (jit_inferior_created_observer): Remove.
854         (jit_inferior_exit_hook): Update.
855         (jit_executable_changed_observer): Remove.
856         (jit_event_handler): Update.
857         (free_objfile_data): Reset inferior data if needed.
858         (_initialize_jit): Update.
859
860 2012-02-01  Tom Tromey  <tromey@redhat.com>
861
862         * jit.c (bfd_open_from_target_memory): Move higher in file.
863
864 2012-02-01  Tristan Gingold  <gingold@adacore.com>
865
866         * libunwind-frame.c (libunwind_load): Display message if dlopen
867         failed.
868
869 2012-02-01  Gary Benson  <gbenson@redhat.com>
870
871         * symtab.h (symbol_name_match_p_ftype): New typedef.
872         (iterate_over_symbols): Use the above.
873         * symtab.c (iterate_over_symbols): Likewise.
874         * language.h (language_defn->la_iterate_over_symbols): Likewise.
875         * ada-lang.c (ada_iterate_over_symbols): Likewise.
876         * linespec.c (iterate_over_all_matching_symtabs): Likewise.
877         (iterate_name_matcher): Document return values.
878         (collect_one_symbol): Likewise.
879         (collect_function_symbols): Likewise.
880         (collect_symbols): Likewise.
881
882 2012-02-01  Tom Tromey  <tromey@redhat.com>
883
884         * ada-lang.c (resolve_subexp): Update.
885         (ada_lookup_symbol_list): Add 'full_search' argument.
886         (ada_iterate_over_symbols): Pass 0 as full_search argument to
887         ada_lookup_symbol_list.
888         (ada_lookup_encoded_symbol): Update.
889         (get_var_value): Update.
890         * ada-exp.y (block_lookup): Update.
891         (write_var_or_type): Update.
892         (write_name_assoc): Update.
893         * ada-lang.h (ada_lookup_symbol_list): Update.
894
895 2012-01-31  Tom Tromey  <tromey@redhat.com>
896
897         * language.h (struct language_defn) <la_iterate_over_symbols>: Fix
898         comment.
899
900 2012-01-31  Doug Evans  <dje@google.com>
901
902         * symtab.h: Remove outdated comment.
903         (SYMBOL_MATCHES_NATURAL_NAME): Delete.
904
905 2012-02-01  Josh Matthews  <josh@joshmatthews.net>  (tiny change)
906
907         Fix build error in Darwin port.
908         * i386-darwin-nat.c: Include i386-nat.h.
909
910 2012-01-30  Tom Tromey  <tromey@redhat.com>
911
912         PR breakpoints/13568:
913         * dwarf2read.c (dwarf_decode_macro_bytes): Add 'include_hash'
914         argument.  Check for recursive includes.
915         (dwarf_decode_macros): Create an include hash.
916
917 2012-01-30  Michael Eager  <eager@eagercon.com>
918
919         * configure.tgt (powerpc-*-linux*): Add glibc-tdep.o.
920         * ppc-linux-tdep.c: Include glibc-tdep.h.
921         (powerpc32_plt_stub, powerpc32_plt_stub_so): Add PLT stub templates.
922         (powerpc_linux_in_plt_stub): New function.
923         (powerpc_linux_in_dynsym_resolve_code): New function.
924         (ppc_skip_trampoline_code): New function.
925         (ppc_linux_init_abi): Use PPC specific functions rather than generic.
926         Use glibc_skip_solib_resolver.
927
928 2012-01-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
929
930         Code cleanup: Make 1440 bytes of data segment read-only.
931         * arch-utils.c (endian_enum): Make it const char *const [].
932         * arm-tdep.c (fp_model_strings, arm_abi_strings, arm_mode_strings):
933         Likewise.
934         * breakpoint.c (always_inserted_enums): Likewise.
935         * cli/cli-cmds.c (script_ext_enums): Likewise.
936         * cli/cli-decode.c (add_setshow_enum_cmd, complete_on_enum): Make the
937         enumlist parameter const char *const *.
938         * cli/cli-decode.h (struct cmd_list_element): Make the enums field
939         const char *const *.
940         * command.h (complete_on_enum, add_setshow_enum_cmd): Make the enumlist
941         parameter const char *const *.
942         * cris-tdep.c (cris_modes): Make it const char *const [].
943         * filesystem.c (target_file_system_kinds): Likewise.
944         * i386-tdep.c (valid_flavors, valid_conventions): Likewise.
945         * infrun.c (follow_fork_mode_kind_names, follow_exec_mode_names)
946         (can_use_displaced_stepping_enum, scheduler_enums)
947         (exec_direction_names): Likewise.
948         * language.c (_initialize_language): Make the type_or_range_names and
949         case_sensitive_names variables const char *const [].
950         * mips-tdep.c (mips_abi_strings): Make it const char *const [].
951         * python/python.c (python_excp_enums): Likewise.
952         * remote.c (interrupt_sequence_modes): Likewise.
953         * rs6000-tdep.c (powerpc_vector_strings): Likewise.
954         * serial.c (logbase_enums): Likewise.
955         * sh-tdep.c (sh_cc_enum): Likewise.
956         * stack.c (print_frame_arguments_choices, print_entry_values_choices):
957         Likewise.
958         * symtab.c (multiple_symbols_modes): Likewise.
959         * tui/tui-win.c (tui_border_kind_enums, tui_border_mode_enums):
960         Likewise.
961         * utils.c (internal_problem_modes): Likewise.
962
963 2012-01-27  Jan Kratochvil  <jan.kratochvil@redhat.com>
964
965         Fix the 2012-01-26 regression by la_get_symbol_name_match_p.
966         * linespec.c (iterate_name_matcher): Negate the SYMBOL_NAME_MATCH_P
967         result.
968
969 2012-01-27  Doug Evans  <dje@google.com>
970
971         * configure.ac (with_python): Fix absolute path handling for win32.
972         * configure: Regenerate.
973
974 2012-01-26  Doug Evans  <dje@google.com>
975
976         * symtab.c: Whitespace cleanup, no code changes.
977
978         * symtab.c (lookup_symbol_in_language): Improve comment.
979         (lookup_symbol_aux): Fix comment.
980
981         * psymtab.c (add_psymbol_to_list): Result is now "void".
982         * psympriv.h (add_psymbol_to_list): Update.
983
984         * dwarf2read.c (add_partial_symbol): Delete local psym, unused.
985
986 2012-01-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
987
988         Do not open script filenames twice.
989         * cli/cli-cmds.c (source_script_from_stream): Pass to
990         source_python_script also STREAM.
991         * python/py-auto-load.c (source_section_scripts): Pass to
992         source_python_script_for_objfile also STREAM.
993         (auto_load_objfile_script): Pass to source_python_script_for_objfile
994         also INPUT.
995         * python/python-internal.h (source_python_script_for_objfile): New
996         parameter file, rename parameter file to filename.
997         * python/python.c (python_run_simple_file): Call PyRun_SimpleFile
998         instead if !_WIN32.  Update the function comment.
999         (source_python_script, source_python_script_for_objfile)
1000         (source_python_script): New parameter file, rename parameter file to
1001         filename.  Pass FILENAME to python_run_simple_file.
1002         * python/python.h (source_python_script): New parameter file, rename
1003         parameter file to filename.
1004
1005 2012-01-26  Pedro Alves  <palves@redhat.com>
1006
1007         * corelow.c (core_has_fake_pid): Delete.
1008         (core_close): Delete references to `core_has_fake_pid'.
1009         (add_to_thread_list): Adjust to mark the inferior's pid as fake.
1010         (core_open): Delete references to `core_has_fake_pid'.
1011         (core_pid_to_str): Adjust to check inferior->fake_pid_p instead of
1012         the removed global.
1013
1014 2012-01-26  Joel Brobecker  <brobecker@adacore.com>
1015
1016         * symfile.h (struct quick_symbol_functions) [expand_symtabs_matching]:
1017         Remove language parameter from name_matcher.  Adjust the comment.
1018         * symtab.c (search_symbols_name_matches, expand_partial_symbol_name):
1019         Remove language parameter.
1020         * ada-lang.c (ada_expand_partial_symbol_name): Likewise.
1021         * linespec.c (iterate_name_matcher): Likewise.
1022         * dwarf2read.c (dw2_expand_symtabs_matching): Adjust type of
1023         name_matcher.  Adjust call accordingly.
1024         * psymtab.c (expand_symtabs_matching_via_partial): Likewise.
1025         (maintenance_check_symtabs): Adjust type of parameter "fun".
1026         * psymtab.h (maintenance_check_symtabs): Likewise.
1027
1028 2012-01-26  Joel Brobecker  <brobecker@adacore.com>
1029
1030         * language.h (symbol_name_match_p_ftype): New typedef.
1031         (struct language_defn): Replace field la_symbol_name_compare
1032         by la_get_symbol_name_match_p.
1033         * ada-lang.c (ada_get_symbol_name_match_p): New function.
1034         (ada_language_defn): Use it.
1035         * linespec.c (struct symbol_matcher_data): New type.
1036         (iterate_name_matcher): Rewrite.
1037         (iterate_over_all_matching_symtabs): Pass a pointer to
1038         a symbol_matcher_data struct to expand_symtabs_matching
1039         instead of just the lookup name.
1040         * c-lang.c, d-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
1041         opencl-lang.c, p-lang.c, language.c: Delete field
1042         la_symbol_name_compare, and replace by NULL for new field
1043         la_get_symbol_name_match_p.
1044         * symfile.h (struct quick_symbol_functions): Update comment.
1045
1046 2012-01-25  Tom Tromey  <tromey@redhat.com>
1047
1048         * breakpoint.c (bpstat_stop_status): Check 'breakpoint_at' before
1049         dereferencing.
1050
1051 2012-01-24  Tom Tromey  <tromey@redhat.com>
1052
1053         PR symtab/12406:
1054         * solib.c (update_solib_list): Update the program space's
1055         added_solibs and deleted_solibs fields.
1056         * progspace.h (struct program_space) <added_solibs,
1057         deleted_solibs>: New fields.
1058         (clear_program_space_solib_cache): Declare.
1059         * progspace.c (release_program_space): Call
1060         clear_program_space_solib_cache.
1061         (clear_program_space_solib_cache): New function.
1062         * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>: Call
1063         bpstat_stop_status.  Use handle_solib_event.
1064         * breakpoint.c: Include gdb_regex.h.
1065         (print_solib_event): New function.
1066         (bpstat_print): Use print_solib_event.
1067         (bpstat_stop_status): Add special case for bp_shlib_event.
1068         (handle_solib_event): New function.
1069         (bpstat_what): Use handle_solib_event.
1070         (struct solib_catchpoint): New.
1071         (dtor_catch_solib, insert_catch_solib, remove_catch_solib)
1072         (breakpoint_hit_catch_solib, check_status_catch_solib)
1073         (print_it_catch_solib, print_one_catch_solib)
1074         (print_mention_catch_solib, print_recreate_catch_solib): New
1075         functions.
1076         (catch_solib_breakpoint_ops): New global.
1077         (catch_load_or_unload, catch_load_command_1)
1078         (catch_unload_command_1): New functions.
1079         (internal_bkpt_check_status): Add special case for
1080         bp_shlib_event.
1081         (internal_bkpt_print_it): Use print_solib_event.
1082         (initialize_breakpoint_ops): Initialize
1083         catch_solib_breakpoint_ops.
1084         (_initialize_breakpoint): Register "catch load" and "catch
1085         unload".
1086         * breakpoint.h (handle_solib_event): Declare.
1087         * NEWS: Add entry for "catch load" and "catch unload".
1088
1089 2012-01-24  Tom Tromey  <tromey@redhat.com>
1090
1091         * ada-lang.c: Include gdb_vecs.h.
1092         * charset.c: Include gdb_vecs.h.
1093         * tracepoint.h: Include gdb_vecs.h.
1094         * gdb_vecs.h: New file.
1095
1096 2012-01-24  Pedro Alves  <pedro@codesourcery.com>
1097
1098         * breakpoint.c (breakpoint_hit_catch_fork)
1099         (breakpoint_hit_catch_vfork, breakpoint_hit_catch_syscall)
1100         (breakpoint_hit_catch_exec): Make use of the `ws' argument.
1101         * infrun.c (inferior_has_forked, inferior_has_vforked)
1102         (inferior_has_execd, inferior_has_called_syscall): Delete.
1103         (handle_syscall_event): Get syscall_number from the execution
1104         control state's wait status.
1105         (wait_for_inferior): Don't clear syscall_number.
1106
1107 2012-01-24  Pedro Alves  <palves@redhat.com>
1108
1109         * breakpoint.c (bpstat_check_location, bpstat_stop_status,
1110         pc_at_non_inline_function): Add `ws' parameter, and pass it down.
1111         (breakpoint_hit_catch_fork, breakpoint_hit_catch_vfork)
1112         (breakpoint_hit_catch_syscall, breakpoint_hit_catch_exec): Add
1113         `ws' parameter.
1114         (breakpoint_hit_ranged_breakpoint): Add `ws' parameter.  Return
1115         false for events other than TARGET_SIGNAL_TRAP.
1116         (breakpoint_hit_watchpoint, base_breakpoint_breakpoint_hit):
1117         Add `ws' parameter.
1118         (bkpt_breakpoint_hit): Add `ws' parameter.  Return false for
1119         events other than TARGET_SIGNAL_TRAP.
1120         (tracepoint_breakpoint_hit): Add `ws' parameter.
1121         * breakpoint.h (struct breakpoint_ops) <breakpoint_hit>: Add `ws'
1122         parameter.
1123         (bpstat_stop_status): Same.
1124         (pc_at_non_inline_function): Same.
1125         * infrun.c (handle_syscall_event, handle_inferior_event): Adjust
1126         to pass the current event's waitstatus to bpstat_stop_status
1127         and pc_at_non_inline_function.
1128
1129 2012-01-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
1130
1131         Code cleanup.
1132         * cli/cli-cmds.c (source_script_from_stream): Never fclose STREAM.
1133         Update the function comment for it.
1134         (source_script_with_search): Call make_cleanup_fclose for STREAM.
1135         * cli/cli-script.c (script_from_file): Do not call make_cleanup_fclose
1136         for STREAM.
1137
1138 2012-01-24  Pedro Alves  <palves@redhat.com>
1139
1140         * breakpoint.c (bpstat_stop_status): Moving clearing print_it
1141         outside `bs->stop' block.
1142         (bpstat_what): Rework bp_shlib_event handling.
1143         (internal_bkpt_check_status): If the breakpoint is a
1144         bp_shlib_event, then set bs->stop and bs->print if
1145         stop_on_solib_events is set.
1146
1147 2012-01-24  Gary Benson  <gbenson@redhat.com>
1148
1149         Delete #if 0'd out code.
1150         * stack.c (print_frame_label_vars): Remove.
1151         (catch_info): Likewise.
1152         (_initialize_stack): Remove "info catch" command.
1153         * NEWS: Mention the above.
1154
1155 2012-01-24  Pedro Alves  <palves@redhat.com>
1156
1157         * remote.c (remote_add_inferior): New `fake_pid_p' parameter.  Use
1158         it.
1159         (remote_notice_new_inferior): If the remote end doesn't support
1160         the multiprocess extensions, then the PID is fake.
1161         (add_current_inferior_and_thread): New.
1162         (remote_start_remote): Use it.
1163         (extended_remote_attach_1): Adjust.
1164         (extended_remote_create_inferior_1): Use
1165         add_current_inferior_and_thread.
1166
1167 2012-01-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
1168
1169         Fix watchpoints to be specific for each inferior.
1170         * breakpoint.c (watchpoint_in_thread_scope): Verify also
1171         current_program_space.
1172         * i386-nat.c (i386_inferior_data_cleanup): New.
1173         (i386_inferior_data_get): Replace variable inf_data_local by an
1174         inferior_data call.
1175         (i386_use_watchpoints): Initialize i386_inferior_data.
1176         * linux-nat.c (linux_nat_iterate_watchpoint_lwps): Use INFERIOR_PTID
1177         specific iterate_over_lwps.
1178
1179 2012-01-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
1180
1181         Fix watchpoints across inferior fork.
1182         * amd64-linux-nat.c (update_debug_registers_callback): Update the
1183         comment for linux_nat_iterate_watchpoint_lwps.
1184         (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
1185         linux_nat_iterate_watchpoint_lwps.
1186         (amd64_linux_prepare_to_resume): New comment on Linux kernel.
1187         * i386-linux-nat.c (update_debug_registers_callback): Update the
1188         comment for linux_nat_iterate_watchpoint_lwps.
1189         (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
1190         linux_nat_iterate_watchpoint_lwps.
1191         (i386_linux_prepare_to_resume): New comment on Linux kernel.
1192         * i386-nat.c: Include inferior.h.
1193         (dr_mirror): Remove.
1194         (i386_inferior_data, struct i386_inferior_data)
1195         (i386_inferior_data_get): New.
1196         (i386_debug_reg_state): Use i386_inferior_data_get.
1197         (i386_cleanup_dregs, i386_update_inferior_debug_regs)
1198         (i386_insert_watchpoint, i386_remove_watchpoint)
1199         (i386_stopped_data_address, i386_insert_hw_breakpoint)
1200         (i386_remove_hw_breakpoint): New variable state, use
1201         i386_debug_reg_state instead of DR_MIRROR.
1202         * linux-nat.c (delete_lwp): New declaration.
1203         (num_lwps): Move here from downwards.
1204         (delete_lwp_cleanup): New.
1205         (linux_child_follow_fork): Create new child_lp, call
1206         linux_nat_new_thread and linux_nat_prepare_to_resume before calling
1207         PTRACE_DETACH.
1208         (num_lwps): Move upwards.
1209         (linux_nat_iterate_watchpoint_lwps): New.
1210         * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): New.
1211         (linux_nat_iterate_watchpoint_lwps_ftype): New declaration.
1212
1213 2012-01-24  Joel Brobecker  <brobecker@adacore.com>
1214
1215         GDB 7.4 released.
1216
1217 2012-01-23  Pedro Alves  <palves@redhat.com>
1218
1219         * top.c (caution): Rename to ...
1220         (confirm): ... this.
1221         (show_caution): Rename to ...
1222         (show_confirm): ... this.
1223         (quit_cover): Adjust.
1224         (init_main): Adjust.
1225         * top.h (caution): Rename to ...
1226         (confirm): ... this.
1227         * utils.c (internal_vproblem, defaulted_query): Adjust.
1228
1229 2012-01-23  Pedro Alves  <palves@redhat.com>
1230
1231         * top.c (caution): Update comment.
1232         (execute_command): Don't consider the current value of `caution'.
1233
1234 2012-01-23  Jan Kratochvil  <jan.kratochvil@redhat.com>
1235
1236         * cli/cli-cmds.c (find_and_open_script): Handle failure of fdopen.
1237
1238 2012-01-23  Ulrich Weigand  <ulrich.weigand@linaro.org>
1239
1240         * inf-child.c: Include "gdb_stat.h" instead of <sys/stat.h>.
1241         * linux-tdep.c (linux_info_proc): Avoid ARI coding style warning.
1242         * target.c (target_fileio_pwrite): Remove buffer address from
1243         debug output.
1244         (target_fileio_pread): Likewise.
1245
1246 2012-01-20  Ulrich Weigand  <ulrich.weigand@linaro.org>
1247
1248         * NEWS: Document remote "info proc" and "generate-core-file".
1249
1250 2012-01-20  Ulrich Weigand  <ulrich.weigand@linaro.org>
1251
1252         * gdbarch.sh (find_memory_regions): New callback.
1253         * gdbarch.c, gdbarch.h: Regenerate.
1254
1255         * gcore.c (gcore_memory_sections): Try gdbarch find_memory_regions
1256         callback before falling back to target method.
1257
1258         * linux-nat.c (read_mapping, linux_nat_find_memory_regions): Remove.
1259         (linux_target_install_ops): No longer install it.
1260
1261         * linux-tdep.c (linux_find_memory_regions): New function.
1262         (linux_init_abi): Install it.
1263
1264 2012-01-20  Ulrich Weigand  <ulrich.weigand@linaro.org>
1265
1266         * gdbarch.sh (make_corefile_notes): New architecture callback.
1267         * gdbarch.c: Regenerate.
1268         * gdbarch.h: Likewise.
1269
1270         * gcore.c (write_gcore_file): Try gdbarch_make_corefile_notes
1271         before target_make_corefile_notes.  If NULL is returned, the
1272         target does not support core file generation.
1273
1274         * linux-nat.c: Include "linux-tdep.h".
1275         (find_signalled_thread, find_stop_signal): Remove.
1276         (linux_nat_do_thread_registers): Likewise.
1277         (struct linux_nat_corefile_thread_data): Likewise.
1278         (linux_nat_corefile_thread_callback): Likewise.
1279         (iterate_over_spus): Likewise.
1280         (struct linux_spu_corefile_data): Likewise.
1281         (linux_spu_corefile_callback): Likewise.
1282         (linux_spu_make_corefile_notes): Likewise.
1283         (linux_nat_collect_thread_registers): New function.
1284         (linux_nat_make_corefile_notes): Replace contents by call to
1285         linux_make_corefile_notes passing linux_nat_collect_thread_registers
1286         as native-only callback.
1287
1288         * linux-tdep.h: Include "bfd.h".
1289         (struct regcache): Add forward declaration.
1290         (linux_collect_thread_registers_ftype): New typedef.
1291         (linux_make_corefile_notes): Add prototype.
1292         * linux-tdep.c: Include "gdbthread.h", "gdbcore.h", "regcache.h",
1293         "regset.h", and "elf-bfd.h".
1294         (find_signalled_thread, find_stop_signal): New functions.
1295         (linux_spu_make_corefile_notes): Likewise.
1296         (linux_collect_thread_registers): Likewise.
1297         (struct linux_corefile_thread_data): New data structure.
1298         (linux_corefile_thread_callback): New funcion.
1299         (linux_make_corefile_notes): Likewise.
1300         (linux_make_corefile_notes_1): Likewise.
1301         (linux_init_abi): Install it.
1302
1303 2012-01-20  Ulrich Weigand  <ulrich.weigand@linaro.org>
1304
1305         * gdbarch.sh (info_proc): New callback.
1306         * gdbarch.c, gdbarch.h: Regenerate.
1307
1308         * infcmd.c (info_proc_cmd_1): Try gdbarch info_proc callback
1309         before falling back to the target info_proc callback.
1310
1311         * linux-nat.c: Do not include "cli/cli-utils.h".
1312         (linux_nat_info_proc): Remove.
1313         (linux_target_install_ops): No longer install it.
1314
1315         * linux-tdep.c: Include "cli/cli-utils.h" and <ctype.h>.
1316         (read_mapping): New function.
1317         (linux_info_proc): Likewise.
1318         (linux_init_abi): Install it.
1319
1320 2012-01-20  Ulrich Weigand  <ulrich.weigand@linaro.org>
1321
1322         * defs.h (enum info_proc_what): Moved here from linux-nat.c
1323         * infcmd.c: (info_proc_cmd_1): New function.
1324         (info_proc_cmd): New function, moved here from equivalent routine
1325         orignally in linux-nat.c.
1326         (info_proc_cmd_mappings): Likewise.
1327         (info_proc_cmd_stat): Likewise.
1328         (info_proc_cmd_status): Likewise.
1329         (info_proc_cmd_cwd): Likewise.
1330         (info_proc_cmd_cmdline): Likewise.
1331         (info_proc_cmd_exe): Likewise.
1332         (info_proc_cmd_all): Likewise.
1333         (_initialize_infcmd): Install "info proc" command and subcommands.
1334
1335         * target.h (struct target_ops): Add to_info_proc.
1336         (target_info_proc): Add prototype.
1337         * target.c (target_info_proc): New function.
1338
1339         * procfs.c (procfs_info_proc): Add prototype.
1340         (info_proc_cmd): Rename into ...
1341         (procfs_info_proc): ... this.  Update argument types as appropriate
1342         for a to_info_proc implementation.  Handle "what" argument.
1343         (procfs_target): Install procfs_info_proc.
1344         (_initialize_procfs): No longer install "info proc" command.
1345
1346         * linux-nat.c: (enum info_proc_what): Remove.
1347         (linux_nat_info_proc_cmd_1): Rename into ...
1348         (linux_nat_info_proc): ... this.  Update argument types as appropriate
1349         for a to_info_proc implementation.
1350         (linux_nat_info_proc_cmd): Remove.
1351         (linux_nat_info_proc_cmd_mappings): Likewise.
1352         (linux_nat_info_proc_cmd_stat): Likewise.
1353         (linux_nat_info_proc_cmd_status): Likewise.
1354         (linux_nat_info_proc_cmd_cwd): Likewise.
1355         (linux_nat_info_proc_cmd_cmdline): Likewise.
1356         (linux_nat_info_proc_cmd_exe): Likewise.
1357         (linux_nat_info_proc_cmd_all): Likewise.
1358         (linux_target_install_ops): Install linux_nat_info_proc.
1359         (_initialize_linux_nat): No longer install "info proc" command
1360         and subcommands.
1361
1362 2012-01-20  Ulrich Weigand  <ulrich.weigand@linaro.org>
1363
1364         * configure.ac [AC_CHECK_FUNCS]: Check for readlink.
1365         * config.in, configure: Regenerate.
1366
1367         * target.h (struct target_ops): Add to_fileio_readlink.
1368         (target_fileio_readlink): Add prototype.
1369         * target.c (target_fileio_readlink): New function.
1370
1371         * inf-child.c: Conditionally include <sys/param.h>.
1372         (inf_child_fileio_readlink): New function.
1373         (inf_child_target): Install it.
1374
1375         * remote.c (PACKET_vFile_readlink): New enum value.
1376         (remote_hostio_readlink): New function.
1377         (init_remote_ops): Install it.
1378         (_initialize_remote): Handle vFile:readlink packet type.
1379
1380 2012-01-20  Pedro Alves  <palves@redhat.com>
1381             Ulrich Weigand  <ulrich.weigand@linaro.org>
1382
1383         * configure.ac [AC_CHECK_FUNCS]: Check for pread and pwrite.
1384         * config.in, configure: Regenerate.
1385
1386         * target.h (struct target_ops): Add to_fileio_open, to_fileio_pwrite,
1387         to_fileio_pread, to_fileio_close, to_fileio_unlink.
1388         (target_fileio_open): Add prototype.
1389         (target_fileio_pwrite): Likewise.
1390         (target_fileio_pread): Likewise.
1391         (target_fileio_close): Likewise.
1392         (target_fileio_unlink): Likewise.
1393         (target_fileio_read_alloc): Likewise.
1394         (target_fileio_read_stralloc): Likewise.
1395
1396         * target.c: Include "gdb/fileio.h".
1397         (target_read_stralloc): Accept trailing, but not embedded NUL bytes.
1398         (default_fileio_target): New function.
1399         (target_fileio_open): Likewise.
1400         (target_fileio_pwrite): Likewise.
1401         (target_fileio_pread): Likewise.
1402         (target_fileio_close): Likewise.
1403         (target_fileio_unlink): Likewise.
1404         (target_fileio_close_cleanup): Likewise.
1405         (target_fileio_read_alloc_1): Likewise.
1406         (target_fileio_read_alloc): Likewise.
1407         (target_fileio_read_stralloc): Likewise.
1408
1409         * inf-child.c: Include "gdb/fileio.h", <sys/types.h>, <sys/stat.h>,
1410         <fcntl.h>, and <unistd.h>.
1411         (inf_child_fileio_open_flags_to_host): New function.
1412         (inf_child_errno_to_fileio_error): Likewise.
1413         (inf_child_fileio_open): Likewise.
1414         (inf_child_fileio_pwrite): Likewise.
1415         (inf_child_fileio_pread): Likewise.
1416         (inf_child_fileio_close): Likewise.
1417         (inf_child_fileio_unlink): Likewise.
1418         (inf_child_target): Install to_fileio routines.
1419
1420         * remote.c (init_remote_ops): Install to_fileio routines.
1421
1422 2012-01-20  Pedro Alves  <palves@redhat.com>
1423             Ulrich Weigand  <ulrich.weigand@linaro.org>
1424
1425         * remote.c (remote_multi_process_p): Only check for multi-process
1426         protocol feature, do not check for extended protocol.
1427         (remote_supports_multi_process): Check for extended protocol here.
1428         (set_general_process): Likewise.
1429         (extended_remote_kill): Likewise.
1430         (remote_pid_to_str): Likewise.
1431         (remote_query_supported): Always query multiprocess mode.
1432
1433 2012-01-20  Pedro Alves  <palves@redhat.com>
1434             Ulrich Weigand  <ulrich.weigand@linaro.org>
1435
1436         * inferior.h (struct inferior): Add fake_pid_p.
1437         * inferior.c (exit_inferior_1): Clear fake_pid_p.
1438         * remote.c (remote_start_remote): Set fake_pid_p if we have to use
1439         magic_null_ptid since the remote side doesn't provide a real PID.
1440
1441 2012-01-19  Tom Tromey  <tromey@redhat.com>
1442
1443         * NEWS: Combine the two Python sections.
1444
1445 2012-01-19  Jan Kratochvil  <jan.kratochvil@redhat.com>
1446
1447         * target.h (target_close): Update comment on the target's unpush state.
1448
1449 2012-01-19  Pedro Alves  <palves@redhat.com>
1450
1451         * linux-nat.c (linux_nat_close): Call linux_nat_is_async_p and
1452         linux_nat_async directly instead of going through the target
1453         vector.
1454         * target.c (unpush_target): Close target after unpushing it, not
1455         before.
1456
1457 2012-01-19  Gary Benson  <gbenson@redhat.com>
1458
1459         * mdebugread.c (sort_blocks): Replace integer constants with ones
1460         derived from FIRST_LOCAL_BLOCK.
1461
1462 2012-01-18  Paul Pluzhnikov  <ppluzhnikov@google.com>
1463             Jan Kratochvil  <jan.kratochvil@redhat.com>
1464
1465         PR gdb/9538
1466         * symfile.c (find_separate_debug_file): New function.
1467         (terminate_after_last_dir_separator): Likewise.
1468         (find_separate_debug_file_by_debuglink): Also try realpath.
1469         * configure.ac (AC_CHECK_FUNCS): Add lstat.
1470         * configure: Regenerate.
1471         * config.in: Regenerate.
1472
1473 2012-01-18  Doug Evans  <dje@google.com>
1474
1475         * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): Delete.
1476         (main.o): Remove rule.
1477         * configure.ac (BINDIR): Define with AC_DEFINE_DIR.
1478         (--with-sysroot): Rewrite.
1479         * configure: Regenerate.
1480         * config.in: Regenerate.
1481
1482 2012-01-18  Sergio Durigan Junior  <sergiodj@redhat.com>
1483
1484         * parse.c (initialize_expout): New function.
1485         (reallocate_expout): Likewise.
1486         (parse_exp_in_context): Use `initialize_expout' and
1487         `reallocate_expout' when appropriate.
1488
1489 2012-01-18  Pedro Alves  <palves@redhat.com>
1490
1491         * record.c (struct record_breakpoint, record_breakpoint_p)
1492         (record_breakpoints): New.
1493         (record_insert_breakpoint, record_remove_breakpoint): Manage
1494         record breakpoints list.  Only remove breakpoints from the
1495         inferior if they had been inserted there in the first place.
1496
1497 2012-01-17  Doug Evans  <dje@google.com>
1498
1499         * linespec.c (decode_line_internal): Don't call symtabs_from_filename
1500         if we know we don't have a file name to look for.
1501
1502 2012-01-17  Pedro Alves  <palves@redhat.com>
1503
1504         * dwarf2-frame.c (dwarf2_frame_cfa): Throw NOT_AVAILABLE_ERROR, if
1505         the frame's stop reason is UNWIND_UNAVAILABLE.
1506
1507 2012-01-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
1508
1509         Fix compilation error.
1510         * m2-exp.y (yyerror): Use ANSI C prototype.
1511
1512 2012-01-16  Sergio Durigan Junior  <sergiodj@redhat.com>
1513
1514         * f-exp.y (parse_number): Convert prototype from K&R to ANSI C.
1515         (growbuf_by_size): Likewise.
1516         (yyerror): Likewise.
1517         * m2-exp.y (make_qualname): Remove function (was #if 0'ed).
1518         (modblock): Remove variable (was #if 0'ed).
1519         (parse_number): Convert prototype from K&R to ANSI C.
1520         (yyerror): Likewise.
1521         * objc-exp.y (parse_number): Likewise.
1522         (yyerror): Likewise.
1523         (yylex): Remove #if 0'ed code.
1524         * p-exp.y (uptok): Convert prototype from K&R to ANSI C.
1525         (yyerror): Likewise.
1526
1527 2012-01-16  Tom Tromey  <tromey@redhat.com>
1528
1529         * NEWS: Add item.
1530         * symtab.h (compare_filenames_for_search): Declare.
1531         * symtab.c (compare_filenames_for_search): New function.
1532         (iterate_over_some_symtabs): Use it.
1533         * symfile.h (struct quick_symbol_functions)
1534         <map_symtabs_matching_filename>: Change spec.
1535         * psymtab.c (partial_map_symtabs_matching_filename): Use
1536         compare_filenames_for_search.  Update for new spec.
1537         * dwarf2read.c (dw2_map_symtabs_matching_filename): Use
1538         compare_filenames_for_search.  Update for new spec.
1539         * breakpoint.c (clear_command): Use compare_filenames_for_search.
1540
1541 2012-01-16  Tom Tromey  <tromey@redhat.com>
1542
1543         PR python/13281:
1544         * gdbtypes.h (TYPE_FLAG_ENUM): New macro.
1545         (struct main_type) <flag_flag_enum>: New field.
1546         * dwarf2read.c (process_enumeration_scope): Detect "flag" enums.
1547         * NEWS: Add entries.
1548         * c-valprint.c (c_val_print) <TYPE_CODE_ENUM>: Handle "flag"
1549         enums.
1550         * python/lib/gdb/printing.py (_EnumInstance): New class.
1551         (FlagEnumerationPrinter): Likewise.
1552
1553 2012-01-16  Sergio Durigan Junior  <sergiodj@redhat.com>
1554
1555         * breakpoint.c (create_sals_from_address_default): New function.
1556         (create_breakpoints_sal_default): Likewise.
1557         (decode_linespec_default): Likewise.
1558         (is_marker_spec): Removed.
1559         (strace_marker_p): New function.
1560         (init_breakpoint_sal): Using `strace_marker_p' instead of
1561         `is_marker_spec'.
1562         (create_breakpoint): Call method `create_sals_from_address' from
1563         breakpoint_ops, replacing code that created SALs conditionally
1564         on the type of the breakpoint.  Call method `create_breakpoints_sal',
1565         replacing code that created breakpoints conditionally on the type
1566         wanted.
1567         (base_breakpoint_create_sals_from_address): New function.
1568         (base_breakpoint_create_breakpoints_sal): Likewise.
1569         (base_breakpoint_decode_linespec): Likewise.
1570         (base_breakpoint_ops): Add methods
1571         `base_breakpoint_create_sals_from_address',
1572         `base_breakpoint_create_breakpoints_sal' and
1573         `base_breakpoint_decode_linespec'.
1574         (bkpt_create_sals_from_address): New function.
1575         (bkpt_create_breakpoints_sal): Likewise.
1576         (bkpt_decode_linespec): Likewise.
1577         (tracepoint_create_sals_from_address): Likewise.
1578         (tracepoint_create_breakpoints_sal): Likewise.
1579         (tracepoint_decode_linespec): Likewise.
1580         (strace_marker_create_sals_from_address): Likewise.
1581         (strace_marker_create_breakpoints_sal): Likewise.
1582         (strace_marker_decode_linespec): Likewise.
1583         (strace_marker_breakpoint_ops): New variable.
1584         (addr_string_to_sals): Remove `marker_spec'.  Call method
1585         `decode_linespec' from breakpoint_ops, replacing code that decoded
1586         an address string into a SAL.  Use `strace_marker_p' instead of
1587         `marker_spec'.
1588         (strace_command): Decide whether we are dealing with a static
1589         tracepoint with marker or not.  Use the appropriate breakpoint_ops.
1590         (initialize_breakpoint_ops): Initialize new fields of breakpoint_ops.
1591         * breakpoint.h (linespec_result, linespec_sals): New forward
1592         declarations.
1593         (breakpoint_ops) <create_sals_from_address>,
1594         <create_breakpoints_sal>, <decode_linespec>: New methods.
1595
1596 2012-01-14  Doug Evans  <dje@google.com>
1597
1598         * NEWS: Update text for "maint set python print-stack".
1599         It is deprecated in gdb 7.4 and deleted in 7.5.
1600
1601 2012-01-13  Eli Zaretskii  <eliz@gnu.org>
1602
1603         * gdb_curses.h (MOUSE_MOVED) [__MINGW32__]: Undefine before
1604         including curses.h.
1605
1606 2012-01-12  Jan Kratochvil  <jan.kratochvil@redhat.com>
1607
1608         * configure: Regenerate.
1609         * config.in: Regenerate.
1610
1611 2012-01-12  Keith Seitz  <keiths@redhat.com>
1612
1613         PR mi/10586
1614         * varobj.c (ANONYMOUS_STRUCT_NAME): Define.
1615         (ANONYMOUS_UNION_NAME): Define.
1616         (is_path_expr_parent): New function.
1617         (get_path_expr_parent): New function.
1618         (is_anonymous_child): New function.
1619         (create_child_with_value): If the child is anonymous and without
1620         a name, assign an object name to it.
1621         (c_describe_child): Use get_path_expr_parent to determine
1622         the parent expression.
1623         If there field represents an anonymous struct or union and
1624         has no name, set an appropriate display name and expression.
1625         (cplus_describe_child): Likewise.
1626
1627 2012-01-12  Pedro Alves  <palves@redhat.com>
1628
1629         * i386-tdep.c (i386_frame_cache_1): Also mark the frame base as
1630         available when %ebp is found to be zero (outermost).
1631
1632 2012-01-11  Andreas Tobler  <andreast@fgznet.ch>
1633
1634         * common/gdb_assert.h (gdb_static_assert): Rename static_assert to
1635         an internal gdb_static_assert.
1636         * mi/mi-common.c: Rename static_assert to gdb_static_assert.
1637
1638 2012-01-11  Tom Tromey  <tromey@redhat.com>
1639
1640         PR gdb/9598:
1641         * breakpoint.c (_initialize_breakpoint): Fix help for "catch
1642         catch" and "catch throw".
1643
1644 2012-01-11  Paul Hilfinger  <hilfingr@adacore.com>
1645
1646         * blockframe.c (block_innermost_frame): Start search from selected
1647         frame, if present, or otherwise the current frame.
1648
1649         * c-exp.y (variable): Update innermost_block for
1650         'block COLONCOLON NAME' clause.
1651         * m2-exp.y (variable): Ditto.
1652         * objc-exp.y (variable): Ditto.
1653
1654 2012-01-10  Tom Tromey  <tromey@redhat.com>
1655
1656         PR python/13199:
1657         * python/python.c (finish_python_initialization): Set sys.argv.
1658
1659 2012-01-10  Doug Evans  <dje@google.com>
1660
1661         * dwarf2read.c (dwarf_decode_lines): Remove arg "abfd".  New arg
1662         "want_line_info".  All callers updated.
1663         (dwarf_decode_lines_1): New function.
1664         (handle_DW_AT_stmt_list): Add function comment.
1665         New arg "want_line_info".  All callers updated.
1666         (read_file_scope,read_type_unit_scope): Move comment from
1667         handle_DW_AT_stmt_list to here.
1668
1669 2012-01-10  Jan Kratochvil  <jan.kratochvil@redhat.com>
1670
1671         Fix regression after libiberty/ update for GCC PR 6057 and others.
1672         * c-exp.y (operator) <OPERATOR DELETE>
1673         (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
1674         * cp-name-parser.y (fill_comp, make_operator, make_dtor)
1675         (make_builtin_type, make_name): New variable i, add gdb_assert.
1676         (operator) <OPERATOR NEW>: Update ARGS to 3.
1677         (operator) <OPERATOR DELETE>: Add trailing space.
1678         (operator) <OPERATOR NEW '[' ']'>: Update ARGS to 3.
1679         (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
1680         * cp-support.c (cp_canonicalize_string): Check NULL from
1681         cp_comp_to_string, call warning and return.
1682
1683 2012-01-10  Jan Kratochvil  <jan.kratochvil@redhat.com>
1684
1685         Fix duplicate .o files after omitting libbfd.a.
1686         * Makefile.in (ALL_TARGET_OBS): Remove corelow.o.
1687         (SFILES): Add corelow.c.
1688         (COMMON_OBS): Add corelow.o.
1689         (ALLDEPFILES): Remove corelow.c.
1690         * config/alpha/alpha-linux.mh (NATDEPFILES): Remove corelow.o.
1691         * config/alpha/alpha-osf3.mh: Likewise.
1692         * config/alpha/fbsd.mh: Likewise.
1693         * config/arm/nbsdaout.mh: Likewise.
1694         * config/arm/nbsdelf.mh: Likewise.
1695         * config/i386/i386gnu.mh: Likewise.
1696         * config/ia64/hpux.mh: Likewise.
1697         * config/ia64/linux.mh: Likewise.
1698         * config/m32r/linux.mh: Likewise.
1699         * config/m68k/linux.mh: Likewise.
1700         * config/mips/irix5.mh: Likewise.
1701         * config/mips/irix6.mh: Likewise.
1702         * config/pa/hpux.mh: Likewise.
1703         * config/pa/linux.mh: Likewise.
1704         * config/powerpc/aix.mh: Likewise.
1705         * config/sparc/linux.mh: Likewise.
1706         * config/sparc/linux64.mh: Likewise.
1707         * config/sparc/sol2.mh: Likewise.
1708         * config/vax/vax.mh: Likewise.
1709         * configure.tgt (alpha*-*-freebsd* alpha*-*-kfreebsd*-gnu)
1710         (alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu, alpha*-*-openbsd*)
1711         (am33_2.0*-*-linux*, arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-linux*)
1712         (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-netbsd*)
1713         (hppa*-*-openbsd*, i[34567]86-*-dicos*, i[34567]86-*-freebsd*)
1714         (i[34567]86-*-kfreebsd*-gnu, i[34567]86-*-netbsd*)
1715         (i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*, i[34567]86-*-nto*)
1716         (i[34567]86-*-solaris2.1[0-9]*, x86_64-*-solaris2.1[0-9]*)
1717         (i[34567]86-*-solaris*, i[34567]86-*-linux*, i[34567]86-*-cygwin*)
1718         (i[34567]86-*-mingw32*, m68*-*-netbsd*, m68*-*-knetbsd*-gnu)
1719         (m68*-*-openbsd*, m88*-*-openbsd*, microblaze*-linux-*)
1720         (microblaze*-*-linux*, mips*-*-linux*, mips*-*-netbsd*)
1721         (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
1722         (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-linux*)
1723         (powerpc64-*-linux*, s390*-*-*, score-*-*, sh*-*-linux*)
1724         (sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
1725         (sparc*-*-freebsd*, sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*)
1726         (sparc-*-knetbsd*-gnu, sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu)
1727         (sparc-*-openbsd*, sparc64-*-openbsd*, tic6x-*-*linux, vax-*-netbsd*)
1728         (vax-*-knetbsd*-gnu, vax-*-openbsd*, x86_64-*-dicos*, x86_64-*-linux*)
1729         (x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu, x86_64-*-netbsd*)
1730         (x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*, xtensa*-*-linux*): Remove
1731         corelow.o from gdb_target_obs.
1732         * corefile.c (core_target): Update the comment on NULL value.
1733         (core_file_command): Replace error by gdb_assert on CORE_TARGET.
1734         * corelow.c (sniff_core_bfd): Call error instead of warning on zero
1735         MATCHES.  Drop YUMMY set on NULL.
1736         (core_close): Do not call exit_inferior_silent on zero PID.  Do not
1737         reclaim CORE_DATA if it is already NULL.
1738
1739 2012-01-09  Doug Evans  <dje@google.com>
1740
1741         * gdbtypes.c (safe_parse_type): Initialize type to keep gcc happy.
1742         * varobj.c (varobj_set_value): Initialize val,value to keep gcc happy.
1743
1744 2012-01-09  Keith Seitz  <keiths@redhat.com>
1745
1746         * breakpoint.c (wrapper.h): Don't include.
1747
1748 2012-01-09  Keith Seitz  <keiths@redhat.com>
1749
1750         * Makefile.in (SFILES): Remove wrapper.c.
1751         (HFILES_NO_SRCDIR): Remove wrapper.h.
1752         (COMMON_OBS): Remove wrapper.o.
1753         * cli/cli-interp.c: Don't inlude wrapper.h.
1754         * corelow.c: Likewise.
1755         (core_open): Replace gdb_target_find_new_threads with
1756         TRY_CATCH around target_find_new_threads.
1757         * eval.c (fetch_subexp_value): Likewise for value_fetch_lazy.
1758         * gdbtypes.c (safe_parse_type): Likewise for parse_and_eval_type.
1759         * varobj.c (varobj_create): Likewise for parse_exp_1 and
1760         evaluate_expression.
1761         (varobj_set_value): Likewise for evaluate_expression and
1762         value_assign.
1763         (install_new_variable): Likewise for value_fetch_lazy.
1764         (adjust_value_for_child_access): Likewise for value_ind.
1765         (c_describe_child): Likewise for value_subscript and
1766         value_ind.
1767         (c_value_of_root): Likewise for evaluate_expression.
1768         * wrapper.c: Remove.
1769         * wrapper.h: Remove.
1770
1771 2012-01-09  Doug Evans  <dje@google.com>
1772
1773         * dwarf2read.c (read_and_check_comp_unit_head): Renamed from
1774         partial_read_comp_unit_head.  Replace "buffer", "buffer_size" and
1775         "abfd" args with "section".  All callers updated.
1776         Error checking code moved ...
1777         (error_check_comp_unit_head): ... here.  New function.
1778         (read_and_check_type_unit_head): Renamed from read_type_unit_head.
1779         Delete arg "abfd".  New arg "type_offset".  All callers updated.
1780         (create_debug_types_hash_table): Simplify by using
1781         read_and_check_type_unit_head.
1782
1783         * parser-defs.h (namecopy): Delete.
1784         * parse.c (namecopy, namecopy_size): Move into copy_name.
1785
1786 2012-01-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
1787
1788         Partially fix duplicate .o files after omitting libbfd.a.
1789         * config/alpha/alpha-osf3.mh (NATDEPFILES): Remove solib.o.
1790         * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
1791         * config/i386/obsdaout.mh (NATDEPFILES): Remove solib.o.
1792         * config/m68k/nbsdaout.mh (NATDEPFILES): Remove solib.o.
1793         * config/m68k/obsd.mh (NATDEPFILES): Remove solib.o.
1794         * config/powerpc/aix.mh (NATDEPFILES): Remove xcoffread.o.
1795         * config/vax/nbsdaout.mh (NATDEPFILES): Remove solib.o.
1796
1797 2012-01-09  Pedro Alves  <palves@redhat.com>
1798
1799         * MAINTAINERS: Update my email address.
1800
1801 2012-01-08  Doug Evans  <dje@google.com>
1802
1803         * dwarf2read.c (dwarf2_per_objfile): Rename n_type_comp_units to
1804         n_type_units.  Rename type_comp_units to all_type_units.
1805         All uses updated.
1806         (add_signatured_type_cu_to_table): Renamed from
1807         add_signatured_type_cu_to_list.  All callers updated.
1808
1809         * gdbtypes.h (struct cplus_struct_type): Delete member
1810         nfn_fields_total.  All uses removed.
1811
1812 2012-01-06  Doug Evans  <dje@google.com>
1813
1814         * dwarf2read.c: Move FIXME from dwarf2_build_psymtabs_hard
1815         to top of file.
1816         (dwarf2_find_comp_unit): Delete.
1817         (process_psymtab_comp_unit): Make result "void".
1818         Delete args buffer, info_ptr, buffer_size, and replace with
1819         "section".  All callers updated.
1820         (dwarf2_build_psymtabs_hard): Simplify.
1821
1822 2012-01-06  Sergio Durigan Junior  <sergiodj@redhat.com>
1823             Thiago Jung Bauermann  <bauerman@br.ibm.com>
1824
1825         * ada-lang.c (ada_exception_name_addr): Add `volatile' keyword
1826         before `struct gdb_exception'.
1827         * breakpoint.c (update_global_location_list_nothrow)
1828         (update_breakpoint_locations, enable_breakpoint_disp): Likewise.
1829         * cp-abi.c (value_rtti_type): Likewise.
1830         * cp-support.c (cp_validate_operator): Likewise.
1831         * infrun.c (insert_exception_resume_breakpoint)
1832         (check_exception_resume, keep_going): Likewise.
1833         * mi-interp.c (mi_breakpoint_created)
1834         (mi_breakpoint_modified): Likewise.
1835         * rs6000-aix-tdep.c (rs6000_convert_from_func_ptr_addr): Likewise.
1836         * solib-ia64-hpux.c (ia64_hpux_at_dld_breakpoint_p)
1837         (ia64_hpux_handle_dld_breakpoint_1): Likewise.
1838
1839 2012-01-05  Doug Evans  <dje@google.com>
1840
1841         * dwarf2read.c (statement_prologue): Delete, unused.
1842
1843         * dwarf2read.c (dwarf2_per_cu_addr_size): Make result type an int.
1844         * dwarf2loc.h (dwarf2_per_cu_addr_size): Update.
1845
1846         * dwarf2read.c (comp_unit_header): Delete, unused.
1847
1848 2012-01-05  Ulrich Weigand  <uweigand@de.ibm.com>
1849
1850         * configure.tgt [s390*-*-*] (gdb_target_obs): Add corelow.o.
1851         * config/s390/s390.mh (NATDEPFILES): Remove corelow.o.
1852
1853 2012-01-05  Khoo Yit Phang  <khooyp@cs.umd.edu>
1854
1855         * infrun.c (normal_stop): Don't skip calling the normal_stop
1856         observers if the thread was doing a multi-step, but stopped for
1857         some reason other than stepping.
1858
1859 2012-01-05  Pedro Alves  <alves.ped@gmail.com>
1860
1861         * cli/cli-decode.h: Add comments.
1862         (CMD_LIST_AMBIGUOUS): Moved to command.h
1863         (add_cmd, add_alias_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
1864         (set_cmd_cfunc, set_cmd_sfunc, set_cmd_completer, cmd_cfunc_eq)
1865         (set_cmd_context, get_cmd_context, lookup_cmd, lookup_cmd_1)
1866         (deprecate_cmd, deprecated_cmd_warning, lookup_cmd_composition)
1867         (add_com, add_com_alias, add_info, add_info_alias)
1868         (complete_on_cmdlist, complete_on_enum, help_list): Remove
1869         declarations.
1870         * command.h: Add and adjust comments.
1871         (CMD_LIST_AMBIGUOUS): Moved here.
1872         (help_cmd, help_cmd_list): Delete declarations.
1873
1874 2012-01-04  Doug Evans  <dje@google.com>
1875
1876         * dwarf2read.c (dwarf2_read_abbrevs): Delete arg "abfd".
1877         All callers updated.
1878         (load_full_type_unit): Renamed from read_signatured_type_at_offset.
1879         Replace all arguments with "per_cu".  All callers updated.
1880
1881         * dwarf2read.c (dwarf2_per_cu_data): Remove outdated comment.
1882
1883         * dwarf2read.c (init_one_comp_unit): Delete arg "objfile".
1884         New arg "per_cu".  All callers updated.
1885
1886         Delete #if 0'd out code.
1887         * language.c (binop_result_type): Delete.
1888         (simple_type, ordered_type, same_type, integral_type): Delete.
1889         (numeric_type, character_type, string_type, boolean_type): Delete.
1890         (float_type, structured_type): Delete.
1891         * language.h: Update.
1892
1893 2012-01-04  Tom Tromey  <tromey@redhat.com>
1894
1895         * python/py-value.c (valpy_binop): Initialize 'res_val'.
1896
1897 2012-01-04  Joel Brobecker  <brobecker@adacore.com>
1898
1899         * corefile.c (close_exec_file): Delete.
1900         (reopen_exec_file): Remove commented out code that seems related
1901         to close_exec_file, which is being deleted here.
1902         * inferior.h (close_exec_file): Delete.
1903         * fork-child.c (fork_inferior): Remove call to fork_inferior.
1904
1905 2012-01-04  Joel Brobecker  <brobecker@adacore.com>
1906
1907         * ada-lang.c: #include "cli/cli-utils.h".
1908         (get_selections): Use skip_spaces.
1909         (ada_get_next_arg): Use skip_spaces and skip_to_space.
1910         (catch_ada_exception_command_split): Use skip_spaces.
1911         (ada_decode_assert_location): Likewise.
1912
1913 2012-01-04  Joel Brobecker  <brobecker@adacore.com>
1914
1915         * linespec.c (decode_line_internal): Check for C++ or Java
1916         compound constructs only if the current language is C, C++
1917         or Java.
1918
1919 2012-01-04  Jan Kratochvil  <jan.kratochvil@redhat.com>
1920
1921         Revert:
1922         2012-01-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
1923                     Joel Brobecker  <brobecker@adacore.com>
1924         Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
1925         * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
1926         3 times.
1927         * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
1928         fall through into AT_ENTRY_POINT.
1929         (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len.  Adjust
1930         DUMMY_ADDR with it.
1931         * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
1932         PPC_INSN_SIZE skip to 3 times.
1933
1934 2012-01-04  Joel Brobecker  <brobecker@adacore.com>
1935
1936         * linespec.c (add_minsym): Preserve function descriptors.
1937
1938 2012-01-04  Ulrich Weigand  <uweigand@de.ibm.com>
1939
1940         * breakpoint.c (all_locations_are_pending): Consider locations
1941         in program spaces executing during startup pending as well.
1942
1943 2012-01-04  Joel Brobecker  <brobecker@adacore.com>
1944
1945         Copyright year update in most files of the GDB Project.
1946
1947 2012-01-04  Joel Brobecker  <brobecker@adacore.com>
1948
1949         * copyright.sh: Delete.
1950         * copyright.py: Rewrite.
1951
1952 2012-01-04  Joel Brobecker  <brobecker@adacore.com>
1953
1954         * gnulib/extra/update-copyright: New file, imported from gnulib.
1955
1956 2012-01-04  Joel Brobecker  <brobecker@adacore.com>
1957
1958         * README (Copyright and License Notices): New section.
1959
1960 2012-01-03  Tom Tromey  <tromey@redhat.com>
1961
1962         PR python/12533:
1963         * python/py-value.c (valpy_dereference, valpy_get_address
1964         valpy_get_dynamic_type, valpy_lazy_string, valpy_do_cast)
1965         (valpy_getitem, valpy_call, valpy_binop, valpy_negative)
1966         (valpy_absolute, valpy_richcompare): Free intermediate values.
1967
1968 2011-01-03  Joel Brobecker  <brobecker@adacore.com>
1969
1970         * ada-lang.c: Reformat the copyright notice.
1971
1972 2012-01-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
1973
1974         * Makefile.in (ALL_TARGET_OBS): Remove solib-target.o.
1975         * configure.tgt (arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-symbianelf*)
1976         (i[34567]86-*-dicos*, i[34567]86-*-cygwin*, i[34567]86-*-mingw32*)
1977         (x86_64-*-dicos*, x86_64-*-mingw*): Remove solib-target.o.
1978         Revert this part of:
1979         2012-01-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
1980         Build gdb directly from *.o files not using libgdb.a.
1981         * Makefile.in (COMMON_OBS): Remove solib-target.o.
1982
1983 2012-01-02  Joel Brobecker  <brobecker@adacore.com>
1984
1985         * gdb/common/gdb_thread_db.h, gdb/dbxread.c, gdb/environ.c,
1986         gdb/gcore.h, gdb/rs6000-tdep.h, gdb/s390-nat.c, gdb/tic6x-tdep.c:
1987         Reformat the copyright header.
1988
1989 2012-01-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
1990
1991         Revert this part of:
1992         2012-01-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
1993         Remove the gdbtui binary.
1994         * gdb.c (main): Remove args.interpreter_p initialization.
1995         * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
1996         * main.h (struct captured_main_args): Remove interpreter_p.
1997
1998 2012-01-02  Joel Brobecker  <brobecker@adacore.com>
1999
2000         * config/djgpp/fnchange.lst: Add entry for ChangeLog-2011.
2001
2002 2012-01-02  Joel Brobecker  <brobecker@adacore.com>
2003
2004         * top.c (print_gdb_version): Update copyright year.
2005
2006 2012-01-02  Yao Qi  <yao@codesourcery.com>
2007
2008         * inf-ptrace.c (inf_ptrace_xfer_partial): Reindent.
2009
2010 2012-01-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
2011             Joel Brobecker  <brobecker@adacore.com>
2012
2013         Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
2014         * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
2015         3 times.
2016         * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
2017         fall through into AT_ENTRY_POINT.
2018         (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len.  Adjust
2019         DUMMY_ADDR with it.
2020         * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
2021         PPC_INSN_SIZE skip to 3 times.
2022
2023 2012-01-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
2024
2025         * amd64-linux-nat.c (update_debug_registers_callback): New comment on
2026         the return value.
2027         * i386-linux-nat.c (update_debug_registers_callback): Likewise.
2028
2029 2012-01-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
2030
2031         Build gdb directly from *.o files not using libgdb.a.
2032         * Makefile.in (SUBDIR_TUI_OBS): Remove duplicate tui.o.
2033         (COMMON_OBS): Remove solib-target.o.
2034         (LIBGDB_OBS, libgdb.a): Move it before the gdb$(EXEEXT) rule.
2035         (gdb$(EXEEXT)): Replace libgdb.a with $(LIBGDB_OBS).
2036         (LIBGDB_OBS, libgdb.a): Move it above.
2037         * configure.tgt (alpha*-*-linux*, alpha*-*-freebsd*)
2038         (alpha*-*-kfreebsd*-gnu, alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu)
2039         (alpha*-*-openbsd*, am33_2.0*-*-linux*, arm*-wince-pe)
2040         (arm*-*-mingw32ce*, arm*-*-linux*, arm*-*-netbsd*, arm*-*-knetbsd*-gnu)
2041         (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-linux*)
2042         (hppa*-*-netbsd*, hppa*-*-openbsd*, i[34567]86-*-darwin*)
2043         (i[34567]86-*-dicos*, i[34567]86-*-freebsd*, i[34567]86-*-kfreebsd*-gnu)
2044         (i[34567]86-*-netbsd*, i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*)
2045         (i[34567]86-*-nto*, i[34567]86-*-solaris2.1[0-9]*)
2046         (x86_64-*-solaris2.1[0-9]*, i[34567]86-*-solaris*, i[34567]86-*-linux*)
2047         (i[34567]86-*-gnu*, ia64-*-linux*, m32r*-*-linux*, m68*-*-linux*)
2048         (m68*-*-netbsd*, m68*-*-knetbsd*-gnu, m68*-*-openbsd*)
2049         (microblaze*-linux-*, microblaze*-*-linux*, mips*-sgi-irix5*)
2050         (mips*-sgi-irix6*, mips*-*-linux*, mips*-*-netbsd*)
2051         (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
2052         (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-aix*, rs6000-*-*)
2053         (powerpc-*-linux*, powerpc64-*-linux*, powerpc*-*-*, s390*-*-*)
2054         (sh*-*-linux*, sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
2055         (sparc-*-linux*, sparc64-*-linux*, sparc*-*-freebsd*)
2056         (sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*, sparc-*-knetbsd*-gnu)
2057         (sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu, sparc-*-openbsd*)
2058         (sparc64-*-openbsd*, sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*)
2059         (sparc-*-solaris2*, sparcv9-*-solaris2*, sparc64-*-solaris2*)
2060         (vax-*-netbsd*, vax-*-knetbsd*-gnu, x86_64-*-darwin*, x86_64-*-dicos*)
2061         (x86_64-*-linux*, x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu)
2062         (x86_64-*-netbsd*, x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*)
2063         (xtensa*-*-linux*, xtensa*): Remove solib.o from gdb_target_obs.
2064
2065 2012-01-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
2066
2067         Remove the gdbtui binary.
2068         * .gitignore (/gdbtui): Remove.
2069         * Makefile.in (TUI): Remove.
2070         (SUBDIR_TUI_OBS): Remove tui-main.o.
2071         (SUBDIR_TUI_SRCS): Remove tui/tui-main.c.
2072         (all-tui, install-tui, uninstall-tui, $(TUI)$(EXEEXT), clean-tui)
2073         (tui-main.o): Remove.
2074         (all_object_files): Remove tui-main.o.
2075         * NEWS: New note for the gdbtui removal.
2076         * configure: Rebuilt.
2077         * configure.ac: No longer add all-tui, clean-tui, install-tui and
2078         uninstall-tui to CONFIG_ALL, CONFIG_CLEAN, CONFIG_INSTALL and
2079         CONFIG_UNINSTALL respectively.
2080         * gdb.c (main): Remove args.interpreter_p initialization.
2081         * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
2082         * main.h (struct captured_main_args): Remove interpreter_p.
2083         * tui/tui-main.c: Remove.
2084
2085 2012-01-01  Doug Evans  <dje@google.com>
2086
2087         * dwarf2read.c (dwarf2_compute_name): Simplify objfile references.
2088         (dwarf2_physname, read_import_statement): Ditto.
2089         (read_call_site_scope, dwarf2_record_block_ranges): Ditto.
2090         (process_structure_scope read_subroutine_type): Ditto.
2091         (read_typedef, load_partial_dies, read_partial_die): Ditto.
2092         (find_partial_die, dwarf_decode_lines, lookup_die_type): Ditto.
2093         (dwarf2_fetch_die_location_block): Ditto.
2094         (dwarf_decode_macros, dwarf2_symbol_mark_computed): Ditto.
2095
2096         * dwarf2read.c (read_signatured_type): Delete `objfile' arg.
2097         All callers updated.
2098         (load_full_comp_unit, queue_comp_unit, process_queue): Ditto.
2099         (dw2_do_instantiate_symtab, dw2_instantiate_symtab): Ditto.
2100         (process_psymtab_comp_unit, load_partial_comp_unit): Ditto.
2101
2102         * dwarf2read.c (load_cu): Move assert to more useful location.
2103
2104         * dwarf2read.c (free_heap_comp_unit): Renamed from free_one_comp_unit.
2105         All callers updated.
2106
2107         * dwarf2read.c (dwarf2_per_objfile): Add comment.
2108         (dwarf2_elf_names): Minor reformat.
2109         (dwarf2_per_cu_data): Tweak comment.
2110         (dwarf2_read_section): Fix comment.
2111         (create_all_comp_units): Fix comment.
2112         (load_full_comp_unit): Fix comment.
2113         (process_full_comp_unit): Fix comment.
2114         (read_signatured_type): Fix comment.
2115
2116 For older changes see ChangeLog-2011.
2117 \f
2118 Local Variables:
2119 mode: change-log
2120 left-margin: 8
2121 fill-column: 74
2122 version-control: never
2123 coding: utf-8
2124 End: