3216db6b57b8c58c0af3f64c1ea1843186801ab5
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2012-10-23 Joel Brobecker <brobecker@adacore.com>
2
3 * amd64-windows-tdep.c (amd64_windows_auto_wide_charset): New
4 function.
5 (amd64_windows_init_abi): Set auto_wide_charset gdbarch method
6 to amd64_windows_auto_wide_charset.
7
8 2012-10-23 Yao Qi <yao@codesourcery.com>
9
10 * event-top.c (mark_async_signal_handler_wrapper): Remove.
11 * event-top.h: Remove its declaration.
12 (async_request_quit): Call mark_async_signal_handler instead of
13 mark_async_signal_handler_wrapper.
14 (async_do_nothing, async_disconnect): Likewise.
15 (async_stop_sig): Likewise.
16 * remote.c (handle_remote_sigint): Likewise.
17 (handle_remote_sigint_twice): Likewise.
18
19 2012-10-23 Yao Qi <yao@codesourcery.com>
20
21 * event-top.c (sigint_token, sighup_token): Replace 'void *'
22 with 'static struct async_signal_handler *'.
23 (sighup_token, sigquit_token, sigstp_token): Likewise.
24
25 2012-10-22 Ali Anwar <ali_anwar@codesourcery.com>
26
27 * gdbarch.sh (function_list): Use 'pstring' when printing
28 a variable which could return NULL.
29 * gdbarch.c: Regenerate.
30
31 2012-10-10 Joel Brobecker <brobecker@adacore.com>
32 Tom Tromey <tromey@redhat.com>
33
34 * rs6000-aix-tdep.c (rs6000_aix_osabi_sniffer): Replace
35 inneffective if condition by gdb assertion. Add function
36 description comment.
37
38 2012-10-19 Joel Brobecker <brobecker@adacore.com>
39
40 * parser-defs.h (struct exp_descriptor): Document constraint
41 on return value for "op_name" callbacks.
42
43 2012-10-18 Tom Tromey <tromey@redhat.com>
44
45 * tracepoint.c (print_one_static_tracepoint_marker): Constify.
46 * symtab.c (iterate_over_some_symtabs): Constify.
47 * source.h (symtab_to_fullname): Return 'const char *'.
48 * source.c (symtab_to_fullname): Return 'const char *'.
49 * python/py-symtab.c (stpy_fullname): Constify.
50 * cli/cli-cmds.c (edit_command): Constify.
51 * breakpoint.c (print_breakpoint_location)
52 (update_static_tracepoint): Constify.
53
54 2012-10-18 Tom Tromey <tromey@redhat.com>
55
56 * breakpoint.c (compare_breakpoints): Fix comparison.
57
58 2012-10-18 Tom Tromey <tromey@redhat.com>
59
60 * valprint.c (generic_emit_char, generic_printstr): Pass size of
61 gdb_wchar_t to convert_between_encodings.
62
63 2012-10-17 Yao Qi <yao@codesourcery.com>
64
65 * breakpoint.c (invalidate_bp_value_on_memory_change): Add one
66 more parameter 'inferior'.
67 * corefile.c (write_memory_with_notification): Caller update.
68
69 * mi/mi-cmd-var.c: Include "mi-main.h".
70 (mi_cmd_var_assign): Set mi_suppress_notification.data_write_memory
71 to 1 and restore it later.
72 * mi/mi-cmds.c (mi_cmd mi_cmds): Update for "data-write-memory"
73 and "data-write-memory-bytes.
74 * mi/mi-interp.c: Include objfiles.h.
75 (mi_interpreter_init): Call observer_attach_memory_changed.
76 (mi_memory_changed): New.
77 * mi/mi-main.h (struct mi_suppress_notification) <memory>:
78 New field.
79
80 * NEWS: Mention new MI notification "memory-changed".
81
82 2012-10-16 Jan Kratochvil <jan.kratochvil@redhat.com>
83
84 * dwarf2loc.c (dwarf_expr_reg_to_entry_parameter): Remove comment.
85
86 2012-10-15 Doug Evans <dje@google.com>
87
88 New option -nh: inhibit loading of ~/.gdbinit.
89 * NEWS: Mention -nh.
90 * main.c (captured_main): Recognize and process -nh.
91 (print_gdb_help): Mention -nh.
92 * gdb.1: Mention -nh. Remove erroneous docs on -nx behavior.
93
94 2012-10-15 H.J. Lu <hongjiu.lu@intel.com>
95
96 PR backtrace/14646
97 PR gdb/14647
98 * i386-tdep.h (gdbarch_tdep): Remove sp_regnum_from_eax and
99 pc_regnum_from_eax.
100 * i386-tdep.c (i386_gdbarch_init): Don't use sp_regnum_from_eax
101 nor pc_regnum_from_eax.
102 * amd64-tdep.c (amd64_x32_init_abi): Don't set sp_regnum_from_eax
103 nor pc_regnum_from_eax.
104
105 2012-10-15 Jan Kratochvil <jan.kratochvil@redhat.com>
106
107 Fix entry values resolving in inlined frames.
108 * dwarf2loc.c (dwarf_expr_reg_to_entry_parameter): Move func_addr,
109 gdbarch and caller_frame initialization later. Skip INLINE_FRAME
110 entries of FRAME.
111
112 2012-10-15 Joel Brobecker <brobecker@adacore.com>
113
114 * configure.ac: Build with -DMS_WIN64 if building with Python
115 enabled using GCC on amd64-windows.
116 * configure: Regenerate.
117
118 2012-10-15 Tom Tromey <tromey@redhat.com>
119
120 PR python/14635:
121 * python/py-symtab.c (del_objfile_sal): Set 'symtab' field
122 to Py_None.
123
124 2012-10-15 Tom Tromey <tromey@redhat.com>
125
126 PR python/14634:
127 * python/py-symbol.c (sympy_dealloc): Check for NULL symbol.
128
129 2012-10-11 Andrew Burgess <aburgess@broadcom.com>
130
131 * remote-sim.c (gdbsim_create_inferior): Call init_thread_list to
132 reset thread numbering back to 1.
133
134 2012-10-11 Doug Evans <dje@google.com>
135
136 PR breakpoints/14643.
137 * linespec.c (struct ls_parser): New member keyword_ok.
138 (linespec_lexer_lex_string): Add comment.
139 (linespec_lexer_lex_one): Ignore keywords if it's the wrong place
140 for one.
141 (parse_linespec): Set keyword_ok.
142
143 2012-10-10 Doug Evans <dje@google.com>
144
145 * dwarf2read.c (process_psymtab_comp_unit_reader): Remove duplicate
146 "0x" prefix on address in log message.
147
148 * dwarf2read.c (read_1_byte): Add const to buf parameter.
149 (read_1_signed_byte, read_2_bytes, read_2_signed_bytes): Ditto.
150 (read_4_bytes, read_4_signed_bytes, read_8_bytes): Ditto.
151 (lookup_dwo_file): Add const to dwo_name parameter.
152 (lookup_dwo_comp_unit, lookup_dwo_type_unit): Ditto.
153
154 2012-10-06 Jan Kratochvil <jan.kratochvil@redhat.com>
155
156 Fix crash during stepping on ppc32.
157 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code): Test NULL
158 SYM.
159
160 2012-10-03 Doug Evans <dje@google.com>
161
162 PR symtab/14601
163 * buildsym.c (buildsym_init): Reset using_directives to NULL.
164
165 2012-10-02 Andrew Burgess <aburgess@broadcom.com>
166
167 * remote-sim.c (dump_mem): Always dump buffer contents, zero fill
168 output and use uint32_t not long to ensure 4 byte size.
169
170 2012-10-02 Joel Brobecker <brobecker@adacore.com>
171
172 * rs6000-nat.c (add_vmap): Set "last" to "next" after having
173 unref'ed it.
174
175 2012-10-01 Andrew Burgess <aburgess@broadcom.com>
176
177 * target.c (simple_search_memory): Include access length in
178 warning message.
179
180 2012-09-28 Nathan Miller <nathanm2@us.ibm.com>
181 Edjunior Machado <emachado@linux.vnet.ibm.com>
182
183 PR gdb/13989
184 * solib.c (solib_find): Prevent GDB from loading native libraries when
185 debugging a cross-target corefile.
186
187 2012-09-28 selven <pcthegreat@gmail.com>
188
189 Make definition match declaration.
190
191 * regcache.c (regcache_register_status): Change return type to
192 enum register_status.
193
194 2012-09-28 Yao Qi <yao@codesourcery.com>
195
196 * mi/mi-main.c (mi_cmd_data_write_memory): Call
197 write_memory_with_notification instead of write_memory.
198 (mi_cmd_data_write_memory_bytes): Call write_memory_with_notification
199 instead of target_write_memory.
200
201 2012-09-28 Yao Qi <yao@codesourcery.com>
202
203 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Emit error
204 when the length of content is not an even number.
205
206 2012-09-27 Tom Tromey <tromey@redhat.com>
207
208 Fix https://bugzilla.redhat.com/show_bug.cgi?id=849357
209 * cp-valprint.c (cp_print_value_fields): Use get_vptr_fieldno.
210
211 2012-09-27 Joel Brobecker <brobecker@adacore.com>
212
213 * sol-thread.c (sol_thread_fetch_registers)
214 (sol_thread_store_registers): Delete commented out code.
215
216 2012-09-27 Joel Brobecker <brobecker@adacore.com>
217
218 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
219 Move these functions to sparc-sol-thread.c.
220 * sparc-sol-thread.c: New file.
221 * configure.ac: Add sparc-sol-thread.o to CONFIG_OBS and
222 sparc-sol-thread.c to CONFIG_SRCS for sparc-solaris native
223 configurations.
224 * configure: Regenerate.
225
226 2012-09-27 Joel Brobecker <brobecker@adacore.com>
227
228 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
229 Remove commented-out code.
230
231 2012-09-27 Joel Brobecker <brobecker@adacore.com>
232
233 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
234 Enable this code for sparc hosts only.
235
236 2012-09-27 Joel Brobecker <brobecker@adacore.com>
237
238 * procfs.h (procfs_find_LDT_entry): Add declaration.
239 * sol-thread.c (ps_lgetLDT): Delete local declaration of
240 function procfs_find_LDT_entry.
241
242 2012-09-27 Joel Brobecker <brobecker@adacore.com>
243
244 * procfs.c (proc_get_LDT_entry): Make static.
245
246 2012-09-27 Joel Brobecker <brobecker@adacore.com>
247
248 * procfs.c (proc_find_memory_regions): Fix declaration.
249
250 2012-09-27 Siddhesh Poyarekar <siddhesh@redhat.com>
251
252 * amd64-tdep.c (amd64_return_value): Revert previous change
253 that used TYPE_LENGTH directly.
254 * bfin-tdep.c (bfin_extract_return_value): Likewise.
255 (bfin_store_return_value): Likewise.
256 * cris-tdep.c (cris_store_return_value): Likewise.
257 (cris_extract_return_value): Likewise.
258 * h8300-tdep.c (h8300_extract_return_value): Likewise.
259 * hppa-tdep.c (hppa64_return_value): Likewise.
260 * lm32-tdep.c (lm32_store_return_value): Likewise.
261 * microblaze-tdep.c (microblaze_store_return_value): Likewise.
262 * spu-tdep.c (spu_value_from_register): Likewise.
263 * vax-tdep.c (vax_return_value): Likewise.
264
265 2012-09-27 Siddhesh Poyarekar <siddhesh@redhat.com>
266
267 * gdbtypes.c (lookup_array_range_type): Expand parameters
268 LOW_BOUND and HIGH_BOUND to LONGEST.
269 (lookup_string_range_type): Likewise.
270 * gdbtypes.h (lookup_array_range_type): Likewise.
271 (lookup_string_range_type): Likewise.
272 * valops.c (value_cstring): Expand parameter LEN to ssize_t.
273 Expand HIGHBOUND to ssize_t.
274 (value_string): Likewise.
275 * value.h (value_cstring): Expand parameter LEN to ssize_t.
276 (value_string): Likewise.
277
278 2012-09-27 Yao Qi <yao@codesourcery.com>
279
280 PR breakpoints/13898
281 * breakpoint.h (tracepoint_breakpoint_ops): Forward declaration.
282 * mi/mi-cmd-break.c (mi_cmd_break_insert): Set breakpoint_ops
283 per breakpoint type.
284
285 2012-09-26 Pierre Muller <muller@ics.u-strasbg.fr>
286
287 * procfs.c: Add gdb_bfd header.
288 * rs6000-nat.c: Likewise.
289 * solib-pa64.c: Likewise.
290 * spu-linux-nat.c: Likewise.
291 * windows-nat.c: Likewise.
292
293 2012-09-26 Tom Tromey <tromey@redhat.com>
294
295 * f-lang.h (BLANK_COMMON_NAME_LOCAL): Remove.
296
297 2012-09-26 Tom Tromey <tromey@redhat.com>
298
299 * dwarf2read.c (mark_common_block_symbol_computed): New function.
300 (read_common_block): Handle child DIEs with
301 DW_AT_data_member_location.
302 (new_symbol_full): Add special case for common blocks.
303
304 2012-09-26 Jan Kratochvil <jan.kratochvil@redhat.com>
305 Tom Tromey <tromey@redhat.com>
306
307 * dwarf2read.c (read_common_block): Rewrite.
308 (new_symbol_full): Handle DW_TAG_common_block.
309 * f-lang.c (head_common_list, find_common_for_function):
310 Remove.
311 * f-lang.h (struct common_entry, struct saved_f77_common,
312 SAVED_F77_COMMON, SAVED_F77_COMMON_PTR, COMMON_ENTRY,
313 COMMON_ENTRY_PTR, head_common_list, find_common_for_function,
314 BLANK_COMMON_NAME_LOCAL): Remove.
315 (struct common_block): New.
316 * f-valprint.c (list_all_visible_commons): Remove.
317 (info_common_command_for_block): New function.
318 (info_common_command): Use it.
319 * stack.c (iterate_over_block_locals): Special case for
320 COMMON_BLOCK_DOMAIN.
321 * symtab.h (enum domain_enum_tag) <COMMON_BLOCK_DOMAIN>: New
322 constant.
323 (struct general_symbol_info) <value.common_block>: New field.
324 (SYMBOL_VALUE_COMMON_BLOCK): New define.
325
326 2012-09-26 Jan Kratochvil <jan.kratochvil@redhat.com>
327 Tom Tromey <tromey@redhat.com>
328
329 * f-lang.c (allocate_saved_bf_node,
330 allocate_saved_function_node, allocate_saved_f77_common_node,
331 allocate_common_entry_node, tail_common_list, current_common,
332 saved_bf_list, saved_bf_list_end, current_head_bf_list,
333 tmp_bf_ptr, add_common_block, add_common_entry,
334 find_first_common_named, patch_common_entries,
335 patch_all_commons_by_name, ADD_BF_SYMNUM, clear_bf_list,
336 global_remote_debug, get_bf_for_fcn, saved_function_list,
337 saved_function_list_end, clear_function_list, struct saved_fcn,
338 struct saved_bf_symnum, SAVED_FUNCTION, SAVED_FUNCTION_PTR,
339 SAVED_BF, SAVED_BF_PTR): Remove.
340 * f-lang.h (tail_common_list, current_common,
341 UNINITIALIZED_SECNUM, COMMON_NEEDS_PATCHING,
342 BLANK_COMMON_NAME_ORIGINAL, BLANK_COMMON_NAME_MF77,
343 DEFAULT_UPPER_BOUND, DEFAULT_LOWER_BOUND, real_main_name,
344 real_main_c_value): Remove.
345 * f-valprint.c (there_is_a_visible_common_named): Remove.
346
347 2012-09-26 Andrew Burgess <aburgess@broadcom.com>
348
349 * breakpoint.c (update_global_location_list): Ignore previous
350 duplicate status of a breakpoint when starting a new scan for
351 duplicate breakpoints.
352
353 2012-09-26 Karthik Bhat <kv.bhat@samsung.com>
354 PR breakpoints/14419
355 * arm-tdep.c (arm_skip_prologue): Extending producer check to
356 support LLVM compiler.
357
358 2012-09-26 Siddhesh Poyarekar <siddhesh@redhat.com>
359
360 * amd64-tdep.c (amd64_return_value): Use TYPE_LENGTH directly.
361 * bfin-tdep.c (bfin_extract_return_value): Likewise.
362 (bfin_store_return_value): Likewise.
363 * cris-tdep.c (cris_store_return_value): Likewise.
364 (cris_extract_return_value): Likewise.
365 * h8300-tdep.c (h8300_extract_return_value): Likewise.
366 * hppa-tdep.c (hppa64_return_value): Likewise.
367 * lm32-tdep.c (lm32_store_return_value): Likewise.
368 * microblaze-tdep.c (microblaze_store_return_value): Likewise.
369 * spu-tdep.c (spu_value_from_register): Likewise.
370 * vax-tdep.c (vax_return_value): Likewise.
371
372 2012-09-26 Siddhesh Poyarekar <siddhesh@redhat.com>
373
374 * breakpoint.c (invalidate_bp_value_on_memory_change): Expand
375 parameter LEN to ssize_t.
376
377 2012-09-25 Siddhesh Poyarekar <siddhesh@redhat.com>
378
379 * ada-valprint.c (ada_val_print_1): Eliminate single-use
380 variable LEN.
381 * alpha-tdep.c (alpha_extract_return_value): Use TYPE_LENGTH
382 directly.
383 (alpha_store_return_value): Likewise.
384 * amd64-tdep.c (amd64_classify_aggregate): Likewise.
385 (amd64_push_arguments): Likewise.
386 * ax-gdb.c (gen_trace_static_fields): Likewise.
387 (gen_traced_pop): Likewise.
388 * bfin-tdep.c (bfin_push_dummy_call): Likewise.
389 * breakpoint.c (update_watchpoint): Likewise.
390 * findcmd.c (parse_find_args): Use local variable for type
391 instead of length.
392 * findvar.c (default_read_var_value): Use TYPE_LENGTH directly.
393 * h8300-tdep.c (h8300h_extract_return_value): Likewise.
394 (h8300_store_return_value): Likewise.
395 * i386-darwin-tdep.c (i386_darwin_push_dummy_call): Likewise.
396 Use i386_darwin_arg_type_alignment directly.
397 * infcall.c (call_function_by_hand): Use TYPE_LENGTH directly.
398 * lm32-tdep.c (lm32_push_dummy_call): Likewise.
399 * m68hc11-tdep.c (m68hc11_push_dummy_call): Likewise.
400 (m68hc11_extract_return_value): Likewise.
401 * mep-tdep.c (mep_push_dummy_call): Likewise.
402 * printcmd.c (float_type_from_length): Likewise.
403 * s390-tdep.c (s390_value_from_register): Likewise.
404 * stack.c (read_frame_arg): Likewise.
405 * tracepoint.c (encode_actions_1): Likewise.
406 * valops.c (value_fetch_lazy): Use local variable for type
407 instead of length. Use TYPE_LENGTH directly.
408 * value.c (value_contents_equal): Use TYPE_LENGTH directly.
409
410 2012-09-25 Joel Brobecker <brobecker@adacore.com>
411
412 * symtab.c (skip_prologue_sal): Fix typo in comment.
413
414 2012-09-25 Joel Brobecker <brobecker@adacore.com>
415
416 * linespec.c (create_sals_line_offset): Fix typo in comment.
417
418 2012-09-25 Siddhesh Poyarekar <siddhesh@redhat.com>
419
420 * c-typeprint.c (c_type_print_varspec_suffix): Remove cast and
421 use plongest to print the array size.
422
423 2012-09-24 Siddhesh Poyarekar <siddhesh@redhat.com>
424
425 * m2-typeprint.c (m2_enum): Expand LASTVAL to LONGEST.
426 * p-valprint.c (pascal_type_print_base): Likewise.
427
428 2012-09-22 Yao Qi <yao@codesourcery.com>
429
430 * remote.c (remote_get_trace_status): Remove setting default
431 values of fields of 'ts'.
432
433 2012-09-21 Jan Kratochvil <jan.kratochvil@redhat.com>
434
435 Fix internal error on canonicalization of clang types.
436 * cp-name-parser.y (operator): New comment at make_operator call for
437 new, delete, new[] and delete[].
438 (exp): Use "sizeof ". Add new comment at make_operator call.
439
440 2012-09-21 Jan Kratochvil <jan.kratochvil@redhat.com>
441
442 Fix disassemble without parameters in tailcall frame.
443 * cli/cli-cmds.c (disassemble_current_function): Use
444 get_frame_address_in_block.
445
446 2012-09-21 Tom Tromey <tromey@redhat.com>
447
448 * c-typeprint.c (c_type_print_base) <TYPE_CODE_STRUCT,
449 TYPE_CODE_UNION>: Unify, removing a goto.
450
451 2012-09-21 Tom Tromey <tromey@redhat.com>
452
453 * c-typeprint.c (cp_type_print_derivation_info): Fix comment.
454
455 2012-09-21 Andrew Burgess <aburgess@broadcom.com>
456
457 * findvar.c (read_frame_register_value): Mark the result value as
458 optimized out if any of the input registers have been optimized out.
459
460 2012-09-21 Andreas Schwab <schwab@linux-m68k.org>
461
462 * python/python.c (finalize_python): Only define if HAVE_PYTHON.
463
464 2012-09-21 Siddhesh Poyarekar <siddhesh@redhat.com>
465
466 * eval.c (evaluate_subexp_standard): Eliminate single-use
467 variable LOWER.
468
469 2012-09-21 Yao Qi <yao@codesourcery.com>
470
471 * mi/mi-interp.c: Declare mi_record_changed.
472 (mi_interpreter_init): Call observer_attach_record_changed.
473 (mi_record_changed): New.
474 * record.c (record_open): Call observer_notify_record_changed.
475 (cmd_record_stop): Call observer_notify_record_changed.
476 * NEWS: Mention it.
477
478 2012-09-20 Tom Tromey <tromey@redhat.com>
479
480 * NEWS: Update.
481 * python/python.c (finalize_python): New function.
482 (_initialize_python): Make a final cleanup.
483
484 2012-09-19 Doug Evans <dje@google.com>
485
486 * buildsym.h (param_symbols): Delete, unused.
487 (context_stack): Delete member "params", unused.
488 * buildsym.c (push_context): Update.
489 * dwarf2read.c (read_func_scope): Update.
490
491 2012-09-19 Thomas Schwinge <thomas@codesourcery.com>
492
493 * sh-tdep.c (sh_register_convert_to_virtual)
494 (sh_register_convert_to_raw): Add a gdbarch parameter. Update
495 all callers. Just do a memcpy if not the little-endian case.
496
497 * h8300-tdep.c (h8300_gdbarch_init): Invoke
498 set_gdbarch_double_format and set_gdbarch_long_double_format.
499 * m68hc11-tdep.c (m68hc11_gdbarch_init): Invoke
500 set_gdbarch_double_format.
501 * sh-tdep.c (sh_gdbarch_init): Likewise.
502
503 * NEWS: Document the removal of SH's 'regs' command.
504 * sh-tdep.c (_initialize_sh_tdep): Remove the deprecated 'regs'
505 command.
506
507 2012-09-18 Sergio Durigan Junior <sergiodj@redhat.com>
508
509 * infcmd.c (_initialize_infcmd): Register `j' as an alias for
510 `jump'.
511
512 2012-09-18 Joel Brobecker <brobecker@adacore.com>
513
514 * linespec.c (iterate_over_all_matching_symtabs): Use the correct
515 language when iterating over symbols.
516
517 2012-09-18 Yao Qi <yao@codesourcery.com>
518
519 * mi/mi-interp.c: Declare mi_tsv_created and mi_tsv_deleted.
520 (mi_interpreter_init): Call observer_attach_tsv_created and
521 observer_attach_tsv_deleted.
522 (mi_tsv_created, mi_tsv_deleted): New.
523 * tracepoint.c (delete_trace_state_variable): Call
524 observer_notify_tsv_deleted.
525 (trace_variable_command): Call observer_notify_tsv_created.
526 (delete_trace_variable_command): Call
527 observer_notify_tsv_deleted.
528 (create_tsv_from_upload): Call observer_notify_tsv_created.
529 * NEWS: Mention it.
530
531 2012-09-18 Yao Qi <yao@codesourcery.com>
532
533 * tracepoint.c (tfind_1): Call observer_notify_traceframe_changed
534 if traceframe changed.
535 * mi/mi-cmds.c (mi_cmd mi_cmds): Adjust for command
536 "trace-find".
537 * mi/mi-interp.c: Declare 'mi_traceframe_changed'.
538 (mi_interpreter_init): Hook mi_traceframe_changed to observer
539 'traceframe_changed'.
540 (mi_traceframe_changed): New.
541 * mi/mi-main.h (struct mi_suppress_notification) <traceframe>:
542 New field.
543 * NEWS: Mention the new MI notification.
544
545 2012-09-17 Mike Wrighton <wrighton@codesourcery.com>
546
547 * MAINTAINERS (Write After Approval): Add "Mike Wrighton".
548
549 2012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
550
551 * common/linux-ptrace.c: Change __i386__ to __i386__ || __x86_64__.
552 (linux_ptrace_test_ret_to_nx): Extend comment for x86_64. Change
553 __i386__ to __i386__ || __x86_64__. Extend code also for __x86_64__.
554 Extend code also for PaX support. Convert all gdb_assert to warning
555 calls.
556
557 2012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
558
559 Implement auto-load user conveniences suggested by Doug Evans.
560 * auto-load.c: Include top.h.
561 (file_is_auto_load_safe): New variable advice_printed. Print advice.
562 (_initialize_auto_load): New variable scripts_directory_help. Mention
563 GDBPY_AUTO_FILE_NAME and GDB_AUTO_FILE_NAME for set auto-load
564 scripts-directory. Document in online help one can use also files for
565 set auto-load safe-path.
566 * python/py-auto-load.c: (GDBPY_AUTO_FILE_NAME): Move it from here ...
567 * python/python.h (GDBPY_AUTO_FILE_NAME): ... to here.
568
569 2012-09-17 Siddhesh Poyarekar <siddhesh@redhat.com>
570
571 * tic6x-tdep.c (tic6x_push_dummy_call): Remove unused definition
572 of LEN.
573
574 2012-09-17 Siddhesh Poyarekar <siddhesh@redhat.com>
575
576 * m2-valprint.c (m2_print_array_contents): Eliminate variable
577 ELTLEN and use TYPE_LENGTH directly.
578 (m2_val_print): Likewise.
579 * m68k-tdep.c (m68k_svr4_extract_return_value): Eliminate
580 variable LEN and use TYPE_LENGTH directly.
581 (m68k_svr4_store_return_value): Likewise.
582 * mips-tdep.c (mips_o32_push_dummy_call): Eliminate variable
583 ARGLEN and use TYPE_LENGTH directly.
584 (mips_o64_push_dummy_call): Likewise.
585 * s390-tdep (s390_function_arg_pass_by_reference): Eliminate
586 variable LENGTH and use TYPE_LENGTH directly.
587 (s390_function_arg_float): Likewise.
588 (s390_function_arg_integer): Likewise.
589 (s390_push_dummy_call): Likewise.
590 (s390_return_value_convention): Likewise.
591 * spu-tdep.c (spu_push_dummy_call): Eliminate LEN and use
592 TYPE_LENGTH directly.
593
594 2012-09-17 Yao Qi <yao@codesourcery.com>
595
596 * cli/cli-decode.c (add_setshow_zuinteger_unlimited_cmd): New.
597 Update comment to add_setshow_integer_cmd.
598 * cli/cli-setshow.c (do_set_command): Handle case
599 'var_zuinteger_unlimited'.
600 (do_show_command): Likewise.
601 * cli/cli-cmds.c (init_cmds): Call add_setshow_zuinteger_unlimited_cmd
602 for command 'remotetimeout'.
603 * command.h (enum var_types): New zuinteger_unlimited. Update comment
604 to var_integer.
605 * source.c (_initialize_source): Call add_setshow_zuinteger_unlimited_cmd
606 for command 'set listsize'.
607
608 2012-09-17 Siddhesh Poyarekar <siddhesh@redhat.com>
609
610 * infrun.c (restore_infcall_suspend_state): Eliminate single-use
611 variable LEN.
612
613 2012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
614
615 PR 14119
616 * frame.c (skip_inlined_frames): Skip also TAILCALL_FRAME frames.
617 (frame_pop): Drop also TAILCALL_FRAME frames.
618 * infcmd.c (finish_command): Ignore also TAILCALL_FRAME frames.
619
620 2012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
621 Pedro Alves <palves@redhat.com>
622
623 PR 14548
624 * infrun.c (handle_inferior_event): Do not reverse-continue back to the
625 function start if we are already at function start. Both for
626 reverse-next and for reverse-step into function without line number
627 info.
628
629 2012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
630
631 Code cleanup - rename 'inline' depth to 'artificial' depth.
632 * breakpoint.c (set_momentary_breakpoint): Rename at a caller to
633 frame_id_artificial_p, extend the comment.
634 * dwarf2-frame-tailcall.c (tailcall_frame_this_id): Rename at a user.
635 * frame.c (fprint_frame_id): Rename at a user, change debug output
636 text to "artificial=".
637 (skip_inlined_frames): Rename to ...
638 (skip_artificial_frames): ... here. Extend the comment.
639 (get_stack_frame_id, frame_unwind_caller_id): Rename at a caller.
640 (frame_id_inlined_p): Rename to ...
641 (frame_id_artificial_p): ... here. Rename at a user.
642 (frame_id_eq, frame_id_inner, frame_unwind_caller_pc)
643 (frame_unwind_caller_pc_if_available, frame_unwind_caller_arch): Rename
644 at a user.
645 * frame.h (struct frame_id): Rename inline_depth to artificial_depth.
646 Extend the comment.
647 (frame_id_inlined_p): Rename to ...
648 (frame_id_artificial_p): ... here.
649 * inline-frame.c (inline_frame_this_id): Rename at a user.
650
651 2012-09-14 Andrew Burgess <aburgess@broadcom.com>
652
653 * c-typeprint.c (c_type_print_varspec_suffix): Display the size of
654 vector variables using vector_size syntax rather than array
655 syntax.
656
657 2012-09-14 Siddhesh Poyarekar <siddhesh@redhat.com>
658
659 * valarith.c (value_concat): Replace unsafe ALLOCA with
660 XMALLOC/XFREE.
661
662 2012-09-14 Pedro Alves <palves@redhat.com>
663
664 * gdb.1 (SEE ALSO): Expand pointer to GDB's Texinfo manual.
665
666 2012-09-14 Khoo Yit Phang <khooyp@cs.umd.edu>
667
668 Point contrib/cc-with-tweaks.sh to the build-local data-directory.
669 * contrib/cc-with-tweaks.sh (GDB): Add -data-directory
670 data-directory as appropriate.
671
672 2012-09-14 Siddhesh Poyarekar <siddhesh@redhat.com>
673
674 * printcmd.c (ui_printf): Eliminate single-use variable
675 PARAM_LEN.
676
677 2012-09-14 Yao Qi <yao@codesourcery.com>
678 Pedro Alves <palves@redhat.com>
679
680 * valops.c (value_assign): Move observer_notify_target_changed
681 below to replace reinit_frame_cache.
682
683 2012-09-13 Khoo Yit Phang <khooyp@cs.umd.edu>
684
685 Refactor Python "gdb" module into a proper Python package, by
686 introducing a new "_gdb" module for code implemented in C, and
687 using reload/__import__ instead of exec.
688 * python/lib/gdb/__init__.py: Import * from _gdb.
689 (GdbOutputFile, sys.stdout, GdbOutputErrorFile, sys.stderr,
690 prompt_hook, sys.argv): Moved from finish_python_initialization.
691 (pretty_printers, PYTHONDIR): Moved from _initialize_python.
692 (packages, auto_load_packages): New list and function replacing
693 module_dict and auto-loading code, using __file__ instead of
694 gdb.PYTHONDIR and reload/__import__ instead of exec.
695 (GdbSetPythonDirectory): Replacing function of the same name
696 from finish_python_initialization, using reload/__import__ instead
697 of exec, as well as call auto_load_packages.
698 * python/py-prettyprint.c (find_pretty_printer_from_gdb): Check
699 gdb_python_module and not gdb_module.
700 * python/python-internal.h (gdb_python_module): Declare.
701 * python/python.c (gdb_python_module): New global.
702 (before_prompt_hook): Check gdb_python_module and not gdb_module.
703 (_initialize_python): Rename gdb module to _gdb.
704 Move gdb.PYTHONDIR and gdb.pretty_printer to lib/gdb/__init__.py.
705 (finish_python_initialization): Move Python code to
706 lib/gdb/__init__.py; instead, set up sys.path and import gdb into
707 __main__.
708
709 2012-09-13 Pedro Alves <palves@redhat.com>
710
711 * Makefile.in (COMMON_OBS): Add registry.o.
712 * registry.c: New file.
713 * registry.h (struct registry_container): Declare.
714 (registry_data_callback): New typedef.
715 (struct registry_data, struct registry_data_registration, struct
716 registry_data_registry): New type.
717 (register_data_with_cleanup, registry_alloc_data)
718 (registry_callback_adaptor, registry_clear_data)
719 (registry_container_free_data, registry_set_data, registry_data):
720 Declare.
721 (DEFINE_REGISTRY): Refactor structures and functions as shims over
722 the new common structures and functions.
723 (DECLARE_REGISTRY): Declare struct TAG ## _data. Use the tagged
724 callback typedefs.
725
726 2012-09-12 Mike Wrighton <wrighton@codesourcery.com>
727
728 * remote.c (remote_insert_hw_breakpoint): Throw exception if
729 there is an error inserting hardware breakpoints and use the
730 error message from the target.
731
732 * breakpoint.c (insert_bp_location, insert_breakpoint_locations):
733 Catch this exception and print the error message contained within. Do not
734 print the default hardware error breakpoint message in this case.
735
736 2012-09-12 Doug Evans <dje@google.com>
737
738 * dwarf2read.c (dwarf2_read_addr_index): Fix handling the case where
739 cu == NULL.
740
741 2012-09-11 Doug Evans <dje@google.com>
742
743 * dwarf2read.c (dw2_do_expand_symtabs_matching): Don't examine
744 .gdb_index symbol attributes if there are none.
745
746 2012-09-11 Joel Brobecker <brobecker@adacore.com>
747
748 * symtab.h (struct minimal_symbol) [has_size]: New field.
749 (MSYMBOL_SIZE): Adjust to forbid macro from being used as lvalue.
750 (SET_MSYMBOL_SIZE, MSYMBOL_HAS_SIZE): New macros.
751 * printcmd.c (build_address_symbolic): Only filter out zero-sized
752 minimal symbols if the symbol's size is actually known.
753 * minsyms.c (prim_record_minimal_symbol_full): Adjust setting
754 of msymbol's size field. Add comment.
755 * elfread.c (elf_symtab_read, elf_rel_plt_read): Use
756 SET_MSYMBOL_SIZE to set the minimal symbol size.
757
758 2012-09-11 Joel Brobecker <brobecker@adacore.com>
759
760 * minsyms.c (install_minimal_symbols): Use memset to fill entire
761 minimal_symbol struct object, rather than setting some of its
762 fields one by one.
763
764 2012-09-11 Andrew Burgess <aburgess@broadcom.com>
765
766 * c-typeprint.c (c_type_print_varspec_prefix): Pass through the
767 passed_a_ptr flag when displaying typedef types.
768
769 2012-09-10 Joel Brobecker <brobecker@adacore.com>
770
771 * ada-lang.c (coerce_unspec_val_to_type): Make sure that
772 the optimized_out flag is preserved.
773
774 2012-09-10 Anthony Green <green@moxielogic.com>
775
776 * moxie-tdep.c (moxie_analyze_prologue): Update for function
777 prologue changes in GCC.
778
779 2012-09-10 Keith Seitz <keiths@redhat.com>
780
781 PR gdb/13483
782 * gdbtypes.h (BOOL_PTR_CONVERSION_BADNESS): Rename to ...
783 (BOOL_CONVERSION_BADNESS): ... this.
784 * gdbtypes.c (BOOL_PTR_CONVERSION_BADNESS): Likewise.
785 (rank_one_type): Allow all boolean conversions
786 permitted by the standard.
787
788 2012-09-06 Tom Tromey <tromey@redhat.com>
789
790 * python/py-newobjfileevent.c (create_new_objfile_event_object):
791 Don't decref py_objfile.
792
793 2012-09-02 Khoo Yit Phang <khooyp@cs.umd.edu>
794
795 Do not enable -lmcheck by default when Python is enabled with
796 threading support.
797 * configure.ac: (python_has_threads) New variable, by testing
798 if WITH_THREAD is defined in Python.h.
799 Move --enable-lmcheck after --with-python.
800 Do not enable -lmcheck by default if python_has_threads=yes.
801 Warn if --enable-lmcheck and python_has_threads=yes.
802 * configure: Regenerate.
803
804 2012-08-31 Yao Qi <yao@codesourcery.com>
805
806 * mi/mi-cmds.c (mi_cmds): New macros DEF_MI_CMD_CLI
807 DEF_MI_CMD_MI DEF_MI_CMD_CLI_1 and DEF_MI_CMD_CLI_1.
808 Update some commands.
809 * mi/mi-cmds.h (struct mi_cmd) <suppress_notification>: New field.
810 * mi/mi-main.c (mi_cmd_execute): Set '*parse->cmd->suppress_notification'
811 to 1.
812
813 2012-08-31 Yao Qi <yao@codesourcery.com>
814
815 * mi/mi-cmds.c (mi_cmds): Add 'static'.
816
817 2012-08-30 Khoo Yit Phang <khooyp@cs.umd.edu>
818
819 * MAINTAINERS (Write After Approval): Add "Khoo Yit Phang".
820
821 2012-08-29 Doug Evans <dje@google.com>
822
823 * main.c (print_gdb_help): Remove reference to
824 --use-deprecated-index-sections.
825
826 2012-08-28 Yao Qi <yao@codesourcery.com>
827
828 * cli/cli-cmds.c (max_user_call_depth): Add 'unsigned'.
829 (init_cmds): Call add_setshow_uinteger_cmd for command
830 'max-user-call-depth'.
831 * cli/cli-script.c (execute_user_command): Add 'unsigned' to the
832 declaration of 'max_user_call_depth'.
833 * frame.c (backtrace_limit): Add 'unsigned'.
834 (_initialize_frame): Call add_setshow_uinteger_cmd for command
835 'limit'.
836 * remote.c (remoteaddresssize): Add 'unsigned'.
837 (remote_address_masked): Change local var 'address_size' to
838 'unsigned'.
839 (_initialize_remote): Call add_setshow_uinteger_cmd for
840 'remoteaddresssize'.
841 * top.c (history_size): Add 'unsigned'.
842 (show_commands): Change local variables to 'unsigned'.
843 (set_history_size_command): Don't check history_size is negative.
844 Adjust the condition to call unstifle_history and set history_size
845 to UNIT_MAX.
846
847 2012-08-28 Pedro Alves <palves@redhat.com>
848
849 PR gdb/14428
850
851 * infcmd.c (default_print_one_register_info): New, factored out
852 from default_print_registers_info.
853 (default_print_registers_info): Use it. Mark value unavailable if
854 necessary.
855 (registers_info): Print user registers with
856 default_print_one_register_info.
857
858 2010-08-27 H.J. Lu <hongjiu.lu@intel.com>
859
860 PR tui/14486
861 * tui/tui-source.c (tui_source_is_displayed): Check if TUI_SRC_WIN
862 is not NULL before referencing it.
863
864 2012-08-27 Jan Kratochvil <jan.kratochvil@redhat.com>
865
866 * breakpoint.c (parse_breakpoint_sals) <(*address) == NULL>: New
867 variable pc. Call find_pc_line instead of find_pc_overlay, restore
868 original PC for it.
869
870 2012-08-27 Eli Zaretskii <eliz@gnu.org>
871 Jan Kratochvil <jan.kratochvil@redhat.com>
872
873 * auto-load.c (auto_load_objfile_script): Rename to ...
874 (auto_load_objfile_script_1): ... here, change variable realname to
875 parameter realname, document it, add return value, add variable retval.
876 (auto_load_objfile_script): New function.
877
878 2012-08-27 Jan Kratochvil <jan.kratochvil@redhat.com>
879
880 * cli/cli-decode.c (print_doc_line): Keep skipping '.' and ',' not
881 followed by a whitespace.
882
883 2012-08-27 Jan Kratochvil <jan.kratochvil@redhat.com>
884
885 PR gdb/14494.
886 * dwarf2read.c (dwarf2_locate_sections): Move variable aflag here.
887 Move the SEC_HAS_CONTENTS check here - for any NAMES use.
888 (dwarf2_locate_sections) <eh_frame>: Move the variable and check from
889 here.
890
891 2012-08-27 Wei-cheng Wang <cole945@gmail.com>
892
893 * memattr.c (create_mem_region): Fix memory region overlapping
894 checking.
895
896 2012-08-24 Siddhesh Poyarekar <siddhesh@redhat.com>
897
898 * h8300-tdep.c (h8300_push_dummy_call): Replace unsafe alloca
899 with xmalloc/cleanup.
900 * mt-tdep.c (mt_push_dummy_call): Likewise.
901 * tilegx-tdep.c (tilegx_push_dummy_call): Likewise.
902 * xstormy16-tdep.c (xstormy16_push_dummy_call): Likewise.
903
904 2012-08-24 Yao Qi <yao@codesourcery.com>
905
906 * jv-exp.y (push_expression_name): Add "." at the end of error
907 message.
908
909 2012-08-23 Khoo Yit Phang <khooyp@cs.umd.edu>
910
911 Document how to return from "python-interactive" to GDB.
912 * python/python.c (_initialize_python): Update documentation.
913
914 2012-08-23 Pedro Alves <palves@redhat.com>
915
916 * infrun.c (_initialize_infrun) <handle command help text>:
917 Mention that multiple signals are supported.
918
919 2012-08-23 Pedro Alves <palves@redhat.com>
920
921 * infcmd.c (_initialize_infcmd) <signal command>: Fix typo in help
922 string.
923
924 2012-08-23 Yao Qi <yao@codesourcery.com>
925
926 * tracepoint.c (disconnect_tracing): Call set_tracepoint_num.
927 (tfind_1): Don't call registers_changed, set_traceframe_num,
928 and clear_traceframe_info.
929 Call set_current_traceframe.
930 (set_current_traceframe): call set_traceframe_num.
931
932 2012-08-22 Sergio Durigan Junior <sergiodj@redhat.com>
933
934 * remote-sim.c (_initialize_remote_sim): Pass NULL argument to
935 `register_inferior_data_with_cleanup', fixing regression on PowerPC64.
936
937 2012-08-22 Khoo Yit Phang <khooyp@cs.umd.edu>
938
939 Enable readline in Python in a GDB-specific way and block the
940 standard Python readline module to prevent conflicts with GDB.
941 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-gdb-readline.o.
942 (SUBDIR_PYTHON_SRCS): Add python/py-gdb-readline.c.
943 (py-gdb-readline.o): Add rule to compile python/py-gdb-readline.c.
944 * python/py-gdb-readline.c: New file.
945 * python/python-internal.h (gdbpy_initialize_gdb_readline): New
946 prototype.
947 * python/python.c (_initialize_python): Call
948 gdbpy_initialize_gdb_readline.
949
950 2012-08-22 Keith Seitz <keiths@redhat.com>
951
952 * defs.h: Include build-gnulib/config.h
953
954 2012-08-22 Joseph Myers <joseph@codesourcery.com>
955
956 * arm-tdep.c (thumb_get_next_pc_raw): Mask off low bits for bx pc
957 and blx pc.
958
959 2012-08-22 Khoo Yit Phang <khooyp@cs.umd.edu>
960
961 Add a new "python-interactive" command that starts a standard
962 Python interactive prompt with "pi" as alias, and add "py" as
963 an alias to "python".
964 * NEWS: Mention the new commands.
965 * python/python.c (eval_python_command): New function.
966 (python_interactive_command): For "python-interactive" with
967 arguments, call eval_python_command. For "python-interactive"
968 without arguments, call PyRun_InteractiveLoop.
969 (_initialize_python): Add "python-interactive" command with
970 "pi" as alias, and add "py" as an alias to "python".
971
972 2012-08-22 Tom Tromey <tromey@redhat.com>
973
974 * defs.h (quit_flag): Don't declare.
975 (clear_quit_flag, check_quit_flag, set_quit_flag): Declare.
976 (QUIT): Use new functions.
977 * event-top.c (command_handler): Use clear_quit_flag.
978 (handle_sigint): Use set_quit_flag.
979 (async_request_quit): Use check_quit_flag. Don't check
980 immediate_quit.
981 * exceptions.c (throw_exception): Use clear_quit_flag.
982 * main.c (captured_main): Use clear_quit_flag.
983 * python/python.c (clear_quit_flag, set_quit_flag)
984 (check_quit_flag): New functions.
985 * remote-sim.c (gdb_os_poll_quit): Use check_quit_flag,
986 clear_quit_flag.
987 * remote.c (remote_wait_as): Use check_quit_flag,
988 clear_quit_flag.
989 (remote_start_remote): Call QUIT.
990 * symfile.c (load_progress): Use check_quit_flag.
991 * top.c (command_loop): Use clear_quit_flag.
992 (command_line_input): Call QUIT.
993 * utils.c (quit_flag): Conditionally define.
994 (clear_quit_flag, check_quit_flag, set_quit_flag): New
995 functions.
996 (prompt_for_continue): Call QUIT. Use quit, not
997 async_request_quit.
998 * remote-mips.c (mips_expect_timeout): Call QUIT.
999 * monitor.c (monitor_expect): Call QUIT.
1000
1001 2012-08-22 Tom Tromey <tromey@redhat.com>
1002
1003 * event-top.c (sigwinch_token, handle_sigwinch): Remove.
1004 (async_init_signals): Update.
1005 * utils.c (init_page_info): Don't use SIGWINCH_HANDLER.
1006 (SIGWINCH_HANDLER_BODY): Remove.
1007
1008 2012-08-22 Tom Tromey <tromey@redhat.com>
1009
1010 * jit.c (jit_object_close_impl): Don't malloc the objfile
1011 name.
1012 * objfiles.c (allocate_objfile): Don't malloc the objfile
1013 name.
1014 (free_objfile): Don't free the objfile name.
1015 * objfiles.h (struct objfile) <name>: Update comment.
1016 * symfile.c (reread_symbols): Fix reference counting. Don't
1017 malloc objfile name.
1018
1019 2012-08-22 Tom Tromey <tromey@redhat.com>
1020
1021 * windows-nat.c (windows_make_so): Use gdb_bfd_open.
1022 * symfile.c (bfd_open_maybe_remote): Use gdb_bfd_open.
1023 (symfile_bfd_open): Likewise.
1024 (generic_load): Likewise.
1025 * solib.c (solib_bfd_fopen): Use gdb_bfd_open.
1026 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
1027 gdb_bfd_open.
1028 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
1029 Use gdb_bfd_open.
1030 * rs6000-nat.c (add_vmap): Use gdb_bfd_open.
1031 * remote-mips.c (mips_load_srec): Use gdb_bfd_open.
1032 (pmon_load_fast): Likewise.
1033 * remote-m32r-sdi.c (m32r_load): Use gdb_bfd_open.
1034 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_open.
1035 * machoread.c (macho_symfile_read_all_oso): Use gdb_bfd_open.
1036 (macho_check_dsym): Likewise.
1037 * m32r-rom.c (m32r_load): Use gdb_bfd_open.
1038 (m32r_upload_command): Likewise.
1039 * gdb_bfd.h (gdb_bfd_cache): Declare.
1040 * gdb_bfd.c (struct gdb_bfd_data): New.
1041 (gdb_bfd_cache): New global.
1042 (struct gdb_bfd_cache_search): New.
1043 (hash_bfd): New function.
1044 (eq_bfd): Likewise.
1045 (gdb_bfd_open): Likewise.
1046 (gdb_bfd_ref): Allocate a gdb_bfd_data and attach to the BFD.
1047 (gdb_bfd_unref): Remove closed BFD from cache. Update for
1048 gdb_bfd_data.
1049 * exec.c (exec_file_attach): Use gdb_bfd_open.
1050 * dsrec.c (load_srec): Use gdb_bfd_open.
1051
1052 2012-08-22 Tom Tromey <tromey@redhat.com>
1053
1054 * dwarf2read.c (macro_start_file): Update.
1055 * objfiles.c (get_objfile_bfd_data): Initialize macro_cache.
1056 (free_objfile_per_bfd_storage): Destroy macro_cache.
1057 (allocate_objfile, free_objfile): Update.
1058 * objfiles.h (struct objfile_per_bfd_storage) <macro_cache>:
1059 New field.
1060 (struct objfile) <macro_cache>: Remove.
1061 * symfile.c (reread_symbols): Update.
1062 * symmisc.c (print_symbol_bcache_statistics): Update.
1063 (print_objfile_statistics): Update.
1064
1065 2012-08-22 Tom Tromey <tromey@redhat.com>
1066
1067 * elfread.c (elf_symtab_read): Update.
1068 * objfiles.c (objfiles_bfd_data): New global.
1069 (get_objfile_bfd_data, free_objfile_per_bfd_storage)
1070 (objfile_bfd_data_free, set_objfile_per_bfd): New functions.
1071 (allocate_objfile, free_objfile): Update.
1072 (_initialize_objfiles): Initialize objfiles_bfd_data.
1073 * objfiles.h (struct objfile_per_bfd_storage): New.
1074 (struct objfile) <per_bfd>: New field.
1075 <filename_cache>: Remove.
1076 (set_objfile_per_bfd): Declare.
1077 * symfile.c (reread_symbols): Update. Call
1078 set_objfile_per_bfd.
1079 (allocate_symtab): Update.
1080 * symmisc.c (print_symbol_bcache_statistics): Update.
1081 (print_objfile_statistics): Print the size of the BFD obstack.
1082
1083 2012-08-22 Tom Tromey <tromey@redhat.com>
1084
1085 * gdb_bfd.h: Include registry.h. Use DECLARE_REGISTRY.
1086 * gdb_bfd.c: Use DEFINE_REGISTRY.
1087 (struct gdb_bfd_data): Add REGISTRY_FIELDS.
1088 (gdb_bfd_ref): Call bfd_alloc_data.
1089 (gdb_bfd_unref): Call bfd_free_data.
1090
1091 2012-08-22 Tom Tromey <tromey@redhat.com>
1092
1093 * registry.h (struct registry_fields): New.
1094 (REGISTRY_FIELDS): Redefine.
1095 (REGISTRY_ACCESS_FIELD): New macro.
1096 (DEFINE_REGISTRY): Add ACCESS argument. Update defined
1097 functions.
1098
1099 2012-08-22 Tom Tromey <tromey@redhat.com>
1100
1101 * auto-load.c (_initialize_auto_load): Update.
1102 * solib-svr4.c (_initialize_svr4_solib): Update
1103 * solib-dsbt.c (_initialize_dsbt_solib): Update.
1104 * solib-darwin.c (_initialize_darwin_solib): Update.
1105 * registry.h: New file.
1106 * python/py-progspace.c (gdbpy_initialize_pspace): Update.
1107 * python/py-inferior.c (gdbpy_initialize_inferior): Update.
1108 * progspace.h: Include registry.h. Use DECLARE_REGISTRY.
1109 (register_program_space_data_with_cleanup)
1110 (register_program_space_data, program_space_alloc_data)
1111 (clear_program_space_data, set_program_space_data)
1112 (program_space_data): Don't declare.
1113 * progspace.c: Use DEFINE_REGISTRY.
1114 (struct program_space_data, struct
1115 program_space_data_registration, struct
1116 program_space_data_registry, program_space_data_registry)
1117 (register_program_space_data_with_cleanup)
1118 (register_program_space_data, program_space_alloc_data)
1119 (program_space_free_data, clear_program_space_data)
1120 (set_program_space_data, program_space_data): Remove.
1121 * objfiles.h: Include registry.h. Use DECLARE_REGISTRY.
1122 (struct objfile) <data, num_data>: Replace with REGISTRY_FIELDS.
1123 (register_objfile_data_with_cleanup, register_objfile_data)
1124 (clear_objfile_data, set_objfile_data, objfile_data): Don't
1125 declare.
1126 * objfiles.c: Use DEFINE_REGISTRY.
1127 (struct objfile_data, struct objfile_data_registration, struct
1128 objfile_data_registry, objfile_data_registry)
1129 (register_objfile_data_with_cleanup, register_objfile_data)
1130 (objfile_alloc_data, objfile_free_data, clear_objfile_data)
1131 (set_objfile_data, objfile_data): Remove.
1132 (_initialize_objfiles): Update.
1133 * jit.c (_initialize_jit): Update.
1134 * inflow.c (_initialize_inflow): Update.
1135 * inferior.h: Include registry.h. Use DECLARE_REGISTRY.
1136 (struct inferior) <data, num_data>: Replace with REGISTRY_FIELDS.
1137 (register_inferior_data_with_cleanup, register_inferior_data)
1138 (clear_inferior_data, set_inferior_data, inferior_data): Don't
1139 declare.
1140 * inferior.c: Use DEFINE_REGISTRY.
1141 (struct inferior_data, struct inferior_data_registration, struct
1142 inferior_data_registry, inferior_data_registry)
1143 (register_inferior_data_with_cleanup, register_inferior_data)
1144 (inferior_alloc_data, inferior_free_data clear_inferior_data)
1145 (set_inferior_data, inferior_data): Remove.
1146 * auxv.c (_initialize_auxv): Update.
1147 * ada-lang.c (_initialize_ada_language): Update.
1148 * breakpoint.c (_initialize_breakpoint): Update.
1149 * i386-nat.c (i386_use_watchpoints): Update.
1150
1151 2012-08-22 Tom Tromey <tromey@redhat.com>
1152
1153 * exec.c (exec_close, exec_file_attach): Update.
1154 (add_to_section_table): Initialize 'key' field.
1155 (add_target_sections, remove_target_sections): Add 'key' argument.
1156 * exec.h (add_target_sections, remove_target_sections): Add
1157 'key' argument.
1158 * solib.c (solib_map_sections, update_solib_list, clear_solib)
1159 (reload_shared_libraries_1): Update.
1160 * target.h (struct target_section) <key>: New field.
1161
1162 2012-08-22 Tom Tromey <tromey@redhat.com>
1163
1164 * cli/cli-cmds.c (filter_sals): Handle nelts == 0 case.
1165
1166 2012-08-21 Pierre Muller <muller@ics.u-strasbg.fr>
1167
1168 * symfile.c (allocate_symtab): Use host_address_to_string
1169 function instead of cast of pointer to long which is not
1170 compatible with x86_64-w64-mingw32 build.
1171
1172 2012-08-19 Andrew Pinski <apinski@cavium.com>
1173
1174 * mips-tdep.c (is_octeon): New function.
1175 (is_octeon_bbit_op): New function.
1176 (mips32_next_pc): Handle Octeon's bbit instructions.
1177 (mips32_instruction_has_delay_slot): Likewise.
1178
1179 2012-08-19 Andrew Pinski <apinski@cavium.com>
1180
1181 * mips-tdep.c (mips32_next_pc): Fix line spacing of the comment
1182 before the function.
1183
1184 2012-08-19 Andrew Pinski <apinski@cavium.com>
1185
1186 * mips-tdep.c (mips32_next_pc): Consolidate calls to itype_op.
1187
1188 2012-08-19 Keith Seitz <keiths@redhat.com>
1189
1190 PR c++/14365
1191 * c-typeprint.c (c_type_print_varspec_prefix): Pass
1192 -1 for SHOW to c_type_print_base for METHODPTR and MEMBERPTR.
1193
1194 2012-08-18 Eli Zaretskii <eliz@gnu.org>
1195
1196 * Makefile.in (HFILES_NO_SRCDIR): Fix a typo: golang.h -> go-lang.h.
1197 The typo broke "make TAGS".
1198
1199 2012-08-17 Joel Brobecker <brobecker@adacore.com>
1200
1201 GDB 7.5 released.
1202
1203 2012-08-17 Keith Seitz <keiths@redhat.com>
1204
1205 PR c++/13356
1206 * gdbtypes.c (strict_type_checking): New variable.
1207 (show_strict_type_checking): New function.
1208 (rank_one_type): Return NS_POINTER_INTEGER_CONVERSION_BADNESS
1209 if strict type checking is disabled.
1210 (_initialize_gdbtypes): Add "check type" subcommand.
1211 * gdbtypes.h (NS_INTEGER_POINTER_CONVERSION_BADNESS): New struct.
1212
1213 2012-08-17 Keith Seitz <keiths@redhat.com>
1214
1215 * language.h (type_mode): Remove.
1216 (type_check): Remove.
1217 (struct language_defn): Remove la_type_check.
1218 (STRICT_TYPE): Remove unused macro.
1219 (type_error): Remove.
1220 * language.c (set_type_range_case): Renamed to ...
1221 (set_range_case): ... this. Update all callers.
1222 Remove type_mode/type_check.
1223 (type_mode): Remove.
1224 (type_check): Remove.
1225 (show_type_command): Remove.
1226 (set_type_command): Remove.
1227 (language_info): Remove type checking output.
1228 (type_error): Remove unused function.
1229 (range_error): Update comment.
1230 (unknown_language_defn): Remove la_type_check.
1231 (auto_language_defn): Likewise.
1232 (local_language_defn): Likewise.
1233 (_initialize_language): Remove "check type" subcommand.
1234 * ada-lang.c (ada_language_defn): Remove la_type_check.
1235 * c-lang.c (c_language_defn): Likewise.
1236 (cplus_language_defn): Likewise.
1237 (asm_language_defn): Likewise.
1238 (minimal_language_defn): Likewise.
1239 * d-lang.c (d_language_defn): Likewise.
1240 * f-lang.c (f_language_defn): Likewise.
1241 * go-lang.c (go_language_defn): Likewise.
1242 * jv-lang.c (java_language_defn): Likewise.
1243 * m2-lang.c (m2_language_defn): Likewise.
1244 * objc-lang.c (objc_language_defn): Likewise.
1245 * opencl-lang.c (opencl_language_defn): Likewise.
1246 * p-lang.c (pascal_language_defn): Likewise.
1247
1248 2012-08-16 Mike Frysinger <vapier@gentoo.org>
1249
1250 * infcmd.c (_initialize_infcmd): Remove trailing ) in next help text.
1251
1252 2012-08-16 Joel Brobecker <brobecker@adacore.com>
1253
1254 * ia64-hpux-nat.c (ia64_hpux_get_register_from_save_state_t):
1255 New function.
1256 (ia64_hpux_xfer_memory): Check if inferior_ptid is known before
1257 using the regache. Use ia64_hpux_get_register_from_save_state_t
1258 to access the bsp and bspstore registers if not.
1259
1260 2012-08-16 Joel Brobecker <brobecker@adacore.com>
1261
1262 * breakpoint.h (detach_breakpoints): pid parameter is now a ptid.
1263 * breakpoint.c (detach_breakpoints): Change pid parameter into
1264 a ptid. Adjust code accordingly.
1265 * infrun.c (handle_inferior_event): Delete variable child_pid.
1266 Update call to detach_breakpoints to pass the child ptid for
1267 fork events.
1268 * linux-nat.c (linux_nat_iterate_watchpoint_lwps): Remove
1269 assert that inferior_ptid's lwp is zero.
1270 (linux_handle_extended_wait): Update call to detach_breakpoints.
1271 * inf-ttrace.c (inf_ttrace_follow_fork): Update call to
1272 detach_breakpoints.
1273
1274 2012-08-16 Joel Brobecker <brobecker@adacore.com>
1275
1276 * inf-ttrace.c (inf_ttrace_follow_fork): When following the
1277 parent, only call detach_breakpoints if tts.tts_event ==
1278 TTEVT_VFORK.
1279
1280 2012-08-16 Joel Brobecker <brobecker@adacore.com>
1281
1282 * dwarf2-frame.c (dwarf2_frame_cache): Use
1283 get_frame_address_in_block instead of get_frame_pc as
1284 the bound for executing the frame's FDE.
1285
1286 2012-08-16 Yao Qi <yao@codesourcery.com>
1287
1288 * gdbtypes.h (enum type_code): Define TYPE_CODE_BITSTRING -1.
1289 * arm-tdep.c (arm_type_align): Remove code handling TYPE_CODE_BITSTRING.
1290 * c-typeprint.c (c_type_print_varspec_prefix): Likewise.
1291 (c_type_print_varspec_suffix): Likewise.
1292 * eval.c (evaluate_subexp_standard): Likewise.
1293 * f-typeprint.c (f_type_print_varspec_prefix): Likewise.
1294 (f_type_print_varspec_suffix): Likewise.
1295 * gdbtypes.c (is_scalar_type): Likewise.
1296 (recursive_dump_type): Likewise.
1297 * infcall.c (value_arg_coerce): Likewise.
1298 * m2-valprint.c (m2_val_print): Likewise.
1299 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
1300 (pascal_type_print_varspec_suffix): Likewise.
1301 (pascal_type_print_base): Likewise.
1302 * p-valprint.c (pascal_val_print): Likewise.
1303 (pascal_val_print): Likewise.
1304 * valops.c (value_slice): Likewise.
1305 * valprint.c (scalar_type_p): Likewise.
1306 * valarith.c (value_bitstring_subscript): Remove.
1307 (value_concat): Remove code handling TYPE_CODE_BITSTRING.
1308 Remove comment on TYPE_CODE_BITSTRING.
1309
1310 * stabsread.c (read_type): Don't set TYPE_CODE (type) to
1311 TYPE_CODE_BITSTRING.
1312
1313 * python/py-type.c (pyty_codes): Move ENTRY (TYPE_CODE_BITSTRING) to
1314 slot 0.
1315
1316 2012-08-16 Yao Qi <yao@codesourcery.com>
1317
1318 * tracepoint.c (trace_find_none_command): Remove.
1319 (_initialize_tracepoint): Call add_alias_cmd for "tfind none".
1320
1321 2012-08-16 Yao Qi <yao@codesourcery.com>
1322
1323 * remote.c (handle_notification): Remove parameter 'length'.
1324 (putpkt_binary, getpkt_or_notif_sane_1): Caller update.
1325
1326 2012-08-15 Keith Seitz <keiths@redhat.com>
1327
1328 * gdbtypes.c (opaque_type_resolution): Make static.
1329 Add missing comment.
1330 (overload_debug): Add missing comment.
1331 (show_opaque_type_resolution): Likewise.
1332 (show_overload_debug): Likewise.
1333 (print_bit_vector): Remove unnecessary forward declaration.
1334 (print_arg_types): Likewise.
1335 (dump_fn_fieldlists): Likewise.
1336 (print_cplus_stuff): Likewise.
1337
1338 2012-08-15 Tom Tromey <tromey@redhat.com>
1339
1340 * gdb_bfd.c (struct gdb_bfd_data) <archive_bfd>: New field.
1341 (gdb_bfd_ref): Initialize new field.
1342 (gdb_bfd_unref): Unref the archive BFD.
1343 (gdb_bfd_openr_next_archived_file): Acquire a reference to the
1344 parent archive.
1345
1346 2012-08-15 Tom Tromey <tromey@redhat.com>
1347
1348 PR python/14387:
1349 * python/py-bpevent.c (create_breakpoint_event_object): Update
1350 comment.
1351 * python/py-event.c (evpy_add_attribute): Update comment.
1352 * python/py-exitedevent.c (create_exited_event_object): Fix
1353 reference counting and error handling.
1354 * python/py-newobjfileevent.c (create_new_objfile_event_object):
1355 Fix reference counting.
1356 * python/py-signalevent.c (create_signal_event_object): Fix
1357 reference counting and error handling.
1358 * python/py-stopevent.c (emit_stop_event): Fix reference
1359 counting.
1360 * python/py-threadevent.c (get_event_thread): Return a
1361 borrowed reference.
1362 * python/py-type.c (convert_field): Fix reference counting.
1363
1364 2012-08-15 Tom Tromey <tromey@redhat.com>
1365
1366 * dwarf2read.c (dwarf_decode_macro_bytes)
1367 <DW_MACRO_GNU_transparent_include>: Use pointer to included data
1368 as hash key.
1369
1370 2012-08-14 Mike Frysinger <vapier@gentoo.org>
1371
1372 * infcmd.c (_initialize_infcmd): Update help text for the signal,
1373 stepi, nexti, finish, next, step, jump, and continue commands.
1374 * infrun.c (_initialize_infrun): Update help text for the handle
1375 command.
1376
1377 2012-08-14 Doug Evans <dje@google.com>
1378
1379 * gdbtypes.c (struct extra): Delete, unused.
1380
1381 * gdbtypes.c: Whitespace cleanup.
1382 (address_space_name_to_int): Remove "extern" from definition.
1383 (_initialize_gdbtypes): Declare with initialize_file_ftype.
1384
1385 * gdbtypes.c (make_pointer_type): Remove redundant setting of
1386 TYPE_POINTER_TYPE (type).
1387
1388 2012-08-14 Gary Benson <gbenson@redhat.com>
1389
1390 * solib-svr4.c (svr4_free_library_list): Use free_so.
1391
1392 2012-08-13 Mike Frysinger <vapier@gentoo.org>
1393
1394 * .gitignore: Add go-exp.c.
1395
1396 2012-08-13 Doug Evans <dje@google.com>
1397
1398 * value.c (show_convenience): Tweak comment.
1399 (_initialize_values): Mention convenience functions in the help text
1400 for "show convenience".
1401
1402 2012-08-13 Yao Qi <yao@codesourcery.com>
1403
1404 * std-operator.def: Remove TERNOP_SLICE_COUNT.
1405 * breakpoint.c (watchpoint_exp_is_const): Remove handling to
1406 TERNOP_SLICE_COUNT.
1407 * eval.c (evaluate_subexp_standard): Likewise.
1408 * expprint.c (print_subexp_standard): Likewise.
1409 (dump_subexp_body_standard): Likewise.
1410 * parse.c (operator_length_standard): Likewise.
1411
1412 2012-08-13 Yao Qi <yao@codesourcery.com>
1413
1414 * std-operator.def: Remove OP_BITSTRING.
1415 * breakpoint.c (watchpoint_exp_is_const): Update.
1416 * eval.c (evaluate_subexp_standard): Remove handling to
1417 OP_BITSTRING.
1418 * expprint.c (print_subexp_standard): Likewise.
1419 (dump_subexp_body_standard): Likewise.
1420 * parse.c (operator_length_standard): Likewise.
1421 * valops.c (value_bitstring): Remove.
1422 * value.h: Remove the declaration of 'value_bitstring'.
1423
1424 2012-08-10 Sergio Durigan Junior <sergiodj@redhat.com>
1425
1426 * linespec.c (find_methods): Remove unused variables `i1' and
1427 `name_len'.
1428 (decode_line_full): Likewise for `arg_start'.
1429
1430 2012-08-10 Sergio Durigan Junior <sergiodj@redhat.com>
1431
1432 * gdb_bfd.c (gdb_bfd_unref): Remove unused variable `slot'.
1433 (zlib_decompress_section): Likewise for `section_data'.
1434 (gdb_bfd_map_section): Likewise for `buf' and `retbuf'.
1435
1436 2012-08-10 Doug Evans <dje@google.com>
1437
1438 Add $_memeq, $_regex, $_streq, $_strlen convenience functions.
1439 * NEWS: Document them.
1440 * data-directory/Makefile.in (PYTHON_FILES): Add function/__init__.py,
1441 function/strfns.py.
1442 * python/py-type.c (typy_array_1): New function.
1443 (typy_array): Call it.
1444 (typy_vector): New function.
1445 (type_object_methods): Add "vector".
1446 * python/lib/gdb/function/__init__.py: New file.
1447 * python/lib/gdb/function/strfns.py: New file.
1448
1449 2012-08-10 Siddhesh Poyarekar <siddhesh@redhat.com>
1450
1451 * python/py-type.c (convert_field): Use gdb_py_long_from_longest
1452 for TYPE_FIELD_BITPOS.
1453 (typy_get_sizeof): Likewise for TYPE_LENGTH.
1454
1455 2012-08-10 Mike Frysinger <vapier@gentoo.org>
1456
1457 PR cli/10436:
1458 * common/vec.h (VEC_merge): Define.
1459 (DEF_VEC_ALLOC_FUNC_I): Add a merge helper.
1460 (DEF_VEC_ALLOC_FUNC_P): Likewise.
1461 (DEF_VEC_ALLOC_FUNC_O): Likewise.
1462 * completer.c: Include gdb_signals.h.
1463 (signal_completer): Define.
1464 * completer.h (signal_completer): Add prototype.
1465 * infcmd.c (_initialize_infcmd): Assign the command
1466 completer for "signal" to handle_completer.
1467 * infrun.c: Include completer.h.
1468 (handle_completer): Define.
1469 (_initialize_infrun): Declare a new local variable c. Store the
1470 result of add_com("handle") to it. Assign the command
1471 completer for "handle" to handle_completer.
1472
1473 2012-08-09 Yao Qi <yao@codesourcery.com>
1474
1475 * cli/cli-decode.c (set_cmd_prefix): New.
1476 (lookup_cmd_for_prefixlist): New.
1477 (add_prefix_cmd): Call set_cmd_prefix and update field 'prefix'
1478 of each cmd_list_element in *prefixlist.
1479 (add_setshow_cmd_full): set_cmd_prefix.
1480 (add_alias_cmd): Likewise.
1481 * cli/cli-decode.h (struct cmd_list_element) <prefix>: New field.
1482 Declare 'auto_boolean_enums'.
1483 * cli/cli-setshow.c: Include "observer.h".
1484 (notify_command_param_changed_p): New.
1485 (add_setshow_auto_boolean_cmd): Move auto_boolean_enums out.
1486 Remove 'static'.
1487 (do_setshow_command): Split it to ...
1488 (do_set_command, do_show_command): ... them. New.
1489 (do_set_command): Call observer_notify_command_param_changed if
1490 notify_command_param_changed_p returns true.
1491 (cmd_show_list): Caller update.
1492 * auto-load.c (set_auto_load_cmd): Likewise.
1493 * remote.c (show_remote_cmd): Likewise.
1494 * cli/cli-setshow.h: Update declarations.
1495 * top.c (execute_command): Call do_set_command and do_show_command.
1496
1497 * NEWS: Mention new MI notification.
1498 * mi/mi-interp.c: Declare mi_command_param_changed.
1499 (mi_interpreter_init): Attach mi_command_param_changed to
1500 observer command_param_changed.
1501 (mi_command_param_changed): New.
1502 Remove mi_suppress_breakpoint_notifications.
1503 Define global variable mi_suppress_notification.
1504 (mi_breakpoint_created): Update.
1505 (mi_breakpoint_deleted): Likewise.
1506 (mi_breakpoint_modified): Likewise.
1507 * mi/mi-main.c (mi_cmd_execute): Likewise. Check command
1508 'gdb-set' and set mi_suppress_notification.
1509 * mi/mi-main.h: (mi_suppress_notification): New struct.
1510
1511 2012-08-09 Andreas Tobler <andreast@fgznet.ch>
1512 Jan Kratochvil <jan.kratochvil@redhat.com>
1513
1514 * fbsd-nat.h (fbsd_find_memory_regions): Use find_memory_region_ftype.
1515
1516 2012-08-09 Yao Qi <yao@codesourcery.com>
1517
1518 * cli/cli-cmds.c (enablebreaklist): Move it to breakpoint.c.
1519 (skiplist): Move it to skip.c.
1520 (init_cmd_lists): Remove code setting enablebreaklist and
1521 skiplist to NULL.
1522 * breakpoint.c (enablebreaklist): Moved from cli/cli-cmds.c.
1523 * cli/cli-cmds.h: Remove declaration of enablebreaklist and
1524 skiplist.
1525 * gdbcmd.h: Likewise.
1526 * skip.c (_initialize_step_skip): Move 'skiplist' from
1527 cli/cli-cmds.c.
1528
1529 2012-08-09 Yao Qi <yao@codesourcery.com>
1530
1531 * cli/cli-dump.c: Add 'static' to some cmd_list_element variables.
1532 * gnu-nat.c, symfile.c: Likewise.
1533
1534 2012-08-08 Aaron Gamble <agamble@google.com>
1535
1536 * utils.c (prompt_for_continue_wait_time): New static global.
1537 (make_command_stats_cleanup): Initialize it.
1538 (report_command_stats): Subtract time waiting for user.
1539 (prompt_for_continue): Track time waiting for user.
1540 (defaulted_query): Track time waiting for user.
1541
1542 2012-08-08 Doug Evans <dje@google.com>
1543
1544 * eval.c (evaluate_subexp_standard): Fix thinko in handling
1545 UNOP_MEMVAL_TYPE.
1546 * expprint.c (print_subexp_standard, case OP_TYPE): New.
1547 (print_subexp_standard, case UNOP_CAST_TYPE): Don't increment pos.
1548 (print_subexp_standard, case UNOP_DYNAMIC_CAST): Ditto.
1549 (print_subexp_standard, case UNOP_REINTERPRET_CAST): Ditto.
1550 (print_subexp_standard, case UNOP_MEMVAL_TYPE): Ditto.
1551 (dump_subexp_body_standard, case UNOP_DYNAMIC_CAST): Don't increment
1552 elt.
1553 (dump_subexp_body_standard, case UNOP_REINTERPRET_CAST): Ditto.
1554 (dump_subexp_body_standard, case UNOP_CAST_TYPE): Ditto.
1555 (dump_subexp_body_standard, case UNOP_MEMVAL_TYPE): Ditto.
1556 (dump_prefix_expression): Handle OP_TYPE.
1557
1558 2012-08-08 Keith Seitz <keiths@redhat.com>
1559
1560 * breakpoint.c (parse_breakpoint_sals): Remove unused variable
1561 addr_start.
1562
1563 2012-08-08 Doug Evans <dje@google.com>
1564
1565 * linux-thread-db.c: #include "gdb_vecs.h".
1566 (try_thread_db_load_from_pdir_1): New arg "subdir". All callers
1567 updated.
1568 (try_thread_db_load_from_pdir): New arg "subdir". All callers updated.
1569 (thread_db_load_search): Use a vector to iterate over path elements.
1570 Handle text appearing after "$pdir".
1571
1572 * gdb_string.h: Moved to ...
1573 * common/gdb_string.h: ... here.
1574 * common/vec.h: Remove #ifndef GDBSERVER conditional inclusion of
1575 gdb_string.h and gdb_assert.h.
1576
1577 2012-08-08 Yao Qi <yao@codesourcery.com>
1578
1579 * tic6x-tdep.c (tic6x_register_to_value): Remove.
1580 (tic6x_value_to_register): Likewise.
1581 (tic6x_gdbarch_init): Don't call set_gdbarch_register_to_value
1582 and set_gdbarch_value_to_register.
1583
1584 2012-08-07 Jan Kratochvil <jan.kratochvil@redhat.com>
1585 Jean-Marc Saffroy <saffroy@gmail.com>
1586
1587 PR 11804
1588 * defs.h (find_memory_region_ftype): New comment. New arg modified.
1589 * fbsd-nat.c (fbsd_find_memory_regions): Add the passed modified value.
1590 * gcore.c (gcore_create_callback): New function comment. Add modified
1591 parameter. Only write modified regions. Set SEC_READONLY exactly
1592 according to MODIFIED.
1593 (objfile_find_memory_regions): Ignore separate debug info files. Ass
1594 the passed modified value to FUNC.
1595 * gnu-nat.c (gnu_find_memory_regions): Add the passed modified value.
1596 * linux-tdep.c (linux_find_memory_regions): Try to reads smaps file
1597 first. New variables modified and has_anonymous. Parse the lines of
1598 smaps file. Add the passed MODIFIED value to FUNC.
1599 * procfs.c (find_memory_regions_callback): Add the passed modified
1600 value.
1601
1602 2012-08-06 Tom Tromey <tromey@redhat.com>
1603
1604 * dwarf2-frame.c (clear_pointer_cleanup): New function.
1605 (dwarf2_frame_cache): Use it.
1606 * frame-unwind.h (frame_sniffer_ftype): Document prologue
1607 cache initialization constraint.
1608
1609 2012-08-06 Tom Tromey <tromey@redhat.com>
1610
1611 PR python/14386:
1612 * varobj.c (update_dynamic_varobj_children): Don't call
1613 PyIter_Check.
1614
1615 2012-08-06 Tom Tromey <tromey@redhat.com>
1616
1617 PR cli/14392:
1618 * cli/cli-cmds.c (list_command): Filter 'sals_end'.
1619
1620 2012-08-06 Nathaniel Flath <flat0103@gmail.com>
1621
1622 * NEWS: New entry for 'cd' default parameters.
1623 * cli/cli-cmds.c (cd_command): Replace error_no_arg by DIR assignment.
1624
1625 2012-08-03 Tom Tromey <tromey@redhat.com>
1626
1627 * dwarf2-frame.c (dwarf2_frame_cache): Call do_cleanups before
1628 return.
1629
1630 2012-08-02 Ulrich Weigand <ulrich.weigand@linaro.org>
1631
1632 * inf-child.c (inf_child_fileio_pwrite): If pwrite fails, fall back
1633 to attempting lseek/write.
1634 (inf_child_fileio_pread): Likewise for pread.
1635
1636 2012-08-02 Yao Qi <yao@codesourcery.com>
1637
1638 * dwarf2loc.c (entry_values_debug): Add 'unsigned'.
1639 (_initialize_dwarf2loc): Call add_setshow_zuinteger_cmd instead of
1640 add_setshow_zinteger_cmd.
1641 * dwarf2loc.h: Update the declaration of 'entry_values_debug'.
1642 * dwarf2read.c (dwarf2_die_debug): Add 'unsigned'.
1643 (_initialize_dwarf2_read): Call add_setshow_zuinteger_cmd
1644 instead of add_setshow_zinteger_cmd.
1645 * darwin-nat.c (dwarwin_debug_flag): Add 'unsigned'.
1646 (_initialize_darwin_inferior): Call add_setshow_zuinteger_cmd
1647 instead of add_setshow_zinteger_cmd.
1648 * frame.c (frame_debug): Add 'unsigned'.
1649 (_intialize_frame): Call add_setshow_zuinteger_cmd instead of
1650 add_setshow_zinteger_cmd.
1651 * frame.h: Update the declaration of 'frame_debug'.
1652 * gdbtypes.c (overload_debug): Add 'unsigned'.
1653 (_initialize_gdbtypes): Call add_setshow_zuinteger_cmd instead of
1654 add_setshow_zinteger_cmd.
1655 * inferior.h: Update declaration of 'debug_infrun'.
1656 * infrun.c (debug_infrun): Add 'unsigned'.
1657 (_initialize_infrun): Call add_setshow_zuinteger_cmd instead of
1658 add_setshow_zinteger_cmd.
1659 * jit.c (jit_debug): Add 'unsigned'.
1660 (_initialize_jit): Call add_setshow_zuinteger_cmd instead of
1661 add_setshow_zinteger_cmd.
1662 * linux-nat.c (debug_linux_nat): Add 'unsigned'.
1663 (_initialize_linux_nat): Call add_setshow_zuinteger_cmd
1664 instead of add_setshow_zinteger_cmd.
1665 * linux-thread-db.c (libthread_db_debug): Add 'unsigned'.
1666 (_initialize_thread_db): Call add_setshow_zuinteger_cmd instead of
1667 add_setshow_zinteger_cmd.
1668 * machoread.c (mach_o_debug_level): Add 'unsigned'.
1669 (_initialize_machoread): Call add_setshow_zuinteger_cmd
1670 instead of add_setshow_zinteger_cmd.
1671 * mi/mi-cmd-var.c: Update the declaration of 'varobjdebug'.
1672 * microblaze-tdep.c (microblaze_debug_flag): Add 'unsigned'.
1673 (_initialize_microblaze_tdep): Call add_setshow_zuinteger_cmd
1674 intead of add_setshow_zinteger_cmd.
1675 * mips-tdep.c (mips_debug): Add 'unsigned'.
1676 (_initialize_mips_tdep): Call add_setshow_zuinteger_cmd
1677 instead of add_setshow_zinteger_cmd.
1678 * monitor.c (monitor_debug): Add 'unsigned'.
1679 (_initialize_remote_monitors): Call add_setshow_zuinteger_cmd instead of
1680 add_setshow_zinteger_cmd.
1681 * observer.c (observer_debug): Add 'unsigned'.
1682 (_initialize_observer): Call add_setshow_zuinteger_cmd instead of
1683 add_setshow_zinteger_cmd.
1684 * parse.c (expressiondebug): Add 'unsigned'.
1685 (_initialize_parse): Call add_setshow_zuinteger_cmd instead of
1686 add_setshow_zinteger_cmd.
1687 * record.c (record_debug): Add 'unsigned'.
1688 (_initialize_record): Call add_setshow_zuinteger_cmd instead of
1689 add_setshow_zinteger_cmd.
1690 * record.h: Update the declaration of 'record_debug'.
1691 * stap-probe.c (stap_expression_debug): Add 'unsigned'.
1692 (_initialize_stap_probe): Call add_setshow_zuinteger_cmd instead of
1693 add_setshow_zinteger_cmd.
1694 * serial.c (global_serial_debug_p): Add 'unsigned'.
1695 (_initialize_serial): Call add_setshow_zuinteger_cmd instead of
1696 add_setshow_zinteger_cmd.
1697 * solib-dsbt.c (solib_dsbt_debug): Add 'unsigned'.
1698 (_initialize_dsbt_solib): Call add_setshow_zuinteger_cmd instead of
1699 add_setshow_zinteger_cmd.
1700 * solib-frv.c (solib_frv_debug): Add 'unsigned'.
1701 (_initialize_frv_solib): Call add_setshow_zuinteger_cmd instead of
1702 add_setshow_zinteger_cmd.
1703 * target.c (targetdebug): Add 'unsigned'.
1704 (initialize_targets): Call add_setshow_zuinteger_cmd instead of
1705 add_setshow_zinteger_cmd.
1706 * valops.c (overload_debug): Add 'unsigned'.
1707 * varobj.c (varobjdebug): Add 'unsigned'.
1708 (_initialize_varobj): Call add_setshow_zuinteger_cmd instead of
1709 add_setshow_zinteger_cmd.
1710 * xtensa-tdep.c (xtensa_debug_level): Add 'unsigned'.
1711 (_initialize_xtensa_tdep): Call add_setshow_zuinteger_cmd
1712 instead of add_setshow_zinteger_cmd.
1713
1714 * arch-utils.h: Remove the declaration of 'gdbarch_debug'.
1715 * gdbarch.sh (gdbarch_debug): Add 'unsigned'.
1716 (extern void _initialize_gdbarch): Call add_setshow_zuinteger_cmd
1717 instead of add_setshow_zinteger_cmd.
1718 * gdbarch.c, gdbarch.h: Re-generated.
1719
1720 2012-08-02 Yao Qi <yao@codesourcery.com>
1721
1722 * nto-tdep.c: Don't include cli/cli-decode.h and
1723 cli/cli-cmds.h.
1724 (_initialize_nto_tdep): Remove.
1725 * nto-tdep.h (struct nto_target_ops) <internal_debugging>:
1726 Remove field.
1727 Remove macro nto_internal_debugging.
1728
1729 2012-08-01 Richard Henderson <rth@redhat.com>
1730
1731 * configure.tgt (m32c-*-*) [gdb_target_obs]: Remove prologue-value.o.
1732 (mep-*-*) [gdb_target_obs]: Likewise.
1733
1734 2012-07-31 Andreas Schwab <schwab@linux-m68k.org>
1735
1736 * ppc-linux-tdep.c (ppc_linux_init_abi): Register
1737 linux_get_siginfo_type.
1738
1739 2012-07-31 Jan Kratochvil <jan.kratochvil@redhat.com>
1740
1741 * infcall.c (call_function_by_hand): Move BP_ADDR comment to
1742 AT_ENTRY_POINT.
1743 (call_function_by_hand) <ON_STACK>: Call write_memory with
1744 gdbarch_breakpoint_from_pc, if possible.
1745 (call_function_by_hand) <AT_ENTRY_POINT>: The BP_ADDR comment is moved
1746 here.
1747
1748 2012-07-31 Yao Qi <yao@codesourcery.com>
1749
1750 * tracepoint.c: Add 'static' for some variables.
1751
1752 2012-07-31 Yao Qi <yao@codesourcery.com>
1753
1754 * go32-nat.c: Declare _initialize_go32_nat.
1755 * ser-go32.c: Declare _initialize_ser_dos.
1756 * top.c (do_chdir_cleanup): Add 'static'.
1757
1758 2012-07-30 Keith Seitz <keiths@redhat.com>
1759
1760 * linespec.c (linespec_lex_number): A number followed
1761 by quotes is a valid number, too.
1762
1763 2012-07-30 Tom Tromey <tromey@redhat.com>
1764
1765 * remote-sim.c (gdb_os_poll_quit): Don't check immediate_quit.
1766
1767 2012-07-30 Ulrich Weigand <ulrich.weigand@linaro.org>
1768
1769 * arm-linux-nat.c (arm_linux_hw_breakpoint_initialize): Do not
1770 attempt to 4-byte-align HW breakpoint addresses for Thumb.
1771
1772 2012-07-30 Andrew Burgess <aburgess@broadcom.com>
1773
1774 * varobj.c (varobj_invalidate_iter): All varobj must be marked as
1775 invalid or reevaluated to prevent prevent references to possibly
1776 delete'd type objects being left in the varobj.
1777
1778 2012-07-27 Tom Tromey <tromey@redhat.com>
1779 Jan Kratochvil <jan.kratochvil@redhat.com>
1780
1781 * copying.awk: Print buffer-read-only and vi ro markers.
1782 * copying.c: Rebuild.
1783 * gdbarch.sh (copyright): Print buffer-read-only and vi ro markers.
1784 * gdbarch.c, gdbarch.h: Rebuild.
1785 * target-descriptions.c (maint_print_c_tdesc_cmd): Print
1786 buffer-read-only and vi ro markers.
1787 * features/arm-with-iwmmxt.c: Rebuild.
1788 * features/arm-with-m-fpa-layout.c: Rebuild.
1789 * features/arm-with-m-vfp-d16.c: Rebuild.
1790 * features/arm-with-m.c: Rebuild.
1791 * features/arm-with-neon.c: Rebuild.
1792 * features/arm-with-vfpv2.c: Rebuild.
1793 * features/arm-with-vfpv3.c: Rebuild.
1794 * features/i386/amd64-avx-linux.c: Rebuild.
1795 * features/i386/amd64-avx.c: Rebuild.
1796 * features/i386/amd64-linux.c: Rebuild.
1797 * features/i386/amd64.c: Rebuild.
1798 * features/i386/i386-avx-linux.c: Rebuild.
1799 * features/i386/i386-avx.c: Rebuild.
1800 * features/i386/i386-linux.c: Rebuild.
1801 * features/i386/i386-mmx-linux.c: Rebuild.
1802 * features/i386/i386-mmx.c: Rebuild.
1803 * features/i386/i386.c: Rebuild.
1804 * features/i386/x32-avx-linux.c: Rebuild.
1805 * features/i386/x32-avx.c: Rebuild.
1806 * features/i386/x32-linux.c: Rebuild.
1807 * features/i386/x32.c: Rebuild.
1808 * features/mips-dsp-linux.c: Rebuild.
1809 * features/mips-linux.c: Rebuild.
1810 * features/mips64-dsp-linux.c: Rebuild.
1811 * features/mips64-linux.c: Rebuild.
1812 * features/rs6000/powerpc-32.c: Rebuild.
1813 * features/rs6000/powerpc-32l.c: Rebuild.
1814 * features/rs6000/powerpc-403.c: Rebuild.
1815 * features/rs6000/powerpc-403gc.c: Rebuild.
1816 * features/rs6000/powerpc-405.c: Rebuild.
1817 * features/rs6000/powerpc-505.c: Rebuild.
1818 * features/rs6000/powerpc-601.c: Rebuild.
1819 * features/rs6000/powerpc-602.c: Rebuild.
1820 * features/rs6000/powerpc-603.c: Rebuild.
1821 * features/rs6000/powerpc-604.c: Rebuild.
1822 * features/rs6000/powerpc-64.c: Rebuild.
1823 * features/rs6000/powerpc-64l.c: Rebuild.
1824 * features/rs6000/powerpc-7400.c: Rebuild.
1825 * features/rs6000/powerpc-750.c: Rebuild.
1826 * features/rs6000/powerpc-860.c: Rebuild.
1827 * features/rs6000/powerpc-altivec32.c: Rebuild.
1828 * features/rs6000/powerpc-altivec32l.c: Rebuild.
1829 * features/rs6000/powerpc-altivec64.c: Rebuild.
1830 * features/rs6000/powerpc-altivec64l.c: Rebuild.
1831 * features/rs6000/powerpc-cell32l.c: Rebuild.
1832 * features/rs6000/powerpc-cell64l.c: Rebuild.
1833 * features/rs6000/powerpc-e500.c: Rebuild.
1834 * features/rs6000/powerpc-e500l.c: Rebuild.
1835 * features/rs6000/powerpc-isa205-32l.c: Rebuild.
1836 * features/rs6000/powerpc-isa205-64l.c: Rebuild.
1837 * features/rs6000/powerpc-isa205-altivec32l.c: Rebuild.
1838 * features/rs6000/powerpc-isa205-altivec64l.c: Rebuild.
1839 * features/rs6000/powerpc-isa205-vsx32l.c: Rebuild.
1840 * features/rs6000/powerpc-isa205-vsx64l.c: Rebuild.
1841 * features/rs6000/powerpc-vsx32.c: Rebuild.
1842 * features/rs6000/powerpc-vsx32l.c: Rebuild.
1843 * features/rs6000/powerpc-vsx64.c: Rebuild.
1844 * features/rs6000/powerpc-vsx64l.c: Rebuild.
1845 * features/rs6000/rs6000.c: Rebuild.
1846 * features/s390-linux32.c: Rebuild.
1847 * features/s390-linux32v1.c: Rebuild.
1848 * features/s390-linux32v2.c: Rebuild.
1849 * features/s390-linux64.c: Rebuild.
1850 * features/s390-linux64v1.c: Rebuild.
1851 * features/s390-linux64v2.c: Rebuild.
1852 * features/s390x-linux64.c: Rebuild.
1853 * features/s390x-linux64v1.c: Rebuild.
1854 * features/s390x-linux64v2.c: Rebuild.
1855 * features/tic6x-c62x-linux.c: Rebuild.
1856 * features/tic6x-c62x.c: Rebuild.
1857 * features/tic6x-c64x-linux.c: Rebuild.
1858 * features/tic6x-c64x.c: Rebuild.
1859 * features/tic6x-c64xp-linux.c: Rebuild.
1860 * features/tic6x-c64xp.c: Rebuild.
1861
1862 2012-07-27 Tom Tromey <tromey@redhat.com>
1863
1864 * c-exp.y (classify_name): Avoid assignment in condition.
1865
1866 2012-07-27 Roland Schwingel <roland.schwingel@onevision.com>
1867
1868 * amd64-windows-tdep.c: Include "frame.h".
1869 (amd64_windows_skip_trampoline_code): New function.
1870 (amd64_windows_init_abi): Add trampoline registration.
1871
1872 2012-07-27 Yao Qi <yao@codesourcery.com>
1873
1874 * tracepoint.c (cur_traceframe_number): Remove.
1875 (set_tfile_traceframe): Remove.
1876 (tfile_trace_find, tfile_fetch_registers): Update callers.
1877 (tfile_xfer_partial, tfile_get_trace_state_variable_value): Likewise.
1878 (tfile_open, tfile_trace_find): Likewise.
1879
1880 2012-07-27 Yao Qi <yao@codesourcery.com>
1881
1882 * thread.c (switch_to_thread): Don't call registers_changed.
1883
1884 2012-07-26 Tom Tromey <tromey@redhat.com>
1885
1886 * Makefile.in (SFILES): Remove objc-exp.y.
1887 (YYFILES): Remove objc-exp.c.
1888 (YYOBJ): Remove objc-exp.o.
1889 (local-maintainer-clean): Don't mention objc-exp.c.
1890 * c-exp.y: Include objc-lang.h.
1891 (%union) <class>: New field.
1892 (NSSTRING, SELECTOR, CLASSNAME, OBJC_LBRAC): New tokens.
1893 (exp): Clone subscript production for OBJC_LBRAC. Add various
1894 Objective C productions.
1895 (msglist, msgarglist, msgarg): New productions.
1896 (array_mod, func_mod, operator): Clone productions for
1897 OBJC_LBRAC.
1898 (parse_string_or_char): Handle '@' strings.
1899 (lex_one_token): Return OBJC_LBRAC. Recognize @selector.
1900 (classify_name): Check la_name_of_this. Recognize ObjC class
1901 names.
1902 * objc-exp.y: Remove.
1903 * objc-lang.c (objc_language_defn): Use c_parse, c_error.
1904 * objc-lang.h (objc_parse, objc_error): Don't declare.
1905
1906 2012-07-26 Markus Metzger <markus.t.metzger@intel.com>
1907
1908 * python/py-inferior.c (infpy_threads): Call update_thread_list ().
1909
1910 2012-07-26 Jan Kratochvil <jan.kratochvil@redhat.com>
1911
1912 * auto-load.c (auto_load_info_scripts): Remove immediate_quit increment
1913 and decrement.
1914
1915 2012-07-26 Tom Tromey <tromey@redhat.com>
1916
1917 * copying.c: Rebuild.
1918 * copying.awk: Don't use immediate_quit. Use 'no_set_class', not
1919 'no_class'.
1920
1921 2012-07-26 Tom Tromey <tromey@redhat.com>
1922
1923 * symmisc.c (print_symbol_bcache_statistics): Use QUIT, not
1924 immediate_quit.
1925 (print_objfile_statistics): Likewise.
1926 (maintenance_print_symbols): Likewise.
1927 (maintenance_print_msymbols): Likewise.
1928 (maintenance_print_objfiles): Likewise.
1929 * psymtab.c (print_partial_symbols): Call QUIT.
1930 (maintenance_print_psymbols): Likewise. Don't modify
1931 immediate_quit.
1932 * copying.c (show_copying_command): Don't modify immediate_quit.
1933 (show_warranty_command): Likewise.
1934 * cli/cli-cmds.c (show_version): Don't modify immediate_quit.
1935
1936 2012-07-26 Keith Seitz <keiths@redhat.com>
1937
1938 * linespec.c (linespec_lexer_lex_number): The input
1939 is also a valid number if the next character is a comma
1940 or colon.
1941
1942 2012-07-26 Joel Brobecker <brobecker@adacore.com>
1943
1944 * NEWS: Document new --enable-libmcheck/--disable-libmcheck
1945 configure options.
1946
1947 2012-07-26 Tristan Gingold <gingold@adacore.com>
1948
1949 * machoread.c: Include gdb_bfd.h.
1950
1951 2012-07-26 Tristan Gingold <gingold@adacore.com>
1952
1953 * dwarf2loc.c (locexpr_describe_location_piece): Use uint64_t for
1954 offset.
1955
1956 2012-07-26 Siddhesh Poyarekar <siddhesh@redhat.com>
1957
1958 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Expand parameter
1959 SIZE to size_t.
1960 (dwarf2_evaluate_loc_desc): Likewise.
1961 (dwarf2_loc_desc_needs_frame): Likewise.
1962 (locexpr_describe_location_1): Likewise.
1963 * dwarf2loc.h (struct dwarf2_locexpr_baton): Make SIZE as
1964 size_t.
1965 (struct dwarf2_loclist_baton): Likewise.
1966 * dwarf2read.c (struct dwarf_block): Likewise.
1967 (dump_die_shallow): Use pulongest to print dwarf_block.size.
1968 (decode_locdesc): Expand SIZE and I to size_t.
1969
1970 2012-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
1971
1972 * contrib/cc-with-tweaks.sh: Put into comment path gdb/contrib/.
1973
1974 2012-07-25 Joel Brobecker <brobecker@adacore.com>
1975
1976 * doublest.c (convert_doublest_to_floatformat): If the exponent
1977 is too small, treat the value as zero. If the exponent is too
1978 large, treat the value as infinity.
1979
1980 2012-07-25 Joel Brobecker <brobecker@adacore.com>
1981
1982 * configure.ac: Add --enable-lmcheck configure option.
1983 * configure: Regenerate.
1984
1985 2012-07-25 Tom Tromey <tromey@redhat.com>
1986
1987 * NEWS: Mention maint info bfds.
1988 * gdb_bfd.c (all_bfds): New global.
1989 (gdb_bfd_ref, gdb_bfd_unref): Update all_bfds.
1990 (print_one_bfd, maintenance_info_bfds, _initialize_gdb_bfd):
1991 New functions.
1992
1993 2012-07-25 Ralf Corsépius <ralf.corsepius@rtems.org>
1994
1995 * configure.tgt: Add v850*-*-rtems*.
1996
1997 2012-07-25 Tom Tromey <tromey@redhat.com>
1998
1999 * macrotab.c (macro_bcache_str): Remove cast.
2000
2001 2012-07-25 Hui Zhu <hui_zhu@mentor.com>
2002
2003 * linespec.c (linespec_lexer_lex_number): Update comments,
2004 change the return and add check to make sure the input is
2005 the decimal numbers.
2006 (linespec_lexer_lex_one): If linespec_lexer_lex_number return
2007 false, call linespec_lexer_lex_string.
2008
2009 2012-07-24 Tom Tromey <tromey@redhat.com>
2010
2011 * symfile.c (symbol_file_add): Don't open BFD twice.
2012
2013 2012-07-24 Marc Khouzam <marc.khouzam@ericsson.com>
2014
2015 * breakpoint.c (create_breakpoint): Store condition for pending
2016 breakpoints.
2017
2018 2012-07-24 Andreas Schwab <schwab@linux-m68k.org>
2019
2020 * m68k-tdep.c (m68k_reg_struct_return_p): Accept complex types.
2021 (m68k_return_value): Handle complex types like structures.
2022 (m68k_svr4_return_value): Likewise.
2023
2024 2012-07-24 Marcus Shawcroft <marcus.shawcroft@arm.com>
2025
2026 * gdb_bfd.c (zlib_decompress_section) <!HAVE_ZLIB_H>: Adjust
2027 parameters to bfd_get_section_name.
2028
2029 2012-07-24 Yao Qi <yao@codesourcery.com>
2030
2031 * cli/cli-setshow.c: Handle case 'var_uinteger'
2032 and 'var_zuninteger' together. Handle case 'var_integer' and
2033 'var_zinteger' together.
2034
2035 2012-07-23 Keith Seitz <keiths@redhat.com>
2036
2037 * linespec.c (convert_linespec_to_sal): Don't add
2038 any symbols to the result vector if symbol_to_sal
2039 returns zero.
2040
2041 2012-07-23 Keith Seitz <keiths@redhat.com>
2042
2043 * linespec.c (decode_objc): Record the function name
2044 in the linespec.
2045
2046 2012-07-23 Tom Tromey <tromey@redhat.com>
2047
2048 * rs6000-nat.c (add_vmap): Rewrite archive loop. Fix reference
2049 counting.
2050 * exec.c (exec_close_1): Unconditionally release vmap's BFD.
2051 (map_vmap): Acquire a reference to the BFD.
2052
2053 2012-07-23 Siddhesh Poyarekar <siddhesh@redhat.com>
2054
2055 * p-valprint.c (pascal_object_print_value): Replace potentially
2056 unsafe alloca with xmalloc/xfree.
2057 * valops.c (search_struct_method): Likewise.
2058
2059 2012-07-23 Tom Tromey <tromey@redhat.com>
2060
2061 * solib-svr4.c (enable_break): Update.
2062 * bfd-target.h (target_bfd_reopen): Update documentation.
2063
2064 2012-07-23 Tom Tromey <tromey@redhat.com>
2065
2066 * symfile.c (separate_debug_file_exists): Update.
2067 (gdb_bfd_open_maybe_remote): Rename from bfd_open_maybe_remote.
2068 (reread_symbols): Update.
2069 * elfread.c (build_id_verify): Update.
2070 * symfile.h (gdb_bfd_open_maybe_remote): Rename from
2071 bfd_open_maybe_remote.
2072
2073 2012-07-23 Tom Tromey <tromey@redhat.com>
2074
2075 * gdb_bfd.c (gdb_bfd_ref, gdb_bfd_unref): Fix comment.
2076
2077 2012-07-23 Tom Tromey <tromey@redhat.com>
2078
2079 * coffread.c (coff_symfile_read): Make a cleanup for 'debugfile'
2080 and 'abfd'.
2081 * elfread.c (elf_symfile_read): Make a cleanup for 'debugfile'
2082 and 'abfd'.
2083 * jit.c (jit_bfd_try_read_symtab): Make a cleanup for 'nbfd'.
2084 * machoread.c (macho_add_oso_symfile): Make a cleanup for
2085 'abfd'.
2086 (macho_symfile_read): Make a cleanup for 'dsym_bfd'.
2087 * objfiles.c (allocate_objfile): Acquire a new reference.
2088 * rs6000-nat.c (add_vmap): Don't acquire a BFD reference.
2089 * solib.c (solib_read_symbols): Don't acquire a BFD reference.
2090 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Make
2091 a cleanup for 'nbfd'.
2092 * symfile-mem.c (symbol_file_add_from_memory): Make a cleanup
2093 for 'nbfd'.
2094 * symfile.c (symbol_file_add_with_addrs_or_offsets): Don't
2095 make a cleanup for 'abfd'.
2096 (symbol_file_add): Make a BFD cleanup.
2097
2098 2012-07-23 Tom Tromey <tromey@redhat.com>
2099
2100 * cli/cli-dump.c (bfd_openr_with_cleanup): Use gdb_bfd_openr.
2101 (bfd_openw_with_cleanup): Use gdb_bfd_openw.
2102 * corelow.c (core_open): Use gdb_bfd_fopen.
2103 * dsrec.c (load_srec): Use gdb_bfd_openr.
2104 * exec.c (exec_file_attach): Use gdb_bfd_fopen.
2105 * gcore.c (gcore_memory_sections): Use gdb_bfd_openw.
2106 * gdb_bfd.c (gdb_bfd_fopen, gdb_bfd_openr, gdb_bfd_openw)
2107 (gdb_bfd_openr_iovec, gdb_bfd_openr_next_archived_file)
2108 (gdb_bfd_fdopenr): New functions.
2109 * gdb_bfd.h (gdb_bfd_fopen, gdb_bfd_openr, gdb_bfd_openw)
2110 (gdb_bfd_openr_iovec, gdb_bfd_openr_next_archived_file)
2111 (gdb_bfd_fdopenr): Declare.
2112 * jit.c (bfd_open_from_target_memory): Use gdb_bfd_openr_iovec.
2113 * m32-rom.c (m32r_load, m32r_upload_command): Use gdb_bfd_openr.
2114 * machoread.c (macho_symfile_read_all_oso): Use gdb_bfd_openr,
2115 gdb_bfd_openr_next_archived_file.
2116 (macho_check_dsym): Use gdb_bfd_openr.
2117 (macho_add_oso_symfile): Don't call gdb_bfd_stash_filename.
2118 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_fdopenr.
2119 * remote-m32r-sdi.c (m32r_load): Use gdb_bfd_openr.
2120 * remote-mips.c (mips_load_srec, pmon_load_fast): Use
2121 gdb_bfd_openr.
2122 * remote.c (remote_bfd_open): Use gdb_bfd_openr_iovec.
2123 * rs6000-nat.c (add_vmap): Use gdb_bfd_openr, gdb_bfd_fdopenr,
2124 gdb_bfd_openr_next_archived_file.
2125 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
2126 Use gdb_bfd_openr.
2127 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
2128 gdb_bfd_openr.
2129 * solib-spu.c (spu_bfd_fopen): Use gdb_bfd_openr_iovec.
2130 * solib.c (solib_bfd_fopen): Use gdb_bfd_fopen.
2131 * spu-linux-nat.c (spu_bfd_open): Use gdb_bfd_openr_iovec.
2132 * symfile.c (bfd_open_maybe_remote): Use gdb_bfd_openr.
2133 (symfile_bfd_open): Use gdb_bfd_fopen.
2134 (generic_load): Use gdb_bfd_openr.
2135 * windows-nat.c (windows_make_so): Use gdb_bfd_openr.
2136
2137 2012-07-23 Tom Tromey <tromey@redhat.com>
2138
2139 * bfd-target.c (target_bfd_reopen): Update.
2140 * cli/cli-dump.c (bfd_openr_with_cleanup)
2141 (bfd_openw_with_cleanup): Update.
2142 * corelow.c (core_open): Update.
2143 * dsrec.c (load_srec): Update.
2144 * exec.c (exec_file_attach): Update.
2145 * gcore.c (create_gcore_bfd): Update.
2146 * gdb_bfd.c (gdb_bfd_ref): Return void.
2147 (gdb_bfd_open): Update.
2148 * gdb_bfd.h (gdb_bfd_ref): Return void.
2149 Update comments.
2150 * jit.c (jit_bfd_try_read_symtab): Update.
2151 * m32r-rom.c (m32r_load, m32r_upload_command): Update.
2152 * machoread.c (macho_symfile_read_all_oso): Update.
2153 (macho_check_dsym): Update.
2154 * procfs.c (insert_dbx_link_bpt_in_file): Update.
2155 * remote-m32r-sdi.c (m32r_load): Update.
2156 * remote-mips.c (mips_load_srec, pmon_load_fast): Update.
2157 * rs6000-nat.c (add_vmap): Update.
2158 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
2159 Update.
2160 * solib-pa64.c (pa64_solib_create_inferior_hook): Update.
2161 * solib-spu.c (spu_bfd_open): Update.
2162 * solib.c (solib_bfd_fopen, solib_read_symbols): Update.
2163 * spu-linux-nat.c (spu_bfd_open): Update.
2164 * symfile.c (bfd_open_maybe_remote, symfile_bfd_open)
2165 (generic_load): Update.
2166 * windows-nat.c (windows_make_so): Update.
2167
2168 2012-07-22 Siddhesh Poyarekar <siddhesh@redhat.com>
2169
2170 * sh-tdep.c (sh_treat_as_flt_p): Remove unused variable LEN.
2171
2172 2012-07-20 Jeff Kenton <jkenton@tilera.com>
2173
2174 * tilegx-linux-tdep.c (tilegx_linux_sigframe_init): Fix
2175 SIGTRAMP_FRAME unwinding.
2176
2177 2012-07-20 Doug Evans <dje@google.com>
2178
2179 * NEWS: Document new options "set/show use-deprecated-index-sections",
2180 and delete reference to --use-deprecated-index-sections.
2181 * symfile.h (use_deprecated_index_sections): Delete.
2182 * dwarf2read.c (use_deprecated_index_sections): Make static.
2183 (read_index_from_section): Update wording of how to load
2184 deprecated index sections.
2185 (_initialize_dwarf2_read): New options
2186 "set/show use-deprecated-index-sections".
2187 * main.c (captured_main): Delete --use-deprecated-index-sections.
2188
2189 2012-07-20 Pedro Alves <palves@redhat.com>
2190
2191 PR threads/11692
2192 PR gdb/12203
2193
2194 * infrun.c (handle_inferior_event) <new thread>: Don't special
2195 case minus_one_ptid.
2196 <TARGET_WAITKIND_SPURIOUS>: Ditto.
2197 * linux-thread-db.c (thread_get_info_callback): Don't return early
2198 if the thread is zombie.
2199 (thread_from_lwp): Change return type to void. Rewrite stale
2200 comment.
2201 (attach_thread): Don't return early if the thread is zombie,
2202 instead set its "dying" flag.
2203 (thread_db_wait): Don't return TARGET_WAITKIND_SPURIOUS anymore.
2204 (find_new_threads_callback): Don't return early if the thread is
2205 zombie.
2206
2207 2012-07-20 Pedro Alves <palves@redhat.com>
2208
2209 * linux-nat.c (linux_nat_wait): Dump the passed in target options.
2210 * target.c (target_wait): Likewise.
2211 (str_comma_list_concat_elem, do_option, target_options_to_string):
2212 New functions.
2213 * target.h (target_options_to_string): Declare.
2214
2215 2012-07-20 Jan Kratochvil <jan.kratochvil@redhat.com>
2216 Tom Tromey <tromey@redhat.com>
2217
2218 * dwarf2read.c (dwarf_decode_macros)
2219 <DW_MACRO_GNU_define_indirect_alt, DW_MACRO_GNU_undef_indirect_alt,
2220 DW_MACRO_GNU_transparent_include_alt>: New cases.
2221 (dwarf_decode_macro_bytes) <DW_MACRO_GNU_define_indirect,
2222 DW_MACRO_GNU_undef_indirect>: Examine 'section_is_dwz'.
2223
2224 2012-07-20 Tom Tromey <tromey@redhat.com>
2225
2226 * dwarf2read.c (try_open_dwo_file): Don't call
2227 gdb_bfd_stash_filename.
2228
2229 2012-07-20 Pedro Alves <palves@redhat.com>
2230
2231 * i386-tdep.c (i386_record_modrm, i386_record_lea_modrm_addr)
2232 (i386_record_lea_modrm, i386_record_push, i386_record_floats)
2233 (i386_process_record): Tweak description comments.
2234
2235 2012-07-20 Pedro Alves <palves@redhat.com>
2236
2237 * i386-tdep.c (i386_record_modrm, i386_record_lea_modrm_addr)
2238 (i386_process_record): Use record_read_memory.
2239 * record.c (record_read_memory): New function.
2240 (record_arch_list_add_mem, record_exec_insn): Use
2241 record_read_memory.
2242 * record.h (record_read_memory): Declare.
2243
2244 2012-07-20 Yao Qi <yao@codesourcery.com>
2245
2246 * cli/cli-setshow.c (do_setshow_command): Don't check pointer is
2247 NULL for xfree.
2248
2249 2012-07-19 Pedro Alves <palves@redhat.com>
2250
2251 * record.c (record_resume): Ask the target beneath to report all
2252 signals.
2253
2254 2012-07-19 Doug Evans <dje@google.com>
2255
2256 * dwarf2read.c (dwarf2_ranges_read): Ignore ranges starting at zero if
2257 there's no section at address zero.
2258 (dwarf2_record_block_ranges): Ditto.
2259
2260 2012-07-19 Yao Qi <yao@codesourcery.com>
2261
2262 * command.h, remote.c: Fix a typo in comment.
2263
2264 2012-07-19 Tom Tromey <tromey@redhat.com>
2265
2266 PR exp/13206:
2267 * ax-gdb.c (gen_expr) <OP_TYPEOF, OP_DECLTYPE>: New cases.
2268 * breakpoint.c (watchpoint_exp_is_const) <OP_TYPEOF,
2269 OP_DECLTYPE>: New cases.
2270 * c-exp.y (TYPEOF, DECLTYPE): New tokens.
2271 (type_exp): Add new productions.
2272 (ident_tokens): Add __typeof__, typeof, __typeof, __decltype,
2273 and decltype.
2274 * eval.c (evaluate_subexp_standard) <OP_TYPEOF, OP_DECLTYPE>:
2275 New case.
2276 * expprint.c (dump_subexp_body_standard) <OP_TYPEOF,
2277 OP_DECLTYPE>: New case.
2278 * parse.c (operator_length_standard) <OP_TYPEOF, OP_DECLTYPE>:
2279 New case.
2280 * std-operator.def (OP_TYPEOF, OP_DECLTYPE): New constants.
2281 * varobj.c (varobj_create): Handle OP_TYPEOF, OP_DECLTYPE.
2282
2283 2012-07-19 Tom Tromey <tromey@redhat.com>
2284
2285 * c-exp.y (enum token_flags): New.
2286 (struct token) <cxx_only>: Remove.
2287 <flags>: New field.
2288 (tokentab3, tokentab2, ident_tokens): Update.
2289 (lex_one_token): Update. Handle FLAG_SHADOW.
2290
2291 2012-07-19 Tom Tromey <tromey@redhat.com>
2292
2293 * ax-gdb.c (gen_expr): Handle UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE.
2294 * breakpoint.c (watchpoint_exp_is_const): Handle UNOP_CAST_TYPE,
2295 UNOP_REINTERPRET_CAST, UNOP_DYNAMIC_CAST.
2296 * c-exp.y (exp): Emit UNOP_MEMVAL_TYPE, UNOP_CAST_TYPE. Update
2297 for changes to UNOP_REINTERPRET_CAST, UNOP_DYNAMIC_CAST. Use
2298 type_exp production where appropriate.
2299 * eval.c (evaluate_subexp_standard) <UNOP_CAST_TYPE>: New case.
2300 <UNOP_DYNAMIC_CAST, UNOP_REINTERPRET_CAST>: Update.
2301 <UNOP_MEMVAL_TYPE>: New case.
2302 (evaluate_subexp_for_address) <UNOP_MEMVAL_TYPE>: New case.
2303 (evaluate_subexp_for_sizeof) <UNOP_MEMVAL_TYPE>: New case.
2304 * expprint.c (print_subexp_standard) <UNOP_CAST_TYPE>: New case.
2305 <UNOP_MEMVAL_TYPE>: New case.
2306 (dump_subexp_body_standard) <UNOP_DYNAMIC_CAST,
2307 UNOP_REINTERPRET_CAST>: Update.
2308 <UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE>: New cases.
2309 * parse.c (operator_length_standard) <UNOP_DYNAMIC_CAST,
2310 UNOP_REINTERPRET_CAST>: Update.
2311 <UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE>: New cases.
2312 * stack.c (return_command): Also check for UNOP_CAST_TYPE.
2313 * std-operator.def (UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE): New
2314 constants.
2315
2316 2012-07-19 Yao Qi <yao@codesourcery.com>
2317 Jan Kratochvil <jan.kratochvil@redhat.com>
2318
2319 * cli/cli-setshow.c (do_setshow_command): Handle case 'var_filename'
2320 and case 'var_optional_filename' together.
2321 * infcmd.c (_initialize_infcmd): Call add_setshow_string_noescape_cmd
2322 instead of add_setshow_optional_filename_cmd for setshow command
2323 'args'. Set completer for 'set args'.
2324
2325 2012-07-18 Doug Evans <dje@google.com>
2326
2327 * common/gdb_vecs.h: Moved here from ./gdb_vecs.h.
2328 * common/gdb_vecs.c: New file, contents from utils.c.
2329 * common/host-defs.h: New file, contents from defs.h.
2330 * utils.h: New file, contents from defs.h.
2331 * defs.h: Move all declarations of objects defined in utils.c
2332 to utils.h (except QUIT() and related).
2333 #include "utils.h", "host-defs.h".
2334 * probe.h (probe_p): Move here from gdb_vecs.h.
2335 * symfile.c: #include "probe.h" instead of "gdb_vecs.h".
2336 * utils.c (free_char_ptr_vec): Moved to common/gdb_vecs.c.
2337 (dirnames_to_char_ptr_vec_append, dirnames_to_char_ptr_vec): Ditto.
2338 * Makefile.in (SFILES): Add common/gdb_vecs.c.
2339 (HFILES_NO_SRCDIR): Add common/gdb_vecs.h, common/host-defs.h, utils.h.
2340 (COMMON_OBS): Add gdb_vecs.o.
2341 (gdb_vecs.o): New rule.
2342
2343 2012-07-18 Keith Seitz <keiths@redhat.com>
2344
2345 * linespec.c (add_sal_to_sals): Add LITERAL_CANONICAL
2346 parameter. If non-zero, use SYMNAME as the canonical name
2347 for the SaL.
2348 Update all callers.
2349 (convert_linespec_to_sals): Use add_sal_to_sals for
2350 expressions, too.
2351 (decode_line_full): No need to "fill in missing canonical names"
2352 anymore. Simply make cleanups for the allocated names.
2353
2354 2012-07-18 Keith Seitz <keiths@redhat.com>
2355
2356 * linespec.c (struct linespec): Constify expression,
2357 source_filename, function_name, and label_name.
2358 (symbol_not_found_error): Make all parameters const.
2359 (linespec_parser_delete): No need to check for NULL
2360 when using xfree. Cast const char * to char * for xfree.
2361
2362 2012-07-18 Keith Seitz <keiths@redhat.com>
2363
2364 * breakpoint.c (invalid_thread_id_error): New function.
2365 (find_condition_and_thread): Use invalid_thread_id_error.
2366 (watch_command_1): Likewise.
2367
2368 2012-07-18 Tom Tromey <tromey@redhat.com>
2369
2370 * cc-with-index.sh, cc-with-dwz.sh: Remove.
2371 * contrib/cc-with-tweaks.sh: New file.
2372
2373 2012-07-18 Tom Tromey <tromey@redhat.com>
2374
2375 * dwarf2read.c (struct dwz_file) <gdb_index>: New field.
2376 (locate_dwz_sections): Recognize .gdb_index.
2377 (create_cus_from_index_list): New function.
2378 (create_cus_from_index): Use it. Handle .dwz data.
2379 (read_index_from_section): New function, extracted from
2380 dwarf2_read_index.
2381 (dwarf2_read_index): Use it. Read .gdb_index from dwz file,
2382 if needed.
2383
2384 2012-07-18 Tom Tromey <tromey@redhat.com>
2385
2386 * dwarf2read.c (struct dwarf2_per_objfile) <dwz_file>: New field.
2387 (struct dwarf2_per_cu_data) <length>: No longer bitfield.
2388 <is_dwz>: New field.
2389 (struct dwz_file): New.
2390 (struct partial_die_info) <is_dwz, spec_is_dwz>: New fields.
2391 (locate_dwz_sections, dwarf2_get_dwz_file)
2392 (get_abbrev_section_for_cu): New functions.
2393 (error_check_comp_unit_head, read_and_check_comp_unit_head)
2394 (read_and_check_type_unit_head): Add abbrev_section argument.
2395 (create_debug_types_hash_table): Update.
2396 (init_cutu_and_read_dies): Use proper abbrev section.
2397 (init_cutu_and_read_dies_no_follow): Likewise.
2398 (set_partial_user): Do nothing if PST==NULL.
2399 (read_comp_units_from_section): New function.
2400 (create_all_comp_units): Use it.
2401 (scan_partial_symbols, partial_die_parent_scope): Update.
2402 (skip_one_die): Handle DW_FORM_GNU_ref_alt, DW_FORM_GNU_strp_alt.
2403 (process_imported_unit_die, read_partial_die): Handle .dwz files.
2404 (find_partial_die): Add offset_in_dwz argument. Update.
2405 (guess_partial_die_structure_name, fixup_partial_die): Update.
2406 (read_attribute_value): Handle DW_FORM_GNU_ref_alt,
2407 DW_FORM_GNU_strp_alt.
2408 (read_indirect_string_from_dwz): New function.
2409 (dwarf2_const_value_attr): Handle DW_FORM_GNU_strp_alt.
2410 (dump_die_shallow): Handle DW_FORM_GNU_ref_alt, DW_FORM_GNU_strp_alt.
2411 (is_ref_attr): Handle DW_FORM_GNU_ref_alt.
2412 (follow_die_offset): Add offset_in_dwz argument.
2413 (follow_die_ref, dwarf2_fetch_die_location_block): Update.
2414 (skip_form_bytes): Handle DW_FORM_GNU_strp_alt.
2415 (dwarf_decode_macro_bytes): Add section_is_dwz argument.
2416 Handle new macro forms.
2417 (dwarf_decode_macros): Update.
2418 (dwarf2_find_containing_comp_unit): Add offset_in_dwz argument.
2419 (dwarf2_per_objfile_free): Unref dwz_bfd, if it exists
2420 (lookup_die_type): Handle DW_FORM_GNU_ref_alt.
2421 (create_debug_types_hash_table): Use correct abbrev section.
2422 (get_debug_line_section): New function.
2423 (dwarf_decode_line_header, dwarf_decode_lines_1): Use it.
2424 (process_full_comp_unit): Pass 'required' argument to
2425 end_symtab_get_static_block.
2426 * buildsym.h (end_symtab_get_static_block): Update.
2427 * buildsym.c (end_symtab_get_static_block): Add 'required'
2428 argument.
2429 (end_symtab, end_expandable_symtab): Update.
2430
2431 2012-07-18 Tom Tromey <tromey@redhat.com>
2432
2433 * dwarf2read.c: Don't include zlib.h or sys/mman.h.
2434 (pagesize): Remove.
2435 (struct dwarf2_section_info) <map_addr, map_len>: Remove.
2436 (zlib_decompress_section): Remove.
2437 (dwarf2_read_section): Use gdb_bfd_map_section.
2438 (munmap_section_buffer): Remove.
2439 (free_dwo_file, dwarf2_per_objfile_free): Don't use
2440 munmap_section_buffer.
2441 * gdb_bfd.c: Include zlib.h, sys/mman.h.
2442 (struct gdb_bfd_section_data): New.
2443 (free_one_bfd_section): New function.
2444 (gdb_bfd_close_or_warn): Use free_one_bfd_section.
2445 (get_section_descriptor, zlib_decompress_section)
2446 (gdb_bfd_map_section): New functions.
2447 * gdb_bfd.h (gdb_bfd_map_section): Declare.
2448
2449 2012-07-18 Tom Tromey <tromey@redhat.com>
2450
2451 * dwarf2read.c (try_open_dwo_file): use gdb_bfd_open.
2452
2453 2012-07-18 Tom Tromey <tromey@redhat.com>
2454
2455 * gdb_bfd.c (struct gdb_bfd_data): New.
2456 (gdb_bfd_cache): New global.
2457 (struct gdb_bfd_cache_search): New.
2458 (hash_bfd, eq_bfd, gdb_bfd_open): New functions.
2459 (gdb_bfd_ref, gdb_bfd_unref): Use gdb_bfd_data.
2460 * gdb_bfd.h (gdb_bfd_open): Declare.
2461
2462 2012-07-18 Tom Tromey <tromey@redhat.com>
2463
2464 * utils.c (make_cleanup_bfd_unref): Rename from
2465 make_cleanup_bfd_close.
2466 * defs.h (make_cleanup_bfd_unref): Rename from
2467 make_cleanup_bfd_close.
2468 * cli/cli-dump.c (bfd_openr_with_cleanup): Update.
2469 (bfd_openw_with_cleanup): Update.
2470 * corelow.c (core_open): Update.
2471 * dsrec.c (load_srec): Update.
2472 * m32r-rom.c (m32r_load, m32r_upload_command): Update.
2473 * remote-m32r-sdi.c (m32r_load): Update.
2474 * remote-mips.c (mips_load_srec): Update.
2475 (pmon_load_fast): Update.
2476 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
2477 Update.
2478 (darwin_bfd_open): Update.
2479 * solib.c (solib_bfd_fopen): Update.
2480 * symfile-mem.c (symbol_file_add_from_memory): Update.
2481 * symfile.c (symbol_file_add_with_addrs_or_offsets): Update.
2482 (symfile_bfd_open): Update.
2483 (generic_load): Update.
2484
2485 2012-07-18 Tom Tromey <tromey@redhat.com>
2486
2487 * remote-mips.c (mips_load_srec): Use make_cleanup_bfd_close.
2488 (pmon_load_fast): Likewise.
2489 * m32r-rom.c (m32r_load): Use make_cleanup_bfd_close.
2490 (m32r_upload_command): Likewise.
2491 * dsrec.c (load_srec): Use make_cleanup_bfd_close.
2492 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
2493 Use make_cleanup_bfd_close.
2494
2495 2012-07-18 Tom Tromey <tromey@redhat.com>
2496
2497 * symfile.c (symfile_bfd_open): Don't copy name. Call
2498 gdb_bfd_stash_filename.
2499 (load_command): Open the new BFD before freeing the old.
2500 (bfd_open_maybe_remote): Call gdb_bfd_stash_filename.
2501 * symfile-mem.c (symbol_file_add_from_memory): Don't copy name.
2502 Call gdb_bfd_stash_filename.
2503 * spu-linux-nat.c (spu_bfd_open): Don't copy name.
2504 * solib-spu.c (spu_bfd_fopen): Don't copy name. Call
2505 gdb_bfd_stash_filename.
2506 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
2507 Free found_pathname.
2508 * rs6000-nat.c (add_vmap): Don't copy filename. Call
2509 gdb_bfd_stash_filename.
2510 * remote.c (remote_bfd_open): Call gdb_bfd_stash_filename.
2511 * machoread.c (macho_add_oso_symfile): Call
2512 gdb_bfd_stash_filename.
2513 (macho_symfile_read_all_oso): Arrange to free archive_name. Call
2514 gdb_bfd_stash_filename.
2515 (macho_check_dsym): Don't copy filename. Call
2516 gdb_bfd_stash_filename.
2517 * jit.c (bfd_open_from_target_memory): Don't copy the filename.
2518 * gdb_bfd.c (gdb_bfd_stash_filename): New function.
2519 * gdb_bfd.h (gdb_bfd_stash_filename): Declare.
2520 * gcore.c (create_gcore_bfd): Call gdb_bfd_stash_filename.
2521 * exec.c (exec_close): Don't free the BFD's filename.
2522 (exec_file_attach): Don't copy the filename. Call
2523 gdb_bfd_stash_filename.
2524 * corelow.c (core_close): Don't free the BFD's filename.
2525 (core_open): Call gdb_bfd_stash_filename.
2526 * corefile.c (reopen_exec_file): Remove #if 0 code.
2527 * solib.c (solib_bfd_fopen): Call gdb_bfd_stash_filename. Free
2528 pathname.
2529 * dwarf2read.c (try_open_dwo_file): Call gdb_bfd_stash_filename.
2530
2531 2012-07-18 Tom Tromey <tromey@redhat.com>
2532
2533 * dwarf2read.c (try_open_dwo_file): Use gdb_bfd_ref and
2534 gdb_bfd_unref.
2535 (free_dwo_file): Use gdb_bfd_unref.
2536 * cli/cli-dump.c: Include gdb_bfd.h.
2537 (bfd_openw_with_cleanup): Use gdb_bfd_ref.
2538 (bfd_openr_with_cleanup): Likewise.
2539 * windows-nat.c (windows_make_so): Use gdb_bfd_ref,
2540 gdb_bfd_unref.
2541 * utils.c: Include gdb_bfd.h.
2542 (do_bfd_close_cleanup): Use gdb_bfd_unref.
2543 * symfile.c: Include gdb_bfd.h.
2544 (separate_debug_file_exists): Use gdb_bfd_unref.
2545 (bfd_open_maybe_remote): Use gdb_bfd_ref.
2546 (symfile_bfd_open): Use gdb_bfd_ref, gdb_bfd_unref.
2547 (generic_load): Use gdb_bfd_ref.
2548 (reread_symbols): Use gdb_bfd_unref.
2549 * symfile-mem.c: Include gdb_bfd.h.
2550 (symbol_file_add_from_memory): Use make_cleanup_bfd_close.
2551 * spu-linux-nat.c (spu_bfd_open): Use gdb_bfd_ref, gdb_bfd_unref.
2552 * solib.c: Include gdb_bfd.h.
2553 (solib_bfd_fopen): Use gdb_bfd_ref.
2554 (solib_bfd_open): Use gdb_bfd_unref.
2555 (free_so_symbols): Use gdb_bfd_unref.
2556 (reload_shared_libraries_1): Use gdb_bfd_unref.
2557 * solib-spu.c: Include gdb_bfd.h.
2558 (spu_bfd_fopen): Use gdb_bfd_ref, gdb_bfd_unref.
2559 * solib-pa64.c (pa64_solib_create_inferior_hook): Use gdb_bfd_ref,
2560 gdb_bfd_unref.
2561 * solib-frv.c: Include gdb_bfd.h.
2562 (enable_break2): Use gdb_bfd_unref.
2563 * solib-dsbt.c: Include gdb_bfd.h.
2564 (enable_break2): Use gdb_bfd_unref.
2565 * solib-darwin.c: Include gdb_bfd.h.
2566 (darwin_solib_get_all_image_info_addr_at_init): Use gdb_bfd_ref,
2567 gdb_bfd_unref.
2568 (darwin_bfd_open): Use gdb_bfd_unref.
2569 * rs6000-nat.c (add_vmap): Use gdb_bfd_ref, gdb_bfd_unref.
2570 * remote-mips.c: Include gdb_bfd.h.
2571 (mips_load_srec): Use gdb_bfd_ref.
2572 (pmon_load_fast): Use gdb_bfd_ref.
2573 * remote-m32r-sdi.c: Include gdb_bfd.h.
2574 (m32r_load): Use gdb_bfd_ref.
2575 * record.c: Include gdb_bfd.h.
2576 (record_save_cleanups): Use gdb_bfd_unref.
2577 (cmd_record_save): Use gdb_bfd_unref.
2578 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_ref,
2579 gdb_bfd_unref.
2580 * objfiles.h (gdb_bfd_close_or_warn): Remove.
2581 (gdb_bfd_ref, gdb_bfd_unref): Move to gdb_bfd.h.
2582 * objfiles.c: Include gdb_bfd.h.
2583 (free_objfile): Use gdb_bfd_unref.
2584 (gdb_bfd_close_or_warn, gdb_bfd_ref, gdb_bfd_unref): Move to
2585 gdb_bfd.c.
2586 * machoread.c (macho_add_oso_symfile): Use gdb_bfd_unref.
2587 (macho_symfile_read_all_oso): Use gdb_bfd_ref, gdb_bfd_unref.
2588 (macho_check_dsym): Likewise.
2589 * m32r-rom.c: Include gdb_bfd.h.
2590 (m32r_load): Use gdb_bfd_ref.
2591 (m32r_upload_command): Use gdb_bfd_ref.
2592 * jit.c: Include gdb_bfd.h.
2593 (jit_bfd_try_read_symtab): Use gdb_bfd_ref, gdb_bfd_unref.
2594 * gdb_bfd.h: New file.
2595 * gdb_bfd.c: New file.
2596 * gcore.c: Include gdb_bfd.h.
2597 (create_gcore_bfd): Use gdb_bfd_ref.
2598 (do_bfd_delete_cleanup): Use gdb_bfd_unref.
2599 (gcore_command): Use gdb_bfd_unref.
2600 * exec.c: Include gdb_bfd.h.
2601 (exec_close): Use gdb_bfd_unref.
2602 (exec_close_1): Use gdb_bfd_unref.
2603 (exec_file_attach): Use gdb_bfd_ref.
2604 * elfread.c: Include gdb_bfd.h.
2605 (build_id_verify): Use gdb_bfd_unref.
2606 * dsrec.c: Include gdb_bfd.h.
2607 (load_srec): Use gdb_bfd_ref.
2608 * corelow.c: Include gdb_bfd.h.
2609 (core_close): Use gdb_bfd_unref.
2610 (core_open): Use gdb_bfd_ref.
2611 * bfd-target.c: Include gdb_bfd.h.
2612 (target_bfd_xclose): Use gdb_bfd_unref.
2613 (target_bfd_reopen): Use gdb_bfd_ref.
2614 * Makefile.in (SFILES): Add gdb_bfd.c.
2615 (HFILES_NO_SRCDIR): Add gdb_bfd.h.
2616 (COMMON_OBS): Add gdb_bfd.o.
2617
2618 2012-07-18 Keith Seitz <keiths@redhat.com>
2619
2620 * breakpoint.c (find_condition_and_thread): Initialize
2621 TASK and REST.
2622 (create_breakpiont): find_condition_and_thread will now
2623 initialize COND_STRING, THREAD, and REST (and TASK).
2624 (addr_string_to_sals): Likewise.
2625
2626 2012-07-18 Pedro Alves <palves@redhat.com>
2627
2628 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_NO_HISTORY>:
2629 Pull the single step breakpoints out of the target.
2630
2631 2012-07-18 Sergio Durigan Junior <sergiodj@redhat.com>
2632
2633 * probe.c (probe_safe_evaluate_at_pc): Rename variable `n_probes'.
2634 * stap-probe.c (compile_probe_arg): Likewise.
2635
2636 2012-07-18 Sergio Durigan Junior <sergiodj@redhat.com>
2637
2638 * elfread.c (elf_get_probe_argument_count): Remove `objfile' argument.
2639 (elf_compile_to_ax): Likewise.
2640 * infrun.c (insert_exception_resume_from_probe): Likewise.
2641 (check_exception_resume): Remove `objfile' variable.
2642 * probe.c (find_probe_by_pc): Remove `objfile' argument.
2643 (struct probe_and_objfile, probe_and_objfile_s): Delete.
2644 (collect_probes): Adjust return value to `VEC (probe_p) *'.
2645 (compare_entries): Rename to...
2646 (compare_probes): ...this. Adjust function to work with
2647 `struct probe *'. Rename variables `ea' and `eb' to `pa' and `pb'
2648 respectively.
2649 (gen_ui_out_table_header_info): Adjust `probes' argument to be
2650 `VEC (probe_p) *'.
2651 (print_ui_out_info): Adjust argument to be `struct probe *'.
2652 (info_probes_for_ops): Adjust internal computations to use
2653 `VEC (probe_p) *'.
2654 (probe_safe_evaluate_at_pc): Refactor to not pass `objfile' anymore.
2655 * probe.h (struct probe_ops) <get_probe_argument_count, compile_to_ax,
2656 gen_info_probes_table_values>: Remove `objfile' argument.
2657 (struct probe) <objfile>: New field.
2658 (find_probe_by_pc): Remove `objfile' argument.
2659 * stap-probe.c (stap_parse_probe_arguments): Likewise.
2660 (stap_get_probe_argument_count): Likewise.
2661 (stap_get_arg): Likewise.
2662 (stap_evaluate_probe_argument): Likewise.
2663 (stap_compile_to_ax): Likewise.
2664 (compile_probe_arg): Refactor not to pass `objfile' anymore.
2665 (handle_stap_probe): Fill `objfile' field from `struct probe'.
2666 (stap_gen_info_probes_table_header): Remove `objfile' argument.
2667 * symfile.h (struct sym_probe_fns) <sym_evaluate_probe_argument,
2668 sym_compile_to_ax>: Likewise.
2669
2670 2012-07-18 Terry Guo <terry.guo@arm.com>
2671
2672 PR 14329
2673 * defs.h (GDB_MI_MSG_WIDTH): New.
2674 * ser_base (ser_base_read_error_fd): New function.
2675 (do_ser_base_readchar): Poll error file descriptor as well as
2676 standard output.
2677 (generic_readchar): Refactor error handling.
2678
2679 2012-07-18 Joel Brobecker <brobecker@adacore.com>
2680
2681 * NEWS: Create a new section for the next release branch.
2682 Rename the section of the current branch, now that it has
2683 been cut.
2684
2685 2012-07-18 Joel Brobecker <brobecker@adacore.com>
2686
2687 GDB 7.5 branch created (branch timestamp: 2012-07-18 03:22 UTC)
2688 * version.in: Bump version to 7.5.50.20120718-cvs.
2689
2690 2012-07-17 Keith Seitz <keiths@redhat.com>
2691
2692 * linespec.c (linespec_parse_line_offset): Make parameter
2693 const.
2694
2695 2012-07-16 Jan Kratochvil <jan.kratochvil@redhat.com>
2696
2697 PR 11914
2698 * f-valprint.c (info_common_command): New variable frame_id.
2699 Reinitialize FI form FRAME_ID after each print_variable_and_value.
2700 * printcmd.c (print_variable_and_value): Extend function comment.
2701 Add comment for invalidated FRAME.
2702 * stack.c (backtrace_command_1): New variable frame_id. Reinitialize
2703 FI form FRAME_ID after each print_frame_local_vars.
2704 (struct print_variable_and_value_data): Change frame to frame_id.
2705 (do_print_variable_and_value): New variable frame, initialize it from
2706 p->frame_id. Add comment for invalidated FRAME.
2707 (print_frame_local_vars, print_frame_arg_vars): New function comment.
2708 Update CB_DATA.FRAME to CB_DATA.FRAME_ID initialization. Add comment
2709 for invalidated FRAME.
2710
2711 2012-07-16 Marc Khouzam <marc.khouzam@ericsson.com>
2712 Pedro Alves <palves@redhat.com>
2713
2714 * linux-nat.c (linux_nat_detach): Don't unregister from the event
2715 loop.
2716
2717 2012-07-16 Tom Tromey <tromey@redhat.com>
2718
2719 * jv-typeprint.c (c_type_print_varspec_suffix): Don't declare.
2720
2721 2012-07-15 Doug Evans <dje@google.com>
2722
2723 * dwarf2read.c (stmt_list_hash): New struct.
2724 (type_unit_group): Embed "per_cu" member, remove pointer.
2725 New union member "t", move member "tus" into it, all uses updated.
2726 New member "hash", replaces member "line_offset, all uses updated.
2727 (quick_file_names): Replace member "offset" with "hash", all uses
2728 updated.
2729 (hash_stmt_list_entry, eq_stmt_list_entry): New functions.
2730 (hash_file_name_entry, eq_file_name_entry): Call them.
2731 (hash_type_unit_group, eq_type_unit_group): Ditto.
2732 (dw2_get_cu, dw2_get_primary_cu): Replace assert with a better one.
2733 (dw2_get_file_names_reader): Fix file name table calculation for TUs.
2734 (dw2_get_file_names): Update.
2735 (create_type_unit_group): Replace "per_cu" arg with "cu".
2736 All callers updated. Fix "quick" (.gdb_index) handling.
2737 (get_type_unit_group): Replace "per_cu" arg with "cu".
2738 All callers updated.
2739 (build_type_unit_groups): Don't reset tu_stats.
2740
2741 * symtab.c (filename_seen_cache): Delete members "tab_alloc_size",
2742 "tab_cur_size". Change member "tab" to be a htab_t.
2743 (create_filename_seen_cache): Update.
2744 (clear_filename_seen_cache, delete_filename_seen_cache): Update.
2745 (filename_seen): Update.
2746
2747 2012-07-13 Doug Evans <dje@google.com>
2748
2749 * symtab.c (filename_seen): Update comment.
2750
2751 2012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2752 Doug Evans <dje@google.com>
2753
2754 * buildsym.c (end_symtab_1): Split it to ...
2755 (end_symtab_get_static_block): ... this ...
2756 (end_symtab_from_static_block): ... and this function.
2757 (end_symtab, end_expandable_symtab): Call them.
2758 * buildsym.h (end_symtab_get_static_block)
2759 (end_symtab_from_static_block): New declarations.
2760 * dwarf2read.c (process_full_comp_unit): New variable static_block.
2761 Set its valid CU ranges.
2762
2763 2012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2764
2765 * dwarf2loc.c (disassemble_dwarf_expression): Handle
2766 DW_OP_GNU_parameter_ref.
2767
2768 2012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2769
2770 * dwarf2read.c (read_call_site_scope): Do not gdb_assert for invalid
2771 read-in CALL_SITE_PARAMETER_PARAM_OFFSET.
2772
2773 2012-07-13 Doug Evans <dje@google.com>
2774
2775 * symtab.c (output_source_filename): Delete unnecessary forward decl.
2776 (filename_seen_cache): New struct.
2777 (INITIAL_FILENAME_SEEN_CACHE_SIZE): New macro.
2778 (create_filename_seen_cache): New function.
2779 (clear_filename_seen_cache, delete_filename_seen_cache): New functions.
2780 (filename_seen): Delete arg "first". New arg "cache". All callers
2781 updated.
2782 (output_source_filename_data): New struct.
2783 (output_source_filename): Delete arg "first". New arg "data".
2784 All callers updated.
2785 (sources_info): Delete local "first". New locals "data", "cleanups".
2786 Rewrite to use filename_seen_cache.
2787 (add_partial_filename_data): Delete member "first". New member
2788 "filename_seen_cache". All uses updated.
2789 (make_source_files_completion_list): Rewrite to use
2790 filename_seen_cache.
2791
2792 2012-07-12 Doug Evans <dje@google.com>
2793
2794 * psymtab.c (map_symbol_filenames_psymtab): Skip shared psymtabs.
2795
2796 2012-07-10 Doug Evans <dje@google.com>
2797
2798 PR gdb/13498
2799 * dwarf2read.c (dwarf2_per_objfile): New members n_type_unit_groups,
2800 all_type_unit_groups, type_unit_groups, tu_stats.
2801 (dwarf2_per_cu_data): Move "imported_symtabs" into new union "s".
2802 All uses updated. Add type_unit_group to union "s".
2803 (type_unit_group): New struct.
2804 (IS_TYPE_UNIT_GROUP): New macro.
2805 (abbrev_table): Delete unused member "section".
2806 (dw2_do_instantiate_symtab): Early exit if type_unit_group.
2807 (dw2_get_cu): Assert not used with type_unit_group.
2808 (dw2_get_primary_cu): New function.
2809 (dw2_build_type_unit_groups_reader): New function.
2810 (dw2_build_type_unit_groups): New function.
2811 (dw2_get_file_names): Assert not called on type units.
2812 (dw2_map_symtabs_matching_filename): Call dw2_build_type_unit_groups.
2813 Redo loop to iterate over type unit groups instead of type units.
2814 (dw2_expand_symtabs_matching, dw2_map_symbol_filenames): Ditto.
2815 (read_abbrev_offset): New function.
2816 (init_cutu_and_read_dies): New arg "abbrev_table". All callers
2817 updated.
2818 (create_partial_symtab): New function.
2819 (process_psymtab_comp_unit_reader): Assert not used with type units.
2820 Call create_partial_symtab.
2821 (process_psymtab_type_unit): Delete.
2822 (hash_type_unit_group, eq_type_unit_group): New functions.
2823 (allocate_type_unit_groups_table): New function.
2824 (NO_STMT_LIST_TYPE_UNIT_PSYMTAB): New macro.
2825 (NO_STMT_LIST_TYPE_UNIT_PSYMTAB_SIZE): New macro.
2826 (create_type_unit_group, get_type_unit_group): New functions.
2827 (tu_abbrev_offset): New struct.
2828 (sort_tu_by_abbrev_offset): New function.
2829 (add_type_unit_group_to_table): New function.
2830 (build_type_unit_groups): New function.
2831 (build_type_psymtabs_reader): New function.
2832 (build_type_psymtab_dependencies): New function.
2833 (build_type_psymtabs): Rewrite.
2834 (scan_partial_symbols): Flag an error if a DW_TAG_imported_unit
2835 is seen in a type unit.
2836 (process_queue): Move symtab expansion debugging printfs here.
2837 Call process_full_type_unit for type units.
2838 (compute_symtab_includes): Assert not called for type units.
2839 (process_cu_includes): Don't call compute_symtab_includes for
2840 type units.
2841 (process_full_type_unit): New function.
2842 (process_imported_unit_die): Flag an error if called for type units.
2843 (handle_DW_AT_stmt_list): Delete arg "want_line_info". All callers
2844 updated. Assert not called for type units.
2845 (read_file_scope): Call dwarf2_start_symtab.
2846 (setup_type_unit_groups): New function.
2847 (read_type_unit_scope): Rewrite.
2848 (abbrev_table_read_table): Initialize abbrev_table->offset.
2849 (abbrev_table_free_cleanup): New function.
2850 (dwarf2_start_symtab): New function.
2851 (load_full_type_unit): Assert not called for type unit groups.
2852 * buildsym.c (finish_block_internal): New arg "expandable".
2853 All callers updated.
2854 (start_symtab): Move most contents to ...
2855 (restart_symtab): ... here. New function.
2856 (reset_symtab_globals): New function.
2857 (end_symtab_1): Renamed from end_symtab. New arg "expandable".
2858 Call reset_symtab_globals.
2859 (end_symtab, end_expandable_symtab): New functions.
2860 (set_missing_symtab, augment_type_symtab): New functions.
2861 * buildsym.h (end_expandable_symtab): Declare.
2862 (augment_type_symtab, restart_symtab): Declare.
2863 * psympriv.h (struct partial_symtab): New member "anonymous".
2864 * psymtab.c (partial_map_symtabs_matching_filename): Ignore
2865 anonymous psymtabs.
2866 (read_psymtabs_with_filename): Ditto.
2867 (map_symbol_filenames_psymtab, psymtab_to_fullname): Ditto.
2868 (expand_symtabs_matching_via_partial): Ditto.
2869 (dump_psymtab): Update.
2870 * dictionary.c (dict_add_pending): New function.
2871 * dictionary.h (dict_add_pending): Declare.
2872
2873 2012-07-09 Doug Evans <dje@google.com>
2874
2875 * buildsym.c (start_subfile): Remove unnecessary check for
2876 name == NULL.
2877
2878 * psymtab.c (allocate_psymtab): Use host_address_to_string.
2879
2880 * dwarf2read.c (load_full_type_unit): Simplify.
2881
2882 * dwarf2read.c (dwarf2_per_objfile): Change type of all_type_units
2883 to struct signatured_type **. All uses updated.
2884
2885 * dwarf2read.c (dwarf2_attr_no_follow): Delete unused arg "cu".
2886 All callers updated.
2887
2888 2012-07-09 Tom Tromey <tromey@redhat.com>
2889
2890 * c-exp.y (check_parameter_typelist): New function.
2891 (parameter_typelist): Call it.
2892 * eval.c (make_params): Handle '(void)' case.
2893 * gdbtypes.c (lookup_function_type_with_arguments): Handle
2894 '(void)' case.
2895
2896 2012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
2897
2898 * common/linux-ptrace.c: Include gdb_assert.h.
2899 <__i386__> (linux_ptrace_test_ret_to_nx_instr): New declaration.
2900 <__i386__>: Include sys/reg.h, sys/mman.h, signal.h, sys/wait.h and
2901 stdint.h.
2902 (linux_ptrace_test_ret_to_nx, linux_ptrace_init_warnings): New
2903 functions.
2904 * common/linux-ptrace.h (linux_ptrace_init_warnings): New declarations.
2905 * linux-nat.c (linux_child_post_attach)
2906 (linux_child_post_startup_inferior): Call linux_ptrace_init_warnings.
2907
2908 2012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
2909
2910 * linux-thread-db.c (thread_db_find_new_threads_silently): Do not apply
2911 nptl <2.7 bug workaround for core files.
2912
2913 2012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
2914
2915 * linux-nat.c (resume_lwp, linux_nat_resume): Remove LP->SIGINFO
2916 clearing.
2917 (save_siginfo): Remove.
2918 (stop_wait_callback, linux_nat_filter_event): Remove the save_siginfo
2919 call.
2920 (resume_stopped_resumed_lwps): Remove LP->SIGINFO clearing.
2921 (linux_nat_get_siginfo): Use PTRACE_GETSIGINFO.
2922 * linux-nat.h (struct lwp_info): Remove field siginfo.
2923
2924 2012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
2925
2926 Code cleanup for the next patch.
2927 * arm-linux-nat.c (arm_linux_stopped_data_address): Change variable
2928 siginfo_p to siginfo, update its users incl. the linux_nat_get_siginfo
2929 call for it.
2930 * ia64-linux-nat.c (ia64_linux_stopped_data_address): Likewise.
2931 (ia64_linux_stopped_data_address):
2932 * linux-nat.c (linux_nat_get_siginfo): Add parameter siginfo, change
2933 the return value.
2934 * linux-nat.h (linux_nat_get_siginfo): Likewise.
2935 * ppc-linux-nat.c (ppc_linux_stopped_data_address): Change variable
2936 siginfo_p to siginfo, update its users incl. the linux_nat_get_siginfo
2937 call for it.
2938
2939 2012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
2940
2941 PR 14321
2942 * findcmd.c (parse_find_args): New variable pattern_buf_size_need.
2943 Increase buffer sizes to 2x we need, not just 2x of the previous size.
2944
2945 2012-07-06 Tom Tromey <tromey@redhat.com>
2946
2947 * c-exp.y (DOTDOTDOT): New token.
2948 (func_mod, exp): Use parameter_typelist.
2949 (parameter_typelist): New production.
2950 (tokentab3): Add "..." token.
2951 * eval.c (make_params): Handle varargs.
2952 * gdbtypes.c (lookup_function_type_with_arguments): Handle
2953 varargs.
2954
2955 2012-07-06 Tom Tromey <tromey@redhat.com>
2956
2957 PR exp/9608:
2958 * c-exp.y (%union) <tvec>: Change type.
2959 (func_mod): Now uses <tvec> type.
2960 (exp): Update for tvec change.
2961 (direct_abs_decl): Push the typelist.
2962 (func_mod): Return a typelist.
2963 (nonempty_typelist): Update for tvec change.
2964 * gdbtypes.c (lookup_function_type_with_arguments): New function.
2965 * gdbtypes.h (lookup_function_type_with_arguments): Declare.
2966 * parse.c (pop_type_list): New function.
2967 (push_typelist): New function.
2968 (follow_types): Handle tp_function_with_arguments.
2969 * parser-defs.h (type_ptr): New typedef. Define a VEC.
2970 (enum type_pieces) <tp_function_with_arguments>: New constant.
2971 (union type_stack_elt) <typelist_val>: New field.
2972 (push_typelist): Declare.
2973
2974 2012-07-06 Tom Tromey <tromey@redhat.com>
2975
2976 * c-exp.y (%union) <type_stack>: New field.
2977 (abs_decl, direct_abs_decl): Use <type_stack> type. Update.
2978 (ptr_operator_ts): New production.
2979 (ptype): Update.
2980 * parse.c (type_stack_reserve): New function.
2981 (check_type_stack_depth): Use it.
2982 (pop_type_stack, append_type_stack, push_type_stack)
2983 (get_type_stack, type_stack_cleanup): New functions.
2984 (follow_types): Handle tp_type_stack.
2985 (_initialize_parse): Simplify initialization.
2986 * parser-defs.h (enum type_pieces) <tp_type_stack>: New
2987 constant.
2988 (union type_stack_elt) <stack_val>: New field.
2989 (get_type_stack, append_type_stack, push_type_stack)
2990 (type_stack_cleanup): Declare.
2991
2992 2012-07-06 Tom Tromey <tromey@redhat.com>
2993
2994 * parser-defs.h (type_stack, type_stack_size, type_stack_depth):
2995 Remove.
2996 (struct type_stack): New.
2997 * parse.c (type_stack, type_stack_size, type_stack_depth):
2998 Remove.
2999 (type_stack): New global.
3000 (parse_exp_in_context, check_type_stack_depth)
3001 (insert_into_type_stack, insert_type, push_type, push_type_int)
3002 (insert_type_address_space, pop_type, pop_type_int)
3003 (_initialize_parse): Update.
3004
3005 2012-07-06 Tom Tromey <tromey@redhat.com>
3006
3007 * c-exp.y (func_mod, direct_abs_decl, abs_decl, ptr_operator):
3008 Remove %type.
3009
3010 2012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
3011
3012 * c-lang.c (c_printstr): Remove ununsed variable WIDTH.
3013
3014 2012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
3015 Jan Kratochvil <jan.kratochvil@redhat.com>
3016
3017 * cp-valprint.c (cp_print_value): Replace potentially unsafe
3018 alloca with xmalloc/xfree.
3019
3020 2012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
3021
3022 * MAINTAINERS (Write After Approval): Add myself to the list.
3023
3024 2012-07-05 Doug Evans <dje@google.com>
3025
3026 * dwarf2read.c (dw2_expand_symtabs_matching): Fix typo.
3027
3028 2012-07-05 Hui Zhu <hui_zhu@mentor.com>
3029
3030 * ax-gdb.c (cli/cli-utils.h): New include.
3031 (linespec.h): Ditto.
3032 (agent_eval_command_one): New function.
3033 (agent_command_1): Ditto.
3034 (agent_command): Call function agent_command_1.
3035 (agent_eval_command): Ditto.
3036 (_initialize_ax_gdb): Change help for "maint agent"
3037 and "maint agent-eval".
3038
3039 2012-07-05 Hui Zhu <hui_zhu@mentor.com>
3040
3041 * breakpoint.c (check_for_argument): Move to file cli/cli-utils.c.
3042 * cli/cli-utils.c (check_for_argument): New function.
3043 * cli/cli-utils.h (check_for_argument): Ditto.
3044
3045 2012-07-04 H.J. Lu <hongjiu.lu@intel.com>
3046
3047 * NEWS: Mention x32 ABI support.
3048
3049 2012-07-04 H.J. Lu <hongjiu.lu@intel.com>
3050
3051 * amd64-tdep.c (amd64_x32_init_abi): Set sp_regnum_from_eax to
3052 AMD64_RSP_REGNUM and pc_regnum_from_eax to AMD64_RIP_REGNUM.
3053
3054 * i386-tdep.c (i386_gdbarch_init): Initialize sp_regnum_from_eax
3055 and pc_regnum_from_eax to -1. Update SP regnum from
3056 sp_regnum_from_eax and PC regnum from pc_regnum_from_eax if
3057 needed.
3058
3059 * i386-tdep.h (gdbarch_tdep): Add sp_regnum_from_eax and
3060 pc_regnum_from_eax.
3061
3062 2012-07-03 Jan Kratochvil <jan.kratochvil@redhat.com>
3063
3064 Fix 'warning: parameter has incomplete type' with gcc-3.4.6.
3065 * dwarf2expr.h: Include gdbtypes.h.
3066 (enum call_site_parameter_kind, union call_site_parameter_u): Remove
3067 these forward declarations.
3068 (cu_offset, sect_offset): Move these ...
3069 * gdbtypes.h: Remove include dwarf2expr.h.
3070 (cu_offset, sect_offset): ... here.
3071
3072 2012-07-03 H.J. Lu <hongjiu.lu@intel.com>
3073
3074 * amd64-linux-tdep.c (linux_sigtramp_code): Renamed to ...
3075 (amd64_linux_sigtramp_code): This.
3076 (amd64_x32_linux_sigtramp_code): New.
3077 (LINUX_SIGTRAMP_LEN): Updated.
3078 (amd64_linux_sigtramp_start): Check x32 sigtramp.
3079
3080 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3081
3082 * linux-thread-db.c (thread_db_new_objfile): Fix comment typos.
3083
3084 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3085
3086 * config.in: Regenerate.
3087 * configure: Regenerate.
3088 * configure.ac: Remove check for gnu/libc-version.h.
3089 * linux-thread-db.c <HAVE_GNU_LIBC_VERSION_H>: Remove include of
3090 gnu/libc-version.h.
3091 (enable_thread_event_reporting) <HAVE_GNU_LIBC_VERSION_H>: Remove
3092 variables libc_version, libc_major and libc_minor. Replace sscanf by
3093 inferior_has_bug. Extend the comment.
3094
3095 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3096
3097 * linux-thread-db.c (inferior_has_bug): New function.
3098 (thread_db_find_new_threads_silently): Return boolean as checked by
3099 inferior_has_bug, describe it in the comments.
3100 (try_thread_db_load_1): Move call to thread_db_find_new_threads_silently
3101 earlier. Abort the initialization if it returned non-zero.
3102 (thread_db_new_objfile): Exclude debug files.
3103 (thread_db_find_new_threads_2): Preinitialize ERR. Check errors also
3104 if UNTIL_NO_NEW,
3105
3106 2012-07-02 Doug Evans <dje@google.com>
3107
3108 * dwarf2read.c (maybe_queue_comp_unit): Move definition next to others
3109 related to queue management.
3110
3111 * dwarf2read.c (create_debug_types_hash_table): Use "debug dwarf2-read"
3112 instead of "debug dwarf2-die" in debugging printfs.
3113 (create_debug_info_hash_table_reader): Ditto.
3114 (create_debug_info_hash_table): Ditto.
3115 (init_dwo_file): Ditto.
3116 (init_cutu_and_read_dies): Add debugging printf.
3117 (init_cutu_and_read_dies_no_follow): Ditto.
3118 (process_psymtab_comp_unit_reader): Ditto.
3119
3120 2012-07-02 Stan Shebs <stan@codesourcery.com>
3121
3122 Add target-side support for dynamic printf.
3123 * NEWS: Mention the additional style.
3124 * breakpoint.h (struct bp_target_info): New fields tcommands, persist.
3125 (struct bp_location): New field cmd_bytecode.
3126 * breakpoint.c: Include format.h.
3127 (disconnected_dprintf): New global.
3128 (parse_cmd_to_aexpr): New function.
3129 (build_target_command_list): New function.
3130 (insert_bp_location): Call it.
3131 (remove_breakpoints_pid): Skip dprintf breakpoints.
3132 (print_one_breakpoint_location): Ditto.
3133 (dprintf_style_agent): New global.
3134 (dprintf_style_enums): Add dprintf_style_agent.
3135 (update_dprintf_command_list): Add agent case.
3136 (agent_printf_command): New function.
3137 (_initialize_breakpoint): Add new commands.
3138 * common/ax.def (printf): New bytecode.
3139 * ax.h (ax_string): Declare.
3140 * ax-gdb.h (gen_printf): Declare.
3141 * ax-gdb.c: Include cli-utils.h, format.h.
3142 (gen_printf): New function.
3143 (maint_agent_print_command): New function.
3144 (_initialize_ax_gdb): Add maint agent-printf command.
3145 * ax-general.c (ax_string): New function.
3146 (ax_print): Add printf disassembly.
3147 * Makefile.in (SFILES): Add format.c
3148 (COMMON_OBS): Add format.o.
3149 * common/format.h: New file.
3150 * common/format.c: New file.
3151 * printcmd.c: Include format.h.
3152 (ui_printf): Call parse_format_string.
3153 * remote.c (remote_state): New field breakpoint_commands.
3154 (PACKET_BreakpointCommands): New enum.
3155 (remote_breakpoint_commands_feature): New function.
3156 (remote_protocol_features): Add new BreakpointCommands entry.
3157 (remote_can_run_breakpoint_commands): New function.
3158 (remote_add_target_side_commands): New function.
3159 (remote_insert_breakpoint): Call it.
3160 (remote_insert_hw_breakpoint): Ditto.
3161 (_initialize_remote): Add new packet configuration for
3162 target-side breakpoint commands.
3163 * target.h (struct target_ops): New field
3164 to_can_run_breakpoint_commands.
3165 (target_can_run_breakpoint_commands): New macro.
3166 * target.c (update_current_target): Handle
3167 to_can_run_breakpoint_commands.
3168
3169 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3170
3171 Execute -ix and -iex only after system and user gdbinit files.
3172 * main.c (captured_main): Move CMDARG_INIT_FILE and CMDARG_INIT_COMMAND
3173 processing down after gdbinit files.
3174
3175 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3176
3177 Add fnmatch-gnu module.
3178 * gnulib/Makefile.in (aclocal_m4_deps): Add new files and remove one.
3179 * gnulib/configure.ac (AC_INIT): Use now import/memmem.c.
3180 * gnulib/aclocal.m4: Regenerate.
3181 * gnulib/config.in: Regenerate.
3182 * gnulib/configure: Regenerate.
3183 * gnulib/import/dummy.c: Remove.
3184 * gnulib/import/Makefile.am: Regenerate.
3185 * gnulib/import/Makefile.in: Likewise.
3186 * gnulib/import/m4/gnulib-cache.m4: Likewise.
3187 * gnulib/import/m4/gnulib-comp.m4: Likewise.
3188 * gnulib/import/alloca.c: New file.
3189 * gnulib/import/alloca.in.h: Likewise.
3190 * gnulib/import/config.charset: Likewise.
3191 * gnulib/import/fnmatch.c: Likewise.
3192 * gnulib/import/fnmatch.in.h: Likewise.
3193 * gnulib/import/fnmatch_loop.c: Likewise.
3194 * gnulib/import/localcharset.c: Likewise.
3195 * gnulib/import/localcharset.h: Likewise.
3196 * gnulib/import/m4/alloca.m4: Likewise.
3197 * gnulib/import/m4/codeset.m4: Likewise.
3198 * gnulib/import/m4/configmake.m4: Likewise.
3199 * gnulib/import/m4/fcntl-o.m4: Likewise.
3200 * gnulib/import/m4/fnmatch.m4: Likewise.
3201 * gnulib/import/m4/glibc21.m4: Likewise.
3202 * gnulib/import/m4/localcharset.m4: Likewise.
3203 * gnulib/import/m4/locale-fr.m4: Likewise.
3204 * gnulib/import/m4/locale-ja.m4: Likewise.
3205 * gnulib/import/m4/locale-zh.m4: Likewise.
3206 * gnulib/import/m4/mbrtowc.m4: Likewise.
3207 * gnulib/import/m4/mbsinit.m4: Likewise.
3208 * gnulib/import/m4/mbsrtowcs.m4: Likewise.
3209 * gnulib/import/m4/mbstate_t.m4: Likewise.
3210 * gnulib/import/m4/stdbool.m4: Likewise.
3211 * gnulib/import/m4/wchar_h.m4: Likewise.
3212 * gnulib/import/m4/wctype_h.m4: Likewise.
3213 * gnulib/import/m4/wint_t.m4: Likewise.
3214 * gnulib/import/mbrtowc.c: Likewise.
3215 * gnulib/import/mbsinit.c: Likewise.
3216 * gnulib/import/mbsrtowcs-impl.h: Likewise.
3217 * gnulib/import/mbsrtowcs-state.c: Likewise.
3218 * gnulib/import/mbsrtowcs.c: Likewise.
3219 * gnulib/import/ref-add.sin: Likewise.
3220 * gnulib/import/ref-del.sin: Likewise.
3221 * gnulib/import/stdbool.in.h: Likewise.
3222 * gnulib/import/streq.h: Likewise.
3223 * gnulib/import/strnlen1.c: Likewise.
3224 * gnulib/import/strnlen1.h: Likewise.
3225 * gnulib/import/verify.h: Likewise.
3226 * gnulib/import/wchar.in.h: Likewise.
3227 * gnulib/import/wctype.in.h: Likewise.
3228
3229 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3230
3231 Support shell wildcards for 'set auto-load safe-path'.
3232 * auto-load.c: Include fnmatch.h.
3233 (filename_is_in_dir): Rename to ...
3234 (filename_is_in_pattern_1, filename_is_in_pattern): ... here and split
3235 it. Update function comment. Rename dir_len to pattern_len. New
3236 variables filename_len, pattern and filename. Add more DEBUG_AUTO_LOAD
3237 messages. Use gdb_filename_fnmatch.
3238 (filename_is_in_auto_load_safe_path_vec): Rename variable dir to
3239 pattern.
3240 (_initialize_auto_load): Extend the "set auto-load safe-path" help text.
3241 * defs.h (gdb_filename_fnmatch): New declaration.
3242 * utils.c: Include fnmatch.h.
3243 (gdb_filename_fnmatch): New function.
3244
3245 2012-07-02 Sergio Durigan Junior <sergiodj@redhat.com>
3246
3247 * breakpoint.c (BREAK_ARGS_HELP): Include help message for the new
3248 `-probe' and `-probe-stap' options.
3249
3250 2012-07-01 Yao Qi <yao@codesourcery.com>
3251
3252 * breakpoint.c: Removed always_inserted_auto, always_inserted_on,
3253 always_inserted_off, and always_inserted_enums.
3254 Change always_inserted_mode's type to 'enum auto_boolean'.
3255 (show_always_inserted_mode, breakpoint_always_inserted_mode): Update
3256 callers.
3257 (_initialize_breakpoint): Call add_setshow_auto_boolean_cmd instead
3258 of add_setshow_enum_cmd.
3259 * infrun.c: Remove can_use_displaced_stepping_auto,
3260 can_use_displaced_stepping_on, can_use_displaced_stepping_off, and
3261 can_use_displaced_stepping_enum.
3262 Change can_use_displaced_stepping's type to 'enum auto_boolean'.
3263 (show_can_use_displaced_stepping, use_displaced_stepping): Update callers.
3264 (_initialize_infrun): Call add_setshow_auto_boolean_cmd instead of
3265 add_setshow_enum_cmd.
3266
3267 2012-06-30 Doug Evans <dje@google.com>
3268
3269 * dwarf2read.c (signatured_type): Make "per_cu" member first.
3270 (init_cutu_and_read_dies): Handle rereading a DWO CU while it's
3271 currently being read. Propagate DW_AT_comp_dir to DWO DIE.
3272
3273 2012-06-29 Doug Evans <dje@google.com>
3274
3275 * linespec.c: #include "stack.h".
3276 (decode_line_with_current_source): Moved here from symtab.c and
3277 renamed from decode_line_spec. All callers updated.
3278 (decode_line_with_last_displayed): Moved here from breakpoint.c and
3279 renamed from decode_line_spec_1. All callers updated.
3280 * linespec.h (decode_line_with_current_source): Move declaration here
3281 from symtab.h and renamed from decode_line_spec.
3282 (decode_line_with_last_displayed): Move declaration here from symtab.h
3283 and renamed from decode_line_spec_1.
3284 * macrocmd.c: #include "linespec.h".
3285 * symtab.c: Remove #include "linespec.h".
3286
3287 2012-06-28 Doug Evans <dje@google.com>
3288
3289 * dwarf2read.c (get_cu_length): New function.
3290 (offset_in_cu_p, error_check_comp_unit_head): Call it.
3291 (create_debug_types_hash_table): Ditto.
3292 (init_cutu_and_read_dies): Ditto.
3293 (init_cutu_and_read_dies_no_follow): Ditto.
3294
3295 * dwarf2read.c (dwarf2_find_base_address): Move definition.
3296
3297 * dwarf2read.c (ABBREV_HASH_SIZE): Remove enclosing #ifndef/#endif.
3298 (struct abbrev_table): Define.
3299 (dwarf2_cu): Replace members dwarf2_abbrevs, abbrev_obstack with
3300 abbrev_table.
3301 (init_cutu_and_read_dies): Update.
3302 (abbrev_table_alloc_abbrev): New function. Replaces
3303 dwarf_alloc_abbrev. All callers updated.
3304 (abbrev_table_add_abbrev): New function.
3305 (abbrev_table_lookup_abbrev): New function. Replaces
3306 dwarf2_lookup_abbrev. All callers updated.
3307 (abbrev_table_read_table): New function. Contents moved here from
3308 dwarf2_read_abbrevs.
3309 (dwarf2_read_abbrevs): Call it.
3310 (abbrev_table_free): New function.
3311 (dwarf2_free_abbrev_table): Call it.
3312
3313 2012-06-28 Stan Shebs <stan@codesourcery.com>
3314
3315 * osdata.c (info_osdata_command): Filter out "Title" columns
3316 from non-MI uses.
3317 * common/linux-osdata.c (struct osdata_type): Add title field.
3318 (osdata_table): Add titles to each entry.
3319 (linux_command_xfer_osdata): Add a column for title data.
3320
3321 2012-06-28 Stan Shebs <stan@codesourcery.com>
3322
3323 Make logging work for MI.
3324 * NEWS: Mention it.
3325 * interps.h (interp_set_logging_ftype): New typedef.
3326 (struct interp_procs): New field set_logging_proc.
3327 (current_interp_set_logging): Declare.
3328 * interps.c (current_interp_set_logging): New function.
3329 * cli/cli-logging.c: Include interps.h.
3330 (set_logging_redirect): Call current_interp_set_logging.
3331 (pop_output_files): Ditto.
3332 (handle_redirections): Ditto, plus skip ui-out redirect if MI.
3333 * mi/mi-console.h (mi_console_set_raw): Declare.
3334 * mi/mi-console.c (mi_console_set_raw): New function.
3335 * mi/mi-interp.c (saved_raw_stdout): New global.
3336 (mi_set_logging): New function.
3337 (_initialize_mi_interp): Add it to interp procs.
3338
3339 2012-06-28 Doug Evans <dje@google.com>
3340
3341 * symtab.c (lookup_symbol_aux_objfile): Use
3342 ALL_OBJFILE_PRIMARY_SYMTABS.
3343
3344 * gdbtypes.c (lookup_typename): Rename local variable "tmp" to "type".
3345
3346 2012-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3347
3348 * common/buffer.c: Include inttypes.h and stdint.h.
3349 (buffer_xml_printf): Use PRId64, PRIu64, PRIx64 and PRIo64.
3350
3351 2012-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3352 Pedro Alves <palves@redhat.com>
3353
3354 * gdbthread.h (ALL_THREADS): New macro.
3355 (thread_list): Declare.
3356 * infrun.c (handle_inferior_event) <spurious signal>: Don't keep
3357 going, but instead fall through to the stepping handling.
3358 * linux-nat.c (resume_lwp): New parameter 'signo'. Resume with
3359 the passed in signal. Adjust debug output.
3360 (resume_callback): Rename to ...
3361 (linux_nat_resume_callback): ... this. Pass the thread's last
3362 stop signal, if in "pass" state.
3363 (linux_nat_resume): Adjust to rename.
3364 (stop_wait_callback): New assertion. Don't respawn signals;
3365 instead let the LWP remain with SIGNALLED set.
3366 (linux_nat_wait_1): Remove flushing of pending SIGSTOPs.
3367 * remote.c (append_pending_thread_resumptions): New.
3368 (remote_vcont_resume): Call it.
3369 * target.h (target_resume): Extend comment.
3370
3371 2012-06-28 Iain Sandoe <iain@codesourcery.com>
3372
3373 * auxv.c (fprint_target_auxv): Handle extended cache data tags.
3374
3375 2012-06-27 Doug Evans <dje@google.com>
3376
3377 * dwarf2read.c (dwarf2_cu): Add ranges_base.
3378 Delete have_addr_base, unused. All uses updated.
3379 (init_cutu_and_read_dies): Process DW_AT_GNU_ranges_base.
3380 (dwarf2_get_pc_bounds): Add ranges_base.
3381 (dwarf2_record_block_ranges): Ditto.
3382
3383 2012-06-27 Tom Tromey <tromey@redhat.com>
3384
3385 PR macros/7961:
3386 * varobj.c (varobj_create): Update.
3387 (varobj_set_value): Update.
3388 * tracepoint.c (validate_actionline): Update.
3389 (encode_actions_1): Update.
3390 * parse.c (parse_exp_1): Add 'pc' argument.
3391 (parse_exp_in_context): Add 'pc' argument. Change how
3392 expression_context_pc is set.
3393 (parse_expression): Update.
3394 (parse_field_expression): Update.
3395 * expression.h (parse_exp_1): Update.
3396 * eval.c (parse_to_comma_and_eval): Update.
3397 * breakpoint.c (set_breakpoint_condition): Update.
3398 (update_watchpoint): Update.
3399 (init_breakpoint_sal): Update
3400 (find_condition_and_thread): Update.
3401 (watch_command_1): Update.
3402 (update_breakpoint_locations): Update.
3403 * ada-lang.c (ada_read_renaming_var_value): Update.
3404 (create_excep_cond_exprs): Update.
3405
3406 2012-06-27 Doug Evans <dje@google.com>
3407
3408 * dwarf2read.c (per_cu_header_read_in): Simplify, and handle
3409 type units.
3410
3411 2012-06-26 Doug Evans <dje@google.com>
3412
3413 * dwarf2read.c (read_and_check_comp_unit_head): Delete unnecessary
3414 prototype.
3415 (error_check_comp_unit_head): New arg abbrev_section. All callers
3416 updated.
3417 (read_and_check_comp_unit_head): Ditto.
3418 (read_and_check_type_unit_head): Ditto.
3419
3420 2012-06-26 Siva Chandra Reddy <sivachandra@google.com>
3421
3422 New attribute 'last' for gdb.Symtab_and_line.
3423 * NEWS (Python Scripting): Add entry about the new attribute.
3424 * python/py-symtab.c (salpy_get_last): New function which
3425 implements the get method for the 'last' attribute of
3426 gdb.Symtab_and_line.
3427 (sal_object_getset): Add entry for the 'last' attribute.
3428
3429 2012-06-26 Doug Evans <dje@google.com>
3430
3431 * dwarf2read.c (dwo_section_names): Add macinfo_dwo, macro_dwo.
3432 (dwo_sections): Add macinfo, macro.
3433 (dwarf2_locate_dwo_sections): Watch for macro sections.
3434 (dwarf_decode_macros): Remove args lh, abfd, section, section_name.
3435 All callers updated. Handle DWO files.
3436
3437 * NEWS: Mention new options "set debug dwarf2-read" and
3438 "set debug symtab-create".
3439 * dwarf2read.c (dwarf2_read_debug): New static global.
3440 (dwarf2_build_psymtabs_hard): Add debugging printfs.
3441 (process_queue): Ditto.
3442 (process_full_comp_unit): Ditto.
3443 (_initialize_dwarf2_read): Add new option "set debug dwarf2-read".
3444 * elfread.c (elf_symfile_read): Add debugging printf.
3445 * minsyms.c (install_minimal_symbols): Ditto.
3446 * psymtab.c (allocate_psymtab): Ditto.
3447 * symfile.c (allocate_symtab): Ditto.
3448 * symtab.c (symtab_create_debug): New global.
3449 (_initialize_symtab): Add new option "set debug symtab-create".
3450 * symtab.h (symtab_create_debug): Declare.
3451
3452 * dwarf2read.c (lookup_dwo_comp_unit): Enhance comment.
3453 (lookup_dwo_type_unit): Ditto.
3454
3455 2012-06-26 Roland McGrath <roland@hack.frob.com>
3456 H.J. Lu <hongjiu.lu@intel.com>
3457
3458 * amd64-linux-nat.c: Include <sys/user.h>.
3459 (ps_get_thread_area): Use PTRACE_PEEKUSER to get fs_base/gs_base
3460 if HAVE_STRUCT_USER_REGS_STRUCT_FS_BASE or
3461 HAVE_STRUCT_USER_REGS_STRUCT_GS_BASE is defined.
3462
3463 * configure.ac: Check if the fs_base and gs_base members of
3464 `struct user_regs_struct' exist.
3465 * config.in: Regenerated.
3466 * configure: Likewise.
3467
3468 2012-06-25 Michael Eager <eager@eagercon.com>
3469
3470 PR python/14291
3471 * python/python.c (gdbpy_write): Check for interrupted output.
3472
3473 2012-06-25 Greta Yorsh <greta.yorsh@arm.com>
3474
3475 * arm-tdep.c (arm_in_function_epilogue_p): Recognize POP with a single
3476 register as a stack alignment in ARM mode.
3477
3478 2012-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3479
3480 Update gnulib to GIT commit a39f53ccb70a613e647e1019fb4c63645220267e.
3481 * gnulib/config.in: Regenerate.
3482 * gnulib/configure: Likewise.
3483 * gnulib/import/m4/extensions.m4: Update it.
3484 * gnulib/import/m4/gnulib-common.m4: Likewise.
3485 * gnulib/import/m4/memmem.m4: Likewise.
3486 * gnulib/import/m4/mmap-anon.m4: Likewise.
3487 * gnulib/import/m4/multiarch.m4: Likewise.
3488 * gnulib/import/stdint.in.h: Likewise.
3489
3490 2012-06-24 Yao Qi <yao@codesourcery.com>
3491
3492 * corefile.c (write_memory_with_notification): New.
3493 * gdbcore.h: Declare write_memory_with_notification.
3494 * ada-lang.c (ada_value_assign): Replace 'write_memory' and
3495 'observer_notify_memory_changed' with 'write_memory_with_notification'.
3496 * valops.c (value_assign): Likewise.
3497 * python/py-inferior.c (infpy_write_memory): Call
3498 'write_memory_with_notification'.
3499
3500 2012-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3501
3502 * cc-with-index.sh: Use also -ex "set auto-load no".
3503
3504 2012-06-23 Doug Evans <dje@google.com>
3505
3506 PR 14125
3507 * NEWS: Document additions to .gdb_index.
3508 * dwarf2read.c: #include "gdb/gdb-index.h".
3509 (DW2_GDB_INDEX_SYMBOL_STATIC_SET_VALUE): New macro.
3510 (DW2_GDB_INDEX_SYMBOL_KIND_SET_VALUE): New macro.
3511 (DW2_GDB_INDEX_CU_SET_VALUE): New macro.
3512 (dwarf2_read_index): Recognize version 7.
3513 (dw2_do_expand_symtabs_matching): New args want_specific_block,
3514 block_kind, domain): All callers updated.
3515 (dw2_find_symbol_file): Handle new index CU values.
3516 (dw2_expand_symtabs_matching): Match symbol kind if requested.
3517 (add_index_entry): New args is_static, kind. All callers updated.
3518 (offset_type_compare, uniquify_cu_indices): New functions
3519 (symbol_kind): New function.
3520 (write_psymtabs_to_index): Remove duplicate CU values.
3521 (write_psymtabs_to_index): Write .gdb_index version 7.
3522
3523 2012-06-22 Joel Brobecker <brobecker@adacore.com>
3524
3525 * configure.ac (build_warnings): Add -Wdeclaration-after-statement.
3526 * configure: Regenerate.
3527
3528 2012-06-20 Yao Qi <yao@codesourcery.com>
3529
3530 * python/py-inferior.c: Update comments of infpy_read_memory
3531 and infpy_write_memory.
3532
3533 2012-06-19 Tom Tromey <tromey@redhat.com>
3534
3535 PR exp/9514:
3536 * parser-defs.h (insert_type, insert_type_address_space): Declare.
3537 (push_type_address_space): Remove.
3538 * parse.c (insert_into_type_stack): New function.
3539 (insert_type): Likewise.
3540 (insert_type_address_space): Rename from push_type_address_space.
3541 Insert tp_space_identifier.
3542 * c-exp.y (ptr_operator): New production.
3543 (abs_decl): Use ptr_operator.
3544 (space_identifier): Call insert_type_address_space.
3545 (ptype): Don't use const_or_volatile_or_space_identifier.
3546 (const_or_volatile_noopt): Call insert_type.
3547 (conversion_type_id, conversion_declarator): New productions.
3548 (operator): Use conversion_type_id.
3549
3550 2012-06-18 Doug Evans <dje@google.com>
3551
3552 * symtab.h (minimal_symbol): New member created_by_gdb.
3553 * elfread.c (elf_symtab_read): Set created_by_gdb for @plt minsym
3554 created by gdb.
3555 * symtab.c (lookup_symbol_in_objfile_from_linkage_name): New function.
3556 (search_symbols): Call it instead of lookup_symbol.
3557 Skip symbols created by gdb. Only scan minsyms if nfiles == 0.
3558
3559 * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_const_index.
3560 Adjust address for DW_OP_GNU_addr_index.
3561 * dwarf2expr.h (dwarf_expr_context): Update comment.
3562 * dwarf2loc.c (locexpr_describe_location_piece): New arg per_cu,
3563 all callers updated. Handle TLS vars described with
3564 DW_OP_GNU_const_index.
3565 (disassemble_dwarf_expression): Handle DW_OP_GNU_addr_index
3566 and DW_OP_GNU_const_index.
3567 * dwarf2read.c (decode_locdesc): Handle DW_OP_GNU_addr_index.
3568
3569 * block.c (find_block_in_blockvector): Make explicit the fact that we
3570 ignore GLOBAL_BLOCK.
3571
3572 2012-06-18 Tom Tromey <tromey@redhat.com>
3573
3574 * c-exp.y (operator): Remove trailing space after "delete" and
3575 "delete[]".
3576
3577 2012-06-18 Mark Kettenis <kettenis@gnu.org>
3578 Jan Kratochvil <jan.kratochvil@redhat.com>
3579
3580 Switch i386 and derived targets to ON_STACK.
3581 * amd64-dicos-tdep.c (amd64_dicos_push_dummy_code): Remove.
3582 (amd64_dicos_init_abi): Remove its installment.
3583 * dicos-tdep.c (dicos_init_abi): Remove the
3584 set_gdbarch_call_dummy_location call. Update the comment here.
3585 * i386-dicos-tdep.c (i386_dicos_push_dummy_code): Remove.
3586 (i386_dicos_init_abi): Remove its installment.
3587 * i386-tdep.c (i386_push_dummy_code): New function.
3588 (i386_gdbarch_init): Call set_gdbarch_call_dummy_location, install
3589 i386_push_dummy_code.
3590
3591 2012-06-18 Jan Kratochvil <jan.kratochvil@redhat.com>
3592
3593 Remove stale dummy frames.
3594 * breakpoint.c: Include dummy-frame.h.
3595 (longjmp_breakpoint_ops): New variable.
3596 (update_breakpoints_after_exec, breakpoint_init_inferior): Delete also
3597 bp_longjmp_call_dummy.
3598 (bpstat_what, bptype_string, print_one_breakpoint_location)
3599 (init_bp_location): Support bp_longjmp_call_dummy.
3600 (set_longjmp_breakpoint): Use longjmp_breakpoint_ops. Comment why.
3601 (set_longjmp_breakpoint_for_call_dummy)
3602 (check_longjmp_breakpoint_for_call_dummy, longjmp_bkpt_dtor): New
3603 functions.
3604 (initialize_breakpoint_ops): Initialize longjmp_breakpoint_ops.
3605 * breakpoint.h (enum bptype): New item bp_longjmp_call_dummy. Delete
3606 FIXME comment and extend the other comment for bp_call_dummy.
3607 (set_longjmp_breakpoint_for_call_dummy)
3608 (check_longjmp_breakpoint_for_call_dummy): New declarations.
3609 * dummy-frame.c: Include gdbthread.h.
3610 (pop_dummy_frame_bpt): New function.
3611 (pop_dummy_frame): Call pop_dummy_frame_bpt.
3612 (dummy_frame_discard): New function.
3613 (cleanup_dummy_frames): Update the comment about longjmps.
3614 * dummy-frame.h (dummy_frame_discard): New declaration.
3615 * gdbthread.h (struct thread_info): Extend initiating_frame comment.
3616 * infcall.c (call_function_by_hand): New variable longjmp_b. Call
3617 set_longjmp_breakpoint_for_call_dummy. Chain its breakpoints with BPT.
3618 * infrun.c (handle_inferior_event) <BPSTAT_WHAT_CLEAR_LONGJMP_RESUME>:
3619 Add case 4 comment. Call check_longjmp_breakpoint_for_call_dummy and
3620 keep_going if IS_LONGJMP and there is no other reason to stop.
3621
3622 2012-06-18 Greta Yorsh <Greta.Yorsh@arm.com>
3623
3624 * remote-sim.c (sim_command_completer): Initialize
3625 variable 'result'.
3626
3627 2012-06-17 Jan Kratochvil <jan.kratochvil@redhat.com>
3628
3629 * dwarf2expr.c (execute_stack_op): Support DW_OP_GNU_parameter_ref.
3630 * dwarf2loc.c (call_site_parameter_matches): Support
3631 CALL_SITE_PARAMETER_PARAM_OFFSET.
3632 (needs_dwarf_reg_entry_value): Push stub value.
3633 * dwarf2read.c (read_call_site_scope): New variable origin. Support
3634 CALL_SITE_PARAMETER_PARAM_OFFSET and its DW_AT_abstract_origin.
3635 * gdbtypes.h (enum call_site_parameter_kind): New item
3636 CALL_SITE_PARAMETER_PARAM_OFFSET.
3637 (struct call_site.parameter.u): New field param_offset.
3638
3639 2012-06-17 Jan Kratochvil <jan.kratochvil@redhat.com>
3640
3641 Code cleanup: Generalize call_site.parameter key.
3642 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_entry_value>: Remove
3643 variable dwarf_reg. New variable kind_u. Update parameters to
3644 push_dwarf_reg_entry_value.
3645 (ctx_no_push_dwarf_reg_entry_value): Update parameters.
3646 * dwarf2expr.h (enum call_site_parameter_kind)
3647 (union call_site_parameter_u): Forward declarations.
3648 (struct dwarf_expr_context_funcs): Update parameters and their
3649 description for push_dwarf_reg_entry_value.
3650 (ctx_no_push_dwarf_reg_entry_value): Update parameters.
3651 * dwarf2loc.c (call_site_parameter_matches): New function.
3652 (dwarf_expr_reg_to_entry_parameter): Update parameters and their
3653 description. Use call_site_parameter_matches.
3654 (dwarf_expr_push_dwarf_reg_entry_value, value_of_dwarf_reg_entry):
3655 Update parameters and their description.
3656 (value_of_dwarf_block_entry): Remove variables dwarf_reg and fb_offset.
3657 New variable kind_u. Adjust the caller for updated parameters.
3658 (needs_dwarf_reg_entry_value): Update parameters.
3659 * dwarf2read.c (read_call_site_scope): New variable loc. Use it
3660 instead of attr. Update for the changed fields of struct
3661 call_site_parameter.
3662 * gdbtypes.h: Include dwarf2expr.h.
3663 (enum call_site_parameter_kind): New.
3664 (struct call_site.parameter): New field kind. Wrap dwarf_reg and
3665 fb_offset into new union u.
3666
3667 2012-06-16 H.J. Lu <hongjiu.lu@intel.com>
3668
3669 * amd64-tdep.c (amd64_x32_analyze_stack_align): New function.
3670 (amd64_analyze_prologue): Call amd64_x32_analyze_stack_align
3671 for x32.
3672
3673 2012-06-16 H.J. Lu <hongjiu.lu@intel.com>
3674
3675 * amd64-linux-nat.c (compat_x32_clock_t): New.
3676 (compat_x32_siginfo_t): Likewise.
3677 (compat_x32_siginfo_from_siginfo): Likewise.
3678 (siginfo_from_compat_x32_siginfo): Likewise.
3679 (amd64_linux_siginfo_fixup): Call compat_x32_siginfo_from_siginfo
3680 and siginfo_from_compat_x32_siginfo for x32.
3681
3682 2012-06-15 Hui Zhu <hui_zhu@mentor.com>
3683
3684 * tracepoint.c (tfile_xfer_partial): Add a lseek.
3685
3686 2012-06-15 H.J. Lu <hongjiu.lu@intel.com>
3687
3688 * amd64-linux-nat.c (ps_get_thread_area): Check bits_per_word
3689 instead of gdbarch_ptr_bit.
3690 * amd64-nat.c (amd64_native_gregset_reg_offset): Likewise.
3691 (amd64_supply_native_gregset): Likewise.
3692 (amd64_collect_native_gregset): Likewise.
3693 * amd64-tdep.c (amd64_supply_fxsave): Likewise.
3694 (amd64_supply_xsave): Likewise.
3695 (amd64_collect_fxsave): Likewise.
3696 (amd64_collect_xsave): Likewise.
3697
3698 2012-06-15 H.J. Lu <hongjiu.lu@intel.com>
3699
3700 * amd64-linux-nat.c (AMD64_LINUX_X32_DS): New.
3701 (amd64_linux_read_description): Check DS segment register for
3702 x32 process.
3703
3704 2012-06-15 Tom Tromey <tromey@redhat.com>
3705
3706 * dwarf2read.c (dw2_find_symbol_file): Unconditionally use
3707 init_cutu_and_read_dies.
3708
3709 2012-06-15 Iain Sandoe <iain@codesourcery.com>
3710
3711 * MAINTAINERS (Write After Approval): Add myself to the list.
3712
3713 2012-06-15 Tom Tromey <tromey@redhat.com>
3714
3715 * valops.c (value_find_oload_method_list): Now static.
3716 * value.h (value_find_oload_method_list): Don't declare.
3717
3718 2012-06-15 Tom Tromey <tromey@redhat.com>
3719
3720 * valops.c (find_overload_match): Use value_ind.
3721
3722 2012-06-15 Maciej W. Rozycki <macro@codesourcery.com>
3723
3724 * infrun.c (handle_inferior_event): Correct indentation.
3725
3726 2012-06-14 Doug Evans <dje@google.com>
3727
3728 * dwarf2loc.c (debug_loc_kind): Add DEBUG_LOC_START_LENGTH.
3729 (DEBUG_LOC_START_END): Renamed from DEBUG_LOC_NORMAL.
3730 All uses updated.
3731 (decode_debug_loc_dwo_addresses): New arg "byte_order". All callers
3732 updated. Handle DEBUG_LOC_START_LENGTH.
3733 (dwarf2_find_location_expression): Handle DEBUG_LOC_START_LENGTH.
3734 (loclist_describe_location): Ditto.
3735
3736 2012-06-14 Maciej W. Rozycki <macro@codesourcery.com>
3737
3738 PR backtrace/13866
3739 * infrun.c (handle_inferior_event): Re-fetch frame and gdbarch
3740 after hiding inline functions.
3741
3742 2012-06-13 Joel Brobecker <brobecker@adacore.com>
3743
3744 * inf-ttrace.c (_initialize_hppa_hpux_nat): Rename into
3745 _initialize_inf_ttrace.
3746
3747 2012-06-13 Joel Brobecker <brobecker@adacore.com>
3748
3749 * ia64-hpux-nat.c (_initialize_ia64_hpux_nat): Renames
3750 _initialize_hppa_hpux_nat.
3751
3752 2012-06-13 Joel Brobecker <brobecker@adacore.com>
3753
3754 * remote-sim.c (sim_command_completer): Change type of return
3755 value to "VEC (char_ptr) *". Adjust implementation accordingly.
3756
3757 2012-06-13 Mark Kettenis <kettenis@gnu.org>
3758 Jan Kratochvil <jan.kratochvil@redhat.com>
3759
3760 PR tdep/14222
3761 * i386-tdep.c (i386_push_dummy_call): Unconditionally align the
3762 stack on a 16-byte boundary.
3763
3764 2012-06-13 Kaushik Srenevasan <kaushik@twitter.com>
3765
3766 * jit.c (finalize_symtab): Set function's return type to 'void' by
3767 default.
3768
3769 2012-06-13 Mark Kettenis <kettenis@gnu.org>
3770 H.J. Lu <hongjiu.lu@intel.com>
3771
3772 * amd64-linux-tdep.c (amd64_linux_init_abi_common): New function.
3773 Move bits common to both the classic LP64 and the new x32 ILP32
3774 ABI here.
3775 (amd64_linux_init_abi): Call amd64_linux_init_abi_common.
3776 (amd64_x32_linux_init_abi): New function.
3777 (_initialize_amd64_linux_tdep): Register osabi for bfd_mach_x64_32
3778 subtype.
3779
3780 * i386-tdep.h (i386_pseudo_register_name): New prototype.
3781 * i386-tdep.c (i386_pseudo_register_name): Make public.
3782 * amd64-tdep.h (amd64_x32_init_abi): New prototype.
3783 * amd64-tdep.c (amd64_dword_names): Add "eip".
3784 (amd64_x32_pseudo_register_type): New function
3785 (amd64_x32_init_abi): New function.
3786
3787 2012-06-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3788
3789 PR build/14003
3790 * inferior.h (struct inferior_suspend_state): Comment out.
3791 (struct inferior): Comment out the field suspend.
3792 * infrun.c (struct infcall_suspend_state): Comment out the field
3793 inferior_suspend.
3794 (save_infcall_suspend_state, restore_infcall_suspend_state): Comment
3795 out its assignment.
3796
3797 2012-06-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3798
3799 PR c++/14177 - Fix parsing TYPENAME:: in parentheses.
3800 * c-exp.y (classify_inner_name): Remove caller assumptions in the
3801 function comment. Return ERROR for unresolved cases. Implement
3802 returning proper NAME.
3803 (yylex): Accept also NAME from classify_inner_name.
3804 * cp-namespace.c (cp_lookup_nested_type): Rename to ...
3805 (cp_lookup_nested_symbol): ... here. Return any found symbol, not just
3806 LOC_TYPEDEF type.
3807 * cp-support.h (cp_lookup_nested_type): Update its declaration.
3808
3809 2012-06-13 Tom Tromey <tromey@redhat.com>
3810
3811 * breakpoint.c (condition_completer): New function.
3812 (_initialize_breakpoint): Use it.
3813 * value.c (complete_internalvar): New function.
3814 * value.h (complete_internalvar): Declare.
3815
3816 2012-06-13 Tom Tromey <tromey@redhat.com>
3817
3818 * ada-lang.c (ada_make_symbol_completion_list): Return a VEC.
3819 * breakpoint.c (catch_syscall_completer): Return a VEC.
3820 * cli/cli-cmds.c (complete_command): Update.
3821 * cli/cli-decode.c (complete_on_cmdlist): Return a VEC.
3822 (complete_on_enum): Likewise.
3823 * command.h: Include gdb_vecs.h.
3824 (completer_ftype): Change return type.
3825 (complete_on_cmdlist, complete_on_enum): Likewise.
3826 * completer.c (noop_completer, filename_completer)
3827 (location_completer): Return a VEC.
3828 (add_struct_fields): Remove 'nextp' argument. Change 'output'
3829 to a VEC.
3830 (expression_completer, complete_line_internal, complete_line)
3831 (command_completer): Return a VEC.
3832 (gdb_completion_word_break_characters, line_completion_function):
3833 Update.
3834 * completer.h: Include gdb_vecs.h.
3835 (complete_line, noop_completer, filename_completer)
3836 (expression_completer, location_completer, command_completer):
3837 Update.
3838 * f-lang.c (f_word_break_characters): Return a VEC.
3839 * interps.c (interpreter_completer): Return a VEC.
3840 * language.h (struct language_defn)
3841 <la_make_symbol_completion_list>: Return a VEC.
3842 * python/py-cmd.c (cmdpy_completer): Return a VEC.
3843 * symtab.c (free_completion_list): Take a VEC.
3844 (return_val_size, return_val_index): Remove.
3845 (return_val): Now a VEC.
3846 (completion_list_add_name): Update.
3847 (default_make_symbol_completion_list_break_on)
3848 (default_make_symbol_completion_list, make_symbol_completion_list)
3849 (make_symbol_completion_list_fn, make_file_symbol_completion_list):
3850 Return a VEC.
3851 (add_filename_to_list): Update.
3852 (struct add_partial_filename_data) <list_used, list_alloced>: Remove.
3853 <list>: Now a VEC.
3854 (maybe_add_partial_symtab_filename): Update.
3855 (make_source_files_completion_list): Return a VEC.
3856 * symtab.h (default_make_symbol_completion_list_break_on)
3857 (default_make_symbol_completion_list, make_symbol_completion_list)
3858 (make_symbol_completion_list_fn, make_file_symbol_completion_list)
3859 (make_source_files_completion_list): Update.
3860
3861 2012-06-13 Tom Tromey <tromey@redhat.com>
3862
3863 * breakpoint.c (add_catch_command): Use completer_ftype.
3864 * breakpoint.h: Include command.h.
3865 (add_catch_command): Use completer_ftype.
3866 * cli/cli-decode.c (set_cmd_completer): Use completer_ftype.
3867 * cli/cli-decode.h (struct cmd_list_element) <completer>:
3868 Use completer_ftype.
3869 * command.h (completer_ftype): New typedef.
3870 (set_cmd_completer): Use it.
3871 * python/py-cmd.c (struct cmdpy_completer) <completer>: Use
3872 completer_ftype.
3873
3874 2012-06-13 Pedro Alves <palves@redhat.com>
3875
3876 Partial revert of previous change.
3877
3878 * serial.c (scb_base): New global.
3879 (serial_for_fd): New.
3880 (serial_open, serial_fdopen_ops): Link new serial in open serials
3881 chain.
3882 (do_serial_close): Unlink serial from the open serials chain.
3883
3884 2012-06-12 Pedro Alves <palves@redhat.com>
3885
3886 * infrun.c (infrun_thread_stop_requested_callback): Don't switch
3887 threads here.
3888 (prepare_for_detach): No longer context switch here in non-stop
3889 mode.
3890 (fetch_inferior_event): Ditto.
3891 (handle_inferior_event) <STOP_QUIETLY || NO_STOP_QUIETLY>: Switch
3892 to the event thread before removing breakpoints. Switch to the
3893 event thread before inserting breakpoints and resuming.
3894 (handle_inferior_event) <TARGET_WAITKIND_SPURIOUS>: Switch to the
3895 event thread before resuming.
3896 (handle_inferior_event) <stepping_past_singlestep_breakpoint>:
3897 Switch to the event thread before removing breakpoints.
3898
3899 2012-06-12 Eli Zaretskii <eliz@gnu.org>
3900
3901 * infcmd.c (construct_inferior_arguments) [__MINGW32__]: Quote
3902 special characters correctly for the Windows shells. See
3903 http://sourceware.org/ml/gdb/2012-06/msg00047.html for the bug
3904 report.
3905 [!__MINGW32__]: Remove extra double quote character from special
3906 characters.
3907
3908 2012-06-11 Stan Shebs <stan@codesourcery.com>
3909
3910 * ui-out.h: Remove #if 0 declarations.
3911 * ui-out.c: Remove #if 0 functions.
3912
3913 2012-06-11 Pedro Alves <palves@redhat.com>
3914
3915 * ser-base.c (run_async_handler_and_reschedule): New.
3916 (fd_event, push_event): Use it.
3917 * serial.c (serial_open, serial_fdopen_ops): Set the initial
3918 reference count to 1.
3919 (do_serial_close): Set the bufp field to NULL. Use serial_unref
3920 instead of xfree.
3921 (serial_is_open, serial_ref, serial_unref): New.
3922 * serial.h (serial_open): Adjust comment.
3923 (serial_is_open): Declare.
3924 (serial_close): Adjust comment.
3925 (serial_ref, serial_unref) Declare.
3926 (struct serial): New field 'refcnt'.
3927
3928 2012-06-11 Pedro Alves <palves@redhat.com>
3929
3930 Remove #if 0'd "connect" command, and unnecessary associated
3931 refcounting and serial reuse bits.
3932
3933 * serial.h (struct serial): Remove fields 'next' and 'refcnt'.
3934 * serial.c (last_serial_opened): Delete.
3935 (scb_base): Delete.
3936 (serial_open): Adjust.
3937 (serial_for_fd): Delete.
3938 (serial_fdopen_ops, do_serial_close): Adjust.
3939 (serial_fdopen_ops): Adjust.
3940
3941 2012-06-11 Pedro Alves <palves@redhat.com>
3942
3943 * serial.c (do_serial_close): Remove early return when SCB is
3944 null.
3945
3946 2012-06-11 Tom Tromey <tromey@redhat.com>
3947
3948 * dwarf2read.c (dw2_get_file_names_reader): Ignore partial units.
3949
3950 2012-06-11 Jan Kratochvil <jan.kratochvil@redhat.com>
3951
3952 Fix regression by the "ambiguous linespec" series.
3953 * breakpoint.c (parse_breakpoint_sals): New variable cursal. Use
3954 get_last_displayed_symtab and get_last_displayed_line and depending
3955 on CURSAL.
3956
3957 2012-06-11 Tom Tromey <tromey@redhat.com>
3958
3959 * dwarf2read.c (dw2_get_primary_filename_reader): New function.
3960 (dw2_find_symbol_file): Use it.
3961
3962 2012-06-11 Michael Eager <eager@eagercon.com>
3963
3964 * mips-linux-tdep.c (mips_gdb_signal_from_target): New
3965 * mips-linux-tdep.h (mips_signals): New
3966
3967 2012-06-11 Tom Tromey <tromey@redhat.com>
3968
3969 * infrun.c (handle_inferior_event)
3970 <BPSTAT_WHAT_SET_LONGJMP_RESUME>: Don't delete the step-resume
3971 breakpoint.
3972 <BPSTAT_WHAT_CLEAR_LONGJMP_RESUME>: Remove longjmp logic; use
3973 exception logic in all cases. Update comments.
3974 (insert_longjmp_resume_breakpoint): Set the exception resume
3975 breakpoint.
3976
3977 2012-06-11 Maciej W. Rozycki <macro@codesourcery.com>
3978
3979 * mips-tdep.c (mips_push_dummy_code): Handle microMIPS code.
3980
3981 2012-06-09 Siva Chandra Reddy <sivachandra@google.com>
3982
3983 * valarith.c (binop_types_user_defined_p): Fix a typo.
3984
3985 2012-06-08 Yao Qi <yao@codesourcery.com>
3986 Chung-Lin Tang <cltang@codesourcery.com>
3987
3988 * arch-utils.c (default_return_in_first_hidden_param_p): New.
3989 * arch-utils.h: Declare.
3990 * gdbarch.sh: Add return_in_first_hidden_param_p.
3991 * gdbarch.c, gdbarch.h: Regenerated.
3992 * infcall.c (call_function_by_hand): Call
3993 gdbarch_return_in_first_hidden_param_p instead of
3994 language_pass_by_reference.
3995
3996 * m68k-tdep.c (m68k_return_in_first_hidden_param_p): New.
3997 (m68k_gdbarch_init): Install m68k_return_in_first_hidden_param_p.
3998 * sh-tdep.c (sh_return_in_first_hidden_param_p): New.
3999 (sh_gdbarch_init): Install sh_return_in_first_hidden_param_p.
4000 * tic6x-tdep.c (tic6x_push_dummy_call): Remove local variable
4001 `cplus_return_struct_by_reference'.
4002 (tic6x_return_value): Handle language cplusplus.
4003 (tic6x_return_in_first_hidden_param_p): New.
4004 (tic6x_gdbarch_init): Install tic6x_return_in_first_hidden_param_p.
4005
4006 2012-06-07 Doug Evans <dje@google.com>
4007
4008 * dwarf2read.c (dwarf2_cu): Add comment.
4009
4010 2012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
4011
4012 * mips-tdep.c (mips_pseudo_register_type): Remove tdep local
4013 variable.
4014 (mips_eabi_push_dummy_call): Likewise.
4015 (mips_n32n64_push_dummy_call): Likewise.
4016 (mips_o32_push_dummy_call): Likewise.
4017 (mips_o64_push_dummy_call): Likewise.
4018
4019 2012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
4020
4021 * mips-tdep.c (mips_convert_register_p): Correct coding style.
4022
4023 2012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
4024
4025 * mips-tdep.c (mips_pseudo_register_type): Use
4026 mips_float_register_p.
4027
4028 2012-06-06 Pedro Alves <palves@redhat.com>
4029
4030 * infrun.c (handle_inferior_event): Remove calls to
4031 reinit_frame_cache that follow a context_switch call.
4032
4033 2012-06-06 Pedro Alves <palves@redhat.com>
4034
4035 * infrun.c (handle_inferior_event) <deferred_step_ptid>: Use
4036 context_switch and remove stale comment.
4037
4038 2012-06-06 Pedro Alves <palves@redhat.com>
4039
4040 * infrun.c (struct execution_control_state): Remove
4041 `new_thread_event' field.
4042 (handle_inferior_event): Simplify new threads handling; don't
4043 resume the inferior if we find a new thread.
4044
4045 2012-06-06 Thomas Schwinge <thomas@codesourcery.com>
4046
4047 * NEWS: Document the deprecation of SH's 'regs' command.
4048 * inferior.h (all_registers_info): Add function declaration.
4049 * sh-tdep.c (sh_show_regs): Remove variable.
4050 (sh_generic_show_regs, sh3_show_regs, sh2e_show_regs, sh2a_show_regs)
4051 (sh2a_nofpu_show_regs, sh3e_show_regs, sh3_dsp_show_regs)
4052 (sh4_show_regs, sh4_nofpu_show_regs, sh_dsp_show_regs)
4053 (sh_show_regs_command): Remove functions.
4054 (sh_gdbarch_init): Don't set sh_show_regs.
4055 (_initialize_sh_tdep): Make the 'regs' command an deprecated alias to
4056 'info all-registers'.
4057 * sh64-tdep.c (sh64_show_media_regs, sh64_show_compact_regs)
4058 (sh64_show_regs): Remove functions.
4059 * sh64-tdep.h (sh64_show_regs): Remove function declaration.
4060
4061 2012-06-06 Jan Kratochvil <jan.kratochvil@redhat.com>
4062
4063 * configure.ac: Move development=true below AC_INIT.
4064 * configure: Regenerate.
4065
4066 2012-06-05 Stan Shebs <stan@codesourcery.com>
4067
4068 * mi/mi-interp.c (mi_interpreter_init): Set raw_stdout from
4069 gdb_stdout.
4070
4071 2012-06-05 Siddhesh Poyarekar <siddhesh@redhat.com>
4072
4073 * corefile.c (read_memory, read_stack, write_memory): Accept LEN
4074 argument as ssize_t.
4075 * gdbcore.h (read_memory, read_stack, write_memory): Likewise.
4076 * remote.c (remote_write_bytes_aux, remote_write_bytes): Likewise.
4077 * target.c (target_read_stack, target_write_memory)
4078 (target_write_raw_memory): Likewise.
4079 * target.h (target_read_stack, target_write_memory)
4080 (target_write_raw_memory): Likewise.
4081
4082 2012-06-05 Jan Kratochvil <jan.kratochvil@redhat.com>
4083
4084 * symfile-mem.c: Change gdb_static_assert to ssize_t.
4085 (target_read_memory_bfd): Cast gdb_assert LEN to ssize_t.
4086 * target.c (target_read_memory): Change LEN to ssize_t.
4087 * target.h (target_read_memory): Change LEN to ssize_t.
4088
4089 2012-06-05 Pedro Alves <palves@redhat.com>
4090
4091 PR backtrace/13866
4092
4093 * breakpoint.c (until_break_command): Only fetch the selected
4094 frame after decode_line_1.
4095
4096 2012-06-05 Joakim Tjernlund <Joakim.Tjernlund@transmode.se>
4097
4098 * solib-svr4.c (enable_break): Don't fallback to setting the solib
4099 event breakpoint at _start, __start or main if a program
4100 interpreter is not found.
4101
4102 2012-06-05 Joel Brobecker <brobecker@adacore.com>
4103
4104 * windows-tdep.h (windows_iterate_over_objfiles_in_search_order):
4105 Add declaration.
4106 * windows-tdep.c: #include "objfiles.h".
4107 (windows_iterate_over_objfiles_in_search_order): New function.
4108 * amd64-windows-tdep.c (amd64_windows_init_abi): Set
4109 iterate_over_objfiles_in_search_order gdbarch method to
4110 windows_iterate_over_objfiles_in_search_order.
4111 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Likewise.
4112
4113 2012-06-05 Joel Brobecker <brobecker@adacore.com>
4114
4115 * gdbarch.sh: Add generation of
4116 "iterate_over_objfiles_in_search_order_cb_ftype" typedef in
4117 gdbarch.h. Add include of "objfiles.h" in gdbarch.c.
4118 (iterate_over_objfiles_in_search_order): New gdbarch method.
4119 * gdbarch.h, gdbarch.c: Regenerate.
4120 * objfiles.h (default_iterate_over_objfiles_in_search_order):
4121 Add declaration.
4122 * objfiles.c (default_iterate_over_objfiles_in_search_order):
4123 New function.
4124 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
4125 out of lookup_symbol_aux_symtabs.
4126 (lookup_symbol_aux_symtabs): Replace extracted-out code by
4127 call to lookup_symbol_aux_objfile.
4128 (struct global_sym_lookup_data): New type.
4129 (lookup_symbol_global_iterator_cb): New function.
4130 (lookup_symbol_global): Search for symbol using
4131 gdbarch_iterate_over_objfiles_in_search_order and
4132 lookup_symbol_global_iterator_cb.
4133 * findvar.c (struct minsym_lookup_data): New type.
4134 (minsym_lookup_iterator_cb): New function.
4135 (default_read_var_value) [case LOC_UNRESOLVED]: Resolve the
4136 symbol's address via gdbarch_iterate_over_objfiles_in_search_order
4137 and minsym_lookup_iterator_cb.
4138
4139 2012-06-05 Joel Brobecker <brobecker@adacore.com>
4140
4141 Revert the following patch:
4142 * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
4143 try locating the symbol in the symbol's own objfile first, before
4144 extending the search to all objfiles.
4145 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
4146 out of lookup_symbol_aux_symtabs.
4147 (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
4148 Replace extracted-out code by call to lookup_symbol_aux_objfile.
4149 Do not search EXCLUDE_OBJFILE.
4150 (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
4151 (lookup_symbol_global): Search for matches in the block's objfile
4152 first, before searching all other objfiles.
4153
4154 2012-06-05 Joel Brobecker <brobecker@adacore.com>
4155
4156 * breakpoint.c (find_condition_and_thread): Stop parsing
4157 as soon as the first invalid keyword is found.
4158
4159 2012-06-05 Joel Brobecker <brobecker@adacore.com>
4160
4161 * copyright.py (EXCLUDE_LIST): Add 'gdb/CONTRIBUTE' to list.
4162
4163 2012-06-05 Joel Brobecker <brobecker@adacore.com>
4164
4165 * config/djgpp/djcheck.sh: Add copyright header.
4166
4167 2012-06-05 Joel Brobecker <brobecker@adacore.com>
4168
4169 * copyright.py (update_files, main): Fix path to update-copyright
4170 script.
4171
4172 2012-06-05 Joel Brobecker <brobecker@adacore.com>
4173
4174 * copyright.py (MULTIPLE_COPYRIGHT_HEADERS): New constant.
4175 (main): Add MULTIPLE_COPYRIGHT_HEADERS to the list of files
4176 for which a reminder to update by hand is printed.
4177
4178 2012-06-04 Doug Evans <dje@google.com>
4179
4180 * buildsym.c (make_blockvector): Add comment.
4181
4182 2012-06-04 Pedro Alves <palves@redhat.com>
4183
4184 * arch-utils.c (default_gdb_signal_from_target): Delete.
4185 * arch-utils.h (default_gdb_signal_from_target): Delete.
4186 * corelow.c (core_open) <signal mapping>: Extended comment. Check
4187 gdbarch_gdb_signal_from_target_p.
4188 * gdbarch.sh (gdb_signal_from_target): Make it an M method (with
4189 predicate).
4190 * gdbarch.h: Regenerate.
4191 * gdbarch.c: Regenerate.
4192
4193 2012-06-04 Pedro Alves <palves@redhat.com>
4194
4195 * gdbarch.sh (gdb_signal_from_target): Mention that the
4196 implementation of the method must be host independent.
4197 * gdbarch.h: Regenerate.
4198
4199 2012-06-04 Jan Kratochvil <jan.kratochvil@redhat.com>
4200
4201 * symfile-mem.c: 3 new gdb_static_assert for target_read_memory_bfd
4202 parameters.
4203 (target_read_memory_bfd): New function.
4204 (symbol_file_add_from_memory): Use it.
4205
4206 2012-06-03 Doug Evans <dje@google.com>
4207
4208 * symtab.c (lookup_global_symbol_from_objfile): Only scan blockvector
4209 of primary symtab.
4210 (basic_lookup_transparent_type): Ditto.
4211
4212 * objfiles.h (ALL_OBJFILE_PRIMARY_SYMTABS): New macro.
4213 (ALL_PRIMARY_SYMTABS): Use it.
4214 (ALL_PSPACE_PRIMARY_SYMTABS): Ditto.
4215 * dwarf2read.c (dw2_find_symbol_file): Ditto.
4216 * linespec.c (iterate_over_all_matching_symtabs): Ditto.
4217 * symtab.c (lookup_symbol_aux_objfile): Ditto.
4218 (basic_lookup_transparent_type): Ditto.
4219
4220 2012-06-02 Sergio Durigan Junior <sergiodj@redhat.com>
4221
4222 * symtab.c (symbol_demangled_name): New variable `dem_name'. Use
4223 it to optimize resolution of demangled name.
4224
4225 2012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4226
4227 * configure.ac (development): Define new variable.
4228 Call AC_CHECK_LIB for mcheck if $development.
4229 (ERROR_ON_WARNING): Enable it by default only if $development.
4230 * config.in: Regenerate.
4231 * configure: Regenerate.
4232
4233 2012-06-01 Siddhesh Poyarekar <siddhesh@redhat.com>
4234
4235 * target.c (target_read_memory): Make LEN argument as size_t.
4236 * target.h (target_read_memory): Likewise.
4237
4238 2012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4239
4240 * tilegx-linux-tdep.c (tilegx_l): Use ULL for 64-bit values.
4241
4242 2012-05-31 Edjunior Machado <emachado@linux.vnet.ibm.com>
4243
4244 * ppc-linux-nat.c (have_ptrace_booke_interface): Disable ptrace
4245 BookE interface for PowerPC server processors if not available
4246 in the Linux Kernel.
4247
4248 2012-05-31 Keith Seitz <keiths@redhat.com>
4249
4250 * linespec.c (decode_objc): Add cleanup to free
4251 INFO.FILE_SYMTABS.
4252 (find_linespec_symbols): Add cleanup to free CLASSES.
4253 * symfile.c (find_separate_debug_file_by_debuglink): Add
4254 cleanup to free DEBUGLINK.
4255 * ui-out.c (clear_header_list): No need to check if
4256 HEADER_NEXT.COLHDR is NULL.
4257 Free HEADER_NEXT.COL_NAME.
4258
4259 2012-05-31 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
4260
4261 * ada-lang.c (standard_lookup): Prevent uninitialized variable
4262 warning.
4263
4264 2012-05-30 Jeff Kenton <jkenton@tilera.com>
4265
4266 * configure.host (gdb_host_cpu): Handle tilegx*.
4267 (gdb_host): Handle tilegx-*-linux*.
4268 * tilegx-linux-nat.c: New file.
4269 * config/tilegx/linux.mh: New file.
4270
4271 2012-05-30 Jeff Kenton <jkenton@tilera.com>
4272
4273 * Makefile.in (ALL_TARGET_OBJS): Add tilegx-tdep.o and
4274 tilegx-linux-tdep.o.
4275 (ALLDEPFILES): Add tilegx-linux-nat.c, tilegx-tdep.c and
4276 tilegx-linux-tdep.c.
4277 * configure.tgt: Handle tilegx-*-linux*.
4278 * tilegx-tdep.h: New file.
4279 * tilegx-tdep.c: New file.
4280 * tilegx-linux-tdep.c: New file.
4281 * regformats/reg-tilegx.dat: New file.
4282
4283 2012-05-30 Edjunior Machado <emachado@linux.vnet.ibm.com>
4284
4285 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): fix
4286 accounting of hw watchpoints on ppc.
4287
4288 2012-05-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
4289
4290 * source.c (openp): Expand tilde in path entries.
4291
4292 2012-05-29 Doug Evans <dje@google.com>
4293
4294 * buildsym.c (block_compar): Fix comment.
4295 (end_symtab): Fix and clarify some comments.
4296
4297 * stabsread.h (cleanup_undefined_stabs_types): Renamed from
4298 cleanup_undefined_types.
4299 * stabsread.c (cleanup_undefined_stabs_types): Ditto.
4300 All callers updated.
4301
4302 2012-05-29 Tom Tromey <tromey@redhat.com>
4303
4304 * symfile.c (symfile_bfd_open): Don't close desc if bfd_fopen
4305 fails.
4306 * solib.c (solib_bfd_fopen): Don't close fd if bfd_fopen fails.
4307 * exec.c (exec_file_attach): Don't close scratch_chan if bfd_fopen
4308 fails.
4309 * dwarf2read.c (try_open_dwo_file): Don't close fd if bfd_fopen
4310 fails.
4311
4312 2012-05-29 Tristan Gingold <gingold@adacore.com>
4313
4314 * solib-darwin.c (dyld_all_image_addr, dyld_all_image): Move into...
4315 (struct darwin_info): ... New struct.
4316 (solib_darwin_pspace_data): New variable.
4317 (darwin_pspace_data_cleanup): New function.
4318 (get_darwin_info): Likewise.
4319 (darwin_dyld_version_ok, darwin_load_image_infos)
4320 (darwin_solib_get_all_image_info_addr_at_init)
4321 (darwin_solib_read_all_image_info_addr): Add info argument.
4322 Adjust code.
4323 (darwin_current_sos): Use per pspace structure.
4324 (darwin_solib_create_inferior_hook): Likewise.
4325 (darwin_clear_solib): Likewise.
4326 (_initialize_darwin_solib): Initialize solib_darwin_pspace_data.
4327
4328 2012-05-28 Pedro Alves <palves@redhat.com>
4329
4330 * infrun.c (wait_for_inferior): Move ecss and ecs locals to the
4331 block that uses them. Clear ecss before handling each event.
4332
4333 2012-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4334
4335 * solib-svr4.c (svr4_current_sos): New comment on
4336 svr4_current_sos_via_xfer_libraries fall back.
4337
4338 2012-05-24 Jan Kratochvil <jan.kratochvil@redhat.com>
4339
4340 * psymtab.c (lookup_symbol_aux_psymtabs): New variable stab_best. Use
4341 it as a fallback for TYPE_IS_OPAQUE.
4342 * symfile.h (struct quick_symbol_functions): Mention TYPE_OPAQUE
4343 symbols for lookup_symbol.
4344
4345 2012-05-24 John Steele Scott <toojays@toojays.net>
4346
4347 PR symtab/13277: Resolving opaque structures in ICC generated binaries.
4348 * dwarf2read.c (struct dwarf2_cu) <producer_is_icc>: New field.
4349 (producer_is_gxx_lt_4_6): Move the checking and caching to...
4350 (check_producer): ... this new function, which also checks for ICC
4351 and caches the result.
4352 (producer_is_icc): New function.
4353 (read_structure_type): Don't set TYPE_STUB_SUPPORTED if the
4354 producer was ICC.
4355
4356 2012-05-24 Pedro Alves <palves@redhat.com>
4357
4358 PR gdb/7205
4359
4360 * arch-utils.c (default_gdb_signal_to_host): Rename to ...
4361 (default_gdb_signal_to_target): ... this. Add comment.
4362 (default_gdb_signal_from_host): Rename to ...
4363 (default_gdb_signal_from_target): ... this. Add comment.
4364 * arch-utils.h (default_gdb_signal_to_host): Rename to ...
4365 (default_gdb_signal_to_target): ... this.
4366 (default_gdb_signal_from_host): Rename to ...
4367 (default_gdb_signal_from_target): ... this.
4368 * corelow.c (core_open): Adjust to naming change. Replace comment.
4369 * gdbarch.sh (gdb_signal_from_host): Rename to ...
4370 (gdb_signal_from_target): ... this. Adjust to
4371 default_gdb_signal_from_host naming change. Extend comment.
4372 (gdb_signal_to_host): Rename to ...
4373 (gdb_signal_to_target): ... this. Adjust to
4374 default_gdb_signal_to_host naming change.
4375 * gdbarch.h, gdbarch.c: Renegerate.
4376
4377 2012-05-24 Pedro Alves <palves@redhat.com>
4378
4379 PR gdb/7205
4380
4381 Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
4382
4383 2012-05-24 Pedro Alves <palves@redhat.com>
4384
4385 PR gdb/7205
4386
4387 Replace target_signal with gdb_signal throughout.
4388
4389 2012-05-24 Pedro Alves <palves@redhat.com>
4390
4391 PR tui/14159
4392
4393 * tui/tui-hooks.c (tui_query_hook): Pre-compute the question
4394 string, instead of reusing the va_list argument.
4395
4396 2012-05-24 Tom Tromey <tromey@redhat.com>
4397
4398 * cp-support.h (cp_finalize_namespace, cp_initialize_namespace):
4399 Remove.
4400
4401 2012-05-23 Doug Evans <dje@google.com>
4402
4403 * symtab.c (search_symbols): Formatting fixes.
4404 (print_symbol_info): Formatting fixes.
4405
4406 * dwarf2-frame.c (execute_cfa_program): Update to handle long long ->
4407 int64_t change to leb128 API.
4408 (read_encoded_value, decode_frame_entry_1): Ditto.
4409 * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Ditto.
4410 (dwarf_block_to_dwarf_reg, dwarf_block_to_dwarf_reg_deref): Ditto.
4411 (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
4412 (execute_stack_op): Ditto.
4413 * dwarf2expr.h (gdb_read_uleb128, gdb_read_sleb128): Ditto.
4414 (safe_read_uleb128, safe_read_sleb128): Ditto.
4415 * dwarf2loc.c (decode_debug_loc_dwo_addresses): Ditto.
4416 (dwarf2_compile_expr_to_ax): Ditto.
4417 (locexpr_describe_location_piece): Ditto.
4418 (disassemble_dwarf_expression): Ditto.
4419 (locexpr_describe_location_1): Ditto.
4420
4421 2012-05-23 Stan Shebs <stan@codesourcery.com>
4422 Kwok Cheung Yeung <kcy@codesourcery.com>
4423
4424 * Makefile.in (SUBDIR_MI_OBS): Add mi-cmd-info.o.
4425 (SUBDIR_MI_SRCS): Add mi-cmd-info.c.
4426 (mi-cmd-info.o): New rule.
4427 * osdata.h (info_osdata_command): New declaration.
4428 * osdata.c (info_osdata_command): Change to non-static.
4429 * mi/mi-cmds.h (mi_cmd_info_os): New declaration.
4430 * mi/mi-cmds.c (mi_cmds): Add -info-os MI command.
4431 * mi/mi-cmd-info.c: New file.
4432
4433 2012-05-23 Doug Evans <dje@google.com>
4434
4435 * symtab.c (search_symbols): Pass NULL for file_matcher to
4436 expand_symtabs_matching if there are no files to match.
4437
4438 * gdbtypes.c (lookup_typename): Simplify.
4439
4440 2012-05-23 Pedro Alves <palves@redhat.com>
4441
4442 * arch-utils.h (default_target_signal_to_host): Delete.
4443 * arch-utils.c (default_target_signal_to_host): Delete.
4444 * gdbarch.sh (target_signal_to_host): Remove.
4445 * gdbarch.h, gdbarch.c: Regenerate.
4446
4447 2012-05-22 Doug Evans <dje@google.com>
4448
4449 * dwarf2-frame.c (struct dwarf2_cie): Make initial_instructions, end
4450 "const gdb_byte *".
4451 (struct dwarf2_fde): Make instructions, end "const gdb_byte *".
4452 (execute_cfa_program): Update to match API of leb128 functions.
4453 (read_1_byte, read_4_bytes, read_8_bytes): Make buf parameter
4454 "const gdb_byte *".
4455 (read_unsigned_leb128, read_signed_leb128): Delete.
4456 (read_initial_length): Change type of buf argument to
4457 "const gdb_byte *".
4458 (read_encoded_value): Update to match API of leb128 functions.
4459 (decode_frame_entry): Change result to "const gdb_byte *", and
4460 similarly for "start" parameter.
4461 (decode_frame_entry_1): Ditto. Use new leb128 reader functions.
4462 (dwarf2_build_frame_info): Change local frame_ptr to
4463 "const gdb_byte *".
4464 * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Replaces
4465 read_uleb128, read_sleb128. All callers updated.
4466 (safe_skip_leb128): New function.
4467 (dwarf_block_to_dwarf_reg): Update to match API of leb128 functions.
4468 Call gdb_read_uleb128, gdb_skip_leb128 instead of read_uleb128.
4469 (dwarf_block_to_dwarf_reg_deref): Update to match API of leb128
4470 functions. Call gdb_read_uleb128, gdb_read_sleb128 instead of
4471 read_uleb128, read_sleb128.
4472 (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
4473 (execute_stack_op): Update to match API of leb128 functions.
4474 * dwarf2expr.h: #include "leb128.h".
4475 (read_uleb128, read_sleb128): Delete.
4476 (gdb_read_uleb128, gdb_read_sleb128, gdb_skip_leb128): New functions.
4477 (safe_read_uleb128, safe_read_sleb128, safe_skip_leb128): Declare.
4478 * dwarf2loc.c (debug_loc_kind): New enum.
4479 (decode_debug_loc_addresses): New function.
4480 (decode_debug_loc_dwo_addresses): New function.
4481 (dwarf2_find_location_expression): Rewrite.
4482 (dwarf2_compile_expr_to_ax): Update to match API of leb128 functions.
4483 (locexpr_describe_location_piece): Ditto.
4484 (disassemble_dwarf_expression): Ditto.
4485 (locexpr_describe_location_1): Ditto.
4486 (loclist_describe_location): Rewrite.
4487 * dwarf2loc.h (dwarf2_loclist_baton): New member "from_dwo".
4488 * dwarf2read.c (die_reader_specs): New member "buffer_end".
4489 (dwarf2_section_buffer_overflow_complaint): Renamed from
4490 dwarf2_macros_too_long_complaint. All callers updated.
4491 (skip_leb128): Delete.
4492 (init_cu_die_reader): Initialize reader->buffer_end.
4493 (skip_one_die): Replace call to skip_leb128 with safe_skip_leb128.
4494 (skip_form_bytes): New arg buffer_end. All callers updated.
4495 Replace call to skip_leb128 with gdb_skip_leb128.
4496 (skip_unknown_opcode): New arg mac_end. All callers updated.
4497 (fill_in_loclist_baton): Initialize baton->from_dwo.
4498
4499 2012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
4500
4501 * mips-linux-nat.c (mips_linux_read_description): Use a more
4502 verbose error message.
4503
4504 2012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
4505
4506 * NEWS: Add MIPS/Linux DSP support.
4507 * mips-linux-tdep.c: Document post-2.6.12 o32 sigcontext layout.
4508 (SIGCONTEXT_DSPCTL): New macro.
4509 (SIGCONTEXT_HI1, SIGCONTEXT_LO1): Likewise.
4510 (SIGCONTEXT_HI2, SIGCONTEXT_LO2): Likewise.
4511 (SIGCONTEXT_HI3, SIGCONTEXT_LO3): Likewise.
4512 (N64_SIGCONTEXT_HI1, N64_SIGCONTEXT_HI2): Likewise.
4513 (N64_SIGCONTEXT_HI3): Likewise.
4514 (N64_SIGCONTEXT_LO1, N64_SIGCONTEXT_LO2): Likewise.
4515 (N64_SIGCONTEXT_LO3): Likewise.
4516 (N64_SIGCONTEXT_DSPCTL): Likewise.
4517 (N64_SIGCONTEXT_FPCSR): Clarify definition.
4518 (mips_linux_o32_sigframe_init): Handle DSP registers.
4519 (mips_linux_n32n64_sigframe_init): Likewise.
4520
4521 2012-05-22 Pierre Muller <muller@ics.u-strasbg.fr>
4522
4523 * common/buffer.c (buffer_grow): ARI fix: Remove unneeded
4524 call to abort.
4525
4526 2012-05-22 Pedro Alves <palves@redhat.com>
4527
4528 * target.h (store_waitstatus): Move declaration ...
4529 * inf-child.h (store_waitstatus): ... here.
4530 * target.c: Move inclusion of gdb_wait.h, and ...
4531 (store_waitstatus): ... this ...
4532 * inf-child.c: ... here.
4533 * linux-nat.c: Include inf-child.h.
4534 * rs6000-nat.c: Include inf-child.h.
4535 * spu-linux-nat.c: Include inf-child.h.
4536
4537 2012-05-22 Pierre Muller <muller@ics.u-strasbg.fr>
4538
4539 * tracepoint.c (start_tracing): Add missing i18n markup.
4540 (stop_tracing, set_trace_user): Ditto.
4541 (set_trace_notes, set_trace_stop_notes): Ditto.
4542
4543 2012-05-21 Tom Tromey <tromey@redhat.com>
4544
4545 PR c++/7173:
4546 * gnu-v3-abi.c (gnuv3_baseclass_offset): Return early for Java
4547 types.
4548 * value.h (value_cast_pointers): Update.
4549 * valops.c (value_cast_pointers): Add 'subclass_check' argument.
4550 (value_cast): Update.
4551 (update_search_result): New function.
4552 (do_search_struct_field): New, from search_struct_field. Check
4553 for ambiguous results.
4554 (search_struct_field): Rewrite.
4555 * infcall.c (value_arg_coerce): Update.
4556 * eval.c (evaluate_subexp_standard) <STRUCTOP_MEMBER>: Use
4557 value_cast_pointers.
4558 * ada-lang.c (ada_convert_actual): Update.
4559
4560 2012-05-21 Tom Tromey <tromey@redhat.com>
4561
4562 * macroexp.c (macro_stringify): Terminate the string.
4563
4564 2012-05-20 Jan Kratochvil <jan.kratochvil@redhat.com>
4565
4566 * NEWS (--with-auto-load-dir): Prepend $debugdir to the default path.
4567 Describe it.
4568 * auto-load.c (auto_load_expand_dir_vars): New function.
4569 (auto_load_safe_path_vec_update): Use it, remove the
4570 substitute_path_component call thanks to it.
4571 (auto_load_objfile_script): Remove the debug_file_directory processing.
4572 Use auto_load_expand_dir_vars, remove the substitute_path_component
4573 call thanks to it.
4574 * configure: Regenerate.
4575 * configure.ac (--with-auto-load-dir): Prepend $debugdir to the default
4576 path. Escape $ also for $debugdir.
4577 (--with_auto_load_safe_path): Escape $ also for $debugdir.
4578 * utils.c (substitute_path_component): Accept also DIRNAME_SEPARATOR.
4579
4580 2012-05-20 Doug Evans <dje@google.com>
4581
4582 * dwarf2read.c (recursively_find_pc_sect_symtab): Initialize "s"
4583 before use. Check for symtab->includes == NULL before scanning it.
4584
4585 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
4586
4587 * mips-tdep.c (mips_reg3_to_reg): Optimize storage.
4588
4589 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
4590
4591 * NEWS: Add microMIPS support and "set mips compression",
4592 "show mips compression" commands.
4593 * mips-tdep.h (mips_isa): New enum.
4594 (gdbarch_tdep): Add mips_isa.
4595 (mips_pc_is_mips16): Update prototype.
4596 (mips_pc_is_mips, mips_pc_is_micromips): New prototypes.
4597 * mips-tdep.c (mips_compression_mips16): New variable.
4598 (mips_compression_micromips): Likewise.
4599 (mips_compression_strings): Likewise.
4600 (mips_compression_string): Likewise.
4601 (is_mips16_isa, is_micromips_isa): New functions.
4602 (is_mips16_addr): Rename to...
4603 (is_compact_addr): ... this.
4604 (unmake_mips16_addr): Likewise to...
4605 (unmake_compact_addr): ... this.
4606 (make_mips16_addr): Likewise to...
4607 (make_compact_addr): ... this.
4608 (is_mips_addr, is_mips16_addr, is_micromips_addr): New
4609 functions.
4610 (mips_elf_make_msymbol_special): Handle microMIPS code.
4611 (msymbol_is_special): Rename to...
4612 (msymbol_is_mips16): ... this.
4613 (mips_make_symbol_special, mips_pc_is_mips16): Update
4614 accordingly.
4615 (msymbol_is_mips, msymbol_is_micromips): New functions.
4616 (mips16_to_32_reg): Rename to...
4617 (mips_reg3_to_reg): ... this.
4618 (mips_pc_is_mips, mips_pc_is_micromips): New functions.
4619 (mips_pc_isa): Likewise.
4620 (mips_read_pc, mips_unwind_pc, mips_write_pc): Handle microMIPS
4621 code.
4622 (mips_fetch_instruction): Pass return status instead of printing
4623 an error message if requested. Handle microMIPS code. Bail out
4624 on an invalid ISA.
4625 (micromips_op): New macro.
4626 (b0s4_imm, b0s5_imm, b0s5_reg, b0s7_imm, b0s10_imm): Likewise.
4627 (b1s9_imm, b2s3_cc, b4s2_regl, b5s5_op, b5s5_reg): Likewise.
4628 (b6s4_op, b7s3_reg): Likewise.
4629 (b0s6_op, b0s11_op, b0s12_imm, b0s16_imm, b0s26_imm): Likewise.
4630 (b6s10_ext, b11s5_reg, b12s4_op): Likewise.
4631 (mips_insn_size): New function.
4632 (mips32_next_pc): Update mips_fetch_instruction call.
4633 (micromips_relative_offset7): New function.
4634 (micromips_relative_offset10): Likewise.
4635 (micromips_relative_offset16): Likewise.
4636 (micromips_pc_insn_size): Likewise.
4637 (micromips_bc1_pc): Likewise.
4638 (micromips_next_pc): Likewise.
4639 (unpack_mips16): Update mips_fetch_instruction call.
4640 (extended_mips16_next_pc): Update according to change to
4641 mips16_to_32_reg.
4642 (mips_next_pc): Update mips_pc_is_mips16 call. Handle microMIPS
4643 code.
4644 (mips16_scan_prologue): Update mips_fetch_instruction call.
4645 Update according to change to mips16_to_32_reg.
4646 (mips_insn16_frame_sniffer): Update mips_pc_is_mips16 call.
4647 (mips_insn16_frame_base_sniffer): Likewise.
4648 (micromips_decode_imm9): New function.
4649 (micromips_scan_prologue): Likewise.
4650 (mips_micro_frame_cache): Likewise.
4651 (mips_micro_frame_this_id): Likewise.
4652 (mips_micro_frame_prev_register): Likewise.
4653 (mips_micro_frame_sniffer): Likewise.
4654 (mips_micro_frame_unwind): New variable.
4655 (mips_micro_frame_base_address): New function.
4656 (mips_micro_frame_base): New variable.
4657 (mips_micro_frame_base_sniffer): New function.
4658 (mips32_scan_prologue): Update mips_fetch_instruction call.
4659 (mips_insn32_frame_sniffer): Check for the standard MIPS ISA
4660 rather than for MIPS16.
4661 (mips_insn32_frame_base_sniffer): Likewise.
4662 (mips_addr_bits_remove): Handle microMIPS code.
4663 (deal_with_atomic_sequence): Rename to...
4664 (mips_deal_with_atomic_sequence): ... this. Update the type
4665 of the variable used to hold an instruction. Remove the ISA bit
4666 check. Update mips_fetch_instruction call.
4667 (micromips_deal_with_atomic_sequence): New function.
4668 (deal_with_atomic_sequence): Likewise.
4669 (mips_about_to_return): Handle microMIPS code. Update
4670 mips_fetch_instruction call.
4671 (heuristic_proc_start): Check for the standard MIPS ISA rather
4672 than for MIPS16. Update mips_pc_is_mips16 and
4673 mips_fetch_instruction calls. Handle microMIPS code.
4674 (mips_push_dummy_code): Handle microMIPS code.
4675 (mips_eabi_push_dummy_call): Likewise.
4676 (mips_o32_return_value): Update mips_pc_is_mips16 call.
4677 (mips_o64_push_dummy_call): Handle microMIPS code.
4678 (mips_o64_return_value): Update mips_pc_is_mips16 call.
4679 (is_delayed): Remove function.
4680 (mips_single_step_through_delay): Replace the call to is_delayed
4681 with mips32_instruction_has_delay_slot. Correct MIPS16 handling.
4682 Handle microMIPS code.
4683 (mips_skip_prologue): Update mips_pc_is_mips16 call. Handle
4684 microMIPS code.
4685 (mips32_in_function_epilogue_p): Update mips_fetch_instruction
4686 call.
4687 (micromips_in_function_epilogue_p): New function.
4688 (mips16_in_function_epilogue_p): Update mips_fetch_instruction
4689 call.
4690 (mips_in_function_epilogue_p): Update mips_pc_is_mips16 call.
4691 Handle microMIPS.
4692 (gdb_print_insn_mips): Likewise.
4693 (mips_breakpoint_from_pc): Likewise.
4694 (mips_remote_breakpoint_from_pc): New function.
4695 (mips32_instruction_has_delay_slot): Simplify making use of the
4696 updated mips_fetch_instruction interface.
4697 (micromips_instruction_has_delay_slot): New function.
4698 (mips16_instruction_has_delay_slot): Simplify making use of the
4699 updated mips_fetch_instruction interface.
4700 (mips_adjust_breakpoint_address): Check for the standard MIPS
4701 ISA rather than for MIPS16 ISA. Update for unmake_compact_addr
4702 calls. Handle microMIPS code.
4703 (mips_get_mips16_fn_stub_pc): Update mips_fetch_instruction call.
4704 (mips_skip_trampoline_code): Handle microMIPS code.
4705 (global_mips_compression): New function.
4706 (mips_gdbarch_init): Handle the compressed ISA setting from ELF
4707 file flags. Register the microMIPS remote breakpoint handler
4708 and heuristic frame unwinder.
4709 (show_mips_compression): New function.
4710 (_initialize_mips_tdep): Add the "set mips compression" and
4711 "show mips compression" commands.
4712
4713 2012-05-18 Sergio Durigan Junior <sergiodj@redhat.com>
4714
4715 * ada-lang.c:
4716 * ada-tasks.c:
4717 * ada-varobj.c:
4718 * amd64-darwin-tdep.c:
4719 * arm-symbian-tdep.c:
4720 * arm-tdep.c:
4721 * avr-tdep.c:
4722 * ax-gdb.c:
4723 * bfin-linux-tdep.c:
4724 * breakpoint.c:
4725 * c-valprint.c:
4726 * cli/cli-cmds.c:
4727 * coffread.c:
4728 * cp-support.c:
4729 * cris-tdep.c:
4730 * dwarf2-frame-tailcall.c:
4731 * dwarf2-frame.c:
4732 * dwarf2expr.c:
4733 * dwarf2loc.c:
4734 * dwarf2read.c:
4735 * elfread.c:
4736 * eval.c:
4737 * expprint.c:
4738 * f-valprint.c:
4739 * frv-tdep.c:
4740 * h8300-tdep.c:
4741 * hppa-hpux-tdep.c:
4742 * hppa-tdep.c:
4743 * hppanbsd-tdep.c:
4744 * i386-nto-tdep.c:
4745 * i386-tdep.c:
4746 * i387-tdep.c:
4747 * ia64-tdep.c:
4748 * jit.c:
4749 * linespec.c:
4750 * linux-tdep.c:
4751 * lm32-tdep.c:
4752 * m2-valprint.c:
4753 * m32c-tdep.c:
4754 * m32r-rom.c:
4755 * m32r-tdep.c:
4756 * m68k-tdep.c:
4757 * m68klinux-tdep.c:
4758 * mi/mi-main.c:
4759 * microblaze-tdep.c:
4760 * mips-linux-tdep.c:
4761 * mips-tdep.c:
4762 * mn10300-tdep.c:
4763 * p-valprint.c:
4764 * parse.c:
4765 * ppc-linux-tdep.c:
4766 * ppc-sysv-tdep.c:
4767 * printcmd.c:
4768 * python/py-finishbreakpoint.c:
4769 * python/py-inferior.c:
4770 * python/py-infthread.c:
4771 * python/py-type.c:
4772 * python/python.c:
4773 * remote-fileio.c:
4774 * remote-m32r-sdi.c:
4775 * remote-mips.c:
4776 * reverse.c:
4777 * rl78-tdep.c:
4778 * rs6000-aix-tdep.c:
4779 * rs6000-tdep.c:
4780 * s390-tdep.c:
4781 * score-tdep.c:
4782 * sh64-tdep.c:
4783 * skip.c:
4784 * solib-darwin.c:
4785 * solib-dsbt.c:
4786 * solib-frv.c:
4787 * sparc-tdep.c:
4788 * spu-multiarch.c:
4789 * spu-tdep.c:
4790 * stack.c:
4791 * symfile.c:
4792 * symtab.c:
4793 * tic6x-tdep.c:
4794 * tracepoint.c:
4795 * v850-tdep.c:
4796 * valarith.c:
4797 * valprint.c:
4798 * value.c:
4799 * xcoffread.c:
4800 * xtensa-tdep.c:
4801 * ada-lang.c:
4802 * ada-tasks.c:
4803 * ada-varobj.c:
4804 * amd64-darwin-tdep.c:
4805 * arm-symbian-tdep.c:
4806 * arm-tdep.c: Delete unused variables.
4807
4808 2012-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
4809
4810 Rename $ddir to $datadir.
4811 * NEWS (--with-auto-load-dir): Rename $ddir to $datadir.
4812 * auto-load.c (auto_load_safe_path_vec_update)
4813 (auto_load_gdb_datadir_changed, auto_load_objfile_script): Likewise.
4814 * configure: Regenerate.
4815 * configure.ac (--with-auto-load-dir, --with-auto-load-safe-path):
4816 Likewise. Remove the 'use $ddir' help string.
4817
4818 2012-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
4819
4820 * auto-load.c (show_auto_load_safe_path): Accept any combination of
4821 DIRNAME_SEPARATOR and IS_DIR_SEPARATOR for wild-match.
4822
4823 2012-05-18 Tom Tromey <tromey@redhat.com>
4824
4825 PR exp/13907:
4826 * valprint.h (struct value_print_options) <symbol_print>: New
4827 field.
4828 * valprint.c (user_print_options): Add default for symbol_print.
4829 (show_symbol_print): New function.
4830 (generic_val_print): Respect symbol_print.
4831 (_initialize_valprint): Add "print symbol" setting.
4832 * f-valprint.c (f_val_print): Respect symbol_print.
4833 * c-valprint.c (c_val_print): Respect symbol_print.
4834 * NEWS: Update.
4835 * printcmd.c (print_address_symbolic): Return int. Ignore some
4836 zero-size symbols.
4837 (print_address_demangle): Return int.
4838 * defs.h: (print_address_symbolic): Return int.
4839 * value.h (print_address_demangle): Return int.
4840
4841 2012-05-18 Tom Tromey <tromey@redhat.com>
4842
4843 * valprint.c (val_print_string): Don't print leading space.
4844 * p-valprint.c (pascal_val_print) <TYPE_CODE_PTR>: Optionally
4845 print space before string or vtbl.
4846 * m2-valprint.c (print_unpacked_pointer): Optionally print space
4847 before string.
4848 * jv-valprint.c (java_value_print): Print space before string.
4849 * go-valprint.c (print_go_string): Print space before string.
4850 * f-valprint.c (f_val_print) <TYPE_CODE_PTR>: Optionally print
4851 space before string.
4852 * c-valprint.c (c_val_print) <TYPE_CODE_PTR>: Optionally print
4853 space before string or vtbl.
4854 * auxv.c (fprint_target_auxv): Print space after address.
4855
4856 2012-05-18 Tom Tromey <tromey@redhat.com>
4857
4858 * printcmd.c (print_address_demangle): Remove special case for 0.
4859
4860 2012-05-18 Tom Tromey <tromey@redhat.com>
4861
4862 * printcmd.c (print_address_demangle): Add 'opts' argument.
4863 * p-valprint.c (pascal_val_print): Update.
4864 * jv-valprint.c (java_val_print): Update.
4865 * value.h: Update.
4866 * valprint.c (generic_val_print): Update.
4867 (print_function_pointer_address): Add 'options' argument. Remove
4868 'addressprint' argument. Update.
4869 * m2-valprint.c (print_unpacked_pointer): Update.
4870 * gnu-v3-abi.c (print_one_vtable): Update.
4871 (gnuv3_print_method_ptr): Update.
4872 * f-valprint.c (f_val_print): Update.
4873 * cp-valprint.c (cp_print_value_fields): Update.
4874 * valprint.h (print_function_pointer_address): Update.
4875 * c-valprint.c (c_val_print): Update.
4876
4877 2012-05-18 Tom Tromey <tromey@redhat.com>
4878
4879 * psymtab.c (find_pc_sect_symtab_from_partial): Return the symtab
4880 directly corresponding to the found psymtab.
4881 * dwarf2read.c (recursively_find_pc_sect_symtab): New function.
4882 (dw2_find_pc_sect_symtab): Use it.
4883 * block.h (blockvector_contains_pc): Declare.
4884 * block.c (find_block_in_blockvector): New function.
4885 (blockvector_for_pc_sect): Use it.
4886 (blockvector_contains_pc): New function.
4887
4888 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
4889
4890 * mips-tdep.h (mips_write_pc): New prototype.
4891 * mips-tdep.c (mips_write_pc): Make external, add description.
4892 * mips-linux-tdep.c (mips_linux_write_pc): Use mips_write_pc,
4893 add description.
4894
4895 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
4896
4897 * mips-tdep.c (mips_read_pc): Use gdbarch_pc_regnum instead of
4898 mips_regnum->pc.
4899 (mips_unwind_pc, mips_write_pc): Likewise.
4900 (mips_gdbarch_init): Remove a comment on gdbarch_pc_regnum and
4901 gdbarch_read_pc.
4902
4903 2012-05-17 Joel Brobecker <brobecker@adacore.com>
4904
4905 * procfs.c (procfs_find_new_threads, procfs_pid_to_str,
4906 proc_warn, proc_error, proc_get_status, proc_flags,
4907 proc_why, proc_what, proc_nsysarg, proc_sysargs,
4908 proc_set_run_on_last_close, proc_unset_run_on_last_close,
4909 proc_unset_inherit_on_fork, proc_set_async, proc_unset_async,
4910 proc_stop_process, proc_wait_for_stop, proc_run_process,
4911 proc_set_traced_signals, proc_set_traced_faults,
4912 proc_set_traced_sysentry, proc_set_traced_sysexit,
4913 proc_set_held_signals, proc_get_held_signals,
4914 proc_get_traced_signals, proc_get_traced_faults,
4915 proc_get_traced_sysentry, proc_get_traced_sysexit,
4916 proc_clear_current_fault, proc_set_current_signal,
4917 proc_clear_current_signal, proc_get_gregs, proc_get_fpregs,
4918 proc_set_gregs, proc_set_fpregs, proc_kill, proc_parent_pid,
4919 proc_get_nthreads, proc_get_nthreads, proc_get_nthreads,
4920 proc_get_current_thread, proc_get_current_thread,
4921 proc_get_current_thread, proc_update_threads,
4922 proc_update_threads, proc_update_threads, proc_update_threads,
4923 proc_iterate_over_threads, procfs_find_new_threads,
4924 procfs_pid_to_str): Make static. Remove advance declaration.
4925 (proc_cursig): Make static. Conditionalized defintion on
4926 PROCFS_DONT_PIOCSSIG_CURSIG being defined.
4927 (proc_syscall, proc_set_kill_on_last_close,
4928 proc_unset_kill_on_last_close, proc_set_inherit_on_fork,
4929 proc_get_pending_signals, proc_get_signal_actions,
4930 proc_trace_signal, proc_ignore_signal): Delete.
4931
4932 2012-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
4933
4934 * coffread.c (cs_section_address): Passing proper argument for
4935 `bfd_get_section_vma'.
4936 * dwarf2read.c (dwarf2_locate_sections): Likewise, for
4937 `bfd_get_section_flags'.
4938 * remote.c (remote_trace_set_readonly_regions): Likewise, for
4939 `bfd_get_section_vma'.
4940
4941 2012-05-16 Tom Tromey <tromey@redhat.com>
4942
4943 PR macros/13205:
4944 * macrotab.h: (macro_define_special): Declare.
4945 (enum macro_special_kind): New.
4946 (struct macro_definition) <argc, replacement>: Update comments.
4947 * macrotab.c (new_macro_definition): Unconditionally set 'argc'.
4948 (macro_define_object_internal): New function.
4949 (macro_define_object): Use it.
4950 (macro_define_special): New function.
4951 (fixup_definition): New function.
4952 (macro_lookup_definition, foreach_macro_in_scope)
4953 (foreach_macro): Use fixup_definition.
4954 * macroexp.h (macro_stringify): Declare.
4955 * macroexp.c (free_buffer_return_text): New function.
4956 (stringify): Constify "arg".
4957 (macro_stringify): New function.
4958 * dwarf2read.c (macro_start_file): Call macro_define_special.
4959
4960 2012-05-16 Maciej W. Rozycki <macro@codesourcery.com>
4961 Maciej W. Rozycki <macro@mips.com>
4962
4963 * breakpoint.h (bp_location): Add related_address member.
4964 * inferior.h (get_return_value): Take a pointer to struct value
4965 instead of struct type for the function requested.
4966 * value.h (using_struct_return): Likewise.
4967 * gdbarch.sh (return_value): Take a pointer to struct value
4968 instead of struct type for the function requested.
4969 * breakpoint.c (set_breakpoint_location_function): Initialize
4970 related_address for bp_gnu_ifunc_resolver breakpoints.
4971 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Pass the
4972 requested function's address to gdbarch_return_value.
4973 * eval.c (evaluate_subexp_standard): Pass the requested
4974 function's address to using_struct_return.
4975 * infcall.c (call_function_by_hand): Pass the requested
4976 function's address to using_struct_return and
4977 gdbarch_return_value.
4978 * infcmd.c (get_return_value): Take a pointer to struct value
4979 instead of struct type for the function requested.
4980 (print_return_value): Update accordingly.
4981 (finish_command_continuation): Likewise.
4982 * stack.c (return_command): Pass the requested function's
4983 address to using_struct_return and gdbarch_return_value.
4984 * value.c (using_struct_return): Take a pointer to struct value
4985 instead of struct type for the function requested. Pass the
4986 requested function's address to gdbarch_return_value.
4987 * python/py-finishbreakpoint.c (finish_breakpoint_object):
4988 New function_value member, replacing function_type.
4989 (bpfinishpy_dealloc): Update accordingly.
4990 (bpfinishpy_pre_stop_hook): Likewise.
4991 (bpfinishpy_init): Likewise. Record the requested function's
4992 address.
4993 * mips-tdep.c (mips_fval_reg): New enum.
4994 (mips_o32_push_dummy_call): For MIPS16 FP doubles do not swap
4995 words put in GP registers.
4996 (mips_o64_push_dummy_call): Update a comment.
4997 (mips_o32_return_value): Take a pointer to struct value instead
4998 of struct type for the function requested and use it to check if
4999 using the MIPS16 calling convention. Return the designated
5000 general purpose registers for floating-point values returned in
5001 MIPS16 mode.
5002 (mips_o64_return_value): Likewise.
5003 * ppc-tdep.h (ppc_sysv_abi_return_value): Update prototype.
5004 (ppc_sysv_abi_broken_return_value): Likewise.
5005 (ppc64_sysv_abi_return_value): Likewise.
5006 * alpha-tdep.c (alpha_return_value): Take a pointer to struct
5007 value instead of struct type for the function requested.
5008 * amd64-tdep.c (amd64_return_value): Likewise.
5009 * amd64-windows-tdep.c (amd64_windows_return_value): Likewise.
5010 * arm-tdep.c (arm_return_value): Likewise.
5011 * avr-tdep.c (avr_return_value): Likewise.
5012 * bfin-tdep.c (bfin_return_value): Likewise.
5013 * cris-tdep.c (cris_return_value): Likewise.
5014 * frv-tdep.c (frv_return_value): Likewise.
5015 * h8300-tdep.c (h8300_return_value): Likewise.
5016 (h8300h_return_value): Likewise.
5017 * hppa-tdep.c (hppa32_return_value): Likewise.
5018 (hppa64_return_value): Likewise.
5019 * i386-tdep.c (i386_return_value): Likewise.
5020 * ia64-tdep.c (ia64_return_value): Likewise.
5021 * iq2000-tdep.c (iq2000_return_value): Likewise.
5022 * lm32-tdep.c (lm32_return_value): Likewise.
5023 * m32c-tdep.c (m32c_return_value): Likewise.
5024 * m32r-tdep.c (m32r_return_value): Likewise.
5025 * m68hc11-tdep.c (m68hc11_return_value): Likewise.
5026 * m68k-tdep.c (m68k_return_value): Likewise.
5027 (m68k_svr4_return_value): Likewise.
5028 * m88k-tdep.c (m88k_return_value): Likewise.
5029 * mep-tdep.c (mep_return_value): Likewise.
5030 * microblaze-tdep.c (microblaze_return_value): Likewise.
5031 * mn10300-tdep.c (mn10300_return_value): Likewise.
5032 * moxie-tdep.c (moxie_return_value): Likewise.
5033 * mt-tdep.c (mt_return_value): Likewise.
5034 * ppc-linux-tdep.c (ppc_linux_return_value): Likewise.
5035 * ppc-sysv-tdep.c (ppc_sysv_abi_return_value): Likewise.
5036 (ppc_sysv_abi_broken_return_value): Likewise.
5037 (ppc64_sysv_abi_return_value): Likewise.
5038 * ppcnbsd-tdep.c (ppcnbsd_return_value): Likewise.
5039 * rl78-tdep.c (rl78_return_value): Likewise.
5040 * rs6000-aix-tdep.c (rs6000_return_value): Likewise.
5041 * rx-tdep.c (rx_return_value): Likewise.
5042 * s390-tdep.c (s390_return_value): Likewise.
5043 * score-tdep.c (score_return_value): Likewise.
5044 * sh-tdep.c (sh_return_value_nofpu): Likewise.
5045 (sh_return_value_fpu): Likewise.
5046 * sh64-tdep.c (sh64_return_value): Likewise.
5047 * sparc-tdep.c (sparc32_return_value): Likewise.
5048 * sparc64-tdep.c (sparc64_return_value): Likewise.
5049 * spu-tdep.c (spu_return_value): Likewise.
5050 * tic6x-tdep.c (tic6x_return_value): Likewise.
5051 * v850-tdep.c (v850_return_value): Likewise.
5052 * vax-tdep.c (vax_return_value): Likewise.
5053 * xstormy16-tdep.c (xstormy16_return_value): Likewise.
5054 * xtensa-tdep.c (xtensa_return_value): Likewise.
5055 * gdbarch.c: Regenerate.
5056 * gdbarch.h: Regenerate.
5057
5058 2012-05-15 Tom Tromey <tromey@redhat.com>
5059
5060 * python/python.c (gdbpy_find_pc_line): Use gdb_py_ulongest.
5061
5062 2012-05-15 Joel Brobecker <brobecker@adacore.com>
5063
5064 * breakpoint.c (init_breakpoint_sal): Add quotes around part
5065 of command in two error message.
5066
5067 2012-05-15 Joel Brobecker <brobecker@adacore.com>
5068
5069 * breakpoint.c (init_breakpoint_sal): Remove trailing spaces.
5070
5071 2012-05-15 Joel Brobecker <brobecker@adacore.com>
5072
5073 * breakpoint.c (find_condition_and_thread): Minor reformatting.
5074
5075 2012-05-15 Jan Kratochvil <jan.kratochvil@redhat.com>
5076
5077 * NEWS (show auto-load scripts-directory): Add forgotten command.
5078
5079 2012-05-15 Jan Kratochvil <jan.kratochvil@redhat.com>
5080
5081 * spu-tdep.c (spu_catch_start): Update create_breakpoint caller
5082 parameters.
5083
5084 2012-05-14 H.J. Lu <hongjiu.lu@intel.com>
5085
5086 * amd64-tdep.c: Include features/i386/x32.c and
5087 features/i386/x32-avx.c.
5088 (_initialize_amd64_tdep): Call initialize_tdesc_x32 and
5089 initialize_tdesc_x32_avx.
5090
5091 2012-05-14 Stan Shebs <stan@codesourcery.com>
5092
5093 Add dynamic printf.
5094 * breakpoint.h (enum bptype): New type bp_dprintf.
5095 (struct breakpoint): New field extra_string.
5096 (struct breakpoint_ops): Add arg to create_breakpoints_sal.
5097 (create_breakpoint): Add extra_string arg.
5098 * breakpoint.c (dprintf_breakpoint_ops): New.
5099 (is_breakpoint): Add bp_dprintf.
5100 (bpstat_what): Add dprintf case.
5101 (bptype_string): Ditto.
5102 (print_one_breakpoint_location): Ditto.
5103 (init_bp_location): Ditto.
5104 (bkpt_print_mention): Ditto.
5105 (dprintf_style_enums): New array.
5106 (dprintf_style): New global.
5107 (dprintf_function): New global.
5108 (dprintf_channel): New global.
5109 (update_dprintf_command_list): New function.
5110 (update_dprintf_commands): New function.
5111 (init_breakpoint_sal): Add extra_string argument, handle it.
5112 (create_breakpoint_sal): Add extra_string argument.
5113 (create_breakpoints_sal): Add extra_string argument, update callers.
5114 (find_condition_and_thread): Add extra argument.
5115 (create_breakpoint): Add extra_string argument, record it.
5116 (dprintf_command): New function.
5117 (break_command_1): Add arg to create_breakpoint call.
5118 (handle_gnu_v3_exceptions): Ditto.
5119 (trace_command): Ditto.
5120 (ftrace_command): Ditto.
5121 (strace_command): Ditto.
5122 (bkpt_print_mention): Add dprintf case.
5123 (create_breakpoint_sal_default): Add extra_string argument.
5124 (_initialize_breakpoint): Add new commands.
5125 * mi/mi-cmd-break.c (mi_cmd_break_insert): Add arg to call.
5126 * python/py-breakpoint.c (bppy_init): Ditto.
5127 * python/py-finishbreakpoint.c (bpfinishpy_init): Ditto.
5128
5129 2012-05-14 Maciej W. Rozycki <macro@codesourcery.com>
5130
5131 * mips-tdep.c (mips_push_dummy_code): Correct description typo.
5132
5133 2012-05-14 Siva Chandra Reddy <sivachandra@google.com>
5134
5135 * python/python.c (gdbpy_find_pc_line): Use ULONGEST instead of
5136 unsigned long long.
5137
5138 2012-05-13 Siva Chandra Reddy <sivachandra@google.com>
5139
5140 Add a new function gdb.find_pc_line to the Python API.
5141 * NEWS (Python Scripting): Add entry about the new function.
5142 * python/python.c (gdbpy_find_pc_line): New function which
5143 implements gdb.find_pc_line.
5144 (GdbMethods): Add entry for the new function.
5145
5146 2012-05-12 Pedro Alves <palves@redhat.com>
5147
5148 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Call
5149 initialize_tdesc_x32_linux and initialize_tdesc_x32_avx_linux.
5150
5151 2012-05-12 Eli Zaretskii <eliz@gnu.org>
5152
5153 * inferior.c: Include completer.h
5154 (initialize_inferiors): Set completer of add-inferior to
5155 filename_completer.
5156
5157 2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
5158
5159 * amd64-linux-tdep.c (amd64_linux_core_read_description): Check
5160 gdbarch_ptr_bit for x32 core dump.
5161
5162 2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
5163
5164 * amd64-linux-tdep.c: Include features/i386/x32-linux.c
5165 and features/i386/x32-avx-linux.c.
5166
5167 2012-05-11 Stan Shebs <stan@codesourcery.com>
5168 Kwok Cheung Yeung <kcy@codesourcery.com>
5169
5170 * NEWS: Describe new info os commands.
5171 * common/linux-osdata.c (PID_T, TIME_T): Define.
5172 (MAX_PID_T_STRLEN): New.
5173 (linux_common_core_of_thread): Add comment. Change to use PID_T and
5174 MAX_PID_T_STRLEN.
5175 (command_from_pid): Add comment. Change to use PID_T.
5176 (commandline_from_pid): Change to use PID_T.
5177 (user_from_pid): Add comment.
5178 (get_process_owner): Add comment. Change to use PID_T and
5179 MAX_PID_T_STRLEN.
5180 (get_number_of_cpu_cores): Add comment.
5181 (get_cores_used_by_process): Add comment. Change to use PID_T and
5182 MAX_PID_T_STRLEN.
5183 (linux_xfer_osdata_processes): Change to use PID_T and
5184 MAX_PID_T_STRLEN.
5185 (compare_processes): New function.
5186 (linux_xfer_osdata_processgroups): New function.
5187 (linux_xfer_osdata_threads): Change to use PID_T.
5188 (linux_xfer_osdata_fds): New function.
5189 (format_socket_state, print_sockets): New functions.
5190 (union socket_addr): New union.
5191 (linux_xfer_osdata_isockets): New function.
5192 (time_from_time_t, group_from_gid): New functions.
5193 (linux_xfer_osdata_shm): New function.
5194 (linux_xfer_osdata_sem): New function.
5195 (linux_xfer_osdata_msg): New function.
5196 (linux_xfer_osdata_modules): New function.
5197 (osdata_table): Add new entries.
5198 * common/buffer.c (buffer_xml_printf): Add support for long and
5199 long long format specifiers.
5200
5201 2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
5202
5203 * amd64-linux-tdep.h (tdesc_x32_linux): New.
5204 (tdesc_x32_avx_linux): Likewise.
5205
5206 2012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
5207
5208 Implement multi-component --with-auto-load-dir.
5209 * NEWS (set auto-load scripts-directory, --with-auto-load-dir): New
5210 entries.
5211 (--with-auto-load-safe-path): Update the default value description.
5212 * auto-load.c (auto_load_dir, set_auto_load_dir, show_auto_load_dir):
5213 New.
5214 (auto_load_objfile_script): Add DEBUG_AUTO_LOAD output. Remove
5215 GDB_DATADIR NULL check. Replace GDB_DATADIR/auto-load by
5216 AUTO_LOAD_DIR. Support $ddir and multiple components in it.
5217 (_initialize_auto_load): Initialize also auto_load_dir. Install new
5218 "set auto-load scripts-directory".
5219 * config.in: Regenerate.
5220 * configure: Regenerate.
5221 * configure.ac (--with-auto-load-dir): New configure option.
5222 (--auto-load-safe-path): Change the default to --with-auto-load-dir.
5223
5224 2012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
5225
5226 Provide $ddir substitution for --with-auto-load-safe-path.
5227 * NEWS (--with-auto-load-safe-path, --without-auto-load-safe-path): New
5228 entries.
5229 * auto-load.c: Include observer.h.
5230 (auto_load_safe_path_vec_update): Call substitute_path_component for
5231 each component. New variable ddir_subst.
5232 (auto_load_gdb_datadir_changed): New function.
5233 (set_auto_load_safe_path): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
5234 AUTO_LOAD_SAFE_PATH. New comment.
5235 (_initialize_auto_load): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
5236 AUTO_LOAD_SAFE_PATH. Install auto_load_gdb_datadir_changed.
5237 * config.in: Regenerate.
5238 * configure: Regenerate.
5239 * configure.ac (--auto-load-safe-path): Rename
5240 DEFAULT_AUTO_LOAD_SAFE_PATH to AUTO_LOAD_SAFE_PATH. Default to
5241 GDB_DATADIR/auto-load.
5242 * defs.h (substitute_path_component): New declaration.
5243 * top.c: Include observer.h.
5244 (set_gdb_datadir): New function.
5245 (init_main): Install it for "set data-directory".
5246 * utils.c (substitute_path_component): New function.
5247
5248 2012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
5249
5250 Make auto-load handle multiple components of DEBUG_FILE_DIRECTORY.
5251 * auto-load.c (auto_load_objfile_script): Remove check for NULL
5252 DEBUG_FILE_DIRECTORY. Handle multiple components of
5253 DEBUG_FILE_DIRECTORY.
5254
5255 2012-05-10 Tom Tromey <tromey@redhat.com>
5256
5257 * dwarf2read.c (recursively_write_psymbols): New function.
5258 (write_psymtabs_to_index): Use it.
5259
5260 * dwarf2read.c (struct dwarf2_queue_item) <pretend_language>: New
5261 field.
5262 (load_cu, dw2_do_instantiate_symtab, process_psymtab_comp_unit)
5263 (load_partial_comp_unit): Update.
5264 (queue_comp_unit): Add argument 'pretend_language'.
5265 (process_queue): Update.
5266 (psymtab_to_symtab_1): Skip dependencies that have a user.
5267 (load_partial_comp_unit_reader): Give meaning to the 'data'
5268 argument.
5269 (load_full_comp_unit): Add 'pretend_language' argument.
5270 (process_full_comp_unit): Add 'pretend_language' argument. Set
5271 language on CU.
5272 (process_imported_unit_die, read_file_scope, read_type_unit_scope):
5273 Update.
5274 (maybe_queue_comp_unit): Add 'pretend_language' argument.
5275 (follow_die_offset, follow_die_sig, read_signatured_type_reader):
5276 Update.
5277 (prepare_one_comp_unit): Add 'pretend_language' argument.
5278
5279 * dwarf2read.c: (dwarf2_per_cu_ptr): New typedef.
5280 (struct dwarf2_per_objfile) <just_read_cus>: New field.
5281 (struct dwarf2_per_cu_data) <imported_symtabs>: New field.
5282 (dw2_do_instantiate_symtab): Check whether symtab was read in
5283 before queueing.
5284 (dw2_instantiate_symtab): Add assertion. Call
5285 process_cu_includes.
5286 (process_psymtab_comp_unit): Compute 'dependencies' for psymtab.
5287 (partial_symtab_p): New typedef.
5288 (set_partial_user): New function.
5289 (dwarf2_build_psymtabs_hard): Use set_partial_user.
5290 (scan_partial_symbols): Add imported CU to imported_symtabs.
5291 (dwarf2_psymtab_to_symtab): Call process_cu_includes.
5292 (psymtab_to_symtab_1): Do nothing if psymtab is readin.
5293 (get_symtab, recursively_compute_inclusions)
5294 (compute_symtab_includes, process_cu_includes)
5295 (process_imported_unit_die): New functions.
5296 (process_die) <DW_TAG_imported_unit>: New case.
5297 (dwarf2_per_objfile_free): Free 'imported_symtabs'.
5298
5299 * dwarf2read.c (struct dwarf2_per_cu_data) <psymtab>: Update
5300 comment.
5301 (struct partial_die_info) <locdesc>: Remove.
5302 <d>: New field.
5303 (process_psymtab_comp_unit): Add 'read_partial' argument.
5304 Update.
5305 (process_type_comp_unit, dwarf2_build_psymtabs_hard): Update.
5306 (scan_partial_symbols): Handle DW_TAG_imported_unit.
5307 (add_partial_symbol): Update.
5308 (process_die): Handle DW_TAG_partial_unit.
5309 (read_file_scope): Update comment.
5310 (load_partial_dies): Handle DW_TAG_imported_unit.
5311 (read_partial_die): Handle DW_TAG_partial_unit, DW_AT_import.
5312 (determine_prefix, dwarf2_name): Handle DW_TAG_partial_unit.
5313
5314 2012-05-10 Tom Tromey <tromey@redhat.com>
5315
5316 * cc-with-dwz.sh: New file.
5317
5318 2012-05-10 Tom Tromey <tromey@redhat.com>
5319
5320 * symtab.h (struct symtab) <includes, user>: New fields.
5321 * block.h (struct block_iterator) <d, idx, which>: New fields.
5322 * block.c (initialize_block_iterator, find_iterator_symtab)
5323 (block_iterator_step, block_iter_name_step)
5324 (block_iter_match_step): New functions.
5325 (block_iterator_first, block_iterator_next)
5326 (block_iter_name_first, block_iter_name_next)
5327 (block_iter_match_first, block_iter_match_next): Rewrite.
5328 (get_block_symtab): New function.
5329
5330 2012-05-10 Tom Tromey <tromey@redhat.com>
5331
5332 * jv-lang.c (get_java_class_symtab): Use allocate_global_block,
5333 set_block_symtab.
5334 * jit.c (finalize_symtab): Use allocate_global_block,
5335 set_block_symtab.
5336 * buildsym.c (finish_block_internal): New function, from old
5337 finish_block.
5338 (finish_block): Rewrite.
5339 (end_symtab): Use finish_block_internal, set_block_symtab.
5340 * block.h (struct global_block): New.
5341 (allocate_global_block, set_block_symtab): Declare.
5342 * block.c (allocate_global_block, set_block_symtab): New
5343 functions.
5344
5345 2012-05-10 Tom Tromey <tromey@redhat.com>
5346
5347 * psymtab.c (partial_map_expand_apply): Add assertion.
5348 (partial_map_symtabs_matching_filename): Skip included psymtabs.
5349 (psymtab_to_symtab): Find unshared psymtab.
5350 (dump_psymtab): Print including psymtabs.
5351 (recursively_search_psymtabs): New function.
5352 (expand_symtabs_matching_via_partial): Use it.
5353 * psympriv.h (struct partial_symtab) <user, searched_flag>: New
5354 fields.
5355 (enum psymtab_search_status): New.
5356
5357 2012-05-10 Tom Tromey <tromey@redhat.com>
5358
5359 * tracepoint.c (scope_info): Update.
5360 * symtab.c (lookup_block_symbol, iterate_over_symbols)
5361 (find_pc_sect_symtab, search_symbols)
5362 (default_make_symbol_completion_list_break_on)
5363 (make_file_symbol_completion_list): Update.
5364 * symmisc.c (dump_symtab_1): Update.
5365 * stack.c (print_frame_args, iterate_over_block_locals)
5366 (print_frame_labels, iterate_over_block_arg_vars): Update.
5367 * python/py-block.c (block_object) <dict>: Remove.
5368 <block>: New field.
5369 <iter>: Change type.
5370 (blpy_iter): Update.
5371 (blpy_block_syms_iternext): Update.
5372 * psymtab.c (map_block): Use block iterators.
5373 * objfiles.c (objfile_relocate1): Use ALL_DICT_SYMBOLS.
5374 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
5375 * mdebugread.c (parse_symbol, mylookup_symbol): Update.
5376 * infrun.c (check_exception_resume): Update.
5377 * cp-support.c (make_symbol_overload_list_block): Update.
5378 * coffread.c (patch_opaque_types): Update.
5379 * buildsym.c (finish_block, end_symtab): Use ALL_DICT_SYMBOLS.
5380 * block.h (struct block_iterator): New.
5381 (block_iterator_first, block_iterator_next, block_iter_name_first)
5382 (block_iter_name_next, block_iter_match_first)
5383 (block_iter_match_next): Declare.
5384 (ALL_BLOCK_SYMBOLS): Redefine.
5385 * block.c (block_iterator_first, block_iterator_next)
5386 (block_iter_name_first, block_iter_name_next)
5387 (block_iter_match_first, block_iter_match_next): New functions.
5388 * ada-lang.c (ada_add_block_symbols)
5389 (ada_make_symbol_completion_list): Use block iterator.
5390
5391 2012-05-10 Tom Tromey <tromey@redhat.com>
5392
5393 * psymtab.c (PSYMTAB_TO_SYMTAB): Remove.
5394 (find_pc_sect_symtab_from_partial, lookup_symbol_aux_psymtabs)
5395 (lookup_partial_symbol, find_last_source_symtab_from_partial)
5396 (read_psymtabs_with_filename, map_matching_symbols_psymtab)
5397 (expand_symtabs_matching_via_partial, maintenance_check_symtabs):
5398 Update.
5399
5400 2012-05-10 Joel Brobecker <brobecker@adacore.com>
5401
5402 * config/djgpp/fnchange.lst: Add entries for print-file-var-lib1.c,
5403 print-file-var-lib2.c, print-file-var-main.c and
5404 print-file-var.exp (located in gdb/testsuite/gdb.base).
5405
5406 2012-05-10 Joel Brobecker <brobecker@adacore.com>
5407
5408 * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
5409 try locating the symbol in the symbol's own objfile first, before
5410 extending the search to all objfiles.
5411 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
5412 out of lookup_symbol_aux_symtabs.
5413 (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
5414 Replace extracted-out code by call to lookup_symbol_aux_objfile.
5415 Do not search EXCLUDE_OBJFILE.
5416 (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
5417 (lookup_symbol_global): Search for matches in the block's objfile
5418 first, before searching all other objfiles.
5419
5420 2012-05-10 Tristan Gingold <gingold@adacore.com>
5421
5422 * printcmd.c (set_command): Add pre/post inc/dec.
5423
5424 2012-05-09 Frank Ch. Eigler <fche@redhat.com>
5425
5426 * gdb.1: Document -ex option.
5427
5428 2012-05-09 Joel Brobecker <brobecker@adacore.com>
5429
5430 * infcall.c (call_function_by_hand): Remove AT_SYMBOL handling.
5431 * inferior.h (AT_SYMBOL): Delete.
5432
5433 2012-05-09 Joel Brobecker <brobecker@adacore.com>
5434
5435 * mips-tdep.c (mips_push_dummy_code): New function.
5436 (mips_gdbarch_init): Set the gdbarch call_dummy_location to
5437 ON_STACK and install mips_push_dummy_code as our gdbarch
5438 push_dummy_code routine.
5439
5440 2012-05-09 Pedro Alves <palves@redhat.com>
5441
5442 * target.c (set_maintenance_target_async_permitted): Rename to ...
5443 (set_target_async_command): ... this.
5444 (show_maintenance_target_async_permitted): Rename to ...
5445 (show_target_async_command): ... this.
5446 (initialize_targets): Adjust.
5447
5448 2012-05-08 Doug Evans <dje@google.com>
5449
5450 * go-exp.y (classify_name): Add missing assignment of fields of
5451 yylval.ssym.
5452
5453 2012-05-08 Eli Zaretskii <eliz@gnu.org>
5454
5455 Display the ">" prompt in interactive mode while reading canned
5456 commands, even when the current interpreter is MI.
5457
5458 * interps.c (interp_set_temp): New function.
5459
5460 * interps.h (interp_set_temp): Add prototype.
5461
5462 * cli/cli-script.c (restore_interp): New cleanup function.
5463 (read_command_lines): Temporarily override the current interpreter
5464 with CLI and arrange for restoring the original one.
5465
5466 2012-05-12 Joel Sherrill <joel.sherrill@oarcorp.com>
5467
5468 * microblaze-rom.c (_initialize_picobug_rom): Add prototype.
5469
5470 2012-05-07 Sergio Durigan Junior <sergiodj@redhat.com>
5471
5472 * probe.c (parse_probes): Move conditional to check for
5473 debuginfo files from here...
5474 * stap-probe.c (stap_get_probes): ... to here.
5475
5476 2012-05-07 Mark Kettenis <kettenis@gnu.org>
5477 H.J. Lu <hongjiu.lu@intel.com>
5478
5479 * amd64-tdep.c (amd64_analyze_prologue): Additionally check for
5480 `movl %esp, %ebp' for the X32 ABI.
5481
5482 2012-05-07 Tom Tromey <tromey@redhat.com>
5483
5484 * dwarf2read.c (dwarf_tag_name): Return const char *. Use
5485 get_DW_TAG_name.
5486 (dwarf_attr_name): Return const char *. Use get_DW_AT_name.
5487 (dwarf_form_name): Return const char *. Use get_DW_FORM_name.
5488 (dwarf_stack_op_name): Remove.
5489 (dwarf_cfi_name): Return const char *. Use get_DW_ATE_name.
5490 (decode_locdesc): Use get_DW_OP_name.
5491 * dwarf2loc.c (unimplemented): Use get_DW_OP_name.
5492 (dwarf2_compile_expr_to_ax): Likewise.
5493 (disassemble_dwarf_expression): Likewise.
5494 * dwarf2expr.h: (dwarf_stack_op_name): Remove.
5495
5496 2012-05-07 Chung-Lin Tang <cltang@codesourcery.com>
5497
5498 * sh-linux-tdep.c: Include trad-frame.h and tramp-frame.h.
5499 (sh_linux_sigtramp_cache): New function.
5500 (sh_linux_sigreturn_init): New function.
5501 (sh_linux_rt_sigreturn_init): New function.
5502 (SH_MOVW,SH_TRAP,SH_OR_R0_R0): New symbols for instruction
5503 patterns.
5504 (SH_NR_SIGRETURN,SH_NR_RT_SIGRETURN): New symbols for sigreturn
5505 syscall codes.
5506 (sh_linux_sigreturn_tramp_frame): New tramp_frame definition.
5507 (sh_linux_rt_sigreturn_tramp_frame): Likewise.
5508 (sh_linux_init_abi): Add init calls to register new tramp_frame
5509 definitions under 32-bit SH, update comments.
5510
5511 2012-05-07 Pedro Alves <palves@redhat.com>
5512
5513 PR gdb/10952
5514
5515 * amd64-linux-tdep.c: Include glibc-tdep.h.
5516 (amd64_linux_init_abi): Install glibc_skip_solib_resolver as
5517 gdbarch_skip_solib_resolver callback.
5518
5519 2012-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
5520
5521 * auto-load.c (set_auto_load_safe_path): Reset AUTO_LOAD_SAFE_PATH
5522 back to DEFAULT_AUTO_LOAD_SAFE_PATH if it is being set to "".
5523 (show_auto_load_safe_path): Check any-directory by comparison with "/".
5524 (add_auto_load_safe_path): Change the error message.
5525 (_initialize_auto_load): Change the "safe-path" help text.
5526 * configure: Regenerate
5527 * configure.ac (--without-auto-load-safe-path): Set
5528 WITH_AUTO_LOAD_SAFE_PATH to /.
5529
5530 2012-05-05 Sergio Durigan Junior <sergiodj@redhat.com>
5531
5532 * stap-probe.h: Do not include unecessary `probe.h'.
5533
5534 2012-05-05 Alan Modra <amodra@gmail.com>
5535
5536 * elfread.c (elf_symtab_read): Use bfd_abs_section_ptr and
5537 bfd_und_section_ptr.
5538 * machoread.c (macho_symtab_add_minsym): Use bfd_abs_section_ptr
5539 and bfd_com_section_ptr.
5540
5541 2012-05-04 Joel Brobecker <brobecker@adacore.com>
5542
5543 * MAINTAINERS (Past Maintainers): Add Chris Faylor.
5544
5545 2012-05-04 Joel Brobecker <brobecker@adacore.com>
5546
5547 * windows-nat.h (segment_register_p_ftype): New typedef.
5548 (windows_set_segment_register_p): Add declaration.
5549 * windows-nat.c (segment_register_p): New static global.
5550 (windows_set_segment_register_p): New function.
5551 (do_windows_fetch_inferior_registers): Add special handling
5552 for segment registers.
5553 * amd64-windows-nat.c: #include "amd64-tdep.h".
5554 (amd64_windows_segment_register_p): New function.
5555 (_initialize_amd64_windows_nat): Call windows_set_segment_register_p.
5556 * i386-windows-nat.c: #include "i386-tdep.h".
5557 (i386_windows_segment_register_p): New function.
5558 (_initialize_i386_windows_nat): Call windows_set_segment_register_p.
5559
5560 2012-05-04 Tristan Gingold <gingold@adacore.com>
5561
5562 * printcmd.c (set_command): Emit a warning if the expression is not
5563 an assignment.
5564
5565 2012-05-03 Joel Brobecker <brobecker@adacore.com>
5566
5567 * nto-procfs.c (procfs_find_new_threads, procfs_pid_to_str):
5568 Make static.
5569
5570 2012-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
5571
5572 * stap-probe.c (stap_is_operator): Change declaration.
5573 (stap_get_opcode): Change return value.
5574 (stap_parse_argument_1): Update calls to `stap_get_opcode' and
5575 `stap_parse_argument_1'.
5576
5577 2012-05-03 Pedro Alves <pedro@codesourcery.com>
5578
5579 * infrun.c (displaced_step_fixup): Add "displaced:" prefix to
5580 debug log.
5581
5582 2012-05-03 Siva Chandra Reddy <sivachandra@google.com>
5583
5584 Add two new methods global_block and static_block to gdb.Symtab
5585 objects.
5586 * NEWS (Python scripting): Add entry about the new methods.
5587 * python/py-symtab.c (stpy_global_block): New function which
5588 implements the gdb.Symtab.global_block() method.
5589 (stpy_static_block): New function which implements the
5590 gdb.Symtab.static_block() method.
5591 (symtab_object_methods): Add entries for the two new methods.
5592
5593 2012-05-03 Doug Evans <dje@google.com>
5594
5595 * dwarf2read.c (dw2_find_symbol_file): Don't crash if there are no
5596 files.
5597
5598 2012-05-03 Yao Qi <yao@codesourcery.com>
5599
5600 * i386-tdep.c (i386_fetch_pointer_argument): Remove extra
5601 space.
5602 (i386_process_record): Ditto.
5603
5604 2012-05-02 Joel Brobecker <brobecker@adacore.com>
5605
5606 * infcall.c (unwind_on_signal_p): Make static.
5607
5608 2012-05-02 Joel Brobecker <brobecker@adacore.com>
5609
5610 * sol-thread.c (solaris_pid_to_str): Make static.
5611 (_initialize_sol_thread): Add prototype.
5612
5613 2012-05-02 Joel Brobecker <brobecker@adacore.com>
5614
5615 * sol-thread.c (procfs_pid_to_str): Delete extern declaration.
5616
5617 2012-05-02 Christopher Faylor <me.cygwin2012@cgf.cx>
5618
5619 * MAINTAINERS: Remove myself.
5620
5621 2012-05-02 Jan Kratochvil <jan.kratochvil@redhat.com>
5622
5623 Fix --without-auto-load-safe-path for MS-Windows host platform.
5624 * auto-load.c (filename_is_in_dir): Return 1 for DIR_LEN 0.
5625
5626 2012-05-02 Eli Zaretskii <eliz@gnu.org>
5627
5628 * gdb_curses.h: Undefine KEY_EVENT before including curses
5629 headers. Move "#undef MOUSE_MOVED" before any curses header
5630 inclusion.
5631
5632 2012-05-02 Sergio Durigan Junior <sergiodj@gmail.com>
5633
5634 * features/i386/i386-mmx-linux.c: Regenerate.
5635 * features/rs6000/powerpc-32.c: Likewise.
5636 * features/rs6000/powerpc-32l.c: Likewise.
5637 * features/rs6000/powerpc-403.c: Likewise.
5638 * features/rs6000/powerpc-403gc.c: Likewise.
5639 * features/rs6000/powerpc-405.c: Likewise.
5640 * features/rs6000/powerpc-505.c: Likewise.
5641 * features/rs6000/powerpc-601.c: Likewise.
5642 * features/rs6000/powerpc-602.c: Likewise.
5643 * features/rs6000/powerpc-603.c: Likewise.
5644 * features/rs6000/powerpc-604.c: Likewise.
5645 * features/rs6000/powerpc-64.c: Likewise.
5646 * features/rs6000/powerpc-64l.c: Likewise.
5647 * features/rs6000/powerpc-750.c: Likewise.
5648 * features/rs6000/powerpc-860.c: Likewise.
5649 * features/rs6000/powerpc-e500.c: Likewise.
5650 * features/rs6000/powerpc-e500l.c: Likewise.
5651 * features/rs6000/powerpc-isa205-32l.c: Likewise.
5652 * features/rs6000/powerpc-isa205-64l.c: Likewise.
5653 * features/rs6000/rs6000.c: Likewise.
5654
5655 2012-05-02 Sergio Durigan Junior <sergiodj@gmail.com>
5656
5657 * i386-tdep.c (i386_stap_parse_special_token) <s>: Remove unused
5658 variable.
5659 * stap-probe.c (stap_parse_single_operand) <reg_suffix,
5660 reg_ind_suffix, reg_suffix_len, reg_ind_suffix_len>: Likewise.
5661 (stap_parse_argument) <e>: Likewise.
5662 (handle_stap_probe) <byte_order>: Likewise.
5663
5664 2012-04-30 Doug Evans <dje@google.com>
5665
5666 * dwarf2read.c (init_cutu_and_read_dies): Renamed from
5667 init_and_read_dies_worker. All callers updated.
5668 (init_cu_and_read_dies, init_tu_and_read_dies): Delete. All calls
5669 replaced with init_cutu_and_read_dies.
5670 (load_partial_comp_unit): Pass 1 for use_existing_cu.
5671 (find_partial_die): Remove FIXME. Don't free current CU.
5672
5673 2012-04-30 Sterling Augustine <saugustine@google.com>
5674
5675 * contrib: New directory.
5676 * contrib/test_pubnames_and_indexes.py: New file.
5677
5678 2012-04-30 Doug Evans <dje@google.com>
5679
5680 * dwarf2read.c (dwarf_decode_macros): New arg section_name.
5681 All callers updated.
5682 (init_cu_die_reader): Verify the section is non-empty.
5683 (dwarf_decode_line_header): Don't dereference section->asection
5684 until we know the section is present.
5685
5686 2012-04-29 Sergio Durigan Junior <sergiodj@redhat.com>
5687
5688 * tracepoint.c (start_tracing, stop_tracing): Checking for NULL
5689 probes.
5690
5691 2012-04-29 Yao Qi <yao@codesourcery.com>
5692
5693 * gdb-code-style.el: New hook gdb-markup-hook
5694 and gdb-comment-hook.
5695
5696 2012-04-28 Doug Evans <dje@google.com>
5697
5698 Initial support for Fission. http://gcc.gnu.org/wiki/DebugFission
5699 * symfile.c (default_symfile_relocate): Use sectp->owner instead of
5700 objfile->obfd.
5701 * symfile.h (dwarf2_debug_sections): New member addr.
5702 * dwarf2expr.c (execute_stack_op): New case DW_OP_GNU_addr_index.
5703 (ctx_no_get_addr_index): New function.
5704 * dwarf2expr.h (dwarf_expr_context_funcs): New member get_addr_index.
5705 (ctx_no_get_addr_index): Declare.
5706 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): Update.
5707 * dwarf2loc.c (dwarf_expr_get_addr_index): New function.
5708 (dwarf_expr_ctx_funcs): Update.
5709 (needs_get_addr_index): New function.
5710 (needs_frame_ctx_funcs): Update.
5711 * dwarf2loc.h (dwarf2_read_addr_index): Declare.
5712 * dwarf2read.c: #include "gdbcore.h".
5713 (dwarf2_per_objfile): New members addr, dwo_files.
5714 (dwarf2_elf_names): Add entry for addr.
5715 (struct dwo_section_names): New type.
5716 (dwo_section_names): New static global.
5717 (dwarf2_cu): New members dwo_unit, addr_base, have_addr_base.
5718 (dwarf2_per_cu_data): New member is_debug_types, all boolean uses of
5719 old debug_types_section member updated to use this.
5720 Rename member debug_types_section to info_or_types_section,
5721 all uses updated.
5722 (signatured_type): Rename member type_offset to type_offset_in_tu,
5723 all uses updated. New member type_offset_in_section.
5724 (struct dwo_sections): New type.
5725 (struct dwo_unit): New type.
5726 (struct dwo_file): New type.
5727 (die_reader_specs): New member dwo_file.
5728 (dwarf2_locate_sections): Watch for .debug_addr.
5729 (zlib_decompress_section): Use sectp->owner instead of objfile->obfd.
5730 (dwarf2_read_section): Get bfd of section from bfd's asection,
5731 instead of objfile.
5732 (create_cus_from_index): Initialize the_cu->info_or_types_section.
5733 (create_signatured_type_table_from_index): Initialize
5734 sig_type->info_or_types_section.
5735 (dw2_get_file_names): Statement lists for type units with DWO files
5736 live in the DWO file.
5737 (create_debug_types_hash_table): New function.
5738 (create_all_type_units): Rewrite.
5739 (init_cu_die_reader): New arg dwo_file, all callers updated.
5740 (init_and_read_dies_worker): Get section from
5741 this_cu->info_or_types_section. Set sig_type->type_offset_in_section.
5742 Watch for DW_AT_GNU_dwo_name and if present lookup the file and
5743 continue reading the CU/TU from there.
5744 (init_cutu_and_read_dies_no_follow): New arg dwo_file, all callers
5745 updated. Get section from this_cu->info_or_types_section.
5746 (create_all_comp_units): Initialize this_cu->info_or_types_section.
5747 (skip_one_die): New cases DW_FORM_GNU_addr_index,
5748 DW_FORM_GNU_str_index.
5749 (hash_dwo_file, eq_dwo_file): New functions.
5750 (allocate_dwo_file_hash_table): New function.
5751 (hash_dwo_unit, eq_dwo_unit): New functions.
5752 (allocate_dwo_unit_table): New function.
5753 (dwarf2_locate_dwo_sections): New function.
5754 (struct create_dwo_info_table_data): New type.
5755 (create_debug_info_hash_table_reader): New function.
5756 (create_debug_info_hash_table): New function.
5757 (try_open_dwo_file, open_dwo_file, init_dwo_file): New function.
5758 (lookup_dwo_file): New function.
5759 (lookup_dwo_comp_unit, lookup_dwo_type_unit): New functions.
5760 (free_dwo_file, free_dwo_file_cleanup): New functions.
5761 (free_dwo_file_from_slot, free_dwo_files): New functions.
5762 (dwarf2_get_pc_bounds): Handle DW_FORM_GNU_addr_index.
5763 (dwarf2_record_block_ranges): Ditto.
5764 (read_partial_die): Ditto.
5765 (process_enumeration_scope): Update to use type_offset_in_section.
5766 (read_full_die_1): New function.
5767 (read_full_die): Rewrite.
5768 (read_attribute_value): New cases DW_FORM_GNU_addr_index,
5769 DW_FORM_GNU_str_index.
5770 (read_addr_index_1, read_addr_index): New functions.
5771 (read_addr_index_from_leb128): New function.
5772 (struct dwarf2_read_addr_index_data): New type.
5773 (dwarf2_read_addr_index_reader): New function.
5774 (dwarf2_read_addr_index): New function.
5775 (read_str_index): New function.
5776 (leb128_size): New function.
5777 (dwarf_decode_line_header): Delete arg abfd, all callers updated.
5778 If processing a type unit from a DWO file, get the line section
5779 from the DWO file.
5780 (var_decode_location): Watch for DW_OP_GNU_addr_index.
5781 (dwarf2_const_value_attr): New cases DW_FORM_GNU_addr_index,
5782 DW_FORM_GNU_str_index.
5783 (lookup_die_type): Check whether section offset of type's die is
5784 known before looking it up. Remove assert. Condition can
5785 legimately happen for inter-cu type references.
5786 (dwarf_attr_name): Handle Fission attributes.
5787 (dwarf_form_name): Handle Fission forms.
5788 (dump_die_shallow): New cases DW_FORM_GNU_addr_index,
5789 DW_FORM_GNU_str_index.
5790 (follow_die_sig): Update to use type_offset_in_section.
5791 (decode_locdesc): New case DW_OP_GNU_addr_index.
5792 (skip_form_bytes): New cases DW_FORM_GNU_addr_index,
5793 DW_FORM_GNU_str_index.
5794 (cu_debug_loc_section): New function.
5795 (fill_in_loclist_baton, dwarf2_symbol_mark_computed): Call it.
5796 (dwarf2_per_objfile_free): Unmap .debug_addr section.
5797 Free DWO files if present.
5798 * xcoffread.c (dwarf2_xcoff_names): Add .debug_addr.
5799
5800 Refactor DIE reading.
5801 * dwarf2read.c (dwarf2_per_objfile): Replace members
5802 debug_info_type_hash and debug_types_type_hash with die_type_hash.
5803 (die_reader_specs): New member "die_section". Temporarily make
5804 member "buffer" non-const, pending constifying all info_ptr uses.
5805 (die_reader_func_ftype): New typedef.
5806 (dw2_get_file_names_reader): New function.
5807 (dw2_get_file_names): Rewrite.
5808 (read_and_check_type_unit_head): Rename arg type_offset to
5809 type_offset_in_tu.
5810 (create_all_type_units): Improve debugging message.
5811 Improve dummy type unit check.
5812 (init_cu_die_reader): New arg "section". All callers updated.
5813 (init_and_read_dies_worker): New function.
5814 (init_cu_and_read_dies, init_tu_and_read_dies): New functions.
5815 (init_cutu_and_read_dies_no_follow): New function.
5816 (init_cutu_and_read_dies_simple): New function.
5817 (process_psymtab_comp_unit_reader): New function.
5818 (process_psymtab_comp_unit): Delete args section,
5819 is_debug_types_section. Rewrite. All callers updated.
5820 (process_psymtab_type_unit): Renamed from process_type_comp_unit.
5821 All callers updated. Rewrite.
5822 (load_partial_comp_unit_reader): New function.
5823 (load_partial_comp_unit): Rewrite.
5824 (skip_children): New arg reader. Delete args buffer, cu.
5825 All callers updated.
5826 (skip_one_die): New arg reader. Delete args buffer, cu.
5827 All callers updated.
5828 (locate_pdi_sibling): New arg reader. Delete args buffer, abfd, cu.
5829 All callers updated.
5830 (load_full_comp_unit_reader): New function.
5831 (load_full_comp_unit): Rewrite.
5832 (read_comp_unit): Delete.
5833 (read_die_and_children_1): Delete, contents moved ...
5834 (read_die_and_children): ... here.
5835 (dwarf2_read_abbrevs): New arg abbrev_section. All callers updated.
5836 (load_partial_dies): New arg reader. Delete args abfd, buffer, cu.
5837 All callers updated.
5838 (read_partial_die): New arg reader. Delete args abfd, buffer, cu.
5839 All callers updated.
5840 (find_partial_die): Rewrite load_all_dies support.
5841 (read_attribute_value): New arg reader. Delete args abfd, cu.
5842 All callers updated.
5843 (read_attribute): New arg reader. Delete args abfd, cu.
5844 All callers updated.
5845 (load_full_type_unit): Add assert.
5846 (read_signatured_type_reader): New function.
5847 (read_signatured_type): Rewrite.
5848 (free_stack_comp_unit): Remove call to age_cached_comp_units.
5849 (free_one_cached_comp_unit): Change target_cu arg to target_per_cu.
5850 All callers updated. Set per_cu->cu = NULL after freeing it.
5851 (dwarf2_per_cu_offset_and_type): Renamed from dwarf2_offset_and_type.
5852 (per_cu_offset_and_type_hash): Renamed from offset_and_type_hash.
5853 (per_cu_offset_and_type_eq): Renamed from offset_and_type_eq.
5854 (set_die_type): Update.
5855 (get_die_type_at_offset): Update.
5856 (read_file_scope): Call prepare_one_comp_unit.
5857 (read_type_unit_scope): Ditto.
5858 (prepare_one_comp_unit): Set producer if present.
5859
5860 2012-04-28 Sergio Durigan Junior <sergiodj@redhat.com>
5861
5862 * probe.c (compile_rx_or_error): Silence ARI warning about missing
5863 gettext function on `error'.
5864
5865 2012-04-27 Doug Evans <dje@google.com>
5866
5867 * dwarf2read.c (dwarf2_read_index): Don't use index if symbol table
5868 is empty.
5869
5870 2012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
5871 Tom Tromey <tromey@redhat.com>
5872
5873 * breakpoint.c (struct breakpoint_objfile_data)
5874 <longjmp_searched>,<longjmp_probes>,<exception_searched>,
5875 <exception_probes>: New fields.
5876 (free_breakpoint_probes): New function.
5877 (create_longjmp_master_breakpoint): Prefer SystemTap probe over
5878 `_Unwind_DebugHook'.
5879 (create_exception_master_breakpoint): Likewise.
5880 (_initialize_breakpoint): Registering cleanup for SystemTap probes.
5881 * infrun.c: Including necessary header files for handling SystemTap
5882 probes.
5883 (handle_inferior_event): Handling longjmp breakpoint and exceptions
5884 via SystemTap probes.
5885 (check_exception_resume): Remove `func' argument. Handle exception
5886 unwinding breakpoint set via a SystemTap probe.
5887 (insert_exception_resume_from_probe): New function.
5888
5889 2012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
5890 Tom Tromey <tromey@redhat.com>
5891 Jan Kratochvil <jan.kratochvil@redhat.com>
5892
5893 * Makefile.in (SFILES): Add `probe' and `stap-probe'.
5894 (COMMON_OBS): Likewise.
5895 (HFILES_NO_SRCDIR): Add `probe'.
5896 * NEWS: Mention support for static and SystemTap probes.
5897 * amd64-tdep.c (amd64_init_abi): Initializing proper fields used by
5898 SystemTap probes' arguments parser.
5899 * arm-linux-tdep.c: Including headers needed to perform the parsing
5900 of SystemTap probes' arguments.
5901 (arm_stap_is_single_operand): New function.
5902 (arm_stap_parse_special_token): Likewise.
5903 (arm_linux_init_abi): Initializing proper fields used by SystemTap
5904 probes' arguments parser.
5905 * ax-gdb.c (require_rvalue): Removing static declaration.
5906 (gen_expr): Likewise.
5907 * ax-gdb.h (gen_expr): Declaring function.
5908 (require_rvalue): Likewise.
5909 * breakpoint.c: Include `gdb_regex.h' and `probe.h'.
5910 (bkpt_probe_breakpoint_ops): New variable.
5911 (momentary_breakpoint_from_master): Set the `probe' value.
5912 (add_location_to_breakpoint): Likewise.
5913 (break_command_1): Using proper breakpoint_ops according to the
5914 argument passed by the user in the command line.
5915 (bkpt_probe_insert_location): New function.
5916 (bkpt_probe_remove_location): Likewise.
5917 (bkpt_probe_create_sals_from_address): Likewise.
5918 (bkpt_probe_decode_linespec): Likewise.
5919 (tracepoint_probe_create_sals_from_address): Likewise.
5920 (tracepoint_probe_decode_linespec): Likewise.
5921 (tracepoint_probe_breakpoint_ops): New variable.
5922 (trace_command): Using proper breakpoint_ops according to the
5923 argument passed by the user in the command line.
5924 (initialize_breakpoint_ops): Initializing breakpoint_ops for
5925 static probes on breakpoints and tracepoints.
5926 * breakpoint.h (struct bp_location) <probe>: New field.
5927 * cli-utils.c (skip_spaces_const): New function.
5928 (extract_arg): Likewise.
5929 * cli-utils.h (skip_spaces_const): Likewise.
5930 (extract_arg): Likewise.
5931 * coffread.c (coff_sym_fns): Add `sym_probe_fns' value.
5932 * configure.ac: Append `stap-probe.o' to be generated when ELF
5933 support is present.
5934 * configure: Regenerate.
5935 * dbxread.c (aout_sym_fns): Add `sym_probe_fns' value.
5936 * elfread.c: Include `probe.h' and `arch-utils.h'.
5937 (probe_key): New variable.
5938 (elf_get_probes): New function.
5939 (elf_get_probe_argument_count): Likewise.
5940 (elf_evaluate_probe_argument): Likewise.
5941 (elf_compile_to_ax): Likewise.
5942 (elf_symfile_relocate_probe): Likewise.
5943 (stap_probe_key_free): Likewise.
5944 (elf_probe_fns): New variable.
5945 (elf_sym_fns): Add `sym_probe_fns' value.
5946 (elf_sym_fns_lazy_psyms): Likewise.
5947 (elf_sym_fns_gdb_index): Likewise.
5948 (_initialize_elfread): Initialize objfile cache for static
5949 probes.
5950 * gdb_vecs.h (struct probe): New forward declaration.
5951 (probe_p): New VEC declaration.
5952 * gdbarch.c: Regenerate.
5953 * gdbarch.h: Regenerate.
5954 * gdbarch.sh (stap_integer_prefix): New variable.
5955 (stap_integer_suffix): Likewise.
5956 (stap_register_prefix): Likewise.
5957 (stap_register_suffix): Likewise.
5958 (stap_register_indirection_prefix): Likewise.
5959 (stap_register_indirection_suffix): Likewise.
5960 (stap_gdb_register_prefix): Likewise.
5961 (stap_gdb_register_suffix): Likewise.
5962 (stap_is_single_operand): New function.
5963 (stap_parse_special_token): Likewise.
5964 (struct stap_parse_info): Forward declaration.
5965 * i386-tdep.c: Including headers needed to perform the parsing
5966 of SystemTap probes' arguments.
5967 (i386_stap_is_single_operand): New function.
5968 (i386_stap_parse_special_token): Likewise.
5969 (i386_elf_init_abi): Initializing proper fields used by SystemTap
5970 probes' arguments parser.
5971 * i386-tdep.h (i386_stap_is_single_operand): New function.
5972 (i386_stap_parse_special_token): Likewise.
5973 * machoread.c (macho_sym_fns): Add `sym_probe_fns' value.
5974 * mipsread.c (ecoff_sym_fns): Likewise.
5975 * objfiles.c (objfile_relocate1): Support relocation for static
5976 probes.
5977 * parse.c (prefixify_expression): Remove static declaration.
5978 (initialize_expout): Likewise.
5979 (reallocate_expout): Likewise.
5980 * parser-defs.h (initialize_expout): Declare function.
5981 (reallocate_expout): Likewise.
5982 (prefixify_expression): Likewise.
5983 * ppc-linux-tdep.c: Including headers needed to perform the parsing
5984 of SystemTap probes' arguments.
5985 (ppc_stap_is_single_operand): New function.
5986 (ppc_stap_parse_special_token): Likewise.
5987 (ppc_linux_init_abi): Initializing proper fields used by SystemTap
5988 probes' arguments parser.
5989 * probe.c: New file, for generic statically defined probe support.
5990 * probe.h: Likewise.
5991 * s390-tdep.c: Including headers needed to perform the parsing of
5992 SystemTap probes' arguments.
5993 (s390_stap_is_single_operand): New function.
5994 (s390_gdbarch_init): Initializing proper fields used by SystemTap
5995 probes' arguments parser.
5996 * somread.c (som_sym_fns): Add `sym_probe_fns' value.
5997 * stap-probe.c: New file, for SystemTap probe support.
5998 * stap-probe.h: Likewise.
5999 * symfile.h: Include `gdb_vecs.h'.
6000 (struct sym_probe_fns): New struct.
6001 (struct sym_fns) <sym_probe_fns>: New field.
6002 * symtab.c (init_sal): Initialize `probe' field.
6003 * symtab.h (struct probe): Forward declaration.
6004 (struct symtab_and_line) <probe>: New field.
6005 * tracepoint.c (start_tracing): Adjust semaphore on breakpoints
6006 locations.
6007 (stop_tracing): Likewise.
6008 * xcoffread.c (xcoff_sym_fns): Add `sym_probe_fns' value.
6009
6010 2012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
6011 Tom Tromey <tromey@redhat.com>
6012
6013 * ax-gdb.c (gen_expr): Clean up code to handle internal variables
6014 and to compile agent expressions.
6015 * infrun.c (siginfo_make_value): New argument `ignore'.
6016 (siginfo_funcs): New struct.
6017 (_initialize_infrun): New argument when calling
6018 `create_internalvar_type_lazy'.
6019 * thread.c (thread_id_make_value): New argument `ignore'.
6020 (thread_funcs): New struct.
6021 (_initialize_thread): New argument when calling
6022 `create_internalvar_type_lazy'.
6023 * tracepoint.c (sdata_make_value): New argument `ignore'.
6024 (sdata_funcs): New struct.
6025 (_initialize_tracepoint): New argument when calling
6026 `create_internalvar_type_lazy'.
6027 * value.c (make_value): New struct.
6028 (create_internalvar_type_lazy): New argument `data'.
6029 (compile_internalvar_to_ax): New function.
6030 (value_of_internalvar): Properly handling `make_value' case.
6031 (clear_internalvar): Likewise.
6032 (show_convenience): Adding `TRY_CATCH' block.
6033 * value.h (internalvar_make_value): Delete, replace by...
6034 (struct internalvar_funcs): ... this.
6035 (create_internalvar_type_lazy) <fun>: Delete argument.
6036 (create_internalvar_type_lazy) <funcs>, <data>: New arguments.
6037 (compile_internalvar_to_ax): New function.
6038 * windows-tdep.c (tlb_make_value): New argument `ignore'.
6039 (tlb_funcs): New struct.
6040 (_initialize_windows_tdep): New argument when calling
6041 `create_internalvar_type_lazy'.
6042
6043 2012-04-27 Mark Wielaard <mjw@redhat.com>
6044
6045 * dwarf2read.c (dwarf2_get_pc_bounds): Check DW_AT_high_pc form to
6046 see whether it is an address or a constant offset from DW_AT_low_pc.
6047 (dwarf2_record_block_ranges): Likewise.
6048 (read_partial_die): Likewise.
6049
6050 2012-04-26 Mark Wielaard <mjw@redhat.com>
6051
6052 * MAINTAINERS (Write After Approval): Add myself to the list.
6053
6054 2012-04-26 Maciej W. Rozycki <macro@codesourcery.com>
6055
6056 * proc-utils.h (proc_prettyprint_signalset): New prototype.
6057 (proc_prettyprint_signal): Likewise.
6058 (proc_prettyprint_faultset): Likewise.
6059 (proc_prettyprint_fault): Likewise.
6060 (proc_prettyprint_actionset): Likewise.
6061 (proc_prettyprint_flags): Move to new proc-flags.c section.
6062 (proc_prettyfprint_flags): New prototype.
6063 * procfs.c (proc_nsysarg, proc_sysargs): Add prototypes.
6064 (proc_syscall, proc_cursig): Likewise.
6065 (proc_set_kill_on_last_close): Likewise.
6066 (proc_unset_kill_on_last_close): Likewise.
6067 (proc_set_watchpoint): Make static.
6068 (proc_delete_dead_threads): Likewise.
6069 (procfs_set_watchpoint): Likewise.
6070 (_initialize_procfs): Add prototype.
6071 * proc-events.c: Include proc-utils.h.
6072 (init_syscall_table): Make static.
6073 * proc-api.c (_initialize_proc_api): Add prototype.
6074 * proc-flags.c: Include proc-utils.h.
6075
6076 2012-04-26 Maciej W. Rozycki <macro@codesourcery.com>
6077
6078 * configure.ac: Add AC_ARG_PROGRAM.
6079 * configure: Regenerate.
6080
6081 2012-04-26 Jan Kratochvil <jan.kratochvil@redhat.com>
6082
6083 Fix DW_AT_lower_bound defaults for DWARF-4+.
6084 * dwarf2read.c (read_subrange_type): Remove initialization of low and
6085 high. New variable low_default_is_valid. Implement DWARF-4+
6086 DW_AT_lower_bound defaults. Print complaint for DW_AT_lower_bound with
6087 no default by the DWARF standard.
6088
6089 2012-04-26 Maciej W. Rozycki <macro@mips.com>
6090 Maciej W. Rozycki <macro@codesourcery.com>
6091
6092 * infrun.c (handle_inferior_event): Move the check for return
6093 trampolines ahead of the check for function trampolines.
6094 * mips-tdep.h (MIPS_S2_REGNUM, MIPS_GP_REGNUM): New macros.
6095 * mips-tdep.c (mips_str_mips16_call_stub): New variable.
6096 (mips_str_mips16_ret_stub): Likewise.
6097 (mips_str_call_fp_stub): Likewise.
6098 (mips_str_call_stub): Likewise.
6099 (mips_str_fn_stub): Likewise.
6100 (mips_str_pic): Likewise.
6101 (mips_in_frame_stub): New function.
6102 (mips_unwind_pc): Return the return address rather than the PC
6103 if the PC of an intermediate frame is inside a call thunk.
6104 (mips_is_stub_suffix): New function.
6105 (mips_is_stub_mode): Likewise.
6106 (mips_get_mips16_fn_stub_pc): Likewise.
6107 (mips_skip_mips16_trampoline_code): Update to handle all the
6108 currently generated stub types. Don't recurse into __fn_stub
6109 thunks. Remove heuristics to handle stubs beyond etext/_etext.
6110 Use cooked register accesses.
6111 (mips_in_return_stub): Reintroduce function.
6112 (mips_skip_trampoline_code): Traverse trampolines recursively.
6113 (mips_gdbarch_init): Handle MIPS16 return trampolines.
6114
6115 2012-04-26 Joel Brobecker <brobecker@adacore.com>
6116
6117 GDB 7.4.1 released.
6118
6119 2012-04-26 Jonathan Larmour <jifl@eCosCentric.com>
6120
6121 * arm-tdep.h (VFP_REGISTER_SIZE): Define.
6122 * features/arm-with-m-vfp-d16.xml: New file. Describes
6123 Cortex-M with VFPv4-sp-d16 FPU register layout.
6124 * features/Makefile (WHICH): Add arm-with-m-vfp-d16.
6125 * features/arm-with-m-vfp-d16.c: New. Generated from above.
6126 * arm-tdep.c: Include arm-with-m-vfp-d16.c.
6127 (arm-register_g_packet_guesses): Add vfp-d16 guess.
6128 (_initialise_arm_tdep): Initialize arm-with-m-vfp-d16 tdesc.
6129
6130 2012-04-25 Doug Evans <dje@google.com>
6131
6132 * cli/cli-decode.c (print_doc_line): Use stream instead of
6133 current_uiout.
6134
6135 2012-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
6136
6137 * features/arm-with-iwmmxt.c: Regenerate.
6138 * features/arm-with-m-fpa-layout.c: Likewise.
6139 * features/arm-with-m.c: Likewise.
6140 * features/arm-with-neon.c: Likewise.
6141 * features/arm-with-vfpv2.c: Likewise.
6142 * features/arm-with-vfpv3.c: Likewise.
6143 * features/mips-dsp-linux.c: Likewise.
6144 * features/mips-linux.c: Likewise.
6145 * features/mips64-dsp-linux.c: Likewise.
6146 * features/mips64-linux.c: Likewise.
6147 * features/s390-linux32.c: Likewise.
6148 * features/s390-linux32v1.c: Likewise.
6149 * features/s390-linux32v2.c: Likewise.
6150 * features/s390-linux64.c: Likewise.
6151 * features/s390-linux64v1.c: Likewise.
6152 * features/s390-linux64v2.c: Likewise.
6153 * features/s390x-linux64.c: Likewise.
6154 * features/s390x-linux64v1.c: Likewise.
6155 * features/s390x-linux64v2.c: Likewise.
6156 * features/tic6x-c62x-linux.c: Likewise.
6157 * features/tic6x-c62x.c: Likewise.
6158 * features/tic6x-c64x-linux.c: Likewise.
6159 * features/tic6x-c64x.c: Likewise.
6160 * features/tic6x-c64xp-linux.c: Likewise.
6161 * features/tic6x-c64xp.c: Likewise.
6162 * target-descriptions.c: Only generate `field_type' and `type'
6163 variables when needed.
6164
6165 2012-04-25 Fredrik Hederstierna <fredrikh.hederstierna@securitas-direct.com>
6166
6167 * cli/cli-cmds.c (cd_command): Use memmove instead of strcpy.
6168
6169 2012-04-25 Doug Evans <dje@google.com>
6170
6171 Initial pass at Go language support.
6172 * NEWS: Mention Go.
6173 * Makefile.in (SFILES): Add go-exp.y, go-lang.c, go-typeprint.c,
6174 go-valprint.c.
6175 (COMMON_OBS): Add go-lang.o, go-val.print.o, go-typeprint.o.
6176 (YYFILES): Add go-exp.c.
6177 (YYOBJ): Add go-exp.o.
6178 (local-maintainer-clean): Delete go-exp.c.
6179 * defs.h (enum language): Add language_go.
6180 * dwarf2read.c: #include "go-lang.h".
6181 (fixup_go_packaging): New function.
6182 (process_full_comp_unit): Call it when processing Go CUs.
6183 (dwarf2_physname): Add Go support.
6184 (read_file_scope): Handle missing language spec for GNU Go.
6185 (set_cu_language): Handle DW_LANG_Go.
6186 * go-exp.y: New file.
6187 * go-lang.h: New file.
6188 * go-lang.c: New file.
6189 * go-typeprint.c: New file.
6190 * go-valprint.c: New file.
6191 * symtab.c: #include "go-lang.h".
6192 (symbol_set_language): Handle language_go.
6193 (symbol_find_demangled_name, symbol_set_names): Ditto.
6194 (symbol_natural_name, demangle_for_lookup, find_main_name): Ditto.
6195
6196 2012-04-24 Jim Meyering <meyering@redhat.com>
6197
6198 avoid a few strncpy-induced buffer overruns
6199 * procfs.c (procfs_make_note_section): Be sure to NUL-terminate
6200 fname and psargs before trying to concatenate.
6201 * tui/tui-stack.c (tui_get_function_from_frame): NUL-terminate
6202 "name" before applying strchr.
6203
6204 2012-04-25 Siva Chandra Reddy <sivachandra@google.com>
6205
6206 * CONTRIBUTE: Use unified diff instead of context diff when
6207 generating patches.
6208
6209 2012-04-24 Maciej W. Rozycki <macro@codesourcery.com>
6210
6211 * mips-tdep.c (mips_about_to_return): Remove dead MIPS16 support
6212 code. Handle JR.HB correctly.
6213
6214 2012-04-24 Maciej W. Rozycki <macro@codesourcery.com>
6215
6216 * mips-tdep.c
6217 (is_mips16_addr, unmake_mips16_addr, make_mips16_addr): Group
6218 with the other MIPS16 helpers.
6219
6220 2012-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
6221
6222 * observer.sh: Conditionally declare `args', thus cleaning up
6223 unused instances of this variable.
6224
6225 2012-04-24 Yao Qi <yao@codesourcery.com>
6226
6227 Revert this patch to allow breakpoint always-inserted
6228 in record target.
6229 2011-12-05 Pedro Alves <pedro@codesourcery.com>
6230 * breakpoint.c: Include record.h.
6231 (breakpoints_always_inserted_mode): Return false when the record
6232 target is in use.
6233
6234 * breakpoint.c (iterate_over_bp_locations): New.
6235 * breakpoint.h: Declare.
6236 New typedef walk_bp_location_callback.
6237 * record.c (record_open): Call record_init_record_breakpoints.
6238 (record_sync_record_breakpoints): New.
6239 (record_init_record_breakpoints): New.
6240 * NEWS: Mention supporting breakpoint always-inserted mode in
6241 record target.
6242
6243 2012-04-24 Marc Khouzam <marc.khouzam@ericsson.com>
6244
6245 * mi/mi-main.c (mi_cmd_execute): Choose a live thread not just
6246 any thread.
6247
6248 2012-04-24 Yao Qi <yao@codesourcery.com>
6249
6250 * breakpoint.c (ep_is_catchpoint): Renamed to ...
6251 (is_catchpoint): ... it.
6252 (print_one_breakpoint_location): Caller update.
6253 * breakpoint.h: Update declaration.
6254
6255 2012-04-23 David S. Miller <davem@davemloft.net>
6256
6257 * configure.tgt (sparc-*-linux*): Set build_gdbserver to yes.
6258
6259 2012-04-23 Tom Tromey <tromey@redhat.com>
6260
6261 * buildsym.c (add_free_pendings): Remove.
6262 * buildsym.h (add_free_pendings): Remove.
6263
6264 2012-04-23 Doug Evans <dje@google.com>
6265
6266 * dwarf2read.c (partial_die_full_name): Record DW_FORM_ref_addr in
6267 attr.u.unsnd instead of attr.u.addr.
6268 (read_attribute_value) Ditto for cases DW_FORM_ref_addr,
6269 DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4, DW_FORM_reg8,
6270 DW_FORM_ref_udata.
6271 (dump_die_shallow): Update cases DW_FORM_ref_addr,
6272 DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4. Add cases DW_FORM_ref8,
6273 DW_FORM_ref_udata.
6274 (dwarf2_get_ref_die_offset): Use DW_UNSND for reference attributes.
6275
6276 2012-04-23 Maciej W. Rozycki <macro@codesourcery.com>
6277
6278 * mips-tdep.c (mips_n32n64_return_value): Fix coding style.
6279 (mips_o32_return_value): Likewise.
6280 (mips_o64_return_value): Likewise.
6281
6282 2012-04-21 Paul Hilfinger <hilfinger@adacore.com>
6283
6284 * ada-lang.c (ada_evaluate_subexp): Add cases for
6285 TYPE_CODE_INTERNAL_FUNCTION and for TYPE_GNU_IFUNC, following
6286 their treatment in eval.c.
6287
6288 2012-04-21 David S. Miller <davem@davemloft.net>
6289
6290 * sparc-tdep.c (X_DISP10): Define.
6291 (sparc_analyze_control_transfer): Handle compare-and-branch.
6292
6293 2012-04-21 Jonathan Larmour <jifl@eCosCentric.com>
6294
6295 * features/Makefile (WHICH): Add arm-with-m and arm-with-m-fpa-layout.
6296 * arm-tdep.c (arm_register_g_packet_guesses): Fix comment.
6297
6298 2012-04-20 Nigel Stephens <nigel@mips.com>
6299 Maciej W. Rozycki <macro@codesourcery.com>
6300
6301 * mips-tdep.c (mips_float_register_p): New function.
6302 (mips_convert_register_float_case_p): Use mips_float_register_p.
6303 (mips_register_type): Likewise.
6304 (mips_print_register): Likewise.
6305 (print_gp_register_row): Likewise.
6306 (mips_print_registers_info): Likewise.
6307
6308 2012-04-20 Shun-Yen Lu <dark.asparagus@gmail.com>
6309
6310 * mips-tdep.c (mips_elf_make_msymbol_special): Fix identification
6311 of mips16 symbols.
6312
6313 2012-04-20 Andrew Pinski <apinski@cavium.com>
6314
6315 * MAINTAINERS (Write After Approval): Add myself to the list.
6316
6317 2012-04-20 Sergio Durigan Junior <sergiodj@redhat.com>
6318
6319 * MAINTAINERS: Update my e-mail address.
6320
6321 2012-04-20 Pedro Alves <palves@redhat.com>
6322
6323 * acx_configure_dir.m4 (ACX_CONFIGURE_DIR): Handle absolute
6324 $srcdir.
6325 * configure: Regenerate.
6326
6327 2012-04-20 Sergio Durigan Junior <sergiodj@redhat.com>
6328
6329 * cp-support.h: Include `gdb_vecs.h'. Delete `const_char_ptr' VEC
6330 declaration.
6331 * gdb_vecs.h: Declare `const_char_ptr' VEC.
6332
6333 2012-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
6334
6335 Fix compilation compatibility with python-2.4
6336 * python/py-type.c (convert_field): Cast ADDRSTRING for
6337 PyObject_SetAttrString as non-const. New comment.
6338
6339 2012-04-19 Tom Tromey <tromey@redhat.com>
6340
6341 * top.c (quit_target): Use all_cleanups.
6342 * main.c (captured_command_loop): Use all_cleanups.
6343 * exceptions.c (throw_exception): Use all_cleanups.
6344
6345 2012-04-19 Pedro Alves <palves@redhat.com>
6346
6347 * Makefile.in (GNULIB_BUILDDIR): New.
6348 (LIBGNU, INCGNU, GNULIB_H): Adjust.
6349 (SUBDIRS): Add $(GNULIB_BUILDDIR).
6350 (CLEANDIRS). Remove gnulib/import.
6351 (REQUIRED_SUBDIRS): Replace gnulib/import with $(GNULIB_BUILDDIR).
6352 (all-lib): Ditto.
6353 (distclean): Remove the $(GNULIB_BUILDDIR) directory.
6354 (gnulib/import/Makefile): Replace gnulib/import with
6355 $(GNULIB_BUILDDIR). Set CONFIG_FILES to just Makefile.
6356 (ACLOCAL_AMFLAGS): Remove '-I gnulib/import/m4'.
6357 (aclocal_m4_deps): Remove the gnulib dependencies. Add
6358 acx_configure_dir.m4.
6359 * acinclude.m4: Include acx_configure_dir.m4.
6360 * acx_configure_dir.m4: New file.
6361 * aclocal.m4: Regenerate.
6362 * configure.ac: Remove gl_EARLY, gl_INIT and AM_INIT_AUTOMAKE
6363 calls. Configure gnulib using ACX_CONFIGURE_DIR.
6364 (GNULIB): New variable.
6365 (GNULIB_STDINT_H): Adjust.
6366 (AC_OUTPUT): Don't output gnulib/Makefile.
6367 * gdb/defs.h: Include build-gnulib/config.h.
6368 * aclocal.m4: Regenerate.
6369 * config.in: Regenerate.
6370 * configure: Regenerate.
6371
6372 * gnulib/Makefile.in: New file.
6373 * gnulib/configure.ac: New file.
6374 * gnulib/aclocal.m4: New file.
6375 * gnulib/config.in: New file.
6376 * gnulib/configure: New file.
6377 * gnulib/: Re-run gnulib-tool to adjust.
6378
6379 2012-04-19 Doug Evans <dje@google.com>
6380
6381 * cleanups.h (struct cleanup): Move to cleanups.c.
6382 (make_cleanup_dtor_ftype): New typedef.
6383 (make_cleanup_dtor): Use it.
6384 (ALL_CLEANUPS): Replace with ...
6385 (all_cleanups): ... this. Declare. All uses updated.
6386 * cleanups.c: #include "gdb_assert.h".
6387 (sentinel_cleanup): New static global.
6388 (SENTINEL_CLEANUP): Define.
6389 (cleanup_chain, final_cleanup_chain): Initialize to SENTINEL_CLEANUP.
6390 (make_my_cleanup2): Assert result is non-NULL.
6391 (all_cleanups): New function.
6392 (save_my_cleanups): Initialize new chain to SENTINEL_CLEANUP instead
6393 of NULL.
6394
6395 2012-04-19 Pedro Alves <palves@redhat.com>
6396
6397 * Makefile.in (HFILES_NO_SRCDIR): Remove gnulib/wchar.in.h.
6398 Adjust paths to gnulib imported files.
6399
6400 2012-04-19 Pedro Alves <palves@redhat.com>
6401
6402 * gnulib/: Move whole directory ...
6403 * gnulib/import/: ... here, and re-rerun gnulib-tool to adjust.
6404 * Makefile.in (LIBGNU, INCGNU, GNULIB_H, CLEANDIRS)
6405 (REQUIRED_SUBDIRS, all-lib, gnulib/Makefile, ACLOCAL_AMFLAGS)
6406 (aclocal_m4_deps): Adjust.
6407 * aclocal.m4: Regenerate.
6408 * configure: Regenerate.
6409 * configure.ac: Adjust AC_OUTPUT output.
6410
6411 2012-04-19 Yao Qi <yao@codesourcery.com>
6412
6413 * Makefile.in (SFILES): Add common/vec.c and remove vec.c.
6414 (vec.o): New rule.
6415 * vec.c: Move it ...
6416 * common/vec.c: ... here.
6417 * vec.h: Move it ...
6418 * common/vec.h: ... here.
6419
6420 2012-04-19 Yao Qi <yao@codesourcery.com>
6421
6422 * gdb-code-style.el: New.
6423
6424 2012-04-18 Pedro Alves <palves@redhat.com>
6425
6426 Update gnulib from latest git.
6427 (639ea5ae15e39fe48d43e04864b2997301e4b969)
6428
6429 * gnulib/Makefile.am: Update.
6430 * gnulib/dummy.c: Update.
6431 * gnulib/extra/arg-nonnull.h: Update.
6432 * gnulib/extra/c++defs.h: Update.
6433 * gnulib/extra/update-copyright: Update.
6434 * gnulib/extra/warn-on-use.h: Update.
6435 * gnulib/inttypes.in.h: Update.
6436 * gnulib/m4/00gnulib.m4: Update.
6437 * gnulib/m4/extensions.m4: Update.
6438 * gnulib/m4/gnulib-cache.m4: Update.
6439 * gnulib/m4/gnulib-common.m4: Update.
6440 * gnulib/m4/gnulib-comp.m4: Update.
6441 * gnulib/m4/gnulib-tool.m4: Update.
6442 * gnulib/m4/include_next.m4: Update.
6443 * gnulib/m4/inttypes-pri.m4: Update.
6444 * gnulib/m4/inttypes.m4: Update.
6445 * gnulib/m4/longlong.m4: Update.
6446 * gnulib/m4/memchr.m4: Update.
6447 * gnulib/m4/memmem.m4: Update.
6448 * gnulib/m4/mmap-anon.m4: Update.
6449 * gnulib/m4/multiarch.m4: Update.
6450 * gnulib/m4/onceonly.m4: Update.
6451 * gnulib/m4/stddef_h.m4: Update.
6452 * gnulib/m4/stdint.m4: Update.
6453 * gnulib/m4/string_h.m4: Update.
6454 * gnulib/m4/warn-on-use.m4: Update.
6455 * gnulib/m4/wchar_h.m4: Update.
6456 * gnulib/m4/wchar_t.m4: Update.
6457 * gnulib/m4/wint_t.m4: Update.
6458 * gnulib/memchr.c: Update.
6459 * gnulib/memmem.c: Update.
6460 * gnulib/stddef.in.h: Update.
6461 * gnulib/stdint.in.h: Update.
6462 * gnulib/str-two-way.h: Update.
6463 * gnulib/string.in.h: Update.
6464 * gnulib/wchar.in.h: Update.
6465
6466 * gnulib/extra/arg-nonnull.h: Delete.
6467 * gnulib/extra/c++defs.h: Delete.
6468 * gnulib/extra/warn-on-use.h: Delete.
6469 * gnulib/m4/wchar_h.m4: Delete.
6470 * gnulib/m4/wint_t.m4: Delete.
6471 * gnulib/wchar.in.h: Delete.
6472
6473 * gnulib/extra/snippets/arg-nonnull.h: New.
6474 * gnulib/extra/snippets/c++defs.h: New.
6475 * gnulib/extra/snippets/warn-on-use.h: New.
6476
6477 * aclocal.m4: Regenerate.
6478 * config.in: Regenerate.
6479 * configure: Regenerate.
6480 * gnulib/Makefile.in: Regenerate.
6481
6482 2012-04-18 Pedro Alves <palves@redhat.com>
6483
6484 Reimport the update-copyright module from gnulib
6485 (250b80067c1e1d8faa0c42fb572f721975b929c5).
6486
6487 * configure: Regenerate.
6488 * gnulib/Makefile.am: Update.
6489 * gnulib/Makefile.in: Regenerate.
6490 * gnulib/extra/update-copyright: Update.
6491 * gnulib/m4/gnulib-cache.m4: Update.
6492 * gnulib/m4/gnulib-comp.m4: Update.
6493
6494 2012-04-18 Tristan Gingold <gingold@adacore.com>
6495
6496 * configure.ac (aix): Put -lpthread into libs.
6497 * configure: Regenerate.
6498
6499 2012-04-18 Tom Tromey <tromey@redhat.com>
6500
6501 * linespec.c (convert_linespec_to_sals): Don't use
6502 SYMBOL_OBJ_SECTION.
6503 (compare_msymbols): Arguments are minsym_and_objfile, not
6504 minimal_symbol*. Don't use SYMBOL_OBJ_SECTION.
6505
6506 2012-04-18 Pedro Alves <palves@redhat.com>
6507
6508 Revert gnulib/ part of:
6509 2011-01-01 Joel Brobecker <brobecker@adacore.com>
6510 Copyright year update in most files (performed by copyright.sh).
6511
6512 2012-04-18 Jan Kratochvil <jan.kratochvil@redhat.com>
6513
6514 Fix 64-bit constants on 32-bit hosts.
6515 * dwarf2read.c (read_unsigned_leb128): Change declaration return type
6516 from unsigned long to ULONGEST.
6517 (read_signed_leb128): Change declaration return type from long to
6518 LONGEST.
6519 (dwarf2_const_value_attr): Change declaration parameter value from long
6520 to LONGEST.
6521 (dwarf2_compute_name): Change variable value from long to LONGEST.
6522 (read_unsigned_leb128): Change return type, variable result and some
6523 casts from unsigned long to ULONGEST.
6524 (read_signed_leb128): Change return type, variable result and some
6525 casts from long to LONGEST.
6526 (dwarf2_const_value_data, dwarf2_const_value_attr): Change parameter
6527 value from long to LONGEST.
6528 (dwarf2_const_value): Change variable value from long to LONGEST.
6529 * symmisc.c (print_symbol): Change SYMBOL_VALUE format strings to use
6530 plongest and hex_string.
6531 * symtab.h (struct general_symbol_info): Change ivalue from long to
6532 LONGEST, remove the comment.
6533 * tracepoint.c (validate_actionline, collect_symbol, scope_info):
6534 Change SYMBOL_VALUE format strings to use plongest and hex_string.
6535
6536 2012-04-18 Siddhesh Poyarekar <siddhesh@redhat.com>
6537
6538 PR symtab/7259:
6539 * ada-exp.y (convert_char_literal): Use TYPE_FIELD_ENUMVAL.
6540 * ada-lang.c (ada_discrete_type_high_bound)
6541 (ada_discrete_type_low_bound): Fix function comment. Use
6542 TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
6543 (ada_identical_enum_types_p): Use TYPE_FIELD_ENUMVAL.
6544 (pos_atr, value_val_atr): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
6545 * ada-typeprint.c (print_enum_type): Change variable lastval to LONGEST.
6546 Use TYPE_FIELD_ENUMVAL.
6547 * ada-valprint.c (print_optional_low_bound, ada_print_scalar)
6548 (ada_val_print_1): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
6549 * c-typeprint.c (c_type_print_base): Move variable lastval to inner
6550 block, change it to LONGEST. Use TYPE_FIELD_ENUMVAL for
6551 TYPE_CODE_ENUM.
6552 * coffread.c (coff_read_enum_type): Use SET_FIELD_ENUMVAL.
6553 * dwarf2read.c (process_enumeration_scope): Likewise.
6554 * gdb-gdb.py (TypeFlagsPrinter): Use field.enumval instead of
6555 field.bitpos.
6556 (class StructMainTypePrettyPrinter): Support also
6557 FIELD_LOC_KIND_ENUMVAL.
6558 * gdbtypes.c (get_discrete_bounds): Use TYPE_FIELD_ENUMVAL for
6559 TYPE_CODE_ENUM.
6560 (recursive_dump_type): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
6561 (copy_type_recursive): Support also FIELD_LOC_KIND_ENUMVAL.
6562 * gdbtypes.h (enum field_loc_kind): New FIELD_LOC_KIND_ENUMVAL.
6563 (struct main_type.flds_bnds.fields.loc): Adjust bitpos comment. New
6564 field enumval.
6565 (struct main_type.flds_bnds.bields): Adjust loc_kind and bitsize to
6566 accommodate enumval.
6567 (struct call_site): Adjust loc_kind to accommodate enumval.
6568 (FIELD_ENUMVAL, FIELD_ENUMVAL_LVAL, SET_FIELD_ENUMVAL)
6569 (TYPE_FIELD_ENUMVAL): New macros.
6570 * m2-typeprint.c (m2_enum): Use TYPE_FIELD_ENUMVAL.
6571 * mdebugread.c (parse_symbol): Use TYPE_FIELD_ENUMVAL for
6572 TYPE_CODE_ENUM.
6573 * p-typeprint.c (pascal_type_print_base): Likewise.
6574 * python/lib/gdb/printing.py (class FlagEnumerationPrinter): Use
6575 enumval.
6576 * python/lib/gdb/types.py (make_enum_dict): Likewise.
6577 * python/py-type.c (convert_field): New variable addrstring. Use
6578 TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
6579 (check_types_equal): Support also FIELD_LOC_KIND_ENUMVAL.
6580 * stabsread.c (read_enum_type): Use SET_FIELD_ENUMVAL.
6581 * typepint.c (print_type_scalar): Use TYPE_FIELD_ENUMVAL for
6582 TYPE_CODE_ENUM.
6583 * valprint.c (generic_val_print): Likewise.
6584
6585 2012-04-17 Doug Evans <dje@google.com>
6586
6587 * dwarf2read.c (lookup_signatured_type): Return NULL instead of 0.
6588
6589 * dwarf2read.c: Whitespace fixes.
6590 (lookup_signatured_type): Tweak comment.
6591 (get_die_type_at_offset): Fix comment.
6592
6593 2012-04-17 Joel Brobecker <brobecker@adacore.com>
6594
6595 * xcoffread.c (xcoff_secnum_to_sections): New function.
6596 (secnum_to_section, secnum_to_bfd_section): Reimplement
6597 using xcoff_secnum_to_sections. Rename "secnum" parameter
6598 into "n_scnum".
6599 (RECORD_MINIMAL_SYMBOL): Delete.
6600 (record_minimal_symbol): New function.
6601 (scan_xcoff_symtab): Replace uses of RECORD_MINIMAL_SYMBOL
6602 by call to record_minimal_symbol and set misc_func_recorded
6603 to 1. Set last_csect_sec to the XCOFF section index instead
6604 of GDB's section_offset index. Update calls to
6605 prim_record_minimal_symbol_and_info to pass the BFD section
6606 as well.
6607
6608 2012-04-17 Joel Brobecker <brobecker@adacore.com>
6609
6610 * xcoffread.c (read_xcoff_symtab): Delete variables
6611 last_csect_val and last_csect_sec and associated code.
6612
6613 2012-04-17 Doug Evans <dje@google.com>
6614
6615 * cleanups.c (make_my_cleanup,make_my_cleanup2): Make static.
6616 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
6617 * cleanups.h (make_my_cleanup,make_my_cleanup2): Delete
6618 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Delete.
6619
6620 * cleanups.h: New file.
6621 * cleanups.c: New file.
6622 * Makefile.in (SFILES): Add cleanups.c.
6623 (HFILES_NO_SRCDIR): Add cleanups.h.
6624 (COMMON_OBS): Add cleanups.o.
6625 * defs.h (struct cleanup): Moved to cleanups.h.
6626 (do_cleanups,do_final_cleanups): Ditto.
6627 (discard_cleanups,discard_final_cleanups): Ditto
6628 (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
6629 (save_cleanups,save_final_cleanups): Ditto.
6630 (restore_cleanups,restore_final_cleanups): Ditto.
6631 (null_cleanup): Ditto.
6632 (make_my_cleanup,make_my_cleanup2): Ditto.
6633 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
6634 * utils.c (cleanup_chain,final_cleanup_chain): Moved to cleanups.c.
6635 (do_cleanups,do_final_cleanups): Ditto.
6636 (discard_cleanups,discard_final_cleanups): Ditto
6637 (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
6638 (save_cleanups,save_final_cleanups): Ditto.
6639 (restore_cleanups,restore_final_cleanups): Ditto.
6640 (null_cleanup): Ditto.
6641 (make_my_cleanup,make_my_cleanup2): Ditto.
6642 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
6643
6644 * utils.c (make_cleanup_freeargv): Use make_cleanup instead of
6645 make_my_cleanup.
6646 (make_cleanup_dyn_string_delete): Ditto.
6647 (make_cleanup_ui_file_delete): Ditto.
6648 (make_cleanup_ui_out_redirect_pop): Ditto.
6649 (make_cleanup_free_section_addr_info): Ditto.
6650 (make_cleanup_restore_integer): Ditto.
6651 (make_cleanup_unpush_target): Ditto.
6652 (make_cleanup_value_free_to_mark): Ditto.
6653 (make_cleanup_value_free): Ditto.
6654 (make_cleanup_free_so): Ditto.
6655
6656 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6657
6658 New option "set debug auto-load".
6659 * NEWS: New commands "set debug auto-load" and "show debug auto-load".
6660 * auto-load.c (debug_auto_load, show_debug_auto_load: New.
6661 (auto_load_safe_path_vec_update)
6662 (filename_is_in_auto_load_safe_path_vec): Call fprintf_unfiltered
6663 if DEBUG_AUTO_LOAD.
6664 (file_is_auto_load_safe): New parameters debug_fmt and ....
6665 Call fprintf_unfiltered if DEBUG_AUTO_LOAD.
6666 (source_gdb_script_for_objfile): Extend the file_is_auto_load_safe
6667 caller by explanatory string.
6668 (_initialize_auto_load): Register "set debug auto-load".
6669 * auto-load.h (file_is_auto_load_safe): New parameters debug_fmt
6670 and ....
6671 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
6672 (try_thread_db_load_from_dir): Extend the file_is_auto_load_safe caller
6673 by explanatory string.
6674 * main.c (captured_main): Likewise.
6675 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile)
6676 (source_section_scripts): Likewise.
6677
6678 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6679
6680 New option "set auto-load safe-path".
6681 * NEWS: New commands "set auto-load safe-path"
6682 and "show auto-load safe-path".
6683 * auto-load.c: Include gdb_vecs.h, readline/tilde.h and completer.h.
6684 (auto_load_safe_path, auto_load_safe_path_vec)
6685 (auto_load_safe_path_vec_update, set_auto_load_safe_path)
6686 (show_auto_load_safe_path, add_auto_load_safe_path, filename_is_in_dir)
6687 (filename_is_in_auto_load_safe_path_vec, file_is_auto_load_safe): New.
6688 (source_gdb_script_for_objfile): New variable is_safe. Call
6689 file_is_auto_load_safe. Return if it is not.
6690 (struct loaded_script): New field loaded.
6691 (maybe_add_script): Add parameter loaded. Initialize SLOT with it.
6692 (print_script): Use LOADED indicator instead of FULL_PATH. Change
6693 output "Missing" to "No".
6694 (_initialize_auto_load): New variable cmd. Initialize
6695 auto_load_safe_path. Register "set auto-load safe-path",
6696 "show auto-load safe-path" and "add-auto-load-safe-path".
6697 * auto-load.h (maybe_add_script): Add parameter loaded.
6698 (file_is_auto_load_safe): New declaration.
6699 * config.in: Regenerate.
6700 * configure: Regenerate.
6701 * configure.ac: New parameters --with-auto-load-safe-path
6702 and --without-auto-load-safe-path.
6703 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
6704 (try_thread_db_load_from_dir): Check file_is_auto_load_safe first.
6705 * main.c (captured_main): Check file_is_auto_load_safe for
6706 LOCAL_GDBINIT.
6707 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile): New
6708 variable is_safe. Call file_is_auto_load_safe. Return if it is not.
6709 (source_section_scripts): Call file_is_auto_load_safe. Return if it is
6710 not.
6711
6712 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6713
6714 auto-load: Implementation.
6715 * NEWS: New descriptions for "info auto-load",
6716 "info auto-load gdb-scripts", "info auto-load python-scripts",
6717 "info auto-load local-gdbinit" and "info auto-load libthread-db".
6718 Deprecate "info auto-load-scripts", "set auto-load-scripts on|off"
6719 and "show auto-load-scripts". New description for "set auto-load",
6720 "show auto-load", "set auto-load gdb-scripts",
6721 "show auto-load gdb-scripts", "set auto-load python-scripts",
6722 "show auto-load python-scripts", "set auto-load local-gdbinit",
6723 "show auto-load local-gdbinit", "set auto-load libthread-db" and
6724 "show auto-load libthread-db".
6725 * auto-load.c: Remove include python/python-internal.h. Add includes
6726 exceptions.h, cli/cli-script.h, gdbcmd.h, cli/cli-decode.h and
6727 cli/cli-setshow.h.
6728 (GDB_AUTO_FILE_NAME, source_gdb_script_for_objfile)
6729 (auto_load_gdb_scripts, show_auto_load_gdb_scripts): New.
6730 (gdbpy_global_auto_load): Rename to ...
6731 (global_auto_load): ... here.
6732 (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
6733 (auto_load_local_gdbinit_loaded, show_auto_load_local_gdbinit)
6734 (script_language_gdb, source_gdb_script_for_objfile): New.
6735 (struct loaded_script): New field language.
6736 (hash_loaded_script_entry, eq_loaded_script_entry): Calculate also
6737 LANGUAGE.
6738 (maybe_add_script): Add parameter language. Drop redundant
6739 entry.full_path initialization. Initialize entry.language and
6740 (*slot)->language.
6741 (auto_load_objfile_script): Change parameter suffix to language.
6742 Remove the call of maybe_add_script.
6743 Call language->source_script_for_objfile.
6744 (load_auto_scripts_for_objfile, struct collect_matching_scripts_data):
6745 New.
6746 (collect_matching_scripts): Adjust it for
6747 struct collect_matching_scripts_data.
6748 (auto_load_info_scripts_pattern_nl): New variable.
6749 (info_auto_load_scripts): Rename to ...
6750 (auto_load_info_scripts): ... here, add parameter language. Adjust it
6751 for struct collect_matching_scripts_data.
6752 (info_auto_load_gdb_scripts, info_auto_load_local_gdbinit)
6753 (set_auto_load_cmd, auto_load_set_cmdlist_get, show_auto_load_cmd)
6754 (auto_load_show_cmdlist_get, info_auto_load_cmd)
6755 (auto_load_info_cmdlist_get): New.
6756 (_initialize_auto_load): Move add_info of "auto-load-scripts" to
6757 python/py-auto-load.c. New installment for "set auto-load gdb-scripts",
6758 "info auto-load gdb-scripts", "set auto-load local-gdbinit" and
6759 "info auto-load local-gdbinit".
6760 * auto-load.h (struct script_language): New.
6761 (gdbpy_global_auto_load): Rename to ...
6762 (global_auto_load): ... here.
6763 (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
6764 (auto_load_local_gdbinit_loaded): New declarations.
6765 (maybe_add_script): New parameter language.
6766 (auto_load_objfile_script): Change parameter suffix to language.
6767 (load_auto_scripts_for_objfile, auto_load_info_scripts_pattern_nl)
6768 (auto_load_info_scripts, auto_load_set_cmdlist_get)
6769 (auto_load_show_cmdlist_get, auto_load_info_cmdlist_get): New
6770 declarations.
6771 * linux-thread-db.c: Include auto-load.h and ctype.h.
6772 (auto_load_thread_db, show_auto_load_thread_db): New.
6773 (struct thread_db_info): New field filename.
6774 (delete_thread_db_info): Call xfree for FILENAME.
6775 (try_thread_db_load): Initialize FILENAME.
6776 (try_thread_db_load_from_pdir, try_thread_db_load_from_dir): Return
6777 if !AUTO_LOAD_THREAD_DB.
6778 (info_auto_load_libthread_db_compare, info_auto_load_libthread_db): New.
6779 (_initialize_thread_db): Install auto_load_thread_db
6780 as "set auto-load libthread-db" and install info_auto_load_libthread_db
6781 as "info auto-load libthread-db".
6782 * main.c (captured_main): Rename gdbpy_global_auto_load to
6783 global_auto_load. Initialize AUTO_LOAD_LOCAL_GDBINIT_PATHNAME and
6784 AUTO_LOAD_LOCAL_GDBINIT_LOADED.
6785 (print_gdb_help): Extend the help for 'local init file'.
6786 * python/py-auto-load.c: Remove a comment about gdb scripts extension.
6787 (GDBPY_AUTO_SECTION_NAME): Extend the comment it is Python specific.
6788 (auto_load_scripts): Rename to ...
6789 (auto_load_python_scripts): ... here, update the comment.
6790 (gdbpy_load_auto_script_for_objfile): New declaration.
6791 (show_auto_load_python_scripts, script_language_python)
6792 (gdbpy_load_auto_script_for_objfile): New.
6793 (source_section_scripts): Refactor the code.
6794 (load_auto_scripts_for_objfile): Rename to ...
6795 (gdbpy_load_auto_scripts_for_objfile): ... here, update the
6796 auto_load_objfile_script caller, drop GDBPY_GLOBAL_AUTO_LOAD checking.
6797 (info_auto_load_python_scripts): New.
6798 (gdbpy_initialize_auto_load): New variables cmd and cmd_name.
6799 Rename "set auto-load-scripts" to "set auto-load python-scripts".
6800 Register "set auto-load-scripts" as its deprecated alias. Register
6801 "info auto-load python-scripts". Register "info auto-load-scripts" as
6802 its deprecated alias.
6803 (load_auto_scripts_for_objfile): Rename to ...
6804 (gdbpy_load_auto_scripts_for_objfile): ... here.
6805 * python/python.h (load_auto_scripts_for_objfile): Rename to ...
6806 (gdbpy_load_auto_scripts_for_objfile): ... here.
6807
6808 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6809
6810 auto-load: Move files.
6811 * Makefile.in (SFILES): Add auto-load.c.
6812 (HFILES_NO_SRCDIR): Add auto-load.h.
6813 (COMMON_OBS): Add auto-load.o.
6814 (distclean): Change .gdbinit for gdb-gdb.gdb.
6815 * auto-load.c: New file, with parts from python/py-auto-load.c.
6816 * auto-load.h: New file, with parts from python/python.h.
6817 * configure: Regenerate.
6818 * configure.ac (AC_OUTPUT): Change .gdbinit for gdb-gdb.gdb.
6819 * gdb-gdb.gdb.in: New file, renamed from gdbinit.in.
6820 * gdbinit.in: Remove file, rename it to gdb-gdb.gdb.in.
6821 * main.c: Include auto-load.h.
6822 * python/py-auto-load.c: Move include filenames.h, gdb_regex.h,
6823 command.h, observer.h and progspace.h to auto-load.c. Add include
6824 auto-load.h.
6825 (gdbpy_global_auto_load, struct auto_load_pspace_info)
6826 (struct loaded_script, auto_load_pspace_data)
6827 (auto_load_pspace_data_cleanup, get_auto_load_pspace_data)
6828 (hash_loaded_script_entry, eq_loaded_script_entry)
6829 (init_loaded_scripts_info, get_auto_load_pspace_data_for_loading)
6830 (maybe_add_script): Move to auto-load.c.
6831 (source_section_scripts): Change maybe_add_script parameters passing,
6832 use script_not_found_warning_print.
6833 (clear_section_scripts, auto_load_objfile_script)
6834 (auto_load_new_objfile, loaded_script_ptr)
6835 (DEF_VEC_P (loaded_script_ptr), collect_matching_scripts, print_script)
6836 (sort_scripts_by_name, info_auto_load_scripts): Move to auto-load.c.
6837 (gdbpy_initialize_auto_load): Move auto_load_pspace_data,
6838 auto_load_new_objfile and info_auto_load_scripts initizations to
6839 auto-load.c.
6840 * python/python.h (gdbpy_global_auto_load): Move to auto-load.h.
6841
6842 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6843
6844 Code cleanup.
6845 * charset.c (find_charset_names): Remove variables ix and elt.
6846 Use free_char_ptr_vec.
6847 * elfread.c (build_id_to_debug_filename): New variables debugdir_vec,
6848 back_to and ix. Use dirnames_to_char_ptr_vec. Remove variable
6849 debugdir_end. New variable debugdir_len.
6850 * gdb_vecs.h (free_char_ptr_vec, make_cleanup_free_char_ptr_vec)
6851 (dirnames_to_char_ptr_vec_append, dirnames_to_char_ptr_vec): New
6852 declarations.
6853 * progspace.c (clear_program_space_solib_cache): Remove variables ix
6854 and elt. Use free_char_ptr_vec.
6855 * source.c (add_path): Remove variables argv, arg and argv_index.
6856 New variables dir_vec, back_to, ix and name.
6857 Use dirnames_to_char_ptr_vec_append. Use freeargv instead of
6858 make_cleanup_freeargv. Remove variable separator. Simplify the code
6859 no longer expecting DIRNAME_SEPARATOR.
6860 (openp): Remove variable p, p1 and len. New variables dir_vec,
6861 back_to, ix and dir. Use dirnames_to_char_ptr_vec. Simplify the code
6862 no longer expecting DIRNAME_SEPARATOR.
6863 * symfile.c (find_separate_debug_file): New variables debugdir_vec,
6864 back_to and ix. Use dirnames_to_char_ptr_vec. Remove variable
6865 debugdir_end.
6866 * utils.c (free_char_ptr_vec, do_free_char_ptr_vec)
6867 (make_cleanup_free_char_ptr_vec, dirnames_to_char_ptr_vec_append)
6868 (dirnames_to_char_ptr_vec): New functions.
6869
6870 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6871
6872 Code cleanup.
6873 * source.c (add_path): Remove always true conditional 'p == 0' and
6874 unindent its code block.
6875
6876 2012-04-17 Pedro Alves <palves@redhat.com>
6877
6878 * gdbtypes.h (FIELD_BITPOS): Rename to ...
6879 (FIELD_BITPOS_LVAL): ... this.
6880 (FIELD_BITPOS): New.
6881 (SET_FIELD_BITPOS): Adjust to use FIELD_BITPOS_LVAL.
6882 * dwarf2read.c (dwarf2_add_field): Use SET_FIELD_BITPOS.
6883 * gdbtypes.c (append_composite_type_field_aligned): Adjust to use
6884 SET_FIELD_BITPOS.
6885 * gnu-v3-abi.c (build_gdb_vtable_type): Adjust to use
6886 SET_FIELD_BITPOS.
6887 * stabsread.c (read_cpp_abbrev, read_one_struct_field)
6888 (read_baseclasses): Adjust to use SET_FIELD_BITPOS.
6889 * target-descriptions.c (tdesc_gdb_type): Adjust to use
6890 SET_FIELD_BITPOS.
6891
6892 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6893
6894 Do not rely on FIELD_LOC_KIND_BITPOS being zero.
6895 * ada-lang.c (ada_template_to_fixed_record_type_1): Replace
6896 TYPE_FIELD_BITPOS used as lvalue by SET_FIELD_BITPOS.
6897 * gdbtypes.c (append_flags_type_flag): Likewise, twice.
6898 * jv-lang.c (java_link_class_type): Likewise, once.
6899 * stabsread.c (read_enum_type): Likewise.
6900
6901 2012-04-16 Yao Qi <yao@codesourcery.com>
6902
6903 * common/agent.c (agent_run_command): Add one more parameter `len'.
6904 Update callers.
6905 * common/agent.h: Update declaration.
6906 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
6907 Update.
6908 (linux_child_static_tracepoint_markers_by_strid): Ditto.
6909
6910 2012-04-14 Anton Gorenkov <xgsa@yandex.ru>
6911
6912 PR mi/13393
6913 * value.c (value_actual_type): New function.
6914 * value.h (value_actual_type): New declaration.
6915 * varobj.c (update_type_if_necessary): New function.
6916 (varobj_create): Call value_actual_type instead of
6917 value_type.
6918 (install_dynamic_child): distinct changed and type changed MI variable
6919 objects.
6920 (update_dynamic_varobj_children): Updated for install_dynamic_child
6921 change. All callers updated.
6922 (varobj_update): Support for MI variable object type change if
6923 the value changed and RTTI is used to determine the type.
6924 (create_child_with_value): Call value_actual_type instead of
6925 value_type.
6926 (adjust_value_for_child_access): Extended with a new parameter which
6927 specify whether the given value should be casted to enclosing type.
6928 All callers updated.
6929
6930 2012-04-14 Yao Qi <yao@codesourcery.com>
6931
6932 Import gnulib module inttypes from git
6933 (250b80067c1e1d8faa0c42fb572f721975b929c5)
6934 * Makefile.in (HFILES_NO_SRCDIR): Add gnulib/inttypes.in.h.
6935 (aclocal_m4_deps): Add gnulib/m4/inttypes.m4 and
6936 gnulib/m4/inttypes-pri.m4
6937 * aclocal.m4, config.in, configure: Regenerated.
6938 * gnulib/Makefile.am: Update.
6939 * gnulib/Makefile.in: Update.
6940 * gnulib/m4/gnulib-cache.m4: Update.
6941 * gnulib/m4/gnulib-comp.m4: Update.
6942 * gnulib/inttypes.in.h: New.
6943 * gnulib/m4/inttypes-pri.m4: New.
6944 * gnulib/m4/inttypes.m4: New.
6945
6946 2012-04-13 Luis Machado <lgustavo@codesourcery.com>
6947
6948 * infrun.c (resume): Update PC address to the real PC after
6949 preparing to do displaced stepping.
6950
6951 2012-04-12 Doug Evans <dje@google.com>
6952
6953 * dwarf2read.c (lookup_signatured_type): Remove arg "objfile", unused.
6954 All callers updated.
6955
6956 2012-04-12 Mark Kettenis <kettenis@gnu.org>
6957
6958 * i386bsd-nat.c (_initialize_i386bsd_nat): Add missing prototype.
6959
6960 2012-04-12 Doug Evans <dje@google.com>
6961
6962 * dwarf2read.c (create_all_type_units): Renamed from
6963 create_debug_types_hash_table. All callers updated.
6964
6965 * dwarf2read.c (create_signatured_type_table_from_index): Rename
6966 local type_sig to sig_type, type_offset to type_offset_in_tu.
6967 (hash_signatured_type): Renamed from hash_type_signature,
6968 all callers updated.
6969 (eq_signatured_type): Renamed from eq_type_signature,
6970 all callers updated.
6971 (create_debug_types_hash_table): Rename local type_sig to sig_type.
6972 (process_enumeration_scope): Ditto.
6973 (lookup_signatured_type_at_offset): Ditto.
6974 (load_full_type_unit, read_signatured_type): Ditto.
6975
6976 2012-04-12 Yao Qi <yao@codesourcery.com>
6977
6978 * remote.c (async_remote_interrupt): Correct function name in
6979 debug message.
6980 (async_remote_interrupt_twice): Ditto.
6981
6982 2012-04-11 Yuanhui Zhang <asmwarrior@gmail.com>
6983
6984 * source.c (find_and_open_source): Consistently pass resulting
6985 full path through xfullpath.
6986
6987 2012-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6988
6989 Provide more specific displaced-stepping memory error message.
6990 * infrun.c (displaced_step_prepare): New variable status. Call
6991 target_read_memory instead of read_memory, provide more specific
6992 error message.
6993
6994 2012-04-11 Tristan Gingold <gingold@adacore.com>
6995
6996 PR gdb/13901
6997 * darwin-nat.c (darwin_execvp): Revert previous patch.
6998
6999 2012-04-11 Tristan Gingold <gingold@adacore.com>
7000
7001 PR gdb/13901
7002 * darwin-nat.c (darwin_resume_thread): Call darwin_set_sstep only
7003 in case of change.
7004
7005 2012-04-11 Tristan Gingold <gingold@adacore.com>
7006
7007 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
7008 warning.
7009
7010 2012-04-11 Siva Chandra Reddy <sivachandra@google.com>
7011
7012 New command 'explore' which helps explore values and types in
7013 scope.
7014 * NEWS: Add an entry about the new 'explore' command.
7015 * data-directory/Makefile.in: Add gdb/command/explore.py
7016 * python/lib/gdb/command/explore.py: Implemention of the 'explore'
7017 command using the GDB Python API.
7018
7019 2012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
7020
7021 * mips-tdep.c (mips_skip_pic_trampoline_code): Correct sign
7022 extension in jump target calculation.
7023
7024 2012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
7025
7026 * mips-tdep.c (mips32_next_pc): Handle JALX.
7027
7028 2012-04-10 Yao Qi <yao@codesourcery.com>
7029
7030 * Makefile.in (gnulib/Makefile): Remove duplicated dependency.
7031
7032 2012-04-10 Yao Qi <yao@codesourcery.com>
7033
7034 * Makefile.in (aclocal_m4_deps): Add gnulib/m4/gnulib-cache.m4
7035 and gnulib/m4/gnulib-tool.m4.
7036
7037 2012-04-10 Doug Evans <dje@google.com>
7038
7039 * dwarf2read.c (dwarf2_per_cu_data). Clarify comment.
7040 (load_partial_dies): Clarify comment.
7041 (find_partial_die): Support rereading type units.
7042 Clarify CU handling, if we know offset is in CU, don't search for the
7043 containing CU. Add comment regarding memory waste.
7044
7045 2012-04-10 H.J. Lu <hongjiu.lu@intel.com>
7046
7047 * features/Makefile (WHICH): Add i386/x32, i386/x32-linux,
7048 i386/x32-avx and i386/x32-avx-linux.
7049 (i386/x32-expedite): New.
7050 (i386/x32-linux-expedite): Likewise.
7051 (i386/x32-avx-expedite): Likewise.
7052 (i386/x32-avx-linux-expedite): Likewise.
7053 ($(outdir)/i386/x32.dat): Likewise.
7054 ($(outdir)/i386/x32-linux.dat): Likewise.
7055 ($(outdir)/i386/x32-avx.dat): Likewise.
7056 ($(outdir)/i386/x32-avx-linux.dat): Likewise.
7057
7058 * features/i386/x32-avx-linux.xml: New file.
7059 * features/i386/x32-avx.xml: Likewise.
7060 * features/i386/x32-core.xml: Likewise.
7061 * features/i386/x32-linux.xml: Likewise.
7062 * features/i386/x32.xml: Likewise.
7063
7064 * features/i386/x32-avx-linux.c: New. Generated.
7065 * features/i386/x32-avx.c: Likewise.
7066 * features/i386/x32-linux.c: Likewise.
7067 * features/i386/x32.c: Likewise.
7068 * regformats/i386/x32-avx-linux.dat: Likewise.
7069 * regformats/i386/x32-avx.dat: Likewise.
7070 * regformats/i386/x32-linux.dat: Likewise.
7071 * regformats/i386/x32.dat: Likewise.
7072
7073 2012-04-10 Tristan Gingold <gingold@adacore.com>
7074
7075 * darwin-nat.c (darwin_kill_inferior): Always use the no ptrace
7076 code to kill the inferior.
7077
7078 2012-04-09 Mark Kettenis <kettenis@gnu.org>
7079
7080 * ada-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7081 defines.
7082 * c-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7083 defines.
7084 * cp-name-parser.y (yyss, yysslim, yyssp, yystacksize, yyvs)
7085 (yyvsp): New defines.
7086 * f-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7087 defines.
7088 * jv-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7089 defines.
7090 * m2-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7091 defines.
7092 * objc-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7093 defines.
7094 * p-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7095 defines.
7096
7097 2012-04-09 Mark Kettenis <kettenis@gnu.org>
7098
7099 * sparc64-tdep.c (sparc64_store_arguments)
7100 (sparc64_store_arguments): Fix coding style.
7101
7102 2012-04-07 Mark Kettenis <kettenis@gnu.org>
7103
7104 * sparc64-tdep.c (sparc64_store_arguments): Fix handling of
7105 complex floats, adjust some related comments and tighten a related
7106 assertion.
7107 (sparc64_extract_return_value): Handle complex floats.
7108
7109 2012-04-07 Doug Evans <dje@google.com>
7110
7111 * dwarf2read.c (load_partial_dies): Change condition to assert.
7112
7113 2012-04-06 Doug Evans <dje@google.com>
7114
7115 * amd64-tdep.c (amd64_analyze_prologue): Recognize both variations of
7116 "mov %rsp,%rbp".
7117
7118 2012-04-05 Kevin Buettner <kevinb@redhat.com>
7119
7120 * v850-tdep.c (E_NUM_OF_V850_REGS, E_NUM_OF_V850E_REGS): Fix
7121 fencepost error.
7122 (v850_frame_cache): Use gdbarch_num_regs() instead of E_NUM_REGS.
7123 (v850_gdbarch_init): Set `num_regs' as appropriate for the
7124 architecture.
7125
7126 2012-04-05 Keith Seitz <keiths@redhat.com>
7127
7128 * linespec.c (decode_compound): Remove.
7129 (enum offset_relative_sign): New enum.
7130 (struct line_offset): New struct.
7131 (struct linespec): New struct.
7132 (struct linespec_state): Move file_symtabs,
7133 user_filename, and user_function into struct linespec.
7134 Make result an anonymous struct holding vectors of
7135 symbolp and minsym_and_objfile_d.
7136 Add language member.
7137 (enum ls_token_type): New enum.
7138 (linespec_keywords): New array.
7139 (struct ls_token): New struct.
7140 (struct ls_parser): New struct.
7141 (linespec_lexer_lex_number): New function.
7142 (linespec_lexer_lex_keyword): New function.
7143 (is_ada_operator): New function.
7144 (skip_quote_char): New function.
7145 (copy_token_string): New function.
7146 (is_closing_quote_enclosed): New function.
7147 (find_parameter_list_end): New function.
7148 (linespec_lexer_lex_string): New function.
7149 (linespec_lexer_lex_one): New function.
7150 (linespec_lexer_consume_token): New function.
7151 (linespec_lexer_peek_token): New function.
7152 (cplusplus_error): Remove unused function.
7153 (find_methods): Update comment.
7154 (find_toplevel_char): Return const.
7155 (is_objc_method_format): Remove unused function.
7156 (find_toplevel_string): New function.
7157 (is_linespec_boundary): Remove.
7158 (symbol_not_found_error): New function.
7159 (find_method_overload_end): Remove function.
7160 (unexpected_linespec_error): New function.
7161 (keep_name_info): Remove.
7162 (linespec_parse_line_offset): New function.
7163 (linespec_parse_basic): New function.
7164 (canonicalize_linespec): New function.
7165 (decode_line_internal): Remove.
7166 (create_sals_line_offset): New function adapted from
7167 decode_all_digits.
7168 (convert_linespec_to_sals): New function.
7169 (parse_linespec): New function.
7170 (linespec_parser_new): New function.
7171 (linespec_state_destructor): Change parameter type to
7172 struct linespec_state *.
7173 Add language parameter.
7174 Remove freeing of moved members.
7175 (linespec_parser_delete): New function.
7176 (decode_line_full): Use parse_linespec and linespec_parser_new.
7177 (decode_line_1): Likewise.
7178 (decode_indirect): Rename to ...
7179 (linespec_expression_to_pc): ... this and rewrite
7180 to simply find CORE_ADDR, storing this result for later
7181 conversion to SALs.
7182 (locate_first_half): Remove.
7183 (deocde_objc): Add parameter LS.
7184 Initialize new struct collect_info members.
7185 Handle minimal symbols, too.
7186 (decode_compound): Delete.
7187 (lookup_prefix_sym): Rewrite.
7188 (compare_msymbols): New function.
7189 (find_method): Rewrite.
7190 Do not call cplusplus_error.
7191 (symtabs_from_filename): Rewrite.
7192 (collect_function_symbols): Delete.
7193 (find_function_symbols): Rewrite without ARGPTR-style
7194 processing.
7195 (decode_all_digits): Delete. (Rewritten as create_sals_line_offset.)
7196 (decode_dollar): Adapted and renamed to ...
7197 (linespec_parse_variable): ... this.
7198 (find_linespec_symbols): New function.
7199 (decode_label): Adapted and renamed to ...
7200 (find_label_symbols): ... this.
7201 (decode_digits_list_mode): Add and use LS argument.
7202 (decode_digits_ordinary): Likewise.
7203 (collect_symbols): Do not collect SALs, just symbols and msymbols.
7204 If in list mode, allow any symbol class. Otherwise, only
7205 permit LOC_BLOCK symbols.
7206 (minsym_found): Update comments.
7207 (search_minsyms_for_name): Do not convert the matching symbol
7208 into a SAL. Simply push the symbol and objfile into the
7209 result vector.
7210 (decode_variable): Delete. Contents adapted into
7211 find_linespec_symbols.
7212
7213 * cp-support.c (SKIP_SPACE): Remove.
7214 (operator_tokens): Remove unused global.
7215 (cp_validate_operator): Remove.
7216 * cp-support.h (cp_validate_operator): Remove declaration.
7217
7218 2012-04-03 Jan Kratochvil <jan.kratochvil@redhat.com>
7219
7220 * cp-valprint.c (cp_print_value_fields): Check valprint_check_validity
7221 for TYPE_VPTR_FIELDNO.
7222 * valprint.c (valprint_check_validity): Make it global, move the
7223 function comment ...
7224 * value.h (valprint_check_validity): ... to this new declaration.
7225
7226 2012-04-02 Tristan Gingold <gingold@adacore.com>
7227
7228 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Use
7229 the STATE32 api for i386 state.
7230 (i386_darwin_store_inferior_registers): Likewise.
7231
7232 2012-04-02 Tristan Gingold <gingold@adacore.com>
7233
7234 * i386-darwin-tdep.c (i386_darwin_thread_state_reg_offset): Fix
7235 SS offset.
7236 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
7237 format_string.
7238
7239 2012-04-02 Tristan Gingold <gingold@adacore.com>
7240
7241 PR gdb/13901
7242 * darwin-nat.c (darwin_execvp): Set binary preference.
7243
7244 2012-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
7245
7246 * NEWS (set breakpoint condition-evaluation): Use imperative mood.
7247
7248 2012-03-30 Tom Tromey <tromey@redhat.com>
7249
7250 * python/python.c (gdbpy_decode_line): Move cleanup creation out
7251 of TRY_CATCH. Fix error handling.
7252 * python/py-value.c (convert_value_from_python): Move 'old'
7253 declaration to innermost scope.
7254
7255 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7256 Andrey Smirnov <andrew.smirnov@gmail.com>
7257
7258 -Wshadow warning fix.
7259 * ada-lang.c (ada_make_symbol_completion_list): Rename parameters
7260 "wild_match" and "encoded" into "wild_match_p" and "encoded_p".
7261 Adjust code accordingly.
7262
7263 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7264
7265 * ada-lang.c (symbol_completion_add): Rename parameter
7266 "encoded" into "encoded_p". Ajust code and documentation
7267 accordingly.
7268
7269 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7270 Andrey Smirnov <andrew.smirnov@gmail.com>
7271
7272 -Wshadow warning fix.
7273 * ada-lang.c (symbol_completion_add): Rename parameter
7274 "wild_match" into wild_match_p. Update code and documentation
7275 accordingly.
7276
7277 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7278
7279 * ada-lang.c (symbol_completion_match): Rename parameter
7280 "encoded" into "encoded_p". Ajust code and documentation
7281 accordingly.
7282
7283 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7284 Andrey Smirnov <andrew.smirnov@gmail.com>
7285
7286 -Wshadow warning fix.
7287 * ada-lang.c (symbol_completion_match): Rename parameter
7288 "wild_match" into "wild_match_p". Adjust code and function
7289 documentation accordingly.
7290
7291 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7292 Andrey Smirnov <andrew.smirnov@gmail.com>
7293
7294 -Wshadow warning fix.
7295 * ada-lang.c (ada_lookup_encoded_symbol): Rename parameter
7296 "symbol_info" into "info". Adjust code accordingly.
7297 (ada_lookup_symbol): Likewise.
7298
7299 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7300
7301 * ada-lang.c (ada_lookup_symbol_list): Minor reformatting
7302 of this function's documentation.
7303
7304 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7305 Andrey Smirnov <andrew.smirnov@gmail.com>
7306
7307 -Wshadow warning fix.
7308 * ada-lang.c (ada_lookup_symbol_list): Rename "wild_match"
7309 variable into "wild_match_p". Adjust code accordingly.
7310
7311 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7312 Andrey Smirnov <andrew.smirnov@gmail.com>
7313
7314 -Wshadow warning fix.
7315 * ada-lang.c (ada_add_local_symbols): Rename "wild_match"
7316 parameter into "wild_match_p". Adjust code accordingly.
7317 Document this parameter in the function description.
7318
7319 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7320 Andrey Smirnov <andrew.smirnov@gmail.com>
7321
7322 -Wshadow warning fix.
7323 * ada-lang.c (add_symbols_from_enclosing_procs): Rename
7324 "wild_match" parameter to "wild_match_p" (-Wshadow).
7325
7326 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7327
7328 * ada-lang.c (ada_lookup_simple_minsym): Remove trailing spaces
7329 in function documentation.
7330
7331 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7332 Andrey Smirnov <andrew.smirnov@gmail.com>
7333
7334 -Wshadow warning fix.
7335 * ada-lang.c (ada_lookup_simple_minsym): Rename wild_match local
7336 variable into wild_match_p. Adjust code accordingly.
7337
7338 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7339 Andrey Smirnov <andrew.smirnov@gmail.com>
7340
7341 * ada-valprint.c (ada_val_print_1): Move the code handling
7342 TYPE_CODE_ENUM inside its own lexical block. Declare
7343 variables len and val there, instead of in the function's
7344 top level block. Avoid declaring deref_val again in a way
7345 that shadows another variable of the same name declared
7346 in one of the up-level blocks. Just re-use the up-level
7347 variable instead.
7348
7349 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7350
7351 * ada-lang.c (ada_lookup_encoded_symbol): Now returns void.
7352 Replace block_found argument by symbol_info. Adjust
7353 implementation accordingly. Add function documentation.
7354 (ada_lookup_symbol): Adjust to new ada_lookup_encoded_symbol.
7355 Fix documentation.
7356 * ada-lang.h (ada_lookup_encoded_symbol): Update declaration.
7357 * ada-exp.y (write_object_renaming): Adjust to new
7358 ada_lookup_encoded_symbol API.
7359
7360 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7361
7362 * ada-lang.h (struct ada_symbol_info): Reformat. Improve
7363 documentation.
7364
7365 2012-03-28 Rathish C <rathish.c@kpitcummins.com>
7366
7367 * v850-tdep.c: Add the enum values for mpu and fpu registers.
7368 (v850_register_name): Add the mpu and fpu register names.
7369 (v850e_register_name): Add the mpu and fpu register names.
7370 (v850e2_register_name): New function.
7371 (v850_gdbarch_init): Add case for bfd_mach_v850e2 and
7372 bfd_mach_v850e2v3.
7373
7374 2012-03-28 Joel Brobecker <brobecker@adacore.com>
7375
7376 * NEWS: Add entry for Ada varobj support.
7377
7378 2012-03-28 Joel Brobecker <brobecker@adacore.com>
7379
7380 * varobj.c (default_value_is_changeable_p): New function,
7381 extracted from varobj_value_is_changeable_p. Add declaration.
7382 (ada_value_is_changeable_p): New function, extracted from
7383 varobj_value_is_changeable_p. Add declaration.
7384 (struct language_specific): New field "value_is_changeable_p".
7385 (languages): Add entries for new field.
7386 (varobj_create): Set language before calling install_new_value.
7387 (varobj_value_is_changeable_p): Reimplement to call the varobj's
7388 "value_is_changeable_p" language callback.
7389
7390 2012-03-28 Joel Brobecker <brobecker@adacore.com>
7391
7392 * ada-varobj.h, ada-varobj.c: New files.
7393 * Makefile.in (SFILES): Add ada-varobj.c.
7394 (HFILES_NO_SRCDIR): Add ada-varobj.h.
7395 (COMMON_OBS): Add ada-varobj.o.
7396
7397 2012-03-28 Joel Brobecker <brobecker@adacore.com>
7398
7399 * varobj.c (ada_value_has_mutated): Add declaration. New function.
7400 (struct language_specific): New field "value_has_mutated".
7401 (languages): Set field "value_has_mutated" in each entry of array.
7402 (varobj_value_has_mutated): New function.
7403 (varobj_udpdate): Add handling of type mutation.
7404 (value_of_root): Add handling of type mutation.
7405 (ada_value_has_mutated): New function.
7406
7407 2012-03-28 Pedro Alves <palves@redhat.com>
7408
7409 * ia64-linux-nat.c (supply_fpregset, ia64_linux_fetch_register):
7410 Always supply $fr0 as 0.0 and $fr1 as 1.0.
7411
7412 2012-03-28 Tom Tromey <tromey@redhat.com>
7413
7414 * python/py-inferior.c (infpy_read_memory): Remove cleanups and
7415 explicitly free 'buffer' on exit paths. Decref 'membuf_object'
7416 before returning.
7417
7418 2012-03-28 Tom Tromey <tromey@redhat.com>
7419
7420 * .dir-locals.el: New file.
7421
7422 2012-03-28 Pedro Alves <palves@redhat.com>
7423
7424 * ia64-linux-nat.c (u_offsets): Map IA64_EC_REGNUM to PT_AR_EC.
7425
7426 2012-03-28 Joel Brobecker <brobecker@adacore.com>
7427
7428 * ia64-linux-nat.c (ia64_linux_fetch_register): Add special
7429 handling for r0.
7430
7431 2012-03-27 Pedro Alves <palves@redhat.com>
7432
7433 Eliminate struct ui_stream.
7434
7435 * ui-out.h (struct ui_stream): Delete.
7436 (ui_out_field_stream): Adjust prototype.
7437 (ui_out_stream_new, ui_out_stream_delete)
7438 (make_cleanup_ui_out_stream_delete): Delete declarations.
7439 * ui-out.c (ui_out_field_stream): Change prototype to take a
7440 ui_file instead of a ui_stream. Adjust.
7441 (ui_out_stream_new, ui_out_stream_delete, do_stream_delete)
7442 (make_cleanup_ui_out_stream_delete): Delete.
7443 * breakpoint.c (print_breakpoint_location)
7444 (print_one_detail_ranged_breakpoint, print_it_watchpoint): Use
7445 ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
7446 * disasm.c (dump_insns): Ditto.
7447 (do_mixed_source_and_assembly, do_assembly_only): Adjust
7448 prototype.
7449 (gdb_disassembly): Use ui_file/mem_fileopen instead of
7450 ui_stream/ui_out_stream_new.
7451 * infcmd.c (print_return_value): Ditto.
7452 * osdata.c (info_osdata_command): Don't allocate a local
7453 ui_stream.
7454 * stack.c (print_frame_arg, print_frame_args, print_frame): Use
7455 ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
7456 * tracepoint.c (print_one_static_tracepoint_marker): Don't
7457 allocate a local ui_stream.
7458 * mi/mi-cmd-stack.c (list_arg_or_local): Use ui_file/mem_fileopen
7459 instead of ui_stream/ui_out_stream_new.
7460 (list_args_or_locals): Don't allocate a local ui_stream.
7461 * mi/mi-main.c (get_register, mi_cmd_data_evaluate_expression)
7462 (mi_cmd_data_read_memory): Use ui_file/mem_fileopen instead of
7463 ui_stream/ui_out_stream_new.
7464 * cli/cli-setshow.c (do_setshow_command): Ditto.
7465
7466 2012-03-27 Oza Pawandeep <oza.pawandeep@gmail.com>
7467
7468 * arm-linux-tdep.c (arm_linux_init_abi): Call
7469 set_gdbarch_process_record. Initialize `arm_swi_record' field.
7470 * arm-tdep.c (arm_process_record): New function.
7471 (deallocate_reg_mem): New function.
7472 (decode_insn): New function.
7473 (thumb_record_branch): New function.
7474 (thumb_record_ldm_stm_swi(): New function.
7475 (thumb_record_misc): New function.
7476 (thumb_record_ld_st_stack): New function.
7477 (thumb_record_ld_st_imm_offset): New function.
7478 (thumb_record_ld_st_reg_offset(): New function.
7479 (thumb_record_add_sub_cmp_mov): New function.
7480 (thumb_record_shift_add_sub): New function.
7481 (arm_record_coproc_data_proc): New function.
7482 (arm_record_coproc): New function.
7483 (arm_record_b_bl): New function.
7484 (arm_record_ld_st_multiple): New function.
7485 (arm_record_ld_st_reg_offset): New function.
7486 (arm_record_ld_st_imm_offset): New function.
7487 (arm_record_data_proc_imm): New function.
7488 (arm_record_data_proc_misc_ld_str): New function.
7489 (arm_record_extension_space): New function.
7490 (arm_record_strx): New function.
7491 (sbo_sbz): New function.
7492 (struct insn_decode_record): New structure for arm insn record.
7493 (REG_ALLOC): New macro for reg allocations.
7494 (MEM_ALLOC): New macro for memory allocations.
7495 * arm-tdep.h (struct gdbarch_tdep): New field 'arm_swi_record'.
7496
7497 2012-03-27 Andreas Schwab <schwab@linux-m68k.org>
7498
7499 * m68klinux-nat.c (fetch_register): Fix strict-aliasing violation.
7500 (store_register): Likewise.
7501
7502 2012-03-26 Oza Pawandeep <oza.pawandeep@gmail.com>
7503
7504 * MAINTAINERS (Write After Approval): Add myself to the list.
7505
7506 2012-03-25 Jan Kratochvil <jan.kratochvil@redhat.com>
7507
7508 * NEWS (set breakpoint condition-evaluation): Change "gdb" to "host".
7509 Describe also the option "auto".
7510
7511 2012-03-22 Richard Henderson <rth@redhat.com>
7512
7513 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Fix prototype.
7514 * sparc-nat.c (sparc_xfer_wcookie): Make static.
7515
7516 2012-03-22 Richard Henderson <rth@redhat.com>
7517
7518 * jit.c (jit_read_code_entry): Compute alignment and offset of
7519 int64_t member before computing entry_size.
7520
7521 2012-03-22 Siva Chandra Reddy <sivachandra@google.com>
7522
7523 Python scripting: Add new method Value.referenced_value to
7524 gdb.Value which can dereference pointer as well as reference
7525 values.
7526 * NEWS: Add entry under 'Python scripting' about the new method
7527 Value.referenced_value on gdb.Value objects.
7528 * python/py-value.c (valpy_referenced_value): New function
7529 defining a new method on gdb.Value objects which can dereference
7530 pointer and reference values.
7531
7532 2012-03-22 Siva Chandra Reddy <sivachandra@google.com>
7533
7534 * MAINTAINERS (Write After Approval): Add myself to the list.
7535
7536 2012-03-21 Kevin Buettner <kevinb@redhat.com>
7537
7538 * symtab.c (skip_prologue_sal): Change test to check for "main()"
7539 in addition to "main".
7540
7541 2012-03-21 Joel Brobecker <brobecker@adacore.com>
7542
7543 * expression.h (op_name): Add declaration.
7544 * expprint.c (op_name): Remove declaration. Make non-static.
7545 * ax-gdb.c (gen_expr): Use op_name instead of op_string.
7546
7547 2012-03-21 Thomas Schwinge <thomas@codesourcery.com>
7548
7549 * amd64-linux-nat.c (amd64_linux_siginfo_fixup): Use siginfo_t instead
7550 of struct siginfo.
7551 * arm-linux-nat.c (arm_linux_stopped_data_address): Likewise.
7552 * ia64-linux-nat.c (ia64_linux_stopped_data_address): Likewise.
7553 * linux-nat.c (linux_nat_siginfo_fixup, siginfo_fixup)
7554 (linux_xfer_siginfo, linux_nat_set_siginfo_fixup)
7555 (linux_nat_get_siginfo): Likewise.
7556 * linux-nat.h (struct lwp_info, linux_nat_set_siginfo_fixup)
7557 (linux_nat_get_siginfo): Likewise.
7558 * linux-tdep.c (linux_get_siginfo_type): Likewise.
7559 * ppc-linux-nat.c (ppc_linux_stopped_data_address): Likewise.
7560 * procfs.c (gdb_siginfo_t): Likewise.
7561
7562 2012-03-21 Mike Frysinger <vapier@gentoo.org>
7563
7564 * .gitignore: Ignore more files.
7565
7566 2012-03-20 Pedro Alves <palves@redhat.com>
7567
7568 * remote.c (remote_start_remote): Clear `rs->starting_up' on early
7569 returns.
7570
7571 2012-03-20 Yao Qi <yao@codesourcery.com>
7572
7573 * amd64-tdep.c (amd64_displaced_step_copy_insn): Complete missing "}" in
7574 comment.
7575
7576 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
7577
7578 Code cleanupp: Use cu_offset and sect_offset compile time type checking.
7579 * dwarf2expr.c (add_piece, dwarf_get_base_type, execute_stack_op)
7580 (ctx_no_dwarf_call, ctx_no_get_base_type): Use cu_offset and
7581 sect_offset.
7582 * dwarf2expr.h (cu_offset, sect_offset): New types.
7583 (struct dwarf_expr_context_funcs) <dwarf_call>
7584 (struct dwarf_expr_context_funcs) <get_base_type>: Use cu_offset and
7585 sect_offset.
7586 (struct dwarf_expr_context) <len>: Improve the comment.
7587 (struct dwarf_expr_piece, ctx_no_dwarf_call, ctx_no_get_base_type): Use
7588 cu_offset and sect_offset.
7589 * dwarf2loc.c (per_cu_dwarf_call, dwarf_expr_dwarf_call)
7590 (dwarf_expr_get_base_type, needs_frame_dwarf_call)
7591 (dwarf2_compile_expr_to_ax, disassemble_dwarf_expression): Likewise.
7592 * dwarf2loc.h: Include dwarf2expr.h.
7593 (dwarf2_fetch_die_location_block, dwarf2_get_die_type): Use cu_offset
7594 and sect_offset.
7595 * dwarf2read.c (struct dwarf2_per_objfile) <debug_types_type_hash>:
7596 Improve the comment.
7597 (struct comp_unit_head, struct dwarf2_cu, struct dwarf2_per_cu_data)
7598 (struct signatured_type, struct line_header, struct partial_die_info)
7599 (struct die_info, find_partial_die, dwarf2_get_ref_die_offset)
7600 (lookup_signatured_type_at_offset, dwarf2_find_containing_comp_unit)
7601 (get_die_type_at_offset, create_cus_from_index)
7602 (create_signatured_type_table_from_index, dw2_get_file_names)
7603 (offset_in_cu_p, read_comp_unit_head, error_check_comp_unit_head)
7604 (read_and_check_comp_unit_head, read_and_check_type_unit_head)
7605 (create_debug_types_hash_table, process_psymtab_comp_unit)
7606 (load_partial_comp_unit, create_all_comp_units)
7607 (partial_die_parent_scope, partial_die_full_name, skip_one_die)
7608 (load_full_comp_unit, dwarf2_physname, read_import_statement)
7609 (inherit_abstract_dies, read_func_scope, read_call_site_scope)
7610 (dwarf2_add_member_fn, process_enumeration_scope, read_module_type)
7611 (read_typedef, die_hash, die_eq, read_full_die, dwarf2_read_abbrevs)
7612 (load_partial_dies, read_partial_die, find_partial_die_in_comp_unit)
7613 (find_partial_die, read_attribute_value, lookup_die_type)
7614 (dump_die_shallow, store_in_ref_table): Use cu_offset and sect_offset.
7615 (is_ref_attr): New function comment.
7616 (dwarf2_get_ref_die_offset): New function comment, new variable retval.
7617 Use cu_offset and sect_offset.
7618 (follow_die_offset, follow_die_ref, dwarf2_fetch_die_location_block)
7619 (dwarf2_get_die_type, follow_die_sig, lookup_signatured_type_at_offset)
7620 (load_full_type_unit, read_signatured_type, per_cu_header_read_in)
7621 (dwarf2_find_containing_comp_unit, struct dwarf2_offset_and_type)
7622 (offset_and_type_hash, offset_and_type_eq, set_die_type)
7623 (get_die_type_at_offset, partial_die_hash, partial_die_eq)
7624 (write_one_signatured_type, write_psymtabs_to_index): Use cu_offset and
7625 sect_offset.
7626
7627 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
7628
7629 Code cleanup.
7630 * python/py-auto-load.c (source_section_scripts): New variable back_to.
7631 Turn fclose and xfree calls into make_cleanup_fclose and make_cleanup
7632 with xfree.
7633 (auto_load_objfile_script): Turn fclose into make_cleanup_fclose.
7634
7635 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
7636
7637 * NEWS: Describe new options --init-command=FILE, -ix and
7638 --init-eval-command=COMMAND, -iex.
7639 * main.c (struct cmdarg): New enum items CMDARG_INIT_FILE and
7640 CMDARG_INIT_COMMAND.
7641 (captured_main): New enum items OPT_IX and OPT_IEX. Add
7642 "init-command", "init-eval-command", "ix" and "iex" to the variable
7643 long_options. Handle OPT_IX and OPT_IEX. Process them from CMDARG_VEC.
7644 New comment for CMDARG_FILE and CMDARG_COMMAND processing.
7645 (print_gdb_help): Describe --init-command=FILE, -ix and
7646 --init-eval-command=COMMAND, -iex.
7647
7648 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
7649
7650 Code cleanup.
7651 * main.c (struct cmdarg): Move it here from main. Add more comments.
7652 (cmdarg_s, VEC (cmdarg_s)): New.
7653 (main): Move struct cmdarg from here. New variables cmdarg_vec and
7654 cmdarg_p. Remove variables cmdsize and ncmd and their initialization.
7655 Install cleanup for cmdarg_vec. Update filling for options 'x' and
7656 'X'. Replace cmdarg processing by cmdarg_vec processing. Remove xfree
7657 of CMDARG.
7658
7659 2012-03-19 Tom Tromey <tromey@redhat.com>
7660
7661 * gnu-v3-abi.c (gnuv3_print_vtable): Initialize 'result_vec'.
7662
7663 2012-03-16 Jan Kratochvil <jan.kratochvil@redhat.com>
7664
7665 PR symtab/13777
7666 * dwarf2read.c (process_full_comp_unit): Set LOCATIONS_VALID only for
7667 GCC >=4.5.
7668
7669 2012-03-16 Chris January <chris.january@allinea.com>
7670
7671 * tui-tui.win.c (tui_resize_all): Use erase and clearok instead
7672 of clear.
7673
7674 2012-03-16 Chris January <chris.january@allinea.com>
7675
7676 * source.c (add_path): Use memmove instead of strcpy because the
7677 strings overlap.
7678
7679 2012-03-16 Joel Brobecker <brobecker@adacore.com>
7680
7681 * value.h (set_value_parent): Add declaration.
7682 * value.c (set_value_parent): New function.
7683 (value_address): If VALUE->PARENT is not NULL, then use it as
7684 the base address instead of VALUE->LOCATION.address.
7685 * ada-lang.c (ada_value_primitive_packed_val): Keep V's address
7686 the same as OBJ's address. Adjust V's offset accordingly.
7687 Set V's parent.
7688
7689 2012-03-16 Gary Benson <gbenson@redhat.com>
7690
7691 PR breakpoints/10738
7692 * dwarf2read.c (use_deprecated_index_sections): New global.
7693 (struct partial_die_info): New member may_be_inlined.
7694 (read_partial_die): Set may_be_inlined where appropriate.
7695 (add_partial_subprogram): Add partial symbols for partial
7696 DIEs that may be inlined.
7697 (new_symbol_full): Add inlined subroutines to the current
7698 scope.
7699 (write_psymtabs_to_index): Bump version number.
7700 (dwarf2_read_index): Read only version 6 indices unless
7701 use_deprecated_index_sections is set.
7702 * linespec.c (symbol_and_data_callback): New structure.
7703 (iterate_inline_only): New function.
7704 (iterate_over_all_matching_symtabs): New argument
7705 "include_inline". If nonzero, also call the callback for
7706 symbols representing inlined subroutines.
7707 (lookup_prefix_sym): Pass extra argument to the above.
7708 (find_function_symbols): Likewise.
7709 (add_matching_symbols_to_info): Likewise.
7710 * NEWS: Mention that GDB can now set breakpoints on inlined
7711 functions.
7712
7713 2012-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
7714
7715 * p-typeprint.c (pascal_type_print_method_args):
7716 Fix display of parameter of methods.
7717
7718 2012-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
7719
7720 * amd64-windows-nat.c (_initialize_amd64_windows_nat):
7721 Add missing prototype.
7722
7723 2012-03-16 Yao Qi <yao@codesourcery.com>
7724 Jan Kratochvil <jan.kratochvil@redhat.com>
7725
7726 Fix false compilation warning.
7727 * gnu-v3-abi.c (print_one_vtable): Initialize ADDR.
7728
7729 2012-03-15 Jonathan Larmour <jifl@eCosCentric.com>
7730 Pedro Alves <pedro@codesourcery.com>
7731
7732 * arm-tdep.c: Include "remote.h" and "features/arm-with-m-fpa-layout.c".
7733 (arm_register_g_packet_guesses): New function.
7734 (arm_gdbarch_init): Don't force a target description with
7735 registers when the executable is detected as M-profile. Instead
7736 set gdbarch->tdep->is_m. Register `g' packet guesses.
7737 (_initialize_arm_tdep): Initialize the new target description.
7738 * features/arm-with-m-fpa-layout.xml: New description.
7739 * features/arm-with-m-fpa-layout.c: New, generated.
7740
7741 2012-03-15 Joel Brobecker <brobecker@adacore.com>
7742
7743 * breakpoint.c (breakpoint_xfer_memory): Add assertion.
7744 Update function description.
7745 (insert_bp_location): Do not wipe bl->target_info out.
7746 * mem-break.c: #include "gdb_string.h".
7747 (default_memory_insert_breakpoint): Do not call target_read_memory
7748 with a pointer to the breakpoint's shadow_contents buffer. Use
7749 a local buffer instead.
7750 * m32r-tdep.c (m32r_memory_insert_breakpoint): Ditto.
7751
7752 2012-03-15 Tom Tromey <tromey@redhat.com>
7753
7754 * NEWS: Mention "info vtbl", not "info vtable".
7755 * cp-support.c (info_vtbl_command): Fix comment.
7756 (_initialize_cp_support): Fix text.
7757
7758 2012-03-15 Tom Tromey <tromey@redhat.com>
7759
7760 * cp-valprint.c (cp_print_value_fields): Use
7761 print_function_pointer_address for vtable slot.
7762
7763 2012-03-15 Tom Tromey <tromey@redhat.com>
7764
7765 * gnu-v3-abi.c (struct value_and_voffset): New.
7766 (hash_value_and_voffset, eq_value_and_voffset)
7767 (compare_value_and_voffset, compute_vtable_size)
7768 (print_one_vtable, gnuv3_print_vtable): New functions.
7769 (init_gnuv3_ops): Initialize 'print_vtable' field.
7770 * cp-support.c (info_vtbl_command): New function.
7771 (_initialize_cp_support): Add "info vtbl".
7772 * cp-abi.h (cplus_print_vtable): Declare.
7773 (struct cp_abi_ops) <print_vtable>: New field.
7774 * cp-abi.c (cplus_print_vtable): New function.
7775 * NEWS: Update.
7776
7777 2012-03-15 Tom Tromey <tromey@redhat.com>
7778
7779 * d-lang.c (d_language_defn) <la_iterate_over_symbols>: Set to
7780 iterate_over_symbols.
7781
7782 2012-03-14 Doug Evans <dje@google.com>
7783
7784 * dwarf2read.c (dwarf_stack_op_name): Add DW_OP_GNU_encoded_addr,
7785 DW_OP_GNU_parameter_ref.
7786
7787 2012-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
7788
7789 Fix double prompt of 'interpreter-exec mi'.
7790 * mi/mi-interp.c (mi_execute_command_input_handler): New prototype.
7791 (mi_interpreter_resume): use it.
7792 (mi_execute_command_input_handler): New function.
7793 * mi/mi-main.c (mi_execute_command): Move prompt printing to
7794 mi_execute_command_input_handler.
7795
7796 2012-03-13 Josh Matthews <josh@joshmatthews.net> (tiny change)
7797
7798 * darwin-nat-info.c (_initialize_darwin_info_commands): Add
7799 prototype.
7800 (darwin_debug_port_info): Make static.
7801 * darwin-nat.c (_initialize_darwin_inferior): Add prototype.
7802 * machoread.c (_initialize_machoread): Add prototype.
7803 * i386-darwin-nat.c (i386_darwin_dr_set, i386_darwin_dr_get)
7804 (i386_darwin_set_control, i386_darwin_get_control)
7805 i386_darwin_dr_set_addr, i386_darwin_get_addr)
7806 i386_darwin_get_status, i386_darwin_get_control):
7807 Comment out with HW_WATCHPOINT_NOT_YET_ENABLED macro.
7808
7809 2012-03-13 Joel Brobecker <brobecker@adacore.com>
7810
7811 * ax-gdb.c (gen_usual_unary): Remove special handling of
7812 enum and bool types.
7813
7814 2012-03-13 Joel Brobecker <brobecker@adacore.com>
7815
7816 * ax-gdb.c (gen_fetch): Add handling for TYPE_CODE_RANGE types.
7817
7818 2012-03-13 Joel Brobecker <brobecker@adacore.com>
7819
7820 * aix-thread.c (supply_fprs): Make more consistent with fill_fprs.
7821
7822 2012-03-13 Chris January <chris.january@allinea.com>
7823
7824 * aix-thread.c (fill_sprs): Store the floating point registers
7825 at the correct offsets into vals.
7826
7827 2012-03-13 Doug Evans <dje@google.com>
7828
7829 * NEWS: Mention symbol-reloading has been deleted.
7830 * symfile.c (symbol_reloading): Delete.
7831 (show_symbol_reloading): Delete.
7832 (_initialize_symfile): Delete set/show symbol-reloading.
7833
7834 * dwarf2read.c (load_partial_comp_unit): Defer adding cu to
7835 read_in_chain until we have successfully read it in.
7836 (load_full_comp_unit): Ditto.
7837 (read_signatured_type): Add comment.
7838
7839 2012-03-13 Chris January <chris.january@allinea.com>
7840
7841 * stabsread.c (fix_common_block): Change type of valu argument
7842 to CORE_ADDR.
7843
7844 2012-03-13 Chris January <chris.january@allinea.com>
7845
7846 * rs6000-tdep.c (skip_prologue): Support the oril r29, r1, 0x0
7847 instruction.
7848
7849 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
7850
7851 * common/linux-procfs.c (linux_proc_get_int): New, from
7852 linux_proc_get_tgid, change its LWPID type to pid_t, add parameter
7853 field.
7854 (linux_proc_get_tgid): Only call linux_proc_get_int.
7855 (linux_proc_get_tracerpid): New.
7856 (linux_proc_pid_has_state): New, from linux_proc_pid_is_zombie.
7857 (linux_proc_pid_is_stopped, linux_proc_pid_is_zombie): Only call
7858 linux_proc_pid_has_state.
7859 * common/linux-procfs.h (linux_proc_get_tracerpid): New declaration.
7860 * common/linux-ptrace.c: Include linux-procfs.h and buffer.h.
7861 (linux_ptrace_attach_warnings): New.
7862 * common/linux-ptrace.h (struct buffer, linux_ptrace_attach_warnings):
7863 New declaration.
7864 * linux-nat.c: Include exceptions.h, linux-ptrace.h and buffer.h.
7865 (linux_nat_attach): New variables ex, buffer, message and message_s.
7866 Wrap to_attach by TRY_CATCH and call linux_ptrace_attach_warnings.
7867
7868 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
7869
7870 * Makefile.in (linux-ptrace.o): New.
7871 * common/linux-procfs.c (linux_proc_pid_is_zombie): New,
7872 from linux-nat.c.
7873 * common/linux-procfs.h (linux_proc_pid_is_zombie): New declaration.
7874 * common/linux-ptrace.c: New file.
7875 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-ptrace.o.
7876 * config/arm/linux.mh: Likewise.
7877 * config/i386/linux.mh: Likewise.
7878 * config/i386/linux64.mh: Likewise.
7879 * config/ia64/linux.mh: Likewise.
7880 * config/m32r/linux.mh: Likewise.
7881 * config/m68k/linux.mh: Likewise.
7882 * config/mips/linux.mh: Likewise.
7883 * config/pa/linux.mh: Likewise.
7884 * config/powerpc/linux.mh: Likewise.
7885 * config/powerpc/ppc64-linux.mh: Likewise.
7886 * config/powerpc/spu-linux.mh: Likewise.
7887 * config/s390/s390.mh: Likewise.
7888 * config/sparc/linux.mh: Likewise.
7889 * config/sparc/linux64.mh: Likewise.
7890 * config/xtensa/linux.mh: Likewise.
7891 * linux-nat.c (linux_lwp_is_zombie): Remove, move it to
7892 common/linux-procfs.c.
7893 (wait_lwp): Rename linux_lwp_is_zombie to linux_proc_pid_is_zombie.
7894
7895 2012-03-13 Hui Zhu <teawater@gmail.com>
7896 Pedro Alves <palves@redhat.com>
7897
7898 * breakpoint.c (init_breakpoint_sal): New flags parameter. Handle
7899 CREATE_BREAKPOINT_FLAGS_INSERTED.
7900 (create_breakpoint_sal, create_breakpoints_sal)
7901 (base_breakpoint_create_breakpoints_sal)
7902 (tracepoint_create_breakpoints_sal)
7903 (strace_marker_create_breakpoints_sal): New flags parameter. Pass
7904 down.
7905 (break_command_1, handle_gnu_v3_exceptions, trace_command)
7906 (ftrace_command, strace_command): Adjust.
7907 (create_tracepoint_from_upload): Pass
7908 CREATE_BREAKPOINT_FLAGS_INSERTED.
7909 * breakpoint.h (enum breakpoint_create_flags): New.
7910 (create_breakpoint): New flags parameter.
7911 * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust.
7912 * python/py-breakpoint.c (bppy_init): Adjust.
7913 * python/py-finishbreakpoint.c (bpfinishpy_init): Adjust.
7914 * spu-tdep.c (spu_catch_start): Adjust.
7915
7916 2012-03-13 Pedro Alves <palves@redhat.com>
7917 Hui Zhu <teawater@gmail.com>
7918 Yao Qi <yao@codesourcery.com>
7919
7920 * remote.c (struct remote_state): New field `starting_up'.
7921 (remote_start_remote): Set and clear it.
7922 (remote_can_download_tracepoint): If starting up, return false.
7923
7924 2012-03-13 Yao Qi <yao@codesourcery.com>
7925
7926 * inferior.h (struct inferior): Remove fields any_syscall_count,
7927 syscalls_counts and total_syscalls_count. Move them to new
7928 struct catch_syscall_inferior_data in breakpoint.c.
7929 * breakpoint.c: Call DEF_VEC_I(int).
7930 (struct catch_syscall_inferior_data): New.
7931 (get_catch_syscall_inferior_data): New.
7932 (catch_syscall_inferior_data_cleanup): New.
7933 (insert_catch_syscall): Update to access data in
7934 struct catch_syscall_inferior_data.
7935 (insert_catch_syscall): Likewise.
7936 (remove_catch_syscall): Likewise.
7937 (remove_catch_syscall): Likewise.
7938 (is_syscall_catchpoint_enabled): Likewise.
7939 (add_catch_command): Likewise.
7940 (_initialize_breakpoint): Register cleanup.
7941 * breakpoint.h: Removed DEF_VEC_I(int).
7942 * dwarf2loc.c: Call DEF_VEC_I(int).
7943 * mi/mi-main.c: Likewise.
7944
7945 2012-03-12 Mark Kettenis <kettenis@gnu.org>
7946
7947 * inf-ptrace.c (inf_ptrace_post_attach): Make static.
7948
7949 2012-03-12 Chris January <chris.january@allinea.com>
7950
7951 * aix-thread.c (_initialize_aix_thread): Add prototype.
7952 * rs6000-nat.c (_initialize_rs6000_nat): Ditto.
7953 * xcoffsolib.c (_initialize_xcoffsolib): Ditto.
7954
7955 2012-03-12 Joel Brobecker <brobecker@adacore.com>
7956
7957 * amd64bsd-nat.c: Move #include of "amd64bsd-nat.h" after
7958 include of "amd64-nat.h".
7959
7960 2012-03-12 Tom Tromey <tromey@redhat.com>
7961
7962 * buildsym.c (record_pending_block): Now static.
7963 * buildsym.h: (record_pending_block): Remove.
7964
7965 2012-03-12 Andreas Tobler <andreast@fgznet.ch>
7966
7967 * amd64bsd-nat.c: Include amd64bsd-nat.h.
7968
7969 2012-03-09 Tom Tromey <tromey@redhat.com>
7970
7971 * dwarf2read.c (struct dwarf2_cu) <checked_producer,
7972 producer_is_gxx_lt_4_6>: New fields.
7973 (producer_is_gxx_lt_4_6): Use and update producer cache fields.
7974
7975 2012-03-09 Tom Tromey <tromey@redhat.com>
7976
7977 * dwarf2read.c (dwarf2_attr): Avoid tail-recursive call.
7978
7979 2012-03-08 Joel Brobecker <brobecker@adacore.com>
7980
7981 * ravenscar-sparc-thread.c (_initialize_ravenscar_sparc): Add
7982 prototype.
7983
7984 2012-03-08 Joel Brobecker <brobecker@adacore.com>
7985
7986 * ravenscar-thread.c (_initialize_ravenscar): Add prototype.
7987
7988 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
7989
7990 Fix -Wmissing-prototypes build.
7991 * arm-linux-nat.c (get_thread_id): Make it static.
7992 * xtensa-linux-nat.c (get_thread_id): Likewise.
7993
7994 2012-03-08 Joel Brobecker <brobecker@adacore.com>
7995
7996 * server.c (process_point_options): If a conditional expression
7997 is found, only print a message if remote_debug is nonzero.
7998
7999 2012-03-08 Luis Machado <lgustavo@codesourcery.com>
8000
8001 * ax-gdb.c (gen_fetch): Fail gracefully and use error instead
8002 of internal error for unknown/unsupported types.
8003
8004 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
8005
8006 Fix CU relative vs. absolute DIE offsets.
8007 * dwarf2loc.h (dwarf2_fetch_die_location_block): Rename parameter
8008 offset to offset_in_cu.
8009 * dwarf2read.c (process_enumeration_scope): Add CU offset to
8010 TYPE_OFFSET.
8011 (dwarf2_fetch_die_location_block): Rename parameter offset to
8012 offset_in_cu. New variable offset, add CU offset to OFFSET_IN_CU.
8013
8014 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
8015
8016 * libunwind-frame.c: Rename to ...
8017 * ia64-libunwind-tdep.c: ... here.
8018 * libunwind-frame.h: Rename to ...
8019 * ia64-libunwind-tdep.h: ... here.
8020 * Makefile.in (HFILES_NO_SRCDIR): Rename libunwind-frame.h to
8021 ia64-libunwind-tdep.h.
8022 (ALLDEPFILES): Rename libunwind-frame.c to ia64-libunwind-tdep.c.
8023 * README (--with-libunwind): Rename to ...
8024 (--with-libunwind-ia64): ... here, note it is ia64 specific now.
8025 * config.in: Regenerate.
8026 * configure: Regenerate.
8027 * configure.ac: New option --with-libunwind-ia64, make the
8028 AS_HELP_STRING ia64 specific. Deprecate option --with-libunwind.
8029 Remove AC_DEFINE for HAVE_LIBUNWIND.
8030 * ia64-libunwind-tdep.c: Make the file top comment ia64 specific.
8031 Rename libunwind-frame.h #include to ia64-libunwind-tdep.h.
8032 Rename libunwind-frame in the general comment.
8033 * ia64-libunwind-tdep.h: Make the file top comment ia64 specific.
8034 Rename symbol LIBUNWIND_FRAME_H to IA64_TDEP_LIBUNWIND_FRAME_H.
8035 Move forward declarations inside #ifndef. Rename libunwind-frame in
8036 the general comment.
8037 * ia64-tdep.c: Rename libunwind-frame.h #include to
8038 ia64-libunwind-tdep.h.
8039 (ia64_gdb2uw_regnum, ia64_uw2gdb_regnum, ia64_is_fpreg)
8040 (ia64_libunwind_descr): Rename libunwind-frame to
8041 ia64-libunwind-tdep in these function comments.
8042 * ia64-tdep.h: Rename libunwind-frame.h #include to
8043 ia64-libunwind-tdep.h.
8044 * ia64-vms-tdep.c (ia64_vms_libunwind_descr): Rename libunwind-frame to
8045 ia64-libunwind-tdep in that data comment.
8046
8047 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
8048
8049 * libunwind-frame.h (struct frame_unwind): New declaration.
8050
8051 2012-03-08 Joel Brobecker <brobecker@adacore.com>
8052
8053 * breakpoint.c (_initialize_breakpoint): Fix error in help of
8054 "set breakpoint condition-evaluation" command.
8055
8056 2012-03-08 Tristan Gingold <gingold@adacore.com>
8057
8058 * sparc-stub.c: Move to stubs/
8059 * sh-stub.c: Likewise.
8060 * m68k-stub.c: Likewise.
8061 * m32r-stub.c: Likewise.
8062 * i386-stub.c: Likewise.
8063
8064 2012-03-08 Andreas Schwab <schwab@linux-m68k.org>
8065
8066 * m68klinux-tdep.c (m68k_linux_init_abi): Register
8067 linux_get_siginfo_type.
8068
8069 * m68klinux-nat.c: Include "gdb_proc_service.h".
8070 (PTRACE_GET_THREAD_AREA): Define.
8071 (ps_get_thread_area): New function.
8072
8073 2012-03-08 Yao Qi <yao@codesourcery.com>
8074
8075 * remote.c (remote_get_noisy_reply): Replace `sprintf' with
8076 `xsnprintf'.
8077 (remote_query_attached): Likewise.
8078 (remote_static_tracepoint_marker_at): Likewise.
8079 (remote_set_permissions): Likewise.
8080 (remote_detach_1, extended_remote_attach_1): Likewise.
8081 (send_g_packet, remote_vkill): Likewise.
8082 (extended_remote_disable_randomization): Likewise.
8083 (remote_add_target_side_condition): Likewise.
8084 (remote_insert_breakpoint): Likewise.
8085 (remote_remove_breakpoint): Likewise.
8086 (remote_insert_watchpoint): Likewise.
8087 (remote_remove_watchpoint): Likewise.
8088 (remote_insert_hw_breakpoint): Likewise.
8089 (remote_insert_hw_breakpoint): Likewise.
8090 (remote_remove_hw_breakpoint): Likewise.
8091 (remote_download_command_source): Likewise.
8092 (remote_download_tracepoint): Likewise.
8093 (remote_download_trace_state_variable): Likewise.
8094 (remote_disable_tracepoint): Likewise.
8095 (remote_trace_set_readonly_regions): Likewise.
8096 (remote_get_tracepoint_status): Likewise.
8097 (remote_trace_find): Likewise.
8098 (remote_get_trace_state_variable_value): Likewise.
8099 (remote_set_disconnected_tracing): Likewise.
8100 (remote_set_circular_trace_buffer): Likewise.
8101 (remote_get_min_fast_tracepoint_insn_len): Likewise.
8102 (remote_use_agent): Likewise.
8103 (remote_add_target_side_condition): Add one parameter BUF_SIZE.
8104 Update callers.
8105
8106 2012-03-07 Pedro Alves <palves@redhat.com>
8107
8108 * NEWS: Mention QProgramSignals.
8109 * inferior.h (update_signals_program_target): Declare.
8110 * infrun.c: (update_signals_program_target): New.
8111 (handle_command): Update the target of the new program signals
8112 array changes.
8113 * remote.c (PACKET_QProgramSignals): New enum.
8114 (last_program_signals_packet): New global.
8115 (remote_program_signals): New.
8116 (remote_start_remote): Update the target with the program signals
8117 list.
8118 (remote_protocol_features): Add entry for QPassSignals.
8119 (remote_open_1): Free anc clear last_program_signals_packet.
8120 (init_remote_ops): Install remote_program_signals.
8121 * target.c (update_current_target): Adjust.
8122 (target_program_signals): New.
8123 * target.h (struct target_ops) <to_program_signals>: New field.
8124 (target_program_signals): Declare.
8125
8126 2012-03-07 Pedro Alves <palves@redhat.com>
8127
8128 * NEWS: Add subtitle for new z0/z1 conditional breakpoint
8129 extensions.
8130
8131 2012-03-07 Andreas Schwab <schwab@linux-m68k.org>
8132
8133 * m68klinux-nat.c (getregs_supplies): Make static.
8134 (getfpregs_supplies): Likewise.
8135 (have_ptrace_getregs): Likewise.
8136
8137 2012-03-06 Joel Brobecker <brobecker@adacore.com>
8138
8139 * dwarf2read.c (dwarf2_get_die_type): Pass absolute offset
8140 in call to get_die_type_at_offset.
8141
8142 2012-03-06 Stan Shebs <stan@codesourcery.com>
8143
8144 * mi/mi-cmd-break.c: Enforce coding standards, fix comments.
8145 * mi/mi-cmd-disas.c: Ditto.
8146 * mi/mi-cmd-env.c: Ditto.
8147 * mi/mi-cmd-file.c: Ditto.
8148 * mi/mi-cmd-stack.c: Ditto.
8149 * mi/mi-cmd-target.c: Ditto.
8150 * mi/mi-cmd-var.c: Ditto.
8151 * mi/mi-cmds.c: Ditto.
8152 * mi/mi-cmds.h: Ditto.
8153 * mi/mi-console.c: Ditto.
8154 * mi/mi-getopt.c: Ditto.
8155 * mi/mi-getopt.h: Ditto.
8156 * mi/mi-interp.c: Ditto.
8157 * mi/mi-main.c: Ditto.
8158 * mi/mi-out.c: Ditto.
8159 * mi/mi-parse.c: Ditto.
8160 * mi/mi-parse.h: Ditto.
8161 * mi/mi-symbol-cmds.c: Ditto.
8162
8163 * mi/mi-getopt.h: Move mi_opt struct up.
8164 * mi/mi-main.c (captured_mi_execute_command): Remove redundant
8165 return.
8166 * mi/mi-out.c (_initialize_mi_out): Remove empty initialize.
8167
8168 2012-03-06 Tom Tromey <tromey@redhat.com>
8169
8170 * proc-service.c (ps_pglobal_lookup): Set the current program
8171 space.
8172
8173 2012-03-06 Pedro Alves <palves@redhat.com>
8174
8175 * gregset.h [HAVE_SYS_PROCFS_H]: Include <sys/procfs.h>.
8176
8177 2012-03-05 Joel Brobecker <brobecker@adacore.com>
8178
8179 * MAINTAINERS: List Maciej W. Rozycki as the mips maintainer.
8180
8181 2012-03-05 Jan Kratochvil <jan.kratochvil@redhat.com>
8182
8183 Code cleanup.
8184 * common/linux-osdata.c (linux_common_core_of_thread): New function
8185 comment.
8186 * linux-nat.c (linux_nat_wait_1): Replace linux_nat_core_of_thread_1
8187 call by linux_common_core_of_thread.
8188 (linux_nat_core_of_thread_1): Remove.
8189 * linux-nat.h (linux_nat_core_of_thread_1): Remove declaration.
8190 * linux-thread-db.c: Include linux-osdata.h.
8191 (update_thread_core): Replace linux_nat_core_of_thread_1 call by
8192 linux_common_core_of_thread.
8193
8194 2012-03-05 Tom Tromey <tromey@redhat.com>
8195
8196 * value.c (value_primitive_field): Don't fetch contents for
8197 non-virtual bases.
8198
8199 2012-03-05 Tom Tromey <tromey@redhat.com>
8200
8201 * jv-valprint.c (java_value_print): Correctly compute 'obj_addr'.
8202
8203 2012-03-05 Andreas Arnez <arnez@linux.vnet.ibm.com>
8204
8205 * s390-nat.c: Include "gregset.h".
8206
8207 2012-03-05 Jan Kratochvil <jan.kratochvil@redhat.com>
8208
8209 * libunwind-frame.c (LIBUNWIND_SO): Change .7 to .8.
8210 [!LIBUNWIND_SO] (LIBUNWIND_SO_7): New #define.
8211 (libunwind_load): New variable so_error, use it for dlerror. Try to
8212 load also LIBUNWIND_SO_7.
8213
8214 2012-03-05 Pedro Alves <palves@redhat.com>
8215
8216 * i387-tdep.c (i387_supply_xsave): Assert the xsave section buffer
8217 is not NULL, and remove resulting dead code.
8218
8219 2012-03-05 Thomas Schwinge <thomas@codesourcery.com>
8220
8221 * sh-tdep.c (sh_skip_prologue): Provide an upper limit on the function
8222 prologue to sh_analyze_prologue.
8223 (sh_analyze_prologue): Make better use of such an upper limit, and
8224 generally be more cautious about accessing memory.
8225
8226 2012-03-05 Tom Tromey <tromey@redhat.com>
8227
8228 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Rename from
8229 _initialize_ia64_hpux_tdep.
8230
8231 2012-03-05 Pedro Alves <palves@redhat.com>
8232
8233 PR gdb/13766
8234
8235 * i387-tdep.c (i387_supply_xsave): If we have an xsave buffer, and
8236 the register state is clear, supply explicit zero, instead of
8237 marking the register unavailable.
8238
8239 2012-03-05 Tristan Gingold <gingold@adacore.com>
8240
8241 * NEWS: Mention OpenVMS ia64 new target.
8242
8243 2012-03-05 Tristan Gingold <gingold@adacore.com>
8244
8245 * ia64-tdep.h: Include libunwind-frame.h and libunwind-ia64.h.
8246 (ia64_unw_accessors, ia64_unw_rse_accessors)
8247 (ia64_libunwind_descr): Declare.
8248 * ia64-vms-tdep.c: New file.
8249 * ia64-tdep.c (ia64_unw_accessors, ia64_unw_rse_accessors)
8250 (ia64_libunwind_descr): Make them public.
8251 * configure.tgt: Add ia64-*-*vms*.
8252 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-vms-tdep.o
8253 (ALLDEPFILES): Add ia64-vms-tdep.c
8254
8255 2012-03-05 Tristan Gingold <gingold@adacore.com>
8256
8257 * target.h (target_object): Add TARGET_OBJECT_OPENVMS_UIB.
8258 * remote.c (PACKET_qXfer_uib): New enum value.
8259 (remote_protocol_features): Add entry for PACKET_qXfer_uib.
8260 (remote_xfer_partial): Handle TARGET_OBJECT_OPENVMS_UIB.
8261 (_initialize_remote): Call add_packet_config_cmd for
8262 xfer:uib packet.
8263
8264 2012-03-05 Tristan Gingold <gingold@adacore.com>
8265
8266 * osabi.c (gdb_osabi_names): Add OpenVMS.
8267 (generic_elf_osabi_sniffer): Likewise.
8268 * defs.h (gdb_osabi): Add GDB_OSABI_OPENVMS.
8269
8270 2012-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
8271
8272 Removed unused code.
8273 * libunwind-frame.c (libunwind_frame_unwind)
8274 (libunwind_frame_base_address): Remove.
8275 * libunwind-frame.h (libunwind_frame_base_address): Remove declaration.
8276
8277 2012-03-04 Yao Qi <yao@codesourcery.com>
8278
8279 * common/agent.c (gdb_connect_sync_socket): Add _ markup and
8280 remove trailing new line.
8281 (agent_run_command, agent_run_command): Add _ markup.
8282 (agent_capability_check): Likewise.
8283
8284 2012-03-03 Jan Kratochvil <jan.kratochvil@redhat.com>
8285
8286 * breakpoint.c (set_condition_evaluation_mode): Set
8287 CONDITION_EVALUATION_MODE unconditionally.
8288
8289 2012-03-03 Yao Qi <yao@codesourcery.com>
8290
8291 * common/agent.c (agent_look_up_symbols): Add one parameter 'arg'.
8292 * common/agent.h: Update declaration.
8293 * inf-child.c (inf_child_use_agent): New.
8294 (inf_child_can_use_agent): New.
8295 (inf_child_target): Initialize fields `to_use_agent'
8296 and `to_can_use_agent'.
8297 * agent.c (agent_new_objfile): New.
8298 (_initialize_agent): Add agent_new_objfile to new_objfile
8299 observer.
8300
8301 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
8302 New.
8303 (linux_target_install_ops): Initialize field
8304 `to_static_tracepoint_markers_by_strid'.
8305 * remote.c (free_current_marker): Move it to ...
8306 * tracepoint.c (free_current_marker): ... here. New.
8307 (cleanup_target_stop): New.
8308 * tracepoint.h: Declare free_current_marker.
8309 * NEWS: Add one entry about `info static-tracepoint-marker'.
8310
8311 2012-03-03 Yao Qi <yao@codesourcery.com>
8312
8313 * common/agent.c (agent_loaded_p): New.
8314 (agent_look_up_symbols): New global.
8315 * common/agent.h: Declare agent_loaded_p.
8316
8317 2012-03-03 Yao Qi <yao@codesourcery.com>
8318
8319 * common/agent.c (struct ipa_sym_addresses) <addr_capability>: New.
8320 (agent_capability_check, agent_capability_invalidate): New.
8321 (symbol_list): New array element.
8322 * common/agent.h (enum agent_capa): New.
8323 * target.c (target_pre_inferior): Call agent_capability_invalidate.
8324
8325 2012-03-03 Yao Qi <yao@codesourcery.com>
8326
8327 * target.h (struct target_ops) <to_use_agent>: New field.
8328 (struct target_ops) <to_can_use_agent>: New field.
8329 (target_use_agent, target_can_use_agent): New macro.
8330 * target.c (update_current_target): Update.
8331 * remote.c: New enum `PACKET_QAgent'.
8332 (remote_protocol_features): Add a new element.
8333 (remote_use_agent, remote_can_use_agent): New.
8334 (init_remote_ops): Initialize field `can_use_agent' with
8335 remote_can_use_agent. Intiailize field `use_agent' with
8336 remote_use_agent.
8337 * common/agent.c (use_agent): New global.
8338 * common/agent.h: Declare it.
8339 * tracepoint.c (info_static_tracepoint_markers_command): Add
8340 comment.
8341 * Makefile.in (SFILES): Add common/agent.c and agent.c.
8342 (COMMON_OBS): Add common/agent.o and agent.o
8343 (common-agent.o): New rule.
8344 * agent.c: New.
8345
8346 2012-03-03 Yao Qi <yao@codesourcery.com>
8347
8348 * common/agent.c: New.
8349 * common/agent.h: New.
8350 * configure.ac: Add `sys/socket.h' and `sys/un.h' to
8351 AC_CHECK_HEADERS.
8352 * configure, configh.in: Regenerated.
8353
8354 2012-03-02 Kevin Buettner <kevinb@redhat.com>
8355
8356 * sh-tdep.c (sh_frame_cache): Don't fetch the FPSCR register
8357 unless it exists for this architecture.
8358
8359 2012-03-02 Joel Brobecker <brobecker@adacore.com>
8360
8361 * language.h (struct language_defn): New "method" la_read_var_value.
8362 * findvar.c: #include "language.h".
8363 (default_read_var_value): Renames read_var_value. Rewrite
8364 function description.
8365 (read_var_value): New function.
8366 * value.h (default_read_var_value): Add prototype.
8367 * ada-lang.c (ada_read_renaming_var_value, ada_read_var_value):
8368 New functions.
8369 (ada_language_defn): Add entry for la_read_var_value.
8370 * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, language.c,
8371 * m2-lang.c, objc-lang.c, opencl-lang.c, p-lang.c: Update
8372 language_defn structures to add entry for new la_read_var_value
8373 field.
8374
8375 2012-03-02 Tom Tromey <tromey@redhat.com>
8376 Pedro Alves <palves@redhat.com>
8377
8378 PR breakpoints/13776:
8379 * breakpoint.c (breakpoint_init_inferior): Delete step-resume
8380 breakpoints.
8381 (delete_longjmp_breakpoint_at_next_stop): New.
8382 * breakpoint.h (delete_longjmp_breakpoint_at_next_stop): Declare.
8383 * target.c (generic_mourn_inferior): Call mark_breakpoints_out
8384 before deleting the inferior. Add comments.
8385 * thread.c (clear_thread_inferior_resources): Don't delete lonjmp
8386 breakpoints immediately, but only on next stop. Move that code
8387 next to where we mark other breakpoints for deletion.
8388
8389 2012-03-02 Joel Brobecker <brobecker@adacore.com>
8390
8391 * mips-linux-nat.c (mips_linux_read_description): Add missing i18n
8392 marker.
8393 * mips-tdep.c (mips_linux_reg_names): Improve comment to avoid ARI
8394 violation.
8395
8396 2012-03-02 Pedro Alves <palves@redhat.com>
8397
8398 * linux-thread-db.c (attach_thread): Avoid in_thread_list call.
8399
8400 2012-03-02 Ulrich Weigand <uweigand@de.ibm.com>
8401
8402 Fix -Wmissing-prototypes build.
8403 * ppc-linux-nat.c (ppc_linux_get_hwcap): Make static.
8404 * remote-sim.c (gdbsim_has_all_memory): Likewise.
8405 (gdbsim_has_memory): Likewise.
8406
8407 2012-03-02 Yao Qi <yao@codesourcery.com>
8408
8409 Fix -Wmissing-prototypes build.
8410 * charset.c (phony_iconv_open): Make static.
8411 (phony_iconv_close, phony_iconv): Likewise.
8412 * i386-linux-nat.c (_initialize_i386_linux_nat): New prototype.
8413 * i386-windows-nat.c (_initialize_i386_windows_nat): New
8414 prototype.
8415 * mingw-hdep.c (_initialize_mingw_hdep): New prototype.
8416 * ser-mingw.c (create_select_thread): Make static.
8417 * windows-termcap.c (tgetent): New prototype.
8418 (tgetnum, tgetflag, tgetstr, tputs, tgoto): Likewise.
8419
8420 2012-03-02 Zhang Yuanhui <asmwarrior@gmail.com>
8421
8422 Fix -Wmissing-prototypes build.
8423 * windows-nat.c (dll_symbol_command, ctrl_c_handler): Make them static.
8424 (_initialize_windows_nat, _initialize_check_for_gdb_ini)
8425 (_initialize_loadable): New prototypes.
8426
8427 2012-03-02 Doug Evans <dje@google.com>
8428
8429 * dwarf2read.c (load_full_comp_unit): Remove unnecessary reading of
8430 abbrev table, read_comp_unit will do it.
8431
8432 2012-03-02 Jan Kratochvil <jan.kratochvil@redhat.com>
8433
8434 Fix -Wmissing-prototypes build.
8435 * alpha-tdep.c (alpha_deal_with_atomic_sequence): Make it static.
8436 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): New prototype.
8437 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Likewise.
8438 * arm-symbian-tdep.c (arm_symbian_skip_trampoline_code): Make it static.
8439 (_initialize_arm_symbian_tdep): New prototype.
8440 * arm-wince-tdep.c (arm_wince_skip_main_prologue): Make it static.
8441 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): New prototype.
8442 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Make it
8443 static.
8444 * lm32-tdep.c (_initialize_lm32_tdep): New prototype.
8445 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): New
8446 prototype.
8447 * microblaze-tdep.c (microblaze_debug, microblaze_fetch_instruction)
8448 (microblaze_skip_prologue, microblaze_frame_cache): Make them static.
8449 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Make it
8450 static.
8451 * moxie-tdep.c (moxie_process_record): Likewise.
8452 * remote-mips.c (mips_can_use_watchpoint, mips_insert_watchpoint)
8453 (mips_remove_watchpoint, mips_stopped_by_watchpoint): Make them static.
8454 * rl78-tdep.c (rl78_breakpoint_from_pc): Make it static.
8455 (_initialize_rl78_tdep): New prototype.
8456 * rx-tdep.c (rx_breakpoint_from_pc): Make it static.
8457 (_initialize_rx_tdep): New prototype.
8458 * solib-darwin.c (darwin_in_dynsym_resolve_code): Make it static.
8459 (_initialize_darwin_solib): New prototype.
8460 * solib-spu.c: Include solib-spu.h.
8461 (_initialize_spu_solib): New prototype.
8462 * spu-multiarch.c (_initialize_spu_multiarch): New prototype.
8463 * tic6x-tdep.c (tic6x_analyze_prologue, tic6x_skip_prologue)
8464 (tic6x_breakpoint_from_pc, tic6x_frame_unwind_cache)
8465 (tic6x_software_single_step): Make it static.
8466 (_initialize_tic6x_tdep): New prototype.
8467
8468 2012-03-02 Jan Kratochvil <jan.kratochvil@redhat.com>
8469
8470 Fix -Wmissing-prototypes build.
8471 * cris-tdep.c (cris_can_use_hardware_watchpoint)
8472 (cris_region_ok_for_watchpoint, cris_stopped_data_address): Remove.
8473
8474 2012-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
8475
8476 Fix -Wmissing-prototypes build.
8477 * frv-tdep.c (frv_check_watch_resources, frv_stopped_data_address)
8478 (frv_have_stopped_data_address): Remove.
8479
8480 2012-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
8481
8482 Fix -Wmissing-prototypes build.
8483 * Makefile.in (HFILES_NO_SRCDIR): Add sh64-tdep.h.
8484 * sh-tdep.c: Include sh64-tdep.h.
8485 * sh-tdep.h (sh64_gdbarch_init, sh64_show_regs): Remove declarations.
8486 * sh64-tdep.c: Include sh64-tdep.h.
8487 * sh64-tdep.h: New file.
8488
8489 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
8490
8491 * mips-tdep.c (mips32_scan_prologue): Correct indentation.
8492
8493 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
8494
8495 * mips-tdep.c (mips_gdbarch_init): Only set pc_regnum and
8496 sp_regnum once the gdbarch_init_osabi hook has been called.
8497
8498 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
8499
8500 * mips-tdep.c (mips32_bc1_pc): New function.
8501 (mips32_next_pc): Handle BC1ANY2F, BC1ANY2T, BC1ANY4F, BC1ANY4T,
8502 BPOSGE32 and BPOSGE64 instructions.
8503 (deal_with_atomic_sequence): Likewise.
8504 (mips32_instruction_has_delay_slot): Likewise.
8505
8506 2012-03-01 Maciej W. Rozycki <macro@mips.com>
8507 Chris Dearman <chris@mips.com>
8508 Maciej W. Rozycki <macro@codesourcery.com>
8509 Joseph Myers <joseph@codesourcery.com>
8510
8511 * features/mips-dsp.xml: New file.
8512 * features/mips64-dsp.xml: New file.
8513 * features/mips-dsp-linux.xml: New file.
8514 * features/mips64-dsp-linux.xml: New file.
8515 * features/Makefile (WHICH): Add mips-dsp-linux and
8516 mips64-dsp-linux.
8517 (mips-dsp-expedite, mips64-dsp-expedite): New variables.
8518 * features/mips-dsp-linux.c: New file.
8519 * features/mips64-dsp-linux.c: New file.
8520 * regformats/mips-dsp-linux.dat: New file.
8521 * regformats/mips64-dsp-linux.dat: New file.
8522 * mips-linux-nat.c (mips_linux_register_addr): Handle DSP
8523 registers.
8524 (mips64_linux_register_addr): Likewise.
8525 (mips64_linux_regsets_fetch_registers): Likewise.
8526 (mips64_linux_regsets_store_registers): Likewise.
8527 (mips64_linux_fetch_registers): Update call to
8528 mips64_linux_regsets_fetch_registers.
8529 (mips64_linux_store_registers): Update call to
8530 mips64_linux_regsets_store_registers.
8531 (mips_linux_read_description): Probe for DSP registers.
8532 (_initialize_mips_linux_nat): Call initialize_tdesc_mips_dsp_linux
8533 and initialize_tdesc_mips64_dsp_linux.
8534 * mips-linux-tdep.c (supply_gregset, mips64_supply_gregset):
8535 Remove padding of no longer used embedded register slots.
8536 * mips-linux-tdep.h (DSP_BASE, DSP_CONTROL): New macros.
8537 (MIPS_RESTART_REGNUM): Redefine enum value.
8538 * mips-tdep.c (mips_generic_reg_names): Remove trailing null
8539 strings.
8540 (mips_tx39_reg_names): Likewise.
8541 (mips_linux_reg_names): New array of register names for Linux
8542 targets.
8543 (mips_register_name): Check for a null pointer in
8544 mips_processor_reg_names and return an empty string.
8545 (mips_register_type): Exclude embedded registers for the IRIX
8546 and Linux ABIs.
8547 (mips_pseudo_register_type): Likewise. Use dynamic numbers to
8548 refer to FP registers, LO, HI, BadVAddr, Cause and PC. Handle
8549 DSP registers.
8550 (mips_stab_reg_to_regnum): Handle DSP accumulators.
8551 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Likewise.
8552 (mips_gdbarch_init): Likewise. Initialize internal register
8553 indices for the Linux ABI. Use dynamic numbers to refer to
8554 registers, as applicable, while parsing the target description.
8555 * mips-tdep.h (struct mips_regnum): Add dspacc/dspctl offsets.
8556
8557 2012-03-01 Joel Brobecker <brobecker@adacore.com>
8558
8559 * frame.h (read_frame_register_unsigned): Fix typo in function
8560 description.
8561
8562 2012-03-01 Pedro Alves <palves@redhat.com>
8563
8564 * jit-reader.in [!__cplusplus]
8565 (GDB_DECLARE_GPL_COMPATIBLE_READER): Add missing backslash.
8566
8567 2012-03-01 Pedro Alves <palves@redhat.com>
8568
8569 * configure.ac (build_warnings): Add -Wmissing-prototypes.
8570 * configure: Regenerate.
8571
8572 2012-03-01 Pedro Alves <palves@redhat.com>
8573
8574 * amd64-linux-tdep.c (amd64_linux_record_signal): Make static.
8575 * breakpoint.c (create_exception_master_breakpoint, trace_command)
8576 (ftrace_command, strace_command): Make static.
8577 * d-lang.c (_initialize_d_language): Declare.
8578 * dwarf2expr.c (_initialize_dwarf2expr): Declare.
8579 * dwarf2loc.c (_initialize_dwarf2loc):
8580 * dwarf2read.c (process_psymtab_comp_unit): Make static.
8581 * exec.c (exec_get_section_table): Make static.
8582 * i386-linux-tdep.c (i386_linux_record_signal): Make static.
8583 * infcmd.c (ensure_valid_thread, ensure_not_tfind_mode): Make static.
8584 * inferior.c (remove_inferior_command, add_inferior_command)
8585 (clone_inferior_command): Make static.
8586 * linux-nat.c (linux_nat_thread_address_space)
8587 (linux_nat_core_of_thread): Make static.
8588 * linux-tdep.c (_initialize_linux_tdep): Declare.
8589 * objc-lang.c (_initialize_objc_lang): Declare.
8590 * opencl-lang.c (builtin_opencl_type, opencl_language_arch_info):
8591 Make static.
8592 (_initialize_opencl_language): Declare.
8593 * record.c (_initialize_record): Declare.
8594 * remote.c (demand_private_info, remote_get_tib_address)
8595 (remote_supports_cond_tracepoints)
8596 (remote_supports_fast_tracepoints, remote_get_tracepoint_status):
8597 Make static.
8598 * skip.c (_initialize_step_skip): Declare.
8599 * symtab.c (skip_prologue_using_lineinfo): Make static.
8600 * tracepoint.c (delete_trace_state_variable)
8601 (trace_variable_command, delete_trace_variable_command)
8602 (get_uploaded_tsv, find_matching_tracepoint_location)
8603 (find_matching_tsv, create_tsv_from_upload, get_traceframe_info):
8604 Make static.
8605 * value.c (pack_unsigned_long): Make static.
8606 * varobj.c (varobj_ensure_python_env): Make static.
8607 * windows-tdep.c (_initialize_windows_tdep): Declare.
8608 * xml-syscall.c (make_cleanup_free_syscalls_info): Make static.
8609
8610 2012-03-01 Pedro Alves <palves@redhat.com>
8611
8612 * linux-tdep.c (linux_has_shared_address_space): Make static. Add
8613 gdbarch parameter.
8614 (linux_init_abi): Install it as has_shared_address_space gdbarch
8615 callback.
8616
8617 2012-03-01 Pedro Alves <palves@redhat.com>
8618
8619 * observer.c (observer_test_first_notification_function)
8620 (observer_test_second_notification_function)
8621 (observer_test_third_notification_function): Add declarations.
8622
8623 2012-03-01 Pedro Alves <palves@redhat.com>
8624
8625 * common/signals.c (default_target_signal_to_host)
8626 (default_target_signal_from_host): Move ...
8627 * arch-utils.c: ... here.
8628 * arch-utils.h (default_target_signal_to_host)
8629 (default_target_signal_from_host): Declare.
8630
8631 * common/signals.c (target_signal_from_command): Move ...
8632 * infrun.c: ... here.
8633 * inferior.h (target_signal_from_command): Declare.
8634 * target.h (target_signal_from_command)
8635 (default_target_signal_from_host, default_target_signal_to_host):
8636 Delete declarations.
8637
8638 * common/signals.c (_initialize_signals): Delete.
8639
8640 2012-03-01 Pedro Alves <palves@redhat.com>
8641
8642 * jit-reader.in (plugin_is_GPL_compatible): Add declarations for
8643 both __cplusplus and !__cplusplus.
8644
8645 2012-03-01 Pedro Alves <palves@redhat.com>
8646
8647 * psymtab.c (find_and_open_source): Delete declaration.
8648 * source.c (find_and_open_source): Move comment ...
8649 * source.h (find_and_open_source): ... to this new declaration.
8650
8651 2012-03-01 Pedro Alves <palves@redhat.com>
8652
8653 * inline-frame.c: Include inline-frame.h.
8654
8655 2012-03-01 Pedro Alves <palves@redhat.com>
8656
8657 * tui/tui-data.c (set_gen_win_origin): Delete.
8658 * tui/tui-data.h (tui_set_gen_win_origin): Delete declaration.
8659 * tui/tui-regs.c (tui_last_reg_element_no_in_line): Delete.
8660
8661 2012-03-01 Pedro Alves <palves@redhat.com>
8662
8663 * remote.c (encode_actions): Delete declaration.
8664 * tracepoint.c (encode_actions): Make extern.
8665 * tracepoint.h (encode_actions): Declare.
8666
8667 2012-03-01 Pedro Alves <palves@redhat.com>
8668
8669 * python/py-breakpoint.c: Include python.h.
8670 * python/py-continueevent.c (create_continue_event_object): Make
8671 static.
8672 * python/py-lazy-string.c (stpy_get_type): Make static.
8673 * python/py-newobjfileevent.c (create_new_objfile_event_object):
8674 Make static.
8675 * python/py-utils.c (unicode_to_target_python_string): Make
8676 static.
8677 * python/py-value.c: Include python.h.
8678
8679 2012-03-01 Pedro Alves <palves@redhat.com>
8680
8681 * inferior.c (delete_threads_of_inferior): Delete.
8682
8683 2012-03-01 Pedro Alves <palves@redhat.com>
8684
8685 Import fallback definitions from glibc.
8686
8687 * gdb_proc_service.h [!HAVE_PROC_SERVICE_H] (struct
8688 ps_prochandle): Forward declare.
8689 (ps_err_e): Use glibc's comments.
8690 [!HAVE_PROC_SERVICE_H] (ps_pdread, ps_pdwrite, ps_ptread)
8691 (ps_ptwrite, ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
8692 (ps_lsetfpregs, ps_getpid, ps_get_thread_area, ps_pglobal_lookup)
8693 (ps_pstop, ps_pcontinue, ps_lstop, ps_lcontinue, ps_lgetxregsize)
8694 (ps_lgetxregs, ps_lsetxregs, ps_plog): Declare.
8695 (struct ps_prochandle): Adjust comment.
8696
8697 2012-03-01 Pedro Alves <palves@redhat.com>
8698
8699 * ada-lang.c (ada_modulus_from_name): Delete.
8700 * ada-lex.l (lexer_init): Make static.
8701
8702 2012-03-01 Pedro Alves <palves@redhat.com>
8703
8704 PR gdb/13767
8705
8706 * frame.c (read_frame_register_unsigned): New.
8707 * frame.h (read_frame_register_unsigned): Declare.
8708 * i387-tdep.c (print_i387_status_word): New parameter `status_p'.
8709 Handle it.
8710 (print_i387_control_word): New parameter `control_p'. Handle it.
8711 (i387_print_float_info): Handle unavailable float registers.
8712
8713 2012-03-01 Keith Seitz <keiths@redhat.com>
8714
8715 * linespec.c (decode_line_2): Sort the list of methods
8716 alphabetically before presenting the user with a selection
8717 menu.
8718
8719 2012-03-01 Doug Evans <dje@google.com>
8720
8721 * dwarf2read.c (dwarf2_cu): Remove unused members has_form_ref_addr,
8722 has_namespace_info.
8723 (dwarf2_read_abbrevs): Remove corresponding initialization.
8724
8725 2012-03-01 Scott J. Goldman <scottjg@vmware.com>
8726
8727 * NEWS: Mention new python command class gdb.COMMAND_USER.
8728 * cli/cli-cmds.c (show_user): Print error when used on a python
8729 command.
8730 (init_cli_cmds): Update documentation strings for "show user" and
8731 "set/show max-user-call-depth" to clarify that it does not apply to
8732 python commands.
8733 * python/py-cmd.c (cmdpy_init): Treat class_user as a valid class in
8734 error check.
8735 (gdbpy_initialize_commands): Add COMMAND_USER as a constant in
8736 gdb python api.
8737 * top.c (execute_command): Only execute a user-defined command as a
8738 legacy macro if c->user_commands is set.
8739
8740 2012-03-01 Tom Tromey <tromey@redhat.com>
8741
8742 * valprint.h (struct generic_val_print_decorations): New.
8743 (generic_val_print): Declare.
8744 * valprint.c (generic_val_print): New function.
8745 * p-valprint.c (p_decorations): New global.
8746 (pascal_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM,
8747 TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_RANGE, TYPE_CODE_INT,
8748 TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ERROR, TYPE_CODE_UNDEF,
8749 TYPE_CODE_BOOL, TYPE_CODE_CHAR>: Call generic_val_print.
8750 * m2-valprint.c (m2_decorations): New global.
8751 (m2_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM, TYPE_CODE_FUNC,
8752 TYPE_CODE_BOOL, TYPE_CODE_RANGE, TYPE_CODE_INT, TYPE_CODE_CHAR,
8753 TYPE_CODE_FLT, TYPE_CODE_METHOD, TYPE_CODE_VOID, TYPE_CODE_UNDEF,
8754 TYPE_CODE_ERROR>: Call generic_val_print.
8755 * f-valprint.c (f_decorations): New global.
8756 (f_val_print): Use print_function_pointer_address.
8757 <TYPE_CODE_REF, TYPE_CODE_FUNC, TYPE_CODE_CHAR, TYPE_CODE_FLAGS,
8758 TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ENUM, TYPE_CODE_RANGE,
8759 TYPE_CODE_BOOL, TYPE_CODE_COMPLEX, TYPE_CODE_UNDEF>: Call
8760 generic_val_print.
8761 * c-valprint.c (c_decorations): New global.
8762 (c_val_print) <TYPE_CODE_MEMBERPTR, TYPE_CODE_REF, TYPE_CODE_ENUM,
8763 TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_METHOD, TYPE_CODE_BOOL,
8764 TYPE_CODE_RANGE, TYPE_CODE_CHAR, TYPE_CODE_FLT,
8765 TYPE_CODE_DECFLOAT, TYPE_CODE_VOID, TYPE_CODE_ERROR,
8766 TYPE_CODE_UNDEF, TYPE_CODE_COMPLEX>: Call generic_val_print.
8767 * ada-valprint.c (ada_val_print_1) <TYPE_CODE_FLAGS>: Remove
8768 case.
8769
8770 2012-03-01 Tom Tromey <tromey@redhat.com>
8771
8772 * valprint.c (val_print): Update.
8773 * p-valprint (pascal_val_print): Return void.
8774 * p-lang.h (pascal_val_print): Return void.
8775 * m2-valprint.c (m2_val_print): Return void.
8776 * m2-lang.h (m2_val_print): Return void.
8777 * language.h (struct language_defn) <la_val_print>: Return void.
8778 * language.c (unk_lang_val_print): Return void.
8779 * jv-valprint.c (java_val_print): Return void.
8780 * jv-lang.h (java_val_print): Return void.
8781 * f-valprint.c (f_val_print): Return void.
8782 * f-lang.h (f_val_print): Return void.
8783 * d-valprint.c (d_val_print): Return void.
8784 (dynamic_array_type): Update.
8785 * d-lang.h (d_val_print): Return void.
8786 * c-valprint.c (c_val_print): Return void.
8787 * c-lang.h (c_val_print): Return void.
8788 * ada-valprint.c (ada_vada_val_print, ada_val_print_1): Return
8789 void.
8790 * ada-lang.h (ada_val_print): Return void.
8791
8792 2012-03-01 Tom Tromey <tromey@redhat.com>
8793
8794 * value.h (val_print): Return void.
8795 * valprint.c (val_print): Return void.
8796
8797 2012-03-01 Tom Tromey <tromey@redhat.com>
8798
8799 * value.h (common_val_print): Return void.
8800 * valprint.c (common_val_print): Return void.
8801
8802 2012-03-01 Tom Tromey <tromey@redhat.com>
8803
8804 * value.h (value_print): Return void.
8805 * valprint.c (value_print): Return void.
8806 * p-valprint.c (pascal_value_print): Return void.
8807 * p-lang.h (pascal_value_print): Return void.
8808 * language.h (struct language_defn) <la_value_print>: Return
8809 void.
8810 * language.c (unk_lang_value_print): Return void.
8811 * jv-valprint.c (java_value_print): Return void.
8812 * jv-lang.h (java_value_print): Return void.
8813 * f-valprint.c (c_value_print): Don't declare.
8814 Include c-lang.h.
8815 * c-valprint.c (c_value_print): Return void.
8816 * c-lang.h (c_value_print): Return void.
8817 * ada-valprint.c (ada_value_print): Return void.
8818 * ada-lang.h (ada_value_print): Return void.
8819
8820 2012-03-01 Tom Tromey <tromey@redhat.com>
8821
8822 * value.c (value_primitive_field): Handle virtual base classes.
8823
8824 2012-03-01 Tom Tromey <tromey@redhat.com>
8825
8826 * gdbtypes.h (struct vbase): Remove.
8827
8828 2012-03-01 Tom Tromey <tromey@redhat.com>
8829
8830 * c-valprint.c (print_function_pointer_address): Move...
8831 * valprint.c: ... here. Make non-static.
8832 * m2-valprint.c (print_function_pointer_address): Remove.
8833 * valprint.h (print_function_pointer_address): Declare.
8834
8835 2012-03-01 Joel Brobecker <brobecker@adacore.com>
8836
8837 * NEWS: Document the fact that one can provide a condition when
8838 creating an Ada exception catchpoint.
8839
8840 2012-03-01 Tom Tromey <tromey@redhat.com>
8841
8842 * valprint.c (val_print_type_code_flags): Fix placement of
8843 trailing brace.
8844
8845 2012-03-01 Joel Brobecker <brobecker@adacore.com>
8846
8847 * copyright.py (MULTILINE_COMMENT_PREFIXES): Delete.
8848 (update_files): Do not set MULTILINE_COMMENT_PREFIXES
8849 environment variable before calling update-copyright.
8850
8851 2012-03-01 Joel Brobecker <brobecker@adacore.com>
8852
8853 * gnulib/extra/update-copyright: Update to the latest from
8854 gnulib's git repository.
8855 * copyright.py: Set UPDATE_COPYRIGHT_USE_INTERVALS environment
8856 variable to 2 instead of 1.
8857
8858 2012-02-29 Joel Brobecker <brobecker@adacore.com>
8859
8860 * varobj.c (c_value_of_variable): Remove dead code.
8861
8862 2012-02-29 Joel Brobecker <brobecker@adacore.com>
8863
8864 * ada-lex.p (processId): Do not modify already encoded IDs.
8865 Update function documentation.
8866
8867 2012-02-29 Joel Brobecker <brobecker@adacore.com>
8868
8869 * ada-lang.h (ada_find_renaming_symbol): Replace parameter
8870 "name" with "struct symbol *name_sym".
8871 * ada-exp.y (write_var_or_type): Update call to
8872 ada_find_renaming_symbol.
8873 "name" with "struct symbol *name_sym". Adjust Implementation
8874 accordingly. Adjust the function documentation.
8875
8876 2012-02-29 Joel Brobecker <brobecker@adacore.com>
8877
8878 * ada-lang.h (ada_find_any_symbol, ada_find_any_type): Delete.
8879 * ada-lang.c (ada_find_any_type): Add advance declaration.
8880 Make static. Replace ada_find_any_symbol by
8881 ada_find_any_type_symbol.
8882 (ada_find_any_type_symbol): Renames ada_find_any_symbol.
8883 Improve function description. Make static.
8884 (ada_find_renaming_symbol, find_old_style_renaming_symbol):
8885 Replace ada_find_any_symbol by ada_find_any_type_symbol.
8886
8887 2012-02-29 Joel Brobecker <brobecker@adacore.com>
8888
8889 * ada-lang.c (struct tag_args): Delete.
8890 (ada_get_tsd_type): Function body moved up in source file.
8891 (ada_tag_name_1, ada_tag_name_2): Delete.
8892 (ada_get_tsd_from_tag): New function.
8893 (ada_tag_name_from_tsd): New function.
8894 (ada_tag_name): Use a TRY_CATCH block instead of catch_errors
8895 to determine the tag name.
8896
8897 2012-02-29 Joel Brobecker <brobecker@adacore.com>
8898
8899 * ada-lang.h (ada_get_decoded_value, ada_get_decoded_type): Add
8900 declaration.
8901 * ada-lang.c (ada_get_decoded_value, ada_get_decoded_type): New
8902 function.
8903
8904 2012-02-29 Joel Brobecker <brobecker@adacore.com>
8905
8906 * ada-lang.c (ada_is_ignored_field): Rewrite wrong comment.
8907
8908 2012-02-29 Joel Brobecker <brobecker@adacore.com>
8909
8910 * ada-lang.c (ada_lookup_symbol_list): Only cache the result of
8911 full searches.
8912
8913 2012-02-29 Joel Brobecker <brobecker@adacore.com>
8914
8915 * ada-lang.c (constrained_packed_array_type): If there is a
8916 parallel XA type, use it to determine the array index type.
8917
8918 2012-02-29 Joel Brobecker <brobecker@adacore.com>
8919
8920 * ada-valprint.c (ada_val_print_1): If our value is a reference
8921 to an array descriptor, dereference it before converting it
8922 to a simple array.
8923
8924 2012-02-29 Joel Brobecker <brobecker@adacore.com>
8925
8926 * ada-lang.c (ada_to_fixed_value): Call unwrap_value before
8927 creating fixed value.
8928 (ada_value_ind, ada_coerce_ref, assign_component)
8929 (ada_evaluate_subexp): Remove call to unwrap_value before
8930 call to ada_to_fixed_value.
8931
8932 2012-02-29 Joel Brobecker <brobecker@adacore.com>
8933
8934 * ada-lang.c (to_fixed_array_type): Set result's type name.
8935
8936 2012-02-29 Joel Brobecker <brobecker@adacore.com>
8937
8938 * ada-lang.c (catch_ada_exception_command_split): Add new
8939 argument cond_string. Add support for condition at end of
8940 "catch exception" commands.
8941 (ada_decode_exception_location): Add new argument cond_string.
8942 Update call to catch_ada_exception_command_split.
8943 (create_ada_exception_catchpoint): Add new argument cond_string.
8944 Set the breakpoint condition if needed.
8945 (catch_ada_exception_command): Update call to
8946 ada_decode_exception_location.
8947 (ada_decode_assert_location): Add function documentation.
8948 Add support for condition at end of "catch assert" command.
8949 (catch_assert_command): Update calls to ada_decode_assert_location
8950 and create_ada_exception_catchpoint.
8951
8952 2012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
8953
8954 Fix disp-step-syscall.exp: fork: single step over fork.
8955 * i386-linux-tdep.c (-i386_linux_get_syscall_number): Rename to ...
8956 (i386_linux_get_syscall_number_from_regcache): ... here, new function
8957 comment, change parameters gdbarch and ptid to regcache. Remove
8958 parameter regcache, initialize gdbarch from regcache here.
8959 (i386_linux_get_syscall_number, i386_linux_displaced_step_copy_insn):
8960 New functions.
8961 (i386_linux_init_abi): Install i386_linux_displaced_step_copy_insn
8962 instead.
8963 * i386-tdep.c (i386_syscall_p): Check also for 'sysenter' and
8964 'syscall'. Make the 'int' check more strict.
8965
8966 2012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
8967
8968 Fix reverse mode for syscall on AMD CPUs in 32-bit mode.
8969 * i386-linux-tdep.c (i386_linux_intx80_sysenter_record): Rename to ...
8970 (i386_linux_intx80_sysenter_syscall_record): ... here.
8971 (i386_linux_init_abi): Initialize also I386_SYSCALL_RECORD.
8972 Use the renamed function name.
8973
8974 2012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
8975
8976 * arm-linux-tdep.c (arm_linux_copy_svc): Reset stale FRAME.
8977 * breakpoint.c (until_break_command): Likewise.
8978 * elfread.c (elf_gnu_ifunc_resolver_stop): Likewise.
8979 * infcall.c (call_function_by_hand): Likewise.
8980 * infcmd.c (finish_forward): Likewise.
8981 * infrun.c (insert_exception_resume_breakpoint): Likewise.
8982
8983 2012-02-28 Tristan Gingold <gingold@adacore.com>
8984
8985 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Rework code to
8986 avoid variable assignments inside condition.
8987
8988 2012-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
8989
8990 Fix static analysis issue found by cppcheck.
8991 * microblaze-tdep.c (microblaze_extract_return_value): Fix
8992 uninitialized BUF for size 2.
8993
8994 2012-02-27 Chris Dearman <chris@mips.com>
8995 Nathan Froyd <froydnj@codesourcery.com>
8996 Maciej W. Rozycki <macro@codesourcery.com>
8997
8998 * mips-tdep.c (mips32_instruction_has_delay_slot): New function.
8999 (mips16_instruction_has_delay_slot): Likewise.
9000 (mips_segment_boundary): Likewise.
9001 (mips_adjust_breakpoint_address): Likewise.
9002 (mips_gdbarch_init): Use mips_adjust_breakpoint_address.
9003
9004 2012-02-27 Maciej W. Rozycki <macro@mips.com>
9005 Maciej W. Rozycki <macro@codesourcery.com>
9006
9007 * infrun.c (handle_inferior_event): Don't proceed through
9008 shared library trampolines if stepping at the machine
9009 instruction level.
9010
9011 2012-02-27 Maciej W. Rozycki <macro@codesourcery.com>
9012
9013 * mips-linux-tdep.c (mips_linux_init_abi): Set num_pseudo_regs
9014 too.
9015
9016 2012-02-27 Thomas Schwinge <thomas@codesourcery.com>
9017
9018 * sh-tdep.c (sh_make_stub_cache, sh_stub_this_id)
9019 (sh_stub_unwind_sniffer): New functions.
9020 (sh_stub_unwind): New variable.
9021 (sh_gdbarch_init): Wire everything.
9022
9023 2012-02-27 Pedro Alves <palves@redhat.com>
9024
9025 * linux-nat.c (pid_is_stopped): Delete, moved to common/.
9026 (linux_nat_post_attach_wait): Adjust to use
9027 linux_proc_pid_is_stopped.
9028 * common/linux-procfs.h (linux_proc_pid_is_stopped): Declare.
9029 * common/linux-procfs.c (linux_proc_pid_is_stopped): New function,
9030 based on pid_is_stopped from both linux-nat.c and
9031 gdbserver/linux-low.c, and renamed.
9032
9033 2012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
9034
9035 * remote.c (remote_watchpoint_addr_within_range): New function.
9036 (init_remote_ops): Use it.
9037
9038 2012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
9039
9040 * target.h (target_watchpoint_addr_within_range): Document macro.
9041
9042 2012-02-24 Pedro Alves <palves@redhat.com>
9043
9044 * stack.c (set_last_displayed_sal): Issue internal_error instead
9045 of warning, and issue it after clearing the last displayed sal.
9046
9047 2012-02-24 Jan Kratochvil <jan.kratochvil@redhat.com>
9048 Pedro Alves <palves@redhat.com>
9049
9050 * breakpoint.c (until_break_command): Install breakpoints after
9051 all frame manipulations.
9052
9053 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
9054
9055 * remote.c (remote_supports_cond_breakpoints): New forward
9056 declaration.
9057 (remote_add_target_side_condition): New function.
9058 (remote_insert_breakpoint): Add target-side breakpoint
9059 conditional if supported.
9060 (remote_insert_hw_breakpoint): Likewise.
9061 (init_remote_ops): Set to_supports_evaluation_of_breakpoint_conditions
9062 hook.
9063
9064 * target.c (update_current_target): Inherit
9065 to_supports_evaluation_of_breakpoint_conditions.
9066 Default to_supports_evaluation_of_breakpoint_conditions to return_zero.
9067
9068 * target.h (struct target_ops)
9069 <to_supports_evaluation_of_breakpoint_conditions>: New field.
9070 (target_supports_evaluation_of_breakpoint_conditions): New #define.
9071
9072 * breakpoint.c (get_first_locp_gte_addr): New forward declaration.
9073 (condition_evaluation_both, condition_evaluation_auto,
9074 condition_evaluation_host, condition_evaluation_target,
9075 condition_evaluation_enums, condition_evaluation_mode_1,
9076 condition_evaluation_mode): New static globals.
9077 (translate_condition_evaluation_mode): New function.
9078 (breakpoint_condition_evaluation_mode): New function.
9079 (gdb_evaluates_breakpoint_condition_p): New function.
9080 (ALL_BP_LOCATIONS_AT_ADDR): New helper macro.
9081 (mark_breakpoint_modified): New function.
9082 (mark_breakpoint_location_modified): New function.
9083 (set_condition_evaluation_mode): New function.
9084 (show_condition_evaluation_mode): New function.
9085 (bp_location_compare_addrs): New function.
9086 (get_first_location_gte_addr): New helper function.
9087 (set_breakpoint_condition): Free condition bytecode if locations
9088 has become unconditional. Call mark_breakpoint_modified (...).
9089 (condition_command): Call update_global_location_list (1) for
9090 breakpoints.
9091 (breakpoint_xfer_memory): Use is_breakpoint (...).
9092 (is_breakpoint): New function.
9093 (parse_cond_to_aexpr): New function.
9094 (build_target_condition_list): New function.
9095 (insert_bp_location): Handle target-side conditional
9096 breakpoints and call build_target_condition_list (...).
9097 (update_inserted_breakpoint_locations): New function.
9098 (insert_breakpoint_locations): Handle target-side conditional
9099 breakpoints.
9100 (bpstat_check_breakpoint_conditions): Add comment.
9101 (bp_condition_evaluator): New function.
9102 (bp_location_condition_evaluator): New function.
9103 (print_breakpoint_location): Print information on where the condition
9104 will be evaluated.
9105 (print_one_breakpoint_location): Likewise.
9106 (init_bp_location): Call mark_breakpoint_location_modified (...) for
9107 breakpoint location.
9108 (force_breakpoint_reinsertion): New functions.
9109 (update_global_location_list): Handle target-side breakpoint
9110 conditions.
9111 Reinsert locations that are already inserted if conditions have
9112 changed.
9113 (bp_location_dtor): Free agent expression bytecode.
9114 (disable_breakpoint): Call mark_breakpoint_modified (...).
9115 Call update_global_location_list (...) with parameter 1 for breakpoints.
9116 (disable_command): Call mark_breakpoint_location_modified (...).
9117 Call update_global_location_list (...) with parameter 1 for breakpoints.
9118 (enable_breakpoint_disp): Call mark_breakpoint_modified (...).
9119 (enable_command): mark_breakpoint_location_modified (...).
9120 (_initialize_breakpoint): Update documentation and add
9121 condition-evaluation breakpoint subcommand.
9122
9123 * breakpoint.h: Include ax.h.
9124 (condition_list): New data structure.
9125 (condition_status): New enum.
9126 (bp_target_info) <cond_list>: New field.
9127 (bp_location) <condition_changed, cond_bytecode>: New fields.
9128 (is_breakpoint): New prototype.
9129
9130 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
9131
9132 * remote.c (remote_state) <cond_breakpoints>: New field.
9133 (PACKET_ConditionalBreakpoints): New enum.
9134 (remote_cond_breakpoint_feature): New function.
9135 (remote_protocol_features): Add new ConditionalBreakpoints entry.
9136 (remote_supports_cond_breakpoints): New function.
9137 (_initialize_remote): Add new packet configuration for
9138 target-side conditional breakpoints.
9139
9140 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
9141
9142 * NEWS: Mention target-side conditional breakpoint support,
9143 new condition-evaluation breakpoint subcommand and remote
9144 packet extensions.
9145
9146 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
9147
9148 * breakpoint.c (bp_location_compare): Sort by pspace before sorting by
9149 number.
9150
9151 2012-02-24 Thomas Schwinge <thomas@codesourcery.com>
9152
9153 * sh-tdep.c (sh_skip_prologue): Use skip_prologue_using_sal.
9154 (after_prologue): Remove.
9155
9156 2012-02-23 Tom Tromey <tromey@redhat.com>
9157
9158 * jv-valprint.c (java_val_print): Remove dead code.
9159
9160 2012-02-23 Tristan Gingold <gingold@adacore.com>
9161
9162 * ada-tasks.c (struct ada_tasks_inferior_data): Add
9163 known_tasks_element and known_tasks_length fields.
9164 (read_known_tasks_array): Change argument type. Use pointer type
9165 and number of elements from DATA. Adjust.
9166 (read_known_tasks_list): Likewise.
9167 (get_known_tasks_addr): Remove.
9168 (ada_set_current_inferior_known_tasks_addr): Renamed to ...
9169 (ada_tasks_inferior_data_sniffer): ... this. Use symtab for element
9170 type and array length. Merge former get_known_tasks_addr code.
9171
9172 2012-02-23 Jan Kratochvil <jan.kratochvil@redhat.com>
9173
9174 PR backtrace/13716
9175 * infcmd.c (finish_forward): New variable frame_id, initialize it, use
9176 it after set_momentary_breakpoint.
9177
9178 2012-02-22 Sterling Augustine <saugustine@google.com>
9179
9180 PR 13689:
9181 * breakpoint.c (watchpoint_exp_is_constant): Add UNOP_CAST to switch.
9182
9183 2012-02-22 Gary Benson <gbenson@redhat.com>
9184
9185 * dwarf2read.c (dwarf2_read_index): Correct misspelling.
9186 (find_slot_in_mapped_hash): Likewise.
9187
9188 2012-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
9189
9190 PR build/13638
9191 * configure.ac (MAKEINFO): Replace AC_CHECK_PROG by AC_ARG_VAR.
9192 (MAKEINFOFLAGS): Replace static string by AC_ARG_VAR.
9193 * configure: Regenerate.
9194
9195 2012-02-21 Tristan Gingold <gingold@adacore.com>
9196 Pedro Alves <palves@redhat.com>
9197
9198 * ia64-tdep.c: Do not include libunwind-ia64.h.
9199 * libunwind-frame.h: Remove #ifdef HAVE_LIBUNWIND_H guard.
9200 Include libunwind-ia64.h instead of libunwind.h.
9201 * configure.ac (--with-libunwind, $enable_libunwind): Don't check
9202 for libunwind.h existence.
9203 * configure, config.in: Regenerate.
9204
9205 2012-02-21 Anton Gorenkov <xgsa@yandex.ru>
9206
9207 * c-valprint.c (c_value_print): Use value_rtti_indirect_type
9208 instead of value_rtti_target_type.
9209 * eval.c (evaluate_subexp_standard): Use value_rtti_indirect_type
9210 instead of value_rtti_target_type.
9211 * typeprint.c (whatis_exp): Use value_rtti_indirect_type instead of
9212 value_rtti_target_type.
9213 * valops.c (value_ind): Extract function readjust_indirect_value_type.
9214 (value_rtti_target_type): Rename to ...
9215 (value_rtti_indirect_type): ... here and make it indirect. Update
9216 function comment.
9217 * value.c (readjust_indirect_value_type): New function.
9218 (coerce_ref): Support for enclosing type setting for references
9219 with readjust_indirect_value_type.
9220 * value.h (readjust_value_type): New declaration.
9221 (value_rtti_target_type): Rename to ...
9222 (value_rtti_indirect_type): ... here.
9223
9224 2012-02-21 Anton Gorenkov <xgsa@yandex.ru>
9225
9226 * MAINTAINERS (Write After Approval): Add myself to the list.
9227
9228 2012-02-20 Doug Evans <dje@google.com>
9229
9230 * objfiles.c (add_to_objfile_sections): Remove outdated comments.
9231 Rename objfile_p_char parameter to objfilep.
9232 (build_objfile_section_table): Result is now void. All callers
9233 updated.
9234 * objfiles.h (struct objfile): Tweak comments, whitespace.
9235 (build_objfile_section_table): Update.
9236
9237 * elfread.c (elf_symfile_segments): Fix warning text.
9238
9239 2012-02-20 Tom Tromey <tromey@redhat.com>
9240
9241 PR gdb/13498:
9242 * dwarf2read.c (dw2_expand_symtabs_matching): Only visit a
9243 particular set of file names once.
9244 (dw2_map_symbol_filenames): Likewise.
9245
9246 2012-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
9247
9248 Code cleanup.
9249 * main.c (write_files): Remove the declaration.
9250 (external_editor_command): Move the declaration ...
9251 [GDBTK] (external_editor_command): ... here. Fix the comment.
9252
9253 2012-02-20 Tom Tromey <tromey@redhat.com>
9254
9255 * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove
9256 extraneous block.
9257
9258 2012-02-20 Tristan Gingold <gingold@adacore.com>
9259
9260 * darwin-nat.h (enum darwin_msg_state): Add comments.
9261
9262 2012-02-20 Tristan Gingold <gingold@adacore.com>
9263
9264 * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Fix jb_pc_offset
9265 value.
9266
9267 2012-20-18 Joel Brobecker <brobecker@adacore.com>
9268
9269 * breakpoint.c (watchpoint_exp_is_const): Add missing empty line
9270 between function description and implementation.
9271
9272 2012-02-17 Tom Tromey <tromey@redhat.com>
9273
9274 PR python/12070:
9275 * python/py-event.c (event_object_getset): New global.
9276 (event_object_type): Reference it.
9277 * python/py-type.c (field_object_getset): New global.
9278 (field_object_type): Reference it.
9279 * python/python-internal.h (gdb_py_generic_dict): Declare.
9280 * python/py-utils.c (gdb_py_generic_dict): New function.
9281
9282 2012-02-17 Tristan Gingold <gingold@adacore.com>
9283
9284 * solib-darwin.c (darwin_current_sos): Check magic and filetype
9285
9286 2012-02-17 Thomas Schwinge <thomas@codesourcery.com>
9287
9288 * sh-tdep.c (sh_is_renesas_calling_convention): Fix handling of
9289 TYPE_CALLING_CONVENTION annotation.
9290
9291 2012-02-16 Kevin Buettner <kevinb@redhat.com>
9292
9293 * MAINTAINERS: Add rx to target ISA section.
9294 * Makefile.in (ALL_TARGET_OBS): Add rx-tdep.o.
9295 (ALLDEPFILES): Add rx-tdep.c.
9296
9297 2012-02-16 Tom Tromey <tromey@redhat.com>
9298
9299 * symfile.c (symbol_file_add_main_1): Use inferior's
9300 symfile_flags.
9301 * solib.c (solib_read_symbols): Use inferior's symfile_flags.
9302 * linux-nat.c (linux_child_follow_fork): Set symfile_flags on
9303 inferior.
9304 * infrun.c (handle_vfork_child_exec_or_exit): Set symfile_flags on
9305 inferior.
9306 (follow_exec): Use inferior's symfile_flags.
9307 * inferior.h (struct inferior) <symfile_flags>: New field.
9308
9309 2012-02-16 Mike Frysinger <vapier@gentoo.org>
9310
9311 PR gdb/9734:
9312 * remote-sim.c (gdbsim_create_inferior): Call error() when
9313 sim_create_inferior() fails.
9314
9315 2012-02-16 Josh Matthews <josh@joshmatthews.net>
9316
9317 * machoread.c: Initialize nbr_syms to avoid warnings-as-errors failure.
9318
9319 2012-02-16 Tom Tromey <tromey@redhat.com>
9320
9321 PR c++/13653:
9322 * thread.c (struct current_thread_cleanup) <was_removable>: New
9323 field.
9324 (restore_current_thread_cleanup_dtor): Restore 'removable' field.
9325 (make_cleanup_restore_current_thread): Initialize new field.
9326
9327 2012-02-15 Kevin Buettner <kevinb@redhat.com>
9328
9329 * MAINTAINERS: Add rl78 to target ISA section.
9330 * Makefile.in (ALL_TARGET_OBS): Add rl78-tdep.o.
9331 (ALLDEPFILES): Add rl78-tdep.c.
9332 * NEWS: Mention rl78 as a new target.
9333
9334 2012-02-15 Aleksandar Ristovski <aristovski@qnx.com>
9335
9336 * frame.c (find_frame_sal): Initialize sal->pspace field from frame
9337 data.
9338 * stack.c (set_last_displayed_sal): Validate that PSPACE is not NULL.
9339
9340 2012-02-15 Tom Tromey <tromey@redhat.com>
9341
9342 PR gdb/12659:
9343 * infcmd.c (registers_info): Print just the current register's
9344 name.
9345
9346 2012-02-15 Tom Tromey <tromey@redhat.com>
9347
9348 * python/py-symbol.c (sympy_value): Use _().
9349
9350 2012-02-15 Pedro Alves <palves@redhat.com>
9351
9352 * remote.c (remote_detach_1, extended_remote_attach_1): Tweak
9353 output to be like native targets'.
9354 (remote_pid_to_str): Special case the null ptid.
9355
9356 2012-02-14 Stan Shebs <stan@codesourcery.com>
9357
9358 * NEWS: Mention enable count command.
9359 * breakpoint.h (struct breakpoint): New field enable_count.
9360 * breakpoint.c (enable_breakpoint_disp): Add count argument.
9361 (enable_breakpoint): Add arg to call.
9362 (struct disp_data): New struct.
9363 (do_enable_breakpoint_disp): Interp arg as disp_data and unpack.
9364 (do_map_enable_once_breakpoint): Create a struct and pass it.
9365 (do_map_enable_delete_breakpoint): Ditto.
9366 (do_map_enable_count_breakpoint): New function.
9367 (enable_count_command): New function.
9368 (bpstat_stop_status): Decrement enable_count.
9369 (print_one_breakpoint_location): Report enable count.
9370 (_initialize_breakpoint): Add enable count command.
9371
9372 2012-02-14 Kevin Buettner <kevinb@redhat.com>
9373
9374 * rl78-tdep.c (reggroups.h): Include.
9375 (RL78_RAW_BANK0_R0_REGNUM, RL78_RAW_BANK0_R1_REGNUM)
9376 (RL78_RAW_BANK0_R2_REGNUM, RL78_RAW_BANK0_R3_REGNUM)
9377 (RL78_RAW_BANK0_R4_REGNUM, RL78_RAW_BANK0_R5_REGNUM)
9378 (RL78_RAW_BANK0_R6_REGNUM, RL78_RAW_BANK0_R7_REGNUM)
9379 (RL78_RAW_BANK1_R0_REGNUM, RL78_RAW_BANK1_R1_REGNUM)
9380 (RL78_RAW_BANK1_R2_REGNUM, RL78_RAW_BANK1_R3_REGNUM)
9381 (RL78_RAW_BANK1_R4_REGNUM, RL78_RAW_BANK1_R5_REGNUM)
9382 (RL78_RAW_BANK1_R6_REGNUM, RL78_RAW_BANK1_R7_REGNUM)
9383 (RL78_RAW_BANK2_R0_REGNUM, RL78_RAW_BANK2_R1_REGNUM)
9384 (RL78_RAW_BANK2_R2_REGNUM, RL78_RAW_BANK2_R3_REGNUM)
9385 (RL78_RAW_BANK2_R4_REGNUM, RL78_RAW_BANK2_R5_REGNUM)
9386 (RL78_RAW_BANK2_R6_REGNUM, RL78_RAW_BANK2_R7_REGNUM)
9387 (RL78_RAW_BANK3_R0_REGNUM, RL78_RAW_BANK3_R1_REGNUM)
9388 (RL78_RAW_BANK3_R2_REGNUM, RL78_RAW_BANK3_R3_REGNUM)
9389 (RL78_RAW_BANK3_R4_REGNUM, RL78_RAW_BANK3_R5_REGNUM)
9390 (RL78_RAW_BANK3_R6_REGNUM, RL78_RAW_BANK3_R7_REGNUM): Add to
9391 beginning of register list.
9392 (RL78_BANK0_R0_REGNUM, RL78_BANK0_R1_REGNUM, RL78_BANK0_R2_REGNUM)
9393 (RL78_BANK0_R3_REGNUM, RL78_BANK0_R4_REGNUM, RL78_BANK0_R5_REGNUM)
9394 (RL78_BANK0_R6_REGNUM, RL78_BANK0_R7_REGNUM, RL78_BANK1_R0_REGNUM)
9395 (RL78_BANK1_R1_REGNUM, RL78_BANK1_R2_REGNUM, RL78_BANK1_R3_REGNUM)
9396 (RL78_BANK1_R4_REGNUM, RL78_BANK1_R5_REGNUM, RL78_BANK1_R6_REGNUM)
9397 (RL78_BANK1_R7_REGNUM, RL78_BANK2_R0_REGNUM, RL78_BANK2_R1_REGNUM)
9398 (RL78_BANK2_R2_REGNUM, RL78_BANK2_R3_REGNUM, RL78_BANK2_R4_REGNUM)
9399 (RL78_BANK2_R5_REGNUM, RL78_BANK2_R6_REGNUM, RL78_BANK2_R7_REGNUM)
9400 (RL78_BANK3_R0_REGNUM, RL78_BANK3_R1_REGNUM, RL78_BANK3_R2_REGNUM)
9401 (RL78_BANK3_R3_REGNUM, RL78_BANK3_R4_REGNUM, RL78_BANK3_R5_REGNUM)
9402 (RL78_BANK3_R6_REGNUM, RL78_BANK3_R7_REGNUM): Move these into
9403 the pseudo registers. Rearrange other pseudo registers too so
9404 that the bank registers appear at the end.
9405 (rl78_register_type): Account for the fact that the byte sized
9406 bank registers are now pseudo-registers.
9407 (rl78_register_name): Rearrange the register name array. Make
9408 initial set of raw banked registers inaccessible.
9409 (rl78_register_reggroup_p, rl78_register_sim_regno): New functions.
9410 (rl78_pseudo_register_read, rl78_pseudo_register_write): Add
9411 case for copying bytes back and forth between raw and pseudo
9412 versions of the banked registers. Update other cases to reflect
9413 the changed names.
9414 (rl78_return_value): Update to account for changed names of
9415 raw registers.
9416 (rl78_gdbarch_init): Register rl78_register_reggroup_p() and
9417 rl78_register_sim_regno().
9418
9419 2012-02-14 Kevin Buettner <kevinb@redhat.com>
9420
9421 * rl78-tdep.c (rl78_skip_prologue): Make `const' the type of
9422 the name parameter being passed to find_pc_partial_function().
9423
9424 2012-02-14 Jan Kratochvil <jan.kratochvil@redhat.com>
9425
9426 * MAINTAINERS: Step down from being ia64 target maintainer.
9427
9428 2012-02-12 Jan Kratochvil <jan.kratochvil@redhat.com>
9429
9430 * ppc-linux-nat.c (fetch_register, store_register): Fix GCC aliasing
9431 compilation warning.
9432
9433 2012-02-12 Jan Kratochvil <jan.kratochvil@redhat.com>
9434
9435 Fix crash on loaded shlibs without loaded exec_bfd.
9436 * exec.c (exec_files_info): Do not crash on NULL EXEC_BFD.
9437 (set_section_command): Replace exec_bfd by p->bfd.
9438
9439 2012-02-10 Tom Tromey <tromey@redhat.com>
9440
9441 * linespec.c (decode_line_internal): Skip symtabs_from_filename
9442 when we have a C++ qualified name.
9443
9444 2012-02-10 Pedro Alves <palves@redhat.com>
9445
9446 * inferior.c (inferior_pid_to_str): New.
9447 (print_inferior, inferior_command): Use it.
9448
9449 2012-02-10 Pedro Alves <palves@redhat.com>
9450
9451 * configure.ac (HAVE_ELF test): Put the old CFLAGS at the end of
9452 the test CFLAGS.
9453 * configure: Regenerate.
9454
9455 2012-02-10 Jan Kratochvil <jan.kratochvil@redhat.com>
9456
9457 * linespec.c (decode_line_internal): Fix comment correctness.
9458
9459 2012-02-09 Valery Khromov <valery.khromov@gmail.com>
9460
9461 PR gdb/12953
9462 * Makefile.in (HFILES_NO_SRCDIR): Add amd64bsd-nat.h.
9463 * amd64bsd-nat.c: Add support for debug registers (adapted from
9464 i386bsd-nat.c).
9465 [HAVE_PT_GETDBREGS] (amd64bsd_dr_get, amd64bsd_dr_set)
9466 (amd64bsd_dr_set_control, amd64bsd_dr_set_addr)
9467 (amd64bsd_dr_get_addr, amd64bsd_dr_get_status)
9468 (amd64bsd_dr_get_control): New functions.
9469 * amd64bsd-nat.h: New file (adapted from i386bsd-nat.h).
9470 * amd64fbsd-nat.c: Include "amd64bsd-nat.h", "i386-nat.h".
9471 [HAVE_PT_GETDBREGS] (_initialize_amd64fbsd_nat): Add hardware
9472 watchpoints initialization.
9473 * config/i386/fbsd64.mh (NATDEPFILES): Add i386-nat.o.
9474
9475 2012-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
9476
9477 * gdb-gdb.py (StructMainTypePrettyPrinter) <struct_field_img>: Print
9478 flds_bnds.fields.
9479 (StructMainTypePrettyPrinter) <bounds_img>: Print flds_bnds.bounds.
9480
9481 2012-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
9482
9483 * breakpoint.c (bp_location_compare): Fix comment. Reindent the code.
9484
9485 2012-02-08 Joel Brobecker <brobecker@adacore.com>
9486
9487 * language.h (symbol_name_cmp_ftype): Renames
9488 symbol_name_match_p_ftype.
9489 (struct language_defn)[la_get_symbol_name_cmp]: Renames
9490 la_get_symbol_name_match_p.
9491 * ada-lang.c (ada_get_symbol_name_cmp): Renames
9492 ada_get_symbol_name_match_p. Update comment.
9493 (ada_language_defn)[la_get_symbol_name_cmp]: Update value.
9494 * linespec.c (struct symbol_matcher_data)[symbol_name_cmp]:
9495 Renames symbol_name_match_p. Update field type.
9496 (iterate_name_matcher, iterate_over_all_matching_symtabs): Adjust.
9497 * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
9498 opencl-lang.c, p-lang.c: Replace "la_get_symbol_name_match_p" by
9499 "la_get_symbol_name_cmp" in comments.
9500 * language.c: Likewise.
9501
9502 2012-02-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9503
9504 * amd64-sol2-tdep.c (amd64_sol2_gregset_reg_offset): Correct
9505 %eflags offset.
9506 * i386-sol2-nat.c (amd64_sol2_gregset64_reg_offs)
9507 (amd64_sol2_gregset32_reg_offs): Likewise.
9508
9509 2012-02-08 Joel Brobecker <brobecker@adacore.com>
9510
9511 * solib-darwin.c (darwin_bfd_open): Make sure that the filename
9512 of the returned BFD is allocated by GDB.
9513
9514 2012-02-07 Tom Tromey <tromey@redhat.com>
9515
9516 PR python/12027:
9517 * python/python-internal.h (frame_object_type): Declare.
9518 * python/py-symbol.c (sympy_needs_frame): New function.
9519 (sympy_value): New function.
9520 (symbol_object_getset): Add "needs_frame".
9521 (symbol_object_methods): Add "value".
9522 * python/py-frame.c (frame_object_type): No longer static.
9523
9524 2012-02-07 Tom Tromey <tromey@redhat.com>
9525
9526 PR python/13599:
9527 * python/py-symbol.c (sympy_line): New function.
9528 (symbol_object_getset): Add "line".
9529
9530 2012-02-07 Tom Tromey <tromey@redhat.com>
9531
9532 * charset.c (find_charset_names): Check 'in' against NULL.
9533
9534 2012-02-06 Doug Evans <dje@google.com>
9535
9536 * gdbtypes.h (struct main_type): Change type of name,tag_name,
9537 and fields.name members from char * to const char *. All uses updated.
9538 (struct cplus_struct_type): Change type of fn_fieldlists.name member
9539 from char * to const char *. All uses updated.
9540 (type_name_no_tag): Update.
9541 (lookup_unsigned_typename, lookup_signed_typename): Update.
9542 * gdbtypes.c (type_name_no_tag): Change result type
9543 from char * to const char *. All callers updated.
9544 (lookup_unsigned_typename, lookup_signed_typename): Change type of
9545 name parameter from char * to const char *.
9546 * symtab.h (struct cplus_specific): Change type of demangled_name
9547 member from char * to const char *. All uses updated.
9548 (struct general_symbol_info): Change type of name and
9549 mangled_lang.demangled_name members from char * to const char *.
9550 All uses updated.
9551 (symbol_get_demangled_name, symbol_natural_name): Update.
9552 (symbol_demangled_name, symbol_search_name): Update.
9553 * symtab.c (symbol_get_demangled_name): Change result type
9554 from char * to const char *. All callers updated.
9555 (symbol_natural_name, symbol_demangled_name): Ditto.
9556 (symbol_search_name): Ditto.
9557 (completion_list_add_name): Change type of symname,sym_text,
9558 text,word parameters from char * to const char *.
9559 (completion_list_objc_symbol): Change type of sym_text,
9560 text,word parameters from char * to const char *.
9561 * ada-lang.c (find_struct_field): Change type of name parameter
9562 from char * to const char *.
9563 (encoded_ordered_before): Similarly for N0,N1 parameters.
9564 (old_renaming_is_invisible): Similarly for function_name parameter.
9565 (ada_type_name): Change result type from char * to const char *.
9566 All callers updated.
9567 * ada-lang.h (ada_type_name): Update.
9568 * buildsym.c (hashname): Change type of name parameter
9569 from char * to const char *.
9570 * buildsym.h (hashname): Update.
9571 * dbxread.c (end_psymtab): Change type of include_list parameter
9572 from char ** to const char **.
9573 * dwarf2read.c (determine_prefix): Change result type
9574 from char * to const char *. All callers updated.
9575 * f-lang.c (find_common_for_function): Change type of name, funcname
9576 parameters from char * to const char *.
9577 * f-lang.c (find_common_for_function): Update.
9578 * f-valprint.c (list_all_visible_commons): Change type of funcname
9579 parameters from char * to const char *.
9580 * gdbarch.sh (static_transform_name): Change type of name parameter
9581 and result from char * to const char *.
9582 * gdbarch.c: Regenerate.
9583 * gdbarch.h: Regenerate.
9584 * i386-sol2-tdep.c (i386_sol2_static_transform_name): Change type
9585 of name parameter from char * to const char *.
9586 * jv-lang.c (java_primitive_type_from_name): Ditto.
9587 (java_demangled_signature_length): Similarly for signature parameter.
9588 (java_demangled_signature_copy): Ditto.
9589 (java_demangle_type_signature): Ditto.
9590 * jv-lang.h (java_primitive_type_from_name): Update.
9591 (java_demangle_type_signature): Update.
9592 * objc-lang.c (specialcmp): Change type of a,b parameters
9593 from char * to const char *.
9594 * p-lang.c (is_pascal_string_type): Change type of arrayname parameter
9595 from char * to const char *. All callers updated.
9596 * p-lang.h (is_pascal_string_type): Update.
9597 * solib-frv.c (find_canonical_descriptor_in_load_object): Change type
9598 of name parameter from char * to const char *.
9599 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Ditto.
9600 * utils.c (fprintf_symbol_filtered): Ditto.
9601 * defs.h (fprintf_symbol_filtered): Update.
9602 * sparc-tdep.h (sparc_sol2_static_transform_name): Update.
9603 * stabsread.h (end_psymtab): Update.
9604 * stack.c (find_frame_funname): Change type of funname parameter
9605 from char ** to const char **.
9606 * stack.h (find_frame_funname): Update.
9607 * typeprint.c (type_print): Change type of varstring parameter
9608 from char * to const char *.
9609 * value.h (type_print): Update.
9610 * xcoffread.c (xcoff_start_psymtab): Change type of filename parameter
9611 from char * to const char *. All callers updated.
9612 (xcoff_end_psymtab): Change type of include_list parameter
9613 from char ** to const char **. All callers updated.
9614 (swap_sym): Similarly for name parameter. All callers updated.
9615 * coffread.c (patch_type): Add (char*) cast to xfree parameter.
9616 Use xstrdup.
9617 (process_coff_symbol): Use xstrdup.
9618 * stabsread.c (stabs_method_name_from_physname): Renamed from
9619 update_method_name_from_physname. Change result type from void
9620 to char *. All callers updated.
9621 (read_member_functions): In has_destructor case, store name in objfile
9622 obstack instead of malloc space. In !has_stub case, fix mem leak.
9623
9624 2012-02-06 Luca Pizzamiglio <luca.pizzamiglio@gmail.com>
9625
9626 * configure: Rebuild.
9627 * configure.ac: Put -L../bfd and -L../libiberty at the front of
9628 LDFLAGS.
9629
9630 2012-02-03 Kevin Buettner <kevinb@redhat.com>
9631
9632 * configure.tgt (rl78-*-elf): New target.
9633 * rl78-tdep.c: New file.
9634
9635 2012-02-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9636
9637 * remote.c (remote_rcmd): Use getpkt_sane to detect timeout
9638 and continue the loop. Add QUIT statement.
9639
9640 2012-02-03 Tom Tromey <tromey@redhat.com>
9641
9642 PR gdb/13596:
9643 * solib.h (gdb_bfd_lookup_symbol_from_symtab): Rename from
9644 bfd_lookup_symbol_from_symtab.
9645 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
9646 gdb_bfd_lookup_symbol_from_symtab.
9647
9648 2012-02-03 Joel Brobecker <brobecker@adacore.com>
9649
9650 * mi/mi-cmd-stack.c (list_args_or_locals): For argument symbols,
9651 use SYMBOL_LINKAGE_NAME to find the corresponding non-argument
9652 symbol. Add assertion that sym2 is never NULL.
9653
9654 2012-02-02 Doug Evans <dje@google.com>
9655
9656 * blockframe.c (find_pc_partial_function_gnu_ifunc): Change type of
9657 "name" parameter to const char ** from char **. All callers updated.
9658 (find_pc_partial_function): Ditto.
9659 (cache_pc_function_name): Change type to const char * from char *.
9660 * symtab.h ((find_pc_partial_function_gnu_ifunc): Update.
9661 (find_pc_partial_function): Update.
9662 * alpha-tdep.h (struct gdbarch_tdep, member pc_in_sigtramp): Change
9663 type of "name" parameter to const char * from char *.
9664 All uses updated.
9665 * arch-utils.c (generic_in_solib_return_trampoline): Change
9666 type of "name" parameter to const char * from char *.
9667 * arch-utils.h (generic_in_solib_return_trampoline): Update.
9668 * frv-linux-tdep.c (frv_linux_pc_in_sigtramp): Change
9669 type of "name" parameter to const char * from char *.
9670 * gdbarch.sh (in_solib_return_trampoline): Ditto.
9671 * gdbarch.c: Regenerate.
9672 * gdbarch.h: Regenerate.
9673 * hppa-hpux-tdep.c (hppa_hpux_in_solib_return_trampoline): Update.
9674 * rs6000-tdep.c (rs6000_in_solib_return_trampoline): Update.
9675 * m32r-linux-tdep.c (m32r_linux_pc_in_sigtramp): Change
9676 type of "name" parameter to const char * from char *.
9677 * skip.c (skip_function_pc): Ditto.
9678 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Ditto.
9679 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp): Update.
9680 * sparc64fbsd-tdep.c (sparc64fbsd_pc_in_sigtramp): Ditto.
9681 * sparc64nbsd-tdep.c (sparc64nbsd_pc_in_sigtramp): Ditto.
9682 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Ditto.
9683 * sparcnbsd-tdep.c (sparc32nbsd_pc_in_sigtramp): Ditto.
9684 * sparcobsd-tdep.c (sparc32obsd_pc_in_sigtramp): Ditto.
9685 * nbsd-tdep.c (nbsd_pc_in_sigtramp): Similary for "func_name".
9686 * nbsd-tdep.h (nbsd_pc_in_sigtramp): Update.
9687
9688 2012-02-02 Pedro Alves <palves@redhat.com>
9689
9690 * remote.c (remote_get_min_fast_tracepoint_insn_len): Return 0 if
9691 the current inferior has no execution. Make sure the current
9692 remote process matches gdb's current inferior.
9693
9694 2012-02-02 Tom Tromey <tromey@redhat.com>
9695
9696 PR gdb/13405:
9697 * tui/tui-win.c (parse_scrolling_args): Don't write to possibly
9698 read-only memory.
9699
9700 2012-02-02 Tom Tromey <tromey@redhat.com>
9701
9702 PR gdb/9307:
9703 * symtab.c (lookup_language_this): Set block_found.
9704
9705 2012-02-01 Tom Tromey <tromey@redhat.com>
9706
9707 PR gdb/13431:
9708 * jit.c (struct jit_inferior_data): Rewrite.
9709 (struct jit_objfile_data): New.
9710 (get_jit_objfile_data): New function.
9711 (add_objfile_entry): Update.
9712 (jit_read_descriptor): Return int. Replace descriptor_addr
9713 argument with inf_data. Update. Don't call error.
9714 (jit_breakpoint_re_set_internal): Reorder logic. Update. Look up
9715 descriptor here.
9716 (jit_inferior_init): Don't look up descriptor. Don't call error.
9717 (jit_reset_inferior_data_and_breakpoints)
9718 (jit_inferior_created_observer): Remove.
9719 (jit_inferior_exit_hook): Update.
9720 (jit_executable_changed_observer): Remove.
9721 (jit_event_handler): Update.
9722 (free_objfile_data): Reset inferior data if needed.
9723 (_initialize_jit): Update.
9724
9725 2012-02-01 Tom Tromey <tromey@redhat.com>
9726
9727 * jit.c (bfd_open_from_target_memory): Move higher in file.
9728
9729 2012-02-01 Tristan Gingold <gingold@adacore.com>
9730
9731 * libunwind-frame.c (libunwind_load): Display message if dlopen
9732 failed.
9733
9734 2012-02-01 Gary Benson <gbenson@redhat.com>
9735
9736 * symtab.h (symbol_found_callback_ftype): New typedef.
9737 (iterate_over_symbols): Use the above.
9738 * symtab.c (iterate_over_symbols): Likewise.
9739 * language.h (language_defn->la_iterate_over_symbols): Likewise.
9740 * ada-lang.c (ada_iterate_over_symbols): Likewise.
9741 * linespec.c (iterate_over_all_matching_symtabs): Likewise.
9742 (iterate_name_matcher): Document return values.
9743 (collect_one_symbol): Likewise.
9744 (collect_function_symbols): Likewise.
9745 (collect_symbols): Likewise.
9746
9747 2012-02-01 Tom Tromey <tromey@redhat.com>
9748
9749 * ada-lang.c (resolve_subexp): Update.
9750 (ada_lookup_symbol_list): Add 'full_search' argument.
9751 (ada_iterate_over_symbols): Pass 0 as full_search argument to
9752 ada_lookup_symbol_list.
9753 (ada_lookup_encoded_symbol): Update.
9754 (get_var_value): Update.
9755 * ada-exp.y (block_lookup): Update.
9756 (write_var_or_type): Update.
9757 (write_name_assoc): Update.
9758 * ada-lang.h (ada_lookup_symbol_list): Update.
9759
9760 2012-01-31 Tom Tromey <tromey@redhat.com>
9761
9762 * language.h (struct language_defn) <la_iterate_over_symbols>: Fix
9763 comment.
9764
9765 2012-01-31 Doug Evans <dje@google.com>
9766
9767 * symtab.h: Remove outdated comment.
9768 (SYMBOL_MATCHES_NATURAL_NAME): Delete.
9769
9770 2012-02-01 Josh Matthews <josh@joshmatthews.net> (tiny change)
9771
9772 Fix build error in Darwin port.
9773 * i386-darwin-nat.c: Include i386-nat.h.
9774
9775 2012-01-30 Tom Tromey <tromey@redhat.com>
9776
9777 PR breakpoints/13568:
9778 * dwarf2read.c (dwarf_decode_macro_bytes): Add 'include_hash'
9779 argument. Check for recursive includes.
9780 (dwarf_decode_macros): Create an include hash.
9781
9782 2012-01-30 Michael Eager <eager@eagercon.com>
9783
9784 * configure.tgt (powerpc-*-linux*): Add glibc-tdep.o.
9785 * ppc-linux-tdep.c: Include glibc-tdep.h.
9786 (powerpc32_plt_stub, powerpc32_plt_stub_so): Add PLT stub templates.
9787 (powerpc_linux_in_plt_stub): New function.
9788 (powerpc_linux_in_dynsym_resolve_code): New function.
9789 (ppc_skip_trampoline_code): New function.
9790 (ppc_linux_init_abi): Use PPC specific functions rather than generic.
9791 Use glibc_skip_solib_resolver.
9792
9793 2012-01-28 Jan Kratochvil <jan.kratochvil@redhat.com>
9794
9795 Code cleanup: Make 1440 bytes of data segment read-only.
9796 * arch-utils.c (endian_enum): Make it const char *const [].
9797 * arm-tdep.c (fp_model_strings, arm_abi_strings, arm_mode_strings):
9798 Likewise.
9799 * breakpoint.c (always_inserted_enums): Likewise.
9800 * cli/cli-cmds.c (script_ext_enums): Likewise.
9801 * cli/cli-decode.c (add_setshow_enum_cmd, complete_on_enum): Make the
9802 enumlist parameter const char *const *.
9803 * cli/cli-decode.h (struct cmd_list_element): Make the enums field
9804 const char *const *.
9805 * command.h (complete_on_enum, add_setshow_enum_cmd): Make the enumlist
9806 parameter const char *const *.
9807 * cris-tdep.c (cris_modes): Make it const char *const [].
9808 * filesystem.c (target_file_system_kinds): Likewise.
9809 * i386-tdep.c (valid_flavors, valid_conventions): Likewise.
9810 * infrun.c (follow_fork_mode_kind_names, follow_exec_mode_names)
9811 (can_use_displaced_stepping_enum, scheduler_enums)
9812 (exec_direction_names): Likewise.
9813 * language.c (_initialize_language): Make the type_or_range_names and
9814 case_sensitive_names variables const char *const [].
9815 * mips-tdep.c (mips_abi_strings): Make it const char *const [].
9816 * python/python.c (python_excp_enums): Likewise.
9817 * remote.c (interrupt_sequence_modes): Likewise.
9818 * rs6000-tdep.c (powerpc_vector_strings): Likewise.
9819 * serial.c (logbase_enums): Likewise.
9820 * sh-tdep.c (sh_cc_enum): Likewise.
9821 * stack.c (print_frame_arguments_choices, print_entry_values_choices):
9822 Likewise.
9823 * symtab.c (multiple_symbols_modes): Likewise.
9824 * tui/tui-win.c (tui_border_kind_enums, tui_border_mode_enums):
9825 Likewise.
9826 * utils.c (internal_problem_modes): Likewise.
9827
9828 2012-01-27 Jan Kratochvil <jan.kratochvil@redhat.com>
9829
9830 Fix the 2012-01-26 regression by la_get_symbol_name_match_p.
9831 * linespec.c (iterate_name_matcher): Negate the SYMBOL_NAME_MATCH_P
9832 result.
9833
9834 2012-01-27 Doug Evans <dje@google.com>
9835
9836 * configure.ac (with_python): Fix absolute path handling for win32.
9837 * configure: Regenerate.
9838
9839 2012-01-26 Doug Evans <dje@google.com>
9840
9841 * symtab.c: Whitespace cleanup, no code changes.
9842
9843 * symtab.c (lookup_symbol_in_language): Improve comment.
9844 (lookup_symbol_aux): Fix comment.
9845
9846 * psymtab.c (add_psymbol_to_list): Result is now "void".
9847 * psympriv.h (add_psymbol_to_list): Update.
9848
9849 * dwarf2read.c (add_partial_symbol): Delete local psym, unused.
9850
9851 2012-01-26 Jan Kratochvil <jan.kratochvil@redhat.com>
9852
9853 Do not open script filenames twice.
9854 * cli/cli-cmds.c (source_script_from_stream): Pass to
9855 source_python_script also STREAM.
9856 * python/py-auto-load.c (source_section_scripts): Pass to
9857 source_python_script_for_objfile also STREAM.
9858 (auto_load_objfile_script): Pass to source_python_script_for_objfile
9859 also INPUT.
9860 * python/python-internal.h (source_python_script_for_objfile): New
9861 parameter file, rename parameter file to filename.
9862 * python/python.c (python_run_simple_file): Call PyRun_SimpleFile
9863 instead if !_WIN32. Update the function comment.
9864 (source_python_script, source_python_script_for_objfile)
9865 (source_python_script): New parameter file, rename parameter file to
9866 filename. Pass FILENAME to python_run_simple_file.
9867 * python/python.h (source_python_script): New parameter file, rename
9868 parameter file to filename.
9869
9870 2012-01-26 Pedro Alves <palves@redhat.com>
9871
9872 * corelow.c (core_has_fake_pid): Delete.
9873 (core_close): Delete references to `core_has_fake_pid'.
9874 (add_to_thread_list): Adjust to mark the inferior's pid as fake.
9875 (core_open): Delete references to `core_has_fake_pid'.
9876 (core_pid_to_str): Adjust to check inferior->fake_pid_p instead of
9877 the removed global.
9878
9879 2012-01-26 Joel Brobecker <brobecker@adacore.com>
9880
9881 * symfile.h (struct quick_symbol_functions) [expand_symtabs_matching]:
9882 Remove language parameter from name_matcher. Adjust the comment.
9883 * symtab.c (search_symbols_name_matches, expand_partial_symbol_name):
9884 Remove language parameter.
9885 * ada-lang.c (ada_expand_partial_symbol_name): Likewise.
9886 * linespec.c (iterate_name_matcher): Likewise.
9887 * dwarf2read.c (dw2_expand_symtabs_matching): Adjust type of
9888 name_matcher. Adjust call accordingly.
9889 * psymtab.c (expand_symtabs_matching_via_partial): Likewise.
9890 (maintenance_check_symtabs): Adjust type of parameter "fun".
9891 * psymtab.h (maintenance_check_symtabs): Likewise.
9892
9893 2012-01-26 Joel Brobecker <brobecker@adacore.com>
9894
9895 * language.h (symbol_name_match_p_ftype): New typedef.
9896 (struct language_defn): Replace field la_symbol_name_compare
9897 by la_get_symbol_name_match_p.
9898 * ada-lang.c (ada_get_symbol_name_match_p): New function.
9899 (ada_language_defn): Use it.
9900 * linespec.c (struct symbol_matcher_data): New type.
9901 (iterate_name_matcher): Rewrite.
9902 (iterate_over_all_matching_symtabs): Pass a pointer to
9903 a symbol_matcher_data struct to expand_symtabs_matching
9904 instead of just the lookup name.
9905 * c-lang.c, d-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
9906 opencl-lang.c, p-lang.c, language.c: Delete field
9907 la_symbol_name_compare, and replace by NULL for new field
9908 la_get_symbol_name_match_p.
9909 * symfile.h (struct quick_symbol_functions): Update comment.
9910
9911 2012-01-25 Tom Tromey <tromey@redhat.com>
9912
9913 * breakpoint.c (bpstat_stop_status): Check 'breakpoint_at' before
9914 dereferencing.
9915
9916 2012-01-24 Tom Tromey <tromey@redhat.com>
9917
9918 PR symtab/12406:
9919 * solib.c (update_solib_list): Update the program space's
9920 added_solibs and deleted_solibs fields.
9921 * progspace.h (struct program_space) <added_solibs,
9922 deleted_solibs>: New fields.
9923 (clear_program_space_solib_cache): Declare.
9924 * progspace.c (release_program_space): Call
9925 clear_program_space_solib_cache.
9926 (clear_program_space_solib_cache): New function.
9927 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>: Call
9928 bpstat_stop_status. Use handle_solib_event.
9929 * breakpoint.c: Include gdb_regex.h.
9930 (print_solib_event): New function.
9931 (bpstat_print): Use print_solib_event.
9932 (bpstat_stop_status): Add special case for bp_shlib_event.
9933 (handle_solib_event): New function.
9934 (bpstat_what): Use handle_solib_event.
9935 (struct solib_catchpoint): New.
9936 (dtor_catch_solib, insert_catch_solib, remove_catch_solib)
9937 (breakpoint_hit_catch_solib, check_status_catch_solib)
9938 (print_it_catch_solib, print_one_catch_solib)
9939 (print_mention_catch_solib, print_recreate_catch_solib): New
9940 functions.
9941 (catch_solib_breakpoint_ops): New global.
9942 (catch_load_or_unload, catch_load_command_1)
9943 (catch_unload_command_1): New functions.
9944 (internal_bkpt_check_status): Add special case for
9945 bp_shlib_event.
9946 (internal_bkpt_print_it): Use print_solib_event.
9947 (initialize_breakpoint_ops): Initialize
9948 catch_solib_breakpoint_ops.
9949 (_initialize_breakpoint): Register "catch load" and "catch
9950 unload".
9951 * breakpoint.h (handle_solib_event): Declare.
9952 * NEWS: Add entry for "catch load" and "catch unload".
9953
9954 2012-01-24 Tom Tromey <tromey@redhat.com>
9955
9956 * ada-lang.c: Include gdb_vecs.h.
9957 * charset.c: Include gdb_vecs.h.
9958 * tracepoint.h: Include gdb_vecs.h.
9959 * gdb_vecs.h: New file.
9960
9961 2012-01-24 Pedro Alves <pedro@codesourcery.com>
9962
9963 * breakpoint.c (breakpoint_hit_catch_fork)
9964 (breakpoint_hit_catch_vfork, breakpoint_hit_catch_syscall)
9965 (breakpoint_hit_catch_exec): Make use of the `ws' argument.
9966 * infrun.c (inferior_has_forked, inferior_has_vforked)
9967 (inferior_has_execd, inferior_has_called_syscall): Delete.
9968 (handle_syscall_event): Get syscall_number from the execution
9969 control state's wait status.
9970 (wait_for_inferior): Don't clear syscall_number.
9971
9972 2012-01-24 Pedro Alves <palves@redhat.com>
9973
9974 * breakpoint.c (bpstat_check_location, bpstat_stop_status,
9975 pc_at_non_inline_function): Add `ws' parameter, and pass it down.
9976 (breakpoint_hit_catch_fork, breakpoint_hit_catch_vfork)
9977 (breakpoint_hit_catch_syscall, breakpoint_hit_catch_exec): Add
9978 `ws' parameter.
9979 (breakpoint_hit_ranged_breakpoint): Add `ws' parameter. Return
9980 false for events other than TARGET_SIGNAL_TRAP.
9981 (breakpoint_hit_watchpoint, base_breakpoint_breakpoint_hit):
9982 Add `ws' parameter.
9983 (bkpt_breakpoint_hit): Add `ws' parameter. Return false for
9984 events other than TARGET_SIGNAL_TRAP.
9985 (tracepoint_breakpoint_hit): Add `ws' parameter.
9986 * breakpoint.h (struct breakpoint_ops) <breakpoint_hit>: Add `ws'
9987 parameter.
9988 (bpstat_stop_status): Same.
9989 (pc_at_non_inline_function): Same.
9990 * infrun.c (handle_syscall_event, handle_inferior_event): Adjust
9991 to pass the current event's waitstatus to bpstat_stop_status
9992 and pc_at_non_inline_function.
9993
9994 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
9995
9996 Code cleanup.
9997 * cli/cli-cmds.c (source_script_from_stream): Never fclose STREAM.
9998 Update the function comment for it.
9999 (source_script_with_search): Call make_cleanup_fclose for STREAM.
10000 * cli/cli-script.c (script_from_file): Do not call make_cleanup_fclose
10001 for STREAM.
10002
10003 2012-01-24 Pedro Alves <palves@redhat.com>
10004
10005 * breakpoint.c (bpstat_stop_status): Moving clearing print_it
10006 outside `bs->stop' block.
10007 (bpstat_what): Rework bp_shlib_event handling.
10008 (internal_bkpt_check_status): If the breakpoint is a
10009 bp_shlib_event, then set bs->stop and bs->print if
10010 stop_on_solib_events is set.
10011
10012 2012-01-24 Gary Benson <gbenson@redhat.com>
10013
10014 Delete #if 0'd out code.
10015 * stack.c (print_frame_label_vars): Remove.
10016 (catch_info): Likewise.
10017 (_initialize_stack): Remove "info catch" command.
10018 * NEWS: Mention the above.
10019
10020 2012-01-24 Pedro Alves <palves@redhat.com>
10021
10022 * remote.c (remote_add_inferior): New `fake_pid_p' parameter. Use
10023 it.
10024 (remote_notice_new_inferior): If the remote end doesn't support
10025 the multiprocess extensions, then the PID is fake.
10026 (add_current_inferior_and_thread): New.
10027 (remote_start_remote): Use it.
10028 (extended_remote_attach_1): Adjust.
10029 (extended_remote_create_inferior_1): Use
10030 add_current_inferior_and_thread.
10031
10032 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
10033
10034 Fix watchpoints to be specific for each inferior.
10035 * breakpoint.c (watchpoint_in_thread_scope): Verify also
10036 current_program_space.
10037 * i386-nat.c (i386_inferior_data_cleanup): New.
10038 (i386_inferior_data_get): Replace variable inf_data_local by an
10039 inferior_data call.
10040 (i386_use_watchpoints): Initialize i386_inferior_data.
10041 * linux-nat.c (linux_nat_iterate_watchpoint_lwps): Use INFERIOR_PTID
10042 specific iterate_over_lwps.
10043
10044 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
10045
10046 Fix watchpoints across inferior fork.
10047 * amd64-linux-nat.c (update_debug_registers_callback): Update the
10048 comment for linux_nat_iterate_watchpoint_lwps.
10049 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
10050 linux_nat_iterate_watchpoint_lwps.
10051 (amd64_linux_prepare_to_resume): New comment on Linux kernel.
10052 * i386-linux-nat.c (update_debug_registers_callback): Update the
10053 comment for linux_nat_iterate_watchpoint_lwps.
10054 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
10055 linux_nat_iterate_watchpoint_lwps.
10056 (i386_linux_prepare_to_resume): New comment on Linux kernel.
10057 * i386-nat.c: Include inferior.h.
10058 (dr_mirror): Remove.
10059 (i386_inferior_data, struct i386_inferior_data)
10060 (i386_inferior_data_get): New.
10061 (i386_debug_reg_state): Use i386_inferior_data_get.
10062 (i386_cleanup_dregs, i386_update_inferior_debug_regs)
10063 (i386_insert_watchpoint, i386_remove_watchpoint)
10064 (i386_stopped_data_address, i386_insert_hw_breakpoint)
10065 (i386_remove_hw_breakpoint): New variable state, use
10066 i386_debug_reg_state instead of DR_MIRROR.
10067 * linux-nat.c (delete_lwp): New declaration.
10068 (num_lwps): Move here from downwards.
10069 (delete_lwp_cleanup): New.
10070 (linux_child_follow_fork): Create new child_lp, call
10071 linux_nat_new_thread and linux_nat_prepare_to_resume before calling
10072 PTRACE_DETACH.
10073 (num_lwps): Move upwards.
10074 (linux_nat_iterate_watchpoint_lwps): New.
10075 * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): New.
10076 (linux_nat_iterate_watchpoint_lwps_ftype): New declaration.
10077
10078 2012-01-24 Joel Brobecker <brobecker@adacore.com>
10079
10080 GDB 7.4 released.
10081
10082 2012-01-23 Pedro Alves <palves@redhat.com>
10083
10084 * top.c (caution): Rename to ...
10085 (confirm): ... this.
10086 (show_caution): Rename to ...
10087 (show_confirm): ... this.
10088 (quit_cover): Adjust.
10089 (init_main): Adjust.
10090 * top.h (caution): Rename to ...
10091 (confirm): ... this.
10092 * utils.c (internal_vproblem, defaulted_query): Adjust.
10093
10094 2012-01-23 Pedro Alves <palves@redhat.com>
10095
10096 * top.c (caution): Update comment.
10097 (execute_command): Don't consider the current value of `caution'.
10098
10099 2012-01-23 Jan Kratochvil <jan.kratochvil@redhat.com>
10100
10101 * cli/cli-cmds.c (find_and_open_script): Handle failure of fdopen.
10102
10103 2012-01-23 Ulrich Weigand <ulrich.weigand@linaro.org>
10104
10105 * inf-child.c: Include "gdb_stat.h" instead of <sys/stat.h>.
10106 * linux-tdep.c (linux_info_proc): Avoid ARI coding style warning.
10107 * target.c (target_fileio_pwrite): Remove buffer address from
10108 debug output.
10109 (target_fileio_pread): Likewise.
10110
10111 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
10112
10113 * NEWS: Document remote "info proc" and "generate-core-file".
10114
10115 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
10116
10117 * gdbarch.sh (find_memory_regions): New callback.
10118 * gdbarch.c, gdbarch.h: Regenerate.
10119
10120 * gcore.c (gcore_memory_sections): Try gdbarch find_memory_regions
10121 callback before falling back to target method.
10122
10123 * linux-nat.c (read_mapping, linux_nat_find_memory_regions): Remove.
10124 (linux_target_install_ops): No longer install it.
10125
10126 * linux-tdep.c (linux_find_memory_regions): New function.
10127 (linux_init_abi): Install it.
10128
10129 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
10130
10131 * gdbarch.sh (make_corefile_notes): New architecture callback.
10132 * gdbarch.c: Regenerate.
10133 * gdbarch.h: Likewise.
10134
10135 * gcore.c (write_gcore_file): Try gdbarch_make_corefile_notes
10136 before target_make_corefile_notes. If NULL is returned, the
10137 target does not support core file generation.
10138
10139 * linux-nat.c: Include "linux-tdep.h".
10140 (find_signalled_thread, find_stop_signal): Remove.
10141 (linux_nat_do_thread_registers): Likewise.
10142 (struct linux_nat_corefile_thread_data): Likewise.
10143 (linux_nat_corefile_thread_callback): Likewise.
10144 (iterate_over_spus): Likewise.
10145 (struct linux_spu_corefile_data): Likewise.
10146 (linux_spu_corefile_callback): Likewise.
10147 (linux_spu_make_corefile_notes): Likewise.
10148 (linux_nat_collect_thread_registers): New function.
10149 (linux_nat_make_corefile_notes): Replace contents by call to
10150 linux_make_corefile_notes passing linux_nat_collect_thread_registers
10151 as native-only callback.
10152
10153 * linux-tdep.h: Include "bfd.h".
10154 (struct regcache): Add forward declaration.
10155 (linux_collect_thread_registers_ftype): New typedef.
10156 (linux_make_corefile_notes): Add prototype.
10157 * linux-tdep.c: Include "gdbthread.h", "gdbcore.h", "regcache.h",
10158 "regset.h", and "elf-bfd.h".
10159 (find_signalled_thread, find_stop_signal): New functions.
10160 (linux_spu_make_corefile_notes): Likewise.
10161 (linux_collect_thread_registers): Likewise.
10162 (struct linux_corefile_thread_data): New data structure.
10163 (linux_corefile_thread_callback): New funcion.
10164 (linux_make_corefile_notes): Likewise.
10165 (linux_make_corefile_notes_1): Likewise.
10166 (linux_init_abi): Install it.
10167
10168 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
10169
10170 * gdbarch.sh (info_proc): New callback.
10171 * gdbarch.c, gdbarch.h: Regenerate.
10172
10173 * infcmd.c (info_proc_cmd_1): Try gdbarch info_proc callback
10174 before falling back to the target info_proc callback.
10175
10176 * linux-nat.c: Do not include "cli/cli-utils.h".
10177 (linux_nat_info_proc): Remove.
10178 (linux_target_install_ops): No longer install it.
10179
10180 * linux-tdep.c: Include "cli/cli-utils.h" and <ctype.h>.
10181 (read_mapping): New function.
10182 (linux_info_proc): Likewise.
10183 (linux_init_abi): Install it.
10184
10185 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
10186
10187 * defs.h (enum info_proc_what): Moved here from linux-nat.c
10188 * infcmd.c: (info_proc_cmd_1): New function.
10189 (info_proc_cmd): New function, moved here from equivalent routine
10190 orignally in linux-nat.c.
10191 (info_proc_cmd_mappings): Likewise.
10192 (info_proc_cmd_stat): Likewise.
10193 (info_proc_cmd_status): Likewise.
10194 (info_proc_cmd_cwd): Likewise.
10195 (info_proc_cmd_cmdline): Likewise.
10196 (info_proc_cmd_exe): Likewise.
10197 (info_proc_cmd_all): Likewise.
10198 (_initialize_infcmd): Install "info proc" command and subcommands.
10199
10200 * target.h (struct target_ops): Add to_info_proc.
10201 (target_info_proc): Add prototype.
10202 * target.c (target_info_proc): New function.
10203
10204 * procfs.c (procfs_info_proc): Add prototype.
10205 (info_proc_cmd): Rename into ...
10206 (procfs_info_proc): ... this. Update argument types as appropriate
10207 for a to_info_proc implementation. Handle "what" argument.
10208 (procfs_target): Install procfs_info_proc.
10209 (_initialize_procfs): No longer install "info proc" command.
10210
10211 * linux-nat.c: (enum info_proc_what): Remove.
10212 (linux_nat_info_proc_cmd_1): Rename into ...
10213 (linux_nat_info_proc): ... this. Update argument types as appropriate
10214 for a to_info_proc implementation.
10215 (linux_nat_info_proc_cmd): Remove.
10216 (linux_nat_info_proc_cmd_mappings): Likewise.
10217 (linux_nat_info_proc_cmd_stat): Likewise.
10218 (linux_nat_info_proc_cmd_status): Likewise.
10219 (linux_nat_info_proc_cmd_cwd): Likewise.
10220 (linux_nat_info_proc_cmd_cmdline): Likewise.
10221 (linux_nat_info_proc_cmd_exe): Likewise.
10222 (linux_nat_info_proc_cmd_all): Likewise.
10223 (linux_target_install_ops): Install linux_nat_info_proc.
10224 (_initialize_linux_nat): No longer install "info proc" command
10225 and subcommands.
10226
10227 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
10228
10229 * configure.ac [AC_CHECK_FUNCS]: Check for readlink.
10230 * config.in, configure: Regenerate.
10231
10232 * target.h (struct target_ops): Add to_fileio_readlink.
10233 (target_fileio_readlink): Add prototype.
10234 * target.c (target_fileio_readlink): New function.
10235
10236 * inf-child.c: Conditionally include <sys/param.h>.
10237 (inf_child_fileio_readlink): New function.
10238 (inf_child_target): Install it.
10239
10240 * remote.c (PACKET_vFile_readlink): New enum value.
10241 (remote_hostio_readlink): New function.
10242 (init_remote_ops): Install it.
10243 (_initialize_remote): Handle vFile:readlink packet type.
10244
10245 2012-01-20 Pedro Alves <palves@redhat.com>
10246 Ulrich Weigand <ulrich.weigand@linaro.org>
10247
10248 * configure.ac [AC_CHECK_FUNCS]: Check for pread and pwrite.
10249 * config.in, configure: Regenerate.
10250
10251 * target.h (struct target_ops): Add to_fileio_open, to_fileio_pwrite,
10252 to_fileio_pread, to_fileio_close, to_fileio_unlink.
10253 (target_fileio_open): Add prototype.
10254 (target_fileio_pwrite): Likewise.
10255 (target_fileio_pread): Likewise.
10256 (target_fileio_close): Likewise.
10257 (target_fileio_unlink): Likewise.
10258 (target_fileio_read_alloc): Likewise.
10259 (target_fileio_read_stralloc): Likewise.
10260
10261 * target.c: Include "gdb/fileio.h".
10262 (target_read_stralloc): Accept trailing, but not embedded NUL bytes.
10263 (default_fileio_target): New function.
10264 (target_fileio_open): Likewise.
10265 (target_fileio_pwrite): Likewise.
10266 (target_fileio_pread): Likewise.
10267 (target_fileio_close): Likewise.
10268 (target_fileio_unlink): Likewise.
10269 (target_fileio_close_cleanup): Likewise.
10270 (target_fileio_read_alloc_1): Likewise.
10271 (target_fileio_read_alloc): Likewise.
10272 (target_fileio_read_stralloc): Likewise.
10273
10274 * inf-child.c: Include "gdb/fileio.h", <sys/types.h>, <sys/stat.h>,
10275 <fcntl.h>, and <unistd.h>.
10276 (inf_child_fileio_open_flags_to_host): New function.
10277 (inf_child_errno_to_fileio_error): Likewise.
10278 (inf_child_fileio_open): Likewise.
10279 (inf_child_fileio_pwrite): Likewise.
10280 (inf_child_fileio_pread): Likewise.
10281 (inf_child_fileio_close): Likewise.
10282 (inf_child_fileio_unlink): Likewise.
10283 (inf_child_target): Install to_fileio routines.
10284
10285 * remote.c (init_remote_ops): Install to_fileio routines.
10286
10287 2012-01-20 Pedro Alves <palves@redhat.com>
10288 Ulrich Weigand <ulrich.weigand@linaro.org>
10289
10290 * remote.c (remote_multi_process_p): Only check for multi-process
10291 protocol feature, do not check for extended protocol.
10292 (remote_supports_multi_process): Check for extended protocol here.
10293 (set_general_process): Likewise.
10294 (extended_remote_kill): Likewise.
10295 (remote_pid_to_str): Likewise.
10296 (remote_query_supported): Always query multiprocess mode.
10297
10298 2012-01-20 Pedro Alves <palves@redhat.com>
10299 Ulrich Weigand <ulrich.weigand@linaro.org>
10300
10301 * inferior.h (struct inferior): Add fake_pid_p.
10302 * inferior.c (exit_inferior_1): Clear fake_pid_p.
10303 * remote.c (remote_start_remote): Set fake_pid_p if we have to use
10304 magic_null_ptid since the remote side doesn't provide a real PID.
10305
10306 2012-01-19 Tom Tromey <tromey@redhat.com>
10307
10308 * NEWS: Combine the two Python sections.
10309
10310 2012-01-19 Jan Kratochvil <jan.kratochvil@redhat.com>
10311
10312 * target.h (target_close): Update comment on the target's unpush state.
10313
10314 2012-01-19 Pedro Alves <palves@redhat.com>
10315
10316 * linux-nat.c (linux_nat_close): Call linux_nat_is_async_p and
10317 linux_nat_async directly instead of going through the target
10318 vector.
10319 * target.c (unpush_target): Close target after unpushing it, not
10320 before.
10321
10322 2012-01-19 Gary Benson <gbenson@redhat.com>
10323
10324 * mdebugread.c (sort_blocks): Replace integer constants with ones
10325 derived from FIRST_LOCAL_BLOCK.
10326
10327 2012-01-18 Paul Pluzhnikov <ppluzhnikov@google.com>
10328 Jan Kratochvil <jan.kratochvil@redhat.com>
10329
10330 PR gdb/9538
10331 * symfile.c (find_separate_debug_file): New function.
10332 (terminate_after_last_dir_separator): Likewise.
10333 (find_separate_debug_file_by_debuglink): Also try realpath.
10334 * configure.ac (AC_CHECK_FUNCS): Add lstat.
10335 * configure: Regenerate.
10336 * config.in: Regenerate.
10337
10338 2012-01-18 Doug Evans <dje@google.com>
10339
10340 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): Delete.
10341 (main.o): Remove rule.
10342 * configure.ac (BINDIR): Define with AC_DEFINE_DIR.
10343 (--with-sysroot): Rewrite.
10344 * configure: Regenerate.
10345 * config.in: Regenerate.
10346
10347 2012-01-18 Sergio Durigan Junior <sergiodj@redhat.com>
10348
10349 * parse.c (initialize_expout): New function.
10350 (reallocate_expout): Likewise.
10351 (parse_exp_in_context): Use `initialize_expout' and
10352 `reallocate_expout' when appropriate.
10353
10354 2012-01-18 Pedro Alves <palves@redhat.com>
10355
10356 * record.c (struct record_breakpoint, record_breakpoint_p)
10357 (record_breakpoints): New.
10358 (record_insert_breakpoint, record_remove_breakpoint): Manage
10359 record breakpoints list. Only remove breakpoints from the
10360 inferior if they had been inserted there in the first place.
10361
10362 2012-01-17 Doug Evans <dje@google.com>
10363
10364 * linespec.c (decode_line_internal): Don't call symtabs_from_filename
10365 if we know we don't have a file name to look for.
10366
10367 2012-01-17 Pedro Alves <palves@redhat.com>
10368
10369 * dwarf2-frame.c (dwarf2_frame_cfa): Throw NOT_AVAILABLE_ERROR, if
10370 the frame's stop reason is UNWIND_UNAVAILABLE.
10371
10372 2012-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
10373
10374 Fix compilation error.
10375 * m2-exp.y (yyerror): Use ANSI C prototype.
10376
10377 2012-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
10378
10379 * f-exp.y (parse_number): Convert prototype from K&R to ANSI C.
10380 (growbuf_by_size): Likewise.
10381 (yyerror): Likewise.
10382 * m2-exp.y (make_qualname): Remove function (was #if 0'ed).
10383 (modblock): Remove variable (was #if 0'ed).
10384 (parse_number): Convert prototype from K&R to ANSI C.
10385 (yyerror): Likewise.
10386 * objc-exp.y (parse_number): Likewise.
10387 (yyerror): Likewise.
10388 (yylex): Remove #if 0'ed code.
10389 * p-exp.y (uptok): Convert prototype from K&R to ANSI C.
10390 (yyerror): Likewise.
10391
10392 2012-01-16 Tom Tromey <tromey@redhat.com>
10393
10394 * NEWS: Add item.
10395 * symtab.h (compare_filenames_for_search): Declare.
10396 * symtab.c (compare_filenames_for_search): New function.
10397 (iterate_over_some_symtabs): Use it.
10398 * symfile.h (struct quick_symbol_functions)
10399 <map_symtabs_matching_filename>: Change spec.
10400 * psymtab.c (partial_map_symtabs_matching_filename): Use
10401 compare_filenames_for_search. Update for new spec.
10402 * dwarf2read.c (dw2_map_symtabs_matching_filename): Use
10403 compare_filenames_for_search. Update for new spec.
10404 * breakpoint.c (clear_command): Use compare_filenames_for_search.
10405
10406 2012-01-16 Tom Tromey <tromey@redhat.com>
10407
10408 PR python/13281:
10409 * gdbtypes.h (TYPE_FLAG_ENUM): New macro.
10410 (struct main_type) <flag_flag_enum>: New field.
10411 * dwarf2read.c (process_enumeration_scope): Detect "flag" enums.
10412 * NEWS: Add entries.
10413 * c-valprint.c (c_val_print) <TYPE_CODE_ENUM>: Handle "flag"
10414 enums.
10415 * python/lib/gdb/printing.py (_EnumInstance): New class.
10416 (FlagEnumerationPrinter): Likewise.
10417
10418 2012-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
10419
10420 * breakpoint.c (create_sals_from_address_default): New function.
10421 (create_breakpoints_sal_default): Likewise.
10422 (decode_linespec_default): Likewise.
10423 (is_marker_spec): Removed.
10424 (strace_marker_p): New function.
10425 (init_breakpoint_sal): Using `strace_marker_p' instead of
10426 `is_marker_spec'.
10427 (create_breakpoint): Call method `create_sals_from_address' from
10428 breakpoint_ops, replacing code that created SALs conditionally
10429 on the type of the breakpoint. Call method `create_breakpoints_sal',
10430 replacing code that created breakpoints conditionally on the type
10431 wanted.
10432 (base_breakpoint_create_sals_from_address): New function.
10433 (base_breakpoint_create_breakpoints_sal): Likewise.
10434 (base_breakpoint_decode_linespec): Likewise.
10435 (base_breakpoint_ops): Add methods
10436 `base_breakpoint_create_sals_from_address',
10437 `base_breakpoint_create_breakpoints_sal' and
10438 `base_breakpoint_decode_linespec'.
10439 (bkpt_create_sals_from_address): New function.
10440 (bkpt_create_breakpoints_sal): Likewise.
10441 (bkpt_decode_linespec): Likewise.
10442 (tracepoint_create_sals_from_address): Likewise.
10443 (tracepoint_create_breakpoints_sal): Likewise.
10444 (tracepoint_decode_linespec): Likewise.
10445 (strace_marker_create_sals_from_address): Likewise.
10446 (strace_marker_create_breakpoints_sal): Likewise.
10447 (strace_marker_decode_linespec): Likewise.
10448 (strace_marker_breakpoint_ops): New variable.
10449 (addr_string_to_sals): Remove `marker_spec'. Call method
10450 `decode_linespec' from breakpoint_ops, replacing code that decoded
10451 an address string into a SAL. Use `strace_marker_p' instead of
10452 `marker_spec'.
10453 (strace_command): Decide whether we are dealing with a static
10454 tracepoint with marker or not. Use the appropriate breakpoint_ops.
10455 (initialize_breakpoint_ops): Initialize new fields of breakpoint_ops.
10456 * breakpoint.h (linespec_result, linespec_sals): New forward
10457 declarations.
10458 (breakpoint_ops) <create_sals_from_address>,
10459 <create_breakpoints_sal>, <decode_linespec>: New methods.
10460
10461 2012-01-14 Doug Evans <dje@google.com>
10462
10463 * NEWS: Update text for "maint set python print-stack".
10464 It is deprecated in gdb 7.4 and deleted in 7.5.
10465
10466 2012-01-13 Eli Zaretskii <eliz@gnu.org>
10467
10468 * gdb_curses.h (MOUSE_MOVED) [__MINGW32__]: Undefine before
10469 including curses.h.
10470
10471 2012-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
10472
10473 * configure: Regenerate.
10474 * config.in: Regenerate.
10475
10476 2012-01-12 Keith Seitz <keiths@redhat.com>
10477
10478 PR mi/10586
10479 * varobj.c (ANONYMOUS_STRUCT_NAME): Define.
10480 (ANONYMOUS_UNION_NAME): Define.
10481 (is_path_expr_parent): New function.
10482 (get_path_expr_parent): New function.
10483 (is_anonymous_child): New function.
10484 (create_child_with_value): If the child is anonymous and without
10485 a name, assign an object name to it.
10486 (c_describe_child): Use get_path_expr_parent to determine
10487 the parent expression.
10488 If there field represents an anonymous struct or union and
10489 has no name, set an appropriate display name and expression.
10490 (cplus_describe_child): Likewise.
10491
10492 2012-01-12 Pedro Alves <palves@redhat.com>
10493
10494 * i386-tdep.c (i386_frame_cache_1): Also mark the frame base as
10495 available when %ebp is found to be zero (outermost).
10496
10497 2012-01-11 Andreas Tobler <andreast@fgznet.ch>
10498
10499 * common/gdb_assert.h (gdb_static_assert): Rename static_assert to
10500 an internal gdb_static_assert.
10501 * mi/mi-common.c: Rename static_assert to gdb_static_assert.
10502
10503 2012-01-11 Tom Tromey <tromey@redhat.com>
10504
10505 PR gdb/9598:
10506 * breakpoint.c (_initialize_breakpoint): Fix help for "catch
10507 catch" and "catch throw".
10508
10509 2012-01-11 Paul Hilfinger <hilfingr@adacore.com>
10510
10511 * blockframe.c (block_innermost_frame): Start search from selected
10512 frame, if present, or otherwise the current frame.
10513
10514 * c-exp.y (variable): Update innermost_block for
10515 'block COLONCOLON NAME' clause.
10516 * m2-exp.y (variable): Ditto.
10517 * objc-exp.y (variable): Ditto.
10518
10519 2012-01-10 Tom Tromey <tromey@redhat.com>
10520
10521 PR python/13199:
10522 * python/python.c (finish_python_initialization): Set sys.argv.
10523
10524 2012-01-10 Doug Evans <dje@google.com>
10525
10526 * dwarf2read.c (dwarf_decode_lines): Remove arg "abfd". New arg
10527 "want_line_info". All callers updated.
10528 (dwarf_decode_lines_1): New function.
10529 (handle_DW_AT_stmt_list): Add function comment.
10530 New arg "want_line_info". All callers updated.
10531 (read_file_scope,read_type_unit_scope): Move comment from
10532 handle_DW_AT_stmt_list to here.
10533
10534 2012-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
10535
10536 Fix regression after libiberty/ update for GCC PR 6057 and others.
10537 * c-exp.y (operator) <OPERATOR DELETE>
10538 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
10539 * cp-name-parser.y (fill_comp, make_operator, make_dtor)
10540 (make_builtin_type, make_name): New variable i, add gdb_assert.
10541 (operator) <OPERATOR NEW>: Update ARGS to 3.
10542 (operator) <OPERATOR DELETE>: Add trailing space.
10543 (operator) <OPERATOR NEW '[' ']'>: Update ARGS to 3.
10544 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
10545 * cp-support.c (cp_canonicalize_string): Check NULL from
10546 cp_comp_to_string, call warning and return.
10547
10548 2012-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
10549
10550 Fix duplicate .o files after omitting libbfd.a.
10551 * Makefile.in (ALL_TARGET_OBS): Remove corelow.o.
10552 (SFILES): Add corelow.c.
10553 (COMMON_OBS): Add corelow.o.
10554 (ALLDEPFILES): Remove corelow.c.
10555 * config/alpha/alpha-linux.mh (NATDEPFILES): Remove corelow.o.
10556 * config/alpha/alpha-osf3.mh: Likewise.
10557 * config/alpha/fbsd.mh: Likewise.
10558 * config/arm/nbsdaout.mh: Likewise.
10559 * config/arm/nbsdelf.mh: Likewise.
10560 * config/i386/i386gnu.mh: Likewise.
10561 * config/ia64/hpux.mh: Likewise.
10562 * config/ia64/linux.mh: Likewise.
10563 * config/m32r/linux.mh: Likewise.
10564 * config/m68k/linux.mh: Likewise.
10565 * config/mips/irix5.mh: Likewise.
10566 * config/mips/irix6.mh: Likewise.
10567 * config/pa/hpux.mh: Likewise.
10568 * config/pa/linux.mh: Likewise.
10569 * config/powerpc/aix.mh: Likewise.
10570 * config/sparc/linux.mh: Likewise.
10571 * config/sparc/linux64.mh: Likewise.
10572 * config/sparc/sol2.mh: Likewise.
10573 * config/vax/vax.mh: Likewise.
10574 * configure.tgt (alpha*-*-freebsd* alpha*-*-kfreebsd*-gnu)
10575 (alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu, alpha*-*-openbsd*)
10576 (am33_2.0*-*-linux*, arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-linux*)
10577 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-netbsd*)
10578 (hppa*-*-openbsd*, i[34567]86-*-dicos*, i[34567]86-*-freebsd*)
10579 (i[34567]86-*-kfreebsd*-gnu, i[34567]86-*-netbsd*)
10580 (i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*, i[34567]86-*-nto*)
10581 (i[34567]86-*-solaris2.1[0-9]*, x86_64-*-solaris2.1[0-9]*)
10582 (i[34567]86-*-solaris*, i[34567]86-*-linux*, i[34567]86-*-cygwin*)
10583 (i[34567]86-*-mingw32*, m68*-*-netbsd*, m68*-*-knetbsd*-gnu)
10584 (m68*-*-openbsd*, m88*-*-openbsd*, microblaze*-linux-*)
10585 (microblaze*-*-linux*, mips*-*-linux*, mips*-*-netbsd*)
10586 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
10587 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-linux*)
10588 (powerpc64-*-linux*, s390*-*-*, score-*-*, sh*-*-linux*)
10589 (sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
10590 (sparc*-*-freebsd*, sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*)
10591 (sparc-*-knetbsd*-gnu, sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu)
10592 (sparc-*-openbsd*, sparc64-*-openbsd*, tic6x-*-*linux, vax-*-netbsd*)
10593 (vax-*-knetbsd*-gnu, vax-*-openbsd*, x86_64-*-dicos*, x86_64-*-linux*)
10594 (x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu, x86_64-*-netbsd*)
10595 (x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*, xtensa*-*-linux*): Remove
10596 corelow.o from gdb_target_obs.
10597 * corefile.c (core_target): Update the comment on NULL value.
10598 (core_file_command): Replace error by gdb_assert on CORE_TARGET.
10599 * corelow.c (sniff_core_bfd): Call error instead of warning on zero
10600 MATCHES. Drop YUMMY set on NULL.
10601 (core_close): Do not call exit_inferior_silent on zero PID. Do not
10602 reclaim CORE_DATA if it is already NULL.
10603
10604 2012-01-09 Doug Evans <dje@google.com>
10605
10606 * gdbtypes.c (safe_parse_type): Initialize type to keep gcc happy.
10607 * varobj.c (varobj_set_value): Initialize val,value to keep gcc happy.
10608
10609 2012-01-09 Keith Seitz <keiths@redhat.com>
10610
10611 * breakpoint.c (wrapper.h): Don't include.
10612
10613 2012-01-09 Keith Seitz <keiths@redhat.com>
10614
10615 * Makefile.in (SFILES): Remove wrapper.c.
10616 (HFILES_NO_SRCDIR): Remove wrapper.h.
10617 (COMMON_OBS): Remove wrapper.o.
10618 * cli/cli-interp.c: Don't inlude wrapper.h.
10619 * corelow.c: Likewise.
10620 (core_open): Replace gdb_target_find_new_threads with
10621 TRY_CATCH around target_find_new_threads.
10622 * eval.c (fetch_subexp_value): Likewise for value_fetch_lazy.
10623 * gdbtypes.c (safe_parse_type): Likewise for parse_and_eval_type.
10624 * varobj.c (varobj_create): Likewise for parse_exp_1 and
10625 evaluate_expression.
10626 (varobj_set_value): Likewise for evaluate_expression and
10627 value_assign.
10628 (install_new_variable): Likewise for value_fetch_lazy.
10629 (adjust_value_for_child_access): Likewise for value_ind.
10630 (c_describe_child): Likewise for value_subscript and
10631 value_ind.
10632 (c_value_of_root): Likewise for evaluate_expression.
10633 * wrapper.c: Remove.
10634 * wrapper.h: Remove.
10635
10636 2012-01-09 Doug Evans <dje@google.com>
10637
10638 * dwarf2read.c (read_and_check_comp_unit_head): Renamed from
10639 partial_read_comp_unit_head. Replace "buffer", "buffer_size" and
10640 "abfd" args with "section". All callers updated.
10641 Error checking code moved ...
10642 (error_check_comp_unit_head): ... here. New function.
10643 (read_and_check_type_unit_head): Renamed from read_type_unit_head.
10644 Delete arg "abfd". New arg "type_offset". All callers updated.
10645 (create_debug_types_hash_table): Simplify by using
10646 read_and_check_type_unit_head.
10647
10648 * parser-defs.h (namecopy): Delete.
10649 * parse.c (namecopy, namecopy_size): Move into copy_name.
10650
10651 2012-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
10652
10653 Partially fix duplicate .o files after omitting libbfd.a.
10654 * config/alpha/alpha-osf3.mh (NATDEPFILES): Remove solib.o.
10655 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
10656 * config/i386/obsdaout.mh (NATDEPFILES): Remove solib.o.
10657 * config/m68k/nbsdaout.mh (NATDEPFILES): Remove solib.o.
10658 * config/m68k/obsd.mh (NATDEPFILES): Remove solib.o.
10659 * config/powerpc/aix.mh (NATDEPFILES): Remove xcoffread.o.
10660 * config/vax/nbsdaout.mh (NATDEPFILES): Remove solib.o.
10661
10662 2012-01-09 Pedro Alves <palves@redhat.com>
10663
10664 * MAINTAINERS: Update my email address.
10665
10666 2012-01-08 Doug Evans <dje@google.com>
10667
10668 * dwarf2read.c (dwarf2_per_objfile): Rename n_type_comp_units to
10669 n_type_units. Rename type_comp_units to all_type_units.
10670 All uses updated.
10671 (add_signatured_type_cu_to_table): Renamed from
10672 add_signatured_type_cu_to_list. All callers updated.
10673
10674 * gdbtypes.h (struct cplus_struct_type): Delete member
10675 nfn_fields_total. All uses removed.
10676
10677 2012-01-06 Doug Evans <dje@google.com>
10678
10679 * dwarf2read.c: Move FIXME from dwarf2_build_psymtabs_hard
10680 to top of file.
10681 (dwarf2_find_comp_unit): Delete.
10682 (process_psymtab_comp_unit): Make result "void".
10683 Delete args buffer, info_ptr, buffer_size, and replace with
10684 "section". All callers updated.
10685 (dwarf2_build_psymtabs_hard): Simplify.
10686
10687 2012-01-06 Sergio Durigan Junior <sergiodj@redhat.com>
10688 Thiago Jung Bauermann <bauerman@br.ibm.com>
10689
10690 * ada-lang.c (ada_exception_name_addr): Add `volatile' keyword
10691 before `struct gdb_exception'.
10692 * breakpoint.c (update_global_location_list_nothrow)
10693 (update_breakpoint_locations, enable_breakpoint_disp): Likewise.
10694 * cp-abi.c (value_rtti_type): Likewise.
10695 * cp-support.c (cp_validate_operator): Likewise.
10696 * infrun.c (insert_exception_resume_breakpoint)
10697 (check_exception_resume, keep_going): Likewise.
10698 * mi-interp.c (mi_breakpoint_created)
10699 (mi_breakpoint_modified): Likewise.
10700 * rs6000-aix-tdep.c (rs6000_convert_from_func_ptr_addr): Likewise.
10701 * solib-ia64-hpux.c (ia64_hpux_at_dld_breakpoint_p)
10702 (ia64_hpux_handle_dld_breakpoint_1): Likewise.
10703
10704 2012-01-05 Doug Evans <dje@google.com>
10705
10706 * dwarf2read.c (statement_prologue): Delete, unused.
10707
10708 * dwarf2read.c (dwarf2_per_cu_addr_size): Make result type an int.
10709 * dwarf2loc.h (dwarf2_per_cu_addr_size): Update.
10710
10711 * dwarf2read.c (comp_unit_header): Delete, unused.
10712
10713 2012-01-05 Ulrich Weigand <uweigand@de.ibm.com>
10714
10715 * configure.tgt [s390*-*-*] (gdb_target_obs): Add corelow.o.
10716 * config/s390/s390.mh (NATDEPFILES): Remove corelow.o.
10717
10718 2012-01-05 Khoo Yit Phang <khooyp@cs.umd.edu>
10719
10720 * infrun.c (normal_stop): Don't skip calling the normal_stop
10721 observers if the thread was doing a multi-step, but stopped for
10722 some reason other than stepping.
10723
10724 2012-01-05 Pedro Alves <alves.ped@gmail.com>
10725
10726 * cli/cli-decode.h: Add comments.
10727 (CMD_LIST_AMBIGUOUS): Moved to command.h
10728 (add_cmd, add_alias_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
10729 (set_cmd_cfunc, set_cmd_sfunc, set_cmd_completer, cmd_cfunc_eq)
10730 (set_cmd_context, get_cmd_context, lookup_cmd, lookup_cmd_1)
10731 (deprecate_cmd, deprecated_cmd_warning, lookup_cmd_composition)
10732 (add_com, add_com_alias, add_info, add_info_alias)
10733 (complete_on_cmdlist, complete_on_enum, help_list): Remove
10734 declarations.
10735 * command.h: Add and adjust comments.
10736 (CMD_LIST_AMBIGUOUS): Moved here.
10737 (help_cmd, help_cmd_list): Delete declarations.
10738
10739 2012-01-04 Doug Evans <dje@google.com>
10740
10741 * dwarf2read.c (dwarf2_read_abbrevs): Delete arg "abfd".
10742 All callers updated.
10743 (load_full_type_unit): Renamed from read_signatured_type_at_offset.
10744 Replace all arguments with "per_cu". All callers updated.
10745
10746 * dwarf2read.c (dwarf2_per_cu_data): Remove outdated comment.
10747
10748 * dwarf2read.c (init_one_comp_unit): Delete arg "objfile".
10749 New arg "per_cu". All callers updated.
10750
10751 Delete #if 0'd out code.
10752 * language.c (binop_result_type): Delete.
10753 (simple_type, ordered_type, same_type, integral_type): Delete.
10754 (numeric_type, character_type, string_type, boolean_type): Delete.
10755 (float_type, structured_type): Delete.
10756 * language.h: Update.
10757
10758 2012-01-04 Tom Tromey <tromey@redhat.com>
10759
10760 * python/py-value.c (valpy_binop): Initialize 'res_val'.
10761
10762 2012-01-04 Joel Brobecker <brobecker@adacore.com>
10763
10764 * corefile.c (close_exec_file): Delete.
10765 (reopen_exec_file): Remove commented out code that seems related
10766 to close_exec_file, which is being deleted here.
10767 * inferior.h (close_exec_file): Delete.
10768 * fork-child.c (fork_inferior): Remove call to fork_inferior.
10769
10770 2012-01-04 Joel Brobecker <brobecker@adacore.com>
10771
10772 * ada-lang.c: #include "cli/cli-utils.h".
10773 (get_selections): Use skip_spaces.
10774 (ada_get_next_arg): Use skip_spaces and skip_to_space.
10775 (catch_ada_exception_command_split): Use skip_spaces.
10776 (ada_decode_assert_location): Likewise.
10777
10778 2012-01-04 Joel Brobecker <brobecker@adacore.com>
10779
10780 * linespec.c (decode_line_internal): Check for C++ or Java
10781 compound constructs only if the current language is C, C++
10782 or Java.
10783
10784 2012-01-04 Jan Kratochvil <jan.kratochvil@redhat.com>
10785
10786 Revert:
10787 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10788 Joel Brobecker <brobecker@adacore.com>
10789 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
10790 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
10791 3 times.
10792 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
10793 fall through into AT_ENTRY_POINT.
10794 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
10795 DUMMY_ADDR with it.
10796 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
10797 PPC_INSN_SIZE skip to 3 times.
10798
10799 2012-01-04 Joel Brobecker <brobecker@adacore.com>
10800
10801 * linespec.c (add_minsym): Preserve function descriptors.
10802
10803 2012-01-04 Ulrich Weigand <uweigand@de.ibm.com>
10804
10805 * breakpoint.c (all_locations_are_pending): Consider locations
10806 in program spaces executing during startup pending as well.
10807
10808 2012-01-04 Joel Brobecker <brobecker@adacore.com>
10809
10810 Copyright year update in most files of the GDB Project.
10811
10812 2012-01-04 Joel Brobecker <brobecker@adacore.com>
10813
10814 * copyright.sh: Delete.
10815 * copyright.py: Rewrite.
10816
10817 2012-01-04 Joel Brobecker <brobecker@adacore.com>
10818
10819 * gnulib/extra/update-copyright: New file, imported from gnulib.
10820
10821 2012-01-04 Joel Brobecker <brobecker@adacore.com>
10822
10823 * README (Copyright and License Notices): New section.
10824
10825 2012-01-03 Tom Tromey <tromey@redhat.com>
10826
10827 PR python/12533:
10828 * python/py-value.c (valpy_dereference, valpy_get_address
10829 valpy_get_dynamic_type, valpy_lazy_string, valpy_do_cast)
10830 (valpy_getitem, valpy_call, valpy_binop, valpy_negative)
10831 (valpy_absolute, valpy_richcompare): Free intermediate values.
10832
10833 2011-01-03 Joel Brobecker <brobecker@adacore.com>
10834
10835 * ada-lang.c: Reformat the copyright notice.
10836
10837 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10838
10839 * Makefile.in (ALL_TARGET_OBS): Remove solib-target.o.
10840 * configure.tgt (arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-symbianelf*)
10841 (i[34567]86-*-dicos*, i[34567]86-*-cygwin*, i[34567]86-*-mingw32*)
10842 (x86_64-*-dicos*, x86_64-*-mingw*): Remove solib-target.o.
10843 Revert this part of:
10844 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10845 Build gdb directly from *.o files not using libgdb.a.
10846 * Makefile.in (COMMON_OBS): Remove solib-target.o.
10847
10848 2012-01-02 Joel Brobecker <brobecker@adacore.com>
10849
10850 * gdb/common/gdb_thread_db.h, gdb/dbxread.c, gdb/environ.c,
10851 gdb/gcore.h, gdb/rs6000-tdep.h, gdb/s390-nat.c, gdb/tic6x-tdep.c:
10852 Reformat the copyright header.
10853
10854 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10855
10856 Revert this part of:
10857 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10858 Remove the gdbtui binary.
10859 * gdb.c (main): Remove args.interpreter_p initialization.
10860 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
10861 * main.h (struct captured_main_args): Remove interpreter_p.
10862
10863 2012-01-02 Joel Brobecker <brobecker@adacore.com>
10864
10865 * config/djgpp/fnchange.lst: Add entry for ChangeLog-2011.
10866
10867 2012-01-02 Joel Brobecker <brobecker@adacore.com>
10868
10869 * top.c (print_gdb_version): Update copyright year.
10870
10871 2012-01-02 Yao Qi <yao@codesourcery.com>
10872
10873 * inf-ptrace.c (inf_ptrace_xfer_partial): Reindent.
10874
10875 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10876 Joel Brobecker <brobecker@adacore.com>
10877
10878 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
10879 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
10880 3 times.
10881 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
10882 fall through into AT_ENTRY_POINT.
10883 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
10884 DUMMY_ADDR with it.
10885 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
10886 PPC_INSN_SIZE skip to 3 times.
10887
10888 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10889
10890 * amd64-linux-nat.c (update_debug_registers_callback): New comment on
10891 the return value.
10892 * i386-linux-nat.c (update_debug_registers_callback): Likewise.
10893
10894 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10895
10896 Build gdb directly from *.o files not using libgdb.a.
10897 * Makefile.in (SUBDIR_TUI_OBS): Remove duplicate tui.o.
10898 (COMMON_OBS): Remove solib-target.o.
10899 (LIBGDB_OBS, libgdb.a): Move it before the gdb$(EXEEXT) rule.
10900 (gdb$(EXEEXT)): Replace libgdb.a with $(LIBGDB_OBS).
10901 (LIBGDB_OBS, libgdb.a): Move it above.
10902 * configure.tgt (alpha*-*-linux*, alpha*-*-freebsd*)
10903 (alpha*-*-kfreebsd*-gnu, alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu)
10904 (alpha*-*-openbsd*, am33_2.0*-*-linux*, arm*-wince-pe)
10905 (arm*-*-mingw32ce*, arm*-*-linux*, arm*-*-netbsd*, arm*-*-knetbsd*-gnu)
10906 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-linux*)
10907 (hppa*-*-netbsd*, hppa*-*-openbsd*, i[34567]86-*-darwin*)
10908 (i[34567]86-*-dicos*, i[34567]86-*-freebsd*, i[34567]86-*-kfreebsd*-gnu)
10909 (i[34567]86-*-netbsd*, i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*)
10910 (i[34567]86-*-nto*, i[34567]86-*-solaris2.1[0-9]*)
10911 (x86_64-*-solaris2.1[0-9]*, i[34567]86-*-solaris*, i[34567]86-*-linux*)
10912 (i[34567]86-*-gnu*, ia64-*-linux*, m32r*-*-linux*, m68*-*-linux*)
10913 (m68*-*-netbsd*, m68*-*-knetbsd*-gnu, m68*-*-openbsd*)
10914 (microblaze*-linux-*, microblaze*-*-linux*, mips*-sgi-irix5*)
10915 (mips*-sgi-irix6*, mips*-*-linux*, mips*-*-netbsd*)
10916 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
10917 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-aix*, rs6000-*-*)
10918 (powerpc-*-linux*, powerpc64-*-linux*, powerpc*-*-*, s390*-*-*)
10919 (sh*-*-linux*, sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
10920 (sparc-*-linux*, sparc64-*-linux*, sparc*-*-freebsd*)
10921 (sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*, sparc-*-knetbsd*-gnu)
10922 (sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu, sparc-*-openbsd*)
10923 (sparc64-*-openbsd*, sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*)
10924 (sparc-*-solaris2*, sparcv9-*-solaris2*, sparc64-*-solaris2*)
10925 (vax-*-netbsd*, vax-*-knetbsd*-gnu, x86_64-*-darwin*, x86_64-*-dicos*)
10926 (x86_64-*-linux*, x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu)
10927 (x86_64-*-netbsd*, x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*)
10928 (xtensa*-*-linux*, xtensa*): Remove solib.o from gdb_target_obs.
10929
10930 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10931
10932 Remove the gdbtui binary.
10933 * .gitignore (/gdbtui): Remove.
10934 * Makefile.in (TUI): Remove.
10935 (SUBDIR_TUI_OBS): Remove tui-main.o.
10936 (SUBDIR_TUI_SRCS): Remove tui/tui-main.c.
10937 (all-tui, install-tui, uninstall-tui, $(TUI)$(EXEEXT), clean-tui)
10938 (tui-main.o): Remove.
10939 (all_object_files): Remove tui-main.o.
10940 * NEWS: New note for the gdbtui removal.
10941 * configure: Rebuilt.
10942 * configure.ac: No longer add all-tui, clean-tui, install-tui and
10943 uninstall-tui to CONFIG_ALL, CONFIG_CLEAN, CONFIG_INSTALL and
10944 CONFIG_UNINSTALL respectively.
10945 * gdb.c (main): Remove args.interpreter_p initialization.
10946 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
10947 * main.h (struct captured_main_args): Remove interpreter_p.
10948 * tui/tui-main.c: Remove.
10949
10950 2012-01-01 Doug Evans <dje@google.com>
10951
10952 * dwarf2read.c (dwarf2_compute_name): Simplify objfile references.
10953 (dwarf2_physname, read_import_statement): Ditto.
10954 (read_call_site_scope, dwarf2_record_block_ranges): Ditto.
10955 (process_structure_scope read_subroutine_type): Ditto.
10956 (read_typedef, load_partial_dies, read_partial_die): Ditto.
10957 (find_partial_die, dwarf_decode_lines, lookup_die_type): Ditto.
10958 (dwarf2_fetch_die_location_block): Ditto.
10959 (dwarf_decode_macros, dwarf2_symbol_mark_computed): Ditto.
10960
10961 * dwarf2read.c (read_signatured_type): Delete `objfile' arg.
10962 All callers updated.
10963 (load_full_comp_unit, queue_comp_unit, process_queue): Ditto.
10964 (dw2_do_instantiate_symtab, dw2_instantiate_symtab): Ditto.
10965 (process_psymtab_comp_unit, load_partial_comp_unit): Ditto.
10966
10967 * dwarf2read.c (load_cu): Move assert to more useful location.
10968
10969 * dwarf2read.c (free_heap_comp_unit): Renamed from free_one_comp_unit.
10970 All callers updated.
10971
10972 * dwarf2read.c (dwarf2_per_objfile): Add comment.
10973 (dwarf2_elf_names): Minor reformat.
10974 (dwarf2_per_cu_data): Tweak comment.
10975 (dwarf2_read_section): Fix comment.
10976 (create_all_comp_units): Fix comment.
10977 (load_full_comp_unit): Fix comment.
10978 (process_full_comp_unit): Fix comment.
10979 (read_signatured_type): Fix comment.
10980
10981 For older changes see ChangeLog-2011.
10982 \f
10983 Local Variables:
10984 mode: change-log
10985 left-margin: 8
10986 fill-column: 74
10987 version-control: never
10988 coding: utf-8
10989 End:
This page took 0.258163 seconds and 4 git commands to generate.