sol-thread.c: Remove commented-out code.
[binutils-gdb.git] / gdb / ChangeLog
1 2012-09-27 Joel Brobecker <brobecker@adacore.com>
2
3 * sol-thread.c (sol_thread_fetch_registers)
4 (sol_thread_store_registers): Delete commented out code.
5
6 2012-09-27 Joel Brobecker <brobecker@adacore.com>
7
8 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
9 Move these functions to sparc-sol-thread.c.
10 * sparc-sol-thread.c: New file.
11 * configure.ac: Add sparc-sol-thread.o to CONFIG_OBS and
12 sparc-sol-thread.c to CONFIG_SRCS for sparc-solaris native
13 configurations.
14 * configure: Regenerate.
15
16 2012-09-27 Joel Brobecker <brobecker@adacore.com>
17
18 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
19 Remove commented-out code.
20
21 2012-09-27 Joel Brobecker <brobecker@adacore.com>
22
23 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
24 Enable this code for sparc hosts only.
25
26 2012-09-27 Joel Brobecker <brobecker@adacore.com>
27
28 * procfs.h (procfs_find_LDT_entry): Add declaration.
29 * sol-thread.c (ps_lgetLDT): Delete local declaration of
30 function procfs_find_LDT_entry.
31
32 2012-09-27 Joel Brobecker <brobecker@adacore.com>
33
34 * procfs.c (proc_get_LDT_entry): Make static.
35
36 2012-09-27 Joel Brobecker <brobecker@adacore.com>
37
38 * procfs.c (proc_find_memory_regions): Fix declaration.
39
40 2012-09-27 Siddhesh Poyarekar <siddhesh@redhat.com>
41
42 * amd64-tdep.c (amd64_return_value): Revert previous change
43 that used TYPE_LENGTH directly.
44 * bfin-tdep.c (bfin_extract_return_value): Likewise.
45 (bfin_store_return_value): Likewise.
46 * cris-tdep.c (cris_store_return_value): Likewise.
47 (cris_extract_return_value): Likewise.
48 * h8300-tdep.c (h8300_extract_return_value): Likewise.
49 * hppa-tdep.c (hppa64_return_value): Likewise.
50 * lm32-tdep.c (lm32_store_return_value): Likewise.
51 * microblaze-tdep.c (microblaze_store_return_value): Likewise.
52 * spu-tdep.c (spu_value_from_register): Likewise.
53 * vax-tdep.c (vax_return_value): Likewise.
54
55 2012-09-27 Siddhesh Poyarekar <siddhesh@redhat.com>
56
57 * gdbtypes.c (lookup_array_range_type): Expand parameters
58 LOW_BOUND and HIGH_BOUND to LONGEST.
59 (lookup_string_range_type): Likewise.
60 * gdbtypes.h (lookup_array_range_type): Likewise.
61 (lookup_string_range_type): Likewise.
62 * valops.c (value_cstring): Expand parameter LEN to ssize_t.
63 Expand HIGHBOUND to ssize_t.
64 (value_string): Likewise.
65 * value.h (value_cstring): Expand parameter LEN to ssize_t.
66 (value_string): Likewise.
67
68 2012-09-27 Yao Qi <yao@codesourcery.com>
69
70 PR breakpoints/13898
71 * breakpoint.h (tracepoint_breakpoint_ops): Forward declaration.
72 * mi/mi-cmd-break.c (mi_cmd_break_insert): Set breakpoint_ops
73 per breakpoint type.
74
75 2012-09-26 Pierre Muller <muller@ics.u-strasbg.fr>
76
77 * procfs.c: Add gdb_bfd header.
78 * rs6000-nat.c: Likewise.
79 * solib-pa64.c: Likewise.
80 * spu-linux-nat.c: Likewise.
81 * windows-nat.c: Likewise.
82
83 2012-09-26 Tom Tromey <tromey@redhat.com>
84
85 * f-lang.h (BLANK_COMMON_NAME_LOCAL): Remove.
86
87 2012-09-26 Tom Tromey <tromey@redhat.com>
88
89 * dwarf2read.c (mark_common_block_symbol_computed): New function.
90 (read_common_block): Handle child DIEs with
91 DW_AT_data_member_location.
92 (new_symbol_full): Add special case for common blocks.
93
94 2012-09-26 Jan Kratochvil <jan.kratochvil@redhat.com>
95 Tom Tromey <tromey@redhat.com>
96
97 * dwarf2read.c (read_common_block): Rewrite.
98 (new_symbol_full): Handle DW_TAG_common_block.
99 * f-lang.c (head_common_list, find_common_for_function):
100 Remove.
101 * f-lang.h (struct common_entry, struct saved_f77_common,
102 SAVED_F77_COMMON, SAVED_F77_COMMON_PTR, COMMON_ENTRY,
103 COMMON_ENTRY_PTR, head_common_list, find_common_for_function,
104 BLANK_COMMON_NAME_LOCAL): Remove.
105 (struct common_block): New.
106 * f-valprint.c (list_all_visible_commons): Remove.
107 (info_common_command_for_block): New function.
108 (info_common_command): Use it.
109 * stack.c (iterate_over_block_locals): Special case for
110 COMMON_BLOCK_DOMAIN.
111 * symtab.h (enum domain_enum_tag) <COMMON_BLOCK_DOMAIN>: New
112 constant.
113 (struct general_symbol_info) <value.common_block>: New field.
114 (SYMBOL_VALUE_COMMON_BLOCK): New define.
115
116 2012-09-26 Jan Kratochvil <jan.kratochvil@redhat.com>
117 Tom Tromey <tromey@redhat.com>
118
119 * f-lang.c (allocate_saved_bf_node,
120 allocate_saved_function_node, allocate_saved_f77_common_node,
121 allocate_common_entry_node, tail_common_list, current_common,
122 saved_bf_list, saved_bf_list_end, current_head_bf_list,
123 tmp_bf_ptr, add_common_block, add_common_entry,
124 find_first_common_named, patch_common_entries,
125 patch_all_commons_by_name, ADD_BF_SYMNUM, clear_bf_list,
126 global_remote_debug, get_bf_for_fcn, saved_function_list,
127 saved_function_list_end, clear_function_list, struct saved_fcn,
128 struct saved_bf_symnum, SAVED_FUNCTION, SAVED_FUNCTION_PTR,
129 SAVED_BF, SAVED_BF_PTR): Remove.
130 * f-lang.h (tail_common_list, current_common,
131 UNINITIALIZED_SECNUM, COMMON_NEEDS_PATCHING,
132 BLANK_COMMON_NAME_ORIGINAL, BLANK_COMMON_NAME_MF77,
133 DEFAULT_UPPER_BOUND, DEFAULT_LOWER_BOUND, real_main_name,
134 real_main_c_value): Remove.
135 * f-valprint.c (there_is_a_visible_common_named): Remove.
136
137 2012-09-26 Andrew Burgess <aburgess@broadcom.com>
138
139 * breakpoint.c (update_global_location_list): Ignore previous
140 duplicate status of a breakpoint when starting a new scan for
141 duplicate breakpoints.
142
143 2012-09-26 Karthik Bhat <kv.bhat@samsung.com>
144 PR breakpoints/14419
145 * arm-tdep.c (arm_skip_prologue): Extending producer check to
146 support LLVM compiler.
147
148 2012-09-26 Siddhesh Poyarekar <siddhesh@redhat.com>
149
150 * amd64-tdep.c (amd64_return_value): Use TYPE_LENGTH directly.
151 * bfin-tdep.c (bfin_extract_return_value): Likewise.
152 (bfin_store_return_value): Likewise.
153 * cris-tdep.c (cris_store_return_value): Likewise.
154 (cris_extract_return_value): Likewise.
155 * h8300-tdep.c (h8300_extract_return_value): Likewise.
156 * hppa-tdep.c (hppa64_return_value): Likewise.
157 * lm32-tdep.c (lm32_store_return_value): Likewise.
158 * microblaze-tdep.c (microblaze_store_return_value): Likewise.
159 * spu-tdep.c (spu_value_from_register): Likewise.
160 * vax-tdep.c (vax_return_value): Likewise.
161
162 2012-09-26 Siddhesh Poyarekar <siddhesh@redhat.com>
163
164 * breakpoint.c (invalidate_bp_value_on_memory_change): Expand
165 parameter LEN to ssize_t.
166
167 2012-09-25 Siddhesh Poyarekar <siddhesh@redhat.com>
168
169 * ada-valprint.c (ada_val_print_1): Eliminate single-use
170 variable LEN.
171 * alpha-tdep.c (alpha_extract_return_value): Use TYPE_LENGTH
172 directly.
173 (alpha_store_return_value): Likewise.
174 * amd64-tdep.c (amd64_classify_aggregate): Likewise.
175 (amd64_push_arguments): Likewise.
176 * ax-gdb.c (gen_trace_static_fields): Likewise.
177 (gen_traced_pop): Likewise.
178 * bfin-tdep.c (bfin_push_dummy_call): Likewise.
179 * breakpoint.c (update_watchpoint): Likewise.
180 * findcmd.c (parse_find_args): Use local variable for type
181 instead of length.
182 * findvar.c (default_read_var_value): Use TYPE_LENGTH directly.
183 * h8300-tdep.c (h8300h_extract_return_value): Likewise.
184 (h8300_store_return_value): Likewise.
185 * i386-darwin-tdep.c (i386_darwin_push_dummy_call): Likewise.
186 Use i386_darwin_arg_type_alignment directly.
187 * infcall.c (call_function_by_hand): Use TYPE_LENGTH directly.
188 * lm32-tdep.c (lm32_push_dummy_call): Likewise.
189 * m68hc11-tdep.c (m68hc11_push_dummy_call): Likewise.
190 (m68hc11_extract_return_value): Likewise.
191 * mep-tdep.c (mep_push_dummy_call): Likewise.
192 * printcmd.c (float_type_from_length): Likewise.
193 * s390-tdep.c (s390_value_from_register): Likewise.
194 * stack.c (read_frame_arg): Likewise.
195 * tracepoint.c (encode_actions_1): Likewise.
196 * valops.c (value_fetch_lazy): Use local variable for type
197 instead of length. Use TYPE_LENGTH directly.
198 * value.c (value_contents_equal): Use TYPE_LENGTH directly.
199
200 2012-09-25 Joel Brobecker <brobecker@adacore.com>
201
202 * symtab.c (skip_prologue_sal): Fix typo in comment.
203
204 2012-09-25 Joel Brobecker <brobecker@adacore.com>
205
206 * linespec.c (create_sals_line_offset): Fix typo in comment.
207
208 2012-09-25 Siddhesh Poyarekar <siddhesh@redhat.com>
209
210 * c-typeprint.c (c_type_print_varspec_suffix): Remove cast and
211 use plongest to print the array size.
212
213 2012-09-24 Siddhesh Poyarekar <siddhesh@redhat.com>
214
215 * m2-typeprint.c (m2_enum): Expand LASTVAL to LONGEST.
216 * p-valprint.c (pascal_type_print_base): Likewise.
217
218 2012-09-22 Yao Qi <yao@codesourcery.com>
219
220 * remote.c (remote_get_trace_status): Remove setting default
221 values of fields of 'ts'.
222
223 2012-09-21 Jan Kratochvil <jan.kratochvil@redhat.com>
224
225 Fix internal error on canonicalization of clang types.
226 * cp-name-parser.y (operator): New comment at make_operator call for
227 new, delete, new[] and delete[].
228 (exp): Use "sizeof ". Add new comment at make_operator call.
229
230 2012-09-21 Jan Kratochvil <jan.kratochvil@redhat.com>
231
232 Fix disassemble without parameters in tailcall frame.
233 * cli/cli-cmds.c (disassemble_current_function): Use
234 get_frame_address_in_block.
235
236 2012-09-21 Tom Tromey <tromey@redhat.com>
237
238 * c-typeprint.c (c_type_print_base) <TYPE_CODE_STRUCT,
239 TYPE_CODE_UNION>: Unify, removing a goto.
240
241 2012-09-21 Tom Tromey <tromey@redhat.com>
242
243 * c-typeprint.c (cp_type_print_derivation_info): Fix comment.
244
245 2012-09-21 Andrew Burgess <aburgess@broadcom.com>
246
247 * findvar.c (read_frame_register_value): Mark the result value as
248 optimized out if any of the input registers have been optimized out.
249
250 2012-09-21 Andreas Schwab <schwab@linux-m68k.org>
251
252 * python/python.c (finalize_python): Only define if HAVE_PYTHON.
253
254 2012-09-21 Siddhesh Poyarekar <siddhesh@redhat.com>
255
256 * eval.c (evaluate_subexp_standard): Eliminate single-use
257 variable LOWER.
258
259 2012-09-21 Yao Qi <yao@codesourcery.com>
260
261 * mi/mi-interp.c: Declare mi_record_changed.
262 (mi_interpreter_init): Call observer_attach_record_changed.
263 (mi_record_changed): New.
264 * record.c (record_open): Call observer_notify_record_changed.
265 (cmd_record_stop): Call observer_notify_record_changed.
266 * NEWS: Mention it.
267
268 2012-09-20 Tom Tromey <tromey@redhat.com>
269
270 * NEWS: Update.
271 * python/python.c (finalize_python): New function.
272 (_initialize_python): Make a final cleanup.
273
274 2012-09-19 Doug Evans <dje@google.com>
275
276 * buildsym.h (param_symbols): Delete, unused.
277 (context_stack): Delete member "params", unused.
278 * buildsym.c (push_context): Update.
279 * dwarf2read.c (read_func_scope): Update.
280
281 2012-09-19 Thomas Schwinge <thomas@codesourcery.com>
282
283 * sh-tdep.c (sh_register_convert_to_virtual)
284 (sh_register_convert_to_raw): Add a gdbarch parameter. Update
285 all callers. Just do a memcpy if not the little-endian case.
286
287 * h8300-tdep.c (h8300_gdbarch_init): Invoke
288 set_gdbarch_double_format and set_gdbarch_long_double_format.
289 * m68hc11-tdep.c (m68hc11_gdbarch_init): Invoke
290 set_gdbarch_double_format.
291 * sh-tdep.c (sh_gdbarch_init): Likewise.
292
293 * NEWS: Document the removal of SH's 'regs' command.
294 * sh-tdep.c (_initialize_sh_tdep): Remove the deprecated 'regs'
295 command.
296
297 2012-09-18 Sergio Durigan Junior <sergiodj@redhat.com>
298
299 * infcmd.c (_initialize_infcmd): Register `j' as an alias for
300 `jump'.
301
302 2012-09-18 Joel Brobecker <brobecker@adacore.com>
303
304 * linespec.c (iterate_over_all_matching_symtabs): Use the correct
305 language when iterating over symbols.
306
307 2012-09-18 Yao Qi <yao@codesourcery.com>
308
309 * mi/mi-interp.c: Declare mi_tsv_created and mi_tsv_deleted.
310 (mi_interpreter_init): Call observer_attach_tsv_created and
311 observer_attach_tsv_deleted.
312 (mi_tsv_created, mi_tsv_deleted): New.
313 * tracepoint.c (delete_trace_state_variable): Call
314 observer_notify_tsv_deleted.
315 (trace_variable_command): Call observer_notify_tsv_created.
316 (delete_trace_variable_command): Call
317 observer_notify_tsv_deleted.
318 (create_tsv_from_upload): Call observer_notify_tsv_created.
319 * NEWS: Mention it.
320
321 2012-09-18 Yao Qi <yao@codesourcery.com>
322
323 * tracepoint.c (tfind_1): Call observer_notify_traceframe_changed
324 if traceframe changed.
325 * mi/mi-cmds.c (mi_cmd mi_cmds): Adjust for command
326 "trace-find".
327 * mi/mi-interp.c: Declare 'mi_traceframe_changed'.
328 (mi_interpreter_init): Hook mi_traceframe_changed to observer
329 'traceframe_changed'.
330 (mi_traceframe_changed): New.
331 * mi/mi-main.h (struct mi_suppress_notification) <traceframe>:
332 New field.
333 * NEWS: Mention the new MI notification.
334
335 2012-09-17 Mike Wrighton <wrighton@codesourcery.com>
336
337 * MAINTAINERS (Write After Approval): Add "Mike Wrighton".
338
339 2012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
340
341 * common/linux-ptrace.c: Change __i386__ to __i386__ || __x86_64__.
342 (linux_ptrace_test_ret_to_nx): Extend comment for x86_64. Change
343 __i386__ to __i386__ || __x86_64__. Extend code also for __x86_64__.
344 Extend code also for PaX support. Convert all gdb_assert to warning
345 calls.
346
347 2012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
348
349 Implement auto-load user conveniences suggested by Doug Evans.
350 * auto-load.c: Include top.h.
351 (file_is_auto_load_safe): New variable advice_printed. Print advice.
352 (_initialize_auto_load): New variable scripts_directory_help. Mention
353 GDBPY_AUTO_FILE_NAME and GDB_AUTO_FILE_NAME for set auto-load
354 scripts-directory. Document in online help one can use also files for
355 set auto-load safe-path.
356 * python/py-auto-load.c: (GDBPY_AUTO_FILE_NAME): Move it from here ...
357 * python/python.h (GDBPY_AUTO_FILE_NAME): ... to here.
358
359 2012-09-17 Siddhesh Poyarekar <siddhesh@redhat.com>
360
361 * tic6x-tdep.c (tic6x_push_dummy_call): Remove unused definition
362 of LEN.
363
364 2012-09-17 Siddhesh Poyarekar <siddhesh@redhat.com>
365
366 * m2-valprint.c (m2_print_array_contents): Eliminate variable
367 ELTLEN and use TYPE_LENGTH directly.
368 (m2_val_print): Likewise.
369 * m68k-tdep.c (m68k_svr4_extract_return_value): Eliminate
370 variable LEN and use TYPE_LENGTH directly.
371 (m68k_svr4_store_return_value): Likewise.
372 * mips-tdep.c (mips_o32_push_dummy_call): Eliminate variable
373 ARGLEN and use TYPE_LENGTH directly.
374 (mips_o64_push_dummy_call): Likewise.
375 * s390-tdep (s390_function_arg_pass_by_reference): Eliminate
376 variable LENGTH and use TYPE_LENGTH directly.
377 (s390_function_arg_float): Likewise.
378 (s390_function_arg_integer): Likewise.
379 (s390_push_dummy_call): Likewise.
380 (s390_return_value_convention): Likewise.
381 * spu-tdep.c (spu_push_dummy_call): Eliminate LEN and use
382 TYPE_LENGTH directly.
383
384 2012-09-17 Yao Qi <yao@codesourcery.com>
385
386 * cli/cli-decode.c (add_setshow_zuinteger_unlimited_cmd): New.
387 Update comment to add_setshow_integer_cmd.
388 * cli/cli-setshow.c (do_set_command): Handle case
389 'var_zuinteger_unlimited'.
390 (do_show_command): Likewise.
391 * cli/cli-cmds.c (init_cmds): Call add_setshow_zuinteger_unlimited_cmd
392 for command 'remotetimeout'.
393 * command.h (enum var_types): New zuinteger_unlimited. Update comment
394 to var_integer.
395 * source.c (_initialize_source): Call add_setshow_zuinteger_unlimited_cmd
396 for command 'set listsize'.
397
398 2012-09-17 Siddhesh Poyarekar <siddhesh@redhat.com>
399
400 * infrun.c (restore_infcall_suspend_state): Eliminate single-use
401 variable LEN.
402
403 2012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
404
405 PR 14119
406 * frame.c (skip_inlined_frames): Skip also TAILCALL_FRAME frames.
407 (frame_pop): Drop also TAILCALL_FRAME frames.
408 * infcmd.c (finish_command): Ignore also TAILCALL_FRAME frames.
409
410 2012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
411 Pedro Alves <palves@redhat.com>
412
413 PR 14548
414 * infrun.c (handle_inferior_event): Do not reverse-continue back to the
415 function start if we are already at function start. Both for
416 reverse-next and for reverse-step into function without line number
417 info.
418
419 2012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
420
421 Code cleanup - rename 'inline' depth to 'artificial' depth.
422 * breakpoint.c (set_momentary_breakpoint): Rename at a caller to
423 frame_id_artificial_p, extend the comment.
424 * dwarf2-frame-tailcall.c (tailcall_frame_this_id): Rename at a user.
425 * frame.c (fprint_frame_id): Rename at a user, change debug output
426 text to "artificial=".
427 (skip_inlined_frames): Rename to ...
428 (skip_artificial_frames): ... here. Extend the comment.
429 (get_stack_frame_id, frame_unwind_caller_id): Rename at a caller.
430 (frame_id_inlined_p): Rename to ...
431 (frame_id_artificial_p): ... here. Rename at a user.
432 (frame_id_eq, frame_id_inner, frame_unwind_caller_pc)
433 (frame_unwind_caller_pc_if_available, frame_unwind_caller_arch): Rename
434 at a user.
435 * frame.h (struct frame_id): Rename inline_depth to artificial_depth.
436 Extend the comment.
437 (frame_id_inlined_p): Rename to ...
438 (frame_id_artificial_p): ... here.
439 * inline-frame.c (inline_frame_this_id): Rename at a user.
440
441 2012-09-14 Andrew Burgess <aburgess@broadcom.com>
442
443 * c-typeprint.c (c_type_print_varspec_suffix): Display the size of
444 vector variables using vector_size syntax rather than array
445 syntax.
446
447 2012-09-14 Siddhesh Poyarekar <siddhesh@redhat.com>
448
449 * valarith.c (value_concat): Replace unsafe ALLOCA with
450 XMALLOC/XFREE.
451
452 2012-09-14 Pedro Alves <palves@redhat.com>
453
454 * gdb.1 (SEE ALSO): Expand pointer to GDB's Texinfo manual.
455
456 2012-09-14 Khoo Yit Phang <khooyp@cs.umd.edu>
457
458 Point contrib/cc-with-tweaks.sh to the build-local data-directory.
459 * contrib/cc-with-tweaks.sh (GDB): Add -data-directory
460 data-directory as appropriate.
461
462 2012-09-14 Siddhesh Poyarekar <siddhesh@redhat.com>
463
464 * printcmd.c (ui_printf): Eliminate single-use variable
465 PARAM_LEN.
466
467 2012-09-14 Yao Qi <yao@codesourcery.com>
468 Pedro Alves <palves@redhat.com>
469
470 * valops.c (value_assign): Move observer_notify_target_changed
471 below to replace reinit_frame_cache.
472
473 2012-09-13 Khoo Yit Phang <khooyp@cs.umd.edu>
474
475 Refactor Python "gdb" module into a proper Python package, by
476 introducing a new "_gdb" module for code implemented in C, and
477 using reload/__import__ instead of exec.
478 * python/lib/gdb/__init__.py: Import * from _gdb.
479 (GdbOutputFile, sys.stdout, GdbOutputErrorFile, sys.stderr,
480 prompt_hook, sys.argv): Moved from finish_python_initialization.
481 (pretty_printers, PYTHONDIR): Moved from _initialize_python.
482 (packages, auto_load_packages): New list and function replacing
483 module_dict and auto-loading code, using __file__ instead of
484 gdb.PYTHONDIR and reload/__import__ instead of exec.
485 (GdbSetPythonDirectory): Replacing function of the same name
486 from finish_python_initialization, using reload/__import__ instead
487 of exec, as well as call auto_load_packages.
488 * python/py-prettyprint.c (find_pretty_printer_from_gdb): Check
489 gdb_python_module and not gdb_module.
490 * python/python-internal.h (gdb_python_module): Declare.
491 * python/python.c (gdb_python_module): New global.
492 (before_prompt_hook): Check gdb_python_module and not gdb_module.
493 (_initialize_python): Rename gdb module to _gdb.
494 Move gdb.PYTHONDIR and gdb.pretty_printer to lib/gdb/__init__.py.
495 (finish_python_initialization): Move Python code to
496 lib/gdb/__init__.py; instead, set up sys.path and import gdb into
497 __main__.
498
499 2012-09-13 Pedro Alves <palves@redhat.com>
500
501 * Makefile.in (COMMON_OBS): Add registry.o.
502 * registry.c: New file.
503 * registry.h (struct registry_container): Declare.
504 (registry_data_callback): New typedef.
505 (struct registry_data, struct registry_data_registration, struct
506 registry_data_registry): New type.
507 (register_data_with_cleanup, registry_alloc_data)
508 (registry_callback_adaptor, registry_clear_data)
509 (registry_container_free_data, registry_set_data, registry_data):
510 Declare.
511 (DEFINE_REGISTRY): Refactor structures and functions as shims over
512 the new common structures and functions.
513 (DECLARE_REGISTRY): Declare struct TAG ## _data. Use the tagged
514 callback typedefs.
515
516 2012-09-12 Mike Wrighton <wrighton@codesourcery.com>
517
518 * remote.c (remote_insert_hw_breakpoint): Throw exception if
519 there is an error inserting hardware breakpoints and use the
520 error message from the target.
521
522 * breakpoint.c (insert_bp_location, insert_breakpoint_locations):
523 Catch this exception and print the error message contained within. Do not
524 print the default hardware error breakpoint message in this case.
525
526 2012-09-12 Doug Evans <dje@google.com>
527
528 * dwarf2read.c (dwarf2_read_addr_index): Fix handling the case where
529 cu == NULL.
530
531 2012-09-11 Doug Evans <dje@google.com>
532
533 * dwarf2read.c (dw2_do_expand_symtabs_matching): Don't examine
534 .gdb_index symbol attributes if there are none.
535
536 2012-09-11 Joel Brobecker <brobecker@adacore.com>
537
538 * symtab.h (struct minimal_symbol) [has_size]: New field.
539 (MSYMBOL_SIZE): Adjust to forbid macro from being used as lvalue.
540 (SET_MSYMBOL_SIZE, MSYMBOL_HAS_SIZE): New macros.
541 * printcmd.c (build_address_symbolic): Only filter out zero-sized
542 minimal symbols if the symbol's size is actually known.
543 * minsyms.c (prim_record_minimal_symbol_full): Adjust setting
544 of msymbol's size field. Add comment.
545 * elfread.c (elf_symtab_read, elf_rel_plt_read): Use
546 SET_MSYMBOL_SIZE to set the minimal symbol size.
547
548 2012-09-11 Joel Brobecker <brobecker@adacore.com>
549
550 * minsyms.c (install_minimal_symbols): Use memset to fill entire
551 minimal_symbol struct object, rather than setting some of its
552 fields one by one.
553
554 2012-09-11 Andrew Burgess <aburgess@broadcom.com>
555
556 * c-typeprint.c (c_type_print_varspec_prefix): Pass through the
557 passed_a_ptr flag when displaying typedef types.
558
559 2012-09-10 Joel Brobecker <brobecker@adacore.com>
560
561 * ada-lang.c (coerce_unspec_val_to_type): Make sure that
562 the optimized_out flag is preserved.
563
564 2012-09-10 Anthony Green <green@moxielogic.com>
565
566 * moxie-tdep.c (moxie_analyze_prologue): Update for function
567 prologue changes in GCC.
568
569 2012-09-10 Keith Seitz <keiths@redhat.com>
570
571 PR gdb/13483
572 * gdbtypes.h (BOOL_PTR_CONVERSION_BADNESS): Rename to ...
573 (BOOL_CONVERSION_BADNESS): ... this.
574 * gdbtypes.c (BOOL_PTR_CONVERSION_BADNESS): Likewise.
575 (rank_one_type): Allow all boolean conversions
576 permitted by the standard.
577
578 2012-09-06 Tom Tromey <tromey@redhat.com>
579
580 * python/py-newobjfileevent.c (create_new_objfile_event_object):
581 Don't decref py_objfile.
582
583 2012-09-02 Khoo Yit Phang <khooyp@cs.umd.edu>
584
585 Do not enable -lmcheck by default when Python is enabled with
586 threading support.
587 * configure.ac: (python_has_threads) New variable, by testing
588 if WITH_THREAD is defined in Python.h.
589 Move --enable-lmcheck after --with-python.
590 Do not enable -lmcheck by default if python_has_threads=yes.
591 Warn if --enable-lmcheck and python_has_threads=yes.
592 * configure: Regenerate.
593
594 2012-08-31 Yao Qi <yao@codesourcery.com>
595
596 * mi/mi-cmds.c (mi_cmds): New macros DEF_MI_CMD_CLI
597 DEF_MI_CMD_MI DEF_MI_CMD_CLI_1 and DEF_MI_CMD_CLI_1.
598 Update some commands.
599 * mi/mi-cmds.h (struct mi_cmd) <suppress_notification>: New field.
600 * mi/mi-main.c (mi_cmd_execute): Set '*parse->cmd->suppress_notification'
601 to 1.
602
603 2012-08-31 Yao Qi <yao@codesourcery.com>
604
605 * mi/mi-cmds.c (mi_cmds): Add 'static'.
606
607 2012-08-30 Khoo Yit Phang <khooyp@cs.umd.edu>
608
609 * MAINTAINERS (Write After Approval): Add "Khoo Yit Phang".
610
611 2012-08-29 Doug Evans <dje@google.com>
612
613 * main.c (print_gdb_help): Remove reference to
614 --use-deprecated-index-sections.
615
616 2012-08-28 Yao Qi <yao@codesourcery.com>
617
618 * cli/cli-cmds.c (max_user_call_depth): Add 'unsigned'.
619 (init_cmds): Call add_setshow_uinteger_cmd for command
620 'max-user-call-depth'.
621 * cli/cli-script.c (execute_user_command): Add 'unsigned' to the
622 declaration of 'max_user_call_depth'.
623 * frame.c (backtrace_limit): Add 'unsigned'.
624 (_initialize_frame): Call add_setshow_uinteger_cmd for command
625 'limit'.
626 * remote.c (remoteaddresssize): Add 'unsigned'.
627 (remote_address_masked): Change local var 'address_size' to
628 'unsigned'.
629 (_initialize_remote): Call add_setshow_uinteger_cmd for
630 'remoteaddresssize'.
631 * top.c (history_size): Add 'unsigned'.
632 (show_commands): Change local variables to 'unsigned'.
633 (set_history_size_command): Don't check history_size is negative.
634 Adjust the condition to call unstifle_history and set history_size
635 to UNIT_MAX.
636
637 2012-08-28 Pedro Alves <palves@redhat.com>
638
639 PR gdb/14428
640
641 * infcmd.c (default_print_one_register_info): New, factored out
642 from default_print_registers_info.
643 (default_print_registers_info): Use it. Mark value unavailable if
644 necessary.
645 (registers_info): Print user registers with
646 default_print_one_register_info.
647
648 2010-08-27 H.J. Lu <hongjiu.lu@intel.com>
649
650 PR tui/14486
651 * tui/tui-source.c (tui_source_is_displayed): Check if TUI_SRC_WIN
652 is not NULL before referencing it.
653
654 2012-08-27 Jan Kratochvil <jan.kratochvil@redhat.com>
655
656 * breakpoint.c (parse_breakpoint_sals) <(*address) == NULL>: New
657 variable pc. Call find_pc_line instead of find_pc_overlay, restore
658 original PC for it.
659
660 2012-08-27 Eli Zaretskii <eliz@gnu.org>
661 Jan Kratochvil <jan.kratochvil@redhat.com>
662
663 * auto-load.c (auto_load_objfile_script): Rename to ...
664 (auto_load_objfile_script_1): ... here, change variable realname to
665 parameter realname, document it, add return value, add variable retval.
666 (auto_load_objfile_script): New function.
667
668 2012-08-27 Jan Kratochvil <jan.kratochvil@redhat.com>
669
670 * cli/cli-decode.c (print_doc_line): Keep skipping '.' and ',' not
671 followed by a whitespace.
672
673 2012-08-27 Jan Kratochvil <jan.kratochvil@redhat.com>
674
675 PR gdb/14494.
676 * dwarf2read.c (dwarf2_locate_sections): Move variable aflag here.
677 Move the SEC_HAS_CONTENTS check here - for any NAMES use.
678 (dwarf2_locate_sections) <eh_frame>: Move the variable and check from
679 here.
680
681 2012-08-27 Wei-cheng Wang <cole945@gmail.com>
682
683 * memattr.c (create_mem_region): Fix memory region overlapping
684 checking.
685
686 2012-08-24 Siddhesh Poyarekar <siddhesh@redhat.com>
687
688 * h8300-tdep.c (h8300_push_dummy_call): Replace unsafe alloca
689 with xmalloc/cleanup.
690 * mt-tdep.c (mt_push_dummy_call): Likewise.
691 * tilegx-tdep.c (tilegx_push_dummy_call): Likewise.
692 * xstormy16-tdep.c (xstormy16_push_dummy_call): Likewise.
693
694 2012-08-24 Yao Qi <yao@codesourcery.com>
695
696 * jv-exp.y (push_expression_name): Add "." at the end of error
697 message.
698
699 2012-08-23 Khoo Yit Phang <khooyp@cs.umd.edu>
700
701 Document how to return from "python-interactive" to GDB.
702 * python/python.c (_initialize_python): Update documentation.
703
704 2012-08-23 Pedro Alves <palves@redhat.com>
705
706 * infrun.c (_initialize_infrun) <handle command help text>:
707 Mention that multiple signals are supported.
708
709 2012-08-23 Pedro Alves <palves@redhat.com>
710
711 * infcmd.c (_initialize_infcmd) <signal command>: Fix typo in help
712 string.
713
714 2012-08-23 Yao Qi <yao@codesourcery.com>
715
716 * tracepoint.c (disconnect_tracing): Call set_tracepoint_num.
717 (tfind_1): Don't call registers_changed, set_traceframe_num,
718 and clear_traceframe_info.
719 Call set_current_traceframe.
720 (set_current_traceframe): call set_traceframe_num.
721
722 2012-08-22 Sergio Durigan Junior <sergiodj@redhat.com>
723
724 * remote-sim.c (_initialize_remote_sim): Pass NULL argument to
725 `register_inferior_data_with_cleanup', fixing regression on PowerPC64.
726
727 2012-08-22 Khoo Yit Phang <khooyp@cs.umd.edu>
728
729 Enable readline in Python in a GDB-specific way and block the
730 standard Python readline module to prevent conflicts with GDB.
731 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-gdb-readline.o.
732 (SUBDIR_PYTHON_SRCS): Add python/py-gdb-readline.c.
733 (py-gdb-readline.o): Add rule to compile python/py-gdb-readline.c.
734 * python/py-gdb-readline.c: New file.
735 * python/python-internal.h (gdbpy_initialize_gdb_readline): New
736 prototype.
737 * python/python.c (_initialize_python): Call
738 gdbpy_initialize_gdb_readline.
739
740 2012-08-22 Keith Seitz <keiths@redhat.com>
741
742 * defs.h: Include build-gnulib/config.h
743
744 2012-08-22 Joseph Myers <joseph@codesourcery.com>
745
746 * arm-tdep.c (thumb_get_next_pc_raw): Mask off low bits for bx pc
747 and blx pc.
748
749 2012-08-22 Khoo Yit Phang <khooyp@cs.umd.edu>
750
751 Add a new "python-interactive" command that starts a standard
752 Python interactive prompt with "pi" as alias, and add "py" as
753 an alias to "python".
754 * NEWS: Mention the new commands.
755 * python/python.c (eval_python_command): New function.
756 (python_interactive_command): For "python-interactive" with
757 arguments, call eval_python_command. For "python-interactive"
758 without arguments, call PyRun_InteractiveLoop.
759 (_initialize_python): Add "python-interactive" command with
760 "pi" as alias, and add "py" as an alias to "python".
761
762 2012-08-22 Tom Tromey <tromey@redhat.com>
763
764 * defs.h (quit_flag): Don't declare.
765 (clear_quit_flag, check_quit_flag, set_quit_flag): Declare.
766 (QUIT): Use new functions.
767 * event-top.c (command_handler): Use clear_quit_flag.
768 (handle_sigint): Use set_quit_flag.
769 (async_request_quit): Use check_quit_flag. Don't check
770 immediate_quit.
771 * exceptions.c (throw_exception): Use clear_quit_flag.
772 * main.c (captured_main): Use clear_quit_flag.
773 * python/python.c (clear_quit_flag, set_quit_flag)
774 (check_quit_flag): New functions.
775 * remote-sim.c (gdb_os_poll_quit): Use check_quit_flag,
776 clear_quit_flag.
777 * remote.c (remote_wait_as): Use check_quit_flag,
778 clear_quit_flag.
779 (remote_start_remote): Call QUIT.
780 * symfile.c (load_progress): Use check_quit_flag.
781 * top.c (command_loop): Use clear_quit_flag.
782 (command_line_input): Call QUIT.
783 * utils.c (quit_flag): Conditionally define.
784 (clear_quit_flag, check_quit_flag, set_quit_flag): New
785 functions.
786 (prompt_for_continue): Call QUIT. Use quit, not
787 async_request_quit.
788 * remote-mips.c (mips_expect_timeout): Call QUIT.
789 * monitor.c (monitor_expect): Call QUIT.
790
791 2012-08-22 Tom Tromey <tromey@redhat.com>
792
793 * event-top.c (sigwinch_token, handle_sigwinch): Remove.
794 (async_init_signals): Update.
795 * utils.c (init_page_info): Don't use SIGWINCH_HANDLER.
796 (SIGWINCH_HANDLER_BODY): Remove.
797
798 2012-08-22 Tom Tromey <tromey@redhat.com>
799
800 * jit.c (jit_object_close_impl): Don't malloc the objfile
801 name.
802 * objfiles.c (allocate_objfile): Don't malloc the objfile
803 name.
804 (free_objfile): Don't free the objfile name.
805 * objfiles.h (struct objfile) <name>: Update comment.
806 * symfile.c (reread_symbols): Fix reference counting. Don't
807 malloc objfile name.
808
809 2012-08-22 Tom Tromey <tromey@redhat.com>
810
811 * windows-nat.c (windows_make_so): Use gdb_bfd_open.
812 * symfile.c (bfd_open_maybe_remote): Use gdb_bfd_open.
813 (symfile_bfd_open): Likewise.
814 (generic_load): Likewise.
815 * solib.c (solib_bfd_fopen): Use gdb_bfd_open.
816 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
817 gdb_bfd_open.
818 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
819 Use gdb_bfd_open.
820 * rs6000-nat.c (add_vmap): Use gdb_bfd_open.
821 * remote-mips.c (mips_load_srec): Use gdb_bfd_open.
822 (pmon_load_fast): Likewise.
823 * remote-m32r-sdi.c (m32r_load): Use gdb_bfd_open.
824 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_open.
825 * machoread.c (macho_symfile_read_all_oso): Use gdb_bfd_open.
826 (macho_check_dsym): Likewise.
827 * m32r-rom.c (m32r_load): Use gdb_bfd_open.
828 (m32r_upload_command): Likewise.
829 * gdb_bfd.h (gdb_bfd_cache): Declare.
830 * gdb_bfd.c (struct gdb_bfd_data): New.
831 (gdb_bfd_cache): New global.
832 (struct gdb_bfd_cache_search): New.
833 (hash_bfd): New function.
834 (eq_bfd): Likewise.
835 (gdb_bfd_open): Likewise.
836 (gdb_bfd_ref): Allocate a gdb_bfd_data and attach to the BFD.
837 (gdb_bfd_unref): Remove closed BFD from cache. Update for
838 gdb_bfd_data.
839 * exec.c (exec_file_attach): Use gdb_bfd_open.
840 * dsrec.c (load_srec): Use gdb_bfd_open.
841
842 2012-08-22 Tom Tromey <tromey@redhat.com>
843
844 * dwarf2read.c (macro_start_file): Update.
845 * objfiles.c (get_objfile_bfd_data): Initialize macro_cache.
846 (free_objfile_per_bfd_storage): Destroy macro_cache.
847 (allocate_objfile, free_objfile): Update.
848 * objfiles.h (struct objfile_per_bfd_storage) <macro_cache>:
849 New field.
850 (struct objfile) <macro_cache>: Remove.
851 * symfile.c (reread_symbols): Update.
852 * symmisc.c (print_symbol_bcache_statistics): Update.
853 (print_objfile_statistics): Update.
854
855 2012-08-22 Tom Tromey <tromey@redhat.com>
856
857 * elfread.c (elf_symtab_read): Update.
858 * objfiles.c (objfiles_bfd_data): New global.
859 (get_objfile_bfd_data, free_objfile_per_bfd_storage)
860 (objfile_bfd_data_free, set_objfile_per_bfd): New functions.
861 (allocate_objfile, free_objfile): Update.
862 (_initialize_objfiles): Initialize objfiles_bfd_data.
863 * objfiles.h (struct objfile_per_bfd_storage): New.
864 (struct objfile) <per_bfd>: New field.
865 <filename_cache>: Remove.
866 (set_objfile_per_bfd): Declare.
867 * symfile.c (reread_symbols): Update. Call
868 set_objfile_per_bfd.
869 (allocate_symtab): Update.
870 * symmisc.c (print_symbol_bcache_statistics): Update.
871 (print_objfile_statistics): Print the size of the BFD obstack.
872
873 2012-08-22 Tom Tromey <tromey@redhat.com>
874
875 * gdb_bfd.h: Include registry.h. Use DECLARE_REGISTRY.
876 * gdb_bfd.c: Use DEFINE_REGISTRY.
877 (struct gdb_bfd_data): Add REGISTRY_FIELDS.
878 (gdb_bfd_ref): Call bfd_alloc_data.
879 (gdb_bfd_unref): Call bfd_free_data.
880
881 2012-08-22 Tom Tromey <tromey@redhat.com>
882
883 * registry.h (struct registry_fields): New.
884 (REGISTRY_FIELDS): Redefine.
885 (REGISTRY_ACCESS_FIELD): New macro.
886 (DEFINE_REGISTRY): Add ACCESS argument. Update defined
887 functions.
888
889 2012-08-22 Tom Tromey <tromey@redhat.com>
890
891 * auto-load.c (_initialize_auto_load): Update.
892 * solib-svr4.c (_initialize_svr4_solib): Update
893 * solib-dsbt.c (_initialize_dsbt_solib): Update.
894 * solib-darwin.c (_initialize_darwin_solib): Update.
895 * registry.h: New file.
896 * python/py-progspace.c (gdbpy_initialize_pspace): Update.
897 * python/py-inferior.c (gdbpy_initialize_inferior): Update.
898 * progspace.h: Include registry.h. Use DECLARE_REGISTRY.
899 (register_program_space_data_with_cleanup)
900 (register_program_space_data, program_space_alloc_data)
901 (clear_program_space_data, set_program_space_data)
902 (program_space_data): Don't declare.
903 * progspace.c: Use DEFINE_REGISTRY.
904 (struct program_space_data, struct
905 program_space_data_registration, struct
906 program_space_data_registry, program_space_data_registry)
907 (register_program_space_data_with_cleanup)
908 (register_program_space_data, program_space_alloc_data)
909 (program_space_free_data, clear_program_space_data)
910 (set_program_space_data, program_space_data): Remove.
911 * objfiles.h: Include registry.h. Use DECLARE_REGISTRY.
912 (struct objfile) <data, num_data>: Replace with REGISTRY_FIELDS.
913 (register_objfile_data_with_cleanup, register_objfile_data)
914 (clear_objfile_data, set_objfile_data, objfile_data): Don't
915 declare.
916 * objfiles.c: Use DEFINE_REGISTRY.
917 (struct objfile_data, struct objfile_data_registration, struct
918 objfile_data_registry, objfile_data_registry)
919 (register_objfile_data_with_cleanup, register_objfile_data)
920 (objfile_alloc_data, objfile_free_data, clear_objfile_data)
921 (set_objfile_data, objfile_data): Remove.
922 (_initialize_objfiles): Update.
923 * jit.c (_initialize_jit): Update.
924 * inflow.c (_initialize_inflow): Update.
925 * inferior.h: Include registry.h. Use DECLARE_REGISTRY.
926 (struct inferior) <data, num_data>: Replace with REGISTRY_FIELDS.
927 (register_inferior_data_with_cleanup, register_inferior_data)
928 (clear_inferior_data, set_inferior_data, inferior_data): Don't
929 declare.
930 * inferior.c: Use DEFINE_REGISTRY.
931 (struct inferior_data, struct inferior_data_registration, struct
932 inferior_data_registry, inferior_data_registry)
933 (register_inferior_data_with_cleanup, register_inferior_data)
934 (inferior_alloc_data, inferior_free_data clear_inferior_data)
935 (set_inferior_data, inferior_data): Remove.
936 * auxv.c (_initialize_auxv): Update.
937 * ada-lang.c (_initialize_ada_language): Update.
938 * breakpoint.c (_initialize_breakpoint): Update.
939 * i386-nat.c (i386_use_watchpoints): Update.
940
941 2012-08-22 Tom Tromey <tromey@redhat.com>
942
943 * exec.c (exec_close, exec_file_attach): Update.
944 (add_to_section_table): Initialize 'key' field.
945 (add_target_sections, remove_target_sections): Add 'key' argument.
946 * exec.h (add_target_sections, remove_target_sections): Add
947 'key' argument.
948 * solib.c (solib_map_sections, update_solib_list, clear_solib)
949 (reload_shared_libraries_1): Update.
950 * target.h (struct target_section) <key>: New field.
951
952 2012-08-22 Tom Tromey <tromey@redhat.com>
953
954 * cli/cli-cmds.c (filter_sals): Handle nelts == 0 case.
955
956 2012-08-21 Pierre Muller <muller@ics.u-strasbg.fr>
957
958 * symfile.c (allocate_symtab): Use host_address_to_string
959 function instead of cast of pointer to long which is not
960 compatible with x86_64-w64-mingw32 build.
961
962 2012-08-19 Andrew Pinski <apinski@cavium.com>
963
964 * mips-tdep.c (is_octeon): New function.
965 (is_octeon_bbit_op): New function.
966 (mips32_next_pc): Handle Octeon's bbit instructions.
967 (mips32_instruction_has_delay_slot): Likewise.
968
969 2012-08-19 Andrew Pinski <apinski@cavium.com>
970
971 * mips-tdep.c (mips32_next_pc): Fix line spacing of the comment
972 before the function.
973
974 2012-08-19 Andrew Pinski <apinski@cavium.com>
975
976 * mips-tdep.c (mips32_next_pc): Consolidate calls to itype_op.
977
978 2012-08-19 Keith Seitz <keiths@redhat.com>
979
980 PR c++/14365
981 * c-typeprint.c (c_type_print_varspec_prefix): Pass
982 -1 for SHOW to c_type_print_base for METHODPTR and MEMBERPTR.
983
984 2012-08-18 Eli Zaretskii <eliz@gnu.org>
985
986 * Makefile.in (HFILES_NO_SRCDIR): Fix a typo: golang.h -> go-lang.h.
987 The typo broke "make TAGS".
988
989 2012-08-17 Joel Brobecker <brobecker@adacore.com>
990
991 GDB 7.5 released.
992
993 2012-08-17 Keith Seitz <keiths@redhat.com>
994
995 PR c++/13356
996 * gdbtypes.c (strict_type_checking): New variable.
997 (show_strict_type_checking): New function.
998 (rank_one_type): Return NS_POINTER_INTEGER_CONVERSION_BADNESS
999 if strict type checking is disabled.
1000 (_initialize_gdbtypes): Add "check type" subcommand.
1001 * gdbtypes.h (NS_INTEGER_POINTER_CONVERSION_BADNESS): New struct.
1002
1003 2012-08-17 Keith Seitz <keiths@redhat.com>
1004
1005 * language.h (type_mode): Remove.
1006 (type_check): Remove.
1007 (struct language_defn): Remove la_type_check.
1008 (STRICT_TYPE): Remove unused macro.
1009 (type_error): Remove.
1010 * language.c (set_type_range_case): Renamed to ...
1011 (set_range_case): ... this. Update all callers.
1012 Remove type_mode/type_check.
1013 (type_mode): Remove.
1014 (type_check): Remove.
1015 (show_type_command): Remove.
1016 (set_type_command): Remove.
1017 (language_info): Remove type checking output.
1018 (type_error): Remove unused function.
1019 (range_error): Update comment.
1020 (unknown_language_defn): Remove la_type_check.
1021 (auto_language_defn): Likewise.
1022 (local_language_defn): Likewise.
1023 (_initialize_language): Remove "check type" subcommand.
1024 * ada-lang.c (ada_language_defn): Remove la_type_check.
1025 * c-lang.c (c_language_defn): Likewise.
1026 (cplus_language_defn): Likewise.
1027 (asm_language_defn): Likewise.
1028 (minimal_language_defn): Likewise.
1029 * d-lang.c (d_language_defn): Likewise.
1030 * f-lang.c (f_language_defn): Likewise.
1031 * go-lang.c (go_language_defn): Likewise.
1032 * jv-lang.c (java_language_defn): Likewise.
1033 * m2-lang.c (m2_language_defn): Likewise.
1034 * objc-lang.c (objc_language_defn): Likewise.
1035 * opencl-lang.c (opencl_language_defn): Likewise.
1036 * p-lang.c (pascal_language_defn): Likewise.
1037
1038 2012-08-16 Mike Frysinger <vapier@gentoo.org>
1039
1040 * infcmd.c (_initialize_infcmd): Remove trailing ) in next help text.
1041
1042 2012-08-16 Joel Brobecker <brobecker@adacore.com>
1043
1044 * ia64-hpux-nat.c (ia64_hpux_get_register_from_save_state_t):
1045 New function.
1046 (ia64_hpux_xfer_memory): Check if inferior_ptid is known before
1047 using the regache. Use ia64_hpux_get_register_from_save_state_t
1048 to access the bsp and bspstore registers if not.
1049
1050 2012-08-16 Joel Brobecker <brobecker@adacore.com>
1051
1052 * breakpoint.h (detach_breakpoints): pid parameter is now a ptid.
1053 * breakpoint.c (detach_breakpoints): Change pid parameter into
1054 a ptid. Adjust code accordingly.
1055 * infrun.c (handle_inferior_event): Delete variable child_pid.
1056 Update call to detach_breakpoints to pass the child ptid for
1057 fork events.
1058 * linux-nat.c (linux_nat_iterate_watchpoint_lwps): Remove
1059 assert that inferior_ptid's lwp is zero.
1060 (linux_handle_extended_wait): Update call to detach_breakpoints.
1061 * inf-ttrace.c (inf_ttrace_follow_fork): Update call to
1062 detach_breakpoints.
1063
1064 2012-08-16 Joel Brobecker <brobecker@adacore.com>
1065
1066 * inf-ttrace.c (inf_ttrace_follow_fork): When following the
1067 parent, only call detach_breakpoints if tts.tts_event ==
1068 TTEVT_VFORK.
1069
1070 2012-08-16 Joel Brobecker <brobecker@adacore.com>
1071
1072 * dwarf2-frame.c (dwarf2_frame_cache): Use
1073 get_frame_address_in_block instead of get_frame_pc as
1074 the bound for executing the frame's FDE.
1075
1076 2012-08-16 Yao Qi <yao@codesourcery.com>
1077
1078 * gdbtypes.h (enum type_code): Define TYPE_CODE_BITSTRING -1.
1079 * arm-tdep.c (arm_type_align): Remove code handling TYPE_CODE_BITSTRING.
1080 * c-typeprint.c (c_type_print_varspec_prefix): Likewise.
1081 (c_type_print_varspec_suffix): Likewise.
1082 * eval.c (evaluate_subexp_standard): Likewise.
1083 * f-typeprint.c (f_type_print_varspec_prefix): Likewise.
1084 (f_type_print_varspec_suffix): Likewise.
1085 * gdbtypes.c (is_scalar_type): Likewise.
1086 (recursive_dump_type): Likewise.
1087 * infcall.c (value_arg_coerce): Likewise.
1088 * m2-valprint.c (m2_val_print): Likewise.
1089 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
1090 (pascal_type_print_varspec_suffix): Likewise.
1091 (pascal_type_print_base): Likewise.
1092 * p-valprint.c (pascal_val_print): Likewise.
1093 (pascal_val_print): Likewise.
1094 * valops.c (value_slice): Likewise.
1095 * valprint.c (scalar_type_p): Likewise.
1096 * valarith.c (value_bitstring_subscript): Remove.
1097 (value_concat): Remove code handling TYPE_CODE_BITSTRING.
1098 Remove comment on TYPE_CODE_BITSTRING.
1099
1100 * stabsread.c (read_type): Don't set TYPE_CODE (type) to
1101 TYPE_CODE_BITSTRING.
1102
1103 * python/py-type.c (pyty_codes): Move ENTRY (TYPE_CODE_BITSTRING) to
1104 slot 0.
1105
1106 2012-08-16 Yao Qi <yao@codesourcery.com>
1107
1108 * tracepoint.c (trace_find_none_command): Remove.
1109 (_initialize_tracepoint): Call add_alias_cmd for "tfind none".
1110
1111 2012-08-16 Yao Qi <yao@codesourcery.com>
1112
1113 * remote.c (handle_notification): Remove parameter 'length'.
1114 (putpkt_binary, getpkt_or_notif_sane_1): Caller update.
1115
1116 2012-08-15 Keith Seitz <keiths@redhat.com>
1117
1118 * gdbtypes.c (opaque_type_resolution): Make static.
1119 Add missing comment.
1120 (overload_debug): Add missing comment.
1121 (show_opaque_type_resolution): Likewise.
1122 (show_overload_debug): Likewise.
1123 (print_bit_vector): Remove unnecessary forward declaration.
1124 (print_arg_types): Likewise.
1125 (dump_fn_fieldlists): Likewise.
1126 (print_cplus_stuff): Likewise.
1127
1128 2012-08-15 Tom Tromey <tromey@redhat.com>
1129
1130 * gdb_bfd.c (struct gdb_bfd_data) <archive_bfd>: New field.
1131 (gdb_bfd_ref): Initialize new field.
1132 (gdb_bfd_unref): Unref the archive BFD.
1133 (gdb_bfd_openr_next_archived_file): Acquire a reference to the
1134 parent archive.
1135
1136 2012-08-15 Tom Tromey <tromey@redhat.com>
1137
1138 PR python/14387:
1139 * python/py-bpevent.c (create_breakpoint_event_object): Update
1140 comment.
1141 * python/py-event.c (evpy_add_attribute): Update comment.
1142 * python/py-exitedevent.c (create_exited_event_object): Fix
1143 reference counting and error handling.
1144 * python/py-newobjfileevent.c (create_new_objfile_event_object):
1145 Fix reference counting.
1146 * python/py-signalevent.c (create_signal_event_object): Fix
1147 reference counting and error handling.
1148 * python/py-stopevent.c (emit_stop_event): Fix reference
1149 counting.
1150 * python/py-threadevent.c (get_event_thread): Return a
1151 borrowed reference.
1152 * python/py-type.c (convert_field): Fix reference counting.
1153
1154 2012-08-15 Tom Tromey <tromey@redhat.com>
1155
1156 * dwarf2read.c (dwarf_decode_macro_bytes)
1157 <DW_MACRO_GNU_transparent_include>: Use pointer to included data
1158 as hash key.
1159
1160 2012-08-14 Mike Frysinger <vapier@gentoo.org>
1161
1162 * infcmd.c (_initialize_infcmd): Update help text for the signal,
1163 stepi, nexti, finish, next, step, jump, and continue commands.
1164 * infrun.c (_initialize_infrun): Update help text for the handle
1165 command.
1166
1167 2012-08-14 Doug Evans <dje@google.com>
1168
1169 * gdbtypes.c (struct extra): Delete, unused.
1170
1171 * gdbtypes.c: Whitespace cleanup.
1172 (address_space_name_to_int): Remove "extern" from definition.
1173 (_initialize_gdbtypes): Declare with initialize_file_ftype.
1174
1175 * gdbtypes.c (make_pointer_type): Remove redundant setting of
1176 TYPE_POINTER_TYPE (type).
1177
1178 2012-08-14 Gary Benson <gbenson@redhat.com>
1179
1180 * solib-svr4.c (svr4_free_library_list): Use free_so.
1181
1182 2012-08-13 Mike Frysinger <vapier@gentoo.org>
1183
1184 * .gitignore: Add go-exp.c.
1185
1186 2012-08-13 Doug Evans <dje@google.com>
1187
1188 * value.c (show_convenience): Tweak comment.
1189 (_initialize_values): Mention convenience functions in the help text
1190 for "show convenience".
1191
1192 2012-08-13 Yao Qi <yao@codesourcery.com>
1193
1194 * std-operator.def: Remove TERNOP_SLICE_COUNT.
1195 * breakpoint.c (watchpoint_exp_is_const): Remove handling to
1196 TERNOP_SLICE_COUNT.
1197 * eval.c (evaluate_subexp_standard): Likewise.
1198 * expprint.c (print_subexp_standard): Likewise.
1199 (dump_subexp_body_standard): Likewise.
1200 * parse.c (operator_length_standard): Likewise.
1201
1202 2012-08-13 Yao Qi <yao@codesourcery.com>
1203
1204 * std-operator.def: Remove OP_BITSTRING.
1205 * breakpoint.c (watchpoint_exp_is_const): Update.
1206 * eval.c (evaluate_subexp_standard): Remove handling to
1207 OP_BITSTRING.
1208 * expprint.c (print_subexp_standard): Likewise.
1209 (dump_subexp_body_standard): Likewise.
1210 * parse.c (operator_length_standard): Likewise.
1211 * valops.c (value_bitstring): Remove.
1212 * value.h: Remove the declaration of 'value_bitstring'.
1213
1214 2012-08-10 Sergio Durigan Junior <sergiodj@redhat.com>
1215
1216 * linespec.c (find_methods): Remove unused variables `i1' and
1217 `name_len'.
1218 (decode_line_full): Likewise for `arg_start'.
1219
1220 2012-08-10 Sergio Durigan Junior <sergiodj@redhat.com>
1221
1222 * gdb_bfd.c (gdb_bfd_unref): Remove unused variable `slot'.
1223 (zlib_decompress_section): Likewise for `section_data'.
1224 (gdb_bfd_map_section): Likewise for `buf' and `retbuf'.
1225
1226 2012-08-10 Doug Evans <dje@google.com>
1227
1228 Add $_memeq, $_regex, $_streq, $_strlen convenience functions.
1229 * NEWS: Document them.
1230 * data-directory/Makefile.in (PYTHON_FILES): Add function/__init__.py,
1231 function/strfns.py.
1232 * python/py-type.c (typy_array_1): New function.
1233 (typy_array): Call it.
1234 (typy_vector): New function.
1235 (type_object_methods): Add "vector".
1236 * python/lib/gdb/function/__init__.py: New file.
1237 * python/lib/gdb/function/strfns.py: New file.
1238
1239 2012-08-10 Siddhesh Poyarekar <siddhesh@redhat.com>
1240
1241 * python/py-type.c (convert_field): Use gdb_py_long_from_longest
1242 for TYPE_FIELD_BITPOS.
1243 (typy_get_sizeof): Likewise for TYPE_LENGTH.
1244
1245 2012-08-10 Mike Frysinger <vapier@gentoo.org>
1246
1247 PR cli/10436:
1248 * common/vec.h (VEC_merge): Define.
1249 (DEF_VEC_ALLOC_FUNC_I): Add a merge helper.
1250 (DEF_VEC_ALLOC_FUNC_P): Likewise.
1251 (DEF_VEC_ALLOC_FUNC_O): Likewise.
1252 * completer.c: Include gdb_signals.h.
1253 (signal_completer): Define.
1254 * completer.h (signal_completer): Add prototype.
1255 * infcmd.c (_initialize_infcmd): Assign the command
1256 completer for "signal" to handle_completer.
1257 * infrun.c: Include completer.h.
1258 (handle_completer): Define.
1259 (_initialize_infrun): Declare a new local variable c. Store the
1260 result of add_com("handle") to it. Assign the command
1261 completer for "handle" to handle_completer.
1262
1263 2012-08-09 Yao Qi <yao@codesourcery.com>
1264
1265 * cli/cli-decode.c (set_cmd_prefix): New.
1266 (lookup_cmd_for_prefixlist): New.
1267 (add_prefix_cmd): Call set_cmd_prefix and update field 'prefix'
1268 of each cmd_list_element in *prefixlist.
1269 (add_setshow_cmd_full): set_cmd_prefix.
1270 (add_alias_cmd): Likewise.
1271 * cli/cli-decode.h (struct cmd_list_element) <prefix>: New field.
1272 Declare 'auto_boolean_enums'.
1273 * cli/cli-setshow.c: Include "observer.h".
1274 (notify_command_param_changed_p): New.
1275 (add_setshow_auto_boolean_cmd): Move auto_boolean_enums out.
1276 Remove 'static'.
1277 (do_setshow_command): Split it to ...
1278 (do_set_command, do_show_command): ... them. New.
1279 (do_set_command): Call observer_notify_command_param_changed if
1280 notify_command_param_changed_p returns true.
1281 (cmd_show_list): Caller update.
1282 * auto-load.c (set_auto_load_cmd): Likewise.
1283 * remote.c (show_remote_cmd): Likewise.
1284 * cli/cli-setshow.h: Update declarations.
1285 * top.c (execute_command): Call do_set_command and do_show_command.
1286
1287 * NEWS: Mention new MI notification.
1288 * mi/mi-interp.c: Declare mi_command_param_changed.
1289 (mi_interpreter_init): Attach mi_command_param_changed to
1290 observer command_param_changed.
1291 (mi_command_param_changed): New.
1292 Remove mi_suppress_breakpoint_notifications.
1293 Define global variable mi_suppress_notification.
1294 (mi_breakpoint_created): Update.
1295 (mi_breakpoint_deleted): Likewise.
1296 (mi_breakpoint_modified): Likewise.
1297 * mi/mi-main.c (mi_cmd_execute): Likewise. Check command
1298 'gdb-set' and set mi_suppress_notification.
1299 * mi/mi-main.h: (mi_suppress_notification): New struct.
1300
1301 2012-08-09 Andreas Tobler <andreast@fgznet.ch>
1302 Jan Kratochvil <jan.kratochvil@redhat.com>
1303
1304 * fbsd-nat.h (fbsd_find_memory_regions): Use find_memory_region_ftype.
1305
1306 2012-08-09 Yao Qi <yao@codesourcery.com>
1307
1308 * cli/cli-cmds.c (enablebreaklist): Move it to breakpoint.c.
1309 (skiplist): Move it to skip.c.
1310 (init_cmd_lists): Remove code setting enablebreaklist and
1311 skiplist to NULL.
1312 * breakpoint.c (enablebreaklist): Moved from cli/cli-cmds.c.
1313 * cli/cli-cmds.h: Remove declaration of enablebreaklist and
1314 skiplist.
1315 * gdbcmd.h: Likewise.
1316 * skip.c (_initialize_step_skip): Move 'skiplist' from
1317 cli/cli-cmds.c.
1318
1319 2012-08-09 Yao Qi <yao@codesourcery.com>
1320
1321 * cli/cli-dump.c: Add 'static' to some cmd_list_element variables.
1322 * gnu-nat.c, symfile.c: Likewise.
1323
1324 2012-08-08 Aaron Gamble <agamble@google.com>
1325
1326 * utils.c (prompt_for_continue_wait_time): New static global.
1327 (make_command_stats_cleanup): Initialize it.
1328 (report_command_stats): Subtract time waiting for user.
1329 (prompt_for_continue): Track time waiting for user.
1330 (defaulted_query): Track time waiting for user.
1331
1332 2012-08-08 Doug Evans <dje@google.com>
1333
1334 * eval.c (evaluate_subexp_standard): Fix thinko in handling
1335 UNOP_MEMVAL_TYPE.
1336 * expprint.c (print_subexp_standard, case OP_TYPE): New.
1337 (print_subexp_standard, case UNOP_CAST_TYPE): Don't increment pos.
1338 (print_subexp_standard, case UNOP_DYNAMIC_CAST): Ditto.
1339 (print_subexp_standard, case UNOP_REINTERPRET_CAST): Ditto.
1340 (print_subexp_standard, case UNOP_MEMVAL_TYPE): Ditto.
1341 (dump_subexp_body_standard, case UNOP_DYNAMIC_CAST): Don't increment
1342 elt.
1343 (dump_subexp_body_standard, case UNOP_REINTERPRET_CAST): Ditto.
1344 (dump_subexp_body_standard, case UNOP_CAST_TYPE): Ditto.
1345 (dump_subexp_body_standard, case UNOP_MEMVAL_TYPE): Ditto.
1346 (dump_prefix_expression): Handle OP_TYPE.
1347
1348 2012-08-08 Keith Seitz <keiths@redhat.com>
1349
1350 * breakpoint.c (parse_breakpoint_sals): Remove unused variable
1351 addr_start.
1352
1353 2012-08-08 Doug Evans <dje@google.com>
1354
1355 * linux-thread-db.c: #include "gdb_vecs.h".
1356 (try_thread_db_load_from_pdir_1): New arg "subdir". All callers
1357 updated.
1358 (try_thread_db_load_from_pdir): New arg "subdir". All callers updated.
1359 (thread_db_load_search): Use a vector to iterate over path elements.
1360 Handle text appearing after "$pdir".
1361
1362 * gdb_string.h: Moved to ...
1363 * common/gdb_string.h: ... here.
1364 * common/vec.h: Remove #ifndef GDBSERVER conditional inclusion of
1365 gdb_string.h and gdb_assert.h.
1366
1367 2012-08-08 Yao Qi <yao@codesourcery.com>
1368
1369 * tic6x-tdep.c (tic6x_register_to_value): Remove.
1370 (tic6x_value_to_register): Likewise.
1371 (tic6x_gdbarch_init): Don't call set_gdbarch_register_to_value
1372 and set_gdbarch_value_to_register.
1373
1374 2012-08-07 Jan Kratochvil <jan.kratochvil@redhat.com>
1375 Jean-Marc Saffroy <saffroy@gmail.com>
1376
1377 PR 11804
1378 * defs.h (find_memory_region_ftype): New comment. New arg modified.
1379 * fbsd-nat.c (fbsd_find_memory_regions): Add the passed modified value.
1380 * gcore.c (gcore_create_callback): New function comment. Add modified
1381 parameter. Only write modified regions. Set SEC_READONLY exactly
1382 according to MODIFIED.
1383 (objfile_find_memory_regions): Ignore separate debug info files. Ass
1384 the passed modified value to FUNC.
1385 * gnu-nat.c (gnu_find_memory_regions): Add the passed modified value.
1386 * linux-tdep.c (linux_find_memory_regions): Try to reads smaps file
1387 first. New variables modified and has_anonymous. Parse the lines of
1388 smaps file. Add the passed MODIFIED value to FUNC.
1389 * procfs.c (find_memory_regions_callback): Add the passed modified
1390 value.
1391
1392 2012-08-06 Tom Tromey <tromey@redhat.com>
1393
1394 * dwarf2-frame.c (clear_pointer_cleanup): New function.
1395 (dwarf2_frame_cache): Use it.
1396 * frame-unwind.h (frame_sniffer_ftype): Document prologue
1397 cache initialization constraint.
1398
1399 2012-08-06 Tom Tromey <tromey@redhat.com>
1400
1401 PR python/14386:
1402 * varobj.c (update_dynamic_varobj_children): Don't call
1403 PyIter_Check.
1404
1405 2012-08-06 Tom Tromey <tromey@redhat.com>
1406
1407 PR cli/14392:
1408 * cli/cli-cmds.c (list_command): Filter 'sals_end'.
1409
1410 2012-08-06 Nathaniel Flath <flat0103@gmail.com>
1411
1412 * NEWS: New entry for 'cd' default parameters.
1413 * cli/cli-cmds.c (cd_command): Replace error_no_arg by DIR assignment.
1414
1415 2012-08-03 Tom Tromey <tromey@redhat.com>
1416
1417 * dwarf2-frame.c (dwarf2_frame_cache): Call do_cleanups before
1418 return.
1419
1420 2012-08-02 Ulrich Weigand <ulrich.weigand@linaro.org>
1421
1422 * inf-child.c (inf_child_fileio_pwrite): If pwrite fails, fall back
1423 to attempting lseek/write.
1424 (inf_child_fileio_pread): Likewise for pread.
1425
1426 2012-08-02 Yao Qi <yao@codesourcery.com>
1427
1428 * dwarf2loc.c (entry_values_debug): Add 'unsigned'.
1429 (_initialize_dwarf2loc): Call add_setshow_zuinteger_cmd instead of
1430 add_setshow_zinteger_cmd.
1431 * dwarf2loc.h: Update the declaration of 'entry_values_debug'.
1432 * dwarf2read.c (dwarf2_die_debug): Add 'unsigned'.
1433 (_initialize_dwarf2_read): Call add_setshow_zuinteger_cmd
1434 instead of add_setshow_zinteger_cmd.
1435 * darwin-nat.c (dwarwin_debug_flag): Add 'unsigned'.
1436 (_initialize_darwin_inferior): Call add_setshow_zuinteger_cmd
1437 instead of add_setshow_zinteger_cmd.
1438 * frame.c (frame_debug): Add 'unsigned'.
1439 (_intialize_frame): Call add_setshow_zuinteger_cmd instead of
1440 add_setshow_zinteger_cmd.
1441 * frame.h: Update the declaration of 'frame_debug'.
1442 * gdbtypes.c (overload_debug): Add 'unsigned'.
1443 (_initialize_gdbtypes): Call add_setshow_zuinteger_cmd instead of
1444 add_setshow_zinteger_cmd.
1445 * inferior.h: Update declaration of 'debug_infrun'.
1446 * infrun.c (debug_infrun): Add 'unsigned'.
1447 (_initialize_infrun): Call add_setshow_zuinteger_cmd instead of
1448 add_setshow_zinteger_cmd.
1449 * jit.c (jit_debug): Add 'unsigned'.
1450 (_initialize_jit): Call add_setshow_zuinteger_cmd instead of
1451 add_setshow_zinteger_cmd.
1452 * linux-nat.c (debug_linux_nat): Add 'unsigned'.
1453 (_initialize_linux_nat): Call add_setshow_zuinteger_cmd
1454 instead of add_setshow_zinteger_cmd.
1455 * linux-thread-db.c (libthread_db_debug): Add 'unsigned'.
1456 (_initialize_thread_db): Call add_setshow_zuinteger_cmd instead of
1457 add_setshow_zinteger_cmd.
1458 * machoread.c (mach_o_debug_level): Add 'unsigned'.
1459 (_initialize_machoread): Call add_setshow_zuinteger_cmd
1460 instead of add_setshow_zinteger_cmd.
1461 * mi/mi-cmd-var.c: Update the declaration of 'varobjdebug'.
1462 * microblaze-tdep.c (microblaze_debug_flag): Add 'unsigned'.
1463 (_initialize_microblaze_tdep): Call add_setshow_zuinteger_cmd
1464 intead of add_setshow_zinteger_cmd.
1465 * mips-tdep.c (mips_debug): Add 'unsigned'.
1466 (_initialize_mips_tdep): Call add_setshow_zuinteger_cmd
1467 instead of add_setshow_zinteger_cmd.
1468 * monitor.c (monitor_debug): Add 'unsigned'.
1469 (_initialize_remote_monitors): Call add_setshow_zuinteger_cmd instead of
1470 add_setshow_zinteger_cmd.
1471 * observer.c (observer_debug): Add 'unsigned'.
1472 (_initialize_observer): Call add_setshow_zuinteger_cmd instead of
1473 add_setshow_zinteger_cmd.
1474 * parse.c (expressiondebug): Add 'unsigned'.
1475 (_initialize_parse): Call add_setshow_zuinteger_cmd instead of
1476 add_setshow_zinteger_cmd.
1477 * record.c (record_debug): Add 'unsigned'.
1478 (_initialize_record): Call add_setshow_zuinteger_cmd instead of
1479 add_setshow_zinteger_cmd.
1480 * record.h: Update the declaration of 'record_debug'.
1481 * stap-probe.c (stap_expression_debug): Add 'unsigned'.
1482 (_initialize_stap_probe): Call add_setshow_zuinteger_cmd instead of
1483 add_setshow_zinteger_cmd.
1484 * serial.c (global_serial_debug_p): Add 'unsigned'.
1485 (_initialize_serial): Call add_setshow_zuinteger_cmd instead of
1486 add_setshow_zinteger_cmd.
1487 * solib-dsbt.c (solib_dsbt_debug): Add 'unsigned'.
1488 (_initialize_dsbt_solib): Call add_setshow_zuinteger_cmd instead of
1489 add_setshow_zinteger_cmd.
1490 * solib-frv.c (solib_frv_debug): Add 'unsigned'.
1491 (_initialize_frv_solib): Call add_setshow_zuinteger_cmd instead of
1492 add_setshow_zinteger_cmd.
1493 * target.c (targetdebug): Add 'unsigned'.
1494 (initialize_targets): Call add_setshow_zuinteger_cmd instead of
1495 add_setshow_zinteger_cmd.
1496 * valops.c (overload_debug): Add 'unsigned'.
1497 * varobj.c (varobjdebug): Add 'unsigned'.
1498 (_initialize_varobj): Call add_setshow_zuinteger_cmd instead of
1499 add_setshow_zinteger_cmd.
1500 * xtensa-tdep.c (xtensa_debug_level): Add 'unsigned'.
1501 (_initialize_xtensa_tdep): Call add_setshow_zuinteger_cmd
1502 instead of add_setshow_zinteger_cmd.
1503
1504 * arch-utils.h: Remove the declaration of 'gdbarch_debug'.
1505 * gdbarch.sh (gdbarch_debug): Add 'unsigned'.
1506 (extern void _initialize_gdbarch): Call add_setshow_zuinteger_cmd
1507 instead of add_setshow_zinteger_cmd.
1508 * gdbarch.c, gdbarch.h: Re-generated.
1509
1510 2012-08-02 Yao Qi <yao@codesourcery.com>
1511
1512 * nto-tdep.c: Don't include cli/cli-decode.h and
1513 cli/cli-cmds.h.
1514 (_initialize_nto_tdep): Remove.
1515 * nto-tdep.h (struct nto_target_ops) <internal_debugging>:
1516 Remove field.
1517 Remove macro nto_internal_debugging.
1518
1519 2012-08-01 Richard Henderson <rth@redhat.com>
1520
1521 * configure.tgt (m32c-*-*) [gdb_target_obs]: Remove prologue-value.o.
1522 (mep-*-*) [gdb_target_obs]: Likewise.
1523
1524 2012-07-31 Andreas Schwab <schwab@linux-m68k.org>
1525
1526 * ppc-linux-tdep.c (ppc_linux_init_abi): Register
1527 linux_get_siginfo_type.
1528
1529 2012-07-31 Jan Kratochvil <jan.kratochvil@redhat.com>
1530
1531 * infcall.c (call_function_by_hand): Move BP_ADDR comment to
1532 AT_ENTRY_POINT.
1533 (call_function_by_hand) <ON_STACK>: Call write_memory with
1534 gdbarch_breakpoint_from_pc, if possible.
1535 (call_function_by_hand) <AT_ENTRY_POINT>: The BP_ADDR comment is moved
1536 here.
1537
1538 2012-07-31 Yao Qi <yao@codesourcery.com>
1539
1540 * tracepoint.c: Add 'static' for some variables.
1541
1542 2012-07-31 Yao Qi <yao@codesourcery.com>
1543
1544 * go32-nat.c: Declare _initialize_go32_nat.
1545 * ser-go32.c: Declare _initialize_ser_dos.
1546 * top.c (do_chdir_cleanup): Add 'static'.
1547
1548 2012-07-30 Keith Seitz <keiths@redhat.com>
1549
1550 * linespec.c (linespec_lex_number): A number followed
1551 by quotes is a valid number, too.
1552
1553 2012-07-30 Tom Tromey <tromey@redhat.com>
1554
1555 * remote-sim.c (gdb_os_poll_quit): Don't check immediate_quit.
1556
1557 2012-07-30 Ulrich Weigand <ulrich.weigand@linaro.org>
1558
1559 * arm-linux-nat.c (arm_linux_hw_breakpoint_initialize): Do not
1560 attempt to 4-byte-align HW breakpoint addresses for Thumb.
1561
1562 2012-07-30 Andrew Burgess <aburgess@broadcom.com>
1563
1564 * varobj.c (varobj_invalidate_iter): All varobj must be marked as
1565 invalid or reevaluated to prevent prevent references to possibly
1566 delete'd type objects being left in the varobj.
1567
1568 2012-07-27 Tom Tromey <tromey@redhat.com>
1569 Jan Kratochvil <jan.kratochvil@redhat.com>
1570
1571 * copying.awk: Print buffer-read-only and vi ro markers.
1572 * copying.c: Rebuild.
1573 * gdbarch.sh (copyright): Print buffer-read-only and vi ro markers.
1574 * gdbarch.c, gdbarch.h: Rebuild.
1575 * target-descriptions.c (maint_print_c_tdesc_cmd): Print
1576 buffer-read-only and vi ro markers.
1577 * features/arm-with-iwmmxt.c: Rebuild.
1578 * features/arm-with-m-fpa-layout.c: Rebuild.
1579 * features/arm-with-m-vfp-d16.c: Rebuild.
1580 * features/arm-with-m.c: Rebuild.
1581 * features/arm-with-neon.c: Rebuild.
1582 * features/arm-with-vfpv2.c: Rebuild.
1583 * features/arm-with-vfpv3.c: Rebuild.
1584 * features/i386/amd64-avx-linux.c: Rebuild.
1585 * features/i386/amd64-avx.c: Rebuild.
1586 * features/i386/amd64-linux.c: Rebuild.
1587 * features/i386/amd64.c: Rebuild.
1588 * features/i386/i386-avx-linux.c: Rebuild.
1589 * features/i386/i386-avx.c: Rebuild.
1590 * features/i386/i386-linux.c: Rebuild.
1591 * features/i386/i386-mmx-linux.c: Rebuild.
1592 * features/i386/i386-mmx.c: Rebuild.
1593 * features/i386/i386.c: Rebuild.
1594 * features/i386/x32-avx-linux.c: Rebuild.
1595 * features/i386/x32-avx.c: Rebuild.
1596 * features/i386/x32-linux.c: Rebuild.
1597 * features/i386/x32.c: Rebuild.
1598 * features/mips-dsp-linux.c: Rebuild.
1599 * features/mips-linux.c: Rebuild.
1600 * features/mips64-dsp-linux.c: Rebuild.
1601 * features/mips64-linux.c: Rebuild.
1602 * features/rs6000/powerpc-32.c: Rebuild.
1603 * features/rs6000/powerpc-32l.c: Rebuild.
1604 * features/rs6000/powerpc-403.c: Rebuild.
1605 * features/rs6000/powerpc-403gc.c: Rebuild.
1606 * features/rs6000/powerpc-405.c: Rebuild.
1607 * features/rs6000/powerpc-505.c: Rebuild.
1608 * features/rs6000/powerpc-601.c: Rebuild.
1609 * features/rs6000/powerpc-602.c: Rebuild.
1610 * features/rs6000/powerpc-603.c: Rebuild.
1611 * features/rs6000/powerpc-604.c: Rebuild.
1612 * features/rs6000/powerpc-64.c: Rebuild.
1613 * features/rs6000/powerpc-64l.c: Rebuild.
1614 * features/rs6000/powerpc-7400.c: Rebuild.
1615 * features/rs6000/powerpc-750.c: Rebuild.
1616 * features/rs6000/powerpc-860.c: Rebuild.
1617 * features/rs6000/powerpc-altivec32.c: Rebuild.
1618 * features/rs6000/powerpc-altivec32l.c: Rebuild.
1619 * features/rs6000/powerpc-altivec64.c: Rebuild.
1620 * features/rs6000/powerpc-altivec64l.c: Rebuild.
1621 * features/rs6000/powerpc-cell32l.c: Rebuild.
1622 * features/rs6000/powerpc-cell64l.c: Rebuild.
1623 * features/rs6000/powerpc-e500.c: Rebuild.
1624 * features/rs6000/powerpc-e500l.c: Rebuild.
1625 * features/rs6000/powerpc-isa205-32l.c: Rebuild.
1626 * features/rs6000/powerpc-isa205-64l.c: Rebuild.
1627 * features/rs6000/powerpc-isa205-altivec32l.c: Rebuild.
1628 * features/rs6000/powerpc-isa205-altivec64l.c: Rebuild.
1629 * features/rs6000/powerpc-isa205-vsx32l.c: Rebuild.
1630 * features/rs6000/powerpc-isa205-vsx64l.c: Rebuild.
1631 * features/rs6000/powerpc-vsx32.c: Rebuild.
1632 * features/rs6000/powerpc-vsx32l.c: Rebuild.
1633 * features/rs6000/powerpc-vsx64.c: Rebuild.
1634 * features/rs6000/powerpc-vsx64l.c: Rebuild.
1635 * features/rs6000/rs6000.c: Rebuild.
1636 * features/s390-linux32.c: Rebuild.
1637 * features/s390-linux32v1.c: Rebuild.
1638 * features/s390-linux32v2.c: Rebuild.
1639 * features/s390-linux64.c: Rebuild.
1640 * features/s390-linux64v1.c: Rebuild.
1641 * features/s390-linux64v2.c: Rebuild.
1642 * features/s390x-linux64.c: Rebuild.
1643 * features/s390x-linux64v1.c: Rebuild.
1644 * features/s390x-linux64v2.c: Rebuild.
1645 * features/tic6x-c62x-linux.c: Rebuild.
1646 * features/tic6x-c62x.c: Rebuild.
1647 * features/tic6x-c64x-linux.c: Rebuild.
1648 * features/tic6x-c64x.c: Rebuild.
1649 * features/tic6x-c64xp-linux.c: Rebuild.
1650 * features/tic6x-c64xp.c: Rebuild.
1651
1652 2012-07-27 Tom Tromey <tromey@redhat.com>
1653
1654 * c-exp.y (classify_name): Avoid assignment in condition.
1655
1656 2012-07-27 Roland Schwingel <roland.schwingel@onevision.com>
1657
1658 * amd64-windows-tdep.c: Include "frame.h".
1659 (amd64_windows_skip_trampoline_code): New function.
1660 (amd64_windows_init_abi): Add trampoline registration.
1661
1662 2012-07-27 Yao Qi <yao@codesourcery.com>
1663
1664 * tracepoint.c (cur_traceframe_number): Remove.
1665 (set_tfile_traceframe): Remove.
1666 (tfile_trace_find, tfile_fetch_registers): Update callers.
1667 (tfile_xfer_partial, tfile_get_trace_state_variable_value): Likewise.
1668 (tfile_open, tfile_trace_find): Likewise.
1669
1670 2012-07-27 Yao Qi <yao@codesourcery.com>
1671
1672 * thread.c (switch_to_thread): Don't call registers_changed.
1673
1674 2012-07-26 Tom Tromey <tromey@redhat.com>
1675
1676 * Makefile.in (SFILES): Remove objc-exp.y.
1677 (YYFILES): Remove objc-exp.c.
1678 (YYOBJ): Remove objc-exp.o.
1679 (local-maintainer-clean): Don't mention objc-exp.c.
1680 * c-exp.y: Include objc-lang.h.
1681 (%union) <class>: New field.
1682 (NSSTRING, SELECTOR, CLASSNAME, OBJC_LBRAC): New tokens.
1683 (exp): Clone subscript production for OBJC_LBRAC. Add various
1684 Objective C productions.
1685 (msglist, msgarglist, msgarg): New productions.
1686 (array_mod, func_mod, operator): Clone productions for
1687 OBJC_LBRAC.
1688 (parse_string_or_char): Handle '@' strings.
1689 (lex_one_token): Return OBJC_LBRAC. Recognize @selector.
1690 (classify_name): Check la_name_of_this. Recognize ObjC class
1691 names.
1692 * objc-exp.y: Remove.
1693 * objc-lang.c (objc_language_defn): Use c_parse, c_error.
1694 * objc-lang.h (objc_parse, objc_error): Don't declare.
1695
1696 2012-07-26 Markus Metzger <markus.t.metzger@intel.com>
1697
1698 * python/py-inferior.c (infpy_threads): Call update_thread_list ().
1699
1700 2012-07-26 Jan Kratochvil <jan.kratochvil@redhat.com>
1701
1702 * auto-load.c (auto_load_info_scripts): Remove immediate_quit increment
1703 and decrement.
1704
1705 2012-07-26 Tom Tromey <tromey@redhat.com>
1706
1707 * copying.c: Rebuild.
1708 * copying.awk: Don't use immediate_quit. Use 'no_set_class', not
1709 'no_class'.
1710
1711 2012-07-26 Tom Tromey <tromey@redhat.com>
1712
1713 * symmisc.c (print_symbol_bcache_statistics): Use QUIT, not
1714 immediate_quit.
1715 (print_objfile_statistics): Likewise.
1716 (maintenance_print_symbols): Likewise.
1717 (maintenance_print_msymbols): Likewise.
1718 (maintenance_print_objfiles): Likewise.
1719 * psymtab.c (print_partial_symbols): Call QUIT.
1720 (maintenance_print_psymbols): Likewise. Don't modify
1721 immediate_quit.
1722 * copying.c (show_copying_command): Don't modify immediate_quit.
1723 (show_warranty_command): Likewise.
1724 * cli/cli-cmds.c (show_version): Don't modify immediate_quit.
1725
1726 2012-07-26 Keith Seitz <keiths@redhat.com>
1727
1728 * linespec.c (linespec_lexer_lex_number): The input
1729 is also a valid number if the next character is a comma
1730 or colon.
1731
1732 2012-07-26 Joel Brobecker <brobecker@adacore.com>
1733
1734 * NEWS: Document new --enable-libmcheck/--disable-libmcheck
1735 configure options.
1736
1737 2012-07-26 Tristan Gingold <gingold@adacore.com>
1738
1739 * machoread.c: Include gdb_bfd.h.
1740
1741 2012-07-26 Tristan Gingold <gingold@adacore.com>
1742
1743 * dwarf2loc.c (locexpr_describe_location_piece): Use uint64_t for
1744 offset.
1745
1746 2012-07-26 Siddhesh Poyarekar <siddhesh@redhat.com>
1747
1748 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Expand parameter
1749 SIZE to size_t.
1750 (dwarf2_evaluate_loc_desc): Likewise.
1751 (dwarf2_loc_desc_needs_frame): Likewise.
1752 (locexpr_describe_location_1): Likewise.
1753 * dwarf2loc.h (struct dwarf2_locexpr_baton): Make SIZE as
1754 size_t.
1755 (struct dwarf2_loclist_baton): Likewise.
1756 * dwarf2read.c (struct dwarf_block): Likewise.
1757 (dump_die_shallow): Use pulongest to print dwarf_block.size.
1758 (decode_locdesc): Expand SIZE and I to size_t.
1759
1760 2012-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
1761
1762 * contrib/cc-with-tweaks.sh: Put into comment path gdb/contrib/.
1763
1764 2012-07-25 Joel Brobecker <brobecker@adacore.com>
1765
1766 * doublest.c (convert_doublest_to_floatformat): If the exponent
1767 is too small, treat the value as zero. If the exponent is too
1768 large, treat the value as infinity.
1769
1770 2012-07-25 Joel Brobecker <brobecker@adacore.com>
1771
1772 * configure.ac: Add --enable-lmcheck configure option.
1773 * configure: Regenerate.
1774
1775 2012-07-25 Tom Tromey <tromey@redhat.com>
1776
1777 * NEWS: Mention maint info bfds.
1778 * gdb_bfd.c (all_bfds): New global.
1779 (gdb_bfd_ref, gdb_bfd_unref): Update all_bfds.
1780 (print_one_bfd, maintenance_info_bfds, _initialize_gdb_bfd):
1781 New functions.
1782
1783 2012-07-25 Ralf Corsépius <ralf.corsepius@rtems.org>
1784
1785 * configure.tgt: Add v850*-*-rtems*.
1786
1787 2012-07-25 Tom Tromey <tromey@redhat.com>
1788
1789 * macrotab.c (macro_bcache_str): Remove cast.
1790
1791 2012-07-25 Hui Zhu <hui_zhu@mentor.com>
1792
1793 * linespec.c (linespec_lexer_lex_number): Update comments,
1794 change the return and add check to make sure the input is
1795 the decimal numbers.
1796 (linespec_lexer_lex_one): If linespec_lexer_lex_number return
1797 false, call linespec_lexer_lex_string.
1798
1799 2012-07-24 Tom Tromey <tromey@redhat.com>
1800
1801 * symfile.c (symbol_file_add): Don't open BFD twice.
1802
1803 2012-07-24 Marc Khouzam <marc.khouzam@ericsson.com>
1804
1805 * breakpoint.c (create_breakpoint): Store condition for pending
1806 breakpoints.
1807
1808 2012-07-24 Andreas Schwab <schwab@linux-m68k.org>
1809
1810 * m68k-tdep.c (m68k_reg_struct_return_p): Accept complex types.
1811 (m68k_return_value): Handle complex types like structures.
1812 (m68k_svr4_return_value): Likewise.
1813
1814 2012-07-24 Marcus Shawcroft <marcus.shawcroft@arm.com>
1815
1816 * gdb_bfd.c (zlib_decompress_section) <!HAVE_ZLIB_H>: Adjust
1817 parameters to bfd_get_section_name.
1818
1819 2012-07-24 Yao Qi <yao@codesourcery.com>
1820
1821 * cli/cli-setshow.c: Handle case 'var_uinteger'
1822 and 'var_zuninteger' together. Handle case 'var_integer' and
1823 'var_zinteger' together.
1824
1825 2012-07-23 Keith Seitz <keiths@redhat.com>
1826
1827 * linespec.c (convert_linespec_to_sal): Don't add
1828 any symbols to the result vector if symbol_to_sal
1829 returns zero.
1830
1831 2012-07-23 Keith Seitz <keiths@redhat.com>
1832
1833 * linespec.c (decode_objc): Record the function name
1834 in the linespec.
1835
1836 2012-07-23 Tom Tromey <tromey@redhat.com>
1837
1838 * rs6000-nat.c (add_vmap): Rewrite archive loop. Fix reference
1839 counting.
1840 * exec.c (exec_close_1): Unconditionally release vmap's BFD.
1841 (map_vmap): Acquire a reference to the BFD.
1842
1843 2012-07-23 Siddhesh Poyarekar <siddhesh@redhat.com>
1844
1845 * p-valprint.c (pascal_object_print_value): Replace potentially
1846 unsafe alloca with xmalloc/xfree.
1847 * valops.c (search_struct_method): Likewise.
1848
1849 2012-07-23 Tom Tromey <tromey@redhat.com>
1850
1851 * solib-svr4.c (enable_break): Update.
1852 * bfd-target.h (target_bfd_reopen): Update documentation.
1853
1854 2012-07-23 Tom Tromey <tromey@redhat.com>
1855
1856 * symfile.c (separate_debug_file_exists): Update.
1857 (gdb_bfd_open_maybe_remote): Rename from bfd_open_maybe_remote.
1858 (reread_symbols): Update.
1859 * elfread.c (build_id_verify): Update.
1860 * symfile.h (gdb_bfd_open_maybe_remote): Rename from
1861 bfd_open_maybe_remote.
1862
1863 2012-07-23 Tom Tromey <tromey@redhat.com>
1864
1865 * gdb_bfd.c (gdb_bfd_ref, gdb_bfd_unref): Fix comment.
1866
1867 2012-07-23 Tom Tromey <tromey@redhat.com>
1868
1869 * coffread.c (coff_symfile_read): Make a cleanup for 'debugfile'
1870 and 'abfd'.
1871 * elfread.c (elf_symfile_read): Make a cleanup for 'debugfile'
1872 and 'abfd'.
1873 * jit.c (jit_bfd_try_read_symtab): Make a cleanup for 'nbfd'.
1874 * machoread.c (macho_add_oso_symfile): Make a cleanup for
1875 'abfd'.
1876 (macho_symfile_read): Make a cleanup for 'dsym_bfd'.
1877 * objfiles.c (allocate_objfile): Acquire a new reference.
1878 * rs6000-nat.c (add_vmap): Don't acquire a BFD reference.
1879 * solib.c (solib_read_symbols): Don't acquire a BFD reference.
1880 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Make
1881 a cleanup for 'nbfd'.
1882 * symfile-mem.c (symbol_file_add_from_memory): Make a cleanup
1883 for 'nbfd'.
1884 * symfile.c (symbol_file_add_with_addrs_or_offsets): Don't
1885 make a cleanup for 'abfd'.
1886 (symbol_file_add): Make a BFD cleanup.
1887
1888 2012-07-23 Tom Tromey <tromey@redhat.com>
1889
1890 * cli/cli-dump.c (bfd_openr_with_cleanup): Use gdb_bfd_openr.
1891 (bfd_openw_with_cleanup): Use gdb_bfd_openw.
1892 * corelow.c (core_open): Use gdb_bfd_fopen.
1893 * dsrec.c (load_srec): Use gdb_bfd_openr.
1894 * exec.c (exec_file_attach): Use gdb_bfd_fopen.
1895 * gcore.c (gcore_memory_sections): Use gdb_bfd_openw.
1896 * gdb_bfd.c (gdb_bfd_fopen, gdb_bfd_openr, gdb_bfd_openw)
1897 (gdb_bfd_openr_iovec, gdb_bfd_openr_next_archived_file)
1898 (gdb_bfd_fdopenr): New functions.
1899 * gdb_bfd.h (gdb_bfd_fopen, gdb_bfd_openr, gdb_bfd_openw)
1900 (gdb_bfd_openr_iovec, gdb_bfd_openr_next_archived_file)
1901 (gdb_bfd_fdopenr): Declare.
1902 * jit.c (bfd_open_from_target_memory): Use gdb_bfd_openr_iovec.
1903 * m32-rom.c (m32r_load, m32r_upload_command): Use gdb_bfd_openr.
1904 * machoread.c (macho_symfile_read_all_oso): Use gdb_bfd_openr,
1905 gdb_bfd_openr_next_archived_file.
1906 (macho_check_dsym): Use gdb_bfd_openr.
1907 (macho_add_oso_symfile): Don't call gdb_bfd_stash_filename.
1908 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_fdopenr.
1909 * remote-m32r-sdi.c (m32r_load): Use gdb_bfd_openr.
1910 * remote-mips.c (mips_load_srec, pmon_load_fast): Use
1911 gdb_bfd_openr.
1912 * remote.c (remote_bfd_open): Use gdb_bfd_openr_iovec.
1913 * rs6000-nat.c (add_vmap): Use gdb_bfd_openr, gdb_bfd_fdopenr,
1914 gdb_bfd_openr_next_archived_file.
1915 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
1916 Use gdb_bfd_openr.
1917 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
1918 gdb_bfd_openr.
1919 * solib-spu.c (spu_bfd_fopen): Use gdb_bfd_openr_iovec.
1920 * solib.c (solib_bfd_fopen): Use gdb_bfd_fopen.
1921 * spu-linux-nat.c (spu_bfd_open): Use gdb_bfd_openr_iovec.
1922 * symfile.c (bfd_open_maybe_remote): Use gdb_bfd_openr.
1923 (symfile_bfd_open): Use gdb_bfd_fopen.
1924 (generic_load): Use gdb_bfd_openr.
1925 * windows-nat.c (windows_make_so): Use gdb_bfd_openr.
1926
1927 2012-07-23 Tom Tromey <tromey@redhat.com>
1928
1929 * bfd-target.c (target_bfd_reopen): Update.
1930 * cli/cli-dump.c (bfd_openr_with_cleanup)
1931 (bfd_openw_with_cleanup): Update.
1932 * corelow.c (core_open): Update.
1933 * dsrec.c (load_srec): Update.
1934 * exec.c (exec_file_attach): Update.
1935 * gcore.c (create_gcore_bfd): Update.
1936 * gdb_bfd.c (gdb_bfd_ref): Return void.
1937 (gdb_bfd_open): Update.
1938 * gdb_bfd.h (gdb_bfd_ref): Return void.
1939 Update comments.
1940 * jit.c (jit_bfd_try_read_symtab): Update.
1941 * m32r-rom.c (m32r_load, m32r_upload_command): Update.
1942 * machoread.c (macho_symfile_read_all_oso): Update.
1943 (macho_check_dsym): Update.
1944 * procfs.c (insert_dbx_link_bpt_in_file): Update.
1945 * remote-m32r-sdi.c (m32r_load): Update.
1946 * remote-mips.c (mips_load_srec, pmon_load_fast): Update.
1947 * rs6000-nat.c (add_vmap): Update.
1948 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
1949 Update.
1950 * solib-pa64.c (pa64_solib_create_inferior_hook): Update.
1951 * solib-spu.c (spu_bfd_open): Update.
1952 * solib.c (solib_bfd_fopen, solib_read_symbols): Update.
1953 * spu-linux-nat.c (spu_bfd_open): Update.
1954 * symfile.c (bfd_open_maybe_remote, symfile_bfd_open)
1955 (generic_load): Update.
1956 * windows-nat.c (windows_make_so): Update.
1957
1958 2012-07-22 Siddhesh Poyarekar <siddhesh@redhat.com>
1959
1960 * sh-tdep.c (sh_treat_as_flt_p): Remove unused variable LEN.
1961
1962 2012-07-20 Jeff Kenton <jkenton@tilera.com>
1963
1964 * tilegx-linux-tdep.c (tilegx_linux_sigframe_init): Fix
1965 SIGTRAMP_FRAME unwinding.
1966
1967 2012-07-20 Doug Evans <dje@google.com>
1968
1969 * NEWS: Document new options "set/show use-deprecated-index-sections",
1970 and delete reference to --use-deprecated-index-sections.
1971 * symfile.h (use_deprecated_index_sections): Delete.
1972 * dwarf2read.c (use_deprecated_index_sections): Make static.
1973 (read_index_from_section): Update wording of how to load
1974 deprecated index sections.
1975 (_initialize_dwarf2_read): New options
1976 "set/show use-deprecated-index-sections".
1977 * main.c (captured_main): Delete --use-deprecated-index-sections.
1978
1979 2012-07-20 Pedro Alves <palves@redhat.com>
1980
1981 PR threads/11692
1982 PR gdb/12203
1983
1984 * infrun.c (handle_inferior_event) <new thread>: Don't special
1985 case minus_one_ptid.
1986 <TARGET_WAITKIND_SPURIOUS>: Ditto.
1987 * linux-thread-db.c (thread_get_info_callback): Don't return early
1988 if the thread is zombie.
1989 (thread_from_lwp): Change return type to void. Rewrite stale
1990 comment.
1991 (attach_thread): Don't return early if the thread is zombie,
1992 instead set its "dying" flag.
1993 (thread_db_wait): Don't return TARGET_WAITKIND_SPURIOUS anymore.
1994 (find_new_threads_callback): Don't return early if the thread is
1995 zombie.
1996
1997 2012-07-20 Pedro Alves <palves@redhat.com>
1998
1999 * linux-nat.c (linux_nat_wait): Dump the passed in target options.
2000 * target.c (target_wait): Likewise.
2001 (str_comma_list_concat_elem, do_option, target_options_to_string):
2002 New functions.
2003 * target.h (target_options_to_string): Declare.
2004
2005 2012-07-20 Jan Kratochvil <jan.kratochvil@redhat.com>
2006 Tom Tromey <tromey@redhat.com>
2007
2008 * dwarf2read.c (dwarf_decode_macros)
2009 <DW_MACRO_GNU_define_indirect_alt, DW_MACRO_GNU_undef_indirect_alt,
2010 DW_MACRO_GNU_transparent_include_alt>: New cases.
2011 (dwarf_decode_macro_bytes) <DW_MACRO_GNU_define_indirect,
2012 DW_MACRO_GNU_undef_indirect>: Examine 'section_is_dwz'.
2013
2014 2012-07-20 Tom Tromey <tromey@redhat.com>
2015
2016 * dwarf2read.c (try_open_dwo_file): Don't call
2017 gdb_bfd_stash_filename.
2018
2019 2012-07-20 Pedro Alves <palves@redhat.com>
2020
2021 * i386-tdep.c (i386_record_modrm, i386_record_lea_modrm_addr)
2022 (i386_record_lea_modrm, i386_record_push, i386_record_floats)
2023 (i386_process_record): Tweak description comments.
2024
2025 2012-07-20 Pedro Alves <palves@redhat.com>
2026
2027 * i386-tdep.c (i386_record_modrm, i386_record_lea_modrm_addr)
2028 (i386_process_record): Use record_read_memory.
2029 * record.c (record_read_memory): New function.
2030 (record_arch_list_add_mem, record_exec_insn): Use
2031 record_read_memory.
2032 * record.h (record_read_memory): Declare.
2033
2034 2012-07-20 Yao Qi <yao@codesourcery.com>
2035
2036 * cli/cli-setshow.c (do_setshow_command): Don't check pointer is
2037 NULL for xfree.
2038
2039 2012-07-19 Pedro Alves <palves@redhat.com>
2040
2041 * record.c (record_resume): Ask the target beneath to report all
2042 signals.
2043
2044 2012-07-19 Doug Evans <dje@google.com>
2045
2046 * dwarf2read.c (dwarf2_ranges_read): Ignore ranges starting at zero if
2047 there's no section at address zero.
2048 (dwarf2_record_block_ranges): Ditto.
2049
2050 2012-07-19 Yao Qi <yao@codesourcery.com>
2051
2052 * command.h, remote.c: Fix a typo in comment.
2053
2054 2012-07-19 Tom Tromey <tromey@redhat.com>
2055
2056 PR exp/13206:
2057 * ax-gdb.c (gen_expr) <OP_TYPEOF, OP_DECLTYPE>: New cases.
2058 * breakpoint.c (watchpoint_exp_is_const) <OP_TYPEOF,
2059 OP_DECLTYPE>: New cases.
2060 * c-exp.y (TYPEOF, DECLTYPE): New tokens.
2061 (type_exp): Add new productions.
2062 (ident_tokens): Add __typeof__, typeof, __typeof, __decltype,
2063 and decltype.
2064 * eval.c (evaluate_subexp_standard) <OP_TYPEOF, OP_DECLTYPE>:
2065 New case.
2066 * expprint.c (dump_subexp_body_standard) <OP_TYPEOF,
2067 OP_DECLTYPE>: New case.
2068 * parse.c (operator_length_standard) <OP_TYPEOF, OP_DECLTYPE>:
2069 New case.
2070 * std-operator.def (OP_TYPEOF, OP_DECLTYPE): New constants.
2071 * varobj.c (varobj_create): Handle OP_TYPEOF, OP_DECLTYPE.
2072
2073 2012-07-19 Tom Tromey <tromey@redhat.com>
2074
2075 * c-exp.y (enum token_flags): New.
2076 (struct token) <cxx_only>: Remove.
2077 <flags>: New field.
2078 (tokentab3, tokentab2, ident_tokens): Update.
2079 (lex_one_token): Update. Handle FLAG_SHADOW.
2080
2081 2012-07-19 Tom Tromey <tromey@redhat.com>
2082
2083 * ax-gdb.c (gen_expr): Handle UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE.
2084 * breakpoint.c (watchpoint_exp_is_const): Handle UNOP_CAST_TYPE,
2085 UNOP_REINTERPRET_CAST, UNOP_DYNAMIC_CAST.
2086 * c-exp.y (exp): Emit UNOP_MEMVAL_TYPE, UNOP_CAST_TYPE. Update
2087 for changes to UNOP_REINTERPRET_CAST, UNOP_DYNAMIC_CAST. Use
2088 type_exp production where appropriate.
2089 * eval.c (evaluate_subexp_standard) <UNOP_CAST_TYPE>: New case.
2090 <UNOP_DYNAMIC_CAST, UNOP_REINTERPRET_CAST>: Update.
2091 <UNOP_MEMVAL_TYPE>: New case.
2092 (evaluate_subexp_for_address) <UNOP_MEMVAL_TYPE>: New case.
2093 (evaluate_subexp_for_sizeof) <UNOP_MEMVAL_TYPE>: New case.
2094 * expprint.c (print_subexp_standard) <UNOP_CAST_TYPE>: New case.
2095 <UNOP_MEMVAL_TYPE>: New case.
2096 (dump_subexp_body_standard) <UNOP_DYNAMIC_CAST,
2097 UNOP_REINTERPRET_CAST>: Update.
2098 <UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE>: New cases.
2099 * parse.c (operator_length_standard) <UNOP_DYNAMIC_CAST,
2100 UNOP_REINTERPRET_CAST>: Update.
2101 <UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE>: New cases.
2102 * stack.c (return_command): Also check for UNOP_CAST_TYPE.
2103 * std-operator.def (UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE): New
2104 constants.
2105
2106 2012-07-19 Yao Qi <yao@codesourcery.com>
2107 Jan Kratochvil <jan.kratochvil@redhat.com>
2108
2109 * cli/cli-setshow.c (do_setshow_command): Handle case 'var_filename'
2110 and case 'var_optional_filename' together.
2111 * infcmd.c (_initialize_infcmd): Call add_setshow_string_noescape_cmd
2112 instead of add_setshow_optional_filename_cmd for setshow command
2113 'args'. Set completer for 'set args'.
2114
2115 2012-07-18 Doug Evans <dje@google.com>
2116
2117 * common/gdb_vecs.h: Moved here from ./gdb_vecs.h.
2118 * common/gdb_vecs.c: New file, contents from utils.c.
2119 * common/host-defs.h: New file, contents from defs.h.
2120 * utils.h: New file, contents from defs.h.
2121 * defs.h: Move all declarations of objects defined in utils.c
2122 to utils.h (except QUIT() and related).
2123 #include "utils.h", "host-defs.h".
2124 * probe.h (probe_p): Move here from gdb_vecs.h.
2125 * symfile.c: #include "probe.h" instead of "gdb_vecs.h".
2126 * utils.c (free_char_ptr_vec): Moved to common/gdb_vecs.c.
2127 (dirnames_to_char_ptr_vec_append, dirnames_to_char_ptr_vec): Ditto.
2128 * Makefile.in (SFILES): Add common/gdb_vecs.c.
2129 (HFILES_NO_SRCDIR): Add common/gdb_vecs.h, common/host-defs.h, utils.h.
2130 (COMMON_OBS): Add gdb_vecs.o.
2131 (gdb_vecs.o): New rule.
2132
2133 2012-07-18 Keith Seitz <keiths@redhat.com>
2134
2135 * linespec.c (add_sal_to_sals): Add LITERAL_CANONICAL
2136 parameter. If non-zero, use SYMNAME as the canonical name
2137 for the SaL.
2138 Update all callers.
2139 (convert_linespec_to_sals): Use add_sal_to_sals for
2140 expressions, too.
2141 (decode_line_full): No need to "fill in missing canonical names"
2142 anymore. Simply make cleanups for the allocated names.
2143
2144 2012-07-18 Keith Seitz <keiths@redhat.com>
2145
2146 * linespec.c (struct linespec): Constify expression,
2147 source_filename, function_name, and label_name.
2148 (symbol_not_found_error): Make all parameters const.
2149 (linespec_parser_delete): No need to check for NULL
2150 when using xfree. Cast const char * to char * for xfree.
2151
2152 2012-07-18 Keith Seitz <keiths@redhat.com>
2153
2154 * breakpoint.c (invalid_thread_id_error): New function.
2155 (find_condition_and_thread): Use invalid_thread_id_error.
2156 (watch_command_1): Likewise.
2157
2158 2012-07-18 Tom Tromey <tromey@redhat.com>
2159
2160 * cc-with-index.sh, cc-with-dwz.sh: Remove.
2161 * contrib/cc-with-tweaks.sh: New file.
2162
2163 2012-07-18 Tom Tromey <tromey@redhat.com>
2164
2165 * dwarf2read.c (struct dwz_file) <gdb_index>: New field.
2166 (locate_dwz_sections): Recognize .gdb_index.
2167 (create_cus_from_index_list): New function.
2168 (create_cus_from_index): Use it. Handle .dwz data.
2169 (read_index_from_section): New function, extracted from
2170 dwarf2_read_index.
2171 (dwarf2_read_index): Use it. Read .gdb_index from dwz file,
2172 if needed.
2173
2174 2012-07-18 Tom Tromey <tromey@redhat.com>
2175
2176 * dwarf2read.c (struct dwarf2_per_objfile) <dwz_file>: New field.
2177 (struct dwarf2_per_cu_data) <length>: No longer bitfield.
2178 <is_dwz>: New field.
2179 (struct dwz_file): New.
2180 (struct partial_die_info) <is_dwz, spec_is_dwz>: New fields.
2181 (locate_dwz_sections, dwarf2_get_dwz_file)
2182 (get_abbrev_section_for_cu): New functions.
2183 (error_check_comp_unit_head, read_and_check_comp_unit_head)
2184 (read_and_check_type_unit_head): Add abbrev_section argument.
2185 (create_debug_types_hash_table): Update.
2186 (init_cutu_and_read_dies): Use proper abbrev section.
2187 (init_cutu_and_read_dies_no_follow): Likewise.
2188 (set_partial_user): Do nothing if PST==NULL.
2189 (read_comp_units_from_section): New function.
2190 (create_all_comp_units): Use it.
2191 (scan_partial_symbols, partial_die_parent_scope): Update.
2192 (skip_one_die): Handle DW_FORM_GNU_ref_alt, DW_FORM_GNU_strp_alt.
2193 (process_imported_unit_die, read_partial_die): Handle .dwz files.
2194 (find_partial_die): Add offset_in_dwz argument. Update.
2195 (guess_partial_die_structure_name, fixup_partial_die): Update.
2196 (read_attribute_value): Handle DW_FORM_GNU_ref_alt,
2197 DW_FORM_GNU_strp_alt.
2198 (read_indirect_string_from_dwz): New function.
2199 (dwarf2_const_value_attr): Handle DW_FORM_GNU_strp_alt.
2200 (dump_die_shallow): Handle DW_FORM_GNU_ref_alt, DW_FORM_GNU_strp_alt.
2201 (is_ref_attr): Handle DW_FORM_GNU_ref_alt.
2202 (follow_die_offset): Add offset_in_dwz argument.
2203 (follow_die_ref, dwarf2_fetch_die_location_block): Update.
2204 (skip_form_bytes): Handle DW_FORM_GNU_strp_alt.
2205 (dwarf_decode_macro_bytes): Add section_is_dwz argument.
2206 Handle new macro forms.
2207 (dwarf_decode_macros): Update.
2208 (dwarf2_find_containing_comp_unit): Add offset_in_dwz argument.
2209 (dwarf2_per_objfile_free): Unref dwz_bfd, if it exists
2210 (lookup_die_type): Handle DW_FORM_GNU_ref_alt.
2211 (create_debug_types_hash_table): Use correct abbrev section.
2212 (get_debug_line_section): New function.
2213 (dwarf_decode_line_header, dwarf_decode_lines_1): Use it.
2214 (process_full_comp_unit): Pass 'required' argument to
2215 end_symtab_get_static_block.
2216 * buildsym.h (end_symtab_get_static_block): Update.
2217 * buildsym.c (end_symtab_get_static_block): Add 'required'
2218 argument.
2219 (end_symtab, end_expandable_symtab): Update.
2220
2221 2012-07-18 Tom Tromey <tromey@redhat.com>
2222
2223 * dwarf2read.c: Don't include zlib.h or sys/mman.h.
2224 (pagesize): Remove.
2225 (struct dwarf2_section_info) <map_addr, map_len>: Remove.
2226 (zlib_decompress_section): Remove.
2227 (dwarf2_read_section): Use gdb_bfd_map_section.
2228 (munmap_section_buffer): Remove.
2229 (free_dwo_file, dwarf2_per_objfile_free): Don't use
2230 munmap_section_buffer.
2231 * gdb_bfd.c: Include zlib.h, sys/mman.h.
2232 (struct gdb_bfd_section_data): New.
2233 (free_one_bfd_section): New function.
2234 (gdb_bfd_close_or_warn): Use free_one_bfd_section.
2235 (get_section_descriptor, zlib_decompress_section)
2236 (gdb_bfd_map_section): New functions.
2237 * gdb_bfd.h (gdb_bfd_map_section): Declare.
2238
2239 2012-07-18 Tom Tromey <tromey@redhat.com>
2240
2241 * dwarf2read.c (try_open_dwo_file): use gdb_bfd_open.
2242
2243 2012-07-18 Tom Tromey <tromey@redhat.com>
2244
2245 * gdb_bfd.c (struct gdb_bfd_data): New.
2246 (gdb_bfd_cache): New global.
2247 (struct gdb_bfd_cache_search): New.
2248 (hash_bfd, eq_bfd, gdb_bfd_open): New functions.
2249 (gdb_bfd_ref, gdb_bfd_unref): Use gdb_bfd_data.
2250 * gdb_bfd.h (gdb_bfd_open): Declare.
2251
2252 2012-07-18 Tom Tromey <tromey@redhat.com>
2253
2254 * utils.c (make_cleanup_bfd_unref): Rename from
2255 make_cleanup_bfd_close.
2256 * defs.h (make_cleanup_bfd_unref): Rename from
2257 make_cleanup_bfd_close.
2258 * cli/cli-dump.c (bfd_openr_with_cleanup): Update.
2259 (bfd_openw_with_cleanup): Update.
2260 * corelow.c (core_open): Update.
2261 * dsrec.c (load_srec): Update.
2262 * m32r-rom.c (m32r_load, m32r_upload_command): Update.
2263 * remote-m32r-sdi.c (m32r_load): Update.
2264 * remote-mips.c (mips_load_srec): Update.
2265 (pmon_load_fast): Update.
2266 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
2267 Update.
2268 (darwin_bfd_open): Update.
2269 * solib.c (solib_bfd_fopen): Update.
2270 * symfile-mem.c (symbol_file_add_from_memory): Update.
2271 * symfile.c (symbol_file_add_with_addrs_or_offsets): Update.
2272 (symfile_bfd_open): Update.
2273 (generic_load): Update.
2274
2275 2012-07-18 Tom Tromey <tromey@redhat.com>
2276
2277 * remote-mips.c (mips_load_srec): Use make_cleanup_bfd_close.
2278 (pmon_load_fast): Likewise.
2279 * m32r-rom.c (m32r_load): Use make_cleanup_bfd_close.
2280 (m32r_upload_command): Likewise.
2281 * dsrec.c (load_srec): Use make_cleanup_bfd_close.
2282 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
2283 Use make_cleanup_bfd_close.
2284
2285 2012-07-18 Tom Tromey <tromey@redhat.com>
2286
2287 * symfile.c (symfile_bfd_open): Don't copy name. Call
2288 gdb_bfd_stash_filename.
2289 (load_command): Open the new BFD before freeing the old.
2290 (bfd_open_maybe_remote): Call gdb_bfd_stash_filename.
2291 * symfile-mem.c (symbol_file_add_from_memory): Don't copy name.
2292 Call gdb_bfd_stash_filename.
2293 * spu-linux-nat.c (spu_bfd_open): Don't copy name.
2294 * solib-spu.c (spu_bfd_fopen): Don't copy name. Call
2295 gdb_bfd_stash_filename.
2296 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
2297 Free found_pathname.
2298 * rs6000-nat.c (add_vmap): Don't copy filename. Call
2299 gdb_bfd_stash_filename.
2300 * remote.c (remote_bfd_open): Call gdb_bfd_stash_filename.
2301 * machoread.c (macho_add_oso_symfile): Call
2302 gdb_bfd_stash_filename.
2303 (macho_symfile_read_all_oso): Arrange to free archive_name. Call
2304 gdb_bfd_stash_filename.
2305 (macho_check_dsym): Don't copy filename. Call
2306 gdb_bfd_stash_filename.
2307 * jit.c (bfd_open_from_target_memory): Don't copy the filename.
2308 * gdb_bfd.c (gdb_bfd_stash_filename): New function.
2309 * gdb_bfd.h (gdb_bfd_stash_filename): Declare.
2310 * gcore.c (create_gcore_bfd): Call gdb_bfd_stash_filename.
2311 * exec.c (exec_close): Don't free the BFD's filename.
2312 (exec_file_attach): Don't copy the filename. Call
2313 gdb_bfd_stash_filename.
2314 * corelow.c (core_close): Don't free the BFD's filename.
2315 (core_open): Call gdb_bfd_stash_filename.
2316 * corefile.c (reopen_exec_file): Remove #if 0 code.
2317 * solib.c (solib_bfd_fopen): Call gdb_bfd_stash_filename. Free
2318 pathname.
2319 * dwarf2read.c (try_open_dwo_file): Call gdb_bfd_stash_filename.
2320
2321 2012-07-18 Tom Tromey <tromey@redhat.com>
2322
2323 * dwarf2read.c (try_open_dwo_file): Use gdb_bfd_ref and
2324 gdb_bfd_unref.
2325 (free_dwo_file): Use gdb_bfd_unref.
2326 * cli/cli-dump.c: Include gdb_bfd.h.
2327 (bfd_openw_with_cleanup): Use gdb_bfd_ref.
2328 (bfd_openr_with_cleanup): Likewise.
2329 * windows-nat.c (windows_make_so): Use gdb_bfd_ref,
2330 gdb_bfd_unref.
2331 * utils.c: Include gdb_bfd.h.
2332 (do_bfd_close_cleanup): Use gdb_bfd_unref.
2333 * symfile.c: Include gdb_bfd.h.
2334 (separate_debug_file_exists): Use gdb_bfd_unref.
2335 (bfd_open_maybe_remote): Use gdb_bfd_ref.
2336 (symfile_bfd_open): Use gdb_bfd_ref, gdb_bfd_unref.
2337 (generic_load): Use gdb_bfd_ref.
2338 (reread_symbols): Use gdb_bfd_unref.
2339 * symfile-mem.c: Include gdb_bfd.h.
2340 (symbol_file_add_from_memory): Use make_cleanup_bfd_close.
2341 * spu-linux-nat.c (spu_bfd_open): Use gdb_bfd_ref, gdb_bfd_unref.
2342 * solib.c: Include gdb_bfd.h.
2343 (solib_bfd_fopen): Use gdb_bfd_ref.
2344 (solib_bfd_open): Use gdb_bfd_unref.
2345 (free_so_symbols): Use gdb_bfd_unref.
2346 (reload_shared_libraries_1): Use gdb_bfd_unref.
2347 * solib-spu.c: Include gdb_bfd.h.
2348 (spu_bfd_fopen): Use gdb_bfd_ref, gdb_bfd_unref.
2349 * solib-pa64.c (pa64_solib_create_inferior_hook): Use gdb_bfd_ref,
2350 gdb_bfd_unref.
2351 * solib-frv.c: Include gdb_bfd.h.
2352 (enable_break2): Use gdb_bfd_unref.
2353 * solib-dsbt.c: Include gdb_bfd.h.
2354 (enable_break2): Use gdb_bfd_unref.
2355 * solib-darwin.c: Include gdb_bfd.h.
2356 (darwin_solib_get_all_image_info_addr_at_init): Use gdb_bfd_ref,
2357 gdb_bfd_unref.
2358 (darwin_bfd_open): Use gdb_bfd_unref.
2359 * rs6000-nat.c (add_vmap): Use gdb_bfd_ref, gdb_bfd_unref.
2360 * remote-mips.c: Include gdb_bfd.h.
2361 (mips_load_srec): Use gdb_bfd_ref.
2362 (pmon_load_fast): Use gdb_bfd_ref.
2363 * remote-m32r-sdi.c: Include gdb_bfd.h.
2364 (m32r_load): Use gdb_bfd_ref.
2365 * record.c: Include gdb_bfd.h.
2366 (record_save_cleanups): Use gdb_bfd_unref.
2367 (cmd_record_save): Use gdb_bfd_unref.
2368 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_ref,
2369 gdb_bfd_unref.
2370 * objfiles.h (gdb_bfd_close_or_warn): Remove.
2371 (gdb_bfd_ref, gdb_bfd_unref): Move to gdb_bfd.h.
2372 * objfiles.c: Include gdb_bfd.h.
2373 (free_objfile): Use gdb_bfd_unref.
2374 (gdb_bfd_close_or_warn, gdb_bfd_ref, gdb_bfd_unref): Move to
2375 gdb_bfd.c.
2376 * machoread.c (macho_add_oso_symfile): Use gdb_bfd_unref.
2377 (macho_symfile_read_all_oso): Use gdb_bfd_ref, gdb_bfd_unref.
2378 (macho_check_dsym): Likewise.
2379 * m32r-rom.c: Include gdb_bfd.h.
2380 (m32r_load): Use gdb_bfd_ref.
2381 (m32r_upload_command): Use gdb_bfd_ref.
2382 * jit.c: Include gdb_bfd.h.
2383 (jit_bfd_try_read_symtab): Use gdb_bfd_ref, gdb_bfd_unref.
2384 * gdb_bfd.h: New file.
2385 * gdb_bfd.c: New file.
2386 * gcore.c: Include gdb_bfd.h.
2387 (create_gcore_bfd): Use gdb_bfd_ref.
2388 (do_bfd_delete_cleanup): Use gdb_bfd_unref.
2389 (gcore_command): Use gdb_bfd_unref.
2390 * exec.c: Include gdb_bfd.h.
2391 (exec_close): Use gdb_bfd_unref.
2392 (exec_close_1): Use gdb_bfd_unref.
2393 (exec_file_attach): Use gdb_bfd_ref.
2394 * elfread.c: Include gdb_bfd.h.
2395 (build_id_verify): Use gdb_bfd_unref.
2396 * dsrec.c: Include gdb_bfd.h.
2397 (load_srec): Use gdb_bfd_ref.
2398 * corelow.c: Include gdb_bfd.h.
2399 (core_close): Use gdb_bfd_unref.
2400 (core_open): Use gdb_bfd_ref.
2401 * bfd-target.c: Include gdb_bfd.h.
2402 (target_bfd_xclose): Use gdb_bfd_unref.
2403 (target_bfd_reopen): Use gdb_bfd_ref.
2404 * Makefile.in (SFILES): Add gdb_bfd.c.
2405 (HFILES_NO_SRCDIR): Add gdb_bfd.h.
2406 (COMMON_OBS): Add gdb_bfd.o.
2407
2408 2012-07-18 Keith Seitz <keiths@redhat.com>
2409
2410 * breakpoint.c (find_condition_and_thread): Initialize
2411 TASK and REST.
2412 (create_breakpiont): find_condition_and_thread will now
2413 initialize COND_STRING, THREAD, and REST (and TASK).
2414 (addr_string_to_sals): Likewise.
2415
2416 2012-07-18 Pedro Alves <palves@redhat.com>
2417
2418 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_NO_HISTORY>:
2419 Pull the single step breakpoints out of the target.
2420
2421 2012-07-18 Sergio Durigan Junior <sergiodj@redhat.com>
2422
2423 * probe.c (probe_safe_evaluate_at_pc): Rename variable `n_probes'.
2424 * stap-probe.c (compile_probe_arg): Likewise.
2425
2426 2012-07-18 Sergio Durigan Junior <sergiodj@redhat.com>
2427
2428 * elfread.c (elf_get_probe_argument_count): Remove `objfile' argument.
2429 (elf_compile_to_ax): Likewise.
2430 * infrun.c (insert_exception_resume_from_probe): Likewise.
2431 (check_exception_resume): Remove `objfile' variable.
2432 * probe.c (find_probe_by_pc): Remove `objfile' argument.
2433 (struct probe_and_objfile, probe_and_objfile_s): Delete.
2434 (collect_probes): Adjust return value to `VEC (probe_p) *'.
2435 (compare_entries): Rename to...
2436 (compare_probes): ...this. Adjust function to work with
2437 `struct probe *'. Rename variables `ea' and `eb' to `pa' and `pb'
2438 respectively.
2439 (gen_ui_out_table_header_info): Adjust `probes' argument to be
2440 `VEC (probe_p) *'.
2441 (print_ui_out_info): Adjust argument to be `struct probe *'.
2442 (info_probes_for_ops): Adjust internal computations to use
2443 `VEC (probe_p) *'.
2444 (probe_safe_evaluate_at_pc): Refactor to not pass `objfile' anymore.
2445 * probe.h (struct probe_ops) <get_probe_argument_count, compile_to_ax,
2446 gen_info_probes_table_values>: Remove `objfile' argument.
2447 (struct probe) <objfile>: New field.
2448 (find_probe_by_pc): Remove `objfile' argument.
2449 * stap-probe.c (stap_parse_probe_arguments): Likewise.
2450 (stap_get_probe_argument_count): Likewise.
2451 (stap_get_arg): Likewise.
2452 (stap_evaluate_probe_argument): Likewise.
2453 (stap_compile_to_ax): Likewise.
2454 (compile_probe_arg): Refactor not to pass `objfile' anymore.
2455 (handle_stap_probe): Fill `objfile' field from `struct probe'.
2456 (stap_gen_info_probes_table_header): Remove `objfile' argument.
2457 * symfile.h (struct sym_probe_fns) <sym_evaluate_probe_argument,
2458 sym_compile_to_ax>: Likewise.
2459
2460 2012-07-18 Terry Guo <terry.guo@arm.com>
2461
2462 PR 14329
2463 * defs.h (GDB_MI_MSG_WIDTH): New.
2464 * ser_base (ser_base_read_error_fd): New function.
2465 (do_ser_base_readchar): Poll error file descriptor as well as
2466 standard output.
2467 (generic_readchar): Refactor error handling.
2468
2469 2012-07-18 Joel Brobecker <brobecker@adacore.com>
2470
2471 * NEWS: Create a new section for the next release branch.
2472 Rename the section of the current branch, now that it has
2473 been cut.
2474
2475 2012-07-18 Joel Brobecker <brobecker@adacore.com>
2476
2477 GDB 7.5 branch created (branch timestamp: 2012-07-18 03:22 UTC)
2478 * version.in: Bump version to 7.5.50.20120718-cvs.
2479
2480 2012-07-17 Keith Seitz <keiths@redhat.com>
2481
2482 * linespec.c (linespec_parse_line_offset): Make parameter
2483 const.
2484
2485 2012-07-16 Jan Kratochvil <jan.kratochvil@redhat.com>
2486
2487 PR 11914
2488 * f-valprint.c (info_common_command): New variable frame_id.
2489 Reinitialize FI form FRAME_ID after each print_variable_and_value.
2490 * printcmd.c (print_variable_and_value): Extend function comment.
2491 Add comment for invalidated FRAME.
2492 * stack.c (backtrace_command_1): New variable frame_id. Reinitialize
2493 FI form FRAME_ID after each print_frame_local_vars.
2494 (struct print_variable_and_value_data): Change frame to frame_id.
2495 (do_print_variable_and_value): New variable frame, initialize it from
2496 p->frame_id. Add comment for invalidated FRAME.
2497 (print_frame_local_vars, print_frame_arg_vars): New function comment.
2498 Update CB_DATA.FRAME to CB_DATA.FRAME_ID initialization. Add comment
2499 for invalidated FRAME.
2500
2501 2012-07-16 Marc Khouzam <marc.khouzam@ericsson.com>
2502 Pedro Alves <palves@redhat.com>
2503
2504 * linux-nat.c (linux_nat_detach): Don't unregister from the event
2505 loop.
2506
2507 2012-07-16 Tom Tromey <tromey@redhat.com>
2508
2509 * jv-typeprint.c (c_type_print_varspec_suffix): Don't declare.
2510
2511 2012-07-15 Doug Evans <dje@google.com>
2512
2513 * dwarf2read.c (stmt_list_hash): New struct.
2514 (type_unit_group): Embed "per_cu" member, remove pointer.
2515 New union member "t", move member "tus" into it, all uses updated.
2516 New member "hash", replaces member "line_offset, all uses updated.
2517 (quick_file_names): Replace member "offset" with "hash", all uses
2518 updated.
2519 (hash_stmt_list_entry, eq_stmt_list_entry): New functions.
2520 (hash_file_name_entry, eq_file_name_entry): Call them.
2521 (hash_type_unit_group, eq_type_unit_group): Ditto.
2522 (dw2_get_cu, dw2_get_primary_cu): Replace assert with a better one.
2523 (dw2_get_file_names_reader): Fix file name table calculation for TUs.
2524 (dw2_get_file_names): Update.
2525 (create_type_unit_group): Replace "per_cu" arg with "cu".
2526 All callers updated. Fix "quick" (.gdb_index) handling.
2527 (get_type_unit_group): Replace "per_cu" arg with "cu".
2528 All callers updated.
2529 (build_type_unit_groups): Don't reset tu_stats.
2530
2531 * symtab.c (filename_seen_cache): Delete members "tab_alloc_size",
2532 "tab_cur_size". Change member "tab" to be a htab_t.
2533 (create_filename_seen_cache): Update.
2534 (clear_filename_seen_cache, delete_filename_seen_cache): Update.
2535 (filename_seen): Update.
2536
2537 2012-07-13 Doug Evans <dje@google.com>
2538
2539 * symtab.c (filename_seen): Update comment.
2540
2541 2012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2542 Doug Evans <dje@google.com>
2543
2544 * buildsym.c (end_symtab_1): Split it to ...
2545 (end_symtab_get_static_block): ... this ...
2546 (end_symtab_from_static_block): ... and this function.
2547 (end_symtab, end_expandable_symtab): Call them.
2548 * buildsym.h (end_symtab_get_static_block)
2549 (end_symtab_from_static_block): New declarations.
2550 * dwarf2read.c (process_full_comp_unit): New variable static_block.
2551 Set its valid CU ranges.
2552
2553 2012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2554
2555 * dwarf2loc.c (disassemble_dwarf_expression): Handle
2556 DW_OP_GNU_parameter_ref.
2557
2558 2012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2559
2560 * dwarf2read.c (read_call_site_scope): Do not gdb_assert for invalid
2561 read-in CALL_SITE_PARAMETER_PARAM_OFFSET.
2562
2563 2012-07-13 Doug Evans <dje@google.com>
2564
2565 * symtab.c (output_source_filename): Delete unnecessary forward decl.
2566 (filename_seen_cache): New struct.
2567 (INITIAL_FILENAME_SEEN_CACHE_SIZE): New macro.
2568 (create_filename_seen_cache): New function.
2569 (clear_filename_seen_cache, delete_filename_seen_cache): New functions.
2570 (filename_seen): Delete arg "first". New arg "cache". All callers
2571 updated.
2572 (output_source_filename_data): New struct.
2573 (output_source_filename): Delete arg "first". New arg "data".
2574 All callers updated.
2575 (sources_info): Delete local "first". New locals "data", "cleanups".
2576 Rewrite to use filename_seen_cache.
2577 (add_partial_filename_data): Delete member "first". New member
2578 "filename_seen_cache". All uses updated.
2579 (make_source_files_completion_list): Rewrite to use
2580 filename_seen_cache.
2581
2582 2012-07-12 Doug Evans <dje@google.com>
2583
2584 * psymtab.c (map_symbol_filenames_psymtab): Skip shared psymtabs.
2585
2586 2012-07-10 Doug Evans <dje@google.com>
2587
2588 PR gdb/13498
2589 * dwarf2read.c (dwarf2_per_objfile): New members n_type_unit_groups,
2590 all_type_unit_groups, type_unit_groups, tu_stats.
2591 (dwarf2_per_cu_data): Move "imported_symtabs" into new union "s".
2592 All uses updated. Add type_unit_group to union "s".
2593 (type_unit_group): New struct.
2594 (IS_TYPE_UNIT_GROUP): New macro.
2595 (abbrev_table): Delete unused member "section".
2596 (dw2_do_instantiate_symtab): Early exit if type_unit_group.
2597 (dw2_get_cu): Assert not used with type_unit_group.
2598 (dw2_get_primary_cu): New function.
2599 (dw2_build_type_unit_groups_reader): New function.
2600 (dw2_build_type_unit_groups): New function.
2601 (dw2_get_file_names): Assert not called on type units.
2602 (dw2_map_symtabs_matching_filename): Call dw2_build_type_unit_groups.
2603 Redo loop to iterate over type unit groups instead of type units.
2604 (dw2_expand_symtabs_matching, dw2_map_symbol_filenames): Ditto.
2605 (read_abbrev_offset): New function.
2606 (init_cutu_and_read_dies): New arg "abbrev_table". All callers
2607 updated.
2608 (create_partial_symtab): New function.
2609 (process_psymtab_comp_unit_reader): Assert not used with type units.
2610 Call create_partial_symtab.
2611 (process_psymtab_type_unit): Delete.
2612 (hash_type_unit_group, eq_type_unit_group): New functions.
2613 (allocate_type_unit_groups_table): New function.
2614 (NO_STMT_LIST_TYPE_UNIT_PSYMTAB): New macro.
2615 (NO_STMT_LIST_TYPE_UNIT_PSYMTAB_SIZE): New macro.
2616 (create_type_unit_group, get_type_unit_group): New functions.
2617 (tu_abbrev_offset): New struct.
2618 (sort_tu_by_abbrev_offset): New function.
2619 (add_type_unit_group_to_table): New function.
2620 (build_type_unit_groups): New function.
2621 (build_type_psymtabs_reader): New function.
2622 (build_type_psymtab_dependencies): New function.
2623 (build_type_psymtabs): Rewrite.
2624 (scan_partial_symbols): Flag an error if a DW_TAG_imported_unit
2625 is seen in a type unit.
2626 (process_queue): Move symtab expansion debugging printfs here.
2627 Call process_full_type_unit for type units.
2628 (compute_symtab_includes): Assert not called for type units.
2629 (process_cu_includes): Don't call compute_symtab_includes for
2630 type units.
2631 (process_full_type_unit): New function.
2632 (process_imported_unit_die): Flag an error if called for type units.
2633 (handle_DW_AT_stmt_list): Delete arg "want_line_info". All callers
2634 updated. Assert not called for type units.
2635 (read_file_scope): Call dwarf2_start_symtab.
2636 (setup_type_unit_groups): New function.
2637 (read_type_unit_scope): Rewrite.
2638 (abbrev_table_read_table): Initialize abbrev_table->offset.
2639 (abbrev_table_free_cleanup): New function.
2640 (dwarf2_start_symtab): New function.
2641 (load_full_type_unit): Assert not called for type unit groups.
2642 * buildsym.c (finish_block_internal): New arg "expandable".
2643 All callers updated.
2644 (start_symtab): Move most contents to ...
2645 (restart_symtab): ... here. New function.
2646 (reset_symtab_globals): New function.
2647 (end_symtab_1): Renamed from end_symtab. New arg "expandable".
2648 Call reset_symtab_globals.
2649 (end_symtab, end_expandable_symtab): New functions.
2650 (set_missing_symtab, augment_type_symtab): New functions.
2651 * buildsym.h (end_expandable_symtab): Declare.
2652 (augment_type_symtab, restart_symtab): Declare.
2653 * psympriv.h (struct partial_symtab): New member "anonymous".
2654 * psymtab.c (partial_map_symtabs_matching_filename): Ignore
2655 anonymous psymtabs.
2656 (read_psymtabs_with_filename): Ditto.
2657 (map_symbol_filenames_psymtab, psymtab_to_fullname): Ditto.
2658 (expand_symtabs_matching_via_partial): Ditto.
2659 (dump_psymtab): Update.
2660 * dictionary.c (dict_add_pending): New function.
2661 * dictionary.h (dict_add_pending): Declare.
2662
2663 2012-07-09 Doug Evans <dje@google.com>
2664
2665 * buildsym.c (start_subfile): Remove unnecessary check for
2666 name == NULL.
2667
2668 * psymtab.c (allocate_psymtab): Use host_address_to_string.
2669
2670 * dwarf2read.c (load_full_type_unit): Simplify.
2671
2672 * dwarf2read.c (dwarf2_per_objfile): Change type of all_type_units
2673 to struct signatured_type **. All uses updated.
2674
2675 * dwarf2read.c (dwarf2_attr_no_follow): Delete unused arg "cu".
2676 All callers updated.
2677
2678 2012-07-09 Tom Tromey <tromey@redhat.com>
2679
2680 * c-exp.y (check_parameter_typelist): New function.
2681 (parameter_typelist): Call it.
2682 * eval.c (make_params): Handle '(void)' case.
2683 * gdbtypes.c (lookup_function_type_with_arguments): Handle
2684 '(void)' case.
2685
2686 2012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
2687
2688 * common/linux-ptrace.c: Include gdb_assert.h.
2689 <__i386__> (linux_ptrace_test_ret_to_nx_instr): New declaration.
2690 <__i386__>: Include sys/reg.h, sys/mman.h, signal.h, sys/wait.h and
2691 stdint.h.
2692 (linux_ptrace_test_ret_to_nx, linux_ptrace_init_warnings): New
2693 functions.
2694 * common/linux-ptrace.h (linux_ptrace_init_warnings): New declarations.
2695 * linux-nat.c (linux_child_post_attach)
2696 (linux_child_post_startup_inferior): Call linux_ptrace_init_warnings.
2697
2698 2012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
2699
2700 * linux-thread-db.c (thread_db_find_new_threads_silently): Do not apply
2701 nptl <2.7 bug workaround for core files.
2702
2703 2012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
2704
2705 * linux-nat.c (resume_lwp, linux_nat_resume): Remove LP->SIGINFO
2706 clearing.
2707 (save_siginfo): Remove.
2708 (stop_wait_callback, linux_nat_filter_event): Remove the save_siginfo
2709 call.
2710 (resume_stopped_resumed_lwps): Remove LP->SIGINFO clearing.
2711 (linux_nat_get_siginfo): Use PTRACE_GETSIGINFO.
2712 * linux-nat.h (struct lwp_info): Remove field siginfo.
2713
2714 2012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
2715
2716 Code cleanup for the next patch.
2717 * arm-linux-nat.c (arm_linux_stopped_data_address): Change variable
2718 siginfo_p to siginfo, update its users incl. the linux_nat_get_siginfo
2719 call for it.
2720 * ia64-linux-nat.c (ia64_linux_stopped_data_address): Likewise.
2721 (ia64_linux_stopped_data_address):
2722 * linux-nat.c (linux_nat_get_siginfo): Add parameter siginfo, change
2723 the return value.
2724 * linux-nat.h (linux_nat_get_siginfo): Likewise.
2725 * ppc-linux-nat.c (ppc_linux_stopped_data_address): Change variable
2726 siginfo_p to siginfo, update its users incl. the linux_nat_get_siginfo
2727 call for it.
2728
2729 2012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
2730
2731 PR 14321
2732 * findcmd.c (parse_find_args): New variable pattern_buf_size_need.
2733 Increase buffer sizes to 2x we need, not just 2x of the previous size.
2734
2735 2012-07-06 Tom Tromey <tromey@redhat.com>
2736
2737 * c-exp.y (DOTDOTDOT): New token.
2738 (func_mod, exp): Use parameter_typelist.
2739 (parameter_typelist): New production.
2740 (tokentab3): Add "..." token.
2741 * eval.c (make_params): Handle varargs.
2742 * gdbtypes.c (lookup_function_type_with_arguments): Handle
2743 varargs.
2744
2745 2012-07-06 Tom Tromey <tromey@redhat.com>
2746
2747 PR exp/9608:
2748 * c-exp.y (%union) <tvec>: Change type.
2749 (func_mod): Now uses <tvec> type.
2750 (exp): Update for tvec change.
2751 (direct_abs_decl): Push the typelist.
2752 (func_mod): Return a typelist.
2753 (nonempty_typelist): Update for tvec change.
2754 * gdbtypes.c (lookup_function_type_with_arguments): New function.
2755 * gdbtypes.h (lookup_function_type_with_arguments): Declare.
2756 * parse.c (pop_type_list): New function.
2757 (push_typelist): New function.
2758 (follow_types): Handle tp_function_with_arguments.
2759 * parser-defs.h (type_ptr): New typedef. Define a VEC.
2760 (enum type_pieces) <tp_function_with_arguments>: New constant.
2761 (union type_stack_elt) <typelist_val>: New field.
2762 (push_typelist): Declare.
2763
2764 2012-07-06 Tom Tromey <tromey@redhat.com>
2765
2766 * c-exp.y (%union) <type_stack>: New field.
2767 (abs_decl, direct_abs_decl): Use <type_stack> type. Update.
2768 (ptr_operator_ts): New production.
2769 (ptype): Update.
2770 * parse.c (type_stack_reserve): New function.
2771 (check_type_stack_depth): Use it.
2772 (pop_type_stack, append_type_stack, push_type_stack)
2773 (get_type_stack, type_stack_cleanup): New functions.
2774 (follow_types): Handle tp_type_stack.
2775 (_initialize_parse): Simplify initialization.
2776 * parser-defs.h (enum type_pieces) <tp_type_stack>: New
2777 constant.
2778 (union type_stack_elt) <stack_val>: New field.
2779 (get_type_stack, append_type_stack, push_type_stack)
2780 (type_stack_cleanup): Declare.
2781
2782 2012-07-06 Tom Tromey <tromey@redhat.com>
2783
2784 * parser-defs.h (type_stack, type_stack_size, type_stack_depth):
2785 Remove.
2786 (struct type_stack): New.
2787 * parse.c (type_stack, type_stack_size, type_stack_depth):
2788 Remove.
2789 (type_stack): New global.
2790 (parse_exp_in_context, check_type_stack_depth)
2791 (insert_into_type_stack, insert_type, push_type, push_type_int)
2792 (insert_type_address_space, pop_type, pop_type_int)
2793 (_initialize_parse): Update.
2794
2795 2012-07-06 Tom Tromey <tromey@redhat.com>
2796
2797 * c-exp.y (func_mod, direct_abs_decl, abs_decl, ptr_operator):
2798 Remove %type.
2799
2800 2012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
2801
2802 * c-lang.c (c_printstr): Remove ununsed variable WIDTH.
2803
2804 2012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
2805 Jan Kratochvil <jan.kratochvil@redhat.com>
2806
2807 * cp-valprint.c (cp_print_value): Replace potentially unsafe
2808 alloca with xmalloc/xfree.
2809
2810 2012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
2811
2812 * MAINTAINERS (Write After Approval): Add myself to the list.
2813
2814 2012-07-05 Doug Evans <dje@google.com>
2815
2816 * dwarf2read.c (dw2_expand_symtabs_matching): Fix typo.
2817
2818 2012-07-05 Hui Zhu <hui_zhu@mentor.com>
2819
2820 * ax-gdb.c (cli/cli-utils.h): New include.
2821 (linespec.h): Ditto.
2822 (agent_eval_command_one): New function.
2823 (agent_command_1): Ditto.
2824 (agent_command): Call function agent_command_1.
2825 (agent_eval_command): Ditto.
2826 (_initialize_ax_gdb): Change help for "maint agent"
2827 and "maint agent-eval".
2828
2829 2012-07-05 Hui Zhu <hui_zhu@mentor.com>
2830
2831 * breakpoint.c (check_for_argument): Move to file cli/cli-utils.c.
2832 * cli/cli-utils.c (check_for_argument): New function.
2833 * cli/cli-utils.h (check_for_argument): Ditto.
2834
2835 2012-07-04 H.J. Lu <hongjiu.lu@intel.com>
2836
2837 * NEWS: Mention x32 ABI support.
2838
2839 2012-07-04 H.J. Lu <hongjiu.lu@intel.com>
2840
2841 * amd64-tdep.c (amd64_x32_init_abi): Set sp_regnum_from_eax to
2842 AMD64_RSP_REGNUM and pc_regnum_from_eax to AMD64_RIP_REGNUM.
2843
2844 * i386-tdep.c (i386_gdbarch_init): Initialize sp_regnum_from_eax
2845 and pc_regnum_from_eax to -1. Update SP regnum from
2846 sp_regnum_from_eax and PC regnum from pc_regnum_from_eax if
2847 needed.
2848
2849 * i386-tdep.h (gdbarch_tdep): Add sp_regnum_from_eax and
2850 pc_regnum_from_eax.
2851
2852 2012-07-03 Jan Kratochvil <jan.kratochvil@redhat.com>
2853
2854 Fix 'warning: parameter has incomplete type' with gcc-3.4.6.
2855 * dwarf2expr.h: Include gdbtypes.h.
2856 (enum call_site_parameter_kind, union call_site_parameter_u): Remove
2857 these forward declarations.
2858 (cu_offset, sect_offset): Move these ...
2859 * gdbtypes.h: Remove include dwarf2expr.h.
2860 (cu_offset, sect_offset): ... here.
2861
2862 2012-07-03 H.J. Lu <hongjiu.lu@intel.com>
2863
2864 * amd64-linux-tdep.c (linux_sigtramp_code): Renamed to ...
2865 (amd64_linux_sigtramp_code): This.
2866 (amd64_x32_linux_sigtramp_code): New.
2867 (LINUX_SIGTRAMP_LEN): Updated.
2868 (amd64_linux_sigtramp_start): Check x32 sigtramp.
2869
2870 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2871
2872 * linux-thread-db.c (thread_db_new_objfile): Fix comment typos.
2873
2874 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2875
2876 * config.in: Regenerate.
2877 * configure: Regenerate.
2878 * configure.ac: Remove check for gnu/libc-version.h.
2879 * linux-thread-db.c <HAVE_GNU_LIBC_VERSION_H>: Remove include of
2880 gnu/libc-version.h.
2881 (enable_thread_event_reporting) <HAVE_GNU_LIBC_VERSION_H>: Remove
2882 variables libc_version, libc_major and libc_minor. Replace sscanf by
2883 inferior_has_bug. Extend the comment.
2884
2885 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2886
2887 * linux-thread-db.c (inferior_has_bug): New function.
2888 (thread_db_find_new_threads_silently): Return boolean as checked by
2889 inferior_has_bug, describe it in the comments.
2890 (try_thread_db_load_1): Move call to thread_db_find_new_threads_silently
2891 earlier. Abort the initialization if it returned non-zero.
2892 (thread_db_new_objfile): Exclude debug files.
2893 (thread_db_find_new_threads_2): Preinitialize ERR. Check errors also
2894 if UNTIL_NO_NEW,
2895
2896 2012-07-02 Doug Evans <dje@google.com>
2897
2898 * dwarf2read.c (maybe_queue_comp_unit): Move definition next to others
2899 related to queue management.
2900
2901 * dwarf2read.c (create_debug_types_hash_table): Use "debug dwarf2-read"
2902 instead of "debug dwarf2-die" in debugging printfs.
2903 (create_debug_info_hash_table_reader): Ditto.
2904 (create_debug_info_hash_table): Ditto.
2905 (init_dwo_file): Ditto.
2906 (init_cutu_and_read_dies): Add debugging printf.
2907 (init_cutu_and_read_dies_no_follow): Ditto.
2908 (process_psymtab_comp_unit_reader): Ditto.
2909
2910 2012-07-02 Stan Shebs <stan@codesourcery.com>
2911
2912 Add target-side support for dynamic printf.
2913 * NEWS: Mention the additional style.
2914 * breakpoint.h (struct bp_target_info): New fields tcommands, persist.
2915 (struct bp_location): New field cmd_bytecode.
2916 * breakpoint.c: Include format.h.
2917 (disconnected_dprintf): New global.
2918 (parse_cmd_to_aexpr): New function.
2919 (build_target_command_list): New function.
2920 (insert_bp_location): Call it.
2921 (remove_breakpoints_pid): Skip dprintf breakpoints.
2922 (print_one_breakpoint_location): Ditto.
2923 (dprintf_style_agent): New global.
2924 (dprintf_style_enums): Add dprintf_style_agent.
2925 (update_dprintf_command_list): Add agent case.
2926 (agent_printf_command): New function.
2927 (_initialize_breakpoint): Add new commands.
2928 * common/ax.def (printf): New bytecode.
2929 * ax.h (ax_string): Declare.
2930 * ax-gdb.h (gen_printf): Declare.
2931 * ax-gdb.c: Include cli-utils.h, format.h.
2932 (gen_printf): New function.
2933 (maint_agent_print_command): New function.
2934 (_initialize_ax_gdb): Add maint agent-printf command.
2935 * ax-general.c (ax_string): New function.
2936 (ax_print): Add printf disassembly.
2937 * Makefile.in (SFILES): Add format.c
2938 (COMMON_OBS): Add format.o.
2939 * common/format.h: New file.
2940 * common/format.c: New file.
2941 * printcmd.c: Include format.h.
2942 (ui_printf): Call parse_format_string.
2943 * remote.c (remote_state): New field breakpoint_commands.
2944 (PACKET_BreakpointCommands): New enum.
2945 (remote_breakpoint_commands_feature): New function.
2946 (remote_protocol_features): Add new BreakpointCommands entry.
2947 (remote_can_run_breakpoint_commands): New function.
2948 (remote_add_target_side_commands): New function.
2949 (remote_insert_breakpoint): Call it.
2950 (remote_insert_hw_breakpoint): Ditto.
2951 (_initialize_remote): Add new packet configuration for
2952 target-side breakpoint commands.
2953 * target.h (struct target_ops): New field
2954 to_can_run_breakpoint_commands.
2955 (target_can_run_breakpoint_commands): New macro.
2956 * target.c (update_current_target): Handle
2957 to_can_run_breakpoint_commands.
2958
2959 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2960
2961 Execute -ix and -iex only after system and user gdbinit files.
2962 * main.c (captured_main): Move CMDARG_INIT_FILE and CMDARG_INIT_COMMAND
2963 processing down after gdbinit files.
2964
2965 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2966
2967 Add fnmatch-gnu module.
2968 * gnulib/Makefile.in (aclocal_m4_deps): Add new files and remove one.
2969 * gnulib/configure.ac (AC_INIT): Use now import/memmem.c.
2970 * gnulib/aclocal.m4: Regenerate.
2971 * gnulib/config.in: Regenerate.
2972 * gnulib/configure: Regenerate.
2973 * gnulib/import/dummy.c: Remove.
2974 * gnulib/import/Makefile.am: Regenerate.
2975 * gnulib/import/Makefile.in: Likewise.
2976 * gnulib/import/m4/gnulib-cache.m4: Likewise.
2977 * gnulib/import/m4/gnulib-comp.m4: Likewise.
2978 * gnulib/import/alloca.c: New file.
2979 * gnulib/import/alloca.in.h: Likewise.
2980 * gnulib/import/config.charset: Likewise.
2981 * gnulib/import/fnmatch.c: Likewise.
2982 * gnulib/import/fnmatch.in.h: Likewise.
2983 * gnulib/import/fnmatch_loop.c: Likewise.
2984 * gnulib/import/localcharset.c: Likewise.
2985 * gnulib/import/localcharset.h: Likewise.
2986 * gnulib/import/m4/alloca.m4: Likewise.
2987 * gnulib/import/m4/codeset.m4: Likewise.
2988 * gnulib/import/m4/configmake.m4: Likewise.
2989 * gnulib/import/m4/fcntl-o.m4: Likewise.
2990 * gnulib/import/m4/fnmatch.m4: Likewise.
2991 * gnulib/import/m4/glibc21.m4: Likewise.
2992 * gnulib/import/m4/localcharset.m4: Likewise.
2993 * gnulib/import/m4/locale-fr.m4: Likewise.
2994 * gnulib/import/m4/locale-ja.m4: Likewise.
2995 * gnulib/import/m4/locale-zh.m4: Likewise.
2996 * gnulib/import/m4/mbrtowc.m4: Likewise.
2997 * gnulib/import/m4/mbsinit.m4: Likewise.
2998 * gnulib/import/m4/mbsrtowcs.m4: Likewise.
2999 * gnulib/import/m4/mbstate_t.m4: Likewise.
3000 * gnulib/import/m4/stdbool.m4: Likewise.
3001 * gnulib/import/m4/wchar_h.m4: Likewise.
3002 * gnulib/import/m4/wctype_h.m4: Likewise.
3003 * gnulib/import/m4/wint_t.m4: Likewise.
3004 * gnulib/import/mbrtowc.c: Likewise.
3005 * gnulib/import/mbsinit.c: Likewise.
3006 * gnulib/import/mbsrtowcs-impl.h: Likewise.
3007 * gnulib/import/mbsrtowcs-state.c: Likewise.
3008 * gnulib/import/mbsrtowcs.c: Likewise.
3009 * gnulib/import/ref-add.sin: Likewise.
3010 * gnulib/import/ref-del.sin: Likewise.
3011 * gnulib/import/stdbool.in.h: Likewise.
3012 * gnulib/import/streq.h: Likewise.
3013 * gnulib/import/strnlen1.c: Likewise.
3014 * gnulib/import/strnlen1.h: Likewise.
3015 * gnulib/import/verify.h: Likewise.
3016 * gnulib/import/wchar.in.h: Likewise.
3017 * gnulib/import/wctype.in.h: Likewise.
3018
3019 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3020
3021 Support shell wildcards for 'set auto-load safe-path'.
3022 * auto-load.c: Include fnmatch.h.
3023 (filename_is_in_dir): Rename to ...
3024 (filename_is_in_pattern_1, filename_is_in_pattern): ... here and split
3025 it. Update function comment. Rename dir_len to pattern_len. New
3026 variables filename_len, pattern and filename. Add more DEBUG_AUTO_LOAD
3027 messages. Use gdb_filename_fnmatch.
3028 (filename_is_in_auto_load_safe_path_vec): Rename variable dir to
3029 pattern.
3030 (_initialize_auto_load): Extend the "set auto-load safe-path" help text.
3031 * defs.h (gdb_filename_fnmatch): New declaration.
3032 * utils.c: Include fnmatch.h.
3033 (gdb_filename_fnmatch): New function.
3034
3035 2012-07-02 Sergio Durigan Junior <sergiodj@redhat.com>
3036
3037 * breakpoint.c (BREAK_ARGS_HELP): Include help message for the new
3038 `-probe' and `-probe-stap' options.
3039
3040 2012-07-01 Yao Qi <yao@codesourcery.com>
3041
3042 * breakpoint.c: Removed always_inserted_auto, always_inserted_on,
3043 always_inserted_off, and always_inserted_enums.
3044 Change always_inserted_mode's type to 'enum auto_boolean'.
3045 (show_always_inserted_mode, breakpoint_always_inserted_mode): Update
3046 callers.
3047 (_initialize_breakpoint): Call add_setshow_auto_boolean_cmd instead
3048 of add_setshow_enum_cmd.
3049 * infrun.c: Remove can_use_displaced_stepping_auto,
3050 can_use_displaced_stepping_on, can_use_displaced_stepping_off, and
3051 can_use_displaced_stepping_enum.
3052 Change can_use_displaced_stepping's type to 'enum auto_boolean'.
3053 (show_can_use_displaced_stepping, use_displaced_stepping): Update callers.
3054 (_initialize_infrun): Call add_setshow_auto_boolean_cmd instead of
3055 add_setshow_enum_cmd.
3056
3057 2012-06-30 Doug Evans <dje@google.com>
3058
3059 * dwarf2read.c (signatured_type): Make "per_cu" member first.
3060 (init_cutu_and_read_dies): Handle rereading a DWO CU while it's
3061 currently being read. Propagate DW_AT_comp_dir to DWO DIE.
3062
3063 2012-06-29 Doug Evans <dje@google.com>
3064
3065 * linespec.c: #include "stack.h".
3066 (decode_line_with_current_source): Moved here from symtab.c and
3067 renamed from decode_line_spec. All callers updated.
3068 (decode_line_with_last_displayed): Moved here from breakpoint.c and
3069 renamed from decode_line_spec_1. All callers updated.
3070 * linespec.h (decode_line_with_current_source): Move declaration here
3071 from symtab.h and renamed from decode_line_spec.
3072 (decode_line_with_last_displayed): Move declaration here from symtab.h
3073 and renamed from decode_line_spec_1.
3074 * macrocmd.c: #include "linespec.h".
3075 * symtab.c: Remove #include "linespec.h".
3076
3077 2012-06-28 Doug Evans <dje@google.com>
3078
3079 * dwarf2read.c (get_cu_length): New function.
3080 (offset_in_cu_p, error_check_comp_unit_head): Call it.
3081 (create_debug_types_hash_table): Ditto.
3082 (init_cutu_and_read_dies): Ditto.
3083 (init_cutu_and_read_dies_no_follow): Ditto.
3084
3085 * dwarf2read.c (dwarf2_find_base_address): Move definition.
3086
3087 * dwarf2read.c (ABBREV_HASH_SIZE): Remove enclosing #ifndef/#endif.
3088 (struct abbrev_table): Define.
3089 (dwarf2_cu): Replace members dwarf2_abbrevs, abbrev_obstack with
3090 abbrev_table.
3091 (init_cutu_and_read_dies): Update.
3092 (abbrev_table_alloc_abbrev): New function. Replaces
3093 dwarf_alloc_abbrev. All callers updated.
3094 (abbrev_table_add_abbrev): New function.
3095 (abbrev_table_lookup_abbrev): New function. Replaces
3096 dwarf2_lookup_abbrev. All callers updated.
3097 (abbrev_table_read_table): New function. Contents moved here from
3098 dwarf2_read_abbrevs.
3099 (dwarf2_read_abbrevs): Call it.
3100 (abbrev_table_free): New function.
3101 (dwarf2_free_abbrev_table): Call it.
3102
3103 2012-06-28 Stan Shebs <stan@codesourcery.com>
3104
3105 * osdata.c (info_osdata_command): Filter out "Title" columns
3106 from non-MI uses.
3107 * common/linux-osdata.c (struct osdata_type): Add title field.
3108 (osdata_table): Add titles to each entry.
3109 (linux_command_xfer_osdata): Add a column for title data.
3110
3111 2012-06-28 Stan Shebs <stan@codesourcery.com>
3112
3113 Make logging work for MI.
3114 * NEWS: Mention it.
3115 * interps.h (interp_set_logging_ftype): New typedef.
3116 (struct interp_procs): New field set_logging_proc.
3117 (current_interp_set_logging): Declare.
3118 * interps.c (current_interp_set_logging): New function.
3119 * cli/cli-logging.c: Include interps.h.
3120 (set_logging_redirect): Call current_interp_set_logging.
3121 (pop_output_files): Ditto.
3122 (handle_redirections): Ditto, plus skip ui-out redirect if MI.
3123 * mi/mi-console.h (mi_console_set_raw): Declare.
3124 * mi/mi-console.c (mi_console_set_raw): New function.
3125 * mi/mi-interp.c (saved_raw_stdout): New global.
3126 (mi_set_logging): New function.
3127 (_initialize_mi_interp): Add it to interp procs.
3128
3129 2012-06-28 Doug Evans <dje@google.com>
3130
3131 * symtab.c (lookup_symbol_aux_objfile): Use
3132 ALL_OBJFILE_PRIMARY_SYMTABS.
3133
3134 * gdbtypes.c (lookup_typename): Rename local variable "tmp" to "type".
3135
3136 2012-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3137
3138 * common/buffer.c: Include inttypes.h and stdint.h.
3139 (buffer_xml_printf): Use PRId64, PRIu64, PRIx64 and PRIo64.
3140
3141 2012-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3142 Pedro Alves <palves@redhat.com>
3143
3144 * gdbthread.h (ALL_THREADS): New macro.
3145 (thread_list): Declare.
3146 * infrun.c (handle_inferior_event) <spurious signal>: Don't keep
3147 going, but instead fall through to the stepping handling.
3148 * linux-nat.c (resume_lwp): New parameter 'signo'. Resume with
3149 the passed in signal. Adjust debug output.
3150 (resume_callback): Rename to ...
3151 (linux_nat_resume_callback): ... this. Pass the thread's last
3152 stop signal, if in "pass" state.
3153 (linux_nat_resume): Adjust to rename.
3154 (stop_wait_callback): New assertion. Don't respawn signals;
3155 instead let the LWP remain with SIGNALLED set.
3156 (linux_nat_wait_1): Remove flushing of pending SIGSTOPs.
3157 * remote.c (append_pending_thread_resumptions): New.
3158 (remote_vcont_resume): Call it.
3159 * target.h (target_resume): Extend comment.
3160
3161 2012-06-28 Iain Sandoe <iain@codesourcery.com>
3162
3163 * auxv.c (fprint_target_auxv): Handle extended cache data tags.
3164
3165 2012-06-27 Doug Evans <dje@google.com>
3166
3167 * dwarf2read.c (dwarf2_cu): Add ranges_base.
3168 Delete have_addr_base, unused. All uses updated.
3169 (init_cutu_and_read_dies): Process DW_AT_GNU_ranges_base.
3170 (dwarf2_get_pc_bounds): Add ranges_base.
3171 (dwarf2_record_block_ranges): Ditto.
3172
3173 2012-06-27 Tom Tromey <tromey@redhat.com>
3174
3175 PR macros/7961:
3176 * varobj.c (varobj_create): Update.
3177 (varobj_set_value): Update.
3178 * tracepoint.c (validate_actionline): Update.
3179 (encode_actions_1): Update.
3180 * parse.c (parse_exp_1): Add 'pc' argument.
3181 (parse_exp_in_context): Add 'pc' argument. Change how
3182 expression_context_pc is set.
3183 (parse_expression): Update.
3184 (parse_field_expression): Update.
3185 * expression.h (parse_exp_1): Update.
3186 * eval.c (parse_to_comma_and_eval): Update.
3187 * breakpoint.c (set_breakpoint_condition): Update.
3188 (update_watchpoint): Update.
3189 (init_breakpoint_sal): Update
3190 (find_condition_and_thread): Update.
3191 (watch_command_1): Update.
3192 (update_breakpoint_locations): Update.
3193 * ada-lang.c (ada_read_renaming_var_value): Update.
3194 (create_excep_cond_exprs): Update.
3195
3196 2012-06-27 Doug Evans <dje@google.com>
3197
3198 * dwarf2read.c (per_cu_header_read_in): Simplify, and handle
3199 type units.
3200
3201 2012-06-26 Doug Evans <dje@google.com>
3202
3203 * dwarf2read.c (read_and_check_comp_unit_head): Delete unnecessary
3204 prototype.
3205 (error_check_comp_unit_head): New arg abbrev_section. All callers
3206 updated.
3207 (read_and_check_comp_unit_head): Ditto.
3208 (read_and_check_type_unit_head): Ditto.
3209
3210 2012-06-26 Siva Chandra Reddy <sivachandra@google.com>
3211
3212 New attribute 'last' for gdb.Symtab_and_line.
3213 * NEWS (Python Scripting): Add entry about the new attribute.
3214 * python/py-symtab.c (salpy_get_last): New function which
3215 implements the get method for the 'last' attribute of
3216 gdb.Symtab_and_line.
3217 (sal_object_getset): Add entry for the 'last' attribute.
3218
3219 2012-06-26 Doug Evans <dje@google.com>
3220
3221 * dwarf2read.c (dwo_section_names): Add macinfo_dwo, macro_dwo.
3222 (dwo_sections): Add macinfo, macro.
3223 (dwarf2_locate_dwo_sections): Watch for macro sections.
3224 (dwarf_decode_macros): Remove args lh, abfd, section, section_name.
3225 All callers updated. Handle DWO files.
3226
3227 * NEWS: Mention new options "set debug dwarf2-read" and
3228 "set debug symtab-create".
3229 * dwarf2read.c (dwarf2_read_debug): New static global.
3230 (dwarf2_build_psymtabs_hard): Add debugging printfs.
3231 (process_queue): Ditto.
3232 (process_full_comp_unit): Ditto.
3233 (_initialize_dwarf2_read): Add new option "set debug dwarf2-read".
3234 * elfread.c (elf_symfile_read): Add debugging printf.
3235 * minsyms.c (install_minimal_symbols): Ditto.
3236 * psymtab.c (allocate_psymtab): Ditto.
3237 * symfile.c (allocate_symtab): Ditto.
3238 * symtab.c (symtab_create_debug): New global.
3239 (_initialize_symtab): Add new option "set debug symtab-create".
3240 * symtab.h (symtab_create_debug): Declare.
3241
3242 * dwarf2read.c (lookup_dwo_comp_unit): Enhance comment.
3243 (lookup_dwo_type_unit): Ditto.
3244
3245 2012-06-26 Roland McGrath <roland@hack.frob.com>
3246 H.J. Lu <hongjiu.lu@intel.com>
3247
3248 * amd64-linux-nat.c: Include <sys/user.h>.
3249 (ps_get_thread_area): Use PTRACE_PEEKUSER to get fs_base/gs_base
3250 if HAVE_STRUCT_USER_REGS_STRUCT_FS_BASE or
3251 HAVE_STRUCT_USER_REGS_STRUCT_GS_BASE is defined.
3252
3253 * configure.ac: Check if the fs_base and gs_base members of
3254 `struct user_regs_struct' exist.
3255 * config.in: Regenerated.
3256 * configure: Likewise.
3257
3258 2012-06-25 Michael Eager <eager@eagercon.com>
3259
3260 PR python/14291
3261 * python/python.c (gdbpy_write): Check for interrupted output.
3262
3263 2012-06-25 Greta Yorsh <greta.yorsh@arm.com>
3264
3265 * arm-tdep.c (arm_in_function_epilogue_p): Recognize POP with a single
3266 register as a stack alignment in ARM mode.
3267
3268 2012-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3269
3270 Update gnulib to GIT commit a39f53ccb70a613e647e1019fb4c63645220267e.
3271 * gnulib/config.in: Regenerate.
3272 * gnulib/configure: Likewise.
3273 * gnulib/import/m4/extensions.m4: Update it.
3274 * gnulib/import/m4/gnulib-common.m4: Likewise.
3275 * gnulib/import/m4/memmem.m4: Likewise.
3276 * gnulib/import/m4/mmap-anon.m4: Likewise.
3277 * gnulib/import/m4/multiarch.m4: Likewise.
3278 * gnulib/import/stdint.in.h: Likewise.
3279
3280 2012-06-24 Yao Qi <yao@codesourcery.com>
3281
3282 * corefile.c (write_memory_with_notification): New.
3283 * gdbcore.h: Declare write_memory_with_notification.
3284 * ada-lang.c (ada_value_assign): Replace 'write_memory' and
3285 'observer_notify_memory_changed' with 'write_memory_with_notification'.
3286 * valops.c (value_assign): Likewise.
3287 * python/py-inferior.c (infpy_write_memory): Call
3288 'write_memory_with_notification'.
3289
3290 2012-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3291
3292 * cc-with-index.sh: Use also -ex "set auto-load no".
3293
3294 2012-06-23 Doug Evans <dje@google.com>
3295
3296 PR 14125
3297 * NEWS: Document additions to .gdb_index.
3298 * dwarf2read.c: #include "gdb/gdb-index.h".
3299 (DW2_GDB_INDEX_SYMBOL_STATIC_SET_VALUE): New macro.
3300 (DW2_GDB_INDEX_SYMBOL_KIND_SET_VALUE): New macro.
3301 (DW2_GDB_INDEX_CU_SET_VALUE): New macro.
3302 (dwarf2_read_index): Recognize version 7.
3303 (dw2_do_expand_symtabs_matching): New args want_specific_block,
3304 block_kind, domain): All callers updated.
3305 (dw2_find_symbol_file): Handle new index CU values.
3306 (dw2_expand_symtabs_matching): Match symbol kind if requested.
3307 (add_index_entry): New args is_static, kind. All callers updated.
3308 (offset_type_compare, uniquify_cu_indices): New functions
3309 (symbol_kind): New function.
3310 (write_psymtabs_to_index): Remove duplicate CU values.
3311 (write_psymtabs_to_index): Write .gdb_index version 7.
3312
3313 2012-06-22 Joel Brobecker <brobecker@adacore.com>
3314
3315 * configure.ac (build_warnings): Add -Wdeclaration-after-statement.
3316 * configure: Regenerate.
3317
3318 2012-06-20 Yao Qi <yao@codesourcery.com>
3319
3320 * python/py-inferior.c: Update comments of infpy_read_memory
3321 and infpy_write_memory.
3322
3323 2012-06-19 Tom Tromey <tromey@redhat.com>
3324
3325 PR exp/9514:
3326 * parser-defs.h (insert_type, insert_type_address_space): Declare.
3327 (push_type_address_space): Remove.
3328 * parse.c (insert_into_type_stack): New function.
3329 (insert_type): Likewise.
3330 (insert_type_address_space): Rename from push_type_address_space.
3331 Insert tp_space_identifier.
3332 * c-exp.y (ptr_operator): New production.
3333 (abs_decl): Use ptr_operator.
3334 (space_identifier): Call insert_type_address_space.
3335 (ptype): Don't use const_or_volatile_or_space_identifier.
3336 (const_or_volatile_noopt): Call insert_type.
3337 (conversion_type_id, conversion_declarator): New productions.
3338 (operator): Use conversion_type_id.
3339
3340 2012-06-18 Doug Evans <dje@google.com>
3341
3342 * symtab.h (minimal_symbol): New member created_by_gdb.
3343 * elfread.c (elf_symtab_read): Set created_by_gdb for @plt minsym
3344 created by gdb.
3345 * symtab.c (lookup_symbol_in_objfile_from_linkage_name): New function.
3346 (search_symbols): Call it instead of lookup_symbol.
3347 Skip symbols created by gdb. Only scan minsyms if nfiles == 0.
3348
3349 * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_const_index.
3350 Adjust address for DW_OP_GNU_addr_index.
3351 * dwarf2expr.h (dwarf_expr_context): Update comment.
3352 * dwarf2loc.c (locexpr_describe_location_piece): New arg per_cu,
3353 all callers updated. Handle TLS vars described with
3354 DW_OP_GNU_const_index.
3355 (disassemble_dwarf_expression): Handle DW_OP_GNU_addr_index
3356 and DW_OP_GNU_const_index.
3357 * dwarf2read.c (decode_locdesc): Handle DW_OP_GNU_addr_index.
3358
3359 * block.c (find_block_in_blockvector): Make explicit the fact that we
3360 ignore GLOBAL_BLOCK.
3361
3362 2012-06-18 Tom Tromey <tromey@redhat.com>
3363
3364 * c-exp.y (operator): Remove trailing space after "delete" and
3365 "delete[]".
3366
3367 2012-06-18 Mark Kettenis <kettenis@gnu.org>
3368 Jan Kratochvil <jan.kratochvil@redhat.com>
3369
3370 Switch i386 and derived targets to ON_STACK.
3371 * amd64-dicos-tdep.c (amd64_dicos_push_dummy_code): Remove.
3372 (amd64_dicos_init_abi): Remove its installment.
3373 * dicos-tdep.c (dicos_init_abi): Remove the
3374 set_gdbarch_call_dummy_location call. Update the comment here.
3375 * i386-dicos-tdep.c (i386_dicos_push_dummy_code): Remove.
3376 (i386_dicos_init_abi): Remove its installment.
3377 * i386-tdep.c (i386_push_dummy_code): New function.
3378 (i386_gdbarch_init): Call set_gdbarch_call_dummy_location, install
3379 i386_push_dummy_code.
3380
3381 2012-06-18 Jan Kratochvil <jan.kratochvil@redhat.com>
3382
3383 Remove stale dummy frames.
3384 * breakpoint.c: Include dummy-frame.h.
3385 (longjmp_breakpoint_ops): New variable.
3386 (update_breakpoints_after_exec, breakpoint_init_inferior): Delete also
3387 bp_longjmp_call_dummy.
3388 (bpstat_what, bptype_string, print_one_breakpoint_location)
3389 (init_bp_location): Support bp_longjmp_call_dummy.
3390 (set_longjmp_breakpoint): Use longjmp_breakpoint_ops. Comment why.
3391 (set_longjmp_breakpoint_for_call_dummy)
3392 (check_longjmp_breakpoint_for_call_dummy, longjmp_bkpt_dtor): New
3393 functions.
3394 (initialize_breakpoint_ops): Initialize longjmp_breakpoint_ops.
3395 * breakpoint.h (enum bptype): New item bp_longjmp_call_dummy. Delete
3396 FIXME comment and extend the other comment for bp_call_dummy.
3397 (set_longjmp_breakpoint_for_call_dummy)
3398 (check_longjmp_breakpoint_for_call_dummy): New declarations.
3399 * dummy-frame.c: Include gdbthread.h.
3400 (pop_dummy_frame_bpt): New function.
3401 (pop_dummy_frame): Call pop_dummy_frame_bpt.
3402 (dummy_frame_discard): New function.
3403 (cleanup_dummy_frames): Update the comment about longjmps.
3404 * dummy-frame.h (dummy_frame_discard): New declaration.
3405 * gdbthread.h (struct thread_info): Extend initiating_frame comment.
3406 * infcall.c (call_function_by_hand): New variable longjmp_b. Call
3407 set_longjmp_breakpoint_for_call_dummy. Chain its breakpoints with BPT.
3408 * infrun.c (handle_inferior_event) <BPSTAT_WHAT_CLEAR_LONGJMP_RESUME>:
3409 Add case 4 comment. Call check_longjmp_breakpoint_for_call_dummy and
3410 keep_going if IS_LONGJMP and there is no other reason to stop.
3411
3412 2012-06-18 Greta Yorsh <Greta.Yorsh@arm.com>
3413
3414 * remote-sim.c (sim_command_completer): Initialize
3415 variable 'result'.
3416
3417 2012-06-17 Jan Kratochvil <jan.kratochvil@redhat.com>
3418
3419 * dwarf2expr.c (execute_stack_op): Support DW_OP_GNU_parameter_ref.
3420 * dwarf2loc.c (call_site_parameter_matches): Support
3421 CALL_SITE_PARAMETER_PARAM_OFFSET.
3422 (needs_dwarf_reg_entry_value): Push stub value.
3423 * dwarf2read.c (read_call_site_scope): New variable origin. Support
3424 CALL_SITE_PARAMETER_PARAM_OFFSET and its DW_AT_abstract_origin.
3425 * gdbtypes.h (enum call_site_parameter_kind): New item
3426 CALL_SITE_PARAMETER_PARAM_OFFSET.
3427 (struct call_site.parameter.u): New field param_offset.
3428
3429 2012-06-17 Jan Kratochvil <jan.kratochvil@redhat.com>
3430
3431 Code cleanup: Generalize call_site.parameter key.
3432 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_entry_value>: Remove
3433 variable dwarf_reg. New variable kind_u. Update parameters to
3434 push_dwarf_reg_entry_value.
3435 (ctx_no_push_dwarf_reg_entry_value): Update parameters.
3436 * dwarf2expr.h (enum call_site_parameter_kind)
3437 (union call_site_parameter_u): Forward declarations.
3438 (struct dwarf_expr_context_funcs): Update parameters and their
3439 description for push_dwarf_reg_entry_value.
3440 (ctx_no_push_dwarf_reg_entry_value): Update parameters.
3441 * dwarf2loc.c (call_site_parameter_matches): New function.
3442 (dwarf_expr_reg_to_entry_parameter): Update parameters and their
3443 description. Use call_site_parameter_matches.
3444 (dwarf_expr_push_dwarf_reg_entry_value, value_of_dwarf_reg_entry):
3445 Update parameters and their description.
3446 (value_of_dwarf_block_entry): Remove variables dwarf_reg and fb_offset.
3447 New variable kind_u. Adjust the caller for updated parameters.
3448 (needs_dwarf_reg_entry_value): Update parameters.
3449 * dwarf2read.c (read_call_site_scope): New variable loc. Use it
3450 instead of attr. Update for the changed fields of struct
3451 call_site_parameter.
3452 * gdbtypes.h: Include dwarf2expr.h.
3453 (enum call_site_parameter_kind): New.
3454 (struct call_site.parameter): New field kind. Wrap dwarf_reg and
3455 fb_offset into new union u.
3456
3457 2012-06-16 H.J. Lu <hongjiu.lu@intel.com>
3458
3459 * amd64-tdep.c (amd64_x32_analyze_stack_align): New function.
3460 (amd64_analyze_prologue): Call amd64_x32_analyze_stack_align
3461 for x32.
3462
3463 2012-06-16 H.J. Lu <hongjiu.lu@intel.com>
3464
3465 * amd64-linux-nat.c (compat_x32_clock_t): New.
3466 (compat_x32_siginfo_t): Likewise.
3467 (compat_x32_siginfo_from_siginfo): Likewise.
3468 (siginfo_from_compat_x32_siginfo): Likewise.
3469 (amd64_linux_siginfo_fixup): Call compat_x32_siginfo_from_siginfo
3470 and siginfo_from_compat_x32_siginfo for x32.
3471
3472 2012-06-15 Hui Zhu <hui_zhu@mentor.com>
3473
3474 * tracepoint.c (tfile_xfer_partial): Add a lseek.
3475
3476 2012-06-15 H.J. Lu <hongjiu.lu@intel.com>
3477
3478 * amd64-linux-nat.c (ps_get_thread_area): Check bits_per_word
3479 instead of gdbarch_ptr_bit.
3480 * amd64-nat.c (amd64_native_gregset_reg_offset): Likewise.
3481 (amd64_supply_native_gregset): Likewise.
3482 (amd64_collect_native_gregset): Likewise.
3483 * amd64-tdep.c (amd64_supply_fxsave): Likewise.
3484 (amd64_supply_xsave): Likewise.
3485 (amd64_collect_fxsave): Likewise.
3486 (amd64_collect_xsave): Likewise.
3487
3488 2012-06-15 H.J. Lu <hongjiu.lu@intel.com>
3489
3490 * amd64-linux-nat.c (AMD64_LINUX_X32_DS): New.
3491 (amd64_linux_read_description): Check DS segment register for
3492 x32 process.
3493
3494 2012-06-15 Tom Tromey <tromey@redhat.com>
3495
3496 * dwarf2read.c (dw2_find_symbol_file): Unconditionally use
3497 init_cutu_and_read_dies.
3498
3499 2012-06-15 Iain Sandoe <iain@codesourcery.com>
3500
3501 * MAINTAINERS (Write After Approval): Add myself to the list.
3502
3503 2012-06-15 Tom Tromey <tromey@redhat.com>
3504
3505 * valops.c (value_find_oload_method_list): Now static.
3506 * value.h (value_find_oload_method_list): Don't declare.
3507
3508 2012-06-15 Tom Tromey <tromey@redhat.com>
3509
3510 * valops.c (find_overload_match): Use value_ind.
3511
3512 2012-06-15 Maciej W. Rozycki <macro@codesourcery.com>
3513
3514 * infrun.c (handle_inferior_event): Correct indentation.
3515
3516 2012-06-14 Doug Evans <dje@google.com>
3517
3518 * dwarf2loc.c (debug_loc_kind): Add DEBUG_LOC_START_LENGTH.
3519 (DEBUG_LOC_START_END): Renamed from DEBUG_LOC_NORMAL.
3520 All uses updated.
3521 (decode_debug_loc_dwo_addresses): New arg "byte_order". All callers
3522 updated. Handle DEBUG_LOC_START_LENGTH.
3523 (dwarf2_find_location_expression): Handle DEBUG_LOC_START_LENGTH.
3524 (loclist_describe_location): Ditto.
3525
3526 2012-06-14 Maciej W. Rozycki <macro@codesourcery.com>
3527
3528 PR backtrace/13866
3529 * infrun.c (handle_inferior_event): Re-fetch frame and gdbarch
3530 after hiding inline functions.
3531
3532 2012-06-13 Joel Brobecker <brobecker@adacore.com>
3533
3534 * inf-ttrace.c (_initialize_hppa_hpux_nat): Rename into
3535 _initialize_inf_ttrace.
3536
3537 2012-06-13 Joel Brobecker <brobecker@adacore.com>
3538
3539 * ia64-hpux-nat.c (_initialize_ia64_hpux_nat): Renames
3540 _initialize_hppa_hpux_nat.
3541
3542 2012-06-13 Joel Brobecker <brobecker@adacore.com>
3543
3544 * remote-sim.c (sim_command_completer): Change type of return
3545 value to "VEC (char_ptr) *". Adjust implementation accordingly.
3546
3547 2012-06-13 Mark Kettenis <kettenis@gnu.org>
3548 Jan Kratochvil <jan.kratochvil@redhat.com>
3549
3550 PR tdep/14222
3551 * i386-tdep.c (i386_push_dummy_call): Unconditionally align the
3552 stack on a 16-byte boundary.
3553
3554 2012-06-13 Kaushik Srenevasan <kaushik@twitter.com>
3555
3556 * jit.c (finalize_symtab): Set function's return type to 'void' by
3557 default.
3558
3559 2012-06-13 Mark Kettenis <kettenis@gnu.org>
3560 H.J. Lu <hongjiu.lu@intel.com>
3561
3562 * amd64-linux-tdep.c (amd64_linux_init_abi_common): New function.
3563 Move bits common to both the classic LP64 and the new x32 ILP32
3564 ABI here.
3565 (amd64_linux_init_abi): Call amd64_linux_init_abi_common.
3566 (amd64_x32_linux_init_abi): New function.
3567 (_initialize_amd64_linux_tdep): Register osabi for bfd_mach_x64_32
3568 subtype.
3569
3570 * i386-tdep.h (i386_pseudo_register_name): New prototype.
3571 * i386-tdep.c (i386_pseudo_register_name): Make public.
3572 * amd64-tdep.h (amd64_x32_init_abi): New prototype.
3573 * amd64-tdep.c (amd64_dword_names): Add "eip".
3574 (amd64_x32_pseudo_register_type): New function
3575 (amd64_x32_init_abi): New function.
3576
3577 2012-06-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3578
3579 PR build/14003
3580 * inferior.h (struct inferior_suspend_state): Comment out.
3581 (struct inferior): Comment out the field suspend.
3582 * infrun.c (struct infcall_suspend_state): Comment out the field
3583 inferior_suspend.
3584 (save_infcall_suspend_state, restore_infcall_suspend_state): Comment
3585 out its assignment.
3586
3587 2012-06-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3588
3589 PR c++/14177 - Fix parsing TYPENAME:: in parentheses.
3590 * c-exp.y (classify_inner_name): Remove caller assumptions in the
3591 function comment. Return ERROR for unresolved cases. Implement
3592 returning proper NAME.
3593 (yylex): Accept also NAME from classify_inner_name.
3594 * cp-namespace.c (cp_lookup_nested_type): Rename to ...
3595 (cp_lookup_nested_symbol): ... here. Return any found symbol, not just
3596 LOC_TYPEDEF type.
3597 * cp-support.h (cp_lookup_nested_type): Update its declaration.
3598
3599 2012-06-13 Tom Tromey <tromey@redhat.com>
3600
3601 * breakpoint.c (condition_completer): New function.
3602 (_initialize_breakpoint): Use it.
3603 * value.c (complete_internalvar): New function.
3604 * value.h (complete_internalvar): Declare.
3605
3606 2012-06-13 Tom Tromey <tromey@redhat.com>
3607
3608 * ada-lang.c (ada_make_symbol_completion_list): Return a VEC.
3609 * breakpoint.c (catch_syscall_completer): Return a VEC.
3610 * cli/cli-cmds.c (complete_command): Update.
3611 * cli/cli-decode.c (complete_on_cmdlist): Return a VEC.
3612 (complete_on_enum): Likewise.
3613 * command.h: Include gdb_vecs.h.
3614 (completer_ftype): Change return type.
3615 (complete_on_cmdlist, complete_on_enum): Likewise.
3616 * completer.c (noop_completer, filename_completer)
3617 (location_completer): Return a VEC.
3618 (add_struct_fields): Remove 'nextp' argument. Change 'output'
3619 to a VEC.
3620 (expression_completer, complete_line_internal, complete_line)
3621 (command_completer): Return a VEC.
3622 (gdb_completion_word_break_characters, line_completion_function):
3623 Update.
3624 * completer.h: Include gdb_vecs.h.
3625 (complete_line, noop_completer, filename_completer)
3626 (expression_completer, location_completer, command_completer):
3627 Update.
3628 * f-lang.c (f_word_break_characters): Return a VEC.
3629 * interps.c (interpreter_completer): Return a VEC.
3630 * language.h (struct language_defn)
3631 <la_make_symbol_completion_list>: Return a VEC.
3632 * python/py-cmd.c (cmdpy_completer): Return a VEC.
3633 * symtab.c (free_completion_list): Take a VEC.
3634 (return_val_size, return_val_index): Remove.
3635 (return_val): Now a VEC.
3636 (completion_list_add_name): Update.
3637 (default_make_symbol_completion_list_break_on)
3638 (default_make_symbol_completion_list, make_symbol_completion_list)
3639 (make_symbol_completion_list_fn, make_file_symbol_completion_list):
3640 Return a VEC.
3641 (add_filename_to_list): Update.
3642 (struct add_partial_filename_data) <list_used, list_alloced>: Remove.
3643 <list>: Now a VEC.
3644 (maybe_add_partial_symtab_filename): Update.
3645 (make_source_files_completion_list): Return a VEC.
3646 * symtab.h (default_make_symbol_completion_list_break_on)
3647 (default_make_symbol_completion_list, make_symbol_completion_list)
3648 (make_symbol_completion_list_fn, make_file_symbol_completion_list)
3649 (make_source_files_completion_list): Update.
3650
3651 2012-06-13 Tom Tromey <tromey@redhat.com>
3652
3653 * breakpoint.c (add_catch_command): Use completer_ftype.
3654 * breakpoint.h: Include command.h.
3655 (add_catch_command): Use completer_ftype.
3656 * cli/cli-decode.c (set_cmd_completer): Use completer_ftype.
3657 * cli/cli-decode.h (struct cmd_list_element) <completer>:
3658 Use completer_ftype.
3659 * command.h (completer_ftype): New typedef.
3660 (set_cmd_completer): Use it.
3661 * python/py-cmd.c (struct cmdpy_completer) <completer>: Use
3662 completer_ftype.
3663
3664 2012-06-13 Pedro Alves <palves@redhat.com>
3665
3666 Partial revert of previous change.
3667
3668 * serial.c (scb_base): New global.
3669 (serial_for_fd): New.
3670 (serial_open, serial_fdopen_ops): Link new serial in open serials
3671 chain.
3672 (do_serial_close): Unlink serial from the open serials chain.
3673
3674 2012-06-12 Pedro Alves <palves@redhat.com>
3675
3676 * infrun.c (infrun_thread_stop_requested_callback): Don't switch
3677 threads here.
3678 (prepare_for_detach): No longer context switch here in non-stop
3679 mode.
3680 (fetch_inferior_event): Ditto.
3681 (handle_inferior_event) <STOP_QUIETLY || NO_STOP_QUIETLY>: Switch
3682 to the event thread before removing breakpoints. Switch to the
3683 event thread before inserting breakpoints and resuming.
3684 (handle_inferior_event) <TARGET_WAITKIND_SPURIOUS>: Switch to the
3685 event thread before resuming.
3686 (handle_inferior_event) <stepping_past_singlestep_breakpoint>:
3687 Switch to the event thread before removing breakpoints.
3688
3689 2012-06-12 Eli Zaretskii <eliz@gnu.org>
3690
3691 * infcmd.c (construct_inferior_arguments) [__MINGW32__]: Quote
3692 special characters correctly for the Windows shells. See
3693 http://sourceware.org/ml/gdb/2012-06/msg00047.html for the bug
3694 report.
3695 [!__MINGW32__]: Remove extra double quote character from special
3696 characters.
3697
3698 2012-06-11 Stan Shebs <stan@codesourcery.com>
3699
3700 * ui-out.h: Remove #if 0 declarations.
3701 * ui-out.c: Remove #if 0 functions.
3702
3703 2012-06-11 Pedro Alves <palves@redhat.com>
3704
3705 * ser-base.c (run_async_handler_and_reschedule): New.
3706 (fd_event, push_event): Use it.
3707 * serial.c (serial_open, serial_fdopen_ops): Set the initial
3708 reference count to 1.
3709 (do_serial_close): Set the bufp field to NULL. Use serial_unref
3710 instead of xfree.
3711 (serial_is_open, serial_ref, serial_unref): New.
3712 * serial.h (serial_open): Adjust comment.
3713 (serial_is_open): Declare.
3714 (serial_close): Adjust comment.
3715 (serial_ref, serial_unref) Declare.
3716 (struct serial): New field 'refcnt'.
3717
3718 2012-06-11 Pedro Alves <palves@redhat.com>
3719
3720 Remove #if 0'd "connect" command, and unnecessary associated
3721 refcounting and serial reuse bits.
3722
3723 * serial.h (struct serial): Remove fields 'next' and 'refcnt'.
3724 * serial.c (last_serial_opened): Delete.
3725 (scb_base): Delete.
3726 (serial_open): Adjust.
3727 (serial_for_fd): Delete.
3728 (serial_fdopen_ops, do_serial_close): Adjust.
3729 (serial_fdopen_ops): Adjust.
3730
3731 2012-06-11 Pedro Alves <palves@redhat.com>
3732
3733 * serial.c (do_serial_close): Remove early return when SCB is
3734 null.
3735
3736 2012-06-11 Tom Tromey <tromey@redhat.com>
3737
3738 * dwarf2read.c (dw2_get_file_names_reader): Ignore partial units.
3739
3740 2012-06-11 Jan Kratochvil <jan.kratochvil@redhat.com>
3741
3742 Fix regression by the "ambiguous linespec" series.
3743 * breakpoint.c (parse_breakpoint_sals): New variable cursal. Use
3744 get_last_displayed_symtab and get_last_displayed_line and depending
3745 on CURSAL.
3746
3747 2012-06-11 Tom Tromey <tromey@redhat.com>
3748
3749 * dwarf2read.c (dw2_get_primary_filename_reader): New function.
3750 (dw2_find_symbol_file): Use it.
3751
3752 2012-06-11 Michael Eager <eager@eagercon.com>
3753
3754 * mips-linux-tdep.c (mips_gdb_signal_from_target): New
3755 * mips-linux-tdep.h (mips_signals): New
3756
3757 2012-06-11 Tom Tromey <tromey@redhat.com>
3758
3759 * infrun.c (handle_inferior_event)
3760 <BPSTAT_WHAT_SET_LONGJMP_RESUME>: Don't delete the step-resume
3761 breakpoint.
3762 <BPSTAT_WHAT_CLEAR_LONGJMP_RESUME>: Remove longjmp logic; use
3763 exception logic in all cases. Update comments.
3764 (insert_longjmp_resume_breakpoint): Set the exception resume
3765 breakpoint.
3766
3767 2012-06-11 Maciej W. Rozycki <macro@codesourcery.com>
3768
3769 * mips-tdep.c (mips_push_dummy_code): Handle microMIPS code.
3770
3771 2012-06-09 Siva Chandra Reddy <sivachandra@google.com>
3772
3773 * valarith.c (binop_types_user_defined_p): Fix a typo.
3774
3775 2012-06-08 Yao Qi <yao@codesourcery.com>
3776 Chung-Lin Tang <cltang@codesourcery.com>
3777
3778 * arch-utils.c (default_return_in_first_hidden_param_p): New.
3779 * arch-utils.h: Declare.
3780 * gdbarch.sh: Add return_in_first_hidden_param_p.
3781 * gdbarch.c, gdbarch.h: Regenerated.
3782 * infcall.c (call_function_by_hand): Call
3783 gdbarch_return_in_first_hidden_param_p instead of
3784 language_pass_by_reference.
3785
3786 * m68k-tdep.c (m68k_return_in_first_hidden_param_p): New.
3787 (m68k_gdbarch_init): Install m68k_return_in_first_hidden_param_p.
3788 * sh-tdep.c (sh_return_in_first_hidden_param_p): New.
3789 (sh_gdbarch_init): Install sh_return_in_first_hidden_param_p.
3790 * tic6x-tdep.c (tic6x_push_dummy_call): Remove local variable
3791 `cplus_return_struct_by_reference'.
3792 (tic6x_return_value): Handle language cplusplus.
3793 (tic6x_return_in_first_hidden_param_p): New.
3794 (tic6x_gdbarch_init): Install tic6x_return_in_first_hidden_param_p.
3795
3796 2012-06-07 Doug Evans <dje@google.com>
3797
3798 * dwarf2read.c (dwarf2_cu): Add comment.
3799
3800 2012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
3801
3802 * mips-tdep.c (mips_pseudo_register_type): Remove tdep local
3803 variable.
3804 (mips_eabi_push_dummy_call): Likewise.
3805 (mips_n32n64_push_dummy_call): Likewise.
3806 (mips_o32_push_dummy_call): Likewise.
3807 (mips_o64_push_dummy_call): Likewise.
3808
3809 2012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
3810
3811 * mips-tdep.c (mips_convert_register_p): Correct coding style.
3812
3813 2012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
3814
3815 * mips-tdep.c (mips_pseudo_register_type): Use
3816 mips_float_register_p.
3817
3818 2012-06-06 Pedro Alves <palves@redhat.com>
3819
3820 * infrun.c (handle_inferior_event): Remove calls to
3821 reinit_frame_cache that follow a context_switch call.
3822
3823 2012-06-06 Pedro Alves <palves@redhat.com>
3824
3825 * infrun.c (handle_inferior_event) <deferred_step_ptid>: Use
3826 context_switch and remove stale comment.
3827
3828 2012-06-06 Pedro Alves <palves@redhat.com>
3829
3830 * infrun.c (struct execution_control_state): Remove
3831 `new_thread_event' field.
3832 (handle_inferior_event): Simplify new threads handling; don't
3833 resume the inferior if we find a new thread.
3834
3835 2012-06-06 Thomas Schwinge <thomas@codesourcery.com>
3836
3837 * NEWS: Document the deprecation of SH's 'regs' command.
3838 * inferior.h (all_registers_info): Add function declaration.
3839 * sh-tdep.c (sh_show_regs): Remove variable.
3840 (sh_generic_show_regs, sh3_show_regs, sh2e_show_regs, sh2a_show_regs)
3841 (sh2a_nofpu_show_regs, sh3e_show_regs, sh3_dsp_show_regs)
3842 (sh4_show_regs, sh4_nofpu_show_regs, sh_dsp_show_regs)
3843 (sh_show_regs_command): Remove functions.
3844 (sh_gdbarch_init): Don't set sh_show_regs.
3845 (_initialize_sh_tdep): Make the 'regs' command an deprecated alias to
3846 'info all-registers'.
3847 * sh64-tdep.c (sh64_show_media_regs, sh64_show_compact_regs)
3848 (sh64_show_regs): Remove functions.
3849 * sh64-tdep.h (sh64_show_regs): Remove function declaration.
3850
3851 2012-06-06 Jan Kratochvil <jan.kratochvil@redhat.com>
3852
3853 * configure.ac: Move development=true below AC_INIT.
3854 * configure: Regenerate.
3855
3856 2012-06-05 Stan Shebs <stan@codesourcery.com>
3857
3858 * mi/mi-interp.c (mi_interpreter_init): Set raw_stdout from
3859 gdb_stdout.
3860
3861 2012-06-05 Siddhesh Poyarekar <siddhesh@redhat.com>
3862
3863 * corefile.c (read_memory, read_stack, write_memory): Accept LEN
3864 argument as ssize_t.
3865 * gdbcore.h (read_memory, read_stack, write_memory): Likewise.
3866 * remote.c (remote_write_bytes_aux, remote_write_bytes): Likewise.
3867 * target.c (target_read_stack, target_write_memory)
3868 (target_write_raw_memory): Likewise.
3869 * target.h (target_read_stack, target_write_memory)
3870 (target_write_raw_memory): Likewise.
3871
3872 2012-06-05 Jan Kratochvil <jan.kratochvil@redhat.com>
3873
3874 * symfile-mem.c: Change gdb_static_assert to ssize_t.
3875 (target_read_memory_bfd): Cast gdb_assert LEN to ssize_t.
3876 * target.c (target_read_memory): Change LEN to ssize_t.
3877 * target.h (target_read_memory): Change LEN to ssize_t.
3878
3879 2012-06-05 Pedro Alves <palves@redhat.com>
3880
3881 PR backtrace/13866
3882
3883 * breakpoint.c (until_break_command): Only fetch the selected
3884 frame after decode_line_1.
3885
3886 2012-06-05 Joakim Tjernlund <Joakim.Tjernlund@transmode.se>
3887
3888 * solib-svr4.c (enable_break): Don't fallback to setting the solib
3889 event breakpoint at _start, __start or main if a program
3890 interpreter is not found.
3891
3892 2012-06-05 Joel Brobecker <brobecker@adacore.com>
3893
3894 * windows-tdep.h (windows_iterate_over_objfiles_in_search_order):
3895 Add declaration.
3896 * windows-tdep.c: #include "objfiles.h".
3897 (windows_iterate_over_objfiles_in_search_order): New function.
3898 * amd64-windows-tdep.c (amd64_windows_init_abi): Set
3899 iterate_over_objfiles_in_search_order gdbarch method to
3900 windows_iterate_over_objfiles_in_search_order.
3901 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Likewise.
3902
3903 2012-06-05 Joel Brobecker <brobecker@adacore.com>
3904
3905 * gdbarch.sh: Add generation of
3906 "iterate_over_objfiles_in_search_order_cb_ftype" typedef in
3907 gdbarch.h. Add include of "objfiles.h" in gdbarch.c.
3908 (iterate_over_objfiles_in_search_order): New gdbarch method.
3909 * gdbarch.h, gdbarch.c: Regenerate.
3910 * objfiles.h (default_iterate_over_objfiles_in_search_order):
3911 Add declaration.
3912 * objfiles.c (default_iterate_over_objfiles_in_search_order):
3913 New function.
3914 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
3915 out of lookup_symbol_aux_symtabs.
3916 (lookup_symbol_aux_symtabs): Replace extracted-out code by
3917 call to lookup_symbol_aux_objfile.
3918 (struct global_sym_lookup_data): New type.
3919 (lookup_symbol_global_iterator_cb): New function.
3920 (lookup_symbol_global): Search for symbol using
3921 gdbarch_iterate_over_objfiles_in_search_order and
3922 lookup_symbol_global_iterator_cb.
3923 * findvar.c (struct minsym_lookup_data): New type.
3924 (minsym_lookup_iterator_cb): New function.
3925 (default_read_var_value) [case LOC_UNRESOLVED]: Resolve the
3926 symbol's address via gdbarch_iterate_over_objfiles_in_search_order
3927 and minsym_lookup_iterator_cb.
3928
3929 2012-06-05 Joel Brobecker <brobecker@adacore.com>
3930
3931 Revert the following patch:
3932 * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
3933 try locating the symbol in the symbol's own objfile first, before
3934 extending the search to all objfiles.
3935 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
3936 out of lookup_symbol_aux_symtabs.
3937 (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
3938 Replace extracted-out code by call to lookup_symbol_aux_objfile.
3939 Do not search EXCLUDE_OBJFILE.
3940 (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
3941 (lookup_symbol_global): Search for matches in the block's objfile
3942 first, before searching all other objfiles.
3943
3944 2012-06-05 Joel Brobecker <brobecker@adacore.com>
3945
3946 * breakpoint.c (find_condition_and_thread): Stop parsing
3947 as soon as the first invalid keyword is found.
3948
3949 2012-06-05 Joel Brobecker <brobecker@adacore.com>
3950
3951 * copyright.py (EXCLUDE_LIST): Add 'gdb/CONTRIBUTE' to list.
3952
3953 2012-06-05 Joel Brobecker <brobecker@adacore.com>
3954
3955 * config/djgpp/djcheck.sh: Add copyright header.
3956
3957 2012-06-05 Joel Brobecker <brobecker@adacore.com>
3958
3959 * copyright.py (update_files, main): Fix path to update-copyright
3960 script.
3961
3962 2012-06-05 Joel Brobecker <brobecker@adacore.com>
3963
3964 * copyright.py (MULTIPLE_COPYRIGHT_HEADERS): New constant.
3965 (main): Add MULTIPLE_COPYRIGHT_HEADERS to the list of files
3966 for which a reminder to update by hand is printed.
3967
3968 2012-06-04 Doug Evans <dje@google.com>
3969
3970 * buildsym.c (make_blockvector): Add comment.
3971
3972 2012-06-04 Pedro Alves <palves@redhat.com>
3973
3974 * arch-utils.c (default_gdb_signal_from_target): Delete.
3975 * arch-utils.h (default_gdb_signal_from_target): Delete.
3976 * corelow.c (core_open) <signal mapping>: Extended comment. Check
3977 gdbarch_gdb_signal_from_target_p.
3978 * gdbarch.sh (gdb_signal_from_target): Make it an M method (with
3979 predicate).
3980 * gdbarch.h: Regenerate.
3981 * gdbarch.c: Regenerate.
3982
3983 2012-06-04 Pedro Alves <palves@redhat.com>
3984
3985 * gdbarch.sh (gdb_signal_from_target): Mention that the
3986 implementation of the method must be host independent.
3987 * gdbarch.h: Regenerate.
3988
3989 2012-06-04 Jan Kratochvil <jan.kratochvil@redhat.com>
3990
3991 * symfile-mem.c: 3 new gdb_static_assert for target_read_memory_bfd
3992 parameters.
3993 (target_read_memory_bfd): New function.
3994 (symbol_file_add_from_memory): Use it.
3995
3996 2012-06-03 Doug Evans <dje@google.com>
3997
3998 * symtab.c (lookup_global_symbol_from_objfile): Only scan blockvector
3999 of primary symtab.
4000 (basic_lookup_transparent_type): Ditto.
4001
4002 * objfiles.h (ALL_OBJFILE_PRIMARY_SYMTABS): New macro.
4003 (ALL_PRIMARY_SYMTABS): Use it.
4004 (ALL_PSPACE_PRIMARY_SYMTABS): Ditto.
4005 * dwarf2read.c (dw2_find_symbol_file): Ditto.
4006 * linespec.c (iterate_over_all_matching_symtabs): Ditto.
4007 * symtab.c (lookup_symbol_aux_objfile): Ditto.
4008 (basic_lookup_transparent_type): Ditto.
4009
4010 2012-06-02 Sergio Durigan Junior <sergiodj@redhat.com>
4011
4012 * symtab.c (symbol_demangled_name): New variable `dem_name'. Use
4013 it to optimize resolution of demangled name.
4014
4015 2012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4016
4017 * configure.ac (development): Define new variable.
4018 Call AC_CHECK_LIB for mcheck if $development.
4019 (ERROR_ON_WARNING): Enable it by default only if $development.
4020 * config.in: Regenerate.
4021 * configure: Regenerate.
4022
4023 2012-06-01 Siddhesh Poyarekar <siddhesh@redhat.com>
4024
4025 * target.c (target_read_memory): Make LEN argument as size_t.
4026 * target.h (target_read_memory): Likewise.
4027
4028 2012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4029
4030 * tilegx-linux-tdep.c (tilegx_l): Use ULL for 64-bit values.
4031
4032 2012-05-31 Edjunior Machado <emachado@linux.vnet.ibm.com>
4033
4034 * ppc-linux-nat.c (have_ptrace_booke_interface): Disable ptrace
4035 BookE interface for PowerPC server processors if not available
4036 in the Linux Kernel.
4037
4038 2012-05-31 Keith Seitz <keiths@redhat.com>
4039
4040 * linespec.c (decode_objc): Add cleanup to free
4041 INFO.FILE_SYMTABS.
4042 (find_linespec_symbols): Add cleanup to free CLASSES.
4043 * symfile.c (find_separate_debug_file_by_debuglink): Add
4044 cleanup to free DEBUGLINK.
4045 * ui-out.c (clear_header_list): No need to check if
4046 HEADER_NEXT.COLHDR is NULL.
4047 Free HEADER_NEXT.COL_NAME.
4048
4049 2012-05-31 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
4050
4051 * ada-lang.c (standard_lookup): Prevent uninitialized variable
4052 warning.
4053
4054 2012-05-30 Jeff Kenton <jkenton@tilera.com>
4055
4056 * configure.host (gdb_host_cpu): Handle tilegx*.
4057 (gdb_host): Handle tilegx-*-linux*.
4058 * tilegx-linux-nat.c: New file.
4059 * config/tilegx/linux.mh: New file.
4060
4061 2012-05-30 Jeff Kenton <jkenton@tilera.com>
4062
4063 * Makefile.in (ALL_TARGET_OBJS): Add tilegx-tdep.o and
4064 tilegx-linux-tdep.o.
4065 (ALLDEPFILES): Add tilegx-linux-nat.c, tilegx-tdep.c and
4066 tilegx-linux-tdep.c.
4067 * configure.tgt: Handle tilegx-*-linux*.
4068 * tilegx-tdep.h: New file.
4069 * tilegx-tdep.c: New file.
4070 * tilegx-linux-tdep.c: New file.
4071 * regformats/reg-tilegx.dat: New file.
4072
4073 2012-05-30 Edjunior Machado <emachado@linux.vnet.ibm.com>
4074
4075 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): fix
4076 accounting of hw watchpoints on ppc.
4077
4078 2012-05-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
4079
4080 * source.c (openp): Expand tilde in path entries.
4081
4082 2012-05-29 Doug Evans <dje@google.com>
4083
4084 * buildsym.c (block_compar): Fix comment.
4085 (end_symtab): Fix and clarify some comments.
4086
4087 * stabsread.h (cleanup_undefined_stabs_types): Renamed from
4088 cleanup_undefined_types.
4089 * stabsread.c (cleanup_undefined_stabs_types): Ditto.
4090 All callers updated.
4091
4092 2012-05-29 Tom Tromey <tromey@redhat.com>
4093
4094 * symfile.c (symfile_bfd_open): Don't close desc if bfd_fopen
4095 fails.
4096 * solib.c (solib_bfd_fopen): Don't close fd if bfd_fopen fails.
4097 * exec.c (exec_file_attach): Don't close scratch_chan if bfd_fopen
4098 fails.
4099 * dwarf2read.c (try_open_dwo_file): Don't close fd if bfd_fopen
4100 fails.
4101
4102 2012-05-29 Tristan Gingold <gingold@adacore.com>
4103
4104 * solib-darwin.c (dyld_all_image_addr, dyld_all_image): Move into...
4105 (struct darwin_info): ... New struct.
4106 (solib_darwin_pspace_data): New variable.
4107 (darwin_pspace_data_cleanup): New function.
4108 (get_darwin_info): Likewise.
4109 (darwin_dyld_version_ok, darwin_load_image_infos)
4110 (darwin_solib_get_all_image_info_addr_at_init)
4111 (darwin_solib_read_all_image_info_addr): Add info argument.
4112 Adjust code.
4113 (darwin_current_sos): Use per pspace structure.
4114 (darwin_solib_create_inferior_hook): Likewise.
4115 (darwin_clear_solib): Likewise.
4116 (_initialize_darwin_solib): Initialize solib_darwin_pspace_data.
4117
4118 2012-05-28 Pedro Alves <palves@redhat.com>
4119
4120 * infrun.c (wait_for_inferior): Move ecss and ecs locals to the
4121 block that uses them. Clear ecss before handling each event.
4122
4123 2012-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4124
4125 * solib-svr4.c (svr4_current_sos): New comment on
4126 svr4_current_sos_via_xfer_libraries fall back.
4127
4128 2012-05-24 Jan Kratochvil <jan.kratochvil@redhat.com>
4129
4130 * psymtab.c (lookup_symbol_aux_psymtabs): New variable stab_best. Use
4131 it as a fallback for TYPE_IS_OPAQUE.
4132 * symfile.h (struct quick_symbol_functions): Mention TYPE_OPAQUE
4133 symbols for lookup_symbol.
4134
4135 2012-05-24 John Steele Scott <toojays@toojays.net>
4136
4137 PR symtab/13277: Resolving opaque structures in ICC generated binaries.
4138 * dwarf2read.c (struct dwarf2_cu) <producer_is_icc>: New field.
4139 (producer_is_gxx_lt_4_6): Move the checking and caching to...
4140 (check_producer): ... this new function, which also checks for ICC
4141 and caches the result.
4142 (producer_is_icc): New function.
4143 (read_structure_type): Don't set TYPE_STUB_SUPPORTED if the
4144 producer was ICC.
4145
4146 2012-05-24 Pedro Alves <palves@redhat.com>
4147
4148 PR gdb/7205
4149
4150 * arch-utils.c (default_gdb_signal_to_host): Rename to ...
4151 (default_gdb_signal_to_target): ... this. Add comment.
4152 (default_gdb_signal_from_host): Rename to ...
4153 (default_gdb_signal_from_target): ... this. Add comment.
4154 * arch-utils.h (default_gdb_signal_to_host): Rename to ...
4155 (default_gdb_signal_to_target): ... this.
4156 (default_gdb_signal_from_host): Rename to ...
4157 (default_gdb_signal_from_target): ... this.
4158 * corelow.c (core_open): Adjust to naming change. Replace comment.
4159 * gdbarch.sh (gdb_signal_from_host): Rename to ...
4160 (gdb_signal_from_target): ... this. Adjust to
4161 default_gdb_signal_from_host naming change. Extend comment.
4162 (gdb_signal_to_host): Rename to ...
4163 (gdb_signal_to_target): ... this. Adjust to
4164 default_gdb_signal_to_host naming change.
4165 * gdbarch.h, gdbarch.c: Renegerate.
4166
4167 2012-05-24 Pedro Alves <palves@redhat.com>
4168
4169 PR gdb/7205
4170
4171 Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
4172
4173 2012-05-24 Pedro Alves <palves@redhat.com>
4174
4175 PR gdb/7205
4176
4177 Replace target_signal with gdb_signal throughout.
4178
4179 2012-05-24 Pedro Alves <palves@redhat.com>
4180
4181 PR tui/14159
4182
4183 * tui/tui-hooks.c (tui_query_hook): Pre-compute the question
4184 string, instead of reusing the va_list argument.
4185
4186 2012-05-24 Tom Tromey <tromey@redhat.com>
4187
4188 * cp-support.h (cp_finalize_namespace, cp_initialize_namespace):
4189 Remove.
4190
4191 2012-05-23 Doug Evans <dje@google.com>
4192
4193 * symtab.c (search_symbols): Formatting fixes.
4194 (print_symbol_info): Formatting fixes.
4195
4196 * dwarf2-frame.c (execute_cfa_program): Update to handle long long ->
4197 int64_t change to leb128 API.
4198 (read_encoded_value, decode_frame_entry_1): Ditto.
4199 * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Ditto.
4200 (dwarf_block_to_dwarf_reg, dwarf_block_to_dwarf_reg_deref): Ditto.
4201 (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
4202 (execute_stack_op): Ditto.
4203 * dwarf2expr.h (gdb_read_uleb128, gdb_read_sleb128): Ditto.
4204 (safe_read_uleb128, safe_read_sleb128): Ditto.
4205 * dwarf2loc.c (decode_debug_loc_dwo_addresses): Ditto.
4206 (dwarf2_compile_expr_to_ax): Ditto.
4207 (locexpr_describe_location_piece): Ditto.
4208 (disassemble_dwarf_expression): Ditto.
4209 (locexpr_describe_location_1): Ditto.
4210
4211 2012-05-23 Stan Shebs <stan@codesourcery.com>
4212 Kwok Cheung Yeung <kcy@codesourcery.com>
4213
4214 * Makefile.in (SUBDIR_MI_OBS): Add mi-cmd-info.o.
4215 (SUBDIR_MI_SRCS): Add mi-cmd-info.c.
4216 (mi-cmd-info.o): New rule.
4217 * osdata.h (info_osdata_command): New declaration.
4218 * osdata.c (info_osdata_command): Change to non-static.
4219 * mi/mi-cmds.h (mi_cmd_info_os): New declaration.
4220 * mi/mi-cmds.c (mi_cmds): Add -info-os MI command.
4221 * mi/mi-cmd-info.c: New file.
4222
4223 2012-05-23 Doug Evans <dje@google.com>
4224
4225 * symtab.c (search_symbols): Pass NULL for file_matcher to
4226 expand_symtabs_matching if there are no files to match.
4227
4228 * gdbtypes.c (lookup_typename): Simplify.
4229
4230 2012-05-23 Pedro Alves <palves@redhat.com>
4231
4232 * arch-utils.h (default_target_signal_to_host): Delete.
4233 * arch-utils.c (default_target_signal_to_host): Delete.
4234 * gdbarch.sh (target_signal_to_host): Remove.
4235 * gdbarch.h, gdbarch.c: Regenerate.
4236
4237 2012-05-22 Doug Evans <dje@google.com>
4238
4239 * dwarf2-frame.c (struct dwarf2_cie): Make initial_instructions, end
4240 "const gdb_byte *".
4241 (struct dwarf2_fde): Make instructions, end "const gdb_byte *".
4242 (execute_cfa_program): Update to match API of leb128 functions.
4243 (read_1_byte, read_4_bytes, read_8_bytes): Make buf parameter
4244 "const gdb_byte *".
4245 (read_unsigned_leb128, read_signed_leb128): Delete.
4246 (read_initial_length): Change type of buf argument to
4247 "const gdb_byte *".
4248 (read_encoded_value): Update to match API of leb128 functions.
4249 (decode_frame_entry): Change result to "const gdb_byte *", and
4250 similarly for "start" parameter.
4251 (decode_frame_entry_1): Ditto. Use new leb128 reader functions.
4252 (dwarf2_build_frame_info): Change local frame_ptr to
4253 "const gdb_byte *".
4254 * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Replaces
4255 read_uleb128, read_sleb128. All callers updated.
4256 (safe_skip_leb128): New function.
4257 (dwarf_block_to_dwarf_reg): Update to match API of leb128 functions.
4258 Call gdb_read_uleb128, gdb_skip_leb128 instead of read_uleb128.
4259 (dwarf_block_to_dwarf_reg_deref): Update to match API of leb128
4260 functions. Call gdb_read_uleb128, gdb_read_sleb128 instead of
4261 read_uleb128, read_sleb128.
4262 (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
4263 (execute_stack_op): Update to match API of leb128 functions.
4264 * dwarf2expr.h: #include "leb128.h".
4265 (read_uleb128, read_sleb128): Delete.
4266 (gdb_read_uleb128, gdb_read_sleb128, gdb_skip_leb128): New functions.
4267 (safe_read_uleb128, safe_read_sleb128, safe_skip_leb128): Declare.
4268 * dwarf2loc.c (debug_loc_kind): New enum.
4269 (decode_debug_loc_addresses): New function.
4270 (decode_debug_loc_dwo_addresses): New function.
4271 (dwarf2_find_location_expression): Rewrite.
4272 (dwarf2_compile_expr_to_ax): Update to match API of leb128 functions.
4273 (locexpr_describe_location_piece): Ditto.
4274 (disassemble_dwarf_expression): Ditto.
4275 (locexpr_describe_location_1): Ditto.
4276 (loclist_describe_location): Rewrite.
4277 * dwarf2loc.h (dwarf2_loclist_baton): New member "from_dwo".
4278 * dwarf2read.c (die_reader_specs): New member "buffer_end".
4279 (dwarf2_section_buffer_overflow_complaint): Renamed from
4280 dwarf2_macros_too_long_complaint. All callers updated.
4281 (skip_leb128): Delete.
4282 (init_cu_die_reader): Initialize reader->buffer_end.
4283 (skip_one_die): Replace call to skip_leb128 with safe_skip_leb128.
4284 (skip_form_bytes): New arg buffer_end. All callers updated.
4285 Replace call to skip_leb128 with gdb_skip_leb128.
4286 (skip_unknown_opcode): New arg mac_end. All callers updated.
4287 (fill_in_loclist_baton): Initialize baton->from_dwo.
4288
4289 2012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
4290
4291 * mips-linux-nat.c (mips_linux_read_description): Use a more
4292 verbose error message.
4293
4294 2012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
4295
4296 * NEWS: Add MIPS/Linux DSP support.
4297 * mips-linux-tdep.c: Document post-2.6.12 o32 sigcontext layout.
4298 (SIGCONTEXT_DSPCTL): New macro.
4299 (SIGCONTEXT_HI1, SIGCONTEXT_LO1): Likewise.
4300 (SIGCONTEXT_HI2, SIGCONTEXT_LO2): Likewise.
4301 (SIGCONTEXT_HI3, SIGCONTEXT_LO3): Likewise.
4302 (N64_SIGCONTEXT_HI1, N64_SIGCONTEXT_HI2): Likewise.
4303 (N64_SIGCONTEXT_HI3): Likewise.
4304 (N64_SIGCONTEXT_LO1, N64_SIGCONTEXT_LO2): Likewise.
4305 (N64_SIGCONTEXT_LO3): Likewise.
4306 (N64_SIGCONTEXT_DSPCTL): Likewise.
4307 (N64_SIGCONTEXT_FPCSR): Clarify definition.
4308 (mips_linux_o32_sigframe_init): Handle DSP registers.
4309 (mips_linux_n32n64_sigframe_init): Likewise.
4310
4311 2012-05-22 Pierre Muller <muller@ics.u-strasbg.fr>
4312
4313 * common/buffer.c (buffer_grow): ARI fix: Remove unneeded
4314 call to abort.
4315
4316 2012-05-22 Pedro Alves <palves@redhat.com>
4317
4318 * target.h (store_waitstatus): Move declaration ...
4319 * inf-child.h (store_waitstatus): ... here.
4320 * target.c: Move inclusion of gdb_wait.h, and ...
4321 (store_waitstatus): ... this ...
4322 * inf-child.c: ... here.
4323 * linux-nat.c: Include inf-child.h.
4324 * rs6000-nat.c: Include inf-child.h.
4325 * spu-linux-nat.c: Include inf-child.h.
4326
4327 2012-05-22 Pierre Muller <muller@ics.u-strasbg.fr>
4328
4329 * tracepoint.c (start_tracing): Add missing i18n markup.
4330 (stop_tracing, set_trace_user): Ditto.
4331 (set_trace_notes, set_trace_stop_notes): Ditto.
4332
4333 2012-05-21 Tom Tromey <tromey@redhat.com>
4334
4335 PR c++/7173:
4336 * gnu-v3-abi.c (gnuv3_baseclass_offset): Return early for Java
4337 types.
4338 * value.h (value_cast_pointers): Update.
4339 * valops.c (value_cast_pointers): Add 'subclass_check' argument.
4340 (value_cast): Update.
4341 (update_search_result): New function.
4342 (do_search_struct_field): New, from search_struct_field. Check
4343 for ambiguous results.
4344 (search_struct_field): Rewrite.
4345 * infcall.c (value_arg_coerce): Update.
4346 * eval.c (evaluate_subexp_standard) <STRUCTOP_MEMBER>: Use
4347 value_cast_pointers.
4348 * ada-lang.c (ada_convert_actual): Update.
4349
4350 2012-05-21 Tom Tromey <tromey@redhat.com>
4351
4352 * macroexp.c (macro_stringify): Terminate the string.
4353
4354 2012-05-20 Jan Kratochvil <jan.kratochvil@redhat.com>
4355
4356 * NEWS (--with-auto-load-dir): Prepend $debugdir to the default path.
4357 Describe it.
4358 * auto-load.c (auto_load_expand_dir_vars): New function.
4359 (auto_load_safe_path_vec_update): Use it, remove the
4360 substitute_path_component call thanks to it.
4361 (auto_load_objfile_script): Remove the debug_file_directory processing.
4362 Use auto_load_expand_dir_vars, remove the substitute_path_component
4363 call thanks to it.
4364 * configure: Regenerate.
4365 * configure.ac (--with-auto-load-dir): Prepend $debugdir to the default
4366 path. Escape $ also for $debugdir.
4367 (--with_auto_load_safe_path): Escape $ also for $debugdir.
4368 * utils.c (substitute_path_component): Accept also DIRNAME_SEPARATOR.
4369
4370 2012-05-20 Doug Evans <dje@google.com>
4371
4372 * dwarf2read.c (recursively_find_pc_sect_symtab): Initialize "s"
4373 before use. Check for symtab->includes == NULL before scanning it.
4374
4375 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
4376
4377 * mips-tdep.c (mips_reg3_to_reg): Optimize storage.
4378
4379 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
4380
4381 * NEWS: Add microMIPS support and "set mips compression",
4382 "show mips compression" commands.
4383 * mips-tdep.h (mips_isa): New enum.
4384 (gdbarch_tdep): Add mips_isa.
4385 (mips_pc_is_mips16): Update prototype.
4386 (mips_pc_is_mips, mips_pc_is_micromips): New prototypes.
4387 * mips-tdep.c (mips_compression_mips16): New variable.
4388 (mips_compression_micromips): Likewise.
4389 (mips_compression_strings): Likewise.
4390 (mips_compression_string): Likewise.
4391 (is_mips16_isa, is_micromips_isa): New functions.
4392 (is_mips16_addr): Rename to...
4393 (is_compact_addr): ... this.
4394 (unmake_mips16_addr): Likewise to...
4395 (unmake_compact_addr): ... this.
4396 (make_mips16_addr): Likewise to...
4397 (make_compact_addr): ... this.
4398 (is_mips_addr, is_mips16_addr, is_micromips_addr): New
4399 functions.
4400 (mips_elf_make_msymbol_special): Handle microMIPS code.
4401 (msymbol_is_special): Rename to...
4402 (msymbol_is_mips16): ... this.
4403 (mips_make_symbol_special, mips_pc_is_mips16): Update
4404 accordingly.
4405 (msymbol_is_mips, msymbol_is_micromips): New functions.
4406 (mips16_to_32_reg): Rename to...
4407 (mips_reg3_to_reg): ... this.
4408 (mips_pc_is_mips, mips_pc_is_micromips): New functions.
4409 (mips_pc_isa): Likewise.
4410 (mips_read_pc, mips_unwind_pc, mips_write_pc): Handle microMIPS
4411 code.
4412 (mips_fetch_instruction): Pass return status instead of printing
4413 an error message if requested. Handle microMIPS code. Bail out
4414 on an invalid ISA.
4415 (micromips_op): New macro.
4416 (b0s4_imm, b0s5_imm, b0s5_reg, b0s7_imm, b0s10_imm): Likewise.
4417 (b1s9_imm, b2s3_cc, b4s2_regl, b5s5_op, b5s5_reg): Likewise.
4418 (b6s4_op, b7s3_reg): Likewise.
4419 (b0s6_op, b0s11_op, b0s12_imm, b0s16_imm, b0s26_imm): Likewise.
4420 (b6s10_ext, b11s5_reg, b12s4_op): Likewise.
4421 (mips_insn_size): New function.
4422 (mips32_next_pc): Update mips_fetch_instruction call.
4423 (micromips_relative_offset7): New function.
4424 (micromips_relative_offset10): Likewise.
4425 (micromips_relative_offset16): Likewise.
4426 (micromips_pc_insn_size): Likewise.
4427 (micromips_bc1_pc): Likewise.
4428 (micromips_next_pc): Likewise.
4429 (unpack_mips16): Update mips_fetch_instruction call.
4430 (extended_mips16_next_pc): Update according to change to
4431 mips16_to_32_reg.
4432 (mips_next_pc): Update mips_pc_is_mips16 call. Handle microMIPS
4433 code.
4434 (mips16_scan_prologue): Update mips_fetch_instruction call.
4435 Update according to change to mips16_to_32_reg.
4436 (mips_insn16_frame_sniffer): Update mips_pc_is_mips16 call.
4437 (mips_insn16_frame_base_sniffer): Likewise.
4438 (micromips_decode_imm9): New function.
4439 (micromips_scan_prologue): Likewise.
4440 (mips_micro_frame_cache): Likewise.
4441 (mips_micro_frame_this_id): Likewise.
4442 (mips_micro_frame_prev_register): Likewise.
4443 (mips_micro_frame_sniffer): Likewise.
4444 (mips_micro_frame_unwind): New variable.
4445 (mips_micro_frame_base_address): New function.
4446 (mips_micro_frame_base): New variable.
4447 (mips_micro_frame_base_sniffer): New function.
4448 (mips32_scan_prologue): Update mips_fetch_instruction call.
4449 (mips_insn32_frame_sniffer): Check for the standard MIPS ISA
4450 rather than for MIPS16.
4451 (mips_insn32_frame_base_sniffer): Likewise.
4452 (mips_addr_bits_remove): Handle microMIPS code.
4453 (deal_with_atomic_sequence): Rename to...
4454 (mips_deal_with_atomic_sequence): ... this. Update the type
4455 of the variable used to hold an instruction. Remove the ISA bit
4456 check. Update mips_fetch_instruction call.
4457 (micromips_deal_with_atomic_sequence): New function.
4458 (deal_with_atomic_sequence): Likewise.
4459 (mips_about_to_return): Handle microMIPS code. Update
4460 mips_fetch_instruction call.
4461 (heuristic_proc_start): Check for the standard MIPS ISA rather
4462 than for MIPS16. Update mips_pc_is_mips16 and
4463 mips_fetch_instruction calls. Handle microMIPS code.
4464 (mips_push_dummy_code): Handle microMIPS code.
4465 (mips_eabi_push_dummy_call): Likewise.
4466 (mips_o32_return_value): Update mips_pc_is_mips16 call.
4467 (mips_o64_push_dummy_call): Handle microMIPS code.
4468 (mips_o64_return_value): Update mips_pc_is_mips16 call.
4469 (is_delayed): Remove function.
4470 (mips_single_step_through_delay): Replace the call to is_delayed
4471 with mips32_instruction_has_delay_slot. Correct MIPS16 handling.
4472 Handle microMIPS code.
4473 (mips_skip_prologue): Update mips_pc_is_mips16 call. Handle
4474 microMIPS code.
4475 (mips32_in_function_epilogue_p): Update mips_fetch_instruction
4476 call.
4477 (micromips_in_function_epilogue_p): New function.
4478 (mips16_in_function_epilogue_p): Update mips_fetch_instruction
4479 call.
4480 (mips_in_function_epilogue_p): Update mips_pc_is_mips16 call.
4481 Handle microMIPS.
4482 (gdb_print_insn_mips): Likewise.
4483 (mips_breakpoint_from_pc): Likewise.
4484 (mips_remote_breakpoint_from_pc): New function.
4485 (mips32_instruction_has_delay_slot): Simplify making use of the
4486 updated mips_fetch_instruction interface.
4487 (micromips_instruction_has_delay_slot): New function.
4488 (mips16_instruction_has_delay_slot): Simplify making use of the
4489 updated mips_fetch_instruction interface.
4490 (mips_adjust_breakpoint_address): Check for the standard MIPS
4491 ISA rather than for MIPS16 ISA. Update for unmake_compact_addr
4492 calls. Handle microMIPS code.
4493 (mips_get_mips16_fn_stub_pc): Update mips_fetch_instruction call.
4494 (mips_skip_trampoline_code): Handle microMIPS code.
4495 (global_mips_compression): New function.
4496 (mips_gdbarch_init): Handle the compressed ISA setting from ELF
4497 file flags. Register the microMIPS remote breakpoint handler
4498 and heuristic frame unwinder.
4499 (show_mips_compression): New function.
4500 (_initialize_mips_tdep): Add the "set mips compression" and
4501 "show mips compression" commands.
4502
4503 2012-05-18 Sergio Durigan Junior <sergiodj@redhat.com>
4504
4505 * ada-lang.c:
4506 * ada-tasks.c:
4507 * ada-varobj.c:
4508 * amd64-darwin-tdep.c:
4509 * arm-symbian-tdep.c:
4510 * arm-tdep.c:
4511 * avr-tdep.c:
4512 * ax-gdb.c:
4513 * bfin-linux-tdep.c:
4514 * breakpoint.c:
4515 * c-valprint.c:
4516 * cli/cli-cmds.c:
4517 * coffread.c:
4518 * cp-support.c:
4519 * cris-tdep.c:
4520 * dwarf2-frame-tailcall.c:
4521 * dwarf2-frame.c:
4522 * dwarf2expr.c:
4523 * dwarf2loc.c:
4524 * dwarf2read.c:
4525 * elfread.c:
4526 * eval.c:
4527 * expprint.c:
4528 * f-valprint.c:
4529 * frv-tdep.c:
4530 * h8300-tdep.c:
4531 * hppa-hpux-tdep.c:
4532 * hppa-tdep.c:
4533 * hppanbsd-tdep.c:
4534 * i386-nto-tdep.c:
4535 * i386-tdep.c:
4536 * i387-tdep.c:
4537 * ia64-tdep.c:
4538 * jit.c:
4539 * linespec.c:
4540 * linux-tdep.c:
4541 * lm32-tdep.c:
4542 * m2-valprint.c:
4543 * m32c-tdep.c:
4544 * m32r-rom.c:
4545 * m32r-tdep.c:
4546 * m68k-tdep.c:
4547 * m68klinux-tdep.c:
4548 * mi/mi-main.c:
4549 * microblaze-tdep.c:
4550 * mips-linux-tdep.c:
4551 * mips-tdep.c:
4552 * mn10300-tdep.c:
4553 * p-valprint.c:
4554 * parse.c:
4555 * ppc-linux-tdep.c:
4556 * ppc-sysv-tdep.c:
4557 * printcmd.c:
4558 * python/py-finishbreakpoint.c:
4559 * python/py-inferior.c:
4560 * python/py-infthread.c:
4561 * python/py-type.c:
4562 * python/python.c:
4563 * remote-fileio.c:
4564 * remote-m32r-sdi.c:
4565 * remote-mips.c:
4566 * reverse.c:
4567 * rl78-tdep.c:
4568 * rs6000-aix-tdep.c:
4569 * rs6000-tdep.c:
4570 * s390-tdep.c:
4571 * score-tdep.c:
4572 * sh64-tdep.c:
4573 * skip.c:
4574 * solib-darwin.c:
4575 * solib-dsbt.c:
4576 * solib-frv.c:
4577 * sparc-tdep.c:
4578 * spu-multiarch.c:
4579 * spu-tdep.c:
4580 * stack.c:
4581 * symfile.c:
4582 * symtab.c:
4583 * tic6x-tdep.c:
4584 * tracepoint.c:
4585 * v850-tdep.c:
4586 * valarith.c:
4587 * valprint.c:
4588 * value.c:
4589 * xcoffread.c:
4590 * xtensa-tdep.c:
4591 * ada-lang.c:
4592 * ada-tasks.c:
4593 * ada-varobj.c:
4594 * amd64-darwin-tdep.c:
4595 * arm-symbian-tdep.c:
4596 * arm-tdep.c: Delete unused variables.
4597
4598 2012-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
4599
4600 Rename $ddir to $datadir.
4601 * NEWS (--with-auto-load-dir): Rename $ddir to $datadir.
4602 * auto-load.c (auto_load_safe_path_vec_update)
4603 (auto_load_gdb_datadir_changed, auto_load_objfile_script): Likewise.
4604 * configure: Regenerate.
4605 * configure.ac (--with-auto-load-dir, --with-auto-load-safe-path):
4606 Likewise. Remove the 'use $ddir' help string.
4607
4608 2012-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
4609
4610 * auto-load.c (show_auto_load_safe_path): Accept any combination of
4611 DIRNAME_SEPARATOR and IS_DIR_SEPARATOR for wild-match.
4612
4613 2012-05-18 Tom Tromey <tromey@redhat.com>
4614
4615 PR exp/13907:
4616 * valprint.h (struct value_print_options) <symbol_print>: New
4617 field.
4618 * valprint.c (user_print_options): Add default for symbol_print.
4619 (show_symbol_print): New function.
4620 (generic_val_print): Respect symbol_print.
4621 (_initialize_valprint): Add "print symbol" setting.
4622 * f-valprint.c (f_val_print): Respect symbol_print.
4623 * c-valprint.c (c_val_print): Respect symbol_print.
4624 * NEWS: Update.
4625 * printcmd.c (print_address_symbolic): Return int. Ignore some
4626 zero-size symbols.
4627 (print_address_demangle): Return int.
4628 * defs.h: (print_address_symbolic): Return int.
4629 * value.h (print_address_demangle): Return int.
4630
4631 2012-05-18 Tom Tromey <tromey@redhat.com>
4632
4633 * valprint.c (val_print_string): Don't print leading space.
4634 * p-valprint.c (pascal_val_print) <TYPE_CODE_PTR>: Optionally
4635 print space before string or vtbl.
4636 * m2-valprint.c (print_unpacked_pointer): Optionally print space
4637 before string.
4638 * jv-valprint.c (java_value_print): Print space before string.
4639 * go-valprint.c (print_go_string): Print space before string.
4640 * f-valprint.c (f_val_print) <TYPE_CODE_PTR>: Optionally print
4641 space before string.
4642 * c-valprint.c (c_val_print) <TYPE_CODE_PTR>: Optionally print
4643 space before string or vtbl.
4644 * auxv.c (fprint_target_auxv): Print space after address.
4645
4646 2012-05-18 Tom Tromey <tromey@redhat.com>
4647
4648 * printcmd.c (print_address_demangle): Remove special case for 0.
4649
4650 2012-05-18 Tom Tromey <tromey@redhat.com>
4651
4652 * printcmd.c (print_address_demangle): Add 'opts' argument.
4653 * p-valprint.c (pascal_val_print): Update.
4654 * jv-valprint.c (java_val_print): Update.
4655 * value.h: Update.
4656 * valprint.c (generic_val_print): Update.
4657 (print_function_pointer_address): Add 'options' argument. Remove
4658 'addressprint' argument. Update.
4659 * m2-valprint.c (print_unpacked_pointer): Update.
4660 * gnu-v3-abi.c (print_one_vtable): Update.
4661 (gnuv3_print_method_ptr): Update.
4662 * f-valprint.c (f_val_print): Update.
4663 * cp-valprint.c (cp_print_value_fields): Update.
4664 * valprint.h (print_function_pointer_address): Update.
4665 * c-valprint.c (c_val_print): Update.
4666
4667 2012-05-18 Tom Tromey <tromey@redhat.com>
4668
4669 * psymtab.c (find_pc_sect_symtab_from_partial): Return the symtab
4670 directly corresponding to the found psymtab.
4671 * dwarf2read.c (recursively_find_pc_sect_symtab): New function.
4672 (dw2_find_pc_sect_symtab): Use it.
4673 * block.h (blockvector_contains_pc): Declare.
4674 * block.c (find_block_in_blockvector): New function.
4675 (blockvector_for_pc_sect): Use it.
4676 (blockvector_contains_pc): New function.
4677
4678 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
4679
4680 * mips-tdep.h (mips_write_pc): New prototype.
4681 * mips-tdep.c (mips_write_pc): Make external, add description.
4682 * mips-linux-tdep.c (mips_linux_write_pc): Use mips_write_pc,
4683 add description.
4684
4685 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
4686
4687 * mips-tdep.c (mips_read_pc): Use gdbarch_pc_regnum instead of
4688 mips_regnum->pc.
4689 (mips_unwind_pc, mips_write_pc): Likewise.
4690 (mips_gdbarch_init): Remove a comment on gdbarch_pc_regnum and
4691 gdbarch_read_pc.
4692
4693 2012-05-17 Joel Brobecker <brobecker@adacore.com>
4694
4695 * procfs.c (procfs_find_new_threads, procfs_pid_to_str,
4696 proc_warn, proc_error, proc_get_status, proc_flags,
4697 proc_why, proc_what, proc_nsysarg, proc_sysargs,
4698 proc_set_run_on_last_close, proc_unset_run_on_last_close,
4699 proc_unset_inherit_on_fork, proc_set_async, proc_unset_async,
4700 proc_stop_process, proc_wait_for_stop, proc_run_process,
4701 proc_set_traced_signals, proc_set_traced_faults,
4702 proc_set_traced_sysentry, proc_set_traced_sysexit,
4703 proc_set_held_signals, proc_get_held_signals,
4704 proc_get_traced_signals, proc_get_traced_faults,
4705 proc_get_traced_sysentry, proc_get_traced_sysexit,
4706 proc_clear_current_fault, proc_set_current_signal,
4707 proc_clear_current_signal, proc_get_gregs, proc_get_fpregs,
4708 proc_set_gregs, proc_set_fpregs, proc_kill, proc_parent_pid,
4709 proc_get_nthreads, proc_get_nthreads, proc_get_nthreads,
4710 proc_get_current_thread, proc_get_current_thread,
4711 proc_get_current_thread, proc_update_threads,
4712 proc_update_threads, proc_update_threads, proc_update_threads,
4713 proc_iterate_over_threads, procfs_find_new_threads,
4714 procfs_pid_to_str): Make static. Remove advance declaration.
4715 (proc_cursig): Make static. Conditionalized defintion on
4716 PROCFS_DONT_PIOCSSIG_CURSIG being defined.
4717 (proc_syscall, proc_set_kill_on_last_close,
4718 proc_unset_kill_on_last_close, proc_set_inherit_on_fork,
4719 proc_get_pending_signals, proc_get_signal_actions,
4720 proc_trace_signal, proc_ignore_signal): Delete.
4721
4722 2012-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
4723
4724 * coffread.c (cs_section_address): Passing proper argument for
4725 `bfd_get_section_vma'.
4726 * dwarf2read.c (dwarf2_locate_sections): Likewise, for
4727 `bfd_get_section_flags'.
4728 * remote.c (remote_trace_set_readonly_regions): Likewise, for
4729 `bfd_get_section_vma'.
4730
4731 2012-05-16 Tom Tromey <tromey@redhat.com>
4732
4733 PR macros/13205:
4734 * macrotab.h: (macro_define_special): Declare.
4735 (enum macro_special_kind): New.
4736 (struct macro_definition) <argc, replacement>: Update comments.
4737 * macrotab.c (new_macro_definition): Unconditionally set 'argc'.
4738 (macro_define_object_internal): New function.
4739 (macro_define_object): Use it.
4740 (macro_define_special): New function.
4741 (fixup_definition): New function.
4742 (macro_lookup_definition, foreach_macro_in_scope)
4743 (foreach_macro): Use fixup_definition.
4744 * macroexp.h (macro_stringify): Declare.
4745 * macroexp.c (free_buffer_return_text): New function.
4746 (stringify): Constify "arg".
4747 (macro_stringify): New function.
4748 * dwarf2read.c (macro_start_file): Call macro_define_special.
4749
4750 2012-05-16 Maciej W. Rozycki <macro@codesourcery.com>
4751 Maciej W. Rozycki <macro@mips.com>
4752
4753 * breakpoint.h (bp_location): Add related_address member.
4754 * inferior.h (get_return_value): Take a pointer to struct value
4755 instead of struct type for the function requested.
4756 * value.h (using_struct_return): Likewise.
4757 * gdbarch.sh (return_value): Take a pointer to struct value
4758 instead of struct type for the function requested.
4759 * breakpoint.c (set_breakpoint_location_function): Initialize
4760 related_address for bp_gnu_ifunc_resolver breakpoints.
4761 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Pass the
4762 requested function's address to gdbarch_return_value.
4763 * eval.c (evaluate_subexp_standard): Pass the requested
4764 function's address to using_struct_return.
4765 * infcall.c (call_function_by_hand): Pass the requested
4766 function's address to using_struct_return and
4767 gdbarch_return_value.
4768 * infcmd.c (get_return_value): Take a pointer to struct value
4769 instead of struct type for the function requested.
4770 (print_return_value): Update accordingly.
4771 (finish_command_continuation): Likewise.
4772 * stack.c (return_command): Pass the requested function's
4773 address to using_struct_return and gdbarch_return_value.
4774 * value.c (using_struct_return): Take a pointer to struct value
4775 instead of struct type for the function requested. Pass the
4776 requested function's address to gdbarch_return_value.
4777 * python/py-finishbreakpoint.c (finish_breakpoint_object):
4778 New function_value member, replacing function_type.
4779 (bpfinishpy_dealloc): Update accordingly.
4780 (bpfinishpy_pre_stop_hook): Likewise.
4781 (bpfinishpy_init): Likewise. Record the requested function's
4782 address.
4783 * mips-tdep.c (mips_fval_reg): New enum.
4784 (mips_o32_push_dummy_call): For MIPS16 FP doubles do not swap
4785 words put in GP registers.
4786 (mips_o64_push_dummy_call): Update a comment.
4787 (mips_o32_return_value): Take a pointer to struct value instead
4788 of struct type for the function requested and use it to check if
4789 using the MIPS16 calling convention. Return the designated
4790 general purpose registers for floating-point values returned in
4791 MIPS16 mode.
4792 (mips_o64_return_value): Likewise.
4793 * ppc-tdep.h (ppc_sysv_abi_return_value): Update prototype.
4794 (ppc_sysv_abi_broken_return_value): Likewise.
4795 (ppc64_sysv_abi_return_value): Likewise.
4796 * alpha-tdep.c (alpha_return_value): Take a pointer to struct
4797 value instead of struct type for the function requested.
4798 * amd64-tdep.c (amd64_return_value): Likewise.
4799 * amd64-windows-tdep.c (amd64_windows_return_value): Likewise.
4800 * arm-tdep.c (arm_return_value): Likewise.
4801 * avr-tdep.c (avr_return_value): Likewise.
4802 * bfin-tdep.c (bfin_return_value): Likewise.
4803 * cris-tdep.c (cris_return_value): Likewise.
4804 * frv-tdep.c (frv_return_value): Likewise.
4805 * h8300-tdep.c (h8300_return_value): Likewise.
4806 (h8300h_return_value): Likewise.
4807 * hppa-tdep.c (hppa32_return_value): Likewise.
4808 (hppa64_return_value): Likewise.
4809 * i386-tdep.c (i386_return_value): Likewise.
4810 * ia64-tdep.c (ia64_return_value): Likewise.
4811 * iq2000-tdep.c (iq2000_return_value): Likewise.
4812 * lm32-tdep.c (lm32_return_value): Likewise.
4813 * m32c-tdep.c (m32c_return_value): Likewise.
4814 * m32r-tdep.c (m32r_return_value): Likewise.
4815 * m68hc11-tdep.c (m68hc11_return_value): Likewise.
4816 * m68k-tdep.c (m68k_return_value): Likewise.
4817 (m68k_svr4_return_value): Likewise.
4818 * m88k-tdep.c (m88k_return_value): Likewise.
4819 * mep-tdep.c (mep_return_value): Likewise.
4820 * microblaze-tdep.c (microblaze_return_value): Likewise.
4821 * mn10300-tdep.c (mn10300_return_value): Likewise.
4822 * moxie-tdep.c (moxie_return_value): Likewise.
4823 * mt-tdep.c (mt_return_value): Likewise.
4824 * ppc-linux-tdep.c (ppc_linux_return_value): Likewise.
4825 * ppc-sysv-tdep.c (ppc_sysv_abi_return_value): Likewise.
4826 (ppc_sysv_abi_broken_return_value): Likewise.
4827 (ppc64_sysv_abi_return_value): Likewise.
4828 * ppcnbsd-tdep.c (ppcnbsd_return_value): Likewise.
4829 * rl78-tdep.c (rl78_return_value): Likewise.
4830 * rs6000-aix-tdep.c (rs6000_return_value): Likewise.
4831 * rx-tdep.c (rx_return_value): Likewise.
4832 * s390-tdep.c (s390_return_value): Likewise.
4833 * score-tdep.c (score_return_value): Likewise.
4834 * sh-tdep.c (sh_return_value_nofpu): Likewise.
4835 (sh_return_value_fpu): Likewise.
4836 * sh64-tdep.c (sh64_return_value): Likewise.
4837 * sparc-tdep.c (sparc32_return_value): Likewise.
4838 * sparc64-tdep.c (sparc64_return_value): Likewise.
4839 * spu-tdep.c (spu_return_value): Likewise.
4840 * tic6x-tdep.c (tic6x_return_value): Likewise.
4841 * v850-tdep.c (v850_return_value): Likewise.
4842 * vax-tdep.c (vax_return_value): Likewise.
4843 * xstormy16-tdep.c (xstormy16_return_value): Likewise.
4844 * xtensa-tdep.c (xtensa_return_value): Likewise.
4845 * gdbarch.c: Regenerate.
4846 * gdbarch.h: Regenerate.
4847
4848 2012-05-15 Tom Tromey <tromey@redhat.com>
4849
4850 * python/python.c (gdbpy_find_pc_line): Use gdb_py_ulongest.
4851
4852 2012-05-15 Joel Brobecker <brobecker@adacore.com>
4853
4854 * breakpoint.c (init_breakpoint_sal): Add quotes around part
4855 of command in two error message.
4856
4857 2012-05-15 Joel Brobecker <brobecker@adacore.com>
4858
4859 * breakpoint.c (init_breakpoint_sal): Remove trailing spaces.
4860
4861 2012-05-15 Joel Brobecker <brobecker@adacore.com>
4862
4863 * breakpoint.c (find_condition_and_thread): Minor reformatting.
4864
4865 2012-05-15 Jan Kratochvil <jan.kratochvil@redhat.com>
4866
4867 * NEWS (show auto-load scripts-directory): Add forgotten command.
4868
4869 2012-05-15 Jan Kratochvil <jan.kratochvil@redhat.com>
4870
4871 * spu-tdep.c (spu_catch_start): Update create_breakpoint caller
4872 parameters.
4873
4874 2012-05-14 H.J. Lu <hongjiu.lu@intel.com>
4875
4876 * amd64-tdep.c: Include features/i386/x32.c and
4877 features/i386/x32-avx.c.
4878 (_initialize_amd64_tdep): Call initialize_tdesc_x32 and
4879 initialize_tdesc_x32_avx.
4880
4881 2012-05-14 Stan Shebs <stan@codesourcery.com>
4882
4883 Add dynamic printf.
4884 * breakpoint.h (enum bptype): New type bp_dprintf.
4885 (struct breakpoint): New field extra_string.
4886 (struct breakpoint_ops): Add arg to create_breakpoints_sal.
4887 (create_breakpoint): Add extra_string arg.
4888 * breakpoint.c (dprintf_breakpoint_ops): New.
4889 (is_breakpoint): Add bp_dprintf.
4890 (bpstat_what): Add dprintf case.
4891 (bptype_string): Ditto.
4892 (print_one_breakpoint_location): Ditto.
4893 (init_bp_location): Ditto.
4894 (bkpt_print_mention): Ditto.
4895 (dprintf_style_enums): New array.
4896 (dprintf_style): New global.
4897 (dprintf_function): New global.
4898 (dprintf_channel): New global.
4899 (update_dprintf_command_list): New function.
4900 (update_dprintf_commands): New function.
4901 (init_breakpoint_sal): Add extra_string argument, handle it.
4902 (create_breakpoint_sal): Add extra_string argument.
4903 (create_breakpoints_sal): Add extra_string argument, update callers.
4904 (find_condition_and_thread): Add extra argument.
4905 (create_breakpoint): Add extra_string argument, record it.
4906 (dprintf_command): New function.
4907 (break_command_1): Add arg to create_breakpoint call.
4908 (handle_gnu_v3_exceptions): Ditto.
4909 (trace_command): Ditto.
4910 (ftrace_command): Ditto.
4911 (strace_command): Ditto.
4912 (bkpt_print_mention): Add dprintf case.
4913 (create_breakpoint_sal_default): Add extra_string argument.
4914 (_initialize_breakpoint): Add new commands.
4915 * mi/mi-cmd-break.c (mi_cmd_break_insert): Add arg to call.
4916 * python/py-breakpoint.c (bppy_init): Ditto.
4917 * python/py-finishbreakpoint.c (bpfinishpy_init): Ditto.
4918
4919 2012-05-14 Maciej W. Rozycki <macro@codesourcery.com>
4920
4921 * mips-tdep.c (mips_push_dummy_code): Correct description typo.
4922
4923 2012-05-14 Siva Chandra Reddy <sivachandra@google.com>
4924
4925 * python/python.c (gdbpy_find_pc_line): Use ULONGEST instead of
4926 unsigned long long.
4927
4928 2012-05-13 Siva Chandra Reddy <sivachandra@google.com>
4929
4930 Add a new function gdb.find_pc_line to the Python API.
4931 * NEWS (Python Scripting): Add entry about the new function.
4932 * python/python.c (gdbpy_find_pc_line): New function which
4933 implements gdb.find_pc_line.
4934 (GdbMethods): Add entry for the new function.
4935
4936 2012-05-12 Pedro Alves <palves@redhat.com>
4937
4938 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Call
4939 initialize_tdesc_x32_linux and initialize_tdesc_x32_avx_linux.
4940
4941 2012-05-12 Eli Zaretskii <eliz@gnu.org>
4942
4943 * inferior.c: Include completer.h
4944 (initialize_inferiors): Set completer of add-inferior to
4945 filename_completer.
4946
4947 2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
4948
4949 * amd64-linux-tdep.c (amd64_linux_core_read_description): Check
4950 gdbarch_ptr_bit for x32 core dump.
4951
4952 2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
4953
4954 * amd64-linux-tdep.c: Include features/i386/x32-linux.c
4955 and features/i386/x32-avx-linux.c.
4956
4957 2012-05-11 Stan Shebs <stan@codesourcery.com>
4958 Kwok Cheung Yeung <kcy@codesourcery.com>
4959
4960 * NEWS: Describe new info os commands.
4961 * common/linux-osdata.c (PID_T, TIME_T): Define.
4962 (MAX_PID_T_STRLEN): New.
4963 (linux_common_core_of_thread): Add comment. Change to use PID_T and
4964 MAX_PID_T_STRLEN.
4965 (command_from_pid): Add comment. Change to use PID_T.
4966 (commandline_from_pid): Change to use PID_T.
4967 (user_from_pid): Add comment.
4968 (get_process_owner): Add comment. Change to use PID_T and
4969 MAX_PID_T_STRLEN.
4970 (get_number_of_cpu_cores): Add comment.
4971 (get_cores_used_by_process): Add comment. Change to use PID_T and
4972 MAX_PID_T_STRLEN.
4973 (linux_xfer_osdata_processes): Change to use PID_T and
4974 MAX_PID_T_STRLEN.
4975 (compare_processes): New function.
4976 (linux_xfer_osdata_processgroups): New function.
4977 (linux_xfer_osdata_threads): Change to use PID_T.
4978 (linux_xfer_osdata_fds): New function.
4979 (format_socket_state, print_sockets): New functions.
4980 (union socket_addr): New union.
4981 (linux_xfer_osdata_isockets): New function.
4982 (time_from_time_t, group_from_gid): New functions.
4983 (linux_xfer_osdata_shm): New function.
4984 (linux_xfer_osdata_sem): New function.
4985 (linux_xfer_osdata_msg): New function.
4986 (linux_xfer_osdata_modules): New function.
4987 (osdata_table): Add new entries.
4988 * common/buffer.c (buffer_xml_printf): Add support for long and
4989 long long format specifiers.
4990
4991 2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
4992
4993 * amd64-linux-tdep.h (tdesc_x32_linux): New.
4994 (tdesc_x32_avx_linux): Likewise.
4995
4996 2012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
4997
4998 Implement multi-component --with-auto-load-dir.
4999 * NEWS (set auto-load scripts-directory, --with-auto-load-dir): New
5000 entries.
5001 (--with-auto-load-safe-path): Update the default value description.
5002 * auto-load.c (auto_load_dir, set_auto_load_dir, show_auto_load_dir):
5003 New.
5004 (auto_load_objfile_script): Add DEBUG_AUTO_LOAD output. Remove
5005 GDB_DATADIR NULL check. Replace GDB_DATADIR/auto-load by
5006 AUTO_LOAD_DIR. Support $ddir and multiple components in it.
5007 (_initialize_auto_load): Initialize also auto_load_dir. Install new
5008 "set auto-load scripts-directory".
5009 * config.in: Regenerate.
5010 * configure: Regenerate.
5011 * configure.ac (--with-auto-load-dir): New configure option.
5012 (--auto-load-safe-path): Change the default to --with-auto-load-dir.
5013
5014 2012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
5015
5016 Provide $ddir substitution for --with-auto-load-safe-path.
5017 * NEWS (--with-auto-load-safe-path, --without-auto-load-safe-path): New
5018 entries.
5019 * auto-load.c: Include observer.h.
5020 (auto_load_safe_path_vec_update): Call substitute_path_component for
5021 each component. New variable ddir_subst.
5022 (auto_load_gdb_datadir_changed): New function.
5023 (set_auto_load_safe_path): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
5024 AUTO_LOAD_SAFE_PATH. New comment.
5025 (_initialize_auto_load): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
5026 AUTO_LOAD_SAFE_PATH. Install auto_load_gdb_datadir_changed.
5027 * config.in: Regenerate.
5028 * configure: Regenerate.
5029 * configure.ac (--auto-load-safe-path): Rename
5030 DEFAULT_AUTO_LOAD_SAFE_PATH to AUTO_LOAD_SAFE_PATH. Default to
5031 GDB_DATADIR/auto-load.
5032 * defs.h (substitute_path_component): New declaration.
5033 * top.c: Include observer.h.
5034 (set_gdb_datadir): New function.
5035 (init_main): Install it for "set data-directory".
5036 * utils.c (substitute_path_component): New function.
5037
5038 2012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
5039
5040 Make auto-load handle multiple components of DEBUG_FILE_DIRECTORY.
5041 * auto-load.c (auto_load_objfile_script): Remove check for NULL
5042 DEBUG_FILE_DIRECTORY. Handle multiple components of
5043 DEBUG_FILE_DIRECTORY.
5044
5045 2012-05-10 Tom Tromey <tromey@redhat.com>
5046
5047 * dwarf2read.c (recursively_write_psymbols): New function.
5048 (write_psymtabs_to_index): Use it.
5049
5050 * dwarf2read.c (struct dwarf2_queue_item) <pretend_language>: New
5051 field.
5052 (load_cu, dw2_do_instantiate_symtab, process_psymtab_comp_unit)
5053 (load_partial_comp_unit): Update.
5054 (queue_comp_unit): Add argument 'pretend_language'.
5055 (process_queue): Update.
5056 (psymtab_to_symtab_1): Skip dependencies that have a user.
5057 (load_partial_comp_unit_reader): Give meaning to the 'data'
5058 argument.
5059 (load_full_comp_unit): Add 'pretend_language' argument.
5060 (process_full_comp_unit): Add 'pretend_language' argument. Set
5061 language on CU.
5062 (process_imported_unit_die, read_file_scope, read_type_unit_scope):
5063 Update.
5064 (maybe_queue_comp_unit): Add 'pretend_language' argument.
5065 (follow_die_offset, follow_die_sig, read_signatured_type_reader):
5066 Update.
5067 (prepare_one_comp_unit): Add 'pretend_language' argument.
5068
5069 * dwarf2read.c: (dwarf2_per_cu_ptr): New typedef.
5070 (struct dwarf2_per_objfile) <just_read_cus>: New field.
5071 (struct dwarf2_per_cu_data) <imported_symtabs>: New field.
5072 (dw2_do_instantiate_symtab): Check whether symtab was read in
5073 before queueing.
5074 (dw2_instantiate_symtab): Add assertion. Call
5075 process_cu_includes.
5076 (process_psymtab_comp_unit): Compute 'dependencies' for psymtab.
5077 (partial_symtab_p): New typedef.
5078 (set_partial_user): New function.
5079 (dwarf2_build_psymtabs_hard): Use set_partial_user.
5080 (scan_partial_symbols): Add imported CU to imported_symtabs.
5081 (dwarf2_psymtab_to_symtab): Call process_cu_includes.
5082 (psymtab_to_symtab_1): Do nothing if psymtab is readin.
5083 (get_symtab, recursively_compute_inclusions)
5084 (compute_symtab_includes, process_cu_includes)
5085 (process_imported_unit_die): New functions.
5086 (process_die) <DW_TAG_imported_unit>: New case.
5087 (dwarf2_per_objfile_free): Free 'imported_symtabs'.
5088
5089 * dwarf2read.c (struct dwarf2_per_cu_data) <psymtab>: Update
5090 comment.
5091 (struct partial_die_info) <locdesc>: Remove.
5092 <d>: New field.
5093 (process_psymtab_comp_unit): Add 'read_partial' argument.
5094 Update.
5095 (process_type_comp_unit, dwarf2_build_psymtabs_hard): Update.
5096 (scan_partial_symbols): Handle DW_TAG_imported_unit.
5097 (add_partial_symbol): Update.
5098 (process_die): Handle DW_TAG_partial_unit.
5099 (read_file_scope): Update comment.
5100 (load_partial_dies): Handle DW_TAG_imported_unit.
5101 (read_partial_die): Handle DW_TAG_partial_unit, DW_AT_import.
5102 (determine_prefix, dwarf2_name): Handle DW_TAG_partial_unit.
5103
5104 2012-05-10 Tom Tromey <tromey@redhat.com>
5105
5106 * cc-with-dwz.sh: New file.
5107
5108 2012-05-10 Tom Tromey <tromey@redhat.com>
5109
5110 * symtab.h (struct symtab) <includes, user>: New fields.
5111 * block.h (struct block_iterator) <d, idx, which>: New fields.
5112 * block.c (initialize_block_iterator, find_iterator_symtab)
5113 (block_iterator_step, block_iter_name_step)
5114 (block_iter_match_step): New functions.
5115 (block_iterator_first, block_iterator_next)
5116 (block_iter_name_first, block_iter_name_next)
5117 (block_iter_match_first, block_iter_match_next): Rewrite.
5118 (get_block_symtab): New function.
5119
5120 2012-05-10 Tom Tromey <tromey@redhat.com>
5121
5122 * jv-lang.c (get_java_class_symtab): Use allocate_global_block,
5123 set_block_symtab.
5124 * jit.c (finalize_symtab): Use allocate_global_block,
5125 set_block_symtab.
5126 * buildsym.c (finish_block_internal): New function, from old
5127 finish_block.
5128 (finish_block): Rewrite.
5129 (end_symtab): Use finish_block_internal, set_block_symtab.
5130 * block.h (struct global_block): New.
5131 (allocate_global_block, set_block_symtab): Declare.
5132 * block.c (allocate_global_block, set_block_symtab): New
5133 functions.
5134
5135 2012-05-10 Tom Tromey <tromey@redhat.com>
5136
5137 * psymtab.c (partial_map_expand_apply): Add assertion.
5138 (partial_map_symtabs_matching_filename): Skip included psymtabs.
5139 (psymtab_to_symtab): Find unshared psymtab.
5140 (dump_psymtab): Print including psymtabs.
5141 (recursively_search_psymtabs): New function.
5142 (expand_symtabs_matching_via_partial): Use it.
5143 * psympriv.h (struct partial_symtab) <user, searched_flag>: New
5144 fields.
5145 (enum psymtab_search_status): New.
5146
5147 2012-05-10 Tom Tromey <tromey@redhat.com>
5148
5149 * tracepoint.c (scope_info): Update.
5150 * symtab.c (lookup_block_symbol, iterate_over_symbols)
5151 (find_pc_sect_symtab, search_symbols)
5152 (default_make_symbol_completion_list_break_on)
5153 (make_file_symbol_completion_list): Update.
5154 * symmisc.c (dump_symtab_1): Update.
5155 * stack.c (print_frame_args, iterate_over_block_locals)
5156 (print_frame_labels, iterate_over_block_arg_vars): Update.
5157 * python/py-block.c (block_object) <dict>: Remove.
5158 <block>: New field.
5159 <iter>: Change type.
5160 (blpy_iter): Update.
5161 (blpy_block_syms_iternext): Update.
5162 * psymtab.c (map_block): Use block iterators.
5163 * objfiles.c (objfile_relocate1): Use ALL_DICT_SYMBOLS.
5164 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
5165 * mdebugread.c (parse_symbol, mylookup_symbol): Update.
5166 * infrun.c (check_exception_resume): Update.
5167 * cp-support.c (make_symbol_overload_list_block): Update.
5168 * coffread.c (patch_opaque_types): Update.
5169 * buildsym.c (finish_block, end_symtab): Use ALL_DICT_SYMBOLS.
5170 * block.h (struct block_iterator): New.
5171 (block_iterator_first, block_iterator_next, block_iter_name_first)
5172 (block_iter_name_next, block_iter_match_first)
5173 (block_iter_match_next): Declare.
5174 (ALL_BLOCK_SYMBOLS): Redefine.
5175 * block.c (block_iterator_first, block_iterator_next)
5176 (block_iter_name_first, block_iter_name_next)
5177 (block_iter_match_first, block_iter_match_next): New functions.
5178 * ada-lang.c (ada_add_block_symbols)
5179 (ada_make_symbol_completion_list): Use block iterator.
5180
5181 2012-05-10 Tom Tromey <tromey@redhat.com>
5182
5183 * psymtab.c (PSYMTAB_TO_SYMTAB): Remove.
5184 (find_pc_sect_symtab_from_partial, lookup_symbol_aux_psymtabs)
5185 (lookup_partial_symbol, find_last_source_symtab_from_partial)
5186 (read_psymtabs_with_filename, map_matching_symbols_psymtab)
5187 (expand_symtabs_matching_via_partial, maintenance_check_symtabs):
5188 Update.
5189
5190 2012-05-10 Joel Brobecker <brobecker@adacore.com>
5191
5192 * config/djgpp/fnchange.lst: Add entries for print-file-var-lib1.c,
5193 print-file-var-lib2.c, print-file-var-main.c and
5194 print-file-var.exp (located in gdb/testsuite/gdb.base).
5195
5196 2012-05-10 Joel Brobecker <brobecker@adacore.com>
5197
5198 * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
5199 try locating the symbol in the symbol's own objfile first, before
5200 extending the search to all objfiles.
5201 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
5202 out of lookup_symbol_aux_symtabs.
5203 (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
5204 Replace extracted-out code by call to lookup_symbol_aux_objfile.
5205 Do not search EXCLUDE_OBJFILE.
5206 (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
5207 (lookup_symbol_global): Search for matches in the block's objfile
5208 first, before searching all other objfiles.
5209
5210 2012-05-10 Tristan Gingold <gingold@adacore.com>
5211
5212 * printcmd.c (set_command): Add pre/post inc/dec.
5213
5214 2012-05-09 Frank Ch. Eigler <fche@redhat.com>
5215
5216 * gdb.1: Document -ex option.
5217
5218 2012-05-09 Joel Brobecker <brobecker@adacore.com>
5219
5220 * infcall.c (call_function_by_hand): Remove AT_SYMBOL handling.
5221 * inferior.h (AT_SYMBOL): Delete.
5222
5223 2012-05-09 Joel Brobecker <brobecker@adacore.com>
5224
5225 * mips-tdep.c (mips_push_dummy_code): New function.
5226 (mips_gdbarch_init): Set the gdbarch call_dummy_location to
5227 ON_STACK and install mips_push_dummy_code as our gdbarch
5228 push_dummy_code routine.
5229
5230 2012-05-09 Pedro Alves <palves@redhat.com>
5231
5232 * target.c (set_maintenance_target_async_permitted): Rename to ...
5233 (set_target_async_command): ... this.
5234 (show_maintenance_target_async_permitted): Rename to ...
5235 (show_target_async_command): ... this.
5236 (initialize_targets): Adjust.
5237
5238 2012-05-08 Doug Evans <dje@google.com>
5239
5240 * go-exp.y (classify_name): Add missing assignment of fields of
5241 yylval.ssym.
5242
5243 2012-05-08 Eli Zaretskii <eliz@gnu.org>
5244
5245 Display the ">" prompt in interactive mode while reading canned
5246 commands, even when the current interpreter is MI.
5247
5248 * interps.c (interp_set_temp): New function.
5249
5250 * interps.h (interp_set_temp): Add prototype.
5251
5252 * cli/cli-script.c (restore_interp): New cleanup function.
5253 (read_command_lines): Temporarily override the current interpreter
5254 with CLI and arrange for restoring the original one.
5255
5256 2012-05-12 Joel Sherrill <joel.sherrill@oarcorp.com>
5257
5258 * microblaze-rom.c (_initialize_picobug_rom): Add prototype.
5259
5260 2012-05-07 Sergio Durigan Junior <sergiodj@redhat.com>
5261
5262 * probe.c (parse_probes): Move conditional to check for
5263 debuginfo files from here...
5264 * stap-probe.c (stap_get_probes): ... to here.
5265
5266 2012-05-07 Mark Kettenis <kettenis@gnu.org>
5267 H.J. Lu <hongjiu.lu@intel.com>
5268
5269 * amd64-tdep.c (amd64_analyze_prologue): Additionally check for
5270 `movl %esp, %ebp' for the X32 ABI.
5271
5272 2012-05-07 Tom Tromey <tromey@redhat.com>
5273
5274 * dwarf2read.c (dwarf_tag_name): Return const char *. Use
5275 get_DW_TAG_name.
5276 (dwarf_attr_name): Return const char *. Use get_DW_AT_name.
5277 (dwarf_form_name): Return const char *. Use get_DW_FORM_name.
5278 (dwarf_stack_op_name): Remove.
5279 (dwarf_cfi_name): Return const char *. Use get_DW_ATE_name.
5280 (decode_locdesc): Use get_DW_OP_name.
5281 * dwarf2loc.c (unimplemented): Use get_DW_OP_name.
5282 (dwarf2_compile_expr_to_ax): Likewise.
5283 (disassemble_dwarf_expression): Likewise.
5284 * dwarf2expr.h: (dwarf_stack_op_name): Remove.
5285
5286 2012-05-07 Chung-Lin Tang <cltang@codesourcery.com>
5287
5288 * sh-linux-tdep.c: Include trad-frame.h and tramp-frame.h.
5289 (sh_linux_sigtramp_cache): New function.
5290 (sh_linux_sigreturn_init): New function.
5291 (sh_linux_rt_sigreturn_init): New function.
5292 (SH_MOVW,SH_TRAP,SH_OR_R0_R0): New symbols for instruction
5293 patterns.
5294 (SH_NR_SIGRETURN,SH_NR_RT_SIGRETURN): New symbols for sigreturn
5295 syscall codes.
5296 (sh_linux_sigreturn_tramp_frame): New tramp_frame definition.
5297 (sh_linux_rt_sigreturn_tramp_frame): Likewise.
5298 (sh_linux_init_abi): Add init calls to register new tramp_frame
5299 definitions under 32-bit SH, update comments.
5300
5301 2012-05-07 Pedro Alves <palves@redhat.com>
5302
5303 PR gdb/10952
5304
5305 * amd64-linux-tdep.c: Include glibc-tdep.h.
5306 (amd64_linux_init_abi): Install glibc_skip_solib_resolver as
5307 gdbarch_skip_solib_resolver callback.
5308
5309 2012-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
5310
5311 * auto-load.c (set_auto_load_safe_path): Reset AUTO_LOAD_SAFE_PATH
5312 back to DEFAULT_AUTO_LOAD_SAFE_PATH if it is being set to "".
5313 (show_auto_load_safe_path): Check any-directory by comparison with "/".
5314 (add_auto_load_safe_path): Change the error message.
5315 (_initialize_auto_load): Change the "safe-path" help text.
5316 * configure: Regenerate
5317 * configure.ac (--without-auto-load-safe-path): Set
5318 WITH_AUTO_LOAD_SAFE_PATH to /.
5319
5320 2012-05-05 Sergio Durigan Junior <sergiodj@redhat.com>
5321
5322 * stap-probe.h: Do not include unecessary `probe.h'.
5323
5324 2012-05-05 Alan Modra <amodra@gmail.com>
5325
5326 * elfread.c (elf_symtab_read): Use bfd_abs_section_ptr and
5327 bfd_und_section_ptr.
5328 * machoread.c (macho_symtab_add_minsym): Use bfd_abs_section_ptr
5329 and bfd_com_section_ptr.
5330
5331 2012-05-04 Joel Brobecker <brobecker@adacore.com>
5332
5333 * MAINTAINERS (Past Maintainers): Add Chris Faylor.
5334
5335 2012-05-04 Joel Brobecker <brobecker@adacore.com>
5336
5337 * windows-nat.h (segment_register_p_ftype): New typedef.
5338 (windows_set_segment_register_p): Add declaration.
5339 * windows-nat.c (segment_register_p): New static global.
5340 (windows_set_segment_register_p): New function.
5341 (do_windows_fetch_inferior_registers): Add special handling
5342 for segment registers.
5343 * amd64-windows-nat.c: #include "amd64-tdep.h".
5344 (amd64_windows_segment_register_p): New function.
5345 (_initialize_amd64_windows_nat): Call windows_set_segment_register_p.
5346 * i386-windows-nat.c: #include "i386-tdep.h".
5347 (i386_windows_segment_register_p): New function.
5348 (_initialize_i386_windows_nat): Call windows_set_segment_register_p.
5349
5350 2012-05-04 Tristan Gingold <gingold@adacore.com>
5351
5352 * printcmd.c (set_command): Emit a warning if the expression is not
5353 an assignment.
5354
5355 2012-05-03 Joel Brobecker <brobecker@adacore.com>
5356
5357 * nto-procfs.c (procfs_find_new_threads, procfs_pid_to_str):
5358 Make static.
5359
5360 2012-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
5361
5362 * stap-probe.c (stap_is_operator): Change declaration.
5363 (stap_get_opcode): Change return value.
5364 (stap_parse_argument_1): Update calls to `stap_get_opcode' and
5365 `stap_parse_argument_1'.
5366
5367 2012-05-03 Pedro Alves <pedro@codesourcery.com>
5368
5369 * infrun.c (displaced_step_fixup): Add "displaced:" prefix to
5370 debug log.
5371
5372 2012-05-03 Siva Chandra Reddy <sivachandra@google.com>
5373
5374 Add two new methods global_block and static_block to gdb.Symtab
5375 objects.
5376 * NEWS (Python scripting): Add entry about the new methods.
5377 * python/py-symtab.c (stpy_global_block): New function which
5378 implements the gdb.Symtab.global_block() method.
5379 (stpy_static_block): New function which implements the
5380 gdb.Symtab.static_block() method.
5381 (symtab_object_methods): Add entries for the two new methods.
5382
5383 2012-05-03 Doug Evans <dje@google.com>
5384
5385 * dwarf2read.c (dw2_find_symbol_file): Don't crash if there are no
5386 files.
5387
5388 2012-05-03 Yao Qi <yao@codesourcery.com>
5389
5390 * i386-tdep.c (i386_fetch_pointer_argument): Remove extra
5391 space.
5392 (i386_process_record): Ditto.
5393
5394 2012-05-02 Joel Brobecker <brobecker@adacore.com>
5395
5396 * infcall.c (unwind_on_signal_p): Make static.
5397
5398 2012-05-02 Joel Brobecker <brobecker@adacore.com>
5399
5400 * sol-thread.c (solaris_pid_to_str): Make static.
5401 (_initialize_sol_thread): Add prototype.
5402
5403 2012-05-02 Joel Brobecker <brobecker@adacore.com>
5404
5405 * sol-thread.c (procfs_pid_to_str): Delete extern declaration.
5406
5407 2012-05-02 Christopher Faylor <me.cygwin2012@cgf.cx>
5408
5409 * MAINTAINERS: Remove myself.
5410
5411 2012-05-02 Jan Kratochvil <jan.kratochvil@redhat.com>
5412
5413 Fix --without-auto-load-safe-path for MS-Windows host platform.
5414 * auto-load.c (filename_is_in_dir): Return 1 for DIR_LEN 0.
5415
5416 2012-05-02 Eli Zaretskii <eliz@gnu.org>
5417
5418 * gdb_curses.h: Undefine KEY_EVENT before including curses
5419 headers. Move "#undef MOUSE_MOVED" before any curses header
5420 inclusion.
5421
5422 2012-05-02 Sergio Durigan Junior <sergiodj@gmail.com>
5423
5424 * features/i386/i386-mmx-linux.c: Regenerate.
5425 * features/rs6000/powerpc-32.c: Likewise.
5426 * features/rs6000/powerpc-32l.c: Likewise.
5427 * features/rs6000/powerpc-403.c: Likewise.
5428 * features/rs6000/powerpc-403gc.c: Likewise.
5429 * features/rs6000/powerpc-405.c: Likewise.
5430 * features/rs6000/powerpc-505.c: Likewise.
5431 * features/rs6000/powerpc-601.c: Likewise.
5432 * features/rs6000/powerpc-602.c: Likewise.
5433 * features/rs6000/powerpc-603.c: Likewise.
5434 * features/rs6000/powerpc-604.c: Likewise.
5435 * features/rs6000/powerpc-64.c: Likewise.
5436 * features/rs6000/powerpc-64l.c: Likewise.
5437 * features/rs6000/powerpc-750.c: Likewise.
5438 * features/rs6000/powerpc-860.c: Likewise.
5439 * features/rs6000/powerpc-e500.c: Likewise.
5440 * features/rs6000/powerpc-e500l.c: Likewise.
5441 * features/rs6000/powerpc-isa205-32l.c: Likewise.
5442 * features/rs6000/powerpc-isa205-64l.c: Likewise.
5443 * features/rs6000/rs6000.c: Likewise.
5444
5445 2012-05-02 Sergio Durigan Junior <sergiodj@gmail.com>
5446
5447 * i386-tdep.c (i386_stap_parse_special_token) <s>: Remove unused
5448 variable.
5449 * stap-probe.c (stap_parse_single_operand) <reg_suffix,
5450 reg_ind_suffix, reg_suffix_len, reg_ind_suffix_len>: Likewise.
5451 (stap_parse_argument) <e>: Likewise.
5452 (handle_stap_probe) <byte_order>: Likewise.
5453
5454 2012-04-30 Doug Evans <dje@google.com>
5455
5456 * dwarf2read.c (init_cutu_and_read_dies): Renamed from
5457 init_and_read_dies_worker. All callers updated.
5458 (init_cu_and_read_dies, init_tu_and_read_dies): Delete. All calls
5459 replaced with init_cutu_and_read_dies.
5460 (load_partial_comp_unit): Pass 1 for use_existing_cu.
5461 (find_partial_die): Remove FIXME. Don't free current CU.
5462
5463 2012-04-30 Sterling Augustine <saugustine@google.com>
5464
5465 * contrib: New directory.
5466 * contrib/test_pubnames_and_indexes.py: New file.
5467
5468 2012-04-30 Doug Evans <dje@google.com>
5469
5470 * dwarf2read.c (dwarf_decode_macros): New arg section_name.
5471 All callers updated.
5472 (init_cu_die_reader): Verify the section is non-empty.
5473 (dwarf_decode_line_header): Don't dereference section->asection
5474 until we know the section is present.
5475
5476 2012-04-29 Sergio Durigan Junior <sergiodj@redhat.com>
5477
5478 * tracepoint.c (start_tracing, stop_tracing): Checking for NULL
5479 probes.
5480
5481 2012-04-29 Yao Qi <yao@codesourcery.com>
5482
5483 * gdb-code-style.el: New hook gdb-markup-hook
5484 and gdb-comment-hook.
5485
5486 2012-04-28 Doug Evans <dje@google.com>
5487
5488 Initial support for Fission. http://gcc.gnu.org/wiki/DebugFission
5489 * symfile.c (default_symfile_relocate): Use sectp->owner instead of
5490 objfile->obfd.
5491 * symfile.h (dwarf2_debug_sections): New member addr.
5492 * dwarf2expr.c (execute_stack_op): New case DW_OP_GNU_addr_index.
5493 (ctx_no_get_addr_index): New function.
5494 * dwarf2expr.h (dwarf_expr_context_funcs): New member get_addr_index.
5495 (ctx_no_get_addr_index): Declare.
5496 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): Update.
5497 * dwarf2loc.c (dwarf_expr_get_addr_index): New function.
5498 (dwarf_expr_ctx_funcs): Update.
5499 (needs_get_addr_index): New function.
5500 (needs_frame_ctx_funcs): Update.
5501 * dwarf2loc.h (dwarf2_read_addr_index): Declare.
5502 * dwarf2read.c: #include "gdbcore.h".
5503 (dwarf2_per_objfile): New members addr, dwo_files.
5504 (dwarf2_elf_names): Add entry for addr.
5505 (struct dwo_section_names): New type.
5506 (dwo_section_names): New static global.
5507 (dwarf2_cu): New members dwo_unit, addr_base, have_addr_base.
5508 (dwarf2_per_cu_data): New member is_debug_types, all boolean uses of
5509 old debug_types_section member updated to use this.
5510 Rename member debug_types_section to info_or_types_section,
5511 all uses updated.
5512 (signatured_type): Rename member type_offset to type_offset_in_tu,
5513 all uses updated. New member type_offset_in_section.
5514 (struct dwo_sections): New type.
5515 (struct dwo_unit): New type.
5516 (struct dwo_file): New type.
5517 (die_reader_specs): New member dwo_file.
5518 (dwarf2_locate_sections): Watch for .debug_addr.
5519 (zlib_decompress_section): Use sectp->owner instead of objfile->obfd.
5520 (dwarf2_read_section): Get bfd of section from bfd's asection,
5521 instead of objfile.
5522 (create_cus_from_index): Initialize the_cu->info_or_types_section.
5523 (create_signatured_type_table_from_index): Initialize
5524 sig_type->info_or_types_section.
5525 (dw2_get_file_names): Statement lists for type units with DWO files
5526 live in the DWO file.
5527 (create_debug_types_hash_table): New function.
5528 (create_all_type_units): Rewrite.
5529 (init_cu_die_reader): New arg dwo_file, all callers updated.
5530 (init_and_read_dies_worker): Get section from
5531 this_cu->info_or_types_section. Set sig_type->type_offset_in_section.
5532 Watch for DW_AT_GNU_dwo_name and if present lookup the file and
5533 continue reading the CU/TU from there.
5534 (init_cutu_and_read_dies_no_follow): New arg dwo_file, all callers
5535 updated. Get section from this_cu->info_or_types_section.
5536 (create_all_comp_units): Initialize this_cu->info_or_types_section.
5537 (skip_one_die): New cases DW_FORM_GNU_addr_index,
5538 DW_FORM_GNU_str_index.
5539 (hash_dwo_file, eq_dwo_file): New functions.
5540 (allocate_dwo_file_hash_table): New function.
5541 (hash_dwo_unit, eq_dwo_unit): New functions.
5542 (allocate_dwo_unit_table): New function.
5543 (dwarf2_locate_dwo_sections): New function.
5544 (struct create_dwo_info_table_data): New type.
5545 (create_debug_info_hash_table_reader): New function.
5546 (create_debug_info_hash_table): New function.
5547 (try_open_dwo_file, open_dwo_file, init_dwo_file): New function.
5548 (lookup_dwo_file): New function.
5549 (lookup_dwo_comp_unit, lookup_dwo_type_unit): New functions.
5550 (free_dwo_file, free_dwo_file_cleanup): New functions.
5551 (free_dwo_file_from_slot, free_dwo_files): New functions.
5552 (dwarf2_get_pc_bounds): Handle DW_FORM_GNU_addr_index.
5553 (dwarf2_record_block_ranges): Ditto.
5554 (read_partial_die): Ditto.
5555 (process_enumeration_scope): Update to use type_offset_in_section.
5556 (read_full_die_1): New function.
5557 (read_full_die): Rewrite.
5558 (read_attribute_value): New cases DW_FORM_GNU_addr_index,
5559 DW_FORM_GNU_str_index.
5560 (read_addr_index_1, read_addr_index): New functions.
5561 (read_addr_index_from_leb128): New function.
5562 (struct dwarf2_read_addr_index_data): New type.
5563 (dwarf2_read_addr_index_reader): New function.
5564 (dwarf2_read_addr_index): New function.
5565 (read_str_index): New function.
5566 (leb128_size): New function.
5567 (dwarf_decode_line_header): Delete arg abfd, all callers updated.
5568 If processing a type unit from a DWO file, get the line section
5569 from the DWO file.
5570 (var_decode_location): Watch for DW_OP_GNU_addr_index.
5571 (dwarf2_const_value_attr): New cases DW_FORM_GNU_addr_index,
5572 DW_FORM_GNU_str_index.
5573 (lookup_die_type): Check whether section offset of type's die is
5574 known before looking it up. Remove assert. Condition can
5575 legimately happen for inter-cu type references.
5576 (dwarf_attr_name): Handle Fission attributes.
5577 (dwarf_form_name): Handle Fission forms.
5578 (dump_die_shallow): New cases DW_FORM_GNU_addr_index,
5579 DW_FORM_GNU_str_index.
5580 (follow_die_sig): Update to use type_offset_in_section.
5581 (decode_locdesc): New case DW_OP_GNU_addr_index.
5582 (skip_form_bytes): New cases DW_FORM_GNU_addr_index,
5583 DW_FORM_GNU_str_index.
5584 (cu_debug_loc_section): New function.
5585 (fill_in_loclist_baton, dwarf2_symbol_mark_computed): Call it.
5586 (dwarf2_per_objfile_free): Unmap .debug_addr section.
5587 Free DWO files if present.
5588 * xcoffread.c (dwarf2_xcoff_names): Add .debug_addr.
5589
5590 Refactor DIE reading.
5591 * dwarf2read.c (dwarf2_per_objfile): Replace members
5592 debug_info_type_hash and debug_types_type_hash with die_type_hash.
5593 (die_reader_specs): New member "die_section". Temporarily make
5594 member "buffer" non-const, pending constifying all info_ptr uses.
5595 (die_reader_func_ftype): New typedef.
5596 (dw2_get_file_names_reader): New function.
5597 (dw2_get_file_names): Rewrite.
5598 (read_and_check_type_unit_head): Rename arg type_offset to
5599 type_offset_in_tu.
5600 (create_all_type_units): Improve debugging message.
5601 Improve dummy type unit check.
5602 (init_cu_die_reader): New arg "section". All callers updated.
5603 (init_and_read_dies_worker): New function.
5604 (init_cu_and_read_dies, init_tu_and_read_dies): New functions.
5605 (init_cutu_and_read_dies_no_follow): New function.
5606 (init_cutu_and_read_dies_simple): New function.
5607 (process_psymtab_comp_unit_reader): New function.
5608 (process_psymtab_comp_unit): Delete args section,
5609 is_debug_types_section. Rewrite. All callers updated.
5610 (process_psymtab_type_unit): Renamed from process_type_comp_unit.
5611 All callers updated. Rewrite.
5612 (load_partial_comp_unit_reader): New function.
5613 (load_partial_comp_unit): Rewrite.
5614 (skip_children): New arg reader. Delete args buffer, cu.
5615 All callers updated.
5616 (skip_one_die): New arg reader. Delete args buffer, cu.
5617 All callers updated.
5618 (locate_pdi_sibling): New arg reader. Delete args buffer, abfd, cu.
5619 All callers updated.
5620 (load_full_comp_unit_reader): New function.
5621 (load_full_comp_unit): Rewrite.
5622 (read_comp_unit): Delete.
5623 (read_die_and_children_1): Delete, contents moved ...
5624 (read_die_and_children): ... here.
5625 (dwarf2_read_abbrevs): New arg abbrev_section. All callers updated.
5626 (load_partial_dies): New arg reader. Delete args abfd, buffer, cu.
5627 All callers updated.
5628 (read_partial_die): New arg reader. Delete args abfd, buffer, cu.
5629 All callers updated.
5630 (find_partial_die): Rewrite load_all_dies support.
5631 (read_attribute_value): New arg reader. Delete args abfd, cu.
5632 All callers updated.
5633 (read_attribute): New arg reader. Delete args abfd, cu.
5634 All callers updated.
5635 (load_full_type_unit): Add assert.
5636 (read_signatured_type_reader): New function.
5637 (read_signatured_type): Rewrite.
5638 (free_stack_comp_unit): Remove call to age_cached_comp_units.
5639 (free_one_cached_comp_unit): Change target_cu arg to target_per_cu.
5640 All callers updated. Set per_cu->cu = NULL after freeing it.
5641 (dwarf2_per_cu_offset_and_type): Renamed from dwarf2_offset_and_type.
5642 (per_cu_offset_and_type_hash): Renamed from offset_and_type_hash.
5643 (per_cu_offset_and_type_eq): Renamed from offset_and_type_eq.
5644 (set_die_type): Update.
5645 (get_die_type_at_offset): Update.
5646 (read_file_scope): Call prepare_one_comp_unit.
5647 (read_type_unit_scope): Ditto.
5648 (prepare_one_comp_unit): Set producer if present.
5649
5650 2012-04-28 Sergio Durigan Junior <sergiodj@redhat.com>
5651
5652 * probe.c (compile_rx_or_error): Silence ARI warning about missing
5653 gettext function on `error'.
5654
5655 2012-04-27 Doug Evans <dje@google.com>
5656
5657 * dwarf2read.c (dwarf2_read_index): Don't use index if symbol table
5658 is empty.
5659
5660 2012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
5661 Tom Tromey <tromey@redhat.com>
5662
5663 * breakpoint.c (struct breakpoint_objfile_data)
5664 <longjmp_searched>,<longjmp_probes>,<exception_searched>,
5665 <exception_probes>: New fields.
5666 (free_breakpoint_probes): New function.
5667 (create_longjmp_master_breakpoint): Prefer SystemTap probe over
5668 `_Unwind_DebugHook'.
5669 (create_exception_master_breakpoint): Likewise.
5670 (_initialize_breakpoint): Registering cleanup for SystemTap probes.
5671 * infrun.c: Including necessary header files for handling SystemTap
5672 probes.
5673 (handle_inferior_event): Handling longjmp breakpoint and exceptions
5674 via SystemTap probes.
5675 (check_exception_resume): Remove `func' argument. Handle exception
5676 unwinding breakpoint set via a SystemTap probe.
5677 (insert_exception_resume_from_probe): New function.
5678
5679 2012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
5680 Tom Tromey <tromey@redhat.com>
5681 Jan Kratochvil <jan.kratochvil@redhat.com>
5682
5683 * Makefile.in (SFILES): Add `probe' and `stap-probe'.
5684 (COMMON_OBS): Likewise.
5685 (HFILES_NO_SRCDIR): Add `probe'.
5686 * NEWS: Mention support for static and SystemTap probes.
5687 * amd64-tdep.c (amd64_init_abi): Initializing proper fields used by
5688 SystemTap probes' arguments parser.
5689 * arm-linux-tdep.c: Including headers needed to perform the parsing
5690 of SystemTap probes' arguments.
5691 (arm_stap_is_single_operand): New function.
5692 (arm_stap_parse_special_token): Likewise.
5693 (arm_linux_init_abi): Initializing proper fields used by SystemTap
5694 probes' arguments parser.
5695 * ax-gdb.c (require_rvalue): Removing static declaration.
5696 (gen_expr): Likewise.
5697 * ax-gdb.h (gen_expr): Declaring function.
5698 (require_rvalue): Likewise.
5699 * breakpoint.c: Include `gdb_regex.h' and `probe.h'.
5700 (bkpt_probe_breakpoint_ops): New variable.
5701 (momentary_breakpoint_from_master): Set the `probe' value.
5702 (add_location_to_breakpoint): Likewise.
5703 (break_command_1): Using proper breakpoint_ops according to the
5704 argument passed by the user in the command line.
5705 (bkpt_probe_insert_location): New function.
5706 (bkpt_probe_remove_location): Likewise.
5707 (bkpt_probe_create_sals_from_address): Likewise.
5708 (bkpt_probe_decode_linespec): Likewise.
5709 (tracepoint_probe_create_sals_from_address): Likewise.
5710 (tracepoint_probe_decode_linespec): Likewise.
5711 (tracepoint_probe_breakpoint_ops): New variable.
5712 (trace_command): Using proper breakpoint_ops according to the
5713 argument passed by the user in the command line.
5714 (initialize_breakpoint_ops): Initializing breakpoint_ops for
5715 static probes on breakpoints and tracepoints.
5716 * breakpoint.h (struct bp_location) <probe>: New field.
5717 * cli-utils.c (skip_spaces_const): New function.
5718 (extract_arg): Likewise.
5719 * cli-utils.h (skip_spaces_const): Likewise.
5720 (extract_arg): Likewise.
5721 * coffread.c (coff_sym_fns): Add `sym_probe_fns' value.
5722 * configure.ac: Append `stap-probe.o' to be generated when ELF
5723 support is present.
5724 * configure: Regenerate.
5725 * dbxread.c (aout_sym_fns): Add `sym_probe_fns' value.
5726 * elfread.c: Include `probe.h' and `arch-utils.h'.
5727 (probe_key): New variable.
5728 (elf_get_probes): New function.
5729 (elf_get_probe_argument_count): Likewise.
5730 (elf_evaluate_probe_argument): Likewise.
5731 (elf_compile_to_ax): Likewise.
5732 (elf_symfile_relocate_probe): Likewise.
5733 (stap_probe_key_free): Likewise.
5734 (elf_probe_fns): New variable.
5735 (elf_sym_fns): Add `sym_probe_fns' value.
5736 (elf_sym_fns_lazy_psyms): Likewise.
5737 (elf_sym_fns_gdb_index): Likewise.
5738 (_initialize_elfread): Initialize objfile cache for static
5739 probes.
5740 * gdb_vecs.h (struct probe): New forward declaration.
5741 (probe_p): New VEC declaration.
5742 * gdbarch.c: Regenerate.
5743 * gdbarch.h: Regenerate.
5744 * gdbarch.sh (stap_integer_prefix): New variable.
5745 (stap_integer_suffix): Likewise.
5746 (stap_register_prefix): Likewise.
5747 (stap_register_suffix): Likewise.
5748 (stap_register_indirection_prefix): Likewise.
5749 (stap_register_indirection_suffix): Likewise.
5750 (stap_gdb_register_prefix): Likewise.
5751 (stap_gdb_register_suffix): Likewise.
5752 (stap_is_single_operand): New function.
5753 (stap_parse_special_token): Likewise.
5754 (struct stap_parse_info): Forward declaration.
5755 * i386-tdep.c: Including headers needed to perform the parsing
5756 of SystemTap probes' arguments.
5757 (i386_stap_is_single_operand): New function.
5758 (i386_stap_parse_special_token): Likewise.
5759 (i386_elf_init_abi): Initializing proper fields used by SystemTap
5760 probes' arguments parser.
5761 * i386-tdep.h (i386_stap_is_single_operand): New function.
5762 (i386_stap_parse_special_token): Likewise.
5763 * machoread.c (macho_sym_fns): Add `sym_probe_fns' value.
5764 * mipsread.c (ecoff_sym_fns): Likewise.
5765 * objfiles.c (objfile_relocate1): Support relocation for static
5766 probes.
5767 * parse.c (prefixify_expression): Remove static declaration.
5768 (initialize_expout): Likewise.
5769 (reallocate_expout): Likewise.
5770 * parser-defs.h (initialize_expout): Declare function.
5771 (reallocate_expout): Likewise.
5772 (prefixify_expression): Likewise.
5773 * ppc-linux-tdep.c: Including headers needed to perform the parsing
5774 of SystemTap probes' arguments.
5775 (ppc_stap_is_single_operand): New function.
5776 (ppc_stap_parse_special_token): Likewise.
5777 (ppc_linux_init_abi): Initializing proper fields used by SystemTap
5778 probes' arguments parser.
5779 * probe.c: New file, for generic statically defined probe support.
5780 * probe.h: Likewise.
5781 * s390-tdep.c: Including headers needed to perform the parsing of
5782 SystemTap probes' arguments.
5783 (s390_stap_is_single_operand): New function.
5784 (s390_gdbarch_init): Initializing proper fields used by SystemTap
5785 probes' arguments parser.
5786 * somread.c (som_sym_fns): Add `sym_probe_fns' value.
5787 * stap-probe.c: New file, for SystemTap probe support.
5788 * stap-probe.h: Likewise.
5789 * symfile.h: Include `gdb_vecs.h'.
5790 (struct sym_probe_fns): New struct.
5791 (struct sym_fns) <sym_probe_fns>: New field.
5792 * symtab.c (init_sal): Initialize `probe' field.
5793 * symtab.h (struct probe): Forward declaration.
5794 (struct symtab_and_line) <probe>: New field.
5795 * tracepoint.c (start_tracing): Adjust semaphore on breakpoints
5796 locations.
5797 (stop_tracing): Likewise.
5798 * xcoffread.c (xcoff_sym_fns): Add `sym_probe_fns' value.
5799
5800 2012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
5801 Tom Tromey <tromey@redhat.com>
5802
5803 * ax-gdb.c (gen_expr): Clean up code to handle internal variables
5804 and to compile agent expressions.
5805 * infrun.c (siginfo_make_value): New argument `ignore'.
5806 (siginfo_funcs): New struct.
5807 (_initialize_infrun): New argument when calling
5808 `create_internalvar_type_lazy'.
5809 * thread.c (thread_id_make_value): New argument `ignore'.
5810 (thread_funcs): New struct.
5811 (_initialize_thread): New argument when calling
5812 `create_internalvar_type_lazy'.
5813 * tracepoint.c (sdata_make_value): New argument `ignore'.
5814 (sdata_funcs): New struct.
5815 (_initialize_tracepoint): New argument when calling
5816 `create_internalvar_type_lazy'.
5817 * value.c (make_value): New struct.
5818 (create_internalvar_type_lazy): New argument `data'.
5819 (compile_internalvar_to_ax): New function.
5820 (value_of_internalvar): Properly handling `make_value' case.
5821 (clear_internalvar): Likewise.
5822 (show_convenience): Adding `TRY_CATCH' block.
5823 * value.h (internalvar_make_value): Delete, replace by...
5824 (struct internalvar_funcs): ... this.
5825 (create_internalvar_type_lazy) <fun>: Delete argument.
5826 (create_internalvar_type_lazy) <funcs>, <data>: New arguments.
5827 (compile_internalvar_to_ax): New function.
5828 * windows-tdep.c (tlb_make_value): New argument `ignore'.
5829 (tlb_funcs): New struct.
5830 (_initialize_windows_tdep): New argument when calling
5831 `create_internalvar_type_lazy'.
5832
5833 2012-04-27 Mark Wielaard <mjw@redhat.com>
5834
5835 * dwarf2read.c (dwarf2_get_pc_bounds): Check DW_AT_high_pc form to
5836 see whether it is an address or a constant offset from DW_AT_low_pc.
5837 (dwarf2_record_block_ranges): Likewise.
5838 (read_partial_die): Likewise.
5839
5840 2012-04-26 Mark Wielaard <mjw@redhat.com>
5841
5842 * MAINTAINERS (Write After Approval): Add myself to the list.
5843
5844 2012-04-26 Maciej W. Rozycki <macro@codesourcery.com>
5845
5846 * proc-utils.h (proc_prettyprint_signalset): New prototype.
5847 (proc_prettyprint_signal): Likewise.
5848 (proc_prettyprint_faultset): Likewise.
5849 (proc_prettyprint_fault): Likewise.
5850 (proc_prettyprint_actionset): Likewise.
5851 (proc_prettyprint_flags): Move to new proc-flags.c section.
5852 (proc_prettyfprint_flags): New prototype.
5853 * procfs.c (proc_nsysarg, proc_sysargs): Add prototypes.
5854 (proc_syscall, proc_cursig): Likewise.
5855 (proc_set_kill_on_last_close): Likewise.
5856 (proc_unset_kill_on_last_close): Likewise.
5857 (proc_set_watchpoint): Make static.
5858 (proc_delete_dead_threads): Likewise.
5859 (procfs_set_watchpoint): Likewise.
5860 (_initialize_procfs): Add prototype.
5861 * proc-events.c: Include proc-utils.h.
5862 (init_syscall_table): Make static.
5863 * proc-api.c (_initialize_proc_api): Add prototype.
5864 * proc-flags.c: Include proc-utils.h.
5865
5866 2012-04-26 Maciej W. Rozycki <macro@codesourcery.com>
5867
5868 * configure.ac: Add AC_ARG_PROGRAM.
5869 * configure: Regenerate.
5870
5871 2012-04-26 Jan Kratochvil <jan.kratochvil@redhat.com>
5872
5873 Fix DW_AT_lower_bound defaults for DWARF-4+.
5874 * dwarf2read.c (read_subrange_type): Remove initialization of low and
5875 high. New variable low_default_is_valid. Implement DWARF-4+
5876 DW_AT_lower_bound defaults. Print complaint for DW_AT_lower_bound with
5877 no default by the DWARF standard.
5878
5879 2012-04-26 Maciej W. Rozycki <macro@mips.com>
5880 Maciej W. Rozycki <macro@codesourcery.com>
5881
5882 * infrun.c (handle_inferior_event): Move the check for return
5883 trampolines ahead of the check for function trampolines.
5884 * mips-tdep.h (MIPS_S2_REGNUM, MIPS_GP_REGNUM): New macros.
5885 * mips-tdep.c (mips_str_mips16_call_stub): New variable.
5886 (mips_str_mips16_ret_stub): Likewise.
5887 (mips_str_call_fp_stub): Likewise.
5888 (mips_str_call_stub): Likewise.
5889 (mips_str_fn_stub): Likewise.
5890 (mips_str_pic): Likewise.
5891 (mips_in_frame_stub): New function.
5892 (mips_unwind_pc): Return the return address rather than the PC
5893 if the PC of an intermediate frame is inside a call thunk.
5894 (mips_is_stub_suffix): New function.
5895 (mips_is_stub_mode): Likewise.
5896 (mips_get_mips16_fn_stub_pc): Likewise.
5897 (mips_skip_mips16_trampoline_code): Update to handle all the
5898 currently generated stub types. Don't recurse into __fn_stub
5899 thunks. Remove heuristics to handle stubs beyond etext/_etext.
5900 Use cooked register accesses.
5901 (mips_in_return_stub): Reintroduce function.
5902 (mips_skip_trampoline_code): Traverse trampolines recursively.
5903 (mips_gdbarch_init): Handle MIPS16 return trampolines.
5904
5905 2012-04-26 Joel Brobecker <brobecker@adacore.com>
5906
5907 GDB 7.4.1 released.
5908
5909 2012-04-26 Jonathan Larmour <jifl@eCosCentric.com>
5910
5911 * arm-tdep.h (VFP_REGISTER_SIZE): Define.
5912 * features/arm-with-m-vfp-d16.xml: New file. Describes
5913 Cortex-M with VFPv4-sp-d16 FPU register layout.
5914 * features/Makefile (WHICH): Add arm-with-m-vfp-d16.
5915 * features/arm-with-m-vfp-d16.c: New. Generated from above.
5916 * arm-tdep.c: Include arm-with-m-vfp-d16.c.
5917 (arm-register_g_packet_guesses): Add vfp-d16 guess.
5918 (_initialise_arm_tdep): Initialize arm-with-m-vfp-d16 tdesc.
5919
5920 2012-04-25 Doug Evans <dje@google.com>
5921
5922 * cli/cli-decode.c (print_doc_line): Use stream instead of
5923 current_uiout.
5924
5925 2012-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
5926
5927 * features/arm-with-iwmmxt.c: Regenerate.
5928 * features/arm-with-m-fpa-layout.c: Likewise.
5929 * features/arm-with-m.c: Likewise.
5930 * features/arm-with-neon.c: Likewise.
5931 * features/arm-with-vfpv2.c: Likewise.
5932 * features/arm-with-vfpv3.c: Likewise.
5933 * features/mips-dsp-linux.c: Likewise.
5934 * features/mips-linux.c: Likewise.
5935 * features/mips64-dsp-linux.c: Likewise.
5936 * features/mips64-linux.c: Likewise.
5937 * features/s390-linux32.c: Likewise.
5938 * features/s390-linux32v1.c: Likewise.
5939 * features/s390-linux32v2.c: Likewise.
5940 * features/s390-linux64.c: Likewise.
5941 * features/s390-linux64v1.c: Likewise.
5942 * features/s390-linux64v2.c: Likewise.
5943 * features/s390x-linux64.c: Likewise.
5944 * features/s390x-linux64v1.c: Likewise.
5945 * features/s390x-linux64v2.c: Likewise.
5946 * features/tic6x-c62x-linux.c: Likewise.
5947 * features/tic6x-c62x.c: Likewise.
5948 * features/tic6x-c64x-linux.c: Likewise.
5949 * features/tic6x-c64x.c: Likewise.
5950 * features/tic6x-c64xp-linux.c: Likewise.
5951 * features/tic6x-c64xp.c: Likewise.
5952 * target-descriptions.c: Only generate `field_type' and `type'
5953 variables when needed.
5954
5955 2012-04-25 Fredrik Hederstierna <fredrikh.hederstierna@securitas-direct.com>
5956
5957 * cli/cli-cmds.c (cd_command): Use memmove instead of strcpy.
5958
5959 2012-04-25 Doug Evans <dje@google.com>
5960
5961 Initial pass at Go language support.
5962 * NEWS: Mention Go.
5963 * Makefile.in (SFILES): Add go-exp.y, go-lang.c, go-typeprint.c,
5964 go-valprint.c.
5965 (COMMON_OBS): Add go-lang.o, go-val.print.o, go-typeprint.o.
5966 (YYFILES): Add go-exp.c.
5967 (YYOBJ): Add go-exp.o.
5968 (local-maintainer-clean): Delete go-exp.c.
5969 * defs.h (enum language): Add language_go.
5970 * dwarf2read.c: #include "go-lang.h".
5971 (fixup_go_packaging): New function.
5972 (process_full_comp_unit): Call it when processing Go CUs.
5973 (dwarf2_physname): Add Go support.
5974 (read_file_scope): Handle missing language spec for GNU Go.
5975 (set_cu_language): Handle DW_LANG_Go.
5976 * go-exp.y: New file.
5977 * go-lang.h: New file.
5978 * go-lang.c: New file.
5979 * go-typeprint.c: New file.
5980 * go-valprint.c: New file.
5981 * symtab.c: #include "go-lang.h".
5982 (symbol_set_language): Handle language_go.
5983 (symbol_find_demangled_name, symbol_set_names): Ditto.
5984 (symbol_natural_name, demangle_for_lookup, find_main_name): Ditto.
5985
5986 2012-04-24 Jim Meyering <meyering@redhat.com>
5987
5988 avoid a few strncpy-induced buffer overruns
5989 * procfs.c (procfs_make_note_section): Be sure to NUL-terminate
5990 fname and psargs before trying to concatenate.
5991 * tui/tui-stack.c (tui_get_function_from_frame): NUL-terminate
5992 "name" before applying strchr.
5993
5994 2012-04-25 Siva Chandra Reddy <sivachandra@google.com>
5995
5996 * CONTRIBUTE: Use unified diff instead of context diff when
5997 generating patches.
5998
5999 2012-04-24 Maciej W. Rozycki <macro@codesourcery.com>
6000
6001 * mips-tdep.c (mips_about_to_return): Remove dead MIPS16 support
6002 code. Handle JR.HB correctly.
6003
6004 2012-04-24 Maciej W. Rozycki <macro@codesourcery.com>
6005
6006 * mips-tdep.c
6007 (is_mips16_addr, unmake_mips16_addr, make_mips16_addr): Group
6008 with the other MIPS16 helpers.
6009
6010 2012-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
6011
6012 * observer.sh: Conditionally declare `args', thus cleaning up
6013 unused instances of this variable.
6014
6015 2012-04-24 Yao Qi <yao@codesourcery.com>
6016
6017 Revert this patch to allow breakpoint always-inserted
6018 in record target.
6019 2011-12-05 Pedro Alves <pedro@codesourcery.com>
6020 * breakpoint.c: Include record.h.
6021 (breakpoints_always_inserted_mode): Return false when the record
6022 target is in use.
6023
6024 * breakpoint.c (iterate_over_bp_locations): New.
6025 * breakpoint.h: Declare.
6026 New typedef walk_bp_location_callback.
6027 * record.c (record_open): Call record_init_record_breakpoints.
6028 (record_sync_record_breakpoints): New.
6029 (record_init_record_breakpoints): New.
6030 * NEWS: Mention supporting breakpoint always-inserted mode in
6031 record target.
6032
6033 2012-04-24 Marc Khouzam <marc.khouzam@ericsson.com>
6034
6035 * mi/mi-main.c (mi_cmd_execute): Choose a live thread not just
6036 any thread.
6037
6038 2012-04-24 Yao Qi <yao@codesourcery.com>
6039
6040 * breakpoint.c (ep_is_catchpoint): Renamed to ...
6041 (is_catchpoint): ... it.
6042 (print_one_breakpoint_location): Caller update.
6043 * breakpoint.h: Update declaration.
6044
6045 2012-04-23 David S. Miller <davem@davemloft.net>
6046
6047 * configure.tgt (sparc-*-linux*): Set build_gdbserver to yes.
6048
6049 2012-04-23 Tom Tromey <tromey@redhat.com>
6050
6051 * buildsym.c (add_free_pendings): Remove.
6052 * buildsym.h (add_free_pendings): Remove.
6053
6054 2012-04-23 Doug Evans <dje@google.com>
6055
6056 * dwarf2read.c (partial_die_full_name): Record DW_FORM_ref_addr in
6057 attr.u.unsnd instead of attr.u.addr.
6058 (read_attribute_value) Ditto for cases DW_FORM_ref_addr,
6059 DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4, DW_FORM_reg8,
6060 DW_FORM_ref_udata.
6061 (dump_die_shallow): Update cases DW_FORM_ref_addr,
6062 DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4. Add cases DW_FORM_ref8,
6063 DW_FORM_ref_udata.
6064 (dwarf2_get_ref_die_offset): Use DW_UNSND for reference attributes.
6065
6066 2012-04-23 Maciej W. Rozycki <macro@codesourcery.com>
6067
6068 * mips-tdep.c (mips_n32n64_return_value): Fix coding style.
6069 (mips_o32_return_value): Likewise.
6070 (mips_o64_return_value): Likewise.
6071
6072 2012-04-21 Paul Hilfinger <hilfinger@adacore.com>
6073
6074 * ada-lang.c (ada_evaluate_subexp): Add cases for
6075 TYPE_CODE_INTERNAL_FUNCTION and for TYPE_GNU_IFUNC, following
6076 their treatment in eval.c.
6077
6078 2012-04-21 David S. Miller <davem@davemloft.net>
6079
6080 * sparc-tdep.c (X_DISP10): Define.
6081 (sparc_analyze_control_transfer): Handle compare-and-branch.
6082
6083 2012-04-21 Jonathan Larmour <jifl@eCosCentric.com>
6084
6085 * features/Makefile (WHICH): Add arm-with-m and arm-with-m-fpa-layout.
6086 * arm-tdep.c (arm_register_g_packet_guesses): Fix comment.
6087
6088 2012-04-20 Nigel Stephens <nigel@mips.com>
6089 Maciej W. Rozycki <macro@codesourcery.com>
6090
6091 * mips-tdep.c (mips_float_register_p): New function.
6092 (mips_convert_register_float_case_p): Use mips_float_register_p.
6093 (mips_register_type): Likewise.
6094 (mips_print_register): Likewise.
6095 (print_gp_register_row): Likewise.
6096 (mips_print_registers_info): Likewise.
6097
6098 2012-04-20 Shun-Yen Lu <dark.asparagus@gmail.com>
6099
6100 * mips-tdep.c (mips_elf_make_msymbol_special): Fix identification
6101 of mips16 symbols.
6102
6103 2012-04-20 Andrew Pinski <apinski@cavium.com>
6104
6105 * MAINTAINERS (Write After Approval): Add myself to the list.
6106
6107 2012-04-20 Sergio Durigan Junior <sergiodj@redhat.com>
6108
6109 * MAINTAINERS: Update my e-mail address.
6110
6111 2012-04-20 Pedro Alves <palves@redhat.com>
6112
6113 * acx_configure_dir.m4 (ACX_CONFIGURE_DIR): Handle absolute
6114 $srcdir.
6115 * configure: Regenerate.
6116
6117 2012-04-20 Sergio Durigan Junior <sergiodj@redhat.com>
6118
6119 * cp-support.h: Include `gdb_vecs.h'. Delete `const_char_ptr' VEC
6120 declaration.
6121 * gdb_vecs.h: Declare `const_char_ptr' VEC.
6122
6123 2012-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
6124
6125 Fix compilation compatibility with python-2.4
6126 * python/py-type.c (convert_field): Cast ADDRSTRING for
6127 PyObject_SetAttrString as non-const. New comment.
6128
6129 2012-04-19 Tom Tromey <tromey@redhat.com>
6130
6131 * top.c (quit_target): Use all_cleanups.
6132 * main.c (captured_command_loop): Use all_cleanups.
6133 * exceptions.c (throw_exception): Use all_cleanups.
6134
6135 2012-04-19 Pedro Alves <palves@redhat.com>
6136
6137 * Makefile.in (GNULIB_BUILDDIR): New.
6138 (LIBGNU, INCGNU, GNULIB_H): Adjust.
6139 (SUBDIRS): Add $(GNULIB_BUILDDIR).
6140 (CLEANDIRS). Remove gnulib/import.
6141 (REQUIRED_SUBDIRS): Replace gnulib/import with $(GNULIB_BUILDDIR).
6142 (all-lib): Ditto.
6143 (distclean): Remove the $(GNULIB_BUILDDIR) directory.
6144 (gnulib/import/Makefile): Replace gnulib/import with
6145 $(GNULIB_BUILDDIR). Set CONFIG_FILES to just Makefile.
6146 (ACLOCAL_AMFLAGS): Remove '-I gnulib/import/m4'.
6147 (aclocal_m4_deps): Remove the gnulib dependencies. Add
6148 acx_configure_dir.m4.
6149 * acinclude.m4: Include acx_configure_dir.m4.
6150 * acx_configure_dir.m4: New file.
6151 * aclocal.m4: Regenerate.
6152 * configure.ac: Remove gl_EARLY, gl_INIT and AM_INIT_AUTOMAKE
6153 calls. Configure gnulib using ACX_CONFIGURE_DIR.
6154 (GNULIB): New variable.
6155 (GNULIB_STDINT_H): Adjust.
6156 (AC_OUTPUT): Don't output gnulib/Makefile.
6157 * gdb/defs.h: Include build-gnulib/config.h.
6158 * aclocal.m4: Regenerate.
6159 * config.in: Regenerate.
6160 * configure: Regenerate.
6161
6162 * gnulib/Makefile.in: New file.
6163 * gnulib/configure.ac: New file.
6164 * gnulib/aclocal.m4: New file.
6165 * gnulib/config.in: New file.
6166 * gnulib/configure: New file.
6167 * gnulib/: Re-run gnulib-tool to adjust.
6168
6169 2012-04-19 Doug Evans <dje@google.com>
6170
6171 * cleanups.h (struct cleanup): Move to cleanups.c.
6172 (make_cleanup_dtor_ftype): New typedef.
6173 (make_cleanup_dtor): Use it.
6174 (ALL_CLEANUPS): Replace with ...
6175 (all_cleanups): ... this. Declare. All uses updated.
6176 * cleanups.c: #include "gdb_assert.h".
6177 (sentinel_cleanup): New static global.
6178 (SENTINEL_CLEANUP): Define.
6179 (cleanup_chain, final_cleanup_chain): Initialize to SENTINEL_CLEANUP.
6180 (make_my_cleanup2): Assert result is non-NULL.
6181 (all_cleanups): New function.
6182 (save_my_cleanups): Initialize new chain to SENTINEL_CLEANUP instead
6183 of NULL.
6184
6185 2012-04-19 Pedro Alves <palves@redhat.com>
6186
6187 * Makefile.in (HFILES_NO_SRCDIR): Remove gnulib/wchar.in.h.
6188 Adjust paths to gnulib imported files.
6189
6190 2012-04-19 Pedro Alves <palves@redhat.com>
6191
6192 * gnulib/: Move whole directory ...
6193 * gnulib/import/: ... here, and re-rerun gnulib-tool to adjust.
6194 * Makefile.in (LIBGNU, INCGNU, GNULIB_H, CLEANDIRS)
6195 (REQUIRED_SUBDIRS, all-lib, gnulib/Makefile, ACLOCAL_AMFLAGS)
6196 (aclocal_m4_deps): Adjust.
6197 * aclocal.m4: Regenerate.
6198 * configure: Regenerate.
6199 * configure.ac: Adjust AC_OUTPUT output.
6200
6201 2012-04-19 Yao Qi <yao@codesourcery.com>
6202
6203 * Makefile.in (SFILES): Add common/vec.c and remove vec.c.
6204 (vec.o): New rule.
6205 * vec.c: Move it ...
6206 * common/vec.c: ... here.
6207 * vec.h: Move it ...
6208 * common/vec.h: ... here.
6209
6210 2012-04-19 Yao Qi <yao@codesourcery.com>
6211
6212 * gdb-code-style.el: New.
6213
6214 2012-04-18 Pedro Alves <palves@redhat.com>
6215
6216 Update gnulib from latest git.
6217 (639ea5ae15e39fe48d43e04864b2997301e4b969)
6218
6219 * gnulib/Makefile.am: Update.
6220 * gnulib/dummy.c: Update.
6221 * gnulib/extra/arg-nonnull.h: Update.
6222 * gnulib/extra/c++defs.h: Update.
6223 * gnulib/extra/update-copyright: Update.
6224 * gnulib/extra/warn-on-use.h: Update.
6225 * gnulib/inttypes.in.h: Update.
6226 * gnulib/m4/00gnulib.m4: Update.
6227 * gnulib/m4/extensions.m4: Update.
6228 * gnulib/m4/gnulib-cache.m4: Update.
6229 * gnulib/m4/gnulib-common.m4: Update.
6230 * gnulib/m4/gnulib-comp.m4: Update.
6231 * gnulib/m4/gnulib-tool.m4: Update.
6232 * gnulib/m4/include_next.m4: Update.
6233 * gnulib/m4/inttypes-pri.m4: Update.
6234 * gnulib/m4/inttypes.m4: Update.
6235 * gnulib/m4/longlong.m4: Update.
6236 * gnulib/m4/memchr.m4: Update.
6237 * gnulib/m4/memmem.m4: Update.
6238 * gnulib/m4/mmap-anon.m4: Update.
6239 * gnulib/m4/multiarch.m4: Update.
6240 * gnulib/m4/onceonly.m4: Update.
6241 * gnulib/m4/stddef_h.m4: Update.
6242 * gnulib/m4/stdint.m4: Update.
6243 * gnulib/m4/string_h.m4: Update.
6244 * gnulib/m4/warn-on-use.m4: Update.
6245 * gnulib/m4/wchar_h.m4: Update.
6246 * gnulib/m4/wchar_t.m4: Update.
6247 * gnulib/m4/wint_t.m4: Update.
6248 * gnulib/memchr.c: Update.
6249 * gnulib/memmem.c: Update.
6250 * gnulib/stddef.in.h: Update.
6251 * gnulib/stdint.in.h: Update.
6252 * gnulib/str-two-way.h: Update.
6253 * gnulib/string.in.h: Update.
6254 * gnulib/wchar.in.h: Update.
6255
6256 * gnulib/extra/arg-nonnull.h: Delete.
6257 * gnulib/extra/c++defs.h: Delete.
6258 * gnulib/extra/warn-on-use.h: Delete.
6259 * gnulib/m4/wchar_h.m4: Delete.
6260 * gnulib/m4/wint_t.m4: Delete.
6261 * gnulib/wchar.in.h: Delete.
6262
6263 * gnulib/extra/snippets/arg-nonnull.h: New.
6264 * gnulib/extra/snippets/c++defs.h: New.
6265 * gnulib/extra/snippets/warn-on-use.h: New.
6266
6267 * aclocal.m4: Regenerate.
6268 * config.in: Regenerate.
6269 * configure: Regenerate.
6270 * gnulib/Makefile.in: Regenerate.
6271
6272 2012-04-18 Pedro Alves <palves@redhat.com>
6273
6274 Reimport the update-copyright module from gnulib
6275 (250b80067c1e1d8faa0c42fb572f721975b929c5).
6276
6277 * configure: Regenerate.
6278 * gnulib/Makefile.am: Update.
6279 * gnulib/Makefile.in: Regenerate.
6280 * gnulib/extra/update-copyright: Update.
6281 * gnulib/m4/gnulib-cache.m4: Update.
6282 * gnulib/m4/gnulib-comp.m4: Update.
6283
6284 2012-04-18 Tristan Gingold <gingold@adacore.com>
6285
6286 * configure.ac (aix): Put -lpthread into libs.
6287 * configure: Regenerate.
6288
6289 2012-04-18 Tom Tromey <tromey@redhat.com>
6290
6291 * linespec.c (convert_linespec_to_sals): Don't use
6292 SYMBOL_OBJ_SECTION.
6293 (compare_msymbols): Arguments are minsym_and_objfile, not
6294 minimal_symbol*. Don't use SYMBOL_OBJ_SECTION.
6295
6296 2012-04-18 Pedro Alves <palves@redhat.com>
6297
6298 Revert gnulib/ part of:
6299 2011-01-01 Joel Brobecker <brobecker@adacore.com>
6300 Copyright year update in most files (performed by copyright.sh).
6301
6302 2012-04-18 Jan Kratochvil <jan.kratochvil@redhat.com>
6303
6304 Fix 64-bit constants on 32-bit hosts.
6305 * dwarf2read.c (read_unsigned_leb128): Change declaration return type
6306 from unsigned long to ULONGEST.
6307 (read_signed_leb128): Change declaration return type from long to
6308 LONGEST.
6309 (dwarf2_const_value_attr): Change declaration parameter value from long
6310 to LONGEST.
6311 (dwarf2_compute_name): Change variable value from long to LONGEST.
6312 (read_unsigned_leb128): Change return type, variable result and some
6313 casts from unsigned long to ULONGEST.
6314 (read_signed_leb128): Change return type, variable result and some
6315 casts from long to LONGEST.
6316 (dwarf2_const_value_data, dwarf2_const_value_attr): Change parameter
6317 value from long to LONGEST.
6318 (dwarf2_const_value): Change variable value from long to LONGEST.
6319 * symmisc.c (print_symbol): Change SYMBOL_VALUE format strings to use
6320 plongest and hex_string.
6321 * symtab.h (struct general_symbol_info): Change ivalue from long to
6322 LONGEST, remove the comment.
6323 * tracepoint.c (validate_actionline, collect_symbol, scope_info):
6324 Change SYMBOL_VALUE format strings to use plongest and hex_string.
6325
6326 2012-04-18 Siddhesh Poyarekar <siddhesh@redhat.com>
6327
6328 PR symtab/7259:
6329 * ada-exp.y (convert_char_literal): Use TYPE_FIELD_ENUMVAL.
6330 * ada-lang.c (ada_discrete_type_high_bound)
6331 (ada_discrete_type_low_bound): Fix function comment. Use
6332 TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
6333 (ada_identical_enum_types_p): Use TYPE_FIELD_ENUMVAL.
6334 (pos_atr, value_val_atr): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
6335 * ada-typeprint.c (print_enum_type): Change variable lastval to LONGEST.
6336 Use TYPE_FIELD_ENUMVAL.
6337 * ada-valprint.c (print_optional_low_bound, ada_print_scalar)
6338 (ada_val_print_1): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
6339 * c-typeprint.c (c_type_print_base): Move variable lastval to inner
6340 block, change it to LONGEST. Use TYPE_FIELD_ENUMVAL for
6341 TYPE_CODE_ENUM.
6342 * coffread.c (coff_read_enum_type): Use SET_FIELD_ENUMVAL.
6343 * dwarf2read.c (process_enumeration_scope): Likewise.
6344 * gdb-gdb.py (TypeFlagsPrinter): Use field.enumval instead of
6345 field.bitpos.
6346 (class StructMainTypePrettyPrinter): Support also
6347 FIELD_LOC_KIND_ENUMVAL.
6348 * gdbtypes.c (get_discrete_bounds): Use TYPE_FIELD_ENUMVAL for
6349 TYPE_CODE_ENUM.
6350 (recursive_dump_type): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
6351 (copy_type_recursive): Support also FIELD_LOC_KIND_ENUMVAL.
6352 * gdbtypes.h (enum field_loc_kind): New FIELD_LOC_KIND_ENUMVAL.
6353 (struct main_type.flds_bnds.fields.loc): Adjust bitpos comment. New
6354 field enumval.
6355 (struct main_type.flds_bnds.bields): Adjust loc_kind and bitsize to
6356 accommodate enumval.
6357 (struct call_site): Adjust loc_kind to accommodate enumval.
6358 (FIELD_ENUMVAL, FIELD_ENUMVAL_LVAL, SET_FIELD_ENUMVAL)
6359 (TYPE_FIELD_ENUMVAL): New macros.
6360 * m2-typeprint.c (m2_enum): Use TYPE_FIELD_ENUMVAL.
6361 * mdebugread.c (parse_symbol): Use TYPE_FIELD_ENUMVAL for
6362 TYPE_CODE_ENUM.
6363 * p-typeprint.c (pascal_type_print_base): Likewise.
6364 * python/lib/gdb/printing.py (class FlagEnumerationPrinter): Use
6365 enumval.
6366 * python/lib/gdb/types.py (make_enum_dict): Likewise.
6367 * python/py-type.c (convert_field): New variable addrstring. Use
6368 TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
6369 (check_types_equal): Support also FIELD_LOC_KIND_ENUMVAL.
6370 * stabsread.c (read_enum_type): Use SET_FIELD_ENUMVAL.
6371 * typepint.c (print_type_scalar): Use TYPE_FIELD_ENUMVAL for
6372 TYPE_CODE_ENUM.
6373 * valprint.c (generic_val_print): Likewise.
6374
6375 2012-04-17 Doug Evans <dje@google.com>
6376
6377 * dwarf2read.c (lookup_signatured_type): Return NULL instead of 0.
6378
6379 * dwarf2read.c: Whitespace fixes.
6380 (lookup_signatured_type): Tweak comment.
6381 (get_die_type_at_offset): Fix comment.
6382
6383 2012-04-17 Joel Brobecker <brobecker@adacore.com>
6384
6385 * xcoffread.c (xcoff_secnum_to_sections): New function.
6386 (secnum_to_section, secnum_to_bfd_section): Reimplement
6387 using xcoff_secnum_to_sections. Rename "secnum" parameter
6388 into "n_scnum".
6389 (RECORD_MINIMAL_SYMBOL): Delete.
6390 (record_minimal_symbol): New function.
6391 (scan_xcoff_symtab): Replace uses of RECORD_MINIMAL_SYMBOL
6392 by call to record_minimal_symbol and set misc_func_recorded
6393 to 1. Set last_csect_sec to the XCOFF section index instead
6394 of GDB's section_offset index. Update calls to
6395 prim_record_minimal_symbol_and_info to pass the BFD section
6396 as well.
6397
6398 2012-04-17 Joel Brobecker <brobecker@adacore.com>
6399
6400 * xcoffread.c (read_xcoff_symtab): Delete variables
6401 last_csect_val and last_csect_sec and associated code.
6402
6403 2012-04-17 Doug Evans <dje@google.com>
6404
6405 * cleanups.c (make_my_cleanup,make_my_cleanup2): Make static.
6406 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
6407 * cleanups.h (make_my_cleanup,make_my_cleanup2): Delete
6408 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Delete.
6409
6410 * cleanups.h: New file.
6411 * cleanups.c: New file.
6412 * Makefile.in (SFILES): Add cleanups.c.
6413 (HFILES_NO_SRCDIR): Add cleanups.h.
6414 (COMMON_OBS): Add cleanups.o.
6415 * defs.h (struct cleanup): Moved to cleanups.h.
6416 (do_cleanups,do_final_cleanups): Ditto.
6417 (discard_cleanups,discard_final_cleanups): Ditto
6418 (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
6419 (save_cleanups,save_final_cleanups): Ditto.
6420 (restore_cleanups,restore_final_cleanups): Ditto.
6421 (null_cleanup): Ditto.
6422 (make_my_cleanup,make_my_cleanup2): Ditto.
6423 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
6424 * utils.c (cleanup_chain,final_cleanup_chain): Moved to cleanups.c.
6425 (do_cleanups,do_final_cleanups): Ditto.
6426 (discard_cleanups,discard_final_cleanups): Ditto
6427 (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
6428 (save_cleanups,save_final_cleanups): Ditto.
6429 (restore_cleanups,restore_final_cleanups): Ditto.
6430 (null_cleanup): Ditto.
6431 (make_my_cleanup,make_my_cleanup2): Ditto.
6432 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
6433
6434 * utils.c (make_cleanup_freeargv): Use make_cleanup instead of
6435 make_my_cleanup.
6436 (make_cleanup_dyn_string_delete): Ditto.
6437 (make_cleanup_ui_file_delete): Ditto.
6438 (make_cleanup_ui_out_redirect_pop): Ditto.
6439 (make_cleanup_free_section_addr_info): Ditto.
6440 (make_cleanup_restore_integer): Ditto.
6441 (make_cleanup_unpush_target): Ditto.
6442 (make_cleanup_value_free_to_mark): Ditto.
6443 (make_cleanup_value_free): Ditto.
6444 (make_cleanup_free_so): Ditto.
6445
6446 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6447
6448 New option "set debug auto-load".
6449 * NEWS: New commands "set debug auto-load" and "show debug auto-load".
6450 * auto-load.c (debug_auto_load, show_debug_auto_load: New.
6451 (auto_load_safe_path_vec_update)
6452 (filename_is_in_auto_load_safe_path_vec): Call fprintf_unfiltered
6453 if DEBUG_AUTO_LOAD.
6454 (file_is_auto_load_safe): New parameters debug_fmt and ....
6455 Call fprintf_unfiltered if DEBUG_AUTO_LOAD.
6456 (source_gdb_script_for_objfile): Extend the file_is_auto_load_safe
6457 caller by explanatory string.
6458 (_initialize_auto_load): Register "set debug auto-load".
6459 * auto-load.h (file_is_auto_load_safe): New parameters debug_fmt
6460 and ....
6461 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
6462 (try_thread_db_load_from_dir): Extend the file_is_auto_load_safe caller
6463 by explanatory string.
6464 * main.c (captured_main): Likewise.
6465 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile)
6466 (source_section_scripts): Likewise.
6467
6468 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6469
6470 New option "set auto-load safe-path".
6471 * NEWS: New commands "set auto-load safe-path"
6472 and "show auto-load safe-path".
6473 * auto-load.c: Include gdb_vecs.h, readline/tilde.h and completer.h.
6474 (auto_load_safe_path, auto_load_safe_path_vec)
6475 (auto_load_safe_path_vec_update, set_auto_load_safe_path)
6476 (show_auto_load_safe_path, add_auto_load_safe_path, filename_is_in_dir)
6477 (filename_is_in_auto_load_safe_path_vec, file_is_auto_load_safe): New.
6478 (source_gdb_script_for_objfile): New variable is_safe. Call
6479 file_is_auto_load_safe. Return if it is not.
6480 (struct loaded_script): New field loaded.
6481 (maybe_add_script): Add parameter loaded. Initialize SLOT with it.
6482 (print_script): Use LOADED indicator instead of FULL_PATH. Change
6483 output "Missing" to "No".
6484 (_initialize_auto_load): New variable cmd. Initialize
6485 auto_load_safe_path. Register "set auto-load safe-path",
6486 "show auto-load safe-path" and "add-auto-load-safe-path".
6487 * auto-load.h (maybe_add_script): Add parameter loaded.
6488 (file_is_auto_load_safe): New declaration.
6489 * config.in: Regenerate.
6490 * configure: Regenerate.
6491 * configure.ac: New parameters --with-auto-load-safe-path
6492 and --without-auto-load-safe-path.
6493 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
6494 (try_thread_db_load_from_dir): Check file_is_auto_load_safe first.
6495 * main.c (captured_main): Check file_is_auto_load_safe for
6496 LOCAL_GDBINIT.
6497 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile): New
6498 variable is_safe. Call file_is_auto_load_safe. Return if it is not.
6499 (source_section_scripts): Call file_is_auto_load_safe. Return if it is
6500 not.
6501
6502 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6503
6504 auto-load: Implementation.
6505 * NEWS: New descriptions for "info auto-load",
6506 "info auto-load gdb-scripts", "info auto-load python-scripts",
6507 "info auto-load local-gdbinit" and "info auto-load libthread-db".
6508 Deprecate "info auto-load-scripts", "set auto-load-scripts on|off"
6509 and "show auto-load-scripts". New description for "set auto-load",
6510 "show auto-load", "set auto-load gdb-scripts",
6511 "show auto-load gdb-scripts", "set auto-load python-scripts",
6512 "show auto-load python-scripts", "set auto-load local-gdbinit",
6513 "show auto-load local-gdbinit", "set auto-load libthread-db" and
6514 "show auto-load libthread-db".
6515 * auto-load.c: Remove include python/python-internal.h. Add includes
6516 exceptions.h, cli/cli-script.h, gdbcmd.h, cli/cli-decode.h and
6517 cli/cli-setshow.h.
6518 (GDB_AUTO_FILE_NAME, source_gdb_script_for_objfile)
6519 (auto_load_gdb_scripts, show_auto_load_gdb_scripts): New.
6520 (gdbpy_global_auto_load): Rename to ...
6521 (global_auto_load): ... here.
6522 (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
6523 (auto_load_local_gdbinit_loaded, show_auto_load_local_gdbinit)
6524 (script_language_gdb, source_gdb_script_for_objfile): New.
6525 (struct loaded_script): New field language.
6526 (hash_loaded_script_entry, eq_loaded_script_entry): Calculate also
6527 LANGUAGE.
6528 (maybe_add_script): Add parameter language. Drop redundant
6529 entry.full_path initialization. Initialize entry.language and
6530 (*slot)->language.
6531 (auto_load_objfile_script): Change parameter suffix to language.
6532 Remove the call of maybe_add_script.
6533 Call language->source_script_for_objfile.
6534 (load_auto_scripts_for_objfile, struct collect_matching_scripts_data):
6535 New.
6536 (collect_matching_scripts): Adjust it for
6537 struct collect_matching_scripts_data.
6538 (auto_load_info_scripts_pattern_nl): New variable.
6539 (info_auto_load_scripts): Rename to ...
6540 (auto_load_info_scripts): ... here, add parameter language. Adjust it
6541 for struct collect_matching_scripts_data.
6542 (info_auto_load_gdb_scripts, info_auto_load_local_gdbinit)
6543 (set_auto_load_cmd, auto_load_set_cmdlist_get, show_auto_load_cmd)
6544 (auto_load_show_cmdlist_get, info_auto_load_cmd)
6545 (auto_load_info_cmdlist_get): New.
6546 (_initialize_auto_load): Move add_info of "auto-load-scripts" to
6547 python/py-auto-load.c. New installment for "set auto-load gdb-scripts",
6548 "info auto-load gdb-scripts", "set auto-load local-gdbinit" and
6549 "info auto-load local-gdbinit".
6550 * auto-load.h (struct script_language): New.
6551 (gdbpy_global_auto_load): Rename to ...
6552 (global_auto_load): ... here.
6553 (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
6554 (auto_load_local_gdbinit_loaded): New declarations.
6555 (maybe_add_script): New parameter language.
6556 (auto_load_objfile_script): Change parameter suffix to language.
6557 (load_auto_scripts_for_objfile, auto_load_info_scripts_pattern_nl)
6558 (auto_load_info_scripts, auto_load_set_cmdlist_get)
6559 (auto_load_show_cmdlist_get, auto_load_info_cmdlist_get): New
6560 declarations.
6561 * linux-thread-db.c: Include auto-load.h and ctype.h.
6562 (auto_load_thread_db, show_auto_load_thread_db): New.
6563 (struct thread_db_info): New field filename.
6564 (delete_thread_db_info): Call xfree for FILENAME.
6565 (try_thread_db_load): Initialize FILENAME.
6566 (try_thread_db_load_from_pdir, try_thread_db_load_from_dir): Return
6567 if !AUTO_LOAD_THREAD_DB.
6568 (info_auto_load_libthread_db_compare, info_auto_load_libthread_db): New.
6569 (_initialize_thread_db): Install auto_load_thread_db
6570 as "set auto-load libthread-db" and install info_auto_load_libthread_db
6571 as "info auto-load libthread-db".
6572 * main.c (captured_main): Rename gdbpy_global_auto_load to
6573 global_auto_load. Initialize AUTO_LOAD_LOCAL_GDBINIT_PATHNAME and
6574 AUTO_LOAD_LOCAL_GDBINIT_LOADED.
6575 (print_gdb_help): Extend the help for 'local init file'.
6576 * python/py-auto-load.c: Remove a comment about gdb scripts extension.
6577 (GDBPY_AUTO_SECTION_NAME): Extend the comment it is Python specific.
6578 (auto_load_scripts): Rename to ...
6579 (auto_load_python_scripts): ... here, update the comment.
6580 (gdbpy_load_auto_script_for_objfile): New declaration.
6581 (show_auto_load_python_scripts, script_language_python)
6582 (gdbpy_load_auto_script_for_objfile): New.
6583 (source_section_scripts): Refactor the code.
6584 (load_auto_scripts_for_objfile): Rename to ...
6585 (gdbpy_load_auto_scripts_for_objfile): ... here, update the
6586 auto_load_objfile_script caller, drop GDBPY_GLOBAL_AUTO_LOAD checking.
6587 (info_auto_load_python_scripts): New.
6588 (gdbpy_initialize_auto_load): New variables cmd and cmd_name.
6589 Rename "set auto-load-scripts" to "set auto-load python-scripts".
6590 Register "set auto-load-scripts" as its deprecated alias. Register
6591 "info auto-load python-scripts". Register "info auto-load-scripts" as
6592 its deprecated alias.
6593 (load_auto_scripts_for_objfile): Rename to ...
6594 (gdbpy_load_auto_scripts_for_objfile): ... here.
6595 * python/python.h (load_auto_scripts_for_objfile): Rename to ...
6596 (gdbpy_load_auto_scripts_for_objfile): ... here.
6597
6598 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6599
6600 auto-load: Move files.
6601 * Makefile.in (SFILES): Add auto-load.c.
6602 (HFILES_NO_SRCDIR): Add auto-load.h.
6603 (COMMON_OBS): Add auto-load.o.
6604 (distclean): Change .gdbinit for gdb-gdb.gdb.
6605 * auto-load.c: New file, with parts from python/py-auto-load.c.
6606 * auto-load.h: New file, with parts from python/python.h.
6607 * configure: Regenerate.
6608 * configure.ac (AC_OUTPUT): Change .gdbinit for gdb-gdb.gdb.
6609 * gdb-gdb.gdb.in: New file, renamed from gdbinit.in.
6610 * gdbinit.in: Remove file, rename it to gdb-gdb.gdb.in.
6611 * main.c: Include auto-load.h.
6612 * python/py-auto-load.c: Move include filenames.h, gdb_regex.h,
6613 command.h, observer.h and progspace.h to auto-load.c. Add include
6614 auto-load.h.
6615 (gdbpy_global_auto_load, struct auto_load_pspace_info)
6616 (struct loaded_script, auto_load_pspace_data)
6617 (auto_load_pspace_data_cleanup, get_auto_load_pspace_data)
6618 (hash_loaded_script_entry, eq_loaded_script_entry)
6619 (init_loaded_scripts_info, get_auto_load_pspace_data_for_loading)
6620 (maybe_add_script): Move to auto-load.c.
6621 (source_section_scripts): Change maybe_add_script parameters passing,
6622 use script_not_found_warning_print.
6623 (clear_section_scripts, auto_load_objfile_script)
6624 (auto_load_new_objfile, loaded_script_ptr)
6625 (DEF_VEC_P (loaded_script_ptr), collect_matching_scripts, print_script)
6626 (sort_scripts_by_name, info_auto_load_scripts): Move to auto-load.c.
6627 (gdbpy_initialize_auto_load): Move auto_load_pspace_data,
6628 auto_load_new_objfile and info_auto_load_scripts initizations to
6629 auto-load.c.
6630 * python/python.h (gdbpy_global_auto_load): Move to auto-load.h.
6631
6632 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6633
6634 Code cleanup.
6635 * charset.c (find_charset_names): Remove variables ix and elt.
6636 Use free_char_ptr_vec.
6637 * elfread.c (build_id_to_debug_filename): New variables debugdir_vec,
6638 back_to and ix. Use dirnames_to_char_ptr_vec. Remove variable
6639 debugdir_end. New variable debugdir_len.
6640 * gdb_vecs.h (free_char_ptr_vec, make_cleanup_free_char_ptr_vec)
6641 (dirnames_to_char_ptr_vec_append, dirnames_to_char_ptr_vec): New
6642 declarations.
6643 * progspace.c (clear_program_space_solib_cache): Remove variables ix
6644 and elt. Use free_char_ptr_vec.
6645 * source.c (add_path): Remove variables argv, arg and argv_index.
6646 New variables dir_vec, back_to, ix and name.
6647 Use dirnames_to_char_ptr_vec_append. Use freeargv instead of
6648 make_cleanup_freeargv. Remove variable separator. Simplify the code
6649 no longer expecting DIRNAME_SEPARATOR.
6650 (openp): Remove variable p, p1 and len. New variables dir_vec,
6651 back_to, ix and dir. Use dirnames_to_char_ptr_vec. Simplify the code
6652 no longer expecting DIRNAME_SEPARATOR.
6653 * symfile.c (find_separate_debug_file): New variables debugdir_vec,
6654 back_to and ix. Use dirnames_to_char_ptr_vec. Remove variable
6655 debugdir_end.
6656 * utils.c (free_char_ptr_vec, do_free_char_ptr_vec)
6657 (make_cleanup_free_char_ptr_vec, dirnames_to_char_ptr_vec_append)
6658 (dirnames_to_char_ptr_vec): New functions.
6659
6660 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6661
6662 Code cleanup.
6663 * source.c (add_path): Remove always true conditional 'p == 0' and
6664 unindent its code block.
6665
6666 2012-04-17 Pedro Alves <palves@redhat.com>
6667
6668 * gdbtypes.h (FIELD_BITPOS): Rename to ...
6669 (FIELD_BITPOS_LVAL): ... this.
6670 (FIELD_BITPOS): New.
6671 (SET_FIELD_BITPOS): Adjust to use FIELD_BITPOS_LVAL.
6672 * dwarf2read.c (dwarf2_add_field): Use SET_FIELD_BITPOS.
6673 * gdbtypes.c (append_composite_type_field_aligned): Adjust to use
6674 SET_FIELD_BITPOS.
6675 * gnu-v3-abi.c (build_gdb_vtable_type): Adjust to use
6676 SET_FIELD_BITPOS.
6677 * stabsread.c (read_cpp_abbrev, read_one_struct_field)
6678 (read_baseclasses): Adjust to use SET_FIELD_BITPOS.
6679 * target-descriptions.c (tdesc_gdb_type): Adjust to use
6680 SET_FIELD_BITPOS.
6681
6682 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6683
6684 Do not rely on FIELD_LOC_KIND_BITPOS being zero.
6685 * ada-lang.c (ada_template_to_fixed_record_type_1): Replace
6686 TYPE_FIELD_BITPOS used as lvalue by SET_FIELD_BITPOS.
6687 * gdbtypes.c (append_flags_type_flag): Likewise, twice.
6688 * jv-lang.c (java_link_class_type): Likewise, once.
6689 * stabsread.c (read_enum_type): Likewise.
6690
6691 2012-04-16 Yao Qi <yao@codesourcery.com>
6692
6693 * common/agent.c (agent_run_command): Add one more parameter `len'.
6694 Update callers.
6695 * common/agent.h: Update declaration.
6696 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
6697 Update.
6698 (linux_child_static_tracepoint_markers_by_strid): Ditto.
6699
6700 2012-04-14 Anton Gorenkov <xgsa@yandex.ru>
6701
6702 PR mi/13393
6703 * value.c (value_actual_type): New function.
6704 * value.h (value_actual_type): New declaration.
6705 * varobj.c (update_type_if_necessary): New function.
6706 (varobj_create): Call value_actual_type instead of
6707 value_type.
6708 (install_dynamic_child): distinct changed and type changed MI variable
6709 objects.
6710 (update_dynamic_varobj_children): Updated for install_dynamic_child
6711 change. All callers updated.
6712 (varobj_update): Support for MI variable object type change if
6713 the value changed and RTTI is used to determine the type.
6714 (create_child_with_value): Call value_actual_type instead of
6715 value_type.
6716 (adjust_value_for_child_access): Extended with a new parameter which
6717 specify whether the given value should be casted to enclosing type.
6718 All callers updated.
6719
6720 2012-04-14 Yao Qi <yao@codesourcery.com>
6721
6722 Import gnulib module inttypes from git
6723 (250b80067c1e1d8faa0c42fb572f721975b929c5)
6724 * Makefile.in (HFILES_NO_SRCDIR): Add gnulib/inttypes.in.h.
6725 (aclocal_m4_deps): Add gnulib/m4/inttypes.m4 and
6726 gnulib/m4/inttypes-pri.m4
6727 * aclocal.m4, config.in, configure: Regenerated.
6728 * gnulib/Makefile.am: Update.
6729 * gnulib/Makefile.in: Update.
6730 * gnulib/m4/gnulib-cache.m4: Update.
6731 * gnulib/m4/gnulib-comp.m4: Update.
6732 * gnulib/inttypes.in.h: New.
6733 * gnulib/m4/inttypes-pri.m4: New.
6734 * gnulib/m4/inttypes.m4: New.
6735
6736 2012-04-13 Luis Machado <lgustavo@codesourcery.com>
6737
6738 * infrun.c (resume): Update PC address to the real PC after
6739 preparing to do displaced stepping.
6740
6741 2012-04-12 Doug Evans <dje@google.com>
6742
6743 * dwarf2read.c (lookup_signatured_type): Remove arg "objfile", unused.
6744 All callers updated.
6745
6746 2012-04-12 Mark Kettenis <kettenis@gnu.org>
6747
6748 * i386bsd-nat.c (_initialize_i386bsd_nat): Add missing prototype.
6749
6750 2012-04-12 Doug Evans <dje@google.com>
6751
6752 * dwarf2read.c (create_all_type_units): Renamed from
6753 create_debug_types_hash_table. All callers updated.
6754
6755 * dwarf2read.c (create_signatured_type_table_from_index): Rename
6756 local type_sig to sig_type, type_offset to type_offset_in_tu.
6757 (hash_signatured_type): Renamed from hash_type_signature,
6758 all callers updated.
6759 (eq_signatured_type): Renamed from eq_type_signature,
6760 all callers updated.
6761 (create_debug_types_hash_table): Rename local type_sig to sig_type.
6762 (process_enumeration_scope): Ditto.
6763 (lookup_signatured_type_at_offset): Ditto.
6764 (load_full_type_unit, read_signatured_type): Ditto.
6765
6766 2012-04-12 Yao Qi <yao@codesourcery.com>
6767
6768 * remote.c (async_remote_interrupt): Correct function name in
6769 debug message.
6770 (async_remote_interrupt_twice): Ditto.
6771
6772 2012-04-11 Yuanhui Zhang <asmwarrior@gmail.com>
6773
6774 * source.c (find_and_open_source): Consistently pass resulting
6775 full path through xfullpath.
6776
6777 2012-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6778
6779 Provide more specific displaced-stepping memory error message.
6780 * infrun.c (displaced_step_prepare): New variable status. Call
6781 target_read_memory instead of read_memory, provide more specific
6782 error message.
6783
6784 2012-04-11 Tristan Gingold <gingold@adacore.com>
6785
6786 PR gdb/13901
6787 * darwin-nat.c (darwin_execvp): Revert previous patch.
6788
6789 2012-04-11 Tristan Gingold <gingold@adacore.com>
6790
6791 PR gdb/13901
6792 * darwin-nat.c (darwin_resume_thread): Call darwin_set_sstep only
6793 in case of change.
6794
6795 2012-04-11 Tristan Gingold <gingold@adacore.com>
6796
6797 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
6798 warning.
6799
6800 2012-04-11 Siva Chandra Reddy <sivachandra@google.com>
6801
6802 New command 'explore' which helps explore values and types in
6803 scope.
6804 * NEWS: Add an entry about the new 'explore' command.
6805 * data-directory/Makefile.in: Add gdb/command/explore.py
6806 * python/lib/gdb/command/explore.py: Implemention of the 'explore'
6807 command using the GDB Python API.
6808
6809 2012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
6810
6811 * mips-tdep.c (mips_skip_pic_trampoline_code): Correct sign
6812 extension in jump target calculation.
6813
6814 2012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
6815
6816 * mips-tdep.c (mips32_next_pc): Handle JALX.
6817
6818 2012-04-10 Yao Qi <yao@codesourcery.com>
6819
6820 * Makefile.in (gnulib/Makefile): Remove duplicated dependency.
6821
6822 2012-04-10 Yao Qi <yao@codesourcery.com>
6823
6824 * Makefile.in (aclocal_m4_deps): Add gnulib/m4/gnulib-cache.m4
6825 and gnulib/m4/gnulib-tool.m4.
6826
6827 2012-04-10 Doug Evans <dje@google.com>
6828
6829 * dwarf2read.c (dwarf2_per_cu_data). Clarify comment.
6830 (load_partial_dies): Clarify comment.
6831 (find_partial_die): Support rereading type units.
6832 Clarify CU handling, if we know offset is in CU, don't search for the
6833 containing CU. Add comment regarding memory waste.
6834
6835 2012-04-10 H.J. Lu <hongjiu.lu@intel.com>
6836
6837 * features/Makefile (WHICH): Add i386/x32, i386/x32-linux,
6838 i386/x32-avx and i386/x32-avx-linux.
6839 (i386/x32-expedite): New.
6840 (i386/x32-linux-expedite): Likewise.
6841 (i386/x32-avx-expedite): Likewise.
6842 (i386/x32-avx-linux-expedite): Likewise.
6843 ($(outdir)/i386/x32.dat): Likewise.
6844 ($(outdir)/i386/x32-linux.dat): Likewise.
6845 ($(outdir)/i386/x32-avx.dat): Likewise.
6846 ($(outdir)/i386/x32-avx-linux.dat): Likewise.
6847
6848 * features/i386/x32-avx-linux.xml: New file.
6849 * features/i386/x32-avx.xml: Likewise.
6850 * features/i386/x32-core.xml: Likewise.
6851 * features/i386/x32-linux.xml: Likewise.
6852 * features/i386/x32.xml: Likewise.
6853
6854 * features/i386/x32-avx-linux.c: New. Generated.
6855 * features/i386/x32-avx.c: Likewise.
6856 * features/i386/x32-linux.c: Likewise.
6857 * features/i386/x32.c: Likewise.
6858 * regformats/i386/x32-avx-linux.dat: Likewise.
6859 * regformats/i386/x32-avx.dat: Likewise.
6860 * regformats/i386/x32-linux.dat: Likewise.
6861 * regformats/i386/x32.dat: Likewise.
6862
6863 2012-04-10 Tristan Gingold <gingold@adacore.com>
6864
6865 * darwin-nat.c (darwin_kill_inferior): Always use the no ptrace
6866 code to kill the inferior.
6867
6868 2012-04-09 Mark Kettenis <kettenis@gnu.org>
6869
6870 * ada-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
6871 defines.
6872 * c-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
6873 defines.
6874 * cp-name-parser.y (yyss, yysslim, yyssp, yystacksize, yyvs)
6875 (yyvsp): New defines.
6876 * f-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
6877 defines.
6878 * jv-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
6879 defines.
6880 * m2-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
6881 defines.
6882 * objc-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
6883 defines.
6884 * p-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
6885 defines.
6886
6887 2012-04-09 Mark Kettenis <kettenis@gnu.org>
6888
6889 * sparc64-tdep.c (sparc64_store_arguments)
6890 (sparc64_store_arguments): Fix coding style.
6891
6892 2012-04-07 Mark Kettenis <kettenis@gnu.org>
6893
6894 * sparc64-tdep.c (sparc64_store_arguments): Fix handling of
6895 complex floats, adjust some related comments and tighten a related
6896 assertion.
6897 (sparc64_extract_return_value): Handle complex floats.
6898
6899 2012-04-07 Doug Evans <dje@google.com>
6900
6901 * dwarf2read.c (load_partial_dies): Change condition to assert.
6902
6903 2012-04-06 Doug Evans <dje@google.com>
6904
6905 * amd64-tdep.c (amd64_analyze_prologue): Recognize both variations of
6906 "mov %rsp,%rbp".
6907
6908 2012-04-05 Kevin Buettner <kevinb@redhat.com>
6909
6910 * v850-tdep.c (E_NUM_OF_V850_REGS, E_NUM_OF_V850E_REGS): Fix
6911 fencepost error.
6912 (v850_frame_cache): Use gdbarch_num_regs() instead of E_NUM_REGS.
6913 (v850_gdbarch_init): Set `num_regs' as appropriate for the
6914 architecture.
6915
6916 2012-04-05 Keith Seitz <keiths@redhat.com>
6917
6918 * linespec.c (decode_compound): Remove.
6919 (enum offset_relative_sign): New enum.
6920 (struct line_offset): New struct.
6921 (struct linespec): New struct.
6922 (struct linespec_state): Move file_symtabs,
6923 user_filename, and user_function into struct linespec.
6924 Make result an anonymous struct holding vectors of
6925 symbolp and minsym_and_objfile_d.
6926 Add language member.
6927 (enum ls_token_type): New enum.
6928 (linespec_keywords): New array.
6929 (struct ls_token): New struct.
6930 (struct ls_parser): New struct.
6931 (linespec_lexer_lex_number): New function.
6932 (linespec_lexer_lex_keyword): New function.
6933 (is_ada_operator): New function.
6934 (skip_quote_char): New function.
6935 (copy_token_string): New function.
6936 (is_closing_quote_enclosed): New function.
6937 (find_parameter_list_end): New function.
6938 (linespec_lexer_lex_string): New function.
6939 (linespec_lexer_lex_one): New function.
6940 (linespec_lexer_consume_token): New function.
6941 (linespec_lexer_peek_token): New function.
6942 (cplusplus_error): Remove unused function.
6943 (find_methods): Update comment.
6944 (find_toplevel_char): Return const.
6945 (is_objc_method_format): Remove unused function.
6946 (find_toplevel_string): New function.
6947 (is_linespec_boundary): Remove.
6948 (symbol_not_found_error): New function.
6949 (find_method_overload_end): Remove function.
6950 (unexpected_linespec_error): New function.
6951 (keep_name_info): Remove.
6952 (linespec_parse_line_offset): New function.
6953 (linespec_parse_basic): New function.
6954 (canonicalize_linespec): New function.
6955 (decode_line_internal): Remove.
6956 (create_sals_line_offset): New function adapted from
6957 decode_all_digits.
6958 (convert_linespec_to_sals): New function.
6959 (parse_linespec): New function.
6960 (linespec_parser_new): New function.
6961 (linespec_state_destructor): Change parameter type to
6962 struct linespec_state *.
6963 Add language parameter.
6964 Remove freeing of moved members.
6965 (linespec_parser_delete): New function.
6966 (decode_line_full): Use parse_linespec and linespec_parser_new.
6967 (decode_line_1): Likewise.
6968 (decode_indirect): Rename to ...
6969 (linespec_expression_to_pc): ... this and rewrite
6970 to simply find CORE_ADDR, storing this result for later
6971 conversion to SALs.
6972 (locate_first_half): Remove.
6973 (deocde_objc): Add parameter LS.
6974 Initialize new struct collect_info members.
6975 Handle minimal symbols, too.
6976 (decode_compound): Delete.
6977 (lookup_prefix_sym): Rewrite.
6978 (compare_msymbols): New function.
6979 (find_method): Rewrite.
6980 Do not call cplusplus_error.
6981 (symtabs_from_filename): Rewrite.
6982 (collect_function_symbols): Delete.
6983 (find_function_symbols): Rewrite without ARGPTR-style
6984 processing.
6985 (decode_all_digits): Delete. (Rewritten as create_sals_line_offset.)
6986 (decode_dollar): Adapted and renamed to ...
6987 (linespec_parse_variable): ... this.
6988 (find_linespec_symbols): New function.
6989 (decode_label): Adapted and renamed to ...
6990 (find_label_symbols): ... this.
6991 (decode_digits_list_mode): Add and use LS argument.
6992 (decode_digits_ordinary): Likewise.
6993 (collect_symbols): Do not collect SALs, just symbols and msymbols.
6994 If in list mode, allow any symbol class. Otherwise, only
6995 permit LOC_BLOCK symbols.
6996 (minsym_found): Update comments.
6997 (search_minsyms_for_name): Do not convert the matching symbol
6998 into a SAL. Simply push the symbol and objfile into the
6999 result vector.
7000 (decode_variable): Delete. Contents adapted into
7001 find_linespec_symbols.
7002
7003 * cp-support.c (SKIP_SPACE): Remove.
7004 (operator_tokens): Remove unused global.
7005 (cp_validate_operator): Remove.
7006 * cp-support.h (cp_validate_operator): Remove declaration.
7007
7008 2012-04-03 Jan Kratochvil <jan.kratochvil@redhat.com>
7009
7010 * cp-valprint.c (cp_print_value_fields): Check valprint_check_validity
7011 for TYPE_VPTR_FIELDNO.
7012 * valprint.c (valprint_check_validity): Make it global, move the
7013 function comment ...
7014 * value.h (valprint_check_validity): ... to this new declaration.
7015
7016 2012-04-02 Tristan Gingold <gingold@adacore.com>
7017
7018 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Use
7019 the STATE32 api for i386 state.
7020 (i386_darwin_store_inferior_registers): Likewise.
7021
7022 2012-04-02 Tristan Gingold <gingold@adacore.com>
7023
7024 * i386-darwin-tdep.c (i386_darwin_thread_state_reg_offset): Fix
7025 SS offset.
7026 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
7027 format_string.
7028
7029 2012-04-02 Tristan Gingold <gingold@adacore.com>
7030
7031 PR gdb/13901
7032 * darwin-nat.c (darwin_execvp): Set binary preference.
7033
7034 2012-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
7035
7036 * NEWS (set breakpoint condition-evaluation): Use imperative mood.
7037
7038 2012-03-30 Tom Tromey <tromey@redhat.com>
7039
7040 * python/python.c (gdbpy_decode_line): Move cleanup creation out
7041 of TRY_CATCH. Fix error handling.
7042 * python/py-value.c (convert_value_from_python): Move 'old'
7043 declaration to innermost scope.
7044
7045 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7046 Andrey Smirnov <andrew.smirnov@gmail.com>
7047
7048 -Wshadow warning fix.
7049 * ada-lang.c (ada_make_symbol_completion_list): Rename parameters
7050 "wild_match" and "encoded" into "wild_match_p" and "encoded_p".
7051 Adjust code accordingly.
7052
7053 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7054
7055 * ada-lang.c (symbol_completion_add): Rename parameter
7056 "encoded" into "encoded_p". Ajust code and documentation
7057 accordingly.
7058
7059 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7060 Andrey Smirnov <andrew.smirnov@gmail.com>
7061
7062 -Wshadow warning fix.
7063 * ada-lang.c (symbol_completion_add): Rename parameter
7064 "wild_match" into wild_match_p. Update code and documentation
7065 accordingly.
7066
7067 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7068
7069 * ada-lang.c (symbol_completion_match): Rename parameter
7070 "encoded" into "encoded_p". Ajust code and documentation
7071 accordingly.
7072
7073 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7074 Andrey Smirnov <andrew.smirnov@gmail.com>
7075
7076 -Wshadow warning fix.
7077 * ada-lang.c (symbol_completion_match): Rename parameter
7078 "wild_match" into "wild_match_p". Adjust code and function
7079 documentation accordingly.
7080
7081 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7082 Andrey Smirnov <andrew.smirnov@gmail.com>
7083
7084 -Wshadow warning fix.
7085 * ada-lang.c (ada_lookup_encoded_symbol): Rename parameter
7086 "symbol_info" into "info". Adjust code accordingly.
7087 (ada_lookup_symbol): Likewise.
7088
7089 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7090
7091 * ada-lang.c (ada_lookup_symbol_list): Minor reformatting
7092 of this function's documentation.
7093
7094 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7095 Andrey Smirnov <andrew.smirnov@gmail.com>
7096
7097 -Wshadow warning fix.
7098 * ada-lang.c (ada_lookup_symbol_list): Rename "wild_match"
7099 variable into "wild_match_p". Adjust code accordingly.
7100
7101 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7102 Andrey Smirnov <andrew.smirnov@gmail.com>
7103
7104 -Wshadow warning fix.
7105 * ada-lang.c (ada_add_local_symbols): Rename "wild_match"
7106 parameter into "wild_match_p". Adjust code accordingly.
7107 Document this parameter in the function description.
7108
7109 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7110 Andrey Smirnov <andrew.smirnov@gmail.com>
7111
7112 -Wshadow warning fix.
7113 * ada-lang.c (add_symbols_from_enclosing_procs): Rename
7114 "wild_match" parameter to "wild_match_p" (-Wshadow).
7115
7116 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7117
7118 * ada-lang.c (ada_lookup_simple_minsym): Remove trailing spaces
7119 in function documentation.
7120
7121 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7122 Andrey Smirnov <andrew.smirnov@gmail.com>
7123
7124 -Wshadow warning fix.
7125 * ada-lang.c (ada_lookup_simple_minsym): Rename wild_match local
7126 variable into wild_match_p. Adjust code accordingly.
7127
7128 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7129 Andrey Smirnov <andrew.smirnov@gmail.com>
7130
7131 * ada-valprint.c (ada_val_print_1): Move the code handling
7132 TYPE_CODE_ENUM inside its own lexical block. Declare
7133 variables len and val there, instead of in the function's
7134 top level block. Avoid declaring deref_val again in a way
7135 that shadows another variable of the same name declared
7136 in one of the up-level blocks. Just re-use the up-level
7137 variable instead.
7138
7139 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7140
7141 * ada-lang.c (ada_lookup_encoded_symbol): Now returns void.
7142 Replace block_found argument by symbol_info. Adjust
7143 implementation accordingly. Add function documentation.
7144 (ada_lookup_symbol): Adjust to new ada_lookup_encoded_symbol.
7145 Fix documentation.
7146 * ada-lang.h (ada_lookup_encoded_symbol): Update declaration.
7147 * ada-exp.y (write_object_renaming): Adjust to new
7148 ada_lookup_encoded_symbol API.
7149
7150 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7151
7152 * ada-lang.h (struct ada_symbol_info): Reformat. Improve
7153 documentation.
7154
7155 2012-03-28 Rathish C <rathish.c@kpitcummins.com>
7156
7157 * v850-tdep.c: Add the enum values for mpu and fpu registers.
7158 (v850_register_name): Add the mpu and fpu register names.
7159 (v850e_register_name): Add the mpu and fpu register names.
7160 (v850e2_register_name): New function.
7161 (v850_gdbarch_init): Add case for bfd_mach_v850e2 and
7162 bfd_mach_v850e2v3.
7163
7164 2012-03-28 Joel Brobecker <brobecker@adacore.com>
7165
7166 * NEWS: Add entry for Ada varobj support.
7167
7168 2012-03-28 Joel Brobecker <brobecker@adacore.com>
7169
7170 * varobj.c (default_value_is_changeable_p): New function,
7171 extracted from varobj_value_is_changeable_p. Add declaration.
7172 (ada_value_is_changeable_p): New function, extracted from
7173 varobj_value_is_changeable_p. Add declaration.
7174 (struct language_specific): New field "value_is_changeable_p".
7175 (languages): Add entries for new field.
7176 (varobj_create): Set language before calling install_new_value.
7177 (varobj_value_is_changeable_p): Reimplement to call the varobj's
7178 "value_is_changeable_p" language callback.
7179
7180 2012-03-28 Joel Brobecker <brobecker@adacore.com>
7181
7182 * ada-varobj.h, ada-varobj.c: New files.
7183 * Makefile.in (SFILES): Add ada-varobj.c.
7184 (HFILES_NO_SRCDIR): Add ada-varobj.h.
7185 (COMMON_OBS): Add ada-varobj.o.
7186
7187 2012-03-28 Joel Brobecker <brobecker@adacore.com>
7188
7189 * varobj.c (ada_value_has_mutated): Add declaration. New function.
7190 (struct language_specific): New field "value_has_mutated".
7191 (languages): Set field "value_has_mutated" in each entry of array.
7192 (varobj_value_has_mutated): New function.
7193 (varobj_udpdate): Add handling of type mutation.
7194 (value_of_root): Add handling of type mutation.
7195 (ada_value_has_mutated): New function.
7196
7197 2012-03-28 Pedro Alves <palves@redhat.com>
7198
7199 * ia64-linux-nat.c (supply_fpregset, ia64_linux_fetch_register):
7200 Always supply $fr0 as 0.0 and $fr1 as 1.0.
7201
7202 2012-03-28 Tom Tromey <tromey@redhat.com>
7203
7204 * python/py-inferior.c (infpy_read_memory): Remove cleanups and
7205 explicitly free 'buffer' on exit paths. Decref 'membuf_object'
7206 before returning.
7207
7208 2012-03-28 Tom Tromey <tromey@redhat.com>
7209
7210 * .dir-locals.el: New file.
7211
7212 2012-03-28 Pedro Alves <palves@redhat.com>
7213
7214 * ia64-linux-nat.c (u_offsets): Map IA64_EC_REGNUM to PT_AR_EC.
7215
7216 2012-03-28 Joel Brobecker <brobecker@adacore.com>
7217
7218 * ia64-linux-nat.c (ia64_linux_fetch_register): Add special
7219 handling for r0.
7220
7221 2012-03-27 Pedro Alves <palves@redhat.com>
7222
7223 Eliminate struct ui_stream.
7224
7225 * ui-out.h (struct ui_stream): Delete.
7226 (ui_out_field_stream): Adjust prototype.
7227 (ui_out_stream_new, ui_out_stream_delete)
7228 (make_cleanup_ui_out_stream_delete): Delete declarations.
7229 * ui-out.c (ui_out_field_stream): Change prototype to take a
7230 ui_file instead of a ui_stream. Adjust.
7231 (ui_out_stream_new, ui_out_stream_delete, do_stream_delete)
7232 (make_cleanup_ui_out_stream_delete): Delete.
7233 * breakpoint.c (print_breakpoint_location)
7234 (print_one_detail_ranged_breakpoint, print_it_watchpoint): Use
7235 ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
7236 * disasm.c (dump_insns): Ditto.
7237 (do_mixed_source_and_assembly, do_assembly_only): Adjust
7238 prototype.
7239 (gdb_disassembly): Use ui_file/mem_fileopen instead of
7240 ui_stream/ui_out_stream_new.
7241 * infcmd.c (print_return_value): Ditto.
7242 * osdata.c (info_osdata_command): Don't allocate a local
7243 ui_stream.
7244 * stack.c (print_frame_arg, print_frame_args, print_frame): Use
7245 ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
7246 * tracepoint.c (print_one_static_tracepoint_marker): Don't
7247 allocate a local ui_stream.
7248 * mi/mi-cmd-stack.c (list_arg_or_local): Use ui_file/mem_fileopen
7249 instead of ui_stream/ui_out_stream_new.
7250 (list_args_or_locals): Don't allocate a local ui_stream.
7251 * mi/mi-main.c (get_register, mi_cmd_data_evaluate_expression)
7252 (mi_cmd_data_read_memory): Use ui_file/mem_fileopen instead of
7253 ui_stream/ui_out_stream_new.
7254 * cli/cli-setshow.c (do_setshow_command): Ditto.
7255
7256 2012-03-27 Oza Pawandeep <oza.pawandeep@gmail.com>
7257
7258 * arm-linux-tdep.c (arm_linux_init_abi): Call
7259 set_gdbarch_process_record. Initialize `arm_swi_record' field.
7260 * arm-tdep.c (arm_process_record): New function.
7261 (deallocate_reg_mem): New function.
7262 (decode_insn): New function.
7263 (thumb_record_branch): New function.
7264 (thumb_record_ldm_stm_swi(): New function.
7265 (thumb_record_misc): New function.
7266 (thumb_record_ld_st_stack): New function.
7267 (thumb_record_ld_st_imm_offset): New function.
7268 (thumb_record_ld_st_reg_offset(): New function.
7269 (thumb_record_add_sub_cmp_mov): New function.
7270 (thumb_record_shift_add_sub): New function.
7271 (arm_record_coproc_data_proc): New function.
7272 (arm_record_coproc): New function.
7273 (arm_record_b_bl): New function.
7274 (arm_record_ld_st_multiple): New function.
7275 (arm_record_ld_st_reg_offset): New function.
7276 (arm_record_ld_st_imm_offset): New function.
7277 (arm_record_data_proc_imm): New function.
7278 (arm_record_data_proc_misc_ld_str): New function.
7279 (arm_record_extension_space): New function.
7280 (arm_record_strx): New function.
7281 (sbo_sbz): New function.
7282 (struct insn_decode_record): New structure for arm insn record.
7283 (REG_ALLOC): New macro for reg allocations.
7284 (MEM_ALLOC): New macro for memory allocations.
7285 * arm-tdep.h (struct gdbarch_tdep): New field 'arm_swi_record'.
7286
7287 2012-03-27 Andreas Schwab <schwab@linux-m68k.org>
7288
7289 * m68klinux-nat.c (fetch_register): Fix strict-aliasing violation.
7290 (store_register): Likewise.
7291
7292 2012-03-26 Oza Pawandeep <oza.pawandeep@gmail.com>
7293
7294 * MAINTAINERS (Write After Approval): Add myself to the list.
7295
7296 2012-03-25 Jan Kratochvil <jan.kratochvil@redhat.com>
7297
7298 * NEWS (set breakpoint condition-evaluation): Change "gdb" to "host".
7299 Describe also the option "auto".
7300
7301 2012-03-22 Richard Henderson <rth@redhat.com>
7302
7303 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Fix prototype.
7304 * sparc-nat.c (sparc_xfer_wcookie): Make static.
7305
7306 2012-03-22 Richard Henderson <rth@redhat.com>
7307
7308 * jit.c (jit_read_code_entry): Compute alignment and offset of
7309 int64_t member before computing entry_size.
7310
7311 2012-03-22 Siva Chandra Reddy <sivachandra@google.com>
7312
7313 Python scripting: Add new method Value.referenced_value to
7314 gdb.Value which can dereference pointer as well as reference
7315 values.
7316 * NEWS: Add entry under 'Python scripting' about the new method
7317 Value.referenced_value on gdb.Value objects.
7318 * python/py-value.c (valpy_referenced_value): New function
7319 defining a new method on gdb.Value objects which can dereference
7320 pointer and reference values.
7321
7322 2012-03-22 Siva Chandra Reddy <sivachandra@google.com>
7323
7324 * MAINTAINERS (Write After Approval): Add myself to the list.
7325
7326 2012-03-21 Kevin Buettner <kevinb@redhat.com>
7327
7328 * symtab.c (skip_prologue_sal): Change test to check for "main()"
7329 in addition to "main".
7330
7331 2012-03-21 Joel Brobecker <brobecker@adacore.com>
7332
7333 * expression.h (op_name): Add declaration.
7334 * expprint.c (op_name): Remove declaration. Make non-static.
7335 * ax-gdb.c (gen_expr): Use op_name instead of op_string.
7336
7337 2012-03-21 Thomas Schwinge <thomas@codesourcery.com>
7338
7339 * amd64-linux-nat.c (amd64_linux_siginfo_fixup): Use siginfo_t instead
7340 of struct siginfo.
7341 * arm-linux-nat.c (arm_linux_stopped_data_address): Likewise.
7342 * ia64-linux-nat.c (ia64_linux_stopped_data_address): Likewise.
7343 * linux-nat.c (linux_nat_siginfo_fixup, siginfo_fixup)
7344 (linux_xfer_siginfo, linux_nat_set_siginfo_fixup)
7345 (linux_nat_get_siginfo): Likewise.
7346 * linux-nat.h (struct lwp_info, linux_nat_set_siginfo_fixup)
7347 (linux_nat_get_siginfo): Likewise.
7348 * linux-tdep.c (linux_get_siginfo_type): Likewise.
7349 * ppc-linux-nat.c (ppc_linux_stopped_data_address): Likewise.
7350 * procfs.c (gdb_siginfo_t): Likewise.
7351
7352 2012-03-21 Mike Frysinger <vapier@gentoo.org>
7353
7354 * .gitignore: Ignore more files.
7355
7356 2012-03-20 Pedro Alves <palves@redhat.com>
7357
7358 * remote.c (remote_start_remote): Clear `rs->starting_up' on early
7359 returns.
7360
7361 2012-03-20 Yao Qi <yao@codesourcery.com>
7362
7363 * amd64-tdep.c (amd64_displaced_step_copy_insn): Complete missing "}" in
7364 comment.
7365
7366 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
7367
7368 Code cleanupp: Use cu_offset and sect_offset compile time type checking.
7369 * dwarf2expr.c (add_piece, dwarf_get_base_type, execute_stack_op)
7370 (ctx_no_dwarf_call, ctx_no_get_base_type): Use cu_offset and
7371 sect_offset.
7372 * dwarf2expr.h (cu_offset, sect_offset): New types.
7373 (struct dwarf_expr_context_funcs) <dwarf_call>
7374 (struct dwarf_expr_context_funcs) <get_base_type>: Use cu_offset and
7375 sect_offset.
7376 (struct dwarf_expr_context) <len>: Improve the comment.
7377 (struct dwarf_expr_piece, ctx_no_dwarf_call, ctx_no_get_base_type): Use
7378 cu_offset and sect_offset.
7379 * dwarf2loc.c (per_cu_dwarf_call, dwarf_expr_dwarf_call)
7380 (dwarf_expr_get_base_type, needs_frame_dwarf_call)
7381 (dwarf2_compile_expr_to_ax, disassemble_dwarf_expression): Likewise.
7382 * dwarf2loc.h: Include dwarf2expr.h.
7383 (dwarf2_fetch_die_location_block, dwarf2_get_die_type): Use cu_offset
7384 and sect_offset.
7385 * dwarf2read.c (struct dwarf2_per_objfile) <debug_types_type_hash>:
7386 Improve the comment.
7387 (struct comp_unit_head, struct dwarf2_cu, struct dwarf2_per_cu_data)
7388 (struct signatured_type, struct line_header, struct partial_die_info)
7389 (struct die_info, find_partial_die, dwarf2_get_ref_die_offset)
7390 (lookup_signatured_type_at_offset, dwarf2_find_containing_comp_unit)
7391 (get_die_type_at_offset, create_cus_from_index)
7392 (create_signatured_type_table_from_index, dw2_get_file_names)
7393 (offset_in_cu_p, read_comp_unit_head, error_check_comp_unit_head)
7394 (read_and_check_comp_unit_head, read_and_check_type_unit_head)
7395 (create_debug_types_hash_table, process_psymtab_comp_unit)
7396 (load_partial_comp_unit, create_all_comp_units)
7397 (partial_die_parent_scope, partial_die_full_name, skip_one_die)
7398 (load_full_comp_unit, dwarf2_physname, read_import_statement)
7399 (inherit_abstract_dies, read_func_scope, read_call_site_scope)
7400 (dwarf2_add_member_fn, process_enumeration_scope, read_module_type)
7401 (read_typedef, die_hash, die_eq, read_full_die, dwarf2_read_abbrevs)
7402 (load_partial_dies, read_partial_die, find_partial_die_in_comp_unit)
7403 (find_partial_die, read_attribute_value, lookup_die_type)
7404 (dump_die_shallow, store_in_ref_table): Use cu_offset and sect_offset.
7405 (is_ref_attr): New function comment.
7406 (dwarf2_get_ref_die_offset): New function comment, new variable retval.
7407 Use cu_offset and sect_offset.
7408 (follow_die_offset, follow_die_ref, dwarf2_fetch_die_location_block)
7409 (dwarf2_get_die_type, follow_die_sig, lookup_signatured_type_at_offset)
7410 (load_full_type_unit, read_signatured_type, per_cu_header_read_in)
7411 (dwarf2_find_containing_comp_unit, struct dwarf2_offset_and_type)
7412 (offset_and_type_hash, offset_and_type_eq, set_die_type)
7413 (get_die_type_at_offset, partial_die_hash, partial_die_eq)
7414 (write_one_signatured_type, write_psymtabs_to_index): Use cu_offset and
7415 sect_offset.
7416
7417 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
7418
7419 Code cleanup.
7420 * python/py-auto-load.c (source_section_scripts): New variable back_to.
7421 Turn fclose and xfree calls into make_cleanup_fclose and make_cleanup
7422 with xfree.
7423 (auto_load_objfile_script): Turn fclose into make_cleanup_fclose.
7424
7425 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
7426
7427 * NEWS: Describe new options --init-command=FILE, -ix and
7428 --init-eval-command=COMMAND, -iex.
7429 * main.c (struct cmdarg): New enum items CMDARG_INIT_FILE and
7430 CMDARG_INIT_COMMAND.
7431 (captured_main): New enum items OPT_IX and OPT_IEX. Add
7432 "init-command", "init-eval-command", "ix" and "iex" to the variable
7433 long_options. Handle OPT_IX and OPT_IEX. Process them from CMDARG_VEC.
7434 New comment for CMDARG_FILE and CMDARG_COMMAND processing.
7435 (print_gdb_help): Describe --init-command=FILE, -ix and
7436 --init-eval-command=COMMAND, -iex.
7437
7438 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
7439
7440 Code cleanup.
7441 * main.c (struct cmdarg): Move it here from main. Add more comments.
7442 (cmdarg_s, VEC (cmdarg_s)): New.
7443 (main): Move struct cmdarg from here. New variables cmdarg_vec and
7444 cmdarg_p. Remove variables cmdsize and ncmd and their initialization.
7445 Install cleanup for cmdarg_vec. Update filling for options 'x' and
7446 'X'. Replace cmdarg processing by cmdarg_vec processing. Remove xfree
7447 of CMDARG.
7448
7449 2012-03-19 Tom Tromey <tromey@redhat.com>
7450
7451 * gnu-v3-abi.c (gnuv3_print_vtable): Initialize 'result_vec'.
7452
7453 2012-03-16 Jan Kratochvil <jan.kratochvil@redhat.com>
7454
7455 PR symtab/13777
7456 * dwarf2read.c (process_full_comp_unit): Set LOCATIONS_VALID only for
7457 GCC >=4.5.
7458
7459 2012-03-16 Chris January <chris.january@allinea.com>
7460
7461 * tui-tui.win.c (tui_resize_all): Use erase and clearok instead
7462 of clear.
7463
7464 2012-03-16 Chris January <chris.january@allinea.com>
7465
7466 * source.c (add_path): Use memmove instead of strcpy because the
7467 strings overlap.
7468
7469 2012-03-16 Joel Brobecker <brobecker@adacore.com>
7470
7471 * value.h (set_value_parent): Add declaration.
7472 * value.c (set_value_parent): New function.
7473 (value_address): If VALUE->PARENT is not NULL, then use it as
7474 the base address instead of VALUE->LOCATION.address.
7475 * ada-lang.c (ada_value_primitive_packed_val): Keep V's address
7476 the same as OBJ's address. Adjust V's offset accordingly.
7477 Set V's parent.
7478
7479 2012-03-16 Gary Benson <gbenson@redhat.com>
7480
7481 PR breakpoints/10738
7482 * dwarf2read.c (use_deprecated_index_sections): New global.
7483 (struct partial_die_info): New member may_be_inlined.
7484 (read_partial_die): Set may_be_inlined where appropriate.
7485 (add_partial_subprogram): Add partial symbols for partial
7486 DIEs that may be inlined.
7487 (new_symbol_full): Add inlined subroutines to the current
7488 scope.
7489 (write_psymtabs_to_index): Bump version number.
7490 (dwarf2_read_index): Read only version 6 indices unless
7491 use_deprecated_index_sections is set.
7492 * linespec.c (symbol_and_data_callback): New structure.
7493 (iterate_inline_only): New function.
7494 (iterate_over_all_matching_symtabs): New argument
7495 "include_inline". If nonzero, also call the callback for
7496 symbols representing inlined subroutines.
7497 (lookup_prefix_sym): Pass extra argument to the above.
7498 (find_function_symbols): Likewise.
7499 (add_matching_symbols_to_info): Likewise.
7500 * NEWS: Mention that GDB can now set breakpoints on inlined
7501 functions.
7502
7503 2012-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
7504
7505 * p-typeprint.c (pascal_type_print_method_args):
7506 Fix display of parameter of methods.
7507
7508 2012-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
7509
7510 * amd64-windows-nat.c (_initialize_amd64_windows_nat):
7511 Add missing prototype.
7512
7513 2012-03-16 Yao Qi <yao@codesourcery.com>
7514 Jan Kratochvil <jan.kratochvil@redhat.com>
7515
7516 Fix false compilation warning.
7517 * gnu-v3-abi.c (print_one_vtable): Initialize ADDR.
7518
7519 2012-03-15 Jonathan Larmour <jifl@eCosCentric.com>
7520 Pedro Alves <pedro@codesourcery.com>
7521
7522 * arm-tdep.c: Include "remote.h" and "features/arm-with-m-fpa-layout.c".
7523 (arm_register_g_packet_guesses): New function.
7524 (arm_gdbarch_init): Don't force a target description with
7525 registers when the executable is detected as M-profile. Instead
7526 set gdbarch->tdep->is_m. Register `g' packet guesses.
7527 (_initialize_arm_tdep): Initialize the new target description.
7528 * features/arm-with-m-fpa-layout.xml: New description.
7529 * features/arm-with-m-fpa-layout.c: New, generated.
7530
7531 2012-03-15 Joel Brobecker <brobecker@adacore.com>
7532
7533 * breakpoint.c (breakpoint_xfer_memory): Add assertion.
7534 Update function description.
7535 (insert_bp_location): Do not wipe bl->target_info out.
7536 * mem-break.c: #include "gdb_string.h".
7537 (default_memory_insert_breakpoint): Do not call target_read_memory
7538 with a pointer to the breakpoint's shadow_contents buffer. Use
7539 a local buffer instead.
7540 * m32r-tdep.c (m32r_memory_insert_breakpoint): Ditto.
7541
7542 2012-03-15 Tom Tromey <tromey@redhat.com>
7543
7544 * NEWS: Mention "info vtbl", not "info vtable".
7545 * cp-support.c (info_vtbl_command): Fix comment.
7546 (_initialize_cp_support): Fix text.
7547
7548 2012-03-15 Tom Tromey <tromey@redhat.com>
7549
7550 * cp-valprint.c (cp_print_value_fields): Use
7551 print_function_pointer_address for vtable slot.
7552
7553 2012-03-15 Tom Tromey <tromey@redhat.com>
7554
7555 * gnu-v3-abi.c (struct value_and_voffset): New.
7556 (hash_value_and_voffset, eq_value_and_voffset)
7557 (compare_value_and_voffset, compute_vtable_size)
7558 (print_one_vtable, gnuv3_print_vtable): New functions.
7559 (init_gnuv3_ops): Initialize 'print_vtable' field.
7560 * cp-support.c (info_vtbl_command): New function.
7561 (_initialize_cp_support): Add "info vtbl".
7562 * cp-abi.h (cplus_print_vtable): Declare.
7563 (struct cp_abi_ops) <print_vtable>: New field.
7564 * cp-abi.c (cplus_print_vtable): New function.
7565 * NEWS: Update.
7566
7567 2012-03-15 Tom Tromey <tromey@redhat.com>
7568
7569 * d-lang.c (d_language_defn) <la_iterate_over_symbols>: Set to
7570 iterate_over_symbols.
7571
7572 2012-03-14 Doug Evans <dje@google.com>
7573
7574 * dwarf2read.c (dwarf_stack_op_name): Add DW_OP_GNU_encoded_addr,
7575 DW_OP_GNU_parameter_ref.
7576
7577 2012-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
7578
7579 Fix double prompt of 'interpreter-exec mi'.
7580 * mi/mi-interp.c (mi_execute_command_input_handler): New prototype.
7581 (mi_interpreter_resume): use it.
7582 (mi_execute_command_input_handler): New function.
7583 * mi/mi-main.c (mi_execute_command): Move prompt printing to
7584 mi_execute_command_input_handler.
7585
7586 2012-03-13 Josh Matthews <josh@joshmatthews.net> (tiny change)
7587
7588 * darwin-nat-info.c (_initialize_darwin_info_commands): Add
7589 prototype.
7590 (darwin_debug_port_info): Make static.
7591 * darwin-nat.c (_initialize_darwin_inferior): Add prototype.
7592 * machoread.c (_initialize_machoread): Add prototype.
7593 * i386-darwin-nat.c (i386_darwin_dr_set, i386_darwin_dr_get)
7594 (i386_darwin_set_control, i386_darwin_get_control)
7595 i386_darwin_dr_set_addr, i386_darwin_get_addr)
7596 i386_darwin_get_status, i386_darwin_get_control):
7597 Comment out with HW_WATCHPOINT_NOT_YET_ENABLED macro.
7598
7599 2012-03-13 Joel Brobecker <brobecker@adacore.com>
7600
7601 * ax-gdb.c (gen_usual_unary): Remove special handling of
7602 enum and bool types.
7603
7604 2012-03-13 Joel Brobecker <brobecker@adacore.com>
7605
7606 * ax-gdb.c (gen_fetch): Add handling for TYPE_CODE_RANGE types.
7607
7608 2012-03-13 Joel Brobecker <brobecker@adacore.com>
7609
7610 * aix-thread.c (supply_fprs): Make more consistent with fill_fprs.
7611
7612 2012-03-13 Chris January <chris.january@allinea.com>
7613
7614 * aix-thread.c (fill_sprs): Store the floating point registers
7615 at the correct offsets into vals.
7616
7617 2012-03-13 Doug Evans <dje@google.com>
7618
7619 * NEWS: Mention symbol-reloading has been deleted.
7620 * symfile.c (symbol_reloading): Delete.
7621 (show_symbol_reloading): Delete.
7622 (_initialize_symfile): Delete set/show symbol-reloading.
7623
7624 * dwarf2read.c (load_partial_comp_unit): Defer adding cu to
7625 read_in_chain until we have successfully read it in.
7626 (load_full_comp_unit): Ditto.
7627 (read_signatured_type): Add comment.
7628
7629 2012-03-13 Chris January <chris.january@allinea.com>
7630
7631 * stabsread.c (fix_common_block): Change type of valu argument
7632 to CORE_ADDR.
7633
7634 2012-03-13 Chris January <chris.january@allinea.com>
7635
7636 * rs6000-tdep.c (skip_prologue): Support the oril r29, r1, 0x0
7637 instruction.
7638
7639 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
7640
7641 * common/linux-procfs.c (linux_proc_get_int): New, from
7642 linux_proc_get_tgid, change its LWPID type to pid_t, add parameter
7643 field.
7644 (linux_proc_get_tgid): Only call linux_proc_get_int.
7645 (linux_proc_get_tracerpid): New.
7646 (linux_proc_pid_has_state): New, from linux_proc_pid_is_zombie.
7647 (linux_proc_pid_is_stopped, linux_proc_pid_is_zombie): Only call
7648 linux_proc_pid_has_state.
7649 * common/linux-procfs.h (linux_proc_get_tracerpid): New declaration.
7650 * common/linux-ptrace.c: Include linux-procfs.h and buffer.h.
7651 (linux_ptrace_attach_warnings): New.
7652 * common/linux-ptrace.h (struct buffer, linux_ptrace_attach_warnings):
7653 New declaration.
7654 * linux-nat.c: Include exceptions.h, linux-ptrace.h and buffer.h.
7655 (linux_nat_attach): New variables ex, buffer, message and message_s.
7656 Wrap to_attach by TRY_CATCH and call linux_ptrace_attach_warnings.
7657
7658 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
7659
7660 * Makefile.in (linux-ptrace.o): New.
7661 * common/linux-procfs.c (linux_proc_pid_is_zombie): New,
7662 from linux-nat.c.
7663 * common/linux-procfs.h (linux_proc_pid_is_zombie): New declaration.
7664 * common/linux-ptrace.c: New file.
7665 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-ptrace.o.
7666 * config/arm/linux.mh: Likewise.
7667 * config/i386/linux.mh: Likewise.
7668 * config/i386/linux64.mh: Likewise.
7669 * config/ia64/linux.mh: Likewise.
7670 * config/m32r/linux.mh: Likewise.
7671 * config/m68k/linux.mh: Likewise.
7672 * config/mips/linux.mh: Likewise.
7673 * config/pa/linux.mh: Likewise.
7674 * config/powerpc/linux.mh: Likewise.
7675 * config/powerpc/ppc64-linux.mh: Likewise.
7676 * config/powerpc/spu-linux.mh: Likewise.
7677 * config/s390/s390.mh: Likewise.
7678 * config/sparc/linux.mh: Likewise.
7679 * config/sparc/linux64.mh: Likewise.
7680 * config/xtensa/linux.mh: Likewise.
7681 * linux-nat.c (linux_lwp_is_zombie): Remove, move it to
7682 common/linux-procfs.c.
7683 (wait_lwp): Rename linux_lwp_is_zombie to linux_proc_pid_is_zombie.
7684
7685 2012-03-13 Hui Zhu <teawater@gmail.com>
7686 Pedro Alves <palves@redhat.com>
7687
7688 * breakpoint.c (init_breakpoint_sal): New flags parameter. Handle
7689 CREATE_BREAKPOINT_FLAGS_INSERTED.
7690 (create_breakpoint_sal, create_breakpoints_sal)
7691 (base_breakpoint_create_breakpoints_sal)
7692 (tracepoint_create_breakpoints_sal)
7693 (strace_marker_create_breakpoints_sal): New flags parameter. Pass
7694 down.
7695 (break_command_1, handle_gnu_v3_exceptions, trace_command)
7696 (ftrace_command, strace_command): Adjust.
7697 (create_tracepoint_from_upload): Pass
7698 CREATE_BREAKPOINT_FLAGS_INSERTED.
7699 * breakpoint.h (enum breakpoint_create_flags): New.
7700 (create_breakpoint): New flags parameter.
7701 * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust.
7702 * python/py-breakpoint.c (bppy_init): Adjust.
7703 * python/py-finishbreakpoint.c (bpfinishpy_init): Adjust.
7704 * spu-tdep.c (spu_catch_start): Adjust.
7705
7706 2012-03-13 Pedro Alves <palves@redhat.com>
7707 Hui Zhu <teawater@gmail.com>
7708 Yao Qi <yao@codesourcery.com>
7709
7710 * remote.c (struct remote_state): New field `starting_up'.
7711 (remote_start_remote): Set and clear it.
7712 (remote_can_download_tracepoint): If starting up, return false.
7713
7714 2012-03-13 Yao Qi <yao@codesourcery.com>
7715
7716 * inferior.h (struct inferior): Remove fields any_syscall_count,
7717 syscalls_counts and total_syscalls_count. Move them to new
7718 struct catch_syscall_inferior_data in breakpoint.c.
7719 * breakpoint.c: Call DEF_VEC_I(int).
7720 (struct catch_syscall_inferior_data): New.
7721 (get_catch_syscall_inferior_data): New.
7722 (catch_syscall_inferior_data_cleanup): New.
7723 (insert_catch_syscall): Update to access data in
7724 struct catch_syscall_inferior_data.
7725 (insert_catch_syscall): Likewise.
7726 (remove_catch_syscall): Likewise.
7727 (remove_catch_syscall): Likewise.
7728 (is_syscall_catchpoint_enabled): Likewise.
7729 (add_catch_command): Likewise.
7730 (_initialize_breakpoint): Register cleanup.
7731 * breakpoint.h: Removed DEF_VEC_I(int).
7732 * dwarf2loc.c: Call DEF_VEC_I(int).
7733 * mi/mi-main.c: Likewise.
7734
7735 2012-03-12 Mark Kettenis <kettenis@gnu.org>
7736
7737 * inf-ptrace.c (inf_ptrace_post_attach): Make static.
7738
7739 2012-03-12 Chris January <chris.january@allinea.com>
7740
7741 * aix-thread.c (_initialize_aix_thread): Add prototype.
7742 * rs6000-nat.c (_initialize_rs6000_nat): Ditto.
7743 * xcoffsolib.c (_initialize_xcoffsolib): Ditto.
7744
7745 2012-03-12 Joel Brobecker <brobecker@adacore.com>
7746
7747 * amd64bsd-nat.c: Move #include of "amd64bsd-nat.h" after
7748 include of "amd64-nat.h".
7749
7750 2012-03-12 Tom Tromey <tromey@redhat.com>
7751
7752 * buildsym.c (record_pending_block): Now static.
7753 * buildsym.h: (record_pending_block): Remove.
7754
7755 2012-03-12 Andreas Tobler <andreast@fgznet.ch>
7756
7757 * amd64bsd-nat.c: Include amd64bsd-nat.h.
7758
7759 2012-03-09 Tom Tromey <tromey@redhat.com>
7760
7761 * dwarf2read.c (struct dwarf2_cu) <checked_producer,
7762 producer_is_gxx_lt_4_6>: New fields.
7763 (producer_is_gxx_lt_4_6): Use and update producer cache fields.
7764
7765 2012-03-09 Tom Tromey <tromey@redhat.com>
7766
7767 * dwarf2read.c (dwarf2_attr): Avoid tail-recursive call.
7768
7769 2012-03-08 Joel Brobecker <brobecker@adacore.com>
7770
7771 * ravenscar-sparc-thread.c (_initialize_ravenscar_sparc): Add
7772 prototype.
7773
7774 2012-03-08 Joel Brobecker <brobecker@adacore.com>
7775
7776 * ravenscar-thread.c (_initialize_ravenscar): Add prototype.
7777
7778 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
7779
7780 Fix -Wmissing-prototypes build.
7781 * arm-linux-nat.c (get_thread_id): Make it static.
7782 * xtensa-linux-nat.c (get_thread_id): Likewise.
7783
7784 2012-03-08 Joel Brobecker <brobecker@adacore.com>
7785
7786 * server.c (process_point_options): If a conditional expression
7787 is found, only print a message if remote_debug is nonzero.
7788
7789 2012-03-08 Luis Machado <lgustavo@codesourcery.com>
7790
7791 * ax-gdb.c (gen_fetch): Fail gracefully and use error instead
7792 of internal error for unknown/unsupported types.
7793
7794 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
7795
7796 Fix CU relative vs. absolute DIE offsets.
7797 * dwarf2loc.h (dwarf2_fetch_die_location_block): Rename parameter
7798 offset to offset_in_cu.
7799 * dwarf2read.c (process_enumeration_scope): Add CU offset to
7800 TYPE_OFFSET.
7801 (dwarf2_fetch_die_location_block): Rename parameter offset to
7802 offset_in_cu. New variable offset, add CU offset to OFFSET_IN_CU.
7803
7804 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
7805
7806 * libunwind-frame.c: Rename to ...
7807 * ia64-libunwind-tdep.c: ... here.
7808 * libunwind-frame.h: Rename to ...
7809 * ia64-libunwind-tdep.h: ... here.
7810 * Makefile.in (HFILES_NO_SRCDIR): Rename libunwind-frame.h to
7811 ia64-libunwind-tdep.h.
7812 (ALLDEPFILES): Rename libunwind-frame.c to ia64-libunwind-tdep.c.
7813 * README (--with-libunwind): Rename to ...
7814 (--with-libunwind-ia64): ... here, note it is ia64 specific now.
7815 * config.in: Regenerate.
7816 * configure: Regenerate.
7817 * configure.ac: New option --with-libunwind-ia64, make the
7818 AS_HELP_STRING ia64 specific. Deprecate option --with-libunwind.
7819 Remove AC_DEFINE for HAVE_LIBUNWIND.
7820 * ia64-libunwind-tdep.c: Make the file top comment ia64 specific.
7821 Rename libunwind-frame.h #include to ia64-libunwind-tdep.h.
7822 Rename libunwind-frame in the general comment.
7823 * ia64-libunwind-tdep.h: Make the file top comment ia64 specific.
7824 Rename symbol LIBUNWIND_FRAME_H to IA64_TDEP_LIBUNWIND_FRAME_H.
7825 Move forward declarations inside #ifndef. Rename libunwind-frame in
7826 the general comment.
7827 * ia64-tdep.c: Rename libunwind-frame.h #include to
7828 ia64-libunwind-tdep.h.
7829 (ia64_gdb2uw_regnum, ia64_uw2gdb_regnum, ia64_is_fpreg)
7830 (ia64_libunwind_descr): Rename libunwind-frame to
7831 ia64-libunwind-tdep in these function comments.
7832 * ia64-tdep.h: Rename libunwind-frame.h #include to
7833 ia64-libunwind-tdep.h.
7834 * ia64-vms-tdep.c (ia64_vms_libunwind_descr): Rename libunwind-frame to
7835 ia64-libunwind-tdep in that data comment.
7836
7837 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
7838
7839 * libunwind-frame.h (struct frame_unwind): New declaration.
7840
7841 2012-03-08 Joel Brobecker <brobecker@adacore.com>
7842
7843 * breakpoint.c (_initialize_breakpoint): Fix error in help of
7844 "set breakpoint condition-evaluation" command.
7845
7846 2012-03-08 Tristan Gingold <gingold@adacore.com>
7847
7848 * sparc-stub.c: Move to stubs/
7849 * sh-stub.c: Likewise.
7850 * m68k-stub.c: Likewise.
7851 * m32r-stub.c: Likewise.
7852 * i386-stub.c: Likewise.
7853
7854 2012-03-08 Andreas Schwab <schwab@linux-m68k.org>
7855
7856 * m68klinux-tdep.c (m68k_linux_init_abi): Register
7857 linux_get_siginfo_type.
7858
7859 * m68klinux-nat.c: Include "gdb_proc_service.h".
7860 (PTRACE_GET_THREAD_AREA): Define.
7861 (ps_get_thread_area): New function.
7862
7863 2012-03-08 Yao Qi <yao@codesourcery.com>
7864
7865 * remote.c (remote_get_noisy_reply): Replace `sprintf' with
7866 `xsnprintf'.
7867 (remote_query_attached): Likewise.
7868 (remote_static_tracepoint_marker_at): Likewise.
7869 (remote_set_permissions): Likewise.
7870 (remote_detach_1, extended_remote_attach_1): Likewise.
7871 (send_g_packet, remote_vkill): Likewise.
7872 (extended_remote_disable_randomization): Likewise.
7873 (remote_add_target_side_condition): Likewise.
7874 (remote_insert_breakpoint): Likewise.
7875 (remote_remove_breakpoint): Likewise.
7876 (remote_insert_watchpoint): Likewise.
7877 (remote_remove_watchpoint): Likewise.
7878 (remote_insert_hw_breakpoint): Likewise.
7879 (remote_insert_hw_breakpoint): Likewise.
7880 (remote_remove_hw_breakpoint): Likewise.
7881 (remote_download_command_source): Likewise.
7882 (remote_download_tracepoint): Likewise.
7883 (remote_download_trace_state_variable): Likewise.
7884 (remote_disable_tracepoint): Likewise.
7885 (remote_trace_set_readonly_regions): Likewise.
7886 (remote_get_tracepoint_status): Likewise.
7887 (remote_trace_find): Likewise.
7888 (remote_get_trace_state_variable_value): Likewise.
7889 (remote_set_disconnected_tracing): Likewise.
7890 (remote_set_circular_trace_buffer): Likewise.
7891 (remote_get_min_fast_tracepoint_insn_len): Likewise.
7892 (remote_use_agent): Likewise.
7893 (remote_add_target_side_condition): Add one parameter BUF_SIZE.
7894 Update callers.
7895
7896 2012-03-07 Pedro Alves <palves@redhat.com>
7897
7898 * NEWS: Mention QProgramSignals.
7899 * inferior.h (update_signals_program_target): Declare.
7900 * infrun.c: (update_signals_program_target): New.
7901 (handle_command): Update the target of the new program signals
7902 array changes.
7903 * remote.c (PACKET_QProgramSignals): New enum.
7904 (last_program_signals_packet): New global.
7905 (remote_program_signals): New.
7906 (remote_start_remote): Update the target with the program signals
7907 list.
7908 (remote_protocol_features): Add entry for QPassSignals.
7909 (remote_open_1): Free anc clear last_program_signals_packet.
7910 (init_remote_ops): Install remote_program_signals.
7911 * target.c (update_current_target): Adjust.
7912 (target_program_signals): New.
7913 * target.h (struct target_ops) <to_program_signals>: New field.
7914 (target_program_signals): Declare.
7915
7916 2012-03-07 Pedro Alves <palves@redhat.com>
7917
7918 * NEWS: Add subtitle for new z0/z1 conditional breakpoint
7919 extensions.
7920
7921 2012-03-07 Andreas Schwab <schwab@linux-m68k.org>
7922
7923 * m68klinux-nat.c (getregs_supplies): Make static.
7924 (getfpregs_supplies): Likewise.
7925 (have_ptrace_getregs): Likewise.
7926
7927 2012-03-06 Joel Brobecker <brobecker@adacore.com>
7928
7929 * dwarf2read.c (dwarf2_get_die_type): Pass absolute offset
7930 in call to get_die_type_at_offset.
7931
7932 2012-03-06 Stan Shebs <stan@codesourcery.com>
7933
7934 * mi/mi-cmd-break.c: Enforce coding standards, fix comments.
7935 * mi/mi-cmd-disas.c: Ditto.
7936 * mi/mi-cmd-env.c: Ditto.
7937 * mi/mi-cmd-file.c: Ditto.
7938 * mi/mi-cmd-stack.c: Ditto.
7939 * mi/mi-cmd-target.c: Ditto.
7940 * mi/mi-cmd-var.c: Ditto.
7941 * mi/mi-cmds.c: Ditto.
7942 * mi/mi-cmds.h: Ditto.
7943 * mi/mi-console.c: Ditto.
7944 * mi/mi-getopt.c: Ditto.
7945 * mi/mi-getopt.h: Ditto.
7946 * mi/mi-interp.c: Ditto.
7947 * mi/mi-main.c: Ditto.
7948 * mi/mi-out.c: Ditto.
7949 * mi/mi-parse.c: Ditto.
7950 * mi/mi-parse.h: Ditto.
7951 * mi/mi-symbol-cmds.c: Ditto.
7952
7953 * mi/mi-getopt.h: Move mi_opt struct up.
7954 * mi/mi-main.c (captured_mi_execute_command): Remove redundant
7955 return.
7956 * mi/mi-out.c (_initialize_mi_out): Remove empty initialize.
7957
7958 2012-03-06 Tom Tromey <tromey@redhat.com>
7959
7960 * proc-service.c (ps_pglobal_lookup): Set the current program
7961 space.
7962
7963 2012-03-06 Pedro Alves <palves@redhat.com>
7964
7965 * gregset.h [HAVE_SYS_PROCFS_H]: Include <sys/procfs.h>.
7966
7967 2012-03-05 Joel Brobecker <brobecker@adacore.com>
7968
7969 * MAINTAINERS: List Maciej W. Rozycki as the mips maintainer.
7970
7971 2012-03-05 Jan Kratochvil <jan.kratochvil@redhat.com>
7972
7973 Code cleanup.
7974 * common/linux-osdata.c (linux_common_core_of_thread): New function
7975 comment.
7976 * linux-nat.c (linux_nat_wait_1): Replace linux_nat_core_of_thread_1
7977 call by linux_common_core_of_thread.
7978 (linux_nat_core_of_thread_1): Remove.
7979 * linux-nat.h (linux_nat_core_of_thread_1): Remove declaration.
7980 * linux-thread-db.c: Include linux-osdata.h.
7981 (update_thread_core): Replace linux_nat_core_of_thread_1 call by
7982 linux_common_core_of_thread.
7983
7984 2012-03-05 Tom Tromey <tromey@redhat.com>
7985
7986 * value.c (value_primitive_field): Don't fetch contents for
7987 non-virtual bases.
7988
7989 2012-03-05 Tom Tromey <tromey@redhat.com>
7990
7991 * jv-valprint.c (java_value_print): Correctly compute 'obj_addr'.
7992
7993 2012-03-05 Andreas Arnez <arnez@linux.vnet.ibm.com>
7994
7995 * s390-nat.c: Include "gregset.h".
7996
7997 2012-03-05 Jan Kratochvil <jan.kratochvil@redhat.com>
7998
7999 * libunwind-frame.c (LIBUNWIND_SO): Change .7 to .8.
8000 [!LIBUNWIND_SO] (LIBUNWIND_SO_7): New #define.
8001 (libunwind_load): New variable so_error, use it for dlerror. Try to
8002 load also LIBUNWIND_SO_7.
8003
8004 2012-03-05 Pedro Alves <palves@redhat.com>
8005
8006 * i387-tdep.c (i387_supply_xsave): Assert the xsave section buffer
8007 is not NULL, and remove resulting dead code.
8008
8009 2012-03-05 Thomas Schwinge <thomas@codesourcery.com>
8010
8011 * sh-tdep.c (sh_skip_prologue): Provide an upper limit on the function
8012 prologue to sh_analyze_prologue.
8013 (sh_analyze_prologue): Make better use of such an upper limit, and
8014 generally be more cautious about accessing memory.
8015
8016 2012-03-05 Tom Tromey <tromey@redhat.com>
8017
8018 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Rename from
8019 _initialize_ia64_hpux_tdep.
8020
8021 2012-03-05 Pedro Alves <palves@redhat.com>
8022
8023 PR gdb/13766
8024
8025 * i387-tdep.c (i387_supply_xsave): If we have an xsave buffer, and
8026 the register state is clear, supply explicit zero, instead of
8027 marking the register unavailable.
8028
8029 2012-03-05 Tristan Gingold <gingold@adacore.com>
8030
8031 * NEWS: Mention OpenVMS ia64 new target.
8032
8033 2012-03-05 Tristan Gingold <gingold@adacore.com>
8034
8035 * ia64-tdep.h: Include libunwind-frame.h and libunwind-ia64.h.
8036 (ia64_unw_accessors, ia64_unw_rse_accessors)
8037 (ia64_libunwind_descr): Declare.
8038 * ia64-vms-tdep.c: New file.
8039 * ia64-tdep.c (ia64_unw_accessors, ia64_unw_rse_accessors)
8040 (ia64_libunwind_descr): Make them public.
8041 * configure.tgt: Add ia64-*-*vms*.
8042 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-vms-tdep.o
8043 (ALLDEPFILES): Add ia64-vms-tdep.c
8044
8045 2012-03-05 Tristan Gingold <gingold@adacore.com>
8046
8047 * target.h (target_object): Add TARGET_OBJECT_OPENVMS_UIB.
8048 * remote.c (PACKET_qXfer_uib): New enum value.
8049 (remote_protocol_features): Add entry for PACKET_qXfer_uib.
8050 (remote_xfer_partial): Handle TARGET_OBJECT_OPENVMS_UIB.
8051 (_initialize_remote): Call add_packet_config_cmd for
8052 xfer:uib packet.
8053
8054 2012-03-05 Tristan Gingold <gingold@adacore.com>
8055
8056 * osabi.c (gdb_osabi_names): Add OpenVMS.
8057 (generic_elf_osabi_sniffer): Likewise.
8058 * defs.h (gdb_osabi): Add GDB_OSABI_OPENVMS.
8059
8060 2012-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
8061
8062 Removed unused code.
8063 * libunwind-frame.c (libunwind_frame_unwind)
8064 (libunwind_frame_base_address): Remove.
8065 * libunwind-frame.h (libunwind_frame_base_address): Remove declaration.
8066
8067 2012-03-04 Yao Qi <yao@codesourcery.com>
8068
8069 * common/agent.c (gdb_connect_sync_socket): Add _ markup and
8070 remove trailing new line.
8071 (agent_run_command, agent_run_command): Add _ markup.
8072 (agent_capability_check): Likewise.
8073
8074 2012-03-03 Jan Kratochvil <jan.kratochvil@redhat.com>
8075
8076 * breakpoint.c (set_condition_evaluation_mode): Set
8077 CONDITION_EVALUATION_MODE unconditionally.
8078
8079 2012-03-03 Yao Qi <yao@codesourcery.com>
8080
8081 * common/agent.c (agent_look_up_symbols): Add one parameter 'arg'.
8082 * common/agent.h: Update declaration.
8083 * inf-child.c (inf_child_use_agent): New.
8084 (inf_child_can_use_agent): New.
8085 (inf_child_target): Initialize fields `to_use_agent'
8086 and `to_can_use_agent'.
8087 * agent.c (agent_new_objfile): New.
8088 (_initialize_agent): Add agent_new_objfile to new_objfile
8089 observer.
8090
8091 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
8092 New.
8093 (linux_target_install_ops): Initialize field
8094 `to_static_tracepoint_markers_by_strid'.
8095 * remote.c (free_current_marker): Move it to ...
8096 * tracepoint.c (free_current_marker): ... here. New.
8097 (cleanup_target_stop): New.
8098 * tracepoint.h: Declare free_current_marker.
8099 * NEWS: Add one entry about `info static-tracepoint-marker'.
8100
8101 2012-03-03 Yao Qi <yao@codesourcery.com>
8102
8103 * common/agent.c (agent_loaded_p): New.
8104 (agent_look_up_symbols): New global.
8105 * common/agent.h: Declare agent_loaded_p.
8106
8107 2012-03-03 Yao Qi <yao@codesourcery.com>
8108
8109 * common/agent.c (struct ipa_sym_addresses) <addr_capability>: New.
8110 (agent_capability_check, agent_capability_invalidate): New.
8111 (symbol_list): New array element.
8112 * common/agent.h (enum agent_capa): New.
8113 * target.c (target_pre_inferior): Call agent_capability_invalidate.
8114
8115 2012-03-03 Yao Qi <yao@codesourcery.com>
8116
8117 * target.h (struct target_ops) <to_use_agent>: New field.
8118 (struct target_ops) <to_can_use_agent>: New field.
8119 (target_use_agent, target_can_use_agent): New macro.
8120 * target.c (update_current_target): Update.
8121 * remote.c: New enum `PACKET_QAgent'.
8122 (remote_protocol_features): Add a new element.
8123 (remote_use_agent, remote_can_use_agent): New.
8124 (init_remote_ops): Initialize field `can_use_agent' with
8125 remote_can_use_agent. Intiailize field `use_agent' with
8126 remote_use_agent.
8127 * common/agent.c (use_agent): New global.
8128 * common/agent.h: Declare it.
8129 * tracepoint.c (info_static_tracepoint_markers_command): Add
8130 comment.
8131 * Makefile.in (SFILES): Add common/agent.c and agent.c.
8132 (COMMON_OBS): Add common/agent.o and agent.o
8133 (common-agent.o): New rule.
8134 * agent.c: New.
8135
8136 2012-03-03 Yao Qi <yao@codesourcery.com>
8137
8138 * common/agent.c: New.
8139 * common/agent.h: New.
8140 * configure.ac: Add `sys/socket.h' and `sys/un.h' to
8141 AC_CHECK_HEADERS.
8142 * configure, configh.in: Regenerated.
8143
8144 2012-03-02 Kevin Buettner <kevinb@redhat.com>
8145
8146 * sh-tdep.c (sh_frame_cache): Don't fetch the FPSCR register
8147 unless it exists for this architecture.
8148
8149 2012-03-02 Joel Brobecker <brobecker@adacore.com>
8150
8151 * language.h (struct language_defn): New "method" la_read_var_value.
8152 * findvar.c: #include "language.h".
8153 (default_read_var_value): Renames read_var_value. Rewrite
8154 function description.
8155 (read_var_value): New function.
8156 * value.h (default_read_var_value): Add prototype.
8157 * ada-lang.c (ada_read_renaming_var_value, ada_read_var_value):
8158 New functions.
8159 (ada_language_defn): Add entry for la_read_var_value.
8160 * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, language.c,
8161 * m2-lang.c, objc-lang.c, opencl-lang.c, p-lang.c: Update
8162 language_defn structures to add entry for new la_read_var_value
8163 field.
8164
8165 2012-03-02 Tom Tromey <tromey@redhat.com>
8166 Pedro Alves <palves@redhat.com>
8167
8168 PR breakpoints/13776:
8169 * breakpoint.c (breakpoint_init_inferior): Delete step-resume
8170 breakpoints.
8171 (delete_longjmp_breakpoint_at_next_stop): New.
8172 * breakpoint.h (delete_longjmp_breakpoint_at_next_stop): Declare.
8173 * target.c (generic_mourn_inferior): Call mark_breakpoints_out
8174 before deleting the inferior. Add comments.
8175 * thread.c (clear_thread_inferior_resources): Don't delete lonjmp
8176 breakpoints immediately, but only on next stop. Move that code
8177 next to where we mark other breakpoints for deletion.
8178
8179 2012-03-02 Joel Brobecker <brobecker@adacore.com>
8180
8181 * mips-linux-nat.c (mips_linux_read_description): Add missing i18n
8182 marker.
8183 * mips-tdep.c (mips_linux_reg_names): Improve comment to avoid ARI
8184 violation.
8185
8186 2012-03-02 Pedro Alves <palves@redhat.com>
8187
8188 * linux-thread-db.c (attach_thread): Avoid in_thread_list call.
8189
8190 2012-03-02 Ulrich Weigand <uweigand@de.ibm.com>
8191
8192 Fix -Wmissing-prototypes build.
8193 * ppc-linux-nat.c (ppc_linux_get_hwcap): Make static.
8194 * remote-sim.c (gdbsim_has_all_memory): Likewise.
8195 (gdbsim_has_memory): Likewise.
8196
8197 2012-03-02 Yao Qi <yao@codesourcery.com>
8198
8199 Fix -Wmissing-prototypes build.
8200 * charset.c (phony_iconv_open): Make static.
8201 (phony_iconv_close, phony_iconv): Likewise.
8202 * i386-linux-nat.c (_initialize_i386_linux_nat): New prototype.
8203 * i386-windows-nat.c (_initialize_i386_windows_nat): New
8204 prototype.
8205 * mingw-hdep.c (_initialize_mingw_hdep): New prototype.
8206 * ser-mingw.c (create_select_thread): Make static.
8207 * windows-termcap.c (tgetent): New prototype.
8208 (tgetnum, tgetflag, tgetstr, tputs, tgoto): Likewise.
8209
8210 2012-03-02 Zhang Yuanhui <asmwarrior@gmail.com>
8211
8212 Fix -Wmissing-prototypes build.
8213 * windows-nat.c (dll_symbol_command, ctrl_c_handler): Make them static.
8214 (_initialize_windows_nat, _initialize_check_for_gdb_ini)
8215 (_initialize_loadable): New prototypes.
8216
8217 2012-03-02 Doug Evans <dje@google.com>
8218
8219 * dwarf2read.c (load_full_comp_unit): Remove unnecessary reading of
8220 abbrev table, read_comp_unit will do it.
8221
8222 2012-03-02 Jan Kratochvil <jan.kratochvil@redhat.com>
8223
8224 Fix -Wmissing-prototypes build.
8225 * alpha-tdep.c (alpha_deal_with_atomic_sequence): Make it static.
8226 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): New prototype.
8227 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Likewise.
8228 * arm-symbian-tdep.c (arm_symbian_skip_trampoline_code): Make it static.
8229 (_initialize_arm_symbian_tdep): New prototype.
8230 * arm-wince-tdep.c (arm_wince_skip_main_prologue): Make it static.
8231 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): New prototype.
8232 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Make it
8233 static.
8234 * lm32-tdep.c (_initialize_lm32_tdep): New prototype.
8235 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): New
8236 prototype.
8237 * microblaze-tdep.c (microblaze_debug, microblaze_fetch_instruction)
8238 (microblaze_skip_prologue, microblaze_frame_cache): Make them static.
8239 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Make it
8240 static.
8241 * moxie-tdep.c (moxie_process_record): Likewise.
8242 * remote-mips.c (mips_can_use_watchpoint, mips_insert_watchpoint)
8243 (mips_remove_watchpoint, mips_stopped_by_watchpoint): Make them static.
8244 * rl78-tdep.c (rl78_breakpoint_from_pc): Make it static.
8245 (_initialize_rl78_tdep): New prototype.
8246 * rx-tdep.c (rx_breakpoint_from_pc): Make it static.
8247 (_initialize_rx_tdep): New prototype.
8248 * solib-darwin.c (darwin_in_dynsym_resolve_code): Make it static.
8249 (_initialize_darwin_solib): New prototype.
8250 * solib-spu.c: Include solib-spu.h.
8251 (_initialize_spu_solib): New prototype.
8252 * spu-multiarch.c (_initialize_spu_multiarch): New prototype.
8253 * tic6x-tdep.c (tic6x_analyze_prologue, tic6x_skip_prologue)
8254 (tic6x_breakpoint_from_pc, tic6x_frame_unwind_cache)
8255 (tic6x_software_single_step): Make it static.
8256 (_initialize_tic6x_tdep): New prototype.
8257
8258 2012-03-02 Jan Kratochvil <jan.kratochvil@redhat.com>
8259
8260 Fix -Wmissing-prototypes build.
8261 * cris-tdep.c (cris_can_use_hardware_watchpoint)
8262 (cris_region_ok_for_watchpoint, cris_stopped_data_address): Remove.
8263
8264 2012-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
8265
8266 Fix -Wmissing-prototypes build.
8267 * frv-tdep.c (frv_check_watch_resources, frv_stopped_data_address)
8268 (frv_have_stopped_data_address): Remove.
8269
8270 2012-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
8271
8272 Fix -Wmissing-prototypes build.
8273 * Makefile.in (HFILES_NO_SRCDIR): Add sh64-tdep.h.
8274 * sh-tdep.c: Include sh64-tdep.h.
8275 * sh-tdep.h (sh64_gdbarch_init, sh64_show_regs): Remove declarations.
8276 * sh64-tdep.c: Include sh64-tdep.h.
8277 * sh64-tdep.h: New file.
8278
8279 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
8280
8281 * mips-tdep.c (mips32_scan_prologue): Correct indentation.
8282
8283 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
8284
8285 * mips-tdep.c (mips_gdbarch_init): Only set pc_regnum and
8286 sp_regnum once the gdbarch_init_osabi hook has been called.
8287
8288 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
8289
8290 * mips-tdep.c (mips32_bc1_pc): New function.
8291 (mips32_next_pc): Handle BC1ANY2F, BC1ANY2T, BC1ANY4F, BC1ANY4T,
8292 BPOSGE32 and BPOSGE64 instructions.
8293 (deal_with_atomic_sequence): Likewise.
8294 (mips32_instruction_has_delay_slot): Likewise.
8295
8296 2012-03-01 Maciej W. Rozycki <macro@mips.com>
8297 Chris Dearman <chris@mips.com>
8298 Maciej W. Rozycki <macro@codesourcery.com>
8299 Joseph Myers <joseph@codesourcery.com>
8300
8301 * features/mips-dsp.xml: New file.
8302 * features/mips64-dsp.xml: New file.
8303 * features/mips-dsp-linux.xml: New file.
8304 * features/mips64-dsp-linux.xml: New file.
8305 * features/Makefile (WHICH): Add mips-dsp-linux and
8306 mips64-dsp-linux.
8307 (mips-dsp-expedite, mips64-dsp-expedite): New variables.
8308 * features/mips-dsp-linux.c: New file.
8309 * features/mips64-dsp-linux.c: New file.
8310 * regformats/mips-dsp-linux.dat: New file.
8311 * regformats/mips64-dsp-linux.dat: New file.
8312 * mips-linux-nat.c (mips_linux_register_addr): Handle DSP
8313 registers.
8314 (mips64_linux_register_addr): Likewise.
8315 (mips64_linux_regsets_fetch_registers): Likewise.
8316 (mips64_linux_regsets_store_registers): Likewise.
8317 (mips64_linux_fetch_registers): Update call to
8318 mips64_linux_regsets_fetch_registers.
8319 (mips64_linux_store_registers): Update call to
8320 mips64_linux_regsets_store_registers.
8321 (mips_linux_read_description): Probe for DSP registers.
8322 (_initialize_mips_linux_nat): Call initialize_tdesc_mips_dsp_linux
8323 and initialize_tdesc_mips64_dsp_linux.
8324 * mips-linux-tdep.c (supply_gregset, mips64_supply_gregset):
8325 Remove padding of no longer used embedded register slots.
8326 * mips-linux-tdep.h (DSP_BASE, DSP_CONTROL): New macros.
8327 (MIPS_RESTART_REGNUM): Redefine enum value.
8328 * mips-tdep.c (mips_generic_reg_names): Remove trailing null
8329 strings.
8330 (mips_tx39_reg_names): Likewise.
8331 (mips_linux_reg_names): New array of register names for Linux
8332 targets.
8333 (mips_register_name): Check for a null pointer in
8334 mips_processor_reg_names and return an empty string.
8335 (mips_register_type): Exclude embedded registers for the IRIX
8336 and Linux ABIs.
8337 (mips_pseudo_register_type): Likewise. Use dynamic numbers to
8338 refer to FP registers, LO, HI, BadVAddr, Cause and PC. Handle
8339 DSP registers.
8340 (mips_stab_reg_to_regnum): Handle DSP accumulators.
8341 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Likewise.
8342 (mips_gdbarch_init): Likewise. Initialize internal register
8343 indices for the Linux ABI. Use dynamic numbers to refer to
8344 registers, as applicable, while parsing the target description.
8345 * mips-tdep.h (struct mips_regnum): Add dspacc/dspctl offsets.
8346
8347 2012-03-01 Joel Brobecker <brobecker@adacore.com>
8348
8349 * frame.h (read_frame_register_unsigned): Fix typo in function
8350 description.
8351
8352 2012-03-01 Pedro Alves <palves@redhat.com>
8353
8354 * jit-reader.in [!__cplusplus]
8355 (GDB_DECLARE_GPL_COMPATIBLE_READER): Add missing backslash.
8356
8357 2012-03-01 Pedro Alves <palves@redhat.com>
8358
8359 * configure.ac (build_warnings): Add -Wmissing-prototypes.
8360 * configure: Regenerate.
8361
8362 2012-03-01 Pedro Alves <palves@redhat.com>
8363
8364 * amd64-linux-tdep.c (amd64_linux_record_signal): Make static.
8365 * breakpoint.c (create_exception_master_breakpoint, trace_command)
8366 (ftrace_command, strace_command): Make static.
8367 * d-lang.c (_initialize_d_language): Declare.
8368 * dwarf2expr.c (_initialize_dwarf2expr): Declare.
8369 * dwarf2loc.c (_initialize_dwarf2loc):
8370 * dwarf2read.c (process_psymtab_comp_unit): Make static.
8371 * exec.c (exec_get_section_table): Make static.
8372 * i386-linux-tdep.c (i386_linux_record_signal): Make static.
8373 * infcmd.c (ensure_valid_thread, ensure_not_tfind_mode): Make static.
8374 * inferior.c (remove_inferior_command, add_inferior_command)
8375 (clone_inferior_command): Make static.
8376 * linux-nat.c (linux_nat_thread_address_space)
8377 (linux_nat_core_of_thread): Make static.
8378 * linux-tdep.c (_initialize_linux_tdep): Declare.
8379 * objc-lang.c (_initialize_objc_lang): Declare.
8380 * opencl-lang.c (builtin_opencl_type, opencl_language_arch_info):
8381 Make static.
8382 (_initialize_opencl_language): Declare.
8383 * record.c (_initialize_record): Declare.
8384 * remote.c (demand_private_info, remote_get_tib_address)
8385 (remote_supports_cond_tracepoints)
8386 (remote_supports_fast_tracepoints, remote_get_tracepoint_status):
8387 Make static.
8388 * skip.c (_initialize_step_skip): Declare.
8389 * symtab.c (skip_prologue_using_lineinfo): Make static.
8390 * tracepoint.c (delete_trace_state_variable)
8391 (trace_variable_command, delete_trace_variable_command)
8392 (get_uploaded_tsv, find_matching_tracepoint_location)
8393 (find_matching_tsv, create_tsv_from_upload, get_traceframe_info):
8394 Make static.
8395 * value.c (pack_unsigned_long): Make static.
8396 * varobj.c (varobj_ensure_python_env): Make static.
8397 * windows-tdep.c (_initialize_windows_tdep): Declare.
8398 * xml-syscall.c (make_cleanup_free_syscalls_info): Make static.
8399
8400 2012-03-01 Pedro Alves <palves@redhat.com>
8401
8402 * linux-tdep.c (linux_has_shared_address_space): Make static. Add
8403 gdbarch parameter.
8404 (linux_init_abi): Install it as has_shared_address_space gdbarch
8405 callback.
8406
8407 2012-03-01 Pedro Alves <palves@redhat.com>
8408
8409 * observer.c (observer_test_first_notification_function)
8410 (observer_test_second_notification_function)
8411 (observer_test_third_notification_function): Add declarations.
8412
8413 2012-03-01 Pedro Alves <palves@redhat.com>
8414
8415 * common/signals.c (default_target_signal_to_host)
8416 (default_target_signal_from_host): Move ...
8417 * arch-utils.c: ... here.
8418 * arch-utils.h (default_target_signal_to_host)
8419 (default_target_signal_from_host): Declare.
8420
8421 * common/signals.c (target_signal_from_command): Move ...
8422 * infrun.c: ... here.
8423 * inferior.h (target_signal_from_command): Declare.
8424 * target.h (target_signal_from_command)
8425 (default_target_signal_from_host, default_target_signal_to_host):
8426 Delete declarations.
8427
8428 * common/signals.c (_initialize_signals): Delete.
8429
8430 2012-03-01 Pedro Alves <palves@redhat.com>
8431
8432 * jit-reader.in (plugin_is_GPL_compatible): Add declarations for
8433 both __cplusplus and !__cplusplus.
8434
8435 2012-03-01 Pedro Alves <palves@redhat.com>
8436
8437 * psymtab.c (find_and_open_source): Delete declaration.
8438 * source.c (find_and_open_source): Move comment ...
8439 * source.h (find_and_open_source): ... to this new declaration.
8440
8441 2012-03-01 Pedro Alves <palves@redhat.com>
8442
8443 * inline-frame.c: Include inline-frame.h.
8444
8445 2012-03-01 Pedro Alves <palves@redhat.com>
8446
8447 * tui/tui-data.c (set_gen_win_origin): Delete.
8448 * tui/tui-data.h (tui_set_gen_win_origin): Delete declaration.
8449 * tui/tui-regs.c (tui_last_reg_element_no_in_line): Delete.
8450
8451 2012-03-01 Pedro Alves <palves@redhat.com>
8452
8453 * remote.c (encode_actions): Delete declaration.
8454 * tracepoint.c (encode_actions): Make extern.
8455 * tracepoint.h (encode_actions): Declare.
8456
8457 2012-03-01 Pedro Alves <palves@redhat.com>
8458
8459 * python/py-breakpoint.c: Include python.h.
8460 * python/py-continueevent.c (create_continue_event_object): Make
8461 static.
8462 * python/py-lazy-string.c (stpy_get_type): Make static.
8463 * python/py-newobjfileevent.c (create_new_objfile_event_object):
8464 Make static.
8465 * python/py-utils.c (unicode_to_target_python_string): Make
8466 static.
8467 * python/py-value.c: Include python.h.
8468
8469 2012-03-01 Pedro Alves <palves@redhat.com>
8470
8471 * inferior.c (delete_threads_of_inferior): Delete.
8472
8473 2012-03-01 Pedro Alves <palves@redhat.com>
8474
8475 Import fallback definitions from glibc.
8476
8477 * gdb_proc_service.h [!HAVE_PROC_SERVICE_H] (struct
8478 ps_prochandle): Forward declare.
8479 (ps_err_e): Use glibc's comments.
8480 [!HAVE_PROC_SERVICE_H] (ps_pdread, ps_pdwrite, ps_ptread)
8481 (ps_ptwrite, ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
8482 (ps_lsetfpregs, ps_getpid, ps_get_thread_area, ps_pglobal_lookup)
8483 (ps_pstop, ps_pcontinue, ps_lstop, ps_lcontinue, ps_lgetxregsize)
8484 (ps_lgetxregs, ps_lsetxregs, ps_plog): Declare.
8485 (struct ps_prochandle): Adjust comment.
8486
8487 2012-03-01 Pedro Alves <palves@redhat.com>
8488
8489 * ada-lang.c (ada_modulus_from_name): Delete.
8490 * ada-lex.l (lexer_init): Make static.
8491
8492 2012-03-01 Pedro Alves <palves@redhat.com>
8493
8494 PR gdb/13767
8495
8496 * frame.c (read_frame_register_unsigned): New.
8497 * frame.h (read_frame_register_unsigned): Declare.
8498 * i387-tdep.c (print_i387_status_word): New parameter `status_p'.
8499 Handle it.
8500 (print_i387_control_word): New parameter `control_p'. Handle it.
8501 (i387_print_float_info): Handle unavailable float registers.
8502
8503 2012-03-01 Keith Seitz <keiths@redhat.com>
8504
8505 * linespec.c (decode_line_2): Sort the list of methods
8506 alphabetically before presenting the user with a selection
8507 menu.
8508
8509 2012-03-01 Doug Evans <dje@google.com>
8510
8511 * dwarf2read.c (dwarf2_cu): Remove unused members has_form_ref_addr,
8512 has_namespace_info.
8513 (dwarf2_read_abbrevs): Remove corresponding initialization.
8514
8515 2012-03-01 Scott J. Goldman <scottjg@vmware.com>
8516
8517 * NEWS: Mention new python command class gdb.COMMAND_USER.
8518 * cli/cli-cmds.c (show_user): Print error when used on a python
8519 command.
8520 (init_cli_cmds): Update documentation strings for "show user" and
8521 "set/show max-user-call-depth" to clarify that it does not apply to
8522 python commands.
8523 * python/py-cmd.c (cmdpy_init): Treat class_user as a valid class in
8524 error check.
8525 (gdbpy_initialize_commands): Add COMMAND_USER as a constant in
8526 gdb python api.
8527 * top.c (execute_command): Only execute a user-defined command as a
8528 legacy macro if c->user_commands is set.
8529
8530 2012-03-01 Tom Tromey <tromey@redhat.com>
8531
8532 * valprint.h (struct generic_val_print_decorations): New.
8533 (generic_val_print): Declare.
8534 * valprint.c (generic_val_print): New function.
8535 * p-valprint.c (p_decorations): New global.
8536 (pascal_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM,
8537 TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_RANGE, TYPE_CODE_INT,
8538 TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ERROR, TYPE_CODE_UNDEF,
8539 TYPE_CODE_BOOL, TYPE_CODE_CHAR>: Call generic_val_print.
8540 * m2-valprint.c (m2_decorations): New global.
8541 (m2_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM, TYPE_CODE_FUNC,
8542 TYPE_CODE_BOOL, TYPE_CODE_RANGE, TYPE_CODE_INT, TYPE_CODE_CHAR,
8543 TYPE_CODE_FLT, TYPE_CODE_METHOD, TYPE_CODE_VOID, TYPE_CODE_UNDEF,
8544 TYPE_CODE_ERROR>: Call generic_val_print.
8545 * f-valprint.c (f_decorations): New global.
8546 (f_val_print): Use print_function_pointer_address.
8547 <TYPE_CODE_REF, TYPE_CODE_FUNC, TYPE_CODE_CHAR, TYPE_CODE_FLAGS,
8548 TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ENUM, TYPE_CODE_RANGE,
8549 TYPE_CODE_BOOL, TYPE_CODE_COMPLEX, TYPE_CODE_UNDEF>: Call
8550 generic_val_print.
8551 * c-valprint.c (c_decorations): New global.
8552 (c_val_print) <TYPE_CODE_MEMBERPTR, TYPE_CODE_REF, TYPE_CODE_ENUM,
8553 TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_METHOD, TYPE_CODE_BOOL,
8554 TYPE_CODE_RANGE, TYPE_CODE_CHAR, TYPE_CODE_FLT,
8555 TYPE_CODE_DECFLOAT, TYPE_CODE_VOID, TYPE_CODE_ERROR,
8556 TYPE_CODE_UNDEF, TYPE_CODE_COMPLEX>: Call generic_val_print.
8557 * ada-valprint.c (ada_val_print_1) <TYPE_CODE_FLAGS>: Remove
8558 case.
8559
8560 2012-03-01 Tom Tromey <tromey@redhat.com>
8561
8562 * valprint.c (val_print): Update.
8563 * p-valprint (pascal_val_print): Return void.
8564 * p-lang.h (pascal_val_print): Return void.
8565 * m2-valprint.c (m2_val_print): Return void.
8566 * m2-lang.h (m2_val_print): Return void.
8567 * language.h (struct language_defn) <la_val_print>: Return void.
8568 * language.c (unk_lang_val_print): Return void.
8569 * jv-valprint.c (java_val_print): Return void.
8570 * jv-lang.h (java_val_print): Return void.
8571 * f-valprint.c (f_val_print): Return void.
8572 * f-lang.h (f_val_print): Return void.
8573 * d-valprint.c (d_val_print): Return void.
8574 (dynamic_array_type): Update.
8575 * d-lang.h (d_val_print): Return void.
8576 * c-valprint.c (c_val_print): Return void.
8577 * c-lang.h (c_val_print): Return void.
8578 * ada-valprint.c (ada_vada_val_print, ada_val_print_1): Return
8579 void.
8580 * ada-lang.h (ada_val_print): Return void.
8581
8582 2012-03-01 Tom Tromey <tromey@redhat.com>
8583
8584 * value.h (val_print): Return void.
8585 * valprint.c (val_print): Return void.
8586
8587 2012-03-01 Tom Tromey <tromey@redhat.com>
8588
8589 * value.h (common_val_print): Return void.
8590 * valprint.c (common_val_print): Return void.
8591
8592 2012-03-01 Tom Tromey <tromey@redhat.com>
8593
8594 * value.h (value_print): Return void.
8595 * valprint.c (value_print): Return void.
8596 * p-valprint.c (pascal_value_print): Return void.
8597 * p-lang.h (pascal_value_print): Return void.
8598 * language.h (struct language_defn) <la_value_print>: Return
8599 void.
8600 * language.c (unk_lang_value_print): Return void.
8601 * jv-valprint.c (java_value_print): Return void.
8602 * jv-lang.h (java_value_print): Return void.
8603 * f-valprint.c (c_value_print): Don't declare.
8604 Include c-lang.h.
8605 * c-valprint.c (c_value_print): Return void.
8606 * c-lang.h (c_value_print): Return void.
8607 * ada-valprint.c (ada_value_print): Return void.
8608 * ada-lang.h (ada_value_print): Return void.
8609
8610 2012-03-01 Tom Tromey <tromey@redhat.com>
8611
8612 * value.c (value_primitive_field): Handle virtual base classes.
8613
8614 2012-03-01 Tom Tromey <tromey@redhat.com>
8615
8616 * gdbtypes.h (struct vbase): Remove.
8617
8618 2012-03-01 Tom Tromey <tromey@redhat.com>
8619
8620 * c-valprint.c (print_function_pointer_address): Move...
8621 * valprint.c: ... here. Make non-static.
8622 * m2-valprint.c (print_function_pointer_address): Remove.
8623 * valprint.h (print_function_pointer_address): Declare.
8624
8625 2012-03-01 Joel Brobecker <brobecker@adacore.com>
8626
8627 * NEWS: Document the fact that one can provide a condition when
8628 creating an Ada exception catchpoint.
8629
8630 2012-03-01 Tom Tromey <tromey@redhat.com>
8631
8632 * valprint.c (val_print_type_code_flags): Fix placement of
8633 trailing brace.
8634
8635 2012-03-01 Joel Brobecker <brobecker@adacore.com>
8636
8637 * copyright.py (MULTILINE_COMMENT_PREFIXES): Delete.
8638 (update_files): Do not set MULTILINE_COMMENT_PREFIXES
8639 environment variable before calling update-copyright.
8640
8641 2012-03-01 Joel Brobecker <brobecker@adacore.com>
8642
8643 * gnulib/extra/update-copyright: Update to the latest from
8644 gnulib's git repository.
8645 * copyright.py: Set UPDATE_COPYRIGHT_USE_INTERVALS environment
8646 variable to 2 instead of 1.
8647
8648 2012-02-29 Joel Brobecker <brobecker@adacore.com>
8649
8650 * varobj.c (c_value_of_variable): Remove dead code.
8651
8652 2012-02-29 Joel Brobecker <brobecker@adacore.com>
8653
8654 * ada-lex.p (processId): Do not modify already encoded IDs.
8655 Update function documentation.
8656
8657 2012-02-29 Joel Brobecker <brobecker@adacore.com>
8658
8659 * ada-lang.h (ada_find_renaming_symbol): Replace parameter
8660 "name" with "struct symbol *name_sym".
8661 * ada-exp.y (write_var_or_type): Update call to
8662 ada_find_renaming_symbol.
8663 "name" with "struct symbol *name_sym". Adjust Implementation
8664 accordingly. Adjust the function documentation.
8665
8666 2012-02-29 Joel Brobecker <brobecker@adacore.com>
8667
8668 * ada-lang.h (ada_find_any_symbol, ada_find_any_type): Delete.
8669 * ada-lang.c (ada_find_any_type): Add advance declaration.
8670 Make static. Replace ada_find_any_symbol by
8671 ada_find_any_type_symbol.
8672 (ada_find_any_type_symbol): Renames ada_find_any_symbol.
8673 Improve function description. Make static.
8674 (ada_find_renaming_symbol, find_old_style_renaming_symbol):
8675 Replace ada_find_any_symbol by ada_find_any_type_symbol.
8676
8677 2012-02-29 Joel Brobecker <brobecker@adacore.com>
8678
8679 * ada-lang.c (struct tag_args): Delete.
8680 (ada_get_tsd_type): Function body moved up in source file.
8681 (ada_tag_name_1, ada_tag_name_2): Delete.
8682 (ada_get_tsd_from_tag): New function.
8683 (ada_tag_name_from_tsd): New function.
8684 (ada_tag_name): Use a TRY_CATCH block instead of catch_errors
8685 to determine the tag name.
8686
8687 2012-02-29 Joel Brobecker <brobecker@adacore.com>
8688
8689 * ada-lang.h (ada_get_decoded_value, ada_get_decoded_type): Add
8690 declaration.
8691 * ada-lang.c (ada_get_decoded_value, ada_get_decoded_type): New
8692 function.
8693
8694 2012-02-29 Joel Brobecker <brobecker@adacore.com>
8695
8696 * ada-lang.c (ada_is_ignored_field): Rewrite wrong comment.
8697
8698 2012-02-29 Joel Brobecker <brobecker@adacore.com>
8699
8700 * ada-lang.c (ada_lookup_symbol_list): Only cache the result of
8701 full searches.
8702
8703 2012-02-29 Joel Brobecker <brobecker@adacore.com>
8704
8705 * ada-lang.c (constrained_packed_array_type): If there is a
8706 parallel XA type, use it to determine the array index type.
8707
8708 2012-02-29 Joel Brobecker <brobecker@adacore.com>
8709
8710 * ada-valprint.c (ada_val_print_1): If our value is a reference
8711 to an array descriptor, dereference it before converting it
8712 to a simple array.
8713
8714 2012-02-29 Joel Brobecker <brobecker@adacore.com>
8715
8716 * ada-lang.c (ada_to_fixed_value): Call unwrap_value before
8717 creating fixed value.
8718 (ada_value_ind, ada_coerce_ref, assign_component)
8719 (ada_evaluate_subexp): Remove call to unwrap_value before
8720 call to ada_to_fixed_value.
8721
8722 2012-02-29 Joel Brobecker <brobecker@adacore.com>
8723
8724 * ada-lang.c (to_fixed_array_type): Set result's type name.
8725
8726 2012-02-29 Joel Brobecker <brobecker@adacore.com>
8727
8728 * ada-lang.c (catch_ada_exception_command_split): Add new
8729 argument cond_string. Add support for condition at end of
8730 "catch exception" commands.
8731 (ada_decode_exception_location): Add new argument cond_string.
8732 Update call to catch_ada_exception_command_split.
8733 (create_ada_exception_catchpoint): Add new argument cond_string.
8734 Set the breakpoint condition if needed.
8735 (catch_ada_exception_command): Update call to
8736 ada_decode_exception_location.
8737 (ada_decode_assert_location): Add function documentation.
8738 Add support for condition at end of "catch assert" command.
8739 (catch_assert_command): Update calls to ada_decode_assert_location
8740 and create_ada_exception_catchpoint.
8741
8742 2012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
8743
8744 Fix disp-step-syscall.exp: fork: single step over fork.
8745 * i386-linux-tdep.c (-i386_linux_get_syscall_number): Rename to ...
8746 (i386_linux_get_syscall_number_from_regcache): ... here, new function
8747 comment, change parameters gdbarch and ptid to regcache. Remove
8748 parameter regcache, initialize gdbarch from regcache here.
8749 (i386_linux_get_syscall_number, i386_linux_displaced_step_copy_insn):
8750 New functions.
8751 (i386_linux_init_abi): Install i386_linux_displaced_step_copy_insn
8752 instead.
8753 * i386-tdep.c (i386_syscall_p): Check also for 'sysenter' and
8754 'syscall'. Make the 'int' check more strict.
8755
8756 2012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
8757
8758 Fix reverse mode for syscall on AMD CPUs in 32-bit mode.
8759 * i386-linux-tdep.c (i386_linux_intx80_sysenter_record): Rename to ...
8760 (i386_linux_intx80_sysenter_syscall_record): ... here.
8761 (i386_linux_init_abi): Initialize also I386_SYSCALL_RECORD.
8762 Use the renamed function name.
8763
8764 2012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
8765
8766 * arm-linux-tdep.c (arm_linux_copy_svc): Reset stale FRAME.
8767 * breakpoint.c (until_break_command): Likewise.
8768 * elfread.c (elf_gnu_ifunc_resolver_stop): Likewise.
8769 * infcall.c (call_function_by_hand): Likewise.
8770 * infcmd.c (finish_forward): Likewise.
8771 * infrun.c (insert_exception_resume_breakpoint): Likewise.
8772
8773 2012-02-28 Tristan Gingold <gingold@adacore.com>
8774
8775 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Rework code to
8776 avoid variable assignments inside condition.
8777
8778 2012-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
8779
8780 Fix static analysis issue found by cppcheck.
8781 * microblaze-tdep.c (microblaze_extract_return_value): Fix
8782 uninitialized BUF for size 2.
8783
8784 2012-02-27 Chris Dearman <chris@mips.com>
8785 Nathan Froyd <froydnj@codesourcery.com>
8786 Maciej W. Rozycki <macro@codesourcery.com>
8787
8788 * mips-tdep.c (mips32_instruction_has_delay_slot): New function.
8789 (mips16_instruction_has_delay_slot): Likewise.
8790 (mips_segment_boundary): Likewise.
8791 (mips_adjust_breakpoint_address): Likewise.
8792 (mips_gdbarch_init): Use mips_adjust_breakpoint_address.
8793
8794 2012-02-27 Maciej W. Rozycki <macro@mips.com>
8795 Maciej W. Rozycki <macro@codesourcery.com>
8796
8797 * infrun.c (handle_inferior_event): Don't proceed through
8798 shared library trampolines if stepping at the machine
8799 instruction level.
8800
8801 2012-02-27 Maciej W. Rozycki <macro@codesourcery.com>
8802
8803 * mips-linux-tdep.c (mips_linux_init_abi): Set num_pseudo_regs
8804 too.
8805
8806 2012-02-27 Thomas Schwinge <thomas@codesourcery.com>
8807
8808 * sh-tdep.c (sh_make_stub_cache, sh_stub_this_id)
8809 (sh_stub_unwind_sniffer): New functions.
8810 (sh_stub_unwind): New variable.
8811 (sh_gdbarch_init): Wire everything.
8812
8813 2012-02-27 Pedro Alves <palves@redhat.com>
8814
8815 * linux-nat.c (pid_is_stopped): Delete, moved to common/.
8816 (linux_nat_post_attach_wait): Adjust to use
8817 linux_proc_pid_is_stopped.
8818 * common/linux-procfs.h (linux_proc_pid_is_stopped): Declare.
8819 * common/linux-procfs.c (linux_proc_pid_is_stopped): New function,
8820 based on pid_is_stopped from both linux-nat.c and
8821 gdbserver/linux-low.c, and renamed.
8822
8823 2012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
8824
8825 * remote.c (remote_watchpoint_addr_within_range): New function.
8826 (init_remote_ops): Use it.
8827
8828 2012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
8829
8830 * target.h (target_watchpoint_addr_within_range): Document macro.
8831
8832 2012-02-24 Pedro Alves <palves@redhat.com>
8833
8834 * stack.c (set_last_displayed_sal): Issue internal_error instead
8835 of warning, and issue it after clearing the last displayed sal.
8836
8837 2012-02-24 Jan Kratochvil <jan.kratochvil@redhat.com>
8838 Pedro Alves <palves@redhat.com>
8839
8840 * breakpoint.c (until_break_command): Install breakpoints after
8841 all frame manipulations.
8842
8843 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
8844
8845 * remote.c (remote_supports_cond_breakpoints): New forward
8846 declaration.
8847 (remote_add_target_side_condition): New function.
8848 (remote_insert_breakpoint): Add target-side breakpoint
8849 conditional if supported.
8850 (remote_insert_hw_breakpoint): Likewise.
8851 (init_remote_ops): Set to_supports_evaluation_of_breakpoint_conditions
8852 hook.
8853
8854 * target.c (update_current_target): Inherit
8855 to_supports_evaluation_of_breakpoint_conditions.
8856 Default to_supports_evaluation_of_breakpoint_conditions to return_zero.
8857
8858 * target.h (struct target_ops)
8859 <to_supports_evaluation_of_breakpoint_conditions>: New field.
8860 (target_supports_evaluation_of_breakpoint_conditions): New #define.
8861
8862 * breakpoint.c (get_first_locp_gte_addr): New forward declaration.
8863 (condition_evaluation_both, condition_evaluation_auto,
8864 condition_evaluation_host, condition_evaluation_target,
8865 condition_evaluation_enums, condition_evaluation_mode_1,
8866 condition_evaluation_mode): New static globals.
8867 (translate_condition_evaluation_mode): New function.
8868 (breakpoint_condition_evaluation_mode): New function.
8869 (gdb_evaluates_breakpoint_condition_p): New function.
8870 (ALL_BP_LOCATIONS_AT_ADDR): New helper macro.
8871 (mark_breakpoint_modified): New function.
8872 (mark_breakpoint_location_modified): New function.
8873 (set_condition_evaluation_mode): New function.
8874 (show_condition_evaluation_mode): New function.
8875 (bp_location_compare_addrs): New function.
8876 (get_first_location_gte_addr): New helper function.
8877 (set_breakpoint_condition): Free condition bytecode if locations
8878 has become unconditional. Call mark_breakpoint_modified (...).
8879 (condition_command): Call update_global_location_list (1) for
8880 breakpoints.
8881 (breakpoint_xfer_memory): Use is_breakpoint (...).
8882 (is_breakpoint): New function.
8883 (parse_cond_to_aexpr): New function.
8884 (build_target_condition_list): New function.
8885 (insert_bp_location): Handle target-side conditional
8886 breakpoints and call build_target_condition_list (...).
8887 (update_inserted_breakpoint_locations): New function.
8888 (insert_breakpoint_locations): Handle target-side conditional
8889 breakpoints.
8890 (bpstat_check_breakpoint_conditions): Add comment.
8891 (bp_condition_evaluator): New function.
8892 (bp_location_condition_evaluator): New function.
8893 (print_breakpoint_location): Print information on where the condition
8894 will be evaluated.
8895 (print_one_breakpoint_location): Likewise.
8896 (init_bp_location): Call mark_breakpoint_location_modified (...) for
8897 breakpoint location.
8898 (force_breakpoint_reinsertion): New functions.
8899 (update_global_location_list): Handle target-side breakpoint
8900 conditions.
8901 Reinsert locations that are already inserted if conditions have
8902 changed.
8903 (bp_location_dtor): Free agent expression bytecode.
8904 (disable_breakpoint): Call mark_breakpoint_modified (...).
8905 Call update_global_location_list (...) with parameter 1 for breakpoints.
8906 (disable_command): Call mark_breakpoint_location_modified (...).
8907 Call update_global_location_list (...) with parameter 1 for breakpoints.
8908 (enable_breakpoint_disp): Call mark_breakpoint_modified (...).
8909 (enable_command): mark_breakpoint_location_modified (...).
8910 (_initialize_breakpoint): Update documentation and add
8911 condition-evaluation breakpoint subcommand.
8912
8913 * breakpoint.h: Include ax.h.
8914 (condition_list): New data structure.
8915 (condition_status): New enum.
8916 (bp_target_info) <cond_list>: New field.
8917 (bp_location) <condition_changed, cond_bytecode>: New fields.
8918 (is_breakpoint): New prototype.
8919
8920 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
8921
8922 * remote.c (remote_state) <cond_breakpoints>: New field.
8923 (PACKET_ConditionalBreakpoints): New enum.
8924 (remote_cond_breakpoint_feature): New function.
8925 (remote_protocol_features): Add new ConditionalBreakpoints entry.
8926 (remote_supports_cond_breakpoints): New function.
8927 (_initialize_remote): Add new packet configuration for
8928 target-side conditional breakpoints.
8929
8930 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
8931
8932 * NEWS: Mention target-side conditional breakpoint support,
8933 new condition-evaluation breakpoint subcommand and remote
8934 packet extensions.
8935
8936 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
8937
8938 * breakpoint.c (bp_location_compare): Sort by pspace before sorting by
8939 number.
8940
8941 2012-02-24 Thomas Schwinge <thomas@codesourcery.com>
8942
8943 * sh-tdep.c (sh_skip_prologue): Use skip_prologue_using_sal.
8944 (after_prologue): Remove.
8945
8946 2012-02-23 Tom Tromey <tromey@redhat.com>
8947
8948 * jv-valprint.c (java_val_print): Remove dead code.
8949
8950 2012-02-23 Tristan Gingold <gingold@adacore.com>
8951
8952 * ada-tasks.c (struct ada_tasks_inferior_data): Add
8953 known_tasks_element and known_tasks_length fields.
8954 (read_known_tasks_array): Change argument type. Use pointer type
8955 and number of elements from DATA. Adjust.
8956 (read_known_tasks_list): Likewise.
8957 (get_known_tasks_addr): Remove.
8958 (ada_set_current_inferior_known_tasks_addr): Renamed to ...
8959 (ada_tasks_inferior_data_sniffer): ... this. Use symtab for element
8960 type and array length. Merge former get_known_tasks_addr code.
8961
8962 2012-02-23 Jan Kratochvil <jan.kratochvil@redhat.com>
8963
8964 PR backtrace/13716
8965 * infcmd.c (finish_forward): New variable frame_id, initialize it, use
8966 it after set_momentary_breakpoint.
8967
8968 2012-02-22 Sterling Augustine <saugustine@google.com>
8969
8970 PR 13689:
8971 * breakpoint.c (watchpoint_exp_is_constant): Add UNOP_CAST to switch.
8972
8973 2012-02-22 Gary Benson <gbenson@redhat.com>
8974
8975 * dwarf2read.c (dwarf2_read_index): Correct misspelling.
8976 (find_slot_in_mapped_hash): Likewise.
8977
8978 2012-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
8979
8980 PR build/13638
8981 * configure.ac (MAKEINFO): Replace AC_CHECK_PROG by AC_ARG_VAR.
8982 (MAKEINFOFLAGS): Replace static string by AC_ARG_VAR.
8983 * configure: Regenerate.
8984
8985 2012-02-21 Tristan Gingold <gingold@adacore.com>
8986 Pedro Alves <palves@redhat.com>
8987
8988 * ia64-tdep.c: Do not include libunwind-ia64.h.
8989 * libunwind-frame.h: Remove #ifdef HAVE_LIBUNWIND_H guard.
8990 Include libunwind-ia64.h instead of libunwind.h.
8991 * configure.ac (--with-libunwind, $enable_libunwind): Don't check
8992 for libunwind.h existence.
8993 * configure, config.in: Regenerate.
8994
8995 2012-02-21 Anton Gorenkov <xgsa@yandex.ru>
8996
8997 * c-valprint.c (c_value_print): Use value_rtti_indirect_type
8998 instead of value_rtti_target_type.
8999 * eval.c (evaluate_subexp_standard): Use value_rtti_indirect_type
9000 instead of value_rtti_target_type.
9001 * typeprint.c (whatis_exp): Use value_rtti_indirect_type instead of
9002 value_rtti_target_type.
9003 * valops.c (value_ind): Extract function readjust_indirect_value_type.
9004 (value_rtti_target_type): Rename to ...
9005 (value_rtti_indirect_type): ... here and make it indirect. Update
9006 function comment.
9007 * value.c (readjust_indirect_value_type): New function.
9008 (coerce_ref): Support for enclosing type setting for references
9009 with readjust_indirect_value_type.
9010 * value.h (readjust_value_type): New declaration.
9011 (value_rtti_target_type): Rename to ...
9012 (value_rtti_indirect_type): ... here.
9013
9014 2012-02-21 Anton Gorenkov <xgsa@yandex.ru>
9015
9016 * MAINTAINERS (Write After Approval): Add myself to the list.
9017
9018 2012-02-20 Doug Evans <dje@google.com>
9019
9020 * objfiles.c (add_to_objfile_sections): Remove outdated comments.
9021 Rename objfile_p_char parameter to objfilep.
9022 (build_objfile_section_table): Result is now void. All callers
9023 updated.
9024 * objfiles.h (struct objfile): Tweak comments, whitespace.
9025 (build_objfile_section_table): Update.
9026
9027 * elfread.c (elf_symfile_segments): Fix warning text.
9028
9029 2012-02-20 Tom Tromey <tromey@redhat.com>
9030
9031 PR gdb/13498:
9032 * dwarf2read.c (dw2_expand_symtabs_matching): Only visit a
9033 particular set of file names once.
9034 (dw2_map_symbol_filenames): Likewise.
9035
9036 2012-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
9037
9038 Code cleanup.
9039 * main.c (write_files): Remove the declaration.
9040 (external_editor_command): Move the declaration ...
9041 [GDBTK] (external_editor_command): ... here. Fix the comment.
9042
9043 2012-02-20 Tom Tromey <tromey@redhat.com>
9044
9045 * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove
9046 extraneous block.
9047
9048 2012-02-20 Tristan Gingold <gingold@adacore.com>
9049
9050 * darwin-nat.h (enum darwin_msg_state): Add comments.
9051
9052 2012-02-20 Tristan Gingold <gingold@adacore.com>
9053
9054 * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Fix jb_pc_offset
9055 value.
9056
9057 2012-20-18 Joel Brobecker <brobecker@adacore.com>
9058
9059 * breakpoint.c (watchpoint_exp_is_const): Add missing empty line
9060 between function description and implementation.
9061
9062 2012-02-17 Tom Tromey <tromey@redhat.com>
9063
9064 PR python/12070:
9065 * python/py-event.c (event_object_getset): New global.
9066 (event_object_type): Reference it.
9067 * python/py-type.c (field_object_getset): New global.
9068 (field_object_type): Reference it.
9069 * python/python-internal.h (gdb_py_generic_dict): Declare.
9070 * python/py-utils.c (gdb_py_generic_dict): New function.
9071
9072 2012-02-17 Tristan Gingold <gingold@adacore.com>
9073
9074 * solib-darwin.c (darwin_current_sos): Check magic and filetype
9075
9076 2012-02-17 Thomas Schwinge <thomas@codesourcery.com>
9077
9078 * sh-tdep.c (sh_is_renesas_calling_convention): Fix handling of
9079 TYPE_CALLING_CONVENTION annotation.
9080
9081 2012-02-16 Kevin Buettner <kevinb@redhat.com>
9082
9083 * MAINTAINERS: Add rx to target ISA section.
9084 * Makefile.in (ALL_TARGET_OBS): Add rx-tdep.o.
9085 (ALLDEPFILES): Add rx-tdep.c.
9086
9087 2012-02-16 Tom Tromey <tromey@redhat.com>
9088
9089 * symfile.c (symbol_file_add_main_1): Use inferior's
9090 symfile_flags.
9091 * solib.c (solib_read_symbols): Use inferior's symfile_flags.
9092 * linux-nat.c (linux_child_follow_fork): Set symfile_flags on
9093 inferior.
9094 * infrun.c (handle_vfork_child_exec_or_exit): Set symfile_flags on
9095 inferior.
9096 (follow_exec): Use inferior's symfile_flags.
9097 * inferior.h (struct inferior) <symfile_flags>: New field.
9098
9099 2012-02-16 Mike Frysinger <vapier@gentoo.org>
9100
9101 PR gdb/9734:
9102 * remote-sim.c (gdbsim_create_inferior): Call error() when
9103 sim_create_inferior() fails.
9104
9105 2012-02-16 Josh Matthews <josh@joshmatthews.net>
9106
9107 * machoread.c: Initialize nbr_syms to avoid warnings-as-errors failure.
9108
9109 2012-02-16 Tom Tromey <tromey@redhat.com>
9110
9111 PR c++/13653:
9112 * thread.c (struct current_thread_cleanup) <was_removable>: New
9113 field.
9114 (restore_current_thread_cleanup_dtor): Restore 'removable' field.
9115 (make_cleanup_restore_current_thread): Initialize new field.
9116
9117 2012-02-15 Kevin Buettner <kevinb@redhat.com>
9118
9119 * MAINTAINERS: Add rl78 to target ISA section.
9120 * Makefile.in (ALL_TARGET_OBS): Add rl78-tdep.o.
9121 (ALLDEPFILES): Add rl78-tdep.c.
9122 * NEWS: Mention rl78 as a new target.
9123
9124 2012-02-15 Aleksandar Ristovski <aristovski@qnx.com>
9125
9126 * frame.c (find_frame_sal): Initialize sal->pspace field from frame
9127 data.
9128 * stack.c (set_last_displayed_sal): Validate that PSPACE is not NULL.
9129
9130 2012-02-15 Tom Tromey <tromey@redhat.com>
9131
9132 PR gdb/12659:
9133 * infcmd.c (registers_info): Print just the current register's
9134 name.
9135
9136 2012-02-15 Tom Tromey <tromey@redhat.com>
9137
9138 * python/py-symbol.c (sympy_value): Use _().
9139
9140 2012-02-15 Pedro Alves <palves@redhat.com>
9141
9142 * remote.c (remote_detach_1, extended_remote_attach_1): Tweak
9143 output to be like native targets'.
9144 (remote_pid_to_str): Special case the null ptid.
9145
9146 2012-02-14 Stan Shebs <stan@codesourcery.com>
9147
9148 * NEWS: Mention enable count command.
9149 * breakpoint.h (struct breakpoint): New field enable_count.
9150 * breakpoint.c (enable_breakpoint_disp): Add count argument.
9151 (enable_breakpoint): Add arg to call.
9152 (struct disp_data): New struct.
9153 (do_enable_breakpoint_disp): Interp arg as disp_data and unpack.
9154 (do_map_enable_once_breakpoint): Create a struct and pass it.
9155 (do_map_enable_delete_breakpoint): Ditto.
9156 (do_map_enable_count_breakpoint): New function.
9157 (enable_count_command): New function.
9158 (bpstat_stop_status): Decrement enable_count.
9159 (print_one_breakpoint_location): Report enable count.
9160 (_initialize_breakpoint): Add enable count command.
9161
9162 2012-02-14 Kevin Buettner <kevinb@redhat.com>
9163
9164 * rl78-tdep.c (reggroups.h): Include.
9165 (RL78_RAW_BANK0_R0_REGNUM, RL78_RAW_BANK0_R1_REGNUM)
9166 (RL78_RAW_BANK0_R2_REGNUM, RL78_RAW_BANK0_R3_REGNUM)
9167 (RL78_RAW_BANK0_R4_REGNUM, RL78_RAW_BANK0_R5_REGNUM)
9168 (RL78_RAW_BANK0_R6_REGNUM, RL78_RAW_BANK0_R7_REGNUM)
9169 (RL78_RAW_BANK1_R0_REGNUM, RL78_RAW_BANK1_R1_REGNUM)
9170 (RL78_RAW_BANK1_R2_REGNUM, RL78_RAW_BANK1_R3_REGNUM)
9171 (RL78_RAW_BANK1_R4_REGNUM, RL78_RAW_BANK1_R5_REGNUM)
9172 (RL78_RAW_BANK1_R6_REGNUM, RL78_RAW_BANK1_R7_REGNUM)
9173 (RL78_RAW_BANK2_R0_REGNUM, RL78_RAW_BANK2_R1_REGNUM)
9174 (RL78_RAW_BANK2_R2_REGNUM, RL78_RAW_BANK2_R3_REGNUM)
9175 (RL78_RAW_BANK2_R4_REGNUM, RL78_RAW_BANK2_R5_REGNUM)
9176 (RL78_RAW_BANK2_R6_REGNUM, RL78_RAW_BANK2_R7_REGNUM)
9177 (RL78_RAW_BANK3_R0_REGNUM, RL78_RAW_BANK3_R1_REGNUM)
9178 (RL78_RAW_BANK3_R2_REGNUM, RL78_RAW_BANK3_R3_REGNUM)
9179 (RL78_RAW_BANK3_R4_REGNUM, RL78_RAW_BANK3_R5_REGNUM)
9180 (RL78_RAW_BANK3_R6_REGNUM, RL78_RAW_BANK3_R7_REGNUM): Add to
9181 beginning of register list.
9182 (RL78_BANK0_R0_REGNUM, RL78_BANK0_R1_REGNUM, RL78_BANK0_R2_REGNUM)
9183 (RL78_BANK0_R3_REGNUM, RL78_BANK0_R4_REGNUM, RL78_BANK0_R5_REGNUM)
9184 (RL78_BANK0_R6_REGNUM, RL78_BANK0_R7_REGNUM, RL78_BANK1_R0_REGNUM)
9185 (RL78_BANK1_R1_REGNUM, RL78_BANK1_R2_REGNUM, RL78_BANK1_R3_REGNUM)
9186 (RL78_BANK1_R4_REGNUM, RL78_BANK1_R5_REGNUM, RL78_BANK1_R6_REGNUM)
9187 (RL78_BANK1_R7_REGNUM, RL78_BANK2_R0_REGNUM, RL78_BANK2_R1_REGNUM)
9188 (RL78_BANK2_R2_REGNUM, RL78_BANK2_R3_REGNUM, RL78_BANK2_R4_REGNUM)
9189 (RL78_BANK2_R5_REGNUM, RL78_BANK2_R6_REGNUM, RL78_BANK2_R7_REGNUM)
9190 (RL78_BANK3_R0_REGNUM, RL78_BANK3_R1_REGNUM, RL78_BANK3_R2_REGNUM)
9191 (RL78_BANK3_R3_REGNUM, RL78_BANK3_R4_REGNUM, RL78_BANK3_R5_REGNUM)
9192 (RL78_BANK3_R6_REGNUM, RL78_BANK3_R7_REGNUM): Move these into
9193 the pseudo registers. Rearrange other pseudo registers too so
9194 that the bank registers appear at the end.
9195 (rl78_register_type): Account for the fact that the byte sized
9196 bank registers are now pseudo-registers.
9197 (rl78_register_name): Rearrange the register name array. Make
9198 initial set of raw banked registers inaccessible.
9199 (rl78_register_reggroup_p, rl78_register_sim_regno): New functions.
9200 (rl78_pseudo_register_read, rl78_pseudo_register_write): Add
9201 case for copying bytes back and forth between raw and pseudo
9202 versions of the banked registers. Update other cases to reflect
9203 the changed names.
9204 (rl78_return_value): Update to account for changed names of
9205 raw registers.
9206 (rl78_gdbarch_init): Register rl78_register_reggroup_p() and
9207 rl78_register_sim_regno().
9208
9209 2012-02-14 Kevin Buettner <kevinb@redhat.com>
9210
9211 * rl78-tdep.c (rl78_skip_prologue): Make `const' the type of
9212 the name parameter being passed to find_pc_partial_function().
9213
9214 2012-02-14 Jan Kratochvil <jan.kratochvil@redhat.com>
9215
9216 * MAINTAINERS: Step down from being ia64 target maintainer.
9217
9218 2012-02-12 Jan Kratochvil <jan.kratochvil@redhat.com>
9219
9220 * ppc-linux-nat.c (fetch_register, store_register): Fix GCC aliasing
9221 compilation warning.
9222
9223 2012-02-12 Jan Kratochvil <jan.kratochvil@redhat.com>
9224
9225 Fix crash on loaded shlibs without loaded exec_bfd.
9226 * exec.c (exec_files_info): Do not crash on NULL EXEC_BFD.
9227 (set_section_command): Replace exec_bfd by p->bfd.
9228
9229 2012-02-10 Tom Tromey <tromey@redhat.com>
9230
9231 * linespec.c (decode_line_internal): Skip symtabs_from_filename
9232 when we have a C++ qualified name.
9233
9234 2012-02-10 Pedro Alves <palves@redhat.com>
9235
9236 * inferior.c (inferior_pid_to_str): New.
9237 (print_inferior, inferior_command): Use it.
9238
9239 2012-02-10 Pedro Alves <palves@redhat.com>
9240
9241 * configure.ac (HAVE_ELF test): Put the old CFLAGS at the end of
9242 the test CFLAGS.
9243 * configure: Regenerate.
9244
9245 2012-02-10 Jan Kratochvil <jan.kratochvil@redhat.com>
9246
9247 * linespec.c (decode_line_internal): Fix comment correctness.
9248
9249 2012-02-09 Valery Khromov <valery.khromov@gmail.com>
9250
9251 PR gdb/12953
9252 * Makefile.in (HFILES_NO_SRCDIR): Add amd64bsd-nat.h.
9253 * amd64bsd-nat.c: Add support for debug registers (adapted from
9254 i386bsd-nat.c).
9255 [HAVE_PT_GETDBREGS] (amd64bsd_dr_get, amd64bsd_dr_set)
9256 (amd64bsd_dr_set_control, amd64bsd_dr_set_addr)
9257 (amd64bsd_dr_get_addr, amd64bsd_dr_get_status)
9258 (amd64bsd_dr_get_control): New functions.
9259 * amd64bsd-nat.h: New file (adapted from i386bsd-nat.h).
9260 * amd64fbsd-nat.c: Include "amd64bsd-nat.h", "i386-nat.h".
9261 [HAVE_PT_GETDBREGS] (_initialize_amd64fbsd_nat): Add hardware
9262 watchpoints initialization.
9263 * config/i386/fbsd64.mh (NATDEPFILES): Add i386-nat.o.
9264
9265 2012-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
9266
9267 * gdb-gdb.py (StructMainTypePrettyPrinter) <struct_field_img>: Print
9268 flds_bnds.fields.
9269 (StructMainTypePrettyPrinter) <bounds_img>: Print flds_bnds.bounds.
9270
9271 2012-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
9272
9273 * breakpoint.c (bp_location_compare): Fix comment. Reindent the code.
9274
9275 2012-02-08 Joel Brobecker <brobecker@adacore.com>
9276
9277 * language.h (symbol_name_cmp_ftype): Renames
9278 symbol_name_match_p_ftype.
9279 (struct language_defn)[la_get_symbol_name_cmp]: Renames
9280 la_get_symbol_name_match_p.
9281 * ada-lang.c (ada_get_symbol_name_cmp): Renames
9282 ada_get_symbol_name_match_p. Update comment.
9283 (ada_language_defn)[la_get_symbol_name_cmp]: Update value.
9284 * linespec.c (struct symbol_matcher_data)[symbol_name_cmp]:
9285 Renames symbol_name_match_p. Update field type.
9286 (iterate_name_matcher, iterate_over_all_matching_symtabs): Adjust.
9287 * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
9288 opencl-lang.c, p-lang.c: Replace "la_get_symbol_name_match_p" by
9289 "la_get_symbol_name_cmp" in comments.
9290 * language.c: Likewise.
9291
9292 2012-02-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9293
9294 * amd64-sol2-tdep.c (amd64_sol2_gregset_reg_offset): Correct
9295 %eflags offset.
9296 * i386-sol2-nat.c (amd64_sol2_gregset64_reg_offs)
9297 (amd64_sol2_gregset32_reg_offs): Likewise.
9298
9299 2012-02-08 Joel Brobecker <brobecker@adacore.com>
9300
9301 * solib-darwin.c (darwin_bfd_open): Make sure that the filename
9302 of the returned BFD is allocated by GDB.
9303
9304 2012-02-07 Tom Tromey <tromey@redhat.com>
9305
9306 PR python/12027:
9307 * python/python-internal.h (frame_object_type): Declare.
9308 * python/py-symbol.c (sympy_needs_frame): New function.
9309 (sympy_value): New function.
9310 (symbol_object_getset): Add "needs_frame".
9311 (symbol_object_methods): Add "value".
9312 * python/py-frame.c (frame_object_type): No longer static.
9313
9314 2012-02-07 Tom Tromey <tromey@redhat.com>
9315
9316 PR python/13599:
9317 * python/py-symbol.c (sympy_line): New function.
9318 (symbol_object_getset): Add "line".
9319
9320 2012-02-07 Tom Tromey <tromey@redhat.com>
9321
9322 * charset.c (find_charset_names): Check 'in' against NULL.
9323
9324 2012-02-06 Doug Evans <dje@google.com>
9325
9326 * gdbtypes.h (struct main_type): Change type of name,tag_name,
9327 and fields.name members from char * to const char *. All uses updated.
9328 (struct cplus_struct_type): Change type of fn_fieldlists.name member
9329 from char * to const char *. All uses updated.
9330 (type_name_no_tag): Update.
9331 (lookup_unsigned_typename, lookup_signed_typename): Update.
9332 * gdbtypes.c (type_name_no_tag): Change result type
9333 from char * to const char *. All callers updated.
9334 (lookup_unsigned_typename, lookup_signed_typename): Change type of
9335 name parameter from char * to const char *.
9336 * symtab.h (struct cplus_specific): Change type of demangled_name
9337 member from char * to const char *. All uses updated.
9338 (struct general_symbol_info): Change type of name and
9339 mangled_lang.demangled_name members from char * to const char *.
9340 All uses updated.
9341 (symbol_get_demangled_name, symbol_natural_name): Update.
9342 (symbol_demangled_name, symbol_search_name): Update.
9343 * symtab.c (symbol_get_demangled_name): Change result type
9344 from char * to const char *. All callers updated.
9345 (symbol_natural_name, symbol_demangled_name): Ditto.
9346 (symbol_search_name): Ditto.
9347 (completion_list_add_name): Change type of symname,sym_text,
9348 text,word parameters from char * to const char *.
9349 (completion_list_objc_symbol): Change type of sym_text,
9350 text,word parameters from char * to const char *.
9351 * ada-lang.c (find_struct_field): Change type of name parameter
9352 from char * to const char *.
9353 (encoded_ordered_before): Similarly for N0,N1 parameters.
9354 (old_renaming_is_invisible): Similarly for function_name parameter.
9355 (ada_type_name): Change result type from char * to const char *.
9356 All callers updated.
9357 * ada-lang.h (ada_type_name): Update.
9358 * buildsym.c (hashname): Change type of name parameter
9359 from char * to const char *.
9360 * buildsym.h (hashname): Update.
9361 * dbxread.c (end_psymtab): Change type of include_list parameter
9362 from char ** to const char **.
9363 * dwarf2read.c (determine_prefix): Change result type
9364 from char * to const char *. All callers updated.
9365 * f-lang.c (find_common_for_function): Change type of name, funcname
9366 parameters from char * to const char *.
9367 * f-lang.c (find_common_for_function): Update.
9368 * f-valprint.c (list_all_visible_commons): Change type of funcname
9369 parameters from char * to const char *.
9370 * gdbarch.sh (static_transform_name): Change type of name parameter
9371 and result from char * to const char *.
9372 * gdbarch.c: Regenerate.
9373 * gdbarch.h: Regenerate.
9374 * i386-sol2-tdep.c (i386_sol2_static_transform_name): Change type
9375 of name parameter from char * to const char *.
9376 * jv-lang.c (java_primitive_type_from_name): Ditto.
9377 (java_demangled_signature_length): Similarly for signature parameter.
9378 (java_demangled_signature_copy): Ditto.
9379 (java_demangle_type_signature): Ditto.
9380 * jv-lang.h (java_primitive_type_from_name): Update.
9381 (java_demangle_type_signature): Update.
9382 * objc-lang.c (specialcmp): Change type of a,b parameters
9383 from char * to const char *.
9384 * p-lang.c (is_pascal_string_type): Change type of arrayname parameter
9385 from char * to const char *. All callers updated.
9386 * p-lang.h (is_pascal_string_type): Update.
9387 * solib-frv.c (find_canonical_descriptor_in_load_object): Change type
9388 of name parameter from char * to const char *.
9389 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Ditto.
9390 * utils.c (fprintf_symbol_filtered): Ditto.
9391 * defs.h (fprintf_symbol_filtered): Update.
9392 * sparc-tdep.h (sparc_sol2_static_transform_name): Update.
9393 * stabsread.h (end_psymtab): Update.
9394 * stack.c (find_frame_funname): Change type of funname parameter
9395 from char ** to const char **.
9396 * stack.h (find_frame_funname): Update.
9397 * typeprint.c (type_print): Change type of varstring parameter
9398 from char * to const char *.
9399 * value.h (type_print): Update.
9400 * xcoffread.c (xcoff_start_psymtab): Change type of filename parameter
9401 from char * to const char *. All callers updated.
9402 (xcoff_end_psymtab): Change type of include_list parameter
9403 from char ** to const char **. All callers updated.
9404 (swap_sym): Similarly for name parameter. All callers updated.
9405 * coffread.c (patch_type): Add (char*) cast to xfree parameter.
9406 Use xstrdup.
9407 (process_coff_symbol): Use xstrdup.
9408 * stabsread.c (stabs_method_name_from_physname): Renamed from
9409 update_method_name_from_physname. Change result type from void
9410 to char *. All callers updated.
9411 (read_member_functions): In has_destructor case, store name in objfile
9412 obstack instead of malloc space. In !has_stub case, fix mem leak.
9413
9414 2012-02-06 Luca Pizzamiglio <luca.pizzamiglio@gmail.com>
9415
9416 * configure: Rebuild.
9417 * configure.ac: Put -L../bfd and -L../libiberty at the front of
9418 LDFLAGS.
9419
9420 2012-02-03 Kevin Buettner <kevinb@redhat.com>
9421
9422 * configure.tgt (rl78-*-elf): New target.
9423 * rl78-tdep.c: New file.
9424
9425 2012-02-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9426
9427 * remote.c (remote_rcmd): Use getpkt_sane to detect timeout
9428 and continue the loop. Add QUIT statement.
9429
9430 2012-02-03 Tom Tromey <tromey@redhat.com>
9431
9432 PR gdb/13596:
9433 * solib.h (gdb_bfd_lookup_symbol_from_symtab): Rename from
9434 bfd_lookup_symbol_from_symtab.
9435 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
9436 gdb_bfd_lookup_symbol_from_symtab.
9437
9438 2012-02-03 Joel Brobecker <brobecker@adacore.com>
9439
9440 * mi/mi-cmd-stack.c (list_args_or_locals): For argument symbols,
9441 use SYMBOL_LINKAGE_NAME to find the corresponding non-argument
9442 symbol. Add assertion that sym2 is never NULL.
9443
9444 2012-02-02 Doug Evans <dje@google.com>
9445
9446 * blockframe.c (find_pc_partial_function_gnu_ifunc): Change type of
9447 "name" parameter to const char ** from char **. All callers updated.
9448 (find_pc_partial_function): Ditto.
9449 (cache_pc_function_name): Change type to const char * from char *.
9450 * symtab.h ((find_pc_partial_function_gnu_ifunc): Update.
9451 (find_pc_partial_function): Update.
9452 * alpha-tdep.h (struct gdbarch_tdep, member pc_in_sigtramp): Change
9453 type of "name" parameter to const char * from char *.
9454 All uses updated.
9455 * arch-utils.c (generic_in_solib_return_trampoline): Change
9456 type of "name" parameter to const char * from char *.
9457 * arch-utils.h (generic_in_solib_return_trampoline): Update.
9458 * frv-linux-tdep.c (frv_linux_pc_in_sigtramp): Change
9459 type of "name" parameter to const char * from char *.
9460 * gdbarch.sh (in_solib_return_trampoline): Ditto.
9461 * gdbarch.c: Regenerate.
9462 * gdbarch.h: Regenerate.
9463 * hppa-hpux-tdep.c (hppa_hpux_in_solib_return_trampoline): Update.
9464 * rs6000-tdep.c (rs6000_in_solib_return_trampoline): Update.
9465 * m32r-linux-tdep.c (m32r_linux_pc_in_sigtramp): Change
9466 type of "name" parameter to const char * from char *.
9467 * skip.c (skip_function_pc): Ditto.
9468 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Ditto.
9469 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp): Update.
9470 * sparc64fbsd-tdep.c (sparc64fbsd_pc_in_sigtramp): Ditto.
9471 * sparc64nbsd-tdep.c (sparc64nbsd_pc_in_sigtramp): Ditto.
9472 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Ditto.
9473 * sparcnbsd-tdep.c (sparc32nbsd_pc_in_sigtramp): Ditto.
9474 * sparcobsd-tdep.c (sparc32obsd_pc_in_sigtramp): Ditto.
9475 * nbsd-tdep.c (nbsd_pc_in_sigtramp): Similary for "func_name".
9476 * nbsd-tdep.h (nbsd_pc_in_sigtramp): Update.
9477
9478 2012-02-02 Pedro Alves <palves@redhat.com>
9479
9480 * remote.c (remote_get_min_fast_tracepoint_insn_len): Return 0 if
9481 the current inferior has no execution. Make sure the current
9482 remote process matches gdb's current inferior.
9483
9484 2012-02-02 Tom Tromey <tromey@redhat.com>
9485
9486 PR gdb/13405:
9487 * tui/tui-win.c (parse_scrolling_args): Don't write to possibly
9488 read-only memory.
9489
9490 2012-02-02 Tom Tromey <tromey@redhat.com>
9491
9492 PR gdb/9307:
9493 * symtab.c (lookup_language_this): Set block_found.
9494
9495 2012-02-01 Tom Tromey <tromey@redhat.com>
9496
9497 PR gdb/13431:
9498 * jit.c (struct jit_inferior_data): Rewrite.
9499 (struct jit_objfile_data): New.
9500 (get_jit_objfile_data): New function.
9501 (add_objfile_entry): Update.
9502 (jit_read_descriptor): Return int. Replace descriptor_addr
9503 argument with inf_data. Update. Don't call error.
9504 (jit_breakpoint_re_set_internal): Reorder logic. Update. Look up
9505 descriptor here.
9506 (jit_inferior_init): Don't look up descriptor. Don't call error.
9507 (jit_reset_inferior_data_and_breakpoints)
9508 (jit_inferior_created_observer): Remove.
9509 (jit_inferior_exit_hook): Update.
9510 (jit_executable_changed_observer): Remove.
9511 (jit_event_handler): Update.
9512 (free_objfile_data): Reset inferior data if needed.
9513 (_initialize_jit): Update.
9514
9515 2012-02-01 Tom Tromey <tromey@redhat.com>
9516
9517 * jit.c (bfd_open_from_target_memory): Move higher in file.
9518
9519 2012-02-01 Tristan Gingold <gingold@adacore.com>
9520
9521 * libunwind-frame.c (libunwind_load): Display message if dlopen
9522 failed.
9523
9524 2012-02-01 Gary Benson <gbenson@redhat.com>
9525
9526 * symtab.h (symbol_found_callback_ftype): New typedef.
9527 (iterate_over_symbols): Use the above.
9528 * symtab.c (iterate_over_symbols): Likewise.
9529 * language.h (language_defn->la_iterate_over_symbols): Likewise.
9530 * ada-lang.c (ada_iterate_over_symbols): Likewise.
9531 * linespec.c (iterate_over_all_matching_symtabs): Likewise.
9532 (iterate_name_matcher): Document return values.
9533 (collect_one_symbol): Likewise.
9534 (collect_function_symbols): Likewise.
9535 (collect_symbols): Likewise.
9536
9537 2012-02-01 Tom Tromey <tromey@redhat.com>
9538
9539 * ada-lang.c (resolve_subexp): Update.
9540 (ada_lookup_symbol_list): Add 'full_search' argument.
9541 (ada_iterate_over_symbols): Pass 0 as full_search argument to
9542 ada_lookup_symbol_list.
9543 (ada_lookup_encoded_symbol): Update.
9544 (get_var_value): Update.
9545 * ada-exp.y (block_lookup): Update.
9546 (write_var_or_type): Update.
9547 (write_name_assoc): Update.
9548 * ada-lang.h (ada_lookup_symbol_list): Update.
9549
9550 2012-01-31 Tom Tromey <tromey@redhat.com>
9551
9552 * language.h (struct language_defn) <la_iterate_over_symbols>: Fix
9553 comment.
9554
9555 2012-01-31 Doug Evans <dje@google.com>
9556
9557 * symtab.h: Remove outdated comment.
9558 (SYMBOL_MATCHES_NATURAL_NAME): Delete.
9559
9560 2012-02-01 Josh Matthews <josh@joshmatthews.net> (tiny change)
9561
9562 Fix build error in Darwin port.
9563 * i386-darwin-nat.c: Include i386-nat.h.
9564
9565 2012-01-30 Tom Tromey <tromey@redhat.com>
9566
9567 PR breakpoints/13568:
9568 * dwarf2read.c (dwarf_decode_macro_bytes): Add 'include_hash'
9569 argument. Check for recursive includes.
9570 (dwarf_decode_macros): Create an include hash.
9571
9572 2012-01-30 Michael Eager <eager@eagercon.com>
9573
9574 * configure.tgt (powerpc-*-linux*): Add glibc-tdep.o.
9575 * ppc-linux-tdep.c: Include glibc-tdep.h.
9576 (powerpc32_plt_stub, powerpc32_plt_stub_so): Add PLT stub templates.
9577 (powerpc_linux_in_plt_stub): New function.
9578 (powerpc_linux_in_dynsym_resolve_code): New function.
9579 (ppc_skip_trampoline_code): New function.
9580 (ppc_linux_init_abi): Use PPC specific functions rather than generic.
9581 Use glibc_skip_solib_resolver.
9582
9583 2012-01-28 Jan Kratochvil <jan.kratochvil@redhat.com>
9584
9585 Code cleanup: Make 1440 bytes of data segment read-only.
9586 * arch-utils.c (endian_enum): Make it const char *const [].
9587 * arm-tdep.c (fp_model_strings, arm_abi_strings, arm_mode_strings):
9588 Likewise.
9589 * breakpoint.c (always_inserted_enums): Likewise.
9590 * cli/cli-cmds.c (script_ext_enums): Likewise.
9591 * cli/cli-decode.c (add_setshow_enum_cmd, complete_on_enum): Make the
9592 enumlist parameter const char *const *.
9593 * cli/cli-decode.h (struct cmd_list_element): Make the enums field
9594 const char *const *.
9595 * command.h (complete_on_enum, add_setshow_enum_cmd): Make the enumlist
9596 parameter const char *const *.
9597 * cris-tdep.c (cris_modes): Make it const char *const [].
9598 * filesystem.c (target_file_system_kinds): Likewise.
9599 * i386-tdep.c (valid_flavors, valid_conventions): Likewise.
9600 * infrun.c (follow_fork_mode_kind_names, follow_exec_mode_names)
9601 (can_use_displaced_stepping_enum, scheduler_enums)
9602 (exec_direction_names): Likewise.
9603 * language.c (_initialize_language): Make the type_or_range_names and
9604 case_sensitive_names variables const char *const [].
9605 * mips-tdep.c (mips_abi_strings): Make it const char *const [].
9606 * python/python.c (python_excp_enums): Likewise.
9607 * remote.c (interrupt_sequence_modes): Likewise.
9608 * rs6000-tdep.c (powerpc_vector_strings): Likewise.
9609 * serial.c (logbase_enums): Likewise.
9610 * sh-tdep.c (sh_cc_enum): Likewise.
9611 * stack.c (print_frame_arguments_choices, print_entry_values_choices):
9612 Likewise.
9613 * symtab.c (multiple_symbols_modes): Likewise.
9614 * tui/tui-win.c (tui_border_kind_enums, tui_border_mode_enums):
9615 Likewise.
9616 * utils.c (internal_problem_modes): Likewise.
9617
9618 2012-01-27 Jan Kratochvil <jan.kratochvil@redhat.com>
9619
9620 Fix the 2012-01-26 regression by la_get_symbol_name_match_p.
9621 * linespec.c (iterate_name_matcher): Negate the SYMBOL_NAME_MATCH_P
9622 result.
9623
9624 2012-01-27 Doug Evans <dje@google.com>
9625
9626 * configure.ac (with_python): Fix absolute path handling for win32.
9627 * configure: Regenerate.
9628
9629 2012-01-26 Doug Evans <dje@google.com>
9630
9631 * symtab.c: Whitespace cleanup, no code changes.
9632
9633 * symtab.c (lookup_symbol_in_language): Improve comment.
9634 (lookup_symbol_aux): Fix comment.
9635
9636 * psymtab.c (add_psymbol_to_list): Result is now "void".
9637 * psympriv.h (add_psymbol_to_list): Update.
9638
9639 * dwarf2read.c (add_partial_symbol): Delete local psym, unused.
9640
9641 2012-01-26 Jan Kratochvil <jan.kratochvil@redhat.com>
9642
9643 Do not open script filenames twice.
9644 * cli/cli-cmds.c (source_script_from_stream): Pass to
9645 source_python_script also STREAM.
9646 * python/py-auto-load.c (source_section_scripts): Pass to
9647 source_python_script_for_objfile also STREAM.
9648 (auto_load_objfile_script): Pass to source_python_script_for_objfile
9649 also INPUT.
9650 * python/python-internal.h (source_python_script_for_objfile): New
9651 parameter file, rename parameter file to filename.
9652 * python/python.c (python_run_simple_file): Call PyRun_SimpleFile
9653 instead if !_WIN32. Update the function comment.
9654 (source_python_script, source_python_script_for_objfile)
9655 (source_python_script): New parameter file, rename parameter file to
9656 filename. Pass FILENAME to python_run_simple_file.
9657 * python/python.h (source_python_script): New parameter file, rename
9658 parameter file to filename.
9659
9660 2012-01-26 Pedro Alves <palves@redhat.com>
9661
9662 * corelow.c (core_has_fake_pid): Delete.
9663 (core_close): Delete references to `core_has_fake_pid'.
9664 (add_to_thread_list): Adjust to mark the inferior's pid as fake.
9665 (core_open): Delete references to `core_has_fake_pid'.
9666 (core_pid_to_str): Adjust to check inferior->fake_pid_p instead of
9667 the removed global.
9668
9669 2012-01-26 Joel Brobecker <brobecker@adacore.com>
9670
9671 * symfile.h (struct quick_symbol_functions) [expand_symtabs_matching]:
9672 Remove language parameter from name_matcher. Adjust the comment.
9673 * symtab.c (search_symbols_name_matches, expand_partial_symbol_name):
9674 Remove language parameter.
9675 * ada-lang.c (ada_expand_partial_symbol_name): Likewise.
9676 * linespec.c (iterate_name_matcher): Likewise.
9677 * dwarf2read.c (dw2_expand_symtabs_matching): Adjust type of
9678 name_matcher. Adjust call accordingly.
9679 * psymtab.c (expand_symtabs_matching_via_partial): Likewise.
9680 (maintenance_check_symtabs): Adjust type of parameter "fun".
9681 * psymtab.h (maintenance_check_symtabs): Likewise.
9682
9683 2012-01-26 Joel Brobecker <brobecker@adacore.com>
9684
9685 * language.h (symbol_name_match_p_ftype): New typedef.
9686 (struct language_defn): Replace field la_symbol_name_compare
9687 by la_get_symbol_name_match_p.
9688 * ada-lang.c (ada_get_symbol_name_match_p): New function.
9689 (ada_language_defn): Use it.
9690 * linespec.c (struct symbol_matcher_data): New type.
9691 (iterate_name_matcher): Rewrite.
9692 (iterate_over_all_matching_symtabs): Pass a pointer to
9693 a symbol_matcher_data struct to expand_symtabs_matching
9694 instead of just the lookup name.
9695 * c-lang.c, d-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
9696 opencl-lang.c, p-lang.c, language.c: Delete field
9697 la_symbol_name_compare, and replace by NULL for new field
9698 la_get_symbol_name_match_p.
9699 * symfile.h (struct quick_symbol_functions): Update comment.
9700
9701 2012-01-25 Tom Tromey <tromey@redhat.com>
9702
9703 * breakpoint.c (bpstat_stop_status): Check 'breakpoint_at' before
9704 dereferencing.
9705
9706 2012-01-24 Tom Tromey <tromey@redhat.com>
9707
9708 PR symtab/12406:
9709 * solib.c (update_solib_list): Update the program space's
9710 added_solibs and deleted_solibs fields.
9711 * progspace.h (struct program_space) <added_solibs,
9712 deleted_solibs>: New fields.
9713 (clear_program_space_solib_cache): Declare.
9714 * progspace.c (release_program_space): Call
9715 clear_program_space_solib_cache.
9716 (clear_program_space_solib_cache): New function.
9717 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>: Call
9718 bpstat_stop_status. Use handle_solib_event.
9719 * breakpoint.c: Include gdb_regex.h.
9720 (print_solib_event): New function.
9721 (bpstat_print): Use print_solib_event.
9722 (bpstat_stop_status): Add special case for bp_shlib_event.
9723 (handle_solib_event): New function.
9724 (bpstat_what): Use handle_solib_event.
9725 (struct solib_catchpoint): New.
9726 (dtor_catch_solib, insert_catch_solib, remove_catch_solib)
9727 (breakpoint_hit_catch_solib, check_status_catch_solib)
9728 (print_it_catch_solib, print_one_catch_solib)
9729 (print_mention_catch_solib, print_recreate_catch_solib): New
9730 functions.
9731 (catch_solib_breakpoint_ops): New global.
9732 (catch_load_or_unload, catch_load_command_1)
9733 (catch_unload_command_1): New functions.
9734 (internal_bkpt_check_status): Add special case for
9735 bp_shlib_event.
9736 (internal_bkpt_print_it): Use print_solib_event.
9737 (initialize_breakpoint_ops): Initialize
9738 catch_solib_breakpoint_ops.
9739 (_initialize_breakpoint): Register "catch load" and "catch
9740 unload".
9741 * breakpoint.h (handle_solib_event): Declare.
9742 * NEWS: Add entry for "catch load" and "catch unload".
9743
9744 2012-01-24 Tom Tromey <tromey@redhat.com>
9745
9746 * ada-lang.c: Include gdb_vecs.h.
9747 * charset.c: Include gdb_vecs.h.
9748 * tracepoint.h: Include gdb_vecs.h.
9749 * gdb_vecs.h: New file.
9750
9751 2012-01-24 Pedro Alves <pedro@codesourcery.com>
9752
9753 * breakpoint.c (breakpoint_hit_catch_fork)
9754 (breakpoint_hit_catch_vfork, breakpoint_hit_catch_syscall)
9755 (breakpoint_hit_catch_exec): Make use of the `ws' argument.
9756 * infrun.c (inferior_has_forked, inferior_has_vforked)
9757 (inferior_has_execd, inferior_has_called_syscall): Delete.
9758 (handle_syscall_event): Get syscall_number from the execution
9759 control state's wait status.
9760 (wait_for_inferior): Don't clear syscall_number.
9761
9762 2012-01-24 Pedro Alves <palves@redhat.com>
9763
9764 * breakpoint.c (bpstat_check_location, bpstat_stop_status,
9765 pc_at_non_inline_function): Add `ws' parameter, and pass it down.
9766 (breakpoint_hit_catch_fork, breakpoint_hit_catch_vfork)
9767 (breakpoint_hit_catch_syscall, breakpoint_hit_catch_exec): Add
9768 `ws' parameter.
9769 (breakpoint_hit_ranged_breakpoint): Add `ws' parameter. Return
9770 false for events other than TARGET_SIGNAL_TRAP.
9771 (breakpoint_hit_watchpoint, base_breakpoint_breakpoint_hit):
9772 Add `ws' parameter.
9773 (bkpt_breakpoint_hit): Add `ws' parameter. Return false for
9774 events other than TARGET_SIGNAL_TRAP.
9775 (tracepoint_breakpoint_hit): Add `ws' parameter.
9776 * breakpoint.h (struct breakpoint_ops) <breakpoint_hit>: Add `ws'
9777 parameter.
9778 (bpstat_stop_status): Same.
9779 (pc_at_non_inline_function): Same.
9780 * infrun.c (handle_syscall_event, handle_inferior_event): Adjust
9781 to pass the current event's waitstatus to bpstat_stop_status
9782 and pc_at_non_inline_function.
9783
9784 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
9785
9786 Code cleanup.
9787 * cli/cli-cmds.c (source_script_from_stream): Never fclose STREAM.
9788 Update the function comment for it.
9789 (source_script_with_search): Call make_cleanup_fclose for STREAM.
9790 * cli/cli-script.c (script_from_file): Do not call make_cleanup_fclose
9791 for STREAM.
9792
9793 2012-01-24 Pedro Alves <palves@redhat.com>
9794
9795 * breakpoint.c (bpstat_stop_status): Moving clearing print_it
9796 outside `bs->stop' block.
9797 (bpstat_what): Rework bp_shlib_event handling.
9798 (internal_bkpt_check_status): If the breakpoint is a
9799 bp_shlib_event, then set bs->stop and bs->print if
9800 stop_on_solib_events is set.
9801
9802 2012-01-24 Gary Benson <gbenson@redhat.com>
9803
9804 Delete #if 0'd out code.
9805 * stack.c (print_frame_label_vars): Remove.
9806 (catch_info): Likewise.
9807 (_initialize_stack): Remove "info catch" command.
9808 * NEWS: Mention the above.
9809
9810 2012-01-24 Pedro Alves <palves@redhat.com>
9811
9812 * remote.c (remote_add_inferior): New `fake_pid_p' parameter. Use
9813 it.
9814 (remote_notice_new_inferior): If the remote end doesn't support
9815 the multiprocess extensions, then the PID is fake.
9816 (add_current_inferior_and_thread): New.
9817 (remote_start_remote): Use it.
9818 (extended_remote_attach_1): Adjust.
9819 (extended_remote_create_inferior_1): Use
9820 add_current_inferior_and_thread.
9821
9822 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
9823
9824 Fix watchpoints to be specific for each inferior.
9825 * breakpoint.c (watchpoint_in_thread_scope): Verify also
9826 current_program_space.
9827 * i386-nat.c (i386_inferior_data_cleanup): New.
9828 (i386_inferior_data_get): Replace variable inf_data_local by an
9829 inferior_data call.
9830 (i386_use_watchpoints): Initialize i386_inferior_data.
9831 * linux-nat.c (linux_nat_iterate_watchpoint_lwps): Use INFERIOR_PTID
9832 specific iterate_over_lwps.
9833
9834 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
9835
9836 Fix watchpoints across inferior fork.
9837 * amd64-linux-nat.c (update_debug_registers_callback): Update the
9838 comment for linux_nat_iterate_watchpoint_lwps.
9839 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
9840 linux_nat_iterate_watchpoint_lwps.
9841 (amd64_linux_prepare_to_resume): New comment on Linux kernel.
9842 * i386-linux-nat.c (update_debug_registers_callback): Update the
9843 comment for linux_nat_iterate_watchpoint_lwps.
9844 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
9845 linux_nat_iterate_watchpoint_lwps.
9846 (i386_linux_prepare_to_resume): New comment on Linux kernel.
9847 * i386-nat.c: Include inferior.h.
9848 (dr_mirror): Remove.
9849 (i386_inferior_data, struct i386_inferior_data)
9850 (i386_inferior_data_get): New.
9851 (i386_debug_reg_state): Use i386_inferior_data_get.
9852 (i386_cleanup_dregs, i386_update_inferior_debug_regs)
9853 (i386_insert_watchpoint, i386_remove_watchpoint)
9854 (i386_stopped_data_address, i386_insert_hw_breakpoint)
9855 (i386_remove_hw_breakpoint): New variable state, use
9856 i386_debug_reg_state instead of DR_MIRROR.
9857 * linux-nat.c (delete_lwp): New declaration.
9858 (num_lwps): Move here from downwards.
9859 (delete_lwp_cleanup): New.
9860 (linux_child_follow_fork): Create new child_lp, call
9861 linux_nat_new_thread and linux_nat_prepare_to_resume before calling
9862 PTRACE_DETACH.
9863 (num_lwps): Move upwards.
9864 (linux_nat_iterate_watchpoint_lwps): New.
9865 * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): New.
9866 (linux_nat_iterate_watchpoint_lwps_ftype): New declaration.
9867
9868 2012-01-24 Joel Brobecker <brobecker@adacore.com>
9869
9870 GDB 7.4 released.
9871
9872 2012-01-23 Pedro Alves <palves@redhat.com>
9873
9874 * top.c (caution): Rename to ...
9875 (confirm): ... this.
9876 (show_caution): Rename to ...
9877 (show_confirm): ... this.
9878 (quit_cover): Adjust.
9879 (init_main): Adjust.
9880 * top.h (caution): Rename to ...
9881 (confirm): ... this.
9882 * utils.c (internal_vproblem, defaulted_query): Adjust.
9883
9884 2012-01-23 Pedro Alves <palves@redhat.com>
9885
9886 * top.c (caution): Update comment.
9887 (execute_command): Don't consider the current value of `caution'.
9888
9889 2012-01-23 Jan Kratochvil <jan.kratochvil@redhat.com>
9890
9891 * cli/cli-cmds.c (find_and_open_script): Handle failure of fdopen.
9892
9893 2012-01-23 Ulrich Weigand <ulrich.weigand@linaro.org>
9894
9895 * inf-child.c: Include "gdb_stat.h" instead of <sys/stat.h>.
9896 * linux-tdep.c (linux_info_proc): Avoid ARI coding style warning.
9897 * target.c (target_fileio_pwrite): Remove buffer address from
9898 debug output.
9899 (target_fileio_pread): Likewise.
9900
9901 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
9902
9903 * NEWS: Document remote "info proc" and "generate-core-file".
9904
9905 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
9906
9907 * gdbarch.sh (find_memory_regions): New callback.
9908 * gdbarch.c, gdbarch.h: Regenerate.
9909
9910 * gcore.c (gcore_memory_sections): Try gdbarch find_memory_regions
9911 callback before falling back to target method.
9912
9913 * linux-nat.c (read_mapping, linux_nat_find_memory_regions): Remove.
9914 (linux_target_install_ops): No longer install it.
9915
9916 * linux-tdep.c (linux_find_memory_regions): New function.
9917 (linux_init_abi): Install it.
9918
9919 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
9920
9921 * gdbarch.sh (make_corefile_notes): New architecture callback.
9922 * gdbarch.c: Regenerate.
9923 * gdbarch.h: Likewise.
9924
9925 * gcore.c (write_gcore_file): Try gdbarch_make_corefile_notes
9926 before target_make_corefile_notes. If NULL is returned, the
9927 target does not support core file generation.
9928
9929 * linux-nat.c: Include "linux-tdep.h".
9930 (find_signalled_thread, find_stop_signal): Remove.
9931 (linux_nat_do_thread_registers): Likewise.
9932 (struct linux_nat_corefile_thread_data): Likewise.
9933 (linux_nat_corefile_thread_callback): Likewise.
9934 (iterate_over_spus): Likewise.
9935 (struct linux_spu_corefile_data): Likewise.
9936 (linux_spu_corefile_callback): Likewise.
9937 (linux_spu_make_corefile_notes): Likewise.
9938 (linux_nat_collect_thread_registers): New function.
9939 (linux_nat_make_corefile_notes): Replace contents by call to
9940 linux_make_corefile_notes passing linux_nat_collect_thread_registers
9941 as native-only callback.
9942
9943 * linux-tdep.h: Include "bfd.h".
9944 (struct regcache): Add forward declaration.
9945 (linux_collect_thread_registers_ftype): New typedef.
9946 (linux_make_corefile_notes): Add prototype.
9947 * linux-tdep.c: Include "gdbthread.h", "gdbcore.h", "regcache.h",
9948 "regset.h", and "elf-bfd.h".
9949 (find_signalled_thread, find_stop_signal): New functions.
9950 (linux_spu_make_corefile_notes): Likewise.
9951 (linux_collect_thread_registers): Likewise.
9952 (struct linux_corefile_thread_data): New data structure.
9953 (linux_corefile_thread_callback): New funcion.
9954 (linux_make_corefile_notes): Likewise.
9955 (linux_make_corefile_notes_1): Likewise.
9956 (linux_init_abi): Install it.
9957
9958 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
9959
9960 * gdbarch.sh (info_proc): New callback.
9961 * gdbarch.c, gdbarch.h: Regenerate.
9962
9963 * infcmd.c (info_proc_cmd_1): Try gdbarch info_proc callback
9964 before falling back to the target info_proc callback.
9965
9966 * linux-nat.c: Do not include "cli/cli-utils.h".
9967 (linux_nat_info_proc): Remove.
9968 (linux_target_install_ops): No longer install it.
9969
9970 * linux-tdep.c: Include "cli/cli-utils.h" and <ctype.h>.
9971 (read_mapping): New function.
9972 (linux_info_proc): Likewise.
9973 (linux_init_abi): Install it.
9974
9975 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
9976
9977 * defs.h (enum info_proc_what): Moved here from linux-nat.c
9978 * infcmd.c: (info_proc_cmd_1): New function.
9979 (info_proc_cmd): New function, moved here from equivalent routine
9980 orignally in linux-nat.c.
9981 (info_proc_cmd_mappings): Likewise.
9982 (info_proc_cmd_stat): Likewise.
9983 (info_proc_cmd_status): Likewise.
9984 (info_proc_cmd_cwd): Likewise.
9985 (info_proc_cmd_cmdline): Likewise.
9986 (info_proc_cmd_exe): Likewise.
9987 (info_proc_cmd_all): Likewise.
9988 (_initialize_infcmd): Install "info proc" command and subcommands.
9989
9990 * target.h (struct target_ops): Add to_info_proc.
9991 (target_info_proc): Add prototype.
9992 * target.c (target_info_proc): New function.
9993
9994 * procfs.c (procfs_info_proc): Add prototype.
9995 (info_proc_cmd): Rename into ...
9996 (procfs_info_proc): ... this. Update argument types as appropriate
9997 for a to_info_proc implementation. Handle "what" argument.
9998 (procfs_target): Install procfs_info_proc.
9999 (_initialize_procfs): No longer install "info proc" command.
10000
10001 * linux-nat.c: (enum info_proc_what): Remove.
10002 (linux_nat_info_proc_cmd_1): Rename into ...
10003 (linux_nat_info_proc): ... this. Update argument types as appropriate
10004 for a to_info_proc implementation.
10005 (linux_nat_info_proc_cmd): Remove.
10006 (linux_nat_info_proc_cmd_mappings): Likewise.
10007 (linux_nat_info_proc_cmd_stat): Likewise.
10008 (linux_nat_info_proc_cmd_status): Likewise.
10009 (linux_nat_info_proc_cmd_cwd): Likewise.
10010 (linux_nat_info_proc_cmd_cmdline): Likewise.
10011 (linux_nat_info_proc_cmd_exe): Likewise.
10012 (linux_nat_info_proc_cmd_all): Likewise.
10013 (linux_target_install_ops): Install linux_nat_info_proc.
10014 (_initialize_linux_nat): No longer install "info proc" command
10015 and subcommands.
10016
10017 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
10018
10019 * configure.ac [AC_CHECK_FUNCS]: Check for readlink.
10020 * config.in, configure: Regenerate.
10021
10022 * target.h (struct target_ops): Add to_fileio_readlink.
10023 (target_fileio_readlink): Add prototype.
10024 * target.c (target_fileio_readlink): New function.
10025
10026 * inf-child.c: Conditionally include <sys/param.h>.
10027 (inf_child_fileio_readlink): New function.
10028 (inf_child_target): Install it.
10029
10030 * remote.c (PACKET_vFile_readlink): New enum value.
10031 (remote_hostio_readlink): New function.
10032 (init_remote_ops): Install it.
10033 (_initialize_remote): Handle vFile:readlink packet type.
10034
10035 2012-01-20 Pedro Alves <palves@redhat.com>
10036 Ulrich Weigand <ulrich.weigand@linaro.org>
10037
10038 * configure.ac [AC_CHECK_FUNCS]: Check for pread and pwrite.
10039 * config.in, configure: Regenerate.
10040
10041 * target.h (struct target_ops): Add to_fileio_open, to_fileio_pwrite,
10042 to_fileio_pread, to_fileio_close, to_fileio_unlink.
10043 (target_fileio_open): Add prototype.
10044 (target_fileio_pwrite): Likewise.
10045 (target_fileio_pread): Likewise.
10046 (target_fileio_close): Likewise.
10047 (target_fileio_unlink): Likewise.
10048 (target_fileio_read_alloc): Likewise.
10049 (target_fileio_read_stralloc): Likewise.
10050
10051 * target.c: Include "gdb/fileio.h".
10052 (target_read_stralloc): Accept trailing, but not embedded NUL bytes.
10053 (default_fileio_target): New function.
10054 (target_fileio_open): Likewise.
10055 (target_fileio_pwrite): Likewise.
10056 (target_fileio_pread): Likewise.
10057 (target_fileio_close): Likewise.
10058 (target_fileio_unlink): Likewise.
10059 (target_fileio_close_cleanup): Likewise.
10060 (target_fileio_read_alloc_1): Likewise.
10061 (target_fileio_read_alloc): Likewise.
10062 (target_fileio_read_stralloc): Likewise.
10063
10064 * inf-child.c: Include "gdb/fileio.h", <sys/types.h>, <sys/stat.h>,
10065 <fcntl.h>, and <unistd.h>.
10066 (inf_child_fileio_open_flags_to_host): New function.
10067 (inf_child_errno_to_fileio_error): Likewise.
10068 (inf_child_fileio_open): Likewise.
10069 (inf_child_fileio_pwrite): Likewise.
10070 (inf_child_fileio_pread): Likewise.
10071 (inf_child_fileio_close): Likewise.
10072 (inf_child_fileio_unlink): Likewise.
10073 (inf_child_target): Install to_fileio routines.
10074
10075 * remote.c (init_remote_ops): Install to_fileio routines.
10076
10077 2012-01-20 Pedro Alves <palves@redhat.com>
10078 Ulrich Weigand <ulrich.weigand@linaro.org>
10079
10080 * remote.c (remote_multi_process_p): Only check for multi-process
10081 protocol feature, do not check for extended protocol.
10082 (remote_supports_multi_process): Check for extended protocol here.
10083 (set_general_process): Likewise.
10084 (extended_remote_kill): Likewise.
10085 (remote_pid_to_str): Likewise.
10086 (remote_query_supported): Always query multiprocess mode.
10087
10088 2012-01-20 Pedro Alves <palves@redhat.com>
10089 Ulrich Weigand <ulrich.weigand@linaro.org>
10090
10091 * inferior.h (struct inferior): Add fake_pid_p.
10092 * inferior.c (exit_inferior_1): Clear fake_pid_p.
10093 * remote.c (remote_start_remote): Set fake_pid_p if we have to use
10094 magic_null_ptid since the remote side doesn't provide a real PID.
10095
10096 2012-01-19 Tom Tromey <tromey@redhat.com>
10097
10098 * NEWS: Combine the two Python sections.
10099
10100 2012-01-19 Jan Kratochvil <jan.kratochvil@redhat.com>
10101
10102 * target.h (target_close): Update comment on the target's unpush state.
10103
10104 2012-01-19 Pedro Alves <palves@redhat.com>
10105
10106 * linux-nat.c (linux_nat_close): Call linux_nat_is_async_p and
10107 linux_nat_async directly instead of going through the target
10108 vector.
10109 * target.c (unpush_target): Close target after unpushing it, not
10110 before.
10111
10112 2012-01-19 Gary Benson <gbenson@redhat.com>
10113
10114 * mdebugread.c (sort_blocks): Replace integer constants with ones
10115 derived from FIRST_LOCAL_BLOCK.
10116
10117 2012-01-18 Paul Pluzhnikov <ppluzhnikov@google.com>
10118 Jan Kratochvil <jan.kratochvil@redhat.com>
10119
10120 PR gdb/9538
10121 * symfile.c (find_separate_debug_file): New function.
10122 (terminate_after_last_dir_separator): Likewise.
10123 (find_separate_debug_file_by_debuglink): Also try realpath.
10124 * configure.ac (AC_CHECK_FUNCS): Add lstat.
10125 * configure: Regenerate.
10126 * config.in: Regenerate.
10127
10128 2012-01-18 Doug Evans <dje@google.com>
10129
10130 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): Delete.
10131 (main.o): Remove rule.
10132 * configure.ac (BINDIR): Define with AC_DEFINE_DIR.
10133 (--with-sysroot): Rewrite.
10134 * configure: Regenerate.
10135 * config.in: Regenerate.
10136
10137 2012-01-18 Sergio Durigan Junior <sergiodj@redhat.com>
10138
10139 * parse.c (initialize_expout): New function.
10140 (reallocate_expout): Likewise.
10141 (parse_exp_in_context): Use `initialize_expout' and
10142 `reallocate_expout' when appropriate.
10143
10144 2012-01-18 Pedro Alves <palves@redhat.com>
10145
10146 * record.c (struct record_breakpoint, record_breakpoint_p)
10147 (record_breakpoints): New.
10148 (record_insert_breakpoint, record_remove_breakpoint): Manage
10149 record breakpoints list. Only remove breakpoints from the
10150 inferior if they had been inserted there in the first place.
10151
10152 2012-01-17 Doug Evans <dje@google.com>
10153
10154 * linespec.c (decode_line_internal): Don't call symtabs_from_filename
10155 if we know we don't have a file name to look for.
10156
10157 2012-01-17 Pedro Alves <palves@redhat.com>
10158
10159 * dwarf2-frame.c (dwarf2_frame_cfa): Throw NOT_AVAILABLE_ERROR, if
10160 the frame's stop reason is UNWIND_UNAVAILABLE.
10161
10162 2012-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
10163
10164 Fix compilation error.
10165 * m2-exp.y (yyerror): Use ANSI C prototype.
10166
10167 2012-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
10168
10169 * f-exp.y (parse_number): Convert prototype from K&R to ANSI C.
10170 (growbuf_by_size): Likewise.
10171 (yyerror): Likewise.
10172 * m2-exp.y (make_qualname): Remove function (was #if 0'ed).
10173 (modblock): Remove variable (was #if 0'ed).
10174 (parse_number): Convert prototype from K&R to ANSI C.
10175 (yyerror): Likewise.
10176 * objc-exp.y (parse_number): Likewise.
10177 (yyerror): Likewise.
10178 (yylex): Remove #if 0'ed code.
10179 * p-exp.y (uptok): Convert prototype from K&R to ANSI C.
10180 (yyerror): Likewise.
10181
10182 2012-01-16 Tom Tromey <tromey@redhat.com>
10183
10184 * NEWS: Add item.
10185 * symtab.h (compare_filenames_for_search): Declare.
10186 * symtab.c (compare_filenames_for_search): New function.
10187 (iterate_over_some_symtabs): Use it.
10188 * symfile.h (struct quick_symbol_functions)
10189 <map_symtabs_matching_filename>: Change spec.
10190 * psymtab.c (partial_map_symtabs_matching_filename): Use
10191 compare_filenames_for_search. Update for new spec.
10192 * dwarf2read.c (dw2_map_symtabs_matching_filename): Use
10193 compare_filenames_for_search. Update for new spec.
10194 * breakpoint.c (clear_command): Use compare_filenames_for_search.
10195
10196 2012-01-16 Tom Tromey <tromey@redhat.com>
10197
10198 PR python/13281:
10199 * gdbtypes.h (TYPE_FLAG_ENUM): New macro.
10200 (struct main_type) <flag_flag_enum>: New field.
10201 * dwarf2read.c (process_enumeration_scope): Detect "flag" enums.
10202 * NEWS: Add entries.
10203 * c-valprint.c (c_val_print) <TYPE_CODE_ENUM>: Handle "flag"
10204 enums.
10205 * python/lib/gdb/printing.py (_EnumInstance): New class.
10206 (FlagEnumerationPrinter): Likewise.
10207
10208 2012-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
10209
10210 * breakpoint.c (create_sals_from_address_default): New function.
10211 (create_breakpoints_sal_default): Likewise.
10212 (decode_linespec_default): Likewise.
10213 (is_marker_spec): Removed.
10214 (strace_marker_p): New function.
10215 (init_breakpoint_sal): Using `strace_marker_p' instead of
10216 `is_marker_spec'.
10217 (create_breakpoint): Call method `create_sals_from_address' from
10218 breakpoint_ops, replacing code that created SALs conditionally
10219 on the type of the breakpoint. Call method `create_breakpoints_sal',
10220 replacing code that created breakpoints conditionally on the type
10221 wanted.
10222 (base_breakpoint_create_sals_from_address): New function.
10223 (base_breakpoint_create_breakpoints_sal): Likewise.
10224 (base_breakpoint_decode_linespec): Likewise.
10225 (base_breakpoint_ops): Add methods
10226 `base_breakpoint_create_sals_from_address',
10227 `base_breakpoint_create_breakpoints_sal' and
10228 `base_breakpoint_decode_linespec'.
10229 (bkpt_create_sals_from_address): New function.
10230 (bkpt_create_breakpoints_sal): Likewise.
10231 (bkpt_decode_linespec): Likewise.
10232 (tracepoint_create_sals_from_address): Likewise.
10233 (tracepoint_create_breakpoints_sal): Likewise.
10234 (tracepoint_decode_linespec): Likewise.
10235 (strace_marker_create_sals_from_address): Likewise.
10236 (strace_marker_create_breakpoints_sal): Likewise.
10237 (strace_marker_decode_linespec): Likewise.
10238 (strace_marker_breakpoint_ops): New variable.
10239 (addr_string_to_sals): Remove `marker_spec'. Call method
10240 `decode_linespec' from breakpoint_ops, replacing code that decoded
10241 an address string into a SAL. Use `strace_marker_p' instead of
10242 `marker_spec'.
10243 (strace_command): Decide whether we are dealing with a static
10244 tracepoint with marker or not. Use the appropriate breakpoint_ops.
10245 (initialize_breakpoint_ops): Initialize new fields of breakpoint_ops.
10246 * breakpoint.h (linespec_result, linespec_sals): New forward
10247 declarations.
10248 (breakpoint_ops) <create_sals_from_address>,
10249 <create_breakpoints_sal>, <decode_linespec>: New methods.
10250
10251 2012-01-14 Doug Evans <dje@google.com>
10252
10253 * NEWS: Update text for "maint set python print-stack".
10254 It is deprecated in gdb 7.4 and deleted in 7.5.
10255
10256 2012-01-13 Eli Zaretskii <eliz@gnu.org>
10257
10258 * gdb_curses.h (MOUSE_MOVED) [__MINGW32__]: Undefine before
10259 including curses.h.
10260
10261 2012-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
10262
10263 * configure: Regenerate.
10264 * config.in: Regenerate.
10265
10266 2012-01-12 Keith Seitz <keiths@redhat.com>
10267
10268 PR mi/10586
10269 * varobj.c (ANONYMOUS_STRUCT_NAME): Define.
10270 (ANONYMOUS_UNION_NAME): Define.
10271 (is_path_expr_parent): New function.
10272 (get_path_expr_parent): New function.
10273 (is_anonymous_child): New function.
10274 (create_child_with_value): If the child is anonymous and without
10275 a name, assign an object name to it.
10276 (c_describe_child): Use get_path_expr_parent to determine
10277 the parent expression.
10278 If there field represents an anonymous struct or union and
10279 has no name, set an appropriate display name and expression.
10280 (cplus_describe_child): Likewise.
10281
10282 2012-01-12 Pedro Alves <palves@redhat.com>
10283
10284 * i386-tdep.c (i386_frame_cache_1): Also mark the frame base as
10285 available when %ebp is found to be zero (outermost).
10286
10287 2012-01-11 Andreas Tobler <andreast@fgznet.ch>
10288
10289 * common/gdb_assert.h (gdb_static_assert): Rename static_assert to
10290 an internal gdb_static_assert.
10291 * mi/mi-common.c: Rename static_assert to gdb_static_assert.
10292
10293 2012-01-11 Tom Tromey <tromey@redhat.com>
10294
10295 PR gdb/9598:
10296 * breakpoint.c (_initialize_breakpoint): Fix help for "catch
10297 catch" and "catch throw".
10298
10299 2012-01-11 Paul Hilfinger <hilfingr@adacore.com>
10300
10301 * blockframe.c (block_innermost_frame): Start search from selected
10302 frame, if present, or otherwise the current frame.
10303
10304 * c-exp.y (variable): Update innermost_block for
10305 'block COLONCOLON NAME' clause.
10306 * m2-exp.y (variable): Ditto.
10307 * objc-exp.y (variable): Ditto.
10308
10309 2012-01-10 Tom Tromey <tromey@redhat.com>
10310
10311 PR python/13199:
10312 * python/python.c (finish_python_initialization): Set sys.argv.
10313
10314 2012-01-10 Doug Evans <dje@google.com>
10315
10316 * dwarf2read.c (dwarf_decode_lines): Remove arg "abfd". New arg
10317 "want_line_info". All callers updated.
10318 (dwarf_decode_lines_1): New function.
10319 (handle_DW_AT_stmt_list): Add function comment.
10320 New arg "want_line_info". All callers updated.
10321 (read_file_scope,read_type_unit_scope): Move comment from
10322 handle_DW_AT_stmt_list to here.
10323
10324 2012-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
10325
10326 Fix regression after libiberty/ update for GCC PR 6057 and others.
10327 * c-exp.y (operator) <OPERATOR DELETE>
10328 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
10329 * cp-name-parser.y (fill_comp, make_operator, make_dtor)
10330 (make_builtin_type, make_name): New variable i, add gdb_assert.
10331 (operator) <OPERATOR NEW>: Update ARGS to 3.
10332 (operator) <OPERATOR DELETE>: Add trailing space.
10333 (operator) <OPERATOR NEW '[' ']'>: Update ARGS to 3.
10334 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
10335 * cp-support.c (cp_canonicalize_string): Check NULL from
10336 cp_comp_to_string, call warning and return.
10337
10338 2012-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
10339
10340 Fix duplicate .o files after omitting libbfd.a.
10341 * Makefile.in (ALL_TARGET_OBS): Remove corelow.o.
10342 (SFILES): Add corelow.c.
10343 (COMMON_OBS): Add corelow.o.
10344 (ALLDEPFILES): Remove corelow.c.
10345 * config/alpha/alpha-linux.mh (NATDEPFILES): Remove corelow.o.
10346 * config/alpha/alpha-osf3.mh: Likewise.
10347 * config/alpha/fbsd.mh: Likewise.
10348 * config/arm/nbsdaout.mh: Likewise.
10349 * config/arm/nbsdelf.mh: Likewise.
10350 * config/i386/i386gnu.mh: Likewise.
10351 * config/ia64/hpux.mh: Likewise.
10352 * config/ia64/linux.mh: Likewise.
10353 * config/m32r/linux.mh: Likewise.
10354 * config/m68k/linux.mh: Likewise.
10355 * config/mips/irix5.mh: Likewise.
10356 * config/mips/irix6.mh: Likewise.
10357 * config/pa/hpux.mh: Likewise.
10358 * config/pa/linux.mh: Likewise.
10359 * config/powerpc/aix.mh: Likewise.
10360 * config/sparc/linux.mh: Likewise.
10361 * config/sparc/linux64.mh: Likewise.
10362 * config/sparc/sol2.mh: Likewise.
10363 * config/vax/vax.mh: Likewise.
10364 * configure.tgt (alpha*-*-freebsd* alpha*-*-kfreebsd*-gnu)
10365 (alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu, alpha*-*-openbsd*)
10366 (am33_2.0*-*-linux*, arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-linux*)
10367 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-netbsd*)
10368 (hppa*-*-openbsd*, i[34567]86-*-dicos*, i[34567]86-*-freebsd*)
10369 (i[34567]86-*-kfreebsd*-gnu, i[34567]86-*-netbsd*)
10370 (i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*, i[34567]86-*-nto*)
10371 (i[34567]86-*-solaris2.1[0-9]*, x86_64-*-solaris2.1[0-9]*)
10372 (i[34567]86-*-solaris*, i[34567]86-*-linux*, i[34567]86-*-cygwin*)
10373 (i[34567]86-*-mingw32*, m68*-*-netbsd*, m68*-*-knetbsd*-gnu)
10374 (m68*-*-openbsd*, m88*-*-openbsd*, microblaze*-linux-*)
10375 (microblaze*-*-linux*, mips*-*-linux*, mips*-*-netbsd*)
10376 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
10377 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-linux*)
10378 (powerpc64-*-linux*, s390*-*-*, score-*-*, sh*-*-linux*)
10379 (sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
10380 (sparc*-*-freebsd*, sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*)
10381 (sparc-*-knetbsd*-gnu, sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu)
10382 (sparc-*-openbsd*, sparc64-*-openbsd*, tic6x-*-*linux, vax-*-netbsd*)
10383 (vax-*-knetbsd*-gnu, vax-*-openbsd*, x86_64-*-dicos*, x86_64-*-linux*)
10384 (x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu, x86_64-*-netbsd*)
10385 (x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*, xtensa*-*-linux*): Remove
10386 corelow.o from gdb_target_obs.
10387 * corefile.c (core_target): Update the comment on NULL value.
10388 (core_file_command): Replace error by gdb_assert on CORE_TARGET.
10389 * corelow.c (sniff_core_bfd): Call error instead of warning on zero
10390 MATCHES. Drop YUMMY set on NULL.
10391 (core_close): Do not call exit_inferior_silent on zero PID. Do not
10392 reclaim CORE_DATA if it is already NULL.
10393
10394 2012-01-09 Doug Evans <dje@google.com>
10395
10396 * gdbtypes.c (safe_parse_type): Initialize type to keep gcc happy.
10397 * varobj.c (varobj_set_value): Initialize val,value to keep gcc happy.
10398
10399 2012-01-09 Keith Seitz <keiths@redhat.com>
10400
10401 * breakpoint.c (wrapper.h): Don't include.
10402
10403 2012-01-09 Keith Seitz <keiths@redhat.com>
10404
10405 * Makefile.in (SFILES): Remove wrapper.c.
10406 (HFILES_NO_SRCDIR): Remove wrapper.h.
10407 (COMMON_OBS): Remove wrapper.o.
10408 * cli/cli-interp.c: Don't inlude wrapper.h.
10409 * corelow.c: Likewise.
10410 (core_open): Replace gdb_target_find_new_threads with
10411 TRY_CATCH around target_find_new_threads.
10412 * eval.c (fetch_subexp_value): Likewise for value_fetch_lazy.
10413 * gdbtypes.c (safe_parse_type): Likewise for parse_and_eval_type.
10414 * varobj.c (varobj_create): Likewise for parse_exp_1 and
10415 evaluate_expression.
10416 (varobj_set_value): Likewise for evaluate_expression and
10417 value_assign.
10418 (install_new_variable): Likewise for value_fetch_lazy.
10419 (adjust_value_for_child_access): Likewise for value_ind.
10420 (c_describe_child): Likewise for value_subscript and
10421 value_ind.
10422 (c_value_of_root): Likewise for evaluate_expression.
10423 * wrapper.c: Remove.
10424 * wrapper.h: Remove.
10425
10426 2012-01-09 Doug Evans <dje@google.com>
10427
10428 * dwarf2read.c (read_and_check_comp_unit_head): Renamed from
10429 partial_read_comp_unit_head. Replace "buffer", "buffer_size" and
10430 "abfd" args with "section". All callers updated.
10431 Error checking code moved ...
10432 (error_check_comp_unit_head): ... here. New function.
10433 (read_and_check_type_unit_head): Renamed from read_type_unit_head.
10434 Delete arg "abfd". New arg "type_offset". All callers updated.
10435 (create_debug_types_hash_table): Simplify by using
10436 read_and_check_type_unit_head.
10437
10438 * parser-defs.h (namecopy): Delete.
10439 * parse.c (namecopy, namecopy_size): Move into copy_name.
10440
10441 2012-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
10442
10443 Partially fix duplicate .o files after omitting libbfd.a.
10444 * config/alpha/alpha-osf3.mh (NATDEPFILES): Remove solib.o.
10445 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
10446 * config/i386/obsdaout.mh (NATDEPFILES): Remove solib.o.
10447 * config/m68k/nbsdaout.mh (NATDEPFILES): Remove solib.o.
10448 * config/m68k/obsd.mh (NATDEPFILES): Remove solib.o.
10449 * config/powerpc/aix.mh (NATDEPFILES): Remove xcoffread.o.
10450 * config/vax/nbsdaout.mh (NATDEPFILES): Remove solib.o.
10451
10452 2012-01-09 Pedro Alves <palves@redhat.com>
10453
10454 * MAINTAINERS: Update my email address.
10455
10456 2012-01-08 Doug Evans <dje@google.com>
10457
10458 * dwarf2read.c (dwarf2_per_objfile): Rename n_type_comp_units to
10459 n_type_units. Rename type_comp_units to all_type_units.
10460 All uses updated.
10461 (add_signatured_type_cu_to_table): Renamed from
10462 add_signatured_type_cu_to_list. All callers updated.
10463
10464 * gdbtypes.h (struct cplus_struct_type): Delete member
10465 nfn_fields_total. All uses removed.
10466
10467 2012-01-06 Doug Evans <dje@google.com>
10468
10469 * dwarf2read.c: Move FIXME from dwarf2_build_psymtabs_hard
10470 to top of file.
10471 (dwarf2_find_comp_unit): Delete.
10472 (process_psymtab_comp_unit): Make result "void".
10473 Delete args buffer, info_ptr, buffer_size, and replace with
10474 "section". All callers updated.
10475 (dwarf2_build_psymtabs_hard): Simplify.
10476
10477 2012-01-06 Sergio Durigan Junior <sergiodj@redhat.com>
10478 Thiago Jung Bauermann <bauerman@br.ibm.com>
10479
10480 * ada-lang.c (ada_exception_name_addr): Add `volatile' keyword
10481 before `struct gdb_exception'.
10482 * breakpoint.c (update_global_location_list_nothrow)
10483 (update_breakpoint_locations, enable_breakpoint_disp): Likewise.
10484 * cp-abi.c (value_rtti_type): Likewise.
10485 * cp-support.c (cp_validate_operator): Likewise.
10486 * infrun.c (insert_exception_resume_breakpoint)
10487 (check_exception_resume, keep_going): Likewise.
10488 * mi-interp.c (mi_breakpoint_created)
10489 (mi_breakpoint_modified): Likewise.
10490 * rs6000-aix-tdep.c (rs6000_convert_from_func_ptr_addr): Likewise.
10491 * solib-ia64-hpux.c (ia64_hpux_at_dld_breakpoint_p)
10492 (ia64_hpux_handle_dld_breakpoint_1): Likewise.
10493
10494 2012-01-05 Doug Evans <dje@google.com>
10495
10496 * dwarf2read.c (statement_prologue): Delete, unused.
10497
10498 * dwarf2read.c (dwarf2_per_cu_addr_size): Make result type an int.
10499 * dwarf2loc.h (dwarf2_per_cu_addr_size): Update.
10500
10501 * dwarf2read.c (comp_unit_header): Delete, unused.
10502
10503 2012-01-05 Ulrich Weigand <uweigand@de.ibm.com>
10504
10505 * configure.tgt [s390*-*-*] (gdb_target_obs): Add corelow.o.
10506 * config/s390/s390.mh (NATDEPFILES): Remove corelow.o.
10507
10508 2012-01-05 Khoo Yit Phang <khooyp@cs.umd.edu>
10509
10510 * infrun.c (normal_stop): Don't skip calling the normal_stop
10511 observers if the thread was doing a multi-step, but stopped for
10512 some reason other than stepping.
10513
10514 2012-01-05 Pedro Alves <alves.ped@gmail.com>
10515
10516 * cli/cli-decode.h: Add comments.
10517 (CMD_LIST_AMBIGUOUS): Moved to command.h
10518 (add_cmd, add_alias_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
10519 (set_cmd_cfunc, set_cmd_sfunc, set_cmd_completer, cmd_cfunc_eq)
10520 (set_cmd_context, get_cmd_context, lookup_cmd, lookup_cmd_1)
10521 (deprecate_cmd, deprecated_cmd_warning, lookup_cmd_composition)
10522 (add_com, add_com_alias, add_info, add_info_alias)
10523 (complete_on_cmdlist, complete_on_enum, help_list): Remove
10524 declarations.
10525 * command.h: Add and adjust comments.
10526 (CMD_LIST_AMBIGUOUS): Moved here.
10527 (help_cmd, help_cmd_list): Delete declarations.
10528
10529 2012-01-04 Doug Evans <dje@google.com>
10530
10531 * dwarf2read.c (dwarf2_read_abbrevs): Delete arg "abfd".
10532 All callers updated.
10533 (load_full_type_unit): Renamed from read_signatured_type_at_offset.
10534 Replace all arguments with "per_cu". All callers updated.
10535
10536 * dwarf2read.c (dwarf2_per_cu_data): Remove outdated comment.
10537
10538 * dwarf2read.c (init_one_comp_unit): Delete arg "objfile".
10539 New arg "per_cu". All callers updated.
10540
10541 Delete #if 0'd out code.
10542 * language.c (binop_result_type): Delete.
10543 (simple_type, ordered_type, same_type, integral_type): Delete.
10544 (numeric_type, character_type, string_type, boolean_type): Delete.
10545 (float_type, structured_type): Delete.
10546 * language.h: Update.
10547
10548 2012-01-04 Tom Tromey <tromey@redhat.com>
10549
10550 * python/py-value.c (valpy_binop): Initialize 'res_val'.
10551
10552 2012-01-04 Joel Brobecker <brobecker@adacore.com>
10553
10554 * corefile.c (close_exec_file): Delete.
10555 (reopen_exec_file): Remove commented out code that seems related
10556 to close_exec_file, which is being deleted here.
10557 * inferior.h (close_exec_file): Delete.
10558 * fork-child.c (fork_inferior): Remove call to fork_inferior.
10559
10560 2012-01-04 Joel Brobecker <brobecker@adacore.com>
10561
10562 * ada-lang.c: #include "cli/cli-utils.h".
10563 (get_selections): Use skip_spaces.
10564 (ada_get_next_arg): Use skip_spaces and skip_to_space.
10565 (catch_ada_exception_command_split): Use skip_spaces.
10566 (ada_decode_assert_location): Likewise.
10567
10568 2012-01-04 Joel Brobecker <brobecker@adacore.com>
10569
10570 * linespec.c (decode_line_internal): Check for C++ or Java
10571 compound constructs only if the current language is C, C++
10572 or Java.
10573
10574 2012-01-04 Jan Kratochvil <jan.kratochvil@redhat.com>
10575
10576 Revert:
10577 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10578 Joel Brobecker <brobecker@adacore.com>
10579 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
10580 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
10581 3 times.
10582 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
10583 fall through into AT_ENTRY_POINT.
10584 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
10585 DUMMY_ADDR with it.
10586 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
10587 PPC_INSN_SIZE skip to 3 times.
10588
10589 2012-01-04 Joel Brobecker <brobecker@adacore.com>
10590
10591 * linespec.c (add_minsym): Preserve function descriptors.
10592
10593 2012-01-04 Ulrich Weigand <uweigand@de.ibm.com>
10594
10595 * breakpoint.c (all_locations_are_pending): Consider locations
10596 in program spaces executing during startup pending as well.
10597
10598 2012-01-04 Joel Brobecker <brobecker@adacore.com>
10599
10600 Copyright year update in most files of the GDB Project.
10601
10602 2012-01-04 Joel Brobecker <brobecker@adacore.com>
10603
10604 * copyright.sh: Delete.
10605 * copyright.py: Rewrite.
10606
10607 2012-01-04 Joel Brobecker <brobecker@adacore.com>
10608
10609 * gnulib/extra/update-copyright: New file, imported from gnulib.
10610
10611 2012-01-04 Joel Brobecker <brobecker@adacore.com>
10612
10613 * README (Copyright and License Notices): New section.
10614
10615 2012-01-03 Tom Tromey <tromey@redhat.com>
10616
10617 PR python/12533:
10618 * python/py-value.c (valpy_dereference, valpy_get_address
10619 valpy_get_dynamic_type, valpy_lazy_string, valpy_do_cast)
10620 (valpy_getitem, valpy_call, valpy_binop, valpy_negative)
10621 (valpy_absolute, valpy_richcompare): Free intermediate values.
10622
10623 2011-01-03 Joel Brobecker <brobecker@adacore.com>
10624
10625 * ada-lang.c: Reformat the copyright notice.
10626
10627 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10628
10629 * Makefile.in (ALL_TARGET_OBS): Remove solib-target.o.
10630 * configure.tgt (arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-symbianelf*)
10631 (i[34567]86-*-dicos*, i[34567]86-*-cygwin*, i[34567]86-*-mingw32*)
10632 (x86_64-*-dicos*, x86_64-*-mingw*): Remove solib-target.o.
10633 Revert this part of:
10634 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10635 Build gdb directly from *.o files not using libgdb.a.
10636 * Makefile.in (COMMON_OBS): Remove solib-target.o.
10637
10638 2012-01-02 Joel Brobecker <brobecker@adacore.com>
10639
10640 * gdb/common/gdb_thread_db.h, gdb/dbxread.c, gdb/environ.c,
10641 gdb/gcore.h, gdb/rs6000-tdep.h, gdb/s390-nat.c, gdb/tic6x-tdep.c:
10642 Reformat the copyright header.
10643
10644 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10645
10646 Revert this part of:
10647 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10648 Remove the gdbtui binary.
10649 * gdb.c (main): Remove args.interpreter_p initialization.
10650 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
10651 * main.h (struct captured_main_args): Remove interpreter_p.
10652
10653 2012-01-02 Joel Brobecker <brobecker@adacore.com>
10654
10655 * config/djgpp/fnchange.lst: Add entry for ChangeLog-2011.
10656
10657 2012-01-02 Joel Brobecker <brobecker@adacore.com>
10658
10659 * top.c (print_gdb_version): Update copyright year.
10660
10661 2012-01-02 Yao Qi <yao@codesourcery.com>
10662
10663 * inf-ptrace.c (inf_ptrace_xfer_partial): Reindent.
10664
10665 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10666 Joel Brobecker <brobecker@adacore.com>
10667
10668 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
10669 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
10670 3 times.
10671 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
10672 fall through into AT_ENTRY_POINT.
10673 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
10674 DUMMY_ADDR with it.
10675 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
10676 PPC_INSN_SIZE skip to 3 times.
10677
10678 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10679
10680 * amd64-linux-nat.c (update_debug_registers_callback): New comment on
10681 the return value.
10682 * i386-linux-nat.c (update_debug_registers_callback): Likewise.
10683
10684 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10685
10686 Build gdb directly from *.o files not using libgdb.a.
10687 * Makefile.in (SUBDIR_TUI_OBS): Remove duplicate tui.o.
10688 (COMMON_OBS): Remove solib-target.o.
10689 (LIBGDB_OBS, libgdb.a): Move it before the gdb$(EXEEXT) rule.
10690 (gdb$(EXEEXT)): Replace libgdb.a with $(LIBGDB_OBS).
10691 (LIBGDB_OBS, libgdb.a): Move it above.
10692 * configure.tgt (alpha*-*-linux*, alpha*-*-freebsd*)
10693 (alpha*-*-kfreebsd*-gnu, alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu)
10694 (alpha*-*-openbsd*, am33_2.0*-*-linux*, arm*-wince-pe)
10695 (arm*-*-mingw32ce*, arm*-*-linux*, arm*-*-netbsd*, arm*-*-knetbsd*-gnu)
10696 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-linux*)
10697 (hppa*-*-netbsd*, hppa*-*-openbsd*, i[34567]86-*-darwin*)
10698 (i[34567]86-*-dicos*, i[34567]86-*-freebsd*, i[34567]86-*-kfreebsd*-gnu)
10699 (i[34567]86-*-netbsd*, i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*)
10700 (i[34567]86-*-nto*, i[34567]86-*-solaris2.1[0-9]*)
10701 (x86_64-*-solaris2.1[0-9]*, i[34567]86-*-solaris*, i[34567]86-*-linux*)
10702 (i[34567]86-*-gnu*, ia64-*-linux*, m32r*-*-linux*, m68*-*-linux*)
10703 (m68*-*-netbsd*, m68*-*-knetbsd*-gnu, m68*-*-openbsd*)
10704 (microblaze*-linux-*, microblaze*-*-linux*, mips*-sgi-irix5*)
10705 (mips*-sgi-irix6*, mips*-*-linux*, mips*-*-netbsd*)
10706 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
10707 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-aix*, rs6000-*-*)
10708 (powerpc-*-linux*, powerpc64-*-linux*, powerpc*-*-*, s390*-*-*)
10709 (sh*-*-linux*, sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
10710 (sparc-*-linux*, sparc64-*-linux*, sparc*-*-freebsd*)
10711 (sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*, sparc-*-knetbsd*-gnu)
10712 (sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu, sparc-*-openbsd*)
10713 (sparc64-*-openbsd*, sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*)
10714 (sparc-*-solaris2*, sparcv9-*-solaris2*, sparc64-*-solaris2*)
10715 (vax-*-netbsd*, vax-*-knetbsd*-gnu, x86_64-*-darwin*, x86_64-*-dicos*)
10716 (x86_64-*-linux*, x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu)
10717 (x86_64-*-netbsd*, x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*)
10718 (xtensa*-*-linux*, xtensa*): Remove solib.o from gdb_target_obs.
10719
10720 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10721
10722 Remove the gdbtui binary.
10723 * .gitignore (/gdbtui): Remove.
10724 * Makefile.in (TUI): Remove.
10725 (SUBDIR_TUI_OBS): Remove tui-main.o.
10726 (SUBDIR_TUI_SRCS): Remove tui/tui-main.c.
10727 (all-tui, install-tui, uninstall-tui, $(TUI)$(EXEEXT), clean-tui)
10728 (tui-main.o): Remove.
10729 (all_object_files): Remove tui-main.o.
10730 * NEWS: New note for the gdbtui removal.
10731 * configure: Rebuilt.
10732 * configure.ac: No longer add all-tui, clean-tui, install-tui and
10733 uninstall-tui to CONFIG_ALL, CONFIG_CLEAN, CONFIG_INSTALL and
10734 CONFIG_UNINSTALL respectively.
10735 * gdb.c (main): Remove args.interpreter_p initialization.
10736 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
10737 * main.h (struct captured_main_args): Remove interpreter_p.
10738 * tui/tui-main.c: Remove.
10739
10740 2012-01-01 Doug Evans <dje@google.com>
10741
10742 * dwarf2read.c (dwarf2_compute_name): Simplify objfile references.
10743 (dwarf2_physname, read_import_statement): Ditto.
10744 (read_call_site_scope, dwarf2_record_block_ranges): Ditto.
10745 (process_structure_scope read_subroutine_type): Ditto.
10746 (read_typedef, load_partial_dies, read_partial_die): Ditto.
10747 (find_partial_die, dwarf_decode_lines, lookup_die_type): Ditto.
10748 (dwarf2_fetch_die_location_block): Ditto.
10749 (dwarf_decode_macros, dwarf2_symbol_mark_computed): Ditto.
10750
10751 * dwarf2read.c (read_signatured_type): Delete `objfile' arg.
10752 All callers updated.
10753 (load_full_comp_unit, queue_comp_unit, process_queue): Ditto.
10754 (dw2_do_instantiate_symtab, dw2_instantiate_symtab): Ditto.
10755 (process_psymtab_comp_unit, load_partial_comp_unit): Ditto.
10756
10757 * dwarf2read.c (load_cu): Move assert to more useful location.
10758
10759 * dwarf2read.c (free_heap_comp_unit): Renamed from free_one_comp_unit.
10760 All callers updated.
10761
10762 * dwarf2read.c (dwarf2_per_objfile): Add comment.
10763 (dwarf2_elf_names): Minor reformat.
10764 (dwarf2_per_cu_data): Tweak comment.
10765 (dwarf2_read_section): Fix comment.
10766 (create_all_comp_units): Fix comment.
10767 (load_full_comp_unit): Fix comment.
10768 (process_full_comp_unit): Fix comment.
10769 (read_signatured_type): Fix comment.
10770
10771 For older changes see ChangeLog-2011.
10772 \f
10773 Local Variables:
10774 mode: change-log
10775 left-margin: 8
10776 fill-column: 74
10777 version-control: never
10778 coding: utf-8
10779 End: