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