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