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