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