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