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