[Ada] use lbasename when testing if file is part of Ada runtime.
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2012-10-24 Joel Brobecker <brobecker@adacore.com>
2
3 * ada-lang.c (is_known_support_routine): Use lbasename when
4 matching the symtab's filename against
5 known_runtime_file_name_patterns.
6
7 2012-10-24 Joel Brobecker <brobecker@adacore.com>
8
9 * ada-lang.c (ada_same_array_size_p): New function.
10 (ada_promote_array_of_integrals): New function.
11 (coerce_for_assign): Add handling of arrays where the elements
12 are integrals of a smaller size than the size of the target
13 array element type.
14
15 2012-10-24 Joel Brobecker <brobecker@adacore.com>
16
17 * doublest.c (convert_doublest_to_floatformat): Fix comparison
18 against maximum exponent value.
19
20 2012-10-24 Joel Brobecker <brobecker@adacore.com>
21
22 * ada-lang.h (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Add entry for
23 "unwind-seh.c".
24
25 2012-10-24 Joel Brobecker <brobecker@adacore.com>
26
27 * ada-lang.c (ada_template_to_fixed_record_type_1): Do not
28 strip typedef layer when computing the fixed type's field type,
29 only when computing its size.
30
31 2012-10-24 Mark Kettenis <kettenis@gnu.org>
32
33 PR gdb/12783
34 * i386-tdep.c (i386_return_value): Handle complex double and long
35 double.
36
37 2012-10-24 Joel Brobecker <brobecker@adacore.com>
38
39 * windows-nat.c (windows_create_inferior) [!__CYGWIN__]:
40 New local variable args_len.
41 Quote the name of the executable when computing the command line.
42
43 2012-10-23 Mark Kettenis <kettenis@gnu.org>
44
45 PR gdb/12796
46 PR gdb/12798
47 PR gdb/12800
48 * amd64-tdep.h (enum amd64_regnum): Add AMD64_ST1_REGNUM and
49 AMD64_FTAG_REGNUM.
50 * amd64-tdep.c (amd64_classify): Classify complex types.
51 (amd64_return_value): Handle the COMPLEX_X87 class.
52
53 2012-10-23 Joel Brobecker <brobecker@adacore.com>
54
55 * rs6000-aix-tdep.c (rs6000_aix_auto_wide_charset): New function.
56 (rs6000_aix_init_osabi): Set auto_wide_charset gdbarch method.
57
58 2012-10-23 Joel Brobecker <brobecker@adacore.com>
59
60 * amd64-windows-tdep.c (amd64_windows_auto_wide_charset): New
61 function.
62 (amd64_windows_init_abi): Set auto_wide_charset gdbarch method
63 to amd64_windows_auto_wide_charset.
64
65 2012-10-23 Yao Qi <yao@codesourcery.com>
66
67 * event-top.c (mark_async_signal_handler_wrapper): Remove.
68 * event-top.h: Remove its declaration.
69 (async_request_quit): Call mark_async_signal_handler instead of
70 mark_async_signal_handler_wrapper.
71 (async_do_nothing, async_disconnect): Likewise.
72 (async_stop_sig): Likewise.
73 * remote.c (handle_remote_sigint): Likewise.
74 (handle_remote_sigint_twice): Likewise.
75
76 2012-10-23 Yao Qi <yao@codesourcery.com>
77
78 * event-top.c (sigint_token, sighup_token): Replace 'void *'
79 with 'static struct async_signal_handler *'.
80 (sighup_token, sigquit_token, sigstp_token): Likewise.
81
82 2012-10-22 Ali Anwar <ali_anwar@codesourcery.com>
83
84 * gdbarch.sh (function_list): Use 'pstring' when printing
85 a variable which could return NULL.
86 * gdbarch.c: Regenerate.
87
88 2012-10-10 Joel Brobecker <brobecker@adacore.com>
89 Tom Tromey <tromey@redhat.com>
90
91 * rs6000-aix-tdep.c (rs6000_aix_osabi_sniffer): Replace
92 inneffective if condition by gdb assertion. Add function
93 description comment.
94
95 2012-10-19 Joel Brobecker <brobecker@adacore.com>
96
97 * parser-defs.h (struct exp_descriptor): Document constraint
98 on return value for "op_name" callbacks.
99
100 2012-10-18 Tom Tromey <tromey@redhat.com>
101
102 * tracepoint.c (print_one_static_tracepoint_marker): Constify.
103 * symtab.c (iterate_over_some_symtabs): Constify.
104 * source.h (symtab_to_fullname): Return 'const char *'.
105 * source.c (symtab_to_fullname): Return 'const char *'.
106 * python/py-symtab.c (stpy_fullname): Constify.
107 * cli/cli-cmds.c (edit_command): Constify.
108 * breakpoint.c (print_breakpoint_location)
109 (update_static_tracepoint): Constify.
110
111 2012-10-18 Tom Tromey <tromey@redhat.com>
112
113 * breakpoint.c (compare_breakpoints): Fix comparison.
114
115 2012-10-18 Tom Tromey <tromey@redhat.com>
116
117 * valprint.c (generic_emit_char, generic_printstr): Pass size of
118 gdb_wchar_t to convert_between_encodings.
119
120 2012-10-17 Yao Qi <yao@codesourcery.com>
121
122 * breakpoint.c (invalidate_bp_value_on_memory_change): Add one
123 more parameter 'inferior'.
124 * corefile.c (write_memory_with_notification): Caller update.
125
126 * mi/mi-cmd-var.c: Include "mi-main.h".
127 (mi_cmd_var_assign): Set mi_suppress_notification.data_write_memory
128 to 1 and restore it later.
129 * mi/mi-cmds.c (mi_cmd mi_cmds): Update for "data-write-memory"
130 and "data-write-memory-bytes.
131 * mi/mi-interp.c: Include objfiles.h.
132 (mi_interpreter_init): Call observer_attach_memory_changed.
133 (mi_memory_changed): New.
134 * mi/mi-main.h (struct mi_suppress_notification) <memory>:
135 New field.
136
137 * NEWS: Mention new MI notification "memory-changed".
138
139 2012-10-16 Jan Kratochvil <jan.kratochvil@redhat.com>
140
141 * dwarf2loc.c (dwarf_expr_reg_to_entry_parameter): Remove comment.
142
143 2012-10-15 Doug Evans <dje@google.com>
144
145 New option -nh: inhibit loading of ~/.gdbinit.
146 * NEWS: Mention -nh.
147 * main.c (captured_main): Recognize and process -nh.
148 (print_gdb_help): Mention -nh.
149 * gdb.1: Mention -nh. Remove erroneous docs on -nx behavior.
150
151 2012-10-15 H.J. Lu <hongjiu.lu@intel.com>
152
153 PR backtrace/14646
154 PR gdb/14647
155 * i386-tdep.h (gdbarch_tdep): Remove sp_regnum_from_eax and
156 pc_regnum_from_eax.
157 * i386-tdep.c (i386_gdbarch_init): Don't use sp_regnum_from_eax
158 nor pc_regnum_from_eax.
159 * amd64-tdep.c (amd64_x32_init_abi): Don't set sp_regnum_from_eax
160 nor pc_regnum_from_eax.
161
162 2012-10-15 Jan Kratochvil <jan.kratochvil@redhat.com>
163
164 Fix entry values resolving in inlined frames.
165 * dwarf2loc.c (dwarf_expr_reg_to_entry_parameter): Move func_addr,
166 gdbarch and caller_frame initialization later. Skip INLINE_FRAME
167 entries of FRAME.
168
169 2012-10-15 Joel Brobecker <brobecker@adacore.com>
170
171 * configure.ac: Build with -DMS_WIN64 if building with Python
172 enabled using GCC on amd64-windows.
173 * configure: Regenerate.
174
175 2012-10-15 Tom Tromey <tromey@redhat.com>
176
177 PR python/14635:
178 * python/py-symtab.c (del_objfile_sal): Set 'symtab' field
179 to Py_None.
180
181 2012-10-15 Tom Tromey <tromey@redhat.com>
182
183 PR python/14634:
184 * python/py-symbol.c (sympy_dealloc): Check for NULL symbol.
185
186 2012-10-11 Andrew Burgess <aburgess@broadcom.com>
187
188 * remote-sim.c (gdbsim_create_inferior): Call init_thread_list to
189 reset thread numbering back to 1.
190
191 2012-10-11 Doug Evans <dje@google.com>
192
193 PR breakpoints/14643.
194 * linespec.c (struct ls_parser): New member keyword_ok.
195 (linespec_lexer_lex_string): Add comment.
196 (linespec_lexer_lex_one): Ignore keywords if it's the wrong place
197 for one.
198 (parse_linespec): Set keyword_ok.
199
200 2012-10-10 Doug Evans <dje@google.com>
201
202 * dwarf2read.c (process_psymtab_comp_unit_reader): Remove duplicate
203 "0x" prefix on address in log message.
204
205 * dwarf2read.c (read_1_byte): Add const to buf parameter.
206 (read_1_signed_byte, read_2_bytes, read_2_signed_bytes): Ditto.
207 (read_4_bytes, read_4_signed_bytes, read_8_bytes): Ditto.
208 (lookup_dwo_file): Add const to dwo_name parameter.
209 (lookup_dwo_comp_unit, lookup_dwo_type_unit): Ditto.
210
211 2012-10-06 Jan Kratochvil <jan.kratochvil@redhat.com>
212
213 Fix crash during stepping on ppc32.
214 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code): Test NULL
215 SYM.
216
217 2012-10-03 Doug Evans <dje@google.com>
218
219 PR symtab/14601
220 * buildsym.c (buildsym_init): Reset using_directives to NULL.
221
222 2012-10-02 Andrew Burgess <aburgess@broadcom.com>
223
224 * remote-sim.c (dump_mem): Always dump buffer contents, zero fill
225 output and use uint32_t not long to ensure 4 byte size.
226
227 2012-10-02 Joel Brobecker <brobecker@adacore.com>
228
229 * rs6000-nat.c (add_vmap): Set "last" to "next" after having
230 unref'ed it.
231
232 2012-10-01 Andrew Burgess <aburgess@broadcom.com>
233
234 * target.c (simple_search_memory): Include access length in
235 warning message.
236
237 2012-09-28 Nathan Miller <nathanm2@us.ibm.com>
238 Edjunior Machado <emachado@linux.vnet.ibm.com>
239
240 PR gdb/13989
241 * solib.c (solib_find): Prevent GDB from loading native libraries when
242 debugging a cross-target corefile.
243
244 2012-09-28 selven <pcthegreat@gmail.com>
245
246 Make definition match declaration.
247
248 * regcache.c (regcache_register_status): Change return type to
249 enum register_status.
250
251 2012-09-28 Yao Qi <yao@codesourcery.com>
252
253 * mi/mi-main.c (mi_cmd_data_write_memory): Call
254 write_memory_with_notification instead of write_memory.
255 (mi_cmd_data_write_memory_bytes): Call write_memory_with_notification
256 instead of target_write_memory.
257
258 2012-09-28 Yao Qi <yao@codesourcery.com>
259
260 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Emit error
261 when the length of content is not an even number.
262
263 2012-09-27 Tom Tromey <tromey@redhat.com>
264
265 Fix https://bugzilla.redhat.com/show_bug.cgi?id=849357
266 * cp-valprint.c (cp_print_value_fields): Use get_vptr_fieldno.
267
268 2012-09-27 Joel Brobecker <brobecker@adacore.com>
269
270 * sol-thread.c (sol_thread_fetch_registers)
271 (sol_thread_store_registers): Delete commented out code.
272
273 2012-09-27 Joel Brobecker <brobecker@adacore.com>
274
275 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
276 Move these functions to sparc-sol-thread.c.
277 * sparc-sol-thread.c: New file.
278 * configure.ac: Add sparc-sol-thread.o to CONFIG_OBS and
279 sparc-sol-thread.c to CONFIG_SRCS for sparc-solaris native
280 configurations.
281 * configure: Regenerate.
282
283 2012-09-27 Joel Brobecker <brobecker@adacore.com>
284
285 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
286 Remove commented-out code.
287
288 2012-09-27 Joel Brobecker <brobecker@adacore.com>
289
290 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
291 Enable this code for sparc hosts only.
292
293 2012-09-27 Joel Brobecker <brobecker@adacore.com>
294
295 * procfs.h (procfs_find_LDT_entry): Add declaration.
296 * sol-thread.c (ps_lgetLDT): Delete local declaration of
297 function procfs_find_LDT_entry.
298
299 2012-09-27 Joel Brobecker <brobecker@adacore.com>
300
301 * procfs.c (proc_get_LDT_entry): Make static.
302
303 2012-09-27 Joel Brobecker <brobecker@adacore.com>
304
305 * procfs.c (proc_find_memory_regions): Fix declaration.
306
307 2012-09-27 Siddhesh Poyarekar <siddhesh@redhat.com>
308
309 * amd64-tdep.c (amd64_return_value): Revert previous change
310 that used TYPE_LENGTH directly.
311 * bfin-tdep.c (bfin_extract_return_value): Likewise.
312 (bfin_store_return_value): Likewise.
313 * cris-tdep.c (cris_store_return_value): Likewise.
314 (cris_extract_return_value): Likewise.
315 * h8300-tdep.c (h8300_extract_return_value): Likewise.
316 * hppa-tdep.c (hppa64_return_value): Likewise.
317 * lm32-tdep.c (lm32_store_return_value): Likewise.
318 * microblaze-tdep.c (microblaze_store_return_value): Likewise.
319 * spu-tdep.c (spu_value_from_register): Likewise.
320 * vax-tdep.c (vax_return_value): Likewise.
321
322 2012-09-27 Siddhesh Poyarekar <siddhesh@redhat.com>
323
324 * gdbtypes.c (lookup_array_range_type): Expand parameters
325 LOW_BOUND and HIGH_BOUND to LONGEST.
326 (lookup_string_range_type): Likewise.
327 * gdbtypes.h (lookup_array_range_type): Likewise.
328 (lookup_string_range_type): Likewise.
329 * valops.c (value_cstring): Expand parameter LEN to ssize_t.
330 Expand HIGHBOUND to ssize_t.
331 (value_string): Likewise.
332 * value.h (value_cstring): Expand parameter LEN to ssize_t.
333 (value_string): Likewise.
334
335 2012-09-27 Yao Qi <yao@codesourcery.com>
336
337 PR breakpoints/13898
338 * breakpoint.h (tracepoint_breakpoint_ops): Forward declaration.
339 * mi/mi-cmd-break.c (mi_cmd_break_insert): Set breakpoint_ops
340 per breakpoint type.
341
342 2012-09-26 Pierre Muller <muller@ics.u-strasbg.fr>
343
344 * procfs.c: Add gdb_bfd header.
345 * rs6000-nat.c: Likewise.
346 * solib-pa64.c: Likewise.
347 * spu-linux-nat.c: Likewise.
348 * windows-nat.c: Likewise.
349
350 2012-09-26 Tom Tromey <tromey@redhat.com>
351
352 * f-lang.h (BLANK_COMMON_NAME_LOCAL): Remove.
353
354 2012-09-26 Tom Tromey <tromey@redhat.com>
355
356 * dwarf2read.c (mark_common_block_symbol_computed): New function.
357 (read_common_block): Handle child DIEs with
358 DW_AT_data_member_location.
359 (new_symbol_full): Add special case for common blocks.
360
361 2012-09-26 Jan Kratochvil <jan.kratochvil@redhat.com>
362 Tom Tromey <tromey@redhat.com>
363
364 * dwarf2read.c (read_common_block): Rewrite.
365 (new_symbol_full): Handle DW_TAG_common_block.
366 * f-lang.c (head_common_list, find_common_for_function):
367 Remove.
368 * f-lang.h (struct common_entry, struct saved_f77_common,
369 SAVED_F77_COMMON, SAVED_F77_COMMON_PTR, COMMON_ENTRY,
370 COMMON_ENTRY_PTR, head_common_list, find_common_for_function,
371 BLANK_COMMON_NAME_LOCAL): Remove.
372 (struct common_block): New.
373 * f-valprint.c (list_all_visible_commons): Remove.
374 (info_common_command_for_block): New function.
375 (info_common_command): Use it.
376 * stack.c (iterate_over_block_locals): Special case for
377 COMMON_BLOCK_DOMAIN.
378 * symtab.h (enum domain_enum_tag) <COMMON_BLOCK_DOMAIN>: New
379 constant.
380 (struct general_symbol_info) <value.common_block>: New field.
381 (SYMBOL_VALUE_COMMON_BLOCK): New define.
382
383 2012-09-26 Jan Kratochvil <jan.kratochvil@redhat.com>
384 Tom Tromey <tromey@redhat.com>
385
386 * f-lang.c (allocate_saved_bf_node,
387 allocate_saved_function_node, allocate_saved_f77_common_node,
388 allocate_common_entry_node, tail_common_list, current_common,
389 saved_bf_list, saved_bf_list_end, current_head_bf_list,
390 tmp_bf_ptr, add_common_block, add_common_entry,
391 find_first_common_named, patch_common_entries,
392 patch_all_commons_by_name, ADD_BF_SYMNUM, clear_bf_list,
393 global_remote_debug, get_bf_for_fcn, saved_function_list,
394 saved_function_list_end, clear_function_list, struct saved_fcn,
395 struct saved_bf_symnum, SAVED_FUNCTION, SAVED_FUNCTION_PTR,
396 SAVED_BF, SAVED_BF_PTR): Remove.
397 * f-lang.h (tail_common_list, current_common,
398 UNINITIALIZED_SECNUM, COMMON_NEEDS_PATCHING,
399 BLANK_COMMON_NAME_ORIGINAL, BLANK_COMMON_NAME_MF77,
400 DEFAULT_UPPER_BOUND, DEFAULT_LOWER_BOUND, real_main_name,
401 real_main_c_value): Remove.
402 * f-valprint.c (there_is_a_visible_common_named): Remove.
403
404 2012-09-26 Andrew Burgess <aburgess@broadcom.com>
405
406 * breakpoint.c (update_global_location_list): Ignore previous
407 duplicate status of a breakpoint when starting a new scan for
408 duplicate breakpoints.
409
410 2012-09-26 Karthik Bhat <kv.bhat@samsung.com>
411 PR breakpoints/14419
412 * arm-tdep.c (arm_skip_prologue): Extending producer check to
413 support LLVM compiler.
414
415 2012-09-26 Siddhesh Poyarekar <siddhesh@redhat.com>
416
417 * amd64-tdep.c (amd64_return_value): Use TYPE_LENGTH directly.
418 * bfin-tdep.c (bfin_extract_return_value): Likewise.
419 (bfin_store_return_value): Likewise.
420 * cris-tdep.c (cris_store_return_value): Likewise.
421 (cris_extract_return_value): Likewise.
422 * h8300-tdep.c (h8300_extract_return_value): Likewise.
423 * hppa-tdep.c (hppa64_return_value): Likewise.
424 * lm32-tdep.c (lm32_store_return_value): Likewise.
425 * microblaze-tdep.c (microblaze_store_return_value): Likewise.
426 * spu-tdep.c (spu_value_from_register): Likewise.
427 * vax-tdep.c (vax_return_value): Likewise.
428
429 2012-09-26 Siddhesh Poyarekar <siddhesh@redhat.com>
430
431 * breakpoint.c (invalidate_bp_value_on_memory_change): Expand
432 parameter LEN to ssize_t.
433
434 2012-09-25 Siddhesh Poyarekar <siddhesh@redhat.com>
435
436 * ada-valprint.c (ada_val_print_1): Eliminate single-use
437 variable LEN.
438 * alpha-tdep.c (alpha_extract_return_value): Use TYPE_LENGTH
439 directly.
440 (alpha_store_return_value): Likewise.
441 * amd64-tdep.c (amd64_classify_aggregate): Likewise.
442 (amd64_push_arguments): Likewise.
443 * ax-gdb.c (gen_trace_static_fields): Likewise.
444 (gen_traced_pop): Likewise.
445 * bfin-tdep.c (bfin_push_dummy_call): Likewise.
446 * breakpoint.c (update_watchpoint): Likewise.
447 * findcmd.c (parse_find_args): Use local variable for type
448 instead of length.
449 * findvar.c (default_read_var_value): Use TYPE_LENGTH directly.
450 * h8300-tdep.c (h8300h_extract_return_value): Likewise.
451 (h8300_store_return_value): Likewise.
452 * i386-darwin-tdep.c (i386_darwin_push_dummy_call): Likewise.
453 Use i386_darwin_arg_type_alignment directly.
454 * infcall.c (call_function_by_hand): Use TYPE_LENGTH directly.
455 * lm32-tdep.c (lm32_push_dummy_call): Likewise.
456 * m68hc11-tdep.c (m68hc11_push_dummy_call): Likewise.
457 (m68hc11_extract_return_value): Likewise.
458 * mep-tdep.c (mep_push_dummy_call): Likewise.
459 * printcmd.c (float_type_from_length): Likewise.
460 * s390-tdep.c (s390_value_from_register): Likewise.
461 * stack.c (read_frame_arg): Likewise.
462 * tracepoint.c (encode_actions_1): Likewise.
463 * valops.c (value_fetch_lazy): Use local variable for type
464 instead of length. Use TYPE_LENGTH directly.
465 * value.c (value_contents_equal): Use TYPE_LENGTH directly.
466
467 2012-09-25 Joel Brobecker <brobecker@adacore.com>
468
469 * symtab.c (skip_prologue_sal): Fix typo in comment.
470
471 2012-09-25 Joel Brobecker <brobecker@adacore.com>
472
473 * linespec.c (create_sals_line_offset): Fix typo in comment.
474
475 2012-09-25 Siddhesh Poyarekar <siddhesh@redhat.com>
476
477 * c-typeprint.c (c_type_print_varspec_suffix): Remove cast and
478 use plongest to print the array size.
479
480 2012-09-24 Siddhesh Poyarekar <siddhesh@redhat.com>
481
482 * m2-typeprint.c (m2_enum): Expand LASTVAL to LONGEST.
483 * p-valprint.c (pascal_type_print_base): Likewise.
484
485 2012-09-22 Yao Qi <yao@codesourcery.com>
486
487 * remote.c (remote_get_trace_status): Remove setting default
488 values of fields of 'ts'.
489
490 2012-09-21 Jan Kratochvil <jan.kratochvil@redhat.com>
491
492 Fix internal error on canonicalization of clang types.
493 * cp-name-parser.y (operator): New comment at make_operator call for
494 new, delete, new[] and delete[].
495 (exp): Use "sizeof ". Add new comment at make_operator call.
496
497 2012-09-21 Jan Kratochvil <jan.kratochvil@redhat.com>
498
499 Fix disassemble without parameters in tailcall frame.
500 * cli/cli-cmds.c (disassemble_current_function): Use
501 get_frame_address_in_block.
502
503 2012-09-21 Tom Tromey <tromey@redhat.com>
504
505 * c-typeprint.c (c_type_print_base) <TYPE_CODE_STRUCT,
506 TYPE_CODE_UNION>: Unify, removing a goto.
507
508 2012-09-21 Tom Tromey <tromey@redhat.com>
509
510 * c-typeprint.c (cp_type_print_derivation_info): Fix comment.
511
512 2012-09-21 Andrew Burgess <aburgess@broadcom.com>
513
514 * findvar.c (read_frame_register_value): Mark the result value as
515 optimized out if any of the input registers have been optimized out.
516
517 2012-09-21 Andreas Schwab <schwab@linux-m68k.org>
518
519 * python/python.c (finalize_python): Only define if HAVE_PYTHON.
520
521 2012-09-21 Siddhesh Poyarekar <siddhesh@redhat.com>
522
523 * eval.c (evaluate_subexp_standard): Eliminate single-use
524 variable LOWER.
525
526 2012-09-21 Yao Qi <yao@codesourcery.com>
527
528 * mi/mi-interp.c: Declare mi_record_changed.
529 (mi_interpreter_init): Call observer_attach_record_changed.
530 (mi_record_changed): New.
531 * record.c (record_open): Call observer_notify_record_changed.
532 (cmd_record_stop): Call observer_notify_record_changed.
533 * NEWS: Mention it.
534
535 2012-09-20 Tom Tromey <tromey@redhat.com>
536
537 * NEWS: Update.
538 * python/python.c (finalize_python): New function.
539 (_initialize_python): Make a final cleanup.
540
541 2012-09-19 Doug Evans <dje@google.com>
542
543 * buildsym.h (param_symbols): Delete, unused.
544 (context_stack): Delete member "params", unused.
545 * buildsym.c (push_context): Update.
546 * dwarf2read.c (read_func_scope): Update.
547
548 2012-09-19 Thomas Schwinge <thomas@codesourcery.com>
549
550 * sh-tdep.c (sh_register_convert_to_virtual)
551 (sh_register_convert_to_raw): Add a gdbarch parameter. Update
552 all callers. Just do a memcpy if not the little-endian case.
553
554 * h8300-tdep.c (h8300_gdbarch_init): Invoke
555 set_gdbarch_double_format and set_gdbarch_long_double_format.
556 * m68hc11-tdep.c (m68hc11_gdbarch_init): Invoke
557 set_gdbarch_double_format.
558 * sh-tdep.c (sh_gdbarch_init): Likewise.
559
560 * NEWS: Document the removal of SH's 'regs' command.
561 * sh-tdep.c (_initialize_sh_tdep): Remove the deprecated 'regs'
562 command.
563
564 2012-09-18 Sergio Durigan Junior <sergiodj@redhat.com>
565
566 * infcmd.c (_initialize_infcmd): Register `j' as an alias for
567 `jump'.
568
569 2012-09-18 Joel Brobecker <brobecker@adacore.com>
570
571 * linespec.c (iterate_over_all_matching_symtabs): Use the correct
572 language when iterating over symbols.
573
574 2012-09-18 Yao Qi <yao@codesourcery.com>
575
576 * mi/mi-interp.c: Declare mi_tsv_created and mi_tsv_deleted.
577 (mi_interpreter_init): Call observer_attach_tsv_created and
578 observer_attach_tsv_deleted.
579 (mi_tsv_created, mi_tsv_deleted): New.
580 * tracepoint.c (delete_trace_state_variable): Call
581 observer_notify_tsv_deleted.
582 (trace_variable_command): Call observer_notify_tsv_created.
583 (delete_trace_variable_command): Call
584 observer_notify_tsv_deleted.
585 (create_tsv_from_upload): Call observer_notify_tsv_created.
586 * NEWS: Mention it.
587
588 2012-09-18 Yao Qi <yao@codesourcery.com>
589
590 * tracepoint.c (tfind_1): Call observer_notify_traceframe_changed
591 if traceframe changed.
592 * mi/mi-cmds.c (mi_cmd mi_cmds): Adjust for command
593 "trace-find".
594 * mi/mi-interp.c: Declare 'mi_traceframe_changed'.
595 (mi_interpreter_init): Hook mi_traceframe_changed to observer
596 'traceframe_changed'.
597 (mi_traceframe_changed): New.
598 * mi/mi-main.h (struct mi_suppress_notification) <traceframe>:
599 New field.
600 * NEWS: Mention the new MI notification.
601
602 2012-09-17 Mike Wrighton <wrighton@codesourcery.com>
603
604 * MAINTAINERS (Write After Approval): Add "Mike Wrighton".
605
606 2012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
607
608 * common/linux-ptrace.c: Change __i386__ to __i386__ || __x86_64__.
609 (linux_ptrace_test_ret_to_nx): Extend comment for x86_64. Change
610 __i386__ to __i386__ || __x86_64__. Extend code also for __x86_64__.
611 Extend code also for PaX support. Convert all gdb_assert to warning
612 calls.
613
614 2012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
615
616 Implement auto-load user conveniences suggested by Doug Evans.
617 * auto-load.c: Include top.h.
618 (file_is_auto_load_safe): New variable advice_printed. Print advice.
619 (_initialize_auto_load): New variable scripts_directory_help. Mention
620 GDBPY_AUTO_FILE_NAME and GDB_AUTO_FILE_NAME for set auto-load
621 scripts-directory. Document in online help one can use also files for
622 set auto-load safe-path.
623 * python/py-auto-load.c: (GDBPY_AUTO_FILE_NAME): Move it from here ...
624 * python/python.h (GDBPY_AUTO_FILE_NAME): ... to here.
625
626 2012-09-17 Siddhesh Poyarekar <siddhesh@redhat.com>
627
628 * tic6x-tdep.c (tic6x_push_dummy_call): Remove unused definition
629 of LEN.
630
631 2012-09-17 Siddhesh Poyarekar <siddhesh@redhat.com>
632
633 * m2-valprint.c (m2_print_array_contents): Eliminate variable
634 ELTLEN and use TYPE_LENGTH directly.
635 (m2_val_print): Likewise.
636 * m68k-tdep.c (m68k_svr4_extract_return_value): Eliminate
637 variable LEN and use TYPE_LENGTH directly.
638 (m68k_svr4_store_return_value): Likewise.
639 * mips-tdep.c (mips_o32_push_dummy_call): Eliminate variable
640 ARGLEN and use TYPE_LENGTH directly.
641 (mips_o64_push_dummy_call): Likewise.
642 * s390-tdep (s390_function_arg_pass_by_reference): Eliminate
643 variable LENGTH and use TYPE_LENGTH directly.
644 (s390_function_arg_float): Likewise.
645 (s390_function_arg_integer): Likewise.
646 (s390_push_dummy_call): Likewise.
647 (s390_return_value_convention): Likewise.
648 * spu-tdep.c (spu_push_dummy_call): Eliminate LEN and use
649 TYPE_LENGTH directly.
650
651 2012-09-17 Yao Qi <yao@codesourcery.com>
652
653 * cli/cli-decode.c (add_setshow_zuinteger_unlimited_cmd): New.
654 Update comment to add_setshow_integer_cmd.
655 * cli/cli-setshow.c (do_set_command): Handle case
656 'var_zuinteger_unlimited'.
657 (do_show_command): Likewise.
658 * cli/cli-cmds.c (init_cmds): Call add_setshow_zuinteger_unlimited_cmd
659 for command 'remotetimeout'.
660 * command.h (enum var_types): New zuinteger_unlimited. Update comment
661 to var_integer.
662 * source.c (_initialize_source): Call add_setshow_zuinteger_unlimited_cmd
663 for command 'set listsize'.
664
665 2012-09-17 Siddhesh Poyarekar <siddhesh@redhat.com>
666
667 * infrun.c (restore_infcall_suspend_state): Eliminate single-use
668 variable LEN.
669
670 2012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
671
672 PR 14119
673 * frame.c (skip_inlined_frames): Skip also TAILCALL_FRAME frames.
674 (frame_pop): Drop also TAILCALL_FRAME frames.
675 * infcmd.c (finish_command): Ignore also TAILCALL_FRAME frames.
676
677 2012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
678 Pedro Alves <palves@redhat.com>
679
680 PR 14548
681 * infrun.c (handle_inferior_event): Do not reverse-continue back to the
682 function start if we are already at function start. Both for
683 reverse-next and for reverse-step into function without line number
684 info.
685
686 2012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
687
688 Code cleanup - rename 'inline' depth to 'artificial' depth.
689 * breakpoint.c (set_momentary_breakpoint): Rename at a caller to
690 frame_id_artificial_p, extend the comment.
691 * dwarf2-frame-tailcall.c (tailcall_frame_this_id): Rename at a user.
692 * frame.c (fprint_frame_id): Rename at a user, change debug output
693 text to "artificial=".
694 (skip_inlined_frames): Rename to ...
695 (skip_artificial_frames): ... here. Extend the comment.
696 (get_stack_frame_id, frame_unwind_caller_id): Rename at a caller.
697 (frame_id_inlined_p): Rename to ...
698 (frame_id_artificial_p): ... here. Rename at a user.
699 (frame_id_eq, frame_id_inner, frame_unwind_caller_pc)
700 (frame_unwind_caller_pc_if_available, frame_unwind_caller_arch): Rename
701 at a user.
702 * frame.h (struct frame_id): Rename inline_depth to artificial_depth.
703 Extend the comment.
704 (frame_id_inlined_p): Rename to ...
705 (frame_id_artificial_p): ... here.
706 * inline-frame.c (inline_frame_this_id): Rename at a user.
707
708 2012-09-14 Andrew Burgess <aburgess@broadcom.com>
709
710 * c-typeprint.c (c_type_print_varspec_suffix): Display the size of
711 vector variables using vector_size syntax rather than array
712 syntax.
713
714 2012-09-14 Siddhesh Poyarekar <siddhesh@redhat.com>
715
716 * valarith.c (value_concat): Replace unsafe ALLOCA with
717 XMALLOC/XFREE.
718
719 2012-09-14 Pedro Alves <palves@redhat.com>
720
721 * gdb.1 (SEE ALSO): Expand pointer to GDB's Texinfo manual.
722
723 2012-09-14 Khoo Yit Phang <khooyp@cs.umd.edu>
724
725 Point contrib/cc-with-tweaks.sh to the build-local data-directory.
726 * contrib/cc-with-tweaks.sh (GDB): Add -data-directory
727 data-directory as appropriate.
728
729 2012-09-14 Siddhesh Poyarekar <siddhesh@redhat.com>
730
731 * printcmd.c (ui_printf): Eliminate single-use variable
732 PARAM_LEN.
733
734 2012-09-14 Yao Qi <yao@codesourcery.com>
735 Pedro Alves <palves@redhat.com>
736
737 * valops.c (value_assign): Move observer_notify_target_changed
738 below to replace reinit_frame_cache.
739
740 2012-09-13 Khoo Yit Phang <khooyp@cs.umd.edu>
741
742 Refactor Python "gdb" module into a proper Python package, by
743 introducing a new "_gdb" module for code implemented in C, and
744 using reload/__import__ instead of exec.
745 * python/lib/gdb/__init__.py: Import * from _gdb.
746 (GdbOutputFile, sys.stdout, GdbOutputErrorFile, sys.stderr,
747 prompt_hook, sys.argv): Moved from finish_python_initialization.
748 (pretty_printers, PYTHONDIR): Moved from _initialize_python.
749 (packages, auto_load_packages): New list and function replacing
750 module_dict and auto-loading code, using __file__ instead of
751 gdb.PYTHONDIR and reload/__import__ instead of exec.
752 (GdbSetPythonDirectory): Replacing function of the same name
753 from finish_python_initialization, using reload/__import__ instead
754 of exec, as well as call auto_load_packages.
755 * python/py-prettyprint.c (find_pretty_printer_from_gdb): Check
756 gdb_python_module and not gdb_module.
757 * python/python-internal.h (gdb_python_module): Declare.
758 * python/python.c (gdb_python_module): New global.
759 (before_prompt_hook): Check gdb_python_module and not gdb_module.
760 (_initialize_python): Rename gdb module to _gdb.
761 Move gdb.PYTHONDIR and gdb.pretty_printer to lib/gdb/__init__.py.
762 (finish_python_initialization): Move Python code to
763 lib/gdb/__init__.py; instead, set up sys.path and import gdb into
764 __main__.
765
766 2012-09-13 Pedro Alves <palves@redhat.com>
767
768 * Makefile.in (COMMON_OBS): Add registry.o.
769 * registry.c: New file.
770 * registry.h (struct registry_container): Declare.
771 (registry_data_callback): New typedef.
772 (struct registry_data, struct registry_data_registration, struct
773 registry_data_registry): New type.
774 (register_data_with_cleanup, registry_alloc_data)
775 (registry_callback_adaptor, registry_clear_data)
776 (registry_container_free_data, registry_set_data, registry_data):
777 Declare.
778 (DEFINE_REGISTRY): Refactor structures and functions as shims over
779 the new common structures and functions.
780 (DECLARE_REGISTRY): Declare struct TAG ## _data. Use the tagged
781 callback typedefs.
782
783 2012-09-12 Mike Wrighton <wrighton@codesourcery.com>
784
785 * remote.c (remote_insert_hw_breakpoint): Throw exception if
786 there is an error inserting hardware breakpoints and use the
787 error message from the target.
788
789 * breakpoint.c (insert_bp_location, insert_breakpoint_locations):
790 Catch this exception and print the error message contained within. Do not
791 print the default hardware error breakpoint message in this case.
792
793 2012-09-12 Doug Evans <dje@google.com>
794
795 * dwarf2read.c (dwarf2_read_addr_index): Fix handling the case where
796 cu == NULL.
797
798 2012-09-11 Doug Evans <dje@google.com>
799
800 * dwarf2read.c (dw2_do_expand_symtabs_matching): Don't examine
801 .gdb_index symbol attributes if there are none.
802
803 2012-09-11 Joel Brobecker <brobecker@adacore.com>
804
805 * symtab.h (struct minimal_symbol) [has_size]: New field.
806 (MSYMBOL_SIZE): Adjust to forbid macro from being used as lvalue.
807 (SET_MSYMBOL_SIZE, MSYMBOL_HAS_SIZE): New macros.
808 * printcmd.c (build_address_symbolic): Only filter out zero-sized
809 minimal symbols if the symbol's size is actually known.
810 * minsyms.c (prim_record_minimal_symbol_full): Adjust setting
811 of msymbol's size field. Add comment.
812 * elfread.c (elf_symtab_read, elf_rel_plt_read): Use
813 SET_MSYMBOL_SIZE to set the minimal symbol size.
814
815 2012-09-11 Joel Brobecker <brobecker@adacore.com>
816
817 * minsyms.c (install_minimal_symbols): Use memset to fill entire
818 minimal_symbol struct object, rather than setting some of its
819 fields one by one.
820
821 2012-09-11 Andrew Burgess <aburgess@broadcom.com>
822
823 * c-typeprint.c (c_type_print_varspec_prefix): Pass through the
824 passed_a_ptr flag when displaying typedef types.
825
826 2012-09-10 Joel Brobecker <brobecker@adacore.com>
827
828 * ada-lang.c (coerce_unspec_val_to_type): Make sure that
829 the optimized_out flag is preserved.
830
831 2012-09-10 Anthony Green <green@moxielogic.com>
832
833 * moxie-tdep.c (moxie_analyze_prologue): Update for function
834 prologue changes in GCC.
835
836 2012-09-10 Keith Seitz <keiths@redhat.com>
837
838 PR gdb/13483
839 * gdbtypes.h (BOOL_PTR_CONVERSION_BADNESS): Rename to ...
840 (BOOL_CONVERSION_BADNESS): ... this.
841 * gdbtypes.c (BOOL_PTR_CONVERSION_BADNESS): Likewise.
842 (rank_one_type): Allow all boolean conversions
843 permitted by the standard.
844
845 2012-09-06 Tom Tromey <tromey@redhat.com>
846
847 * python/py-newobjfileevent.c (create_new_objfile_event_object):
848 Don't decref py_objfile.
849
850 2012-09-02 Khoo Yit Phang <khooyp@cs.umd.edu>
851
852 Do not enable -lmcheck by default when Python is enabled with
853 threading support.
854 * configure.ac: (python_has_threads) New variable, by testing
855 if WITH_THREAD is defined in Python.h.
856 Move --enable-lmcheck after --with-python.
857 Do not enable -lmcheck by default if python_has_threads=yes.
858 Warn if --enable-lmcheck and python_has_threads=yes.
859 * configure: Regenerate.
860
861 2012-08-31 Yao Qi <yao@codesourcery.com>
862
863 * mi/mi-cmds.c (mi_cmds): New macros DEF_MI_CMD_CLI
864 DEF_MI_CMD_MI DEF_MI_CMD_CLI_1 and DEF_MI_CMD_CLI_1.
865 Update some commands.
866 * mi/mi-cmds.h (struct mi_cmd) <suppress_notification>: New field.
867 * mi/mi-main.c (mi_cmd_execute): Set '*parse->cmd->suppress_notification'
868 to 1.
869
870 2012-08-31 Yao Qi <yao@codesourcery.com>
871
872 * mi/mi-cmds.c (mi_cmds): Add 'static'.
873
874 2012-08-30 Khoo Yit Phang <khooyp@cs.umd.edu>
875
876 * MAINTAINERS (Write After Approval): Add "Khoo Yit Phang".
877
878 2012-08-29 Doug Evans <dje@google.com>
879
880 * main.c (print_gdb_help): Remove reference to
881 --use-deprecated-index-sections.
882
883 2012-08-28 Yao Qi <yao@codesourcery.com>
884
885 * cli/cli-cmds.c (max_user_call_depth): Add 'unsigned'.
886 (init_cmds): Call add_setshow_uinteger_cmd for command
887 'max-user-call-depth'.
888 * cli/cli-script.c (execute_user_command): Add 'unsigned' to the
889 declaration of 'max_user_call_depth'.
890 * frame.c (backtrace_limit): Add 'unsigned'.
891 (_initialize_frame): Call add_setshow_uinteger_cmd for command
892 'limit'.
893 * remote.c (remoteaddresssize): Add 'unsigned'.
894 (remote_address_masked): Change local var 'address_size' to
895 'unsigned'.
896 (_initialize_remote): Call add_setshow_uinteger_cmd for
897 'remoteaddresssize'.
898 * top.c (history_size): Add 'unsigned'.
899 (show_commands): Change local variables to 'unsigned'.
900 (set_history_size_command): Don't check history_size is negative.
901 Adjust the condition to call unstifle_history and set history_size
902 to UNIT_MAX.
903
904 2012-08-28 Pedro Alves <palves@redhat.com>
905
906 PR gdb/14428
907
908 * infcmd.c (default_print_one_register_info): New, factored out
909 from default_print_registers_info.
910 (default_print_registers_info): Use it. Mark value unavailable if
911 necessary.
912 (registers_info): Print user registers with
913 default_print_one_register_info.
914
915 2010-08-27 H.J. Lu <hongjiu.lu@intel.com>
916
917 PR tui/14486
918 * tui/tui-source.c (tui_source_is_displayed): Check if TUI_SRC_WIN
919 is not NULL before referencing it.
920
921 2012-08-27 Jan Kratochvil <jan.kratochvil@redhat.com>
922
923 * breakpoint.c (parse_breakpoint_sals) <(*address) == NULL>: New
924 variable pc. Call find_pc_line instead of find_pc_overlay, restore
925 original PC for it.
926
927 2012-08-27 Eli Zaretskii <eliz@gnu.org>
928 Jan Kratochvil <jan.kratochvil@redhat.com>
929
930 * auto-load.c (auto_load_objfile_script): Rename to ...
931 (auto_load_objfile_script_1): ... here, change variable realname to
932 parameter realname, document it, add return value, add variable retval.
933 (auto_load_objfile_script): New function.
934
935 2012-08-27 Jan Kratochvil <jan.kratochvil@redhat.com>
936
937 * cli/cli-decode.c (print_doc_line): Keep skipping '.' and ',' not
938 followed by a whitespace.
939
940 2012-08-27 Jan Kratochvil <jan.kratochvil@redhat.com>
941
942 PR gdb/14494.
943 * dwarf2read.c (dwarf2_locate_sections): Move variable aflag here.
944 Move the SEC_HAS_CONTENTS check here - for any NAMES use.
945 (dwarf2_locate_sections) <eh_frame>: Move the variable and check from
946 here.
947
948 2012-08-27 Wei-cheng Wang <cole945@gmail.com>
949
950 * memattr.c (create_mem_region): Fix memory region overlapping
951 checking.
952
953 2012-08-24 Siddhesh Poyarekar <siddhesh@redhat.com>
954
955 * h8300-tdep.c (h8300_push_dummy_call): Replace unsafe alloca
956 with xmalloc/cleanup.
957 * mt-tdep.c (mt_push_dummy_call): Likewise.
958 * tilegx-tdep.c (tilegx_push_dummy_call): Likewise.
959 * xstormy16-tdep.c (xstormy16_push_dummy_call): Likewise.
960
961 2012-08-24 Yao Qi <yao@codesourcery.com>
962
963 * jv-exp.y (push_expression_name): Add "." at the end of error
964 message.
965
966 2012-08-23 Khoo Yit Phang <khooyp@cs.umd.edu>
967
968 Document how to return from "python-interactive" to GDB.
969 * python/python.c (_initialize_python): Update documentation.
970
971 2012-08-23 Pedro Alves <palves@redhat.com>
972
973 * infrun.c (_initialize_infrun) <handle command help text>:
974 Mention that multiple signals are supported.
975
976 2012-08-23 Pedro Alves <palves@redhat.com>
977
978 * infcmd.c (_initialize_infcmd) <signal command>: Fix typo in help
979 string.
980
981 2012-08-23 Yao Qi <yao@codesourcery.com>
982
983 * tracepoint.c (disconnect_tracing): Call set_tracepoint_num.
984 (tfind_1): Don't call registers_changed, set_traceframe_num,
985 and clear_traceframe_info.
986 Call set_current_traceframe.
987 (set_current_traceframe): call set_traceframe_num.
988
989 2012-08-22 Sergio Durigan Junior <sergiodj@redhat.com>
990
991 * remote-sim.c (_initialize_remote_sim): Pass NULL argument to
992 `register_inferior_data_with_cleanup', fixing regression on PowerPC64.
993
994 2012-08-22 Khoo Yit Phang <khooyp@cs.umd.edu>
995
996 Enable readline in Python in a GDB-specific way and block the
997 standard Python readline module to prevent conflicts with GDB.
998 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-gdb-readline.o.
999 (SUBDIR_PYTHON_SRCS): Add python/py-gdb-readline.c.
1000 (py-gdb-readline.o): Add rule to compile python/py-gdb-readline.c.
1001 * python/py-gdb-readline.c: New file.
1002 * python/python-internal.h (gdbpy_initialize_gdb_readline): New
1003 prototype.
1004 * python/python.c (_initialize_python): Call
1005 gdbpy_initialize_gdb_readline.
1006
1007 2012-08-22 Keith Seitz <keiths@redhat.com>
1008
1009 * defs.h: Include build-gnulib/config.h
1010
1011 2012-08-22 Joseph Myers <joseph@codesourcery.com>
1012
1013 * arm-tdep.c (thumb_get_next_pc_raw): Mask off low bits for bx pc
1014 and blx pc.
1015
1016 2012-08-22 Khoo Yit Phang <khooyp@cs.umd.edu>
1017
1018 Add a new "python-interactive" command that starts a standard
1019 Python interactive prompt with "pi" as alias, and add "py" as
1020 an alias to "python".
1021 * NEWS: Mention the new commands.
1022 * python/python.c (eval_python_command): New function.
1023 (python_interactive_command): For "python-interactive" with
1024 arguments, call eval_python_command. For "python-interactive"
1025 without arguments, call PyRun_InteractiveLoop.
1026 (_initialize_python): Add "python-interactive" command with
1027 "pi" as alias, and add "py" as an alias to "python".
1028
1029 2012-08-22 Tom Tromey <tromey@redhat.com>
1030
1031 * defs.h (quit_flag): Don't declare.
1032 (clear_quit_flag, check_quit_flag, set_quit_flag): Declare.
1033 (QUIT): Use new functions.
1034 * event-top.c (command_handler): Use clear_quit_flag.
1035 (handle_sigint): Use set_quit_flag.
1036 (async_request_quit): Use check_quit_flag. Don't check
1037 immediate_quit.
1038 * exceptions.c (throw_exception): Use clear_quit_flag.
1039 * main.c (captured_main): Use clear_quit_flag.
1040 * python/python.c (clear_quit_flag, set_quit_flag)
1041 (check_quit_flag): New functions.
1042 * remote-sim.c (gdb_os_poll_quit): Use check_quit_flag,
1043 clear_quit_flag.
1044 * remote.c (remote_wait_as): Use check_quit_flag,
1045 clear_quit_flag.
1046 (remote_start_remote): Call QUIT.
1047 * symfile.c (load_progress): Use check_quit_flag.
1048 * top.c (command_loop): Use clear_quit_flag.
1049 (command_line_input): Call QUIT.
1050 * utils.c (quit_flag): Conditionally define.
1051 (clear_quit_flag, check_quit_flag, set_quit_flag): New
1052 functions.
1053 (prompt_for_continue): Call QUIT. Use quit, not
1054 async_request_quit.
1055 * remote-mips.c (mips_expect_timeout): Call QUIT.
1056 * monitor.c (monitor_expect): Call QUIT.
1057
1058 2012-08-22 Tom Tromey <tromey@redhat.com>
1059
1060 * event-top.c (sigwinch_token, handle_sigwinch): Remove.
1061 (async_init_signals): Update.
1062 * utils.c (init_page_info): Don't use SIGWINCH_HANDLER.
1063 (SIGWINCH_HANDLER_BODY): Remove.
1064
1065 2012-08-22 Tom Tromey <tromey@redhat.com>
1066
1067 * jit.c (jit_object_close_impl): Don't malloc the objfile
1068 name.
1069 * objfiles.c (allocate_objfile): Don't malloc the objfile
1070 name.
1071 (free_objfile): Don't free the objfile name.
1072 * objfiles.h (struct objfile) <name>: Update comment.
1073 * symfile.c (reread_symbols): Fix reference counting. Don't
1074 malloc objfile name.
1075
1076 2012-08-22 Tom Tromey <tromey@redhat.com>
1077
1078 * windows-nat.c (windows_make_so): Use gdb_bfd_open.
1079 * symfile.c (bfd_open_maybe_remote): Use gdb_bfd_open.
1080 (symfile_bfd_open): Likewise.
1081 (generic_load): Likewise.
1082 * solib.c (solib_bfd_fopen): Use gdb_bfd_open.
1083 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
1084 gdb_bfd_open.
1085 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
1086 Use gdb_bfd_open.
1087 * rs6000-nat.c (add_vmap): Use gdb_bfd_open.
1088 * remote-mips.c (mips_load_srec): Use gdb_bfd_open.
1089 (pmon_load_fast): Likewise.
1090 * remote-m32r-sdi.c (m32r_load): Use gdb_bfd_open.
1091 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_open.
1092 * machoread.c (macho_symfile_read_all_oso): Use gdb_bfd_open.
1093 (macho_check_dsym): Likewise.
1094 * m32r-rom.c (m32r_load): Use gdb_bfd_open.
1095 (m32r_upload_command): Likewise.
1096 * gdb_bfd.h (gdb_bfd_cache): Declare.
1097 * gdb_bfd.c (struct gdb_bfd_data): New.
1098 (gdb_bfd_cache): New global.
1099 (struct gdb_bfd_cache_search): New.
1100 (hash_bfd): New function.
1101 (eq_bfd): Likewise.
1102 (gdb_bfd_open): Likewise.
1103 (gdb_bfd_ref): Allocate a gdb_bfd_data and attach to the BFD.
1104 (gdb_bfd_unref): Remove closed BFD from cache. Update for
1105 gdb_bfd_data.
1106 * exec.c (exec_file_attach): Use gdb_bfd_open.
1107 * dsrec.c (load_srec): Use gdb_bfd_open.
1108
1109 2012-08-22 Tom Tromey <tromey@redhat.com>
1110
1111 * dwarf2read.c (macro_start_file): Update.
1112 * objfiles.c (get_objfile_bfd_data): Initialize macro_cache.
1113 (free_objfile_per_bfd_storage): Destroy macro_cache.
1114 (allocate_objfile, free_objfile): Update.
1115 * objfiles.h (struct objfile_per_bfd_storage) <macro_cache>:
1116 New field.
1117 (struct objfile) <macro_cache>: Remove.
1118 * symfile.c (reread_symbols): Update.
1119 * symmisc.c (print_symbol_bcache_statistics): Update.
1120 (print_objfile_statistics): Update.
1121
1122 2012-08-22 Tom Tromey <tromey@redhat.com>
1123
1124 * elfread.c (elf_symtab_read): Update.
1125 * objfiles.c (objfiles_bfd_data): New global.
1126 (get_objfile_bfd_data, free_objfile_per_bfd_storage)
1127 (objfile_bfd_data_free, set_objfile_per_bfd): New functions.
1128 (allocate_objfile, free_objfile): Update.
1129 (_initialize_objfiles): Initialize objfiles_bfd_data.
1130 * objfiles.h (struct objfile_per_bfd_storage): New.
1131 (struct objfile) <per_bfd>: New field.
1132 <filename_cache>: Remove.
1133 (set_objfile_per_bfd): Declare.
1134 * symfile.c (reread_symbols): Update. Call
1135 set_objfile_per_bfd.
1136 (allocate_symtab): Update.
1137 * symmisc.c (print_symbol_bcache_statistics): Update.
1138 (print_objfile_statistics): Print the size of the BFD obstack.
1139
1140 2012-08-22 Tom Tromey <tromey@redhat.com>
1141
1142 * gdb_bfd.h: Include registry.h. Use DECLARE_REGISTRY.
1143 * gdb_bfd.c: Use DEFINE_REGISTRY.
1144 (struct gdb_bfd_data): Add REGISTRY_FIELDS.
1145 (gdb_bfd_ref): Call bfd_alloc_data.
1146 (gdb_bfd_unref): Call bfd_free_data.
1147
1148 2012-08-22 Tom Tromey <tromey@redhat.com>
1149
1150 * registry.h (struct registry_fields): New.
1151 (REGISTRY_FIELDS): Redefine.
1152 (REGISTRY_ACCESS_FIELD): New macro.
1153 (DEFINE_REGISTRY): Add ACCESS argument. Update defined
1154 functions.
1155
1156 2012-08-22 Tom Tromey <tromey@redhat.com>
1157
1158 * auto-load.c (_initialize_auto_load): Update.
1159 * solib-svr4.c (_initialize_svr4_solib): Update
1160 * solib-dsbt.c (_initialize_dsbt_solib): Update.
1161 * solib-darwin.c (_initialize_darwin_solib): Update.
1162 * registry.h: New file.
1163 * python/py-progspace.c (gdbpy_initialize_pspace): Update.
1164 * python/py-inferior.c (gdbpy_initialize_inferior): Update.
1165 * progspace.h: Include registry.h. Use DECLARE_REGISTRY.
1166 (register_program_space_data_with_cleanup)
1167 (register_program_space_data, program_space_alloc_data)
1168 (clear_program_space_data, set_program_space_data)
1169 (program_space_data): Don't declare.
1170 * progspace.c: Use DEFINE_REGISTRY.
1171 (struct program_space_data, struct
1172 program_space_data_registration, struct
1173 program_space_data_registry, program_space_data_registry)
1174 (register_program_space_data_with_cleanup)
1175 (register_program_space_data, program_space_alloc_data)
1176 (program_space_free_data, clear_program_space_data)
1177 (set_program_space_data, program_space_data): Remove.
1178 * objfiles.h: Include registry.h. Use DECLARE_REGISTRY.
1179 (struct objfile) <data, num_data>: Replace with REGISTRY_FIELDS.
1180 (register_objfile_data_with_cleanup, register_objfile_data)
1181 (clear_objfile_data, set_objfile_data, objfile_data): Don't
1182 declare.
1183 * objfiles.c: Use DEFINE_REGISTRY.
1184 (struct objfile_data, struct objfile_data_registration, struct
1185 objfile_data_registry, objfile_data_registry)
1186 (register_objfile_data_with_cleanup, register_objfile_data)
1187 (objfile_alloc_data, objfile_free_data, clear_objfile_data)
1188 (set_objfile_data, objfile_data): Remove.
1189 (_initialize_objfiles): Update.
1190 * jit.c (_initialize_jit): Update.
1191 * inflow.c (_initialize_inflow): Update.
1192 * inferior.h: Include registry.h. Use DECLARE_REGISTRY.
1193 (struct inferior) <data, num_data>: Replace with REGISTRY_FIELDS.
1194 (register_inferior_data_with_cleanup, register_inferior_data)
1195 (clear_inferior_data, set_inferior_data, inferior_data): Don't
1196 declare.
1197 * inferior.c: Use DEFINE_REGISTRY.
1198 (struct inferior_data, struct inferior_data_registration, struct
1199 inferior_data_registry, inferior_data_registry)
1200 (register_inferior_data_with_cleanup, register_inferior_data)
1201 (inferior_alloc_data, inferior_free_data clear_inferior_data)
1202 (set_inferior_data, inferior_data): Remove.
1203 * auxv.c (_initialize_auxv): Update.
1204 * ada-lang.c (_initialize_ada_language): Update.
1205 * breakpoint.c (_initialize_breakpoint): Update.
1206 * i386-nat.c (i386_use_watchpoints): Update.
1207
1208 2012-08-22 Tom Tromey <tromey@redhat.com>
1209
1210 * exec.c (exec_close, exec_file_attach): Update.
1211 (add_to_section_table): Initialize 'key' field.
1212 (add_target_sections, remove_target_sections): Add 'key' argument.
1213 * exec.h (add_target_sections, remove_target_sections): Add
1214 'key' argument.
1215 * solib.c (solib_map_sections, update_solib_list, clear_solib)
1216 (reload_shared_libraries_1): Update.
1217 * target.h (struct target_section) <key>: New field.
1218
1219 2012-08-22 Tom Tromey <tromey@redhat.com>
1220
1221 * cli/cli-cmds.c (filter_sals): Handle nelts == 0 case.
1222
1223 2012-08-21 Pierre Muller <muller@ics.u-strasbg.fr>
1224
1225 * symfile.c (allocate_symtab): Use host_address_to_string
1226 function instead of cast of pointer to long which is not
1227 compatible with x86_64-w64-mingw32 build.
1228
1229 2012-08-19 Andrew Pinski <apinski@cavium.com>
1230
1231 * mips-tdep.c (is_octeon): New function.
1232 (is_octeon_bbit_op): New function.
1233 (mips32_next_pc): Handle Octeon's bbit instructions.
1234 (mips32_instruction_has_delay_slot): Likewise.
1235
1236 2012-08-19 Andrew Pinski <apinski@cavium.com>
1237
1238 * mips-tdep.c (mips32_next_pc): Fix line spacing of the comment
1239 before the function.
1240
1241 2012-08-19 Andrew Pinski <apinski@cavium.com>
1242
1243 * mips-tdep.c (mips32_next_pc): Consolidate calls to itype_op.
1244
1245 2012-08-19 Keith Seitz <keiths@redhat.com>
1246
1247 PR c++/14365
1248 * c-typeprint.c (c_type_print_varspec_prefix): Pass
1249 -1 for SHOW to c_type_print_base for METHODPTR and MEMBERPTR.
1250
1251 2012-08-18 Eli Zaretskii <eliz@gnu.org>
1252
1253 * Makefile.in (HFILES_NO_SRCDIR): Fix a typo: golang.h -> go-lang.h.
1254 The typo broke "make TAGS".
1255
1256 2012-08-17 Joel Brobecker <brobecker@adacore.com>
1257
1258 GDB 7.5 released.
1259
1260 2012-08-17 Keith Seitz <keiths@redhat.com>
1261
1262 PR c++/13356
1263 * gdbtypes.c (strict_type_checking): New variable.
1264 (show_strict_type_checking): New function.
1265 (rank_one_type): Return NS_POINTER_INTEGER_CONVERSION_BADNESS
1266 if strict type checking is disabled.
1267 (_initialize_gdbtypes): Add "check type" subcommand.
1268 * gdbtypes.h (NS_INTEGER_POINTER_CONVERSION_BADNESS): New struct.
1269
1270 2012-08-17 Keith Seitz <keiths@redhat.com>
1271
1272 * language.h (type_mode): Remove.
1273 (type_check): Remove.
1274 (struct language_defn): Remove la_type_check.
1275 (STRICT_TYPE): Remove unused macro.
1276 (type_error): Remove.
1277 * language.c (set_type_range_case): Renamed to ...
1278 (set_range_case): ... this. Update all callers.
1279 Remove type_mode/type_check.
1280 (type_mode): Remove.
1281 (type_check): Remove.
1282 (show_type_command): Remove.
1283 (set_type_command): Remove.
1284 (language_info): Remove type checking output.
1285 (type_error): Remove unused function.
1286 (range_error): Update comment.
1287 (unknown_language_defn): Remove la_type_check.
1288 (auto_language_defn): Likewise.
1289 (local_language_defn): Likewise.
1290 (_initialize_language): Remove "check type" subcommand.
1291 * ada-lang.c (ada_language_defn): Remove la_type_check.
1292 * c-lang.c (c_language_defn): Likewise.
1293 (cplus_language_defn): Likewise.
1294 (asm_language_defn): Likewise.
1295 (minimal_language_defn): Likewise.
1296 * d-lang.c (d_language_defn): Likewise.
1297 * f-lang.c (f_language_defn): Likewise.
1298 * go-lang.c (go_language_defn): Likewise.
1299 * jv-lang.c (java_language_defn): Likewise.
1300 * m2-lang.c (m2_language_defn): Likewise.
1301 * objc-lang.c (objc_language_defn): Likewise.
1302 * opencl-lang.c (opencl_language_defn): Likewise.
1303 * p-lang.c (pascal_language_defn): Likewise.
1304
1305 2012-08-16 Mike Frysinger <vapier@gentoo.org>
1306
1307 * infcmd.c (_initialize_infcmd): Remove trailing ) in next help text.
1308
1309 2012-08-16 Joel Brobecker <brobecker@adacore.com>
1310
1311 * ia64-hpux-nat.c (ia64_hpux_get_register_from_save_state_t):
1312 New function.
1313 (ia64_hpux_xfer_memory): Check if inferior_ptid is known before
1314 using the regache. Use ia64_hpux_get_register_from_save_state_t
1315 to access the bsp and bspstore registers if not.
1316
1317 2012-08-16 Joel Brobecker <brobecker@adacore.com>
1318
1319 * breakpoint.h (detach_breakpoints): pid parameter is now a ptid.
1320 * breakpoint.c (detach_breakpoints): Change pid parameter into
1321 a ptid. Adjust code accordingly.
1322 * infrun.c (handle_inferior_event): Delete variable child_pid.
1323 Update call to detach_breakpoints to pass the child ptid for
1324 fork events.
1325 * linux-nat.c (linux_nat_iterate_watchpoint_lwps): Remove
1326 assert that inferior_ptid's lwp is zero.
1327 (linux_handle_extended_wait): Update call to detach_breakpoints.
1328 * inf-ttrace.c (inf_ttrace_follow_fork): Update call to
1329 detach_breakpoints.
1330
1331 2012-08-16 Joel Brobecker <brobecker@adacore.com>
1332
1333 * inf-ttrace.c (inf_ttrace_follow_fork): When following the
1334 parent, only call detach_breakpoints if tts.tts_event ==
1335 TTEVT_VFORK.
1336
1337 2012-08-16 Joel Brobecker <brobecker@adacore.com>
1338
1339 * dwarf2-frame.c (dwarf2_frame_cache): Use
1340 get_frame_address_in_block instead of get_frame_pc as
1341 the bound for executing the frame's FDE.
1342
1343 2012-08-16 Yao Qi <yao@codesourcery.com>
1344
1345 * gdbtypes.h (enum type_code): Define TYPE_CODE_BITSTRING -1.
1346 * arm-tdep.c (arm_type_align): Remove code handling TYPE_CODE_BITSTRING.
1347 * c-typeprint.c (c_type_print_varspec_prefix): Likewise.
1348 (c_type_print_varspec_suffix): Likewise.
1349 * eval.c (evaluate_subexp_standard): Likewise.
1350 * f-typeprint.c (f_type_print_varspec_prefix): Likewise.
1351 (f_type_print_varspec_suffix): Likewise.
1352 * gdbtypes.c (is_scalar_type): Likewise.
1353 (recursive_dump_type): Likewise.
1354 * infcall.c (value_arg_coerce): Likewise.
1355 * m2-valprint.c (m2_val_print): Likewise.
1356 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
1357 (pascal_type_print_varspec_suffix): Likewise.
1358 (pascal_type_print_base): Likewise.
1359 * p-valprint.c (pascal_val_print): Likewise.
1360 (pascal_val_print): Likewise.
1361 * valops.c (value_slice): Likewise.
1362 * valprint.c (scalar_type_p): Likewise.
1363 * valarith.c (value_bitstring_subscript): Remove.
1364 (value_concat): Remove code handling TYPE_CODE_BITSTRING.
1365 Remove comment on TYPE_CODE_BITSTRING.
1366
1367 * stabsread.c (read_type): Don't set TYPE_CODE (type) to
1368 TYPE_CODE_BITSTRING.
1369
1370 * python/py-type.c (pyty_codes): Move ENTRY (TYPE_CODE_BITSTRING) to
1371 slot 0.
1372
1373 2012-08-16 Yao Qi <yao@codesourcery.com>
1374
1375 * tracepoint.c (trace_find_none_command): Remove.
1376 (_initialize_tracepoint): Call add_alias_cmd for "tfind none".
1377
1378 2012-08-16 Yao Qi <yao@codesourcery.com>
1379
1380 * remote.c (handle_notification): Remove parameter 'length'.
1381 (putpkt_binary, getpkt_or_notif_sane_1): Caller update.
1382
1383 2012-08-15 Keith Seitz <keiths@redhat.com>
1384
1385 * gdbtypes.c (opaque_type_resolution): Make static.
1386 Add missing comment.
1387 (overload_debug): Add missing comment.
1388 (show_opaque_type_resolution): Likewise.
1389 (show_overload_debug): Likewise.
1390 (print_bit_vector): Remove unnecessary forward declaration.
1391 (print_arg_types): Likewise.
1392 (dump_fn_fieldlists): Likewise.
1393 (print_cplus_stuff): Likewise.
1394
1395 2012-08-15 Tom Tromey <tromey@redhat.com>
1396
1397 * gdb_bfd.c (struct gdb_bfd_data) <archive_bfd>: New field.
1398 (gdb_bfd_ref): Initialize new field.
1399 (gdb_bfd_unref): Unref the archive BFD.
1400 (gdb_bfd_openr_next_archived_file): Acquire a reference to the
1401 parent archive.
1402
1403 2012-08-15 Tom Tromey <tromey@redhat.com>
1404
1405 PR python/14387:
1406 * python/py-bpevent.c (create_breakpoint_event_object): Update
1407 comment.
1408 * python/py-event.c (evpy_add_attribute): Update comment.
1409 * python/py-exitedevent.c (create_exited_event_object): Fix
1410 reference counting and error handling.
1411 * python/py-newobjfileevent.c (create_new_objfile_event_object):
1412 Fix reference counting.
1413 * python/py-signalevent.c (create_signal_event_object): Fix
1414 reference counting and error handling.
1415 * python/py-stopevent.c (emit_stop_event): Fix reference
1416 counting.
1417 * python/py-threadevent.c (get_event_thread): Return a
1418 borrowed reference.
1419 * python/py-type.c (convert_field): Fix reference counting.
1420
1421 2012-08-15 Tom Tromey <tromey@redhat.com>
1422
1423 * dwarf2read.c (dwarf_decode_macro_bytes)
1424 <DW_MACRO_GNU_transparent_include>: Use pointer to included data
1425 as hash key.
1426
1427 2012-08-14 Mike Frysinger <vapier@gentoo.org>
1428
1429 * infcmd.c (_initialize_infcmd): Update help text for the signal,
1430 stepi, nexti, finish, next, step, jump, and continue commands.
1431 * infrun.c (_initialize_infrun): Update help text for the handle
1432 command.
1433
1434 2012-08-14 Doug Evans <dje@google.com>
1435
1436 * gdbtypes.c (struct extra): Delete, unused.
1437
1438 * gdbtypes.c: Whitespace cleanup.
1439 (address_space_name_to_int): Remove "extern" from definition.
1440 (_initialize_gdbtypes): Declare with initialize_file_ftype.
1441
1442 * gdbtypes.c (make_pointer_type): Remove redundant setting of
1443 TYPE_POINTER_TYPE (type).
1444
1445 2012-08-14 Gary Benson <gbenson@redhat.com>
1446
1447 * solib-svr4.c (svr4_free_library_list): Use free_so.
1448
1449 2012-08-13 Mike Frysinger <vapier@gentoo.org>
1450
1451 * .gitignore: Add go-exp.c.
1452
1453 2012-08-13 Doug Evans <dje@google.com>
1454
1455 * value.c (show_convenience): Tweak comment.
1456 (_initialize_values): Mention convenience functions in the help text
1457 for "show convenience".
1458
1459 2012-08-13 Yao Qi <yao@codesourcery.com>
1460
1461 * std-operator.def: Remove TERNOP_SLICE_COUNT.
1462 * breakpoint.c (watchpoint_exp_is_const): Remove handling to
1463 TERNOP_SLICE_COUNT.
1464 * eval.c (evaluate_subexp_standard): Likewise.
1465 * expprint.c (print_subexp_standard): Likewise.
1466 (dump_subexp_body_standard): Likewise.
1467 * parse.c (operator_length_standard): Likewise.
1468
1469 2012-08-13 Yao Qi <yao@codesourcery.com>
1470
1471 * std-operator.def: Remove OP_BITSTRING.
1472 * breakpoint.c (watchpoint_exp_is_const): Update.
1473 * eval.c (evaluate_subexp_standard): Remove handling to
1474 OP_BITSTRING.
1475 * expprint.c (print_subexp_standard): Likewise.
1476 (dump_subexp_body_standard): Likewise.
1477 * parse.c (operator_length_standard): Likewise.
1478 * valops.c (value_bitstring): Remove.
1479 * value.h: Remove the declaration of 'value_bitstring'.
1480
1481 2012-08-10 Sergio Durigan Junior <sergiodj@redhat.com>
1482
1483 * linespec.c (find_methods): Remove unused variables `i1' and
1484 `name_len'.
1485 (decode_line_full): Likewise for `arg_start'.
1486
1487 2012-08-10 Sergio Durigan Junior <sergiodj@redhat.com>
1488
1489 * gdb_bfd.c (gdb_bfd_unref): Remove unused variable `slot'.
1490 (zlib_decompress_section): Likewise for `section_data'.
1491 (gdb_bfd_map_section): Likewise for `buf' and `retbuf'.
1492
1493 2012-08-10 Doug Evans <dje@google.com>
1494
1495 Add $_memeq, $_regex, $_streq, $_strlen convenience functions.
1496 * NEWS: Document them.
1497 * data-directory/Makefile.in (PYTHON_FILES): Add function/__init__.py,
1498 function/strfns.py.
1499 * python/py-type.c (typy_array_1): New function.
1500 (typy_array): Call it.
1501 (typy_vector): New function.
1502 (type_object_methods): Add "vector".
1503 * python/lib/gdb/function/__init__.py: New file.
1504 * python/lib/gdb/function/strfns.py: New file.
1505
1506 2012-08-10 Siddhesh Poyarekar <siddhesh@redhat.com>
1507
1508 * python/py-type.c (convert_field): Use gdb_py_long_from_longest
1509 for TYPE_FIELD_BITPOS.
1510 (typy_get_sizeof): Likewise for TYPE_LENGTH.
1511
1512 2012-08-10 Mike Frysinger <vapier@gentoo.org>
1513
1514 PR cli/10436:
1515 * common/vec.h (VEC_merge): Define.
1516 (DEF_VEC_ALLOC_FUNC_I): Add a merge helper.
1517 (DEF_VEC_ALLOC_FUNC_P): Likewise.
1518 (DEF_VEC_ALLOC_FUNC_O): Likewise.
1519 * completer.c: Include gdb_signals.h.
1520 (signal_completer): Define.
1521 * completer.h (signal_completer): Add prototype.
1522 * infcmd.c (_initialize_infcmd): Assign the command
1523 completer for "signal" to handle_completer.
1524 * infrun.c: Include completer.h.
1525 (handle_completer): Define.
1526 (_initialize_infrun): Declare a new local variable c. Store the
1527 result of add_com("handle") to it. Assign the command
1528 completer for "handle" to handle_completer.
1529
1530 2012-08-09 Yao Qi <yao@codesourcery.com>
1531
1532 * cli/cli-decode.c (set_cmd_prefix): New.
1533 (lookup_cmd_for_prefixlist): New.
1534 (add_prefix_cmd): Call set_cmd_prefix and update field 'prefix'
1535 of each cmd_list_element in *prefixlist.
1536 (add_setshow_cmd_full): set_cmd_prefix.
1537 (add_alias_cmd): Likewise.
1538 * cli/cli-decode.h (struct cmd_list_element) <prefix>: New field.
1539 Declare 'auto_boolean_enums'.
1540 * cli/cli-setshow.c: Include "observer.h".
1541 (notify_command_param_changed_p): New.
1542 (add_setshow_auto_boolean_cmd): Move auto_boolean_enums out.
1543 Remove 'static'.
1544 (do_setshow_command): Split it to ...
1545 (do_set_command, do_show_command): ... them. New.
1546 (do_set_command): Call observer_notify_command_param_changed if
1547 notify_command_param_changed_p returns true.
1548 (cmd_show_list): Caller update.
1549 * auto-load.c (set_auto_load_cmd): Likewise.
1550 * remote.c (show_remote_cmd): Likewise.
1551 * cli/cli-setshow.h: Update declarations.
1552 * top.c (execute_command): Call do_set_command and do_show_command.
1553
1554 * NEWS: Mention new MI notification.
1555 * mi/mi-interp.c: Declare mi_command_param_changed.
1556 (mi_interpreter_init): Attach mi_command_param_changed to
1557 observer command_param_changed.
1558 (mi_command_param_changed): New.
1559 Remove mi_suppress_breakpoint_notifications.
1560 Define global variable mi_suppress_notification.
1561 (mi_breakpoint_created): Update.
1562 (mi_breakpoint_deleted): Likewise.
1563 (mi_breakpoint_modified): Likewise.
1564 * mi/mi-main.c (mi_cmd_execute): Likewise. Check command
1565 'gdb-set' and set mi_suppress_notification.
1566 * mi/mi-main.h: (mi_suppress_notification): New struct.
1567
1568 2012-08-09 Andreas Tobler <andreast@fgznet.ch>
1569 Jan Kratochvil <jan.kratochvil@redhat.com>
1570
1571 * fbsd-nat.h (fbsd_find_memory_regions): Use find_memory_region_ftype.
1572
1573 2012-08-09 Yao Qi <yao@codesourcery.com>
1574
1575 * cli/cli-cmds.c (enablebreaklist): Move it to breakpoint.c.
1576 (skiplist): Move it to skip.c.
1577 (init_cmd_lists): Remove code setting enablebreaklist and
1578 skiplist to NULL.
1579 * breakpoint.c (enablebreaklist): Moved from cli/cli-cmds.c.
1580 * cli/cli-cmds.h: Remove declaration of enablebreaklist and
1581 skiplist.
1582 * gdbcmd.h: Likewise.
1583 * skip.c (_initialize_step_skip): Move 'skiplist' from
1584 cli/cli-cmds.c.
1585
1586 2012-08-09 Yao Qi <yao@codesourcery.com>
1587
1588 * cli/cli-dump.c: Add 'static' to some cmd_list_element variables.
1589 * gnu-nat.c, symfile.c: Likewise.
1590
1591 2012-08-08 Aaron Gamble <agamble@google.com>
1592
1593 * utils.c (prompt_for_continue_wait_time): New static global.
1594 (make_command_stats_cleanup): Initialize it.
1595 (report_command_stats): Subtract time waiting for user.
1596 (prompt_for_continue): Track time waiting for user.
1597 (defaulted_query): Track time waiting for user.
1598
1599 2012-08-08 Doug Evans <dje@google.com>
1600
1601 * eval.c (evaluate_subexp_standard): Fix thinko in handling
1602 UNOP_MEMVAL_TYPE.
1603 * expprint.c (print_subexp_standard, case OP_TYPE): New.
1604 (print_subexp_standard, case UNOP_CAST_TYPE): Don't increment pos.
1605 (print_subexp_standard, case UNOP_DYNAMIC_CAST): Ditto.
1606 (print_subexp_standard, case UNOP_REINTERPRET_CAST): Ditto.
1607 (print_subexp_standard, case UNOP_MEMVAL_TYPE): Ditto.
1608 (dump_subexp_body_standard, case UNOP_DYNAMIC_CAST): Don't increment
1609 elt.
1610 (dump_subexp_body_standard, case UNOP_REINTERPRET_CAST): Ditto.
1611 (dump_subexp_body_standard, case UNOP_CAST_TYPE): Ditto.
1612 (dump_subexp_body_standard, case UNOP_MEMVAL_TYPE): Ditto.
1613 (dump_prefix_expression): Handle OP_TYPE.
1614
1615 2012-08-08 Keith Seitz <keiths@redhat.com>
1616
1617 * breakpoint.c (parse_breakpoint_sals): Remove unused variable
1618 addr_start.
1619
1620 2012-08-08 Doug Evans <dje@google.com>
1621
1622 * linux-thread-db.c: #include "gdb_vecs.h".
1623 (try_thread_db_load_from_pdir_1): New arg "subdir". All callers
1624 updated.
1625 (try_thread_db_load_from_pdir): New arg "subdir". All callers updated.
1626 (thread_db_load_search): Use a vector to iterate over path elements.
1627 Handle text appearing after "$pdir".
1628
1629 * gdb_string.h: Moved to ...
1630 * common/gdb_string.h: ... here.
1631 * common/vec.h: Remove #ifndef GDBSERVER conditional inclusion of
1632 gdb_string.h and gdb_assert.h.
1633
1634 2012-08-08 Yao Qi <yao@codesourcery.com>
1635
1636 * tic6x-tdep.c (tic6x_register_to_value): Remove.
1637 (tic6x_value_to_register): Likewise.
1638 (tic6x_gdbarch_init): Don't call set_gdbarch_register_to_value
1639 and set_gdbarch_value_to_register.
1640
1641 2012-08-07 Jan Kratochvil <jan.kratochvil@redhat.com>
1642 Jean-Marc Saffroy <saffroy@gmail.com>
1643
1644 PR 11804
1645 * defs.h (find_memory_region_ftype): New comment. New arg modified.
1646 * fbsd-nat.c (fbsd_find_memory_regions): Add the passed modified value.
1647 * gcore.c (gcore_create_callback): New function comment. Add modified
1648 parameter. Only write modified regions. Set SEC_READONLY exactly
1649 according to MODIFIED.
1650 (objfile_find_memory_regions): Ignore separate debug info files. Ass
1651 the passed modified value to FUNC.
1652 * gnu-nat.c (gnu_find_memory_regions): Add the passed modified value.
1653 * linux-tdep.c (linux_find_memory_regions): Try to reads smaps file
1654 first. New variables modified and has_anonymous. Parse the lines of
1655 smaps file. Add the passed MODIFIED value to FUNC.
1656 * procfs.c (find_memory_regions_callback): Add the passed modified
1657 value.
1658
1659 2012-08-06 Tom Tromey <tromey@redhat.com>
1660
1661 * dwarf2-frame.c (clear_pointer_cleanup): New function.
1662 (dwarf2_frame_cache): Use it.
1663 * frame-unwind.h (frame_sniffer_ftype): Document prologue
1664 cache initialization constraint.
1665
1666 2012-08-06 Tom Tromey <tromey@redhat.com>
1667
1668 PR python/14386:
1669 * varobj.c (update_dynamic_varobj_children): Don't call
1670 PyIter_Check.
1671
1672 2012-08-06 Tom Tromey <tromey@redhat.com>
1673
1674 PR cli/14392:
1675 * cli/cli-cmds.c (list_command): Filter 'sals_end'.
1676
1677 2012-08-06 Nathaniel Flath <flat0103@gmail.com>
1678
1679 * NEWS: New entry for 'cd' default parameters.
1680 * cli/cli-cmds.c (cd_command): Replace error_no_arg by DIR assignment.
1681
1682 2012-08-03 Tom Tromey <tromey@redhat.com>
1683
1684 * dwarf2-frame.c (dwarf2_frame_cache): Call do_cleanups before
1685 return.
1686
1687 2012-08-02 Ulrich Weigand <ulrich.weigand@linaro.org>
1688
1689 * inf-child.c (inf_child_fileio_pwrite): If pwrite fails, fall back
1690 to attempting lseek/write.
1691 (inf_child_fileio_pread): Likewise for pread.
1692
1693 2012-08-02 Yao Qi <yao@codesourcery.com>
1694
1695 * dwarf2loc.c (entry_values_debug): Add 'unsigned'.
1696 (_initialize_dwarf2loc): Call add_setshow_zuinteger_cmd instead of
1697 add_setshow_zinteger_cmd.
1698 * dwarf2loc.h: Update the declaration of 'entry_values_debug'.
1699 * dwarf2read.c (dwarf2_die_debug): Add 'unsigned'.
1700 (_initialize_dwarf2_read): Call add_setshow_zuinteger_cmd
1701 instead of add_setshow_zinteger_cmd.
1702 * darwin-nat.c (dwarwin_debug_flag): Add 'unsigned'.
1703 (_initialize_darwin_inferior): Call add_setshow_zuinteger_cmd
1704 instead of add_setshow_zinteger_cmd.
1705 * frame.c (frame_debug): Add 'unsigned'.
1706 (_intialize_frame): Call add_setshow_zuinteger_cmd instead of
1707 add_setshow_zinteger_cmd.
1708 * frame.h: Update the declaration of 'frame_debug'.
1709 * gdbtypes.c (overload_debug): Add 'unsigned'.
1710 (_initialize_gdbtypes): Call add_setshow_zuinteger_cmd instead of
1711 add_setshow_zinteger_cmd.
1712 * inferior.h: Update declaration of 'debug_infrun'.
1713 * infrun.c (debug_infrun): Add 'unsigned'.
1714 (_initialize_infrun): Call add_setshow_zuinteger_cmd instead of
1715 add_setshow_zinteger_cmd.
1716 * jit.c (jit_debug): Add 'unsigned'.
1717 (_initialize_jit): Call add_setshow_zuinteger_cmd instead of
1718 add_setshow_zinteger_cmd.
1719 * linux-nat.c (debug_linux_nat): Add 'unsigned'.
1720 (_initialize_linux_nat): Call add_setshow_zuinteger_cmd
1721 instead of add_setshow_zinteger_cmd.
1722 * linux-thread-db.c (libthread_db_debug): Add 'unsigned'.
1723 (_initialize_thread_db): Call add_setshow_zuinteger_cmd instead of
1724 add_setshow_zinteger_cmd.
1725 * machoread.c (mach_o_debug_level): Add 'unsigned'.
1726 (_initialize_machoread): Call add_setshow_zuinteger_cmd
1727 instead of add_setshow_zinteger_cmd.
1728 * mi/mi-cmd-var.c: Update the declaration of 'varobjdebug'.
1729 * microblaze-tdep.c (microblaze_debug_flag): Add 'unsigned'.
1730 (_initialize_microblaze_tdep): Call add_setshow_zuinteger_cmd
1731 intead of add_setshow_zinteger_cmd.
1732 * mips-tdep.c (mips_debug): Add 'unsigned'.
1733 (_initialize_mips_tdep): Call add_setshow_zuinteger_cmd
1734 instead of add_setshow_zinteger_cmd.
1735 * monitor.c (monitor_debug): Add 'unsigned'.
1736 (_initialize_remote_monitors): Call add_setshow_zuinteger_cmd instead of
1737 add_setshow_zinteger_cmd.
1738 * observer.c (observer_debug): Add 'unsigned'.
1739 (_initialize_observer): Call add_setshow_zuinteger_cmd instead of
1740 add_setshow_zinteger_cmd.
1741 * parse.c (expressiondebug): Add 'unsigned'.
1742 (_initialize_parse): Call add_setshow_zuinteger_cmd instead of
1743 add_setshow_zinteger_cmd.
1744 * record.c (record_debug): Add 'unsigned'.
1745 (_initialize_record): Call add_setshow_zuinteger_cmd instead of
1746 add_setshow_zinteger_cmd.
1747 * record.h: Update the declaration of 'record_debug'.
1748 * stap-probe.c (stap_expression_debug): Add 'unsigned'.
1749 (_initialize_stap_probe): Call add_setshow_zuinteger_cmd instead of
1750 add_setshow_zinteger_cmd.
1751 * serial.c (global_serial_debug_p): Add 'unsigned'.
1752 (_initialize_serial): Call add_setshow_zuinteger_cmd instead of
1753 add_setshow_zinteger_cmd.
1754 * solib-dsbt.c (solib_dsbt_debug): Add 'unsigned'.
1755 (_initialize_dsbt_solib): Call add_setshow_zuinteger_cmd instead of
1756 add_setshow_zinteger_cmd.
1757 * solib-frv.c (solib_frv_debug): Add 'unsigned'.
1758 (_initialize_frv_solib): Call add_setshow_zuinteger_cmd instead of
1759 add_setshow_zinteger_cmd.
1760 * target.c (targetdebug): Add 'unsigned'.
1761 (initialize_targets): Call add_setshow_zuinteger_cmd instead of
1762 add_setshow_zinteger_cmd.
1763 * valops.c (overload_debug): Add 'unsigned'.
1764 * varobj.c (varobjdebug): Add 'unsigned'.
1765 (_initialize_varobj): Call add_setshow_zuinteger_cmd instead of
1766 add_setshow_zinteger_cmd.
1767 * xtensa-tdep.c (xtensa_debug_level): Add 'unsigned'.
1768 (_initialize_xtensa_tdep): Call add_setshow_zuinteger_cmd
1769 instead of add_setshow_zinteger_cmd.
1770
1771 * arch-utils.h: Remove the declaration of 'gdbarch_debug'.
1772 * gdbarch.sh (gdbarch_debug): Add 'unsigned'.
1773 (extern void _initialize_gdbarch): Call add_setshow_zuinteger_cmd
1774 instead of add_setshow_zinteger_cmd.
1775 * gdbarch.c, gdbarch.h: Re-generated.
1776
1777 2012-08-02 Yao Qi <yao@codesourcery.com>
1778
1779 * nto-tdep.c: Don't include cli/cli-decode.h and
1780 cli/cli-cmds.h.
1781 (_initialize_nto_tdep): Remove.
1782 * nto-tdep.h (struct nto_target_ops) <internal_debugging>:
1783 Remove field.
1784 Remove macro nto_internal_debugging.
1785
1786 2012-08-01 Richard Henderson <rth@redhat.com>
1787
1788 * configure.tgt (m32c-*-*) [gdb_target_obs]: Remove prologue-value.o.
1789 (mep-*-*) [gdb_target_obs]: Likewise.
1790
1791 2012-07-31 Andreas Schwab <schwab@linux-m68k.org>
1792
1793 * ppc-linux-tdep.c (ppc_linux_init_abi): Register
1794 linux_get_siginfo_type.
1795
1796 2012-07-31 Jan Kratochvil <jan.kratochvil@redhat.com>
1797
1798 * infcall.c (call_function_by_hand): Move BP_ADDR comment to
1799 AT_ENTRY_POINT.
1800 (call_function_by_hand) <ON_STACK>: Call write_memory with
1801 gdbarch_breakpoint_from_pc, if possible.
1802 (call_function_by_hand) <AT_ENTRY_POINT>: The BP_ADDR comment is moved
1803 here.
1804
1805 2012-07-31 Yao Qi <yao@codesourcery.com>
1806
1807 * tracepoint.c: Add 'static' for some variables.
1808
1809 2012-07-31 Yao Qi <yao@codesourcery.com>
1810
1811 * go32-nat.c: Declare _initialize_go32_nat.
1812 * ser-go32.c: Declare _initialize_ser_dos.
1813 * top.c (do_chdir_cleanup): Add 'static'.
1814
1815 2012-07-30 Keith Seitz <keiths@redhat.com>
1816
1817 * linespec.c (linespec_lex_number): A number followed
1818 by quotes is a valid number, too.
1819
1820 2012-07-30 Tom Tromey <tromey@redhat.com>
1821
1822 * remote-sim.c (gdb_os_poll_quit): Don't check immediate_quit.
1823
1824 2012-07-30 Ulrich Weigand <ulrich.weigand@linaro.org>
1825
1826 * arm-linux-nat.c (arm_linux_hw_breakpoint_initialize): Do not
1827 attempt to 4-byte-align HW breakpoint addresses for Thumb.
1828
1829 2012-07-30 Andrew Burgess <aburgess@broadcom.com>
1830
1831 * varobj.c (varobj_invalidate_iter): All varobj must be marked as
1832 invalid or reevaluated to prevent prevent references to possibly
1833 delete'd type objects being left in the varobj.
1834
1835 2012-07-27 Tom Tromey <tromey@redhat.com>
1836 Jan Kratochvil <jan.kratochvil@redhat.com>
1837
1838 * copying.awk: Print buffer-read-only and vi ro markers.
1839 * copying.c: Rebuild.
1840 * gdbarch.sh (copyright): Print buffer-read-only and vi ro markers.
1841 * gdbarch.c, gdbarch.h: Rebuild.
1842 * target-descriptions.c (maint_print_c_tdesc_cmd): Print
1843 buffer-read-only and vi ro markers.
1844 * features/arm-with-iwmmxt.c: Rebuild.
1845 * features/arm-with-m-fpa-layout.c: Rebuild.
1846 * features/arm-with-m-vfp-d16.c: Rebuild.
1847 * features/arm-with-m.c: Rebuild.
1848 * features/arm-with-neon.c: Rebuild.
1849 * features/arm-with-vfpv2.c: Rebuild.
1850 * features/arm-with-vfpv3.c: Rebuild.
1851 * features/i386/amd64-avx-linux.c: Rebuild.
1852 * features/i386/amd64-avx.c: Rebuild.
1853 * features/i386/amd64-linux.c: Rebuild.
1854 * features/i386/amd64.c: Rebuild.
1855 * features/i386/i386-avx-linux.c: Rebuild.
1856 * features/i386/i386-avx.c: Rebuild.
1857 * features/i386/i386-linux.c: Rebuild.
1858 * features/i386/i386-mmx-linux.c: Rebuild.
1859 * features/i386/i386-mmx.c: Rebuild.
1860 * features/i386/i386.c: Rebuild.
1861 * features/i386/x32-avx-linux.c: Rebuild.
1862 * features/i386/x32-avx.c: Rebuild.
1863 * features/i386/x32-linux.c: Rebuild.
1864 * features/i386/x32.c: Rebuild.
1865 * features/mips-dsp-linux.c: Rebuild.
1866 * features/mips-linux.c: Rebuild.
1867 * features/mips64-dsp-linux.c: Rebuild.
1868 * features/mips64-linux.c: Rebuild.
1869 * features/rs6000/powerpc-32.c: Rebuild.
1870 * features/rs6000/powerpc-32l.c: Rebuild.
1871 * features/rs6000/powerpc-403.c: Rebuild.
1872 * features/rs6000/powerpc-403gc.c: Rebuild.
1873 * features/rs6000/powerpc-405.c: Rebuild.
1874 * features/rs6000/powerpc-505.c: Rebuild.
1875 * features/rs6000/powerpc-601.c: Rebuild.
1876 * features/rs6000/powerpc-602.c: Rebuild.
1877 * features/rs6000/powerpc-603.c: Rebuild.
1878 * features/rs6000/powerpc-604.c: Rebuild.
1879 * features/rs6000/powerpc-64.c: Rebuild.
1880 * features/rs6000/powerpc-64l.c: Rebuild.
1881 * features/rs6000/powerpc-7400.c: Rebuild.
1882 * features/rs6000/powerpc-750.c: Rebuild.
1883 * features/rs6000/powerpc-860.c: Rebuild.
1884 * features/rs6000/powerpc-altivec32.c: Rebuild.
1885 * features/rs6000/powerpc-altivec32l.c: Rebuild.
1886 * features/rs6000/powerpc-altivec64.c: Rebuild.
1887 * features/rs6000/powerpc-altivec64l.c: Rebuild.
1888 * features/rs6000/powerpc-cell32l.c: Rebuild.
1889 * features/rs6000/powerpc-cell64l.c: Rebuild.
1890 * features/rs6000/powerpc-e500.c: Rebuild.
1891 * features/rs6000/powerpc-e500l.c: Rebuild.
1892 * features/rs6000/powerpc-isa205-32l.c: Rebuild.
1893 * features/rs6000/powerpc-isa205-64l.c: Rebuild.
1894 * features/rs6000/powerpc-isa205-altivec32l.c: Rebuild.
1895 * features/rs6000/powerpc-isa205-altivec64l.c: Rebuild.
1896 * features/rs6000/powerpc-isa205-vsx32l.c: Rebuild.
1897 * features/rs6000/powerpc-isa205-vsx64l.c: Rebuild.
1898 * features/rs6000/powerpc-vsx32.c: Rebuild.
1899 * features/rs6000/powerpc-vsx32l.c: Rebuild.
1900 * features/rs6000/powerpc-vsx64.c: Rebuild.
1901 * features/rs6000/powerpc-vsx64l.c: Rebuild.
1902 * features/rs6000/rs6000.c: Rebuild.
1903 * features/s390-linux32.c: Rebuild.
1904 * features/s390-linux32v1.c: Rebuild.
1905 * features/s390-linux32v2.c: Rebuild.
1906 * features/s390-linux64.c: Rebuild.
1907 * features/s390-linux64v1.c: Rebuild.
1908 * features/s390-linux64v2.c: Rebuild.
1909 * features/s390x-linux64.c: Rebuild.
1910 * features/s390x-linux64v1.c: Rebuild.
1911 * features/s390x-linux64v2.c: Rebuild.
1912 * features/tic6x-c62x-linux.c: Rebuild.
1913 * features/tic6x-c62x.c: Rebuild.
1914 * features/tic6x-c64x-linux.c: Rebuild.
1915 * features/tic6x-c64x.c: Rebuild.
1916 * features/tic6x-c64xp-linux.c: Rebuild.
1917 * features/tic6x-c64xp.c: Rebuild.
1918
1919 2012-07-27 Tom Tromey <tromey@redhat.com>
1920
1921 * c-exp.y (classify_name): Avoid assignment in condition.
1922
1923 2012-07-27 Roland Schwingel <roland.schwingel@onevision.com>
1924
1925 * amd64-windows-tdep.c: Include "frame.h".
1926 (amd64_windows_skip_trampoline_code): New function.
1927 (amd64_windows_init_abi): Add trampoline registration.
1928
1929 2012-07-27 Yao Qi <yao@codesourcery.com>
1930
1931 * tracepoint.c (cur_traceframe_number): Remove.
1932 (set_tfile_traceframe): Remove.
1933 (tfile_trace_find, tfile_fetch_registers): Update callers.
1934 (tfile_xfer_partial, tfile_get_trace_state_variable_value): Likewise.
1935 (tfile_open, tfile_trace_find): Likewise.
1936
1937 2012-07-27 Yao Qi <yao@codesourcery.com>
1938
1939 * thread.c (switch_to_thread): Don't call registers_changed.
1940
1941 2012-07-26 Tom Tromey <tromey@redhat.com>
1942
1943 * Makefile.in (SFILES): Remove objc-exp.y.
1944 (YYFILES): Remove objc-exp.c.
1945 (YYOBJ): Remove objc-exp.o.
1946 (local-maintainer-clean): Don't mention objc-exp.c.
1947 * c-exp.y: Include objc-lang.h.
1948 (%union) <class>: New field.
1949 (NSSTRING, SELECTOR, CLASSNAME, OBJC_LBRAC): New tokens.
1950 (exp): Clone subscript production for OBJC_LBRAC. Add various
1951 Objective C productions.
1952 (msglist, msgarglist, msgarg): New productions.
1953 (array_mod, func_mod, operator): Clone productions for
1954 OBJC_LBRAC.
1955 (parse_string_or_char): Handle '@' strings.
1956 (lex_one_token): Return OBJC_LBRAC. Recognize @selector.
1957 (classify_name): Check la_name_of_this. Recognize ObjC class
1958 names.
1959 * objc-exp.y: Remove.
1960 * objc-lang.c (objc_language_defn): Use c_parse, c_error.
1961 * objc-lang.h (objc_parse, objc_error): Don't declare.
1962
1963 2012-07-26 Markus Metzger <markus.t.metzger@intel.com>
1964
1965 * python/py-inferior.c (infpy_threads): Call update_thread_list ().
1966
1967 2012-07-26 Jan Kratochvil <jan.kratochvil@redhat.com>
1968
1969 * auto-load.c (auto_load_info_scripts): Remove immediate_quit increment
1970 and decrement.
1971
1972 2012-07-26 Tom Tromey <tromey@redhat.com>
1973
1974 * copying.c: Rebuild.
1975 * copying.awk: Don't use immediate_quit. Use 'no_set_class', not
1976 'no_class'.
1977
1978 2012-07-26 Tom Tromey <tromey@redhat.com>
1979
1980 * symmisc.c (print_symbol_bcache_statistics): Use QUIT, not
1981 immediate_quit.
1982 (print_objfile_statistics): Likewise.
1983 (maintenance_print_symbols): Likewise.
1984 (maintenance_print_msymbols): Likewise.
1985 (maintenance_print_objfiles): Likewise.
1986 * psymtab.c (print_partial_symbols): Call QUIT.
1987 (maintenance_print_psymbols): Likewise. Don't modify
1988 immediate_quit.
1989 * copying.c (show_copying_command): Don't modify immediate_quit.
1990 (show_warranty_command): Likewise.
1991 * cli/cli-cmds.c (show_version): Don't modify immediate_quit.
1992
1993 2012-07-26 Keith Seitz <keiths@redhat.com>
1994
1995 * linespec.c (linespec_lexer_lex_number): The input
1996 is also a valid number if the next character is a comma
1997 or colon.
1998
1999 2012-07-26 Joel Brobecker <brobecker@adacore.com>
2000
2001 * NEWS: Document new --enable-libmcheck/--disable-libmcheck
2002 configure options.
2003
2004 2012-07-26 Tristan Gingold <gingold@adacore.com>
2005
2006 * machoread.c: Include gdb_bfd.h.
2007
2008 2012-07-26 Tristan Gingold <gingold@adacore.com>
2009
2010 * dwarf2loc.c (locexpr_describe_location_piece): Use uint64_t for
2011 offset.
2012
2013 2012-07-26 Siddhesh Poyarekar <siddhesh@redhat.com>
2014
2015 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Expand parameter
2016 SIZE to size_t.
2017 (dwarf2_evaluate_loc_desc): Likewise.
2018 (dwarf2_loc_desc_needs_frame): Likewise.
2019 (locexpr_describe_location_1): Likewise.
2020 * dwarf2loc.h (struct dwarf2_locexpr_baton): Make SIZE as
2021 size_t.
2022 (struct dwarf2_loclist_baton): Likewise.
2023 * dwarf2read.c (struct dwarf_block): Likewise.
2024 (dump_die_shallow): Use pulongest to print dwarf_block.size.
2025 (decode_locdesc): Expand SIZE and I to size_t.
2026
2027 2012-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
2028
2029 * contrib/cc-with-tweaks.sh: Put into comment path gdb/contrib/.
2030
2031 2012-07-25 Joel Brobecker <brobecker@adacore.com>
2032
2033 * doublest.c (convert_doublest_to_floatformat): If the exponent
2034 is too small, treat the value as zero. If the exponent is too
2035 large, treat the value as infinity.
2036
2037 2012-07-25 Joel Brobecker <brobecker@adacore.com>
2038
2039 * configure.ac: Add --enable-lmcheck configure option.
2040 * configure: Regenerate.
2041
2042 2012-07-25 Tom Tromey <tromey@redhat.com>
2043
2044 * NEWS: Mention maint info bfds.
2045 * gdb_bfd.c (all_bfds): New global.
2046 (gdb_bfd_ref, gdb_bfd_unref): Update all_bfds.
2047 (print_one_bfd, maintenance_info_bfds, _initialize_gdb_bfd):
2048 New functions.
2049
2050 2012-07-25 Ralf Corsépius <ralf.corsepius@rtems.org>
2051
2052 * configure.tgt: Add v850*-*-rtems*.
2053
2054 2012-07-25 Tom Tromey <tromey@redhat.com>
2055
2056 * macrotab.c (macro_bcache_str): Remove cast.
2057
2058 2012-07-25 Hui Zhu <hui_zhu@mentor.com>
2059
2060 * linespec.c (linespec_lexer_lex_number): Update comments,
2061 change the return and add check to make sure the input is
2062 the decimal numbers.
2063 (linespec_lexer_lex_one): If linespec_lexer_lex_number return
2064 false, call linespec_lexer_lex_string.
2065
2066 2012-07-24 Tom Tromey <tromey@redhat.com>
2067
2068 * symfile.c (symbol_file_add): Don't open BFD twice.
2069
2070 2012-07-24 Marc Khouzam <marc.khouzam@ericsson.com>
2071
2072 * breakpoint.c (create_breakpoint): Store condition for pending
2073 breakpoints.
2074
2075 2012-07-24 Andreas Schwab <schwab@linux-m68k.org>
2076
2077 * m68k-tdep.c (m68k_reg_struct_return_p): Accept complex types.
2078 (m68k_return_value): Handle complex types like structures.
2079 (m68k_svr4_return_value): Likewise.
2080
2081 2012-07-24 Marcus Shawcroft <marcus.shawcroft@arm.com>
2082
2083 * gdb_bfd.c (zlib_decompress_section) <!HAVE_ZLIB_H>: Adjust
2084 parameters to bfd_get_section_name.
2085
2086 2012-07-24 Yao Qi <yao@codesourcery.com>
2087
2088 * cli/cli-setshow.c: Handle case 'var_uinteger'
2089 and 'var_zuninteger' together. Handle case 'var_integer' and
2090 'var_zinteger' together.
2091
2092 2012-07-23 Keith Seitz <keiths@redhat.com>
2093
2094 * linespec.c (convert_linespec_to_sal): Don't add
2095 any symbols to the result vector if symbol_to_sal
2096 returns zero.
2097
2098 2012-07-23 Keith Seitz <keiths@redhat.com>
2099
2100 * linespec.c (decode_objc): Record the function name
2101 in the linespec.
2102
2103 2012-07-23 Tom Tromey <tromey@redhat.com>
2104
2105 * rs6000-nat.c (add_vmap): Rewrite archive loop. Fix reference
2106 counting.
2107 * exec.c (exec_close_1): Unconditionally release vmap's BFD.
2108 (map_vmap): Acquire a reference to the BFD.
2109
2110 2012-07-23 Siddhesh Poyarekar <siddhesh@redhat.com>
2111
2112 * p-valprint.c (pascal_object_print_value): Replace potentially
2113 unsafe alloca with xmalloc/xfree.
2114 * valops.c (search_struct_method): Likewise.
2115
2116 2012-07-23 Tom Tromey <tromey@redhat.com>
2117
2118 * solib-svr4.c (enable_break): Update.
2119 * bfd-target.h (target_bfd_reopen): Update documentation.
2120
2121 2012-07-23 Tom Tromey <tromey@redhat.com>
2122
2123 * symfile.c (separate_debug_file_exists): Update.
2124 (gdb_bfd_open_maybe_remote): Rename from bfd_open_maybe_remote.
2125 (reread_symbols): Update.
2126 * elfread.c (build_id_verify): Update.
2127 * symfile.h (gdb_bfd_open_maybe_remote): Rename from
2128 bfd_open_maybe_remote.
2129
2130 2012-07-23 Tom Tromey <tromey@redhat.com>
2131
2132 * gdb_bfd.c (gdb_bfd_ref, gdb_bfd_unref): Fix comment.
2133
2134 2012-07-23 Tom Tromey <tromey@redhat.com>
2135
2136 * coffread.c (coff_symfile_read): Make a cleanup for 'debugfile'
2137 and 'abfd'.
2138 * elfread.c (elf_symfile_read): Make a cleanup for 'debugfile'
2139 and 'abfd'.
2140 * jit.c (jit_bfd_try_read_symtab): Make a cleanup for 'nbfd'.
2141 * machoread.c (macho_add_oso_symfile): Make a cleanup for
2142 'abfd'.
2143 (macho_symfile_read): Make a cleanup for 'dsym_bfd'.
2144 * objfiles.c (allocate_objfile): Acquire a new reference.
2145 * rs6000-nat.c (add_vmap): Don't acquire a BFD reference.
2146 * solib.c (solib_read_symbols): Don't acquire a BFD reference.
2147 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Make
2148 a cleanup for 'nbfd'.
2149 * symfile-mem.c (symbol_file_add_from_memory): Make a cleanup
2150 for 'nbfd'.
2151 * symfile.c (symbol_file_add_with_addrs_or_offsets): Don't
2152 make a cleanup for 'abfd'.
2153 (symbol_file_add): Make a BFD cleanup.
2154
2155 2012-07-23 Tom Tromey <tromey@redhat.com>
2156
2157 * cli/cli-dump.c (bfd_openr_with_cleanup): Use gdb_bfd_openr.
2158 (bfd_openw_with_cleanup): Use gdb_bfd_openw.
2159 * corelow.c (core_open): Use gdb_bfd_fopen.
2160 * dsrec.c (load_srec): Use gdb_bfd_openr.
2161 * exec.c (exec_file_attach): Use gdb_bfd_fopen.
2162 * gcore.c (gcore_memory_sections): Use gdb_bfd_openw.
2163 * gdb_bfd.c (gdb_bfd_fopen, gdb_bfd_openr, gdb_bfd_openw)
2164 (gdb_bfd_openr_iovec, gdb_bfd_openr_next_archived_file)
2165 (gdb_bfd_fdopenr): New functions.
2166 * gdb_bfd.h (gdb_bfd_fopen, gdb_bfd_openr, gdb_bfd_openw)
2167 (gdb_bfd_openr_iovec, gdb_bfd_openr_next_archived_file)
2168 (gdb_bfd_fdopenr): Declare.
2169 * jit.c (bfd_open_from_target_memory): Use gdb_bfd_openr_iovec.
2170 * m32-rom.c (m32r_load, m32r_upload_command): Use gdb_bfd_openr.
2171 * machoread.c (macho_symfile_read_all_oso): Use gdb_bfd_openr,
2172 gdb_bfd_openr_next_archived_file.
2173 (macho_check_dsym): Use gdb_bfd_openr.
2174 (macho_add_oso_symfile): Don't call gdb_bfd_stash_filename.
2175 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_fdopenr.
2176 * remote-m32r-sdi.c (m32r_load): Use gdb_bfd_openr.
2177 * remote-mips.c (mips_load_srec, pmon_load_fast): Use
2178 gdb_bfd_openr.
2179 * remote.c (remote_bfd_open): Use gdb_bfd_openr_iovec.
2180 * rs6000-nat.c (add_vmap): Use gdb_bfd_openr, gdb_bfd_fdopenr,
2181 gdb_bfd_openr_next_archived_file.
2182 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
2183 Use gdb_bfd_openr.
2184 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
2185 gdb_bfd_openr.
2186 * solib-spu.c (spu_bfd_fopen): Use gdb_bfd_openr_iovec.
2187 * solib.c (solib_bfd_fopen): Use gdb_bfd_fopen.
2188 * spu-linux-nat.c (spu_bfd_open): Use gdb_bfd_openr_iovec.
2189 * symfile.c (bfd_open_maybe_remote): Use gdb_bfd_openr.
2190 (symfile_bfd_open): Use gdb_bfd_fopen.
2191 (generic_load): Use gdb_bfd_openr.
2192 * windows-nat.c (windows_make_so): Use gdb_bfd_openr.
2193
2194 2012-07-23 Tom Tromey <tromey@redhat.com>
2195
2196 * bfd-target.c (target_bfd_reopen): Update.
2197 * cli/cli-dump.c (bfd_openr_with_cleanup)
2198 (bfd_openw_with_cleanup): Update.
2199 * corelow.c (core_open): Update.
2200 * dsrec.c (load_srec): Update.
2201 * exec.c (exec_file_attach): Update.
2202 * gcore.c (create_gcore_bfd): Update.
2203 * gdb_bfd.c (gdb_bfd_ref): Return void.
2204 (gdb_bfd_open): Update.
2205 * gdb_bfd.h (gdb_bfd_ref): Return void.
2206 Update comments.
2207 * jit.c (jit_bfd_try_read_symtab): Update.
2208 * m32r-rom.c (m32r_load, m32r_upload_command): Update.
2209 * machoread.c (macho_symfile_read_all_oso): Update.
2210 (macho_check_dsym): Update.
2211 * procfs.c (insert_dbx_link_bpt_in_file): Update.
2212 * remote-m32r-sdi.c (m32r_load): Update.
2213 * remote-mips.c (mips_load_srec, pmon_load_fast): Update.
2214 * rs6000-nat.c (add_vmap): Update.
2215 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
2216 Update.
2217 * solib-pa64.c (pa64_solib_create_inferior_hook): Update.
2218 * solib-spu.c (spu_bfd_open): Update.
2219 * solib.c (solib_bfd_fopen, solib_read_symbols): Update.
2220 * spu-linux-nat.c (spu_bfd_open): Update.
2221 * symfile.c (bfd_open_maybe_remote, symfile_bfd_open)
2222 (generic_load): Update.
2223 * windows-nat.c (windows_make_so): Update.
2224
2225 2012-07-22 Siddhesh Poyarekar <siddhesh@redhat.com>
2226
2227 * sh-tdep.c (sh_treat_as_flt_p): Remove unused variable LEN.
2228
2229 2012-07-20 Jeff Kenton <jkenton@tilera.com>
2230
2231 * tilegx-linux-tdep.c (tilegx_linux_sigframe_init): Fix
2232 SIGTRAMP_FRAME unwinding.
2233
2234 2012-07-20 Doug Evans <dje@google.com>
2235
2236 * NEWS: Document new options "set/show use-deprecated-index-sections",
2237 and delete reference to --use-deprecated-index-sections.
2238 * symfile.h (use_deprecated_index_sections): Delete.
2239 * dwarf2read.c (use_deprecated_index_sections): Make static.
2240 (read_index_from_section): Update wording of how to load
2241 deprecated index sections.
2242 (_initialize_dwarf2_read): New options
2243 "set/show use-deprecated-index-sections".
2244 * main.c (captured_main): Delete --use-deprecated-index-sections.
2245
2246 2012-07-20 Pedro Alves <palves@redhat.com>
2247
2248 PR threads/11692
2249 PR gdb/12203
2250
2251 * infrun.c (handle_inferior_event) <new thread>: Don't special
2252 case minus_one_ptid.
2253 <TARGET_WAITKIND_SPURIOUS>: Ditto.
2254 * linux-thread-db.c (thread_get_info_callback): Don't return early
2255 if the thread is zombie.
2256 (thread_from_lwp): Change return type to void. Rewrite stale
2257 comment.
2258 (attach_thread): Don't return early if the thread is zombie,
2259 instead set its "dying" flag.
2260 (thread_db_wait): Don't return TARGET_WAITKIND_SPURIOUS anymore.
2261 (find_new_threads_callback): Don't return early if the thread is
2262 zombie.
2263
2264 2012-07-20 Pedro Alves <palves@redhat.com>
2265
2266 * linux-nat.c (linux_nat_wait): Dump the passed in target options.
2267 * target.c (target_wait): Likewise.
2268 (str_comma_list_concat_elem, do_option, target_options_to_string):
2269 New functions.
2270 * target.h (target_options_to_string): Declare.
2271
2272 2012-07-20 Jan Kratochvil <jan.kratochvil@redhat.com>
2273 Tom Tromey <tromey@redhat.com>
2274
2275 * dwarf2read.c (dwarf_decode_macros)
2276 <DW_MACRO_GNU_define_indirect_alt, DW_MACRO_GNU_undef_indirect_alt,
2277 DW_MACRO_GNU_transparent_include_alt>: New cases.
2278 (dwarf_decode_macro_bytes) <DW_MACRO_GNU_define_indirect,
2279 DW_MACRO_GNU_undef_indirect>: Examine 'section_is_dwz'.
2280
2281 2012-07-20 Tom Tromey <tromey@redhat.com>
2282
2283 * dwarf2read.c (try_open_dwo_file): Don't call
2284 gdb_bfd_stash_filename.
2285
2286 2012-07-20 Pedro Alves <palves@redhat.com>
2287
2288 * i386-tdep.c (i386_record_modrm, i386_record_lea_modrm_addr)
2289 (i386_record_lea_modrm, i386_record_push, i386_record_floats)
2290 (i386_process_record): Tweak description comments.
2291
2292 2012-07-20 Pedro Alves <palves@redhat.com>
2293
2294 * i386-tdep.c (i386_record_modrm, i386_record_lea_modrm_addr)
2295 (i386_process_record): Use record_read_memory.
2296 * record.c (record_read_memory): New function.
2297 (record_arch_list_add_mem, record_exec_insn): Use
2298 record_read_memory.
2299 * record.h (record_read_memory): Declare.
2300
2301 2012-07-20 Yao Qi <yao@codesourcery.com>
2302
2303 * cli/cli-setshow.c (do_setshow_command): Don't check pointer is
2304 NULL for xfree.
2305
2306 2012-07-19 Pedro Alves <palves@redhat.com>
2307
2308 * record.c (record_resume): Ask the target beneath to report all
2309 signals.
2310
2311 2012-07-19 Doug Evans <dje@google.com>
2312
2313 * dwarf2read.c (dwarf2_ranges_read): Ignore ranges starting at zero if
2314 there's no section at address zero.
2315 (dwarf2_record_block_ranges): Ditto.
2316
2317 2012-07-19 Yao Qi <yao@codesourcery.com>
2318
2319 * command.h, remote.c: Fix a typo in comment.
2320
2321 2012-07-19 Tom Tromey <tromey@redhat.com>
2322
2323 PR exp/13206:
2324 * ax-gdb.c (gen_expr) <OP_TYPEOF, OP_DECLTYPE>: New cases.
2325 * breakpoint.c (watchpoint_exp_is_const) <OP_TYPEOF,
2326 OP_DECLTYPE>: New cases.
2327 * c-exp.y (TYPEOF, DECLTYPE): New tokens.
2328 (type_exp): Add new productions.
2329 (ident_tokens): Add __typeof__, typeof, __typeof, __decltype,
2330 and decltype.
2331 * eval.c (evaluate_subexp_standard) <OP_TYPEOF, OP_DECLTYPE>:
2332 New case.
2333 * expprint.c (dump_subexp_body_standard) <OP_TYPEOF,
2334 OP_DECLTYPE>: New case.
2335 * parse.c (operator_length_standard) <OP_TYPEOF, OP_DECLTYPE>:
2336 New case.
2337 * std-operator.def (OP_TYPEOF, OP_DECLTYPE): New constants.
2338 * varobj.c (varobj_create): Handle OP_TYPEOF, OP_DECLTYPE.
2339
2340 2012-07-19 Tom Tromey <tromey@redhat.com>
2341
2342 * c-exp.y (enum token_flags): New.
2343 (struct token) <cxx_only>: Remove.
2344 <flags>: New field.
2345 (tokentab3, tokentab2, ident_tokens): Update.
2346 (lex_one_token): Update. Handle FLAG_SHADOW.
2347
2348 2012-07-19 Tom Tromey <tromey@redhat.com>
2349
2350 * ax-gdb.c (gen_expr): Handle UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE.
2351 * breakpoint.c (watchpoint_exp_is_const): Handle UNOP_CAST_TYPE,
2352 UNOP_REINTERPRET_CAST, UNOP_DYNAMIC_CAST.
2353 * c-exp.y (exp): Emit UNOP_MEMVAL_TYPE, UNOP_CAST_TYPE. Update
2354 for changes to UNOP_REINTERPRET_CAST, UNOP_DYNAMIC_CAST. Use
2355 type_exp production where appropriate.
2356 * eval.c (evaluate_subexp_standard) <UNOP_CAST_TYPE>: New case.
2357 <UNOP_DYNAMIC_CAST, UNOP_REINTERPRET_CAST>: Update.
2358 <UNOP_MEMVAL_TYPE>: New case.
2359 (evaluate_subexp_for_address) <UNOP_MEMVAL_TYPE>: New case.
2360 (evaluate_subexp_for_sizeof) <UNOP_MEMVAL_TYPE>: New case.
2361 * expprint.c (print_subexp_standard) <UNOP_CAST_TYPE>: New case.
2362 <UNOP_MEMVAL_TYPE>: New case.
2363 (dump_subexp_body_standard) <UNOP_DYNAMIC_CAST,
2364 UNOP_REINTERPRET_CAST>: Update.
2365 <UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE>: New cases.
2366 * parse.c (operator_length_standard) <UNOP_DYNAMIC_CAST,
2367 UNOP_REINTERPRET_CAST>: Update.
2368 <UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE>: New cases.
2369 * stack.c (return_command): Also check for UNOP_CAST_TYPE.
2370 * std-operator.def (UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE): New
2371 constants.
2372
2373 2012-07-19 Yao Qi <yao@codesourcery.com>
2374 Jan Kratochvil <jan.kratochvil@redhat.com>
2375
2376 * cli/cli-setshow.c (do_setshow_command): Handle case 'var_filename'
2377 and case 'var_optional_filename' together.
2378 * infcmd.c (_initialize_infcmd): Call add_setshow_string_noescape_cmd
2379 instead of add_setshow_optional_filename_cmd for setshow command
2380 'args'. Set completer for 'set args'.
2381
2382 2012-07-18 Doug Evans <dje@google.com>
2383
2384 * common/gdb_vecs.h: Moved here from ./gdb_vecs.h.
2385 * common/gdb_vecs.c: New file, contents from utils.c.
2386 * common/host-defs.h: New file, contents from defs.h.
2387 * utils.h: New file, contents from defs.h.
2388 * defs.h: Move all declarations of objects defined in utils.c
2389 to utils.h (except QUIT() and related).
2390 #include "utils.h", "host-defs.h".
2391 * probe.h (probe_p): Move here from gdb_vecs.h.
2392 * symfile.c: #include "probe.h" instead of "gdb_vecs.h".
2393 * utils.c (free_char_ptr_vec): Moved to common/gdb_vecs.c.
2394 (dirnames_to_char_ptr_vec_append, dirnames_to_char_ptr_vec): Ditto.
2395 * Makefile.in (SFILES): Add common/gdb_vecs.c.
2396 (HFILES_NO_SRCDIR): Add common/gdb_vecs.h, common/host-defs.h, utils.h.
2397 (COMMON_OBS): Add gdb_vecs.o.
2398 (gdb_vecs.o): New rule.
2399
2400 2012-07-18 Keith Seitz <keiths@redhat.com>
2401
2402 * linespec.c (add_sal_to_sals): Add LITERAL_CANONICAL
2403 parameter. If non-zero, use SYMNAME as the canonical name
2404 for the SaL.
2405 Update all callers.
2406 (convert_linespec_to_sals): Use add_sal_to_sals for
2407 expressions, too.
2408 (decode_line_full): No need to "fill in missing canonical names"
2409 anymore. Simply make cleanups for the allocated names.
2410
2411 2012-07-18 Keith Seitz <keiths@redhat.com>
2412
2413 * linespec.c (struct linespec): Constify expression,
2414 source_filename, function_name, and label_name.
2415 (symbol_not_found_error): Make all parameters const.
2416 (linespec_parser_delete): No need to check for NULL
2417 when using xfree. Cast const char * to char * for xfree.
2418
2419 2012-07-18 Keith Seitz <keiths@redhat.com>
2420
2421 * breakpoint.c (invalid_thread_id_error): New function.
2422 (find_condition_and_thread): Use invalid_thread_id_error.
2423 (watch_command_1): Likewise.
2424
2425 2012-07-18 Tom Tromey <tromey@redhat.com>
2426
2427 * cc-with-index.sh, cc-with-dwz.sh: Remove.
2428 * contrib/cc-with-tweaks.sh: New file.
2429
2430 2012-07-18 Tom Tromey <tromey@redhat.com>
2431
2432 * dwarf2read.c (struct dwz_file) <gdb_index>: New field.
2433 (locate_dwz_sections): Recognize .gdb_index.
2434 (create_cus_from_index_list): New function.
2435 (create_cus_from_index): Use it. Handle .dwz data.
2436 (read_index_from_section): New function, extracted from
2437 dwarf2_read_index.
2438 (dwarf2_read_index): Use it. Read .gdb_index from dwz file,
2439 if needed.
2440
2441 2012-07-18 Tom Tromey <tromey@redhat.com>
2442
2443 * dwarf2read.c (struct dwarf2_per_objfile) <dwz_file>: New field.
2444 (struct dwarf2_per_cu_data) <length>: No longer bitfield.
2445 <is_dwz>: New field.
2446 (struct dwz_file): New.
2447 (struct partial_die_info) <is_dwz, spec_is_dwz>: New fields.
2448 (locate_dwz_sections, dwarf2_get_dwz_file)
2449 (get_abbrev_section_for_cu): New functions.
2450 (error_check_comp_unit_head, read_and_check_comp_unit_head)
2451 (read_and_check_type_unit_head): Add abbrev_section argument.
2452 (create_debug_types_hash_table): Update.
2453 (init_cutu_and_read_dies): Use proper abbrev section.
2454 (init_cutu_and_read_dies_no_follow): Likewise.
2455 (set_partial_user): Do nothing if PST==NULL.
2456 (read_comp_units_from_section): New function.
2457 (create_all_comp_units): Use it.
2458 (scan_partial_symbols, partial_die_parent_scope): Update.
2459 (skip_one_die): Handle DW_FORM_GNU_ref_alt, DW_FORM_GNU_strp_alt.
2460 (process_imported_unit_die, read_partial_die): Handle .dwz files.
2461 (find_partial_die): Add offset_in_dwz argument. Update.
2462 (guess_partial_die_structure_name, fixup_partial_die): Update.
2463 (read_attribute_value): Handle DW_FORM_GNU_ref_alt,
2464 DW_FORM_GNU_strp_alt.
2465 (read_indirect_string_from_dwz): New function.
2466 (dwarf2_const_value_attr): Handle DW_FORM_GNU_strp_alt.
2467 (dump_die_shallow): Handle DW_FORM_GNU_ref_alt, DW_FORM_GNU_strp_alt.
2468 (is_ref_attr): Handle DW_FORM_GNU_ref_alt.
2469 (follow_die_offset): Add offset_in_dwz argument.
2470 (follow_die_ref, dwarf2_fetch_die_location_block): Update.
2471 (skip_form_bytes): Handle DW_FORM_GNU_strp_alt.
2472 (dwarf_decode_macro_bytes): Add section_is_dwz argument.
2473 Handle new macro forms.
2474 (dwarf_decode_macros): Update.
2475 (dwarf2_find_containing_comp_unit): Add offset_in_dwz argument.
2476 (dwarf2_per_objfile_free): Unref dwz_bfd, if it exists
2477 (lookup_die_type): Handle DW_FORM_GNU_ref_alt.
2478 (create_debug_types_hash_table): Use correct abbrev section.
2479 (get_debug_line_section): New function.
2480 (dwarf_decode_line_header, dwarf_decode_lines_1): Use it.
2481 (process_full_comp_unit): Pass 'required' argument to
2482 end_symtab_get_static_block.
2483 * buildsym.h (end_symtab_get_static_block): Update.
2484 * buildsym.c (end_symtab_get_static_block): Add 'required'
2485 argument.
2486 (end_symtab, end_expandable_symtab): Update.
2487
2488 2012-07-18 Tom Tromey <tromey@redhat.com>
2489
2490 * dwarf2read.c: Don't include zlib.h or sys/mman.h.
2491 (pagesize): Remove.
2492 (struct dwarf2_section_info) <map_addr, map_len>: Remove.
2493 (zlib_decompress_section): Remove.
2494 (dwarf2_read_section): Use gdb_bfd_map_section.
2495 (munmap_section_buffer): Remove.
2496 (free_dwo_file, dwarf2_per_objfile_free): Don't use
2497 munmap_section_buffer.
2498 * gdb_bfd.c: Include zlib.h, sys/mman.h.
2499 (struct gdb_bfd_section_data): New.
2500 (free_one_bfd_section): New function.
2501 (gdb_bfd_close_or_warn): Use free_one_bfd_section.
2502 (get_section_descriptor, zlib_decompress_section)
2503 (gdb_bfd_map_section): New functions.
2504 * gdb_bfd.h (gdb_bfd_map_section): Declare.
2505
2506 2012-07-18 Tom Tromey <tromey@redhat.com>
2507
2508 * dwarf2read.c (try_open_dwo_file): use gdb_bfd_open.
2509
2510 2012-07-18 Tom Tromey <tromey@redhat.com>
2511
2512 * gdb_bfd.c (struct gdb_bfd_data): New.
2513 (gdb_bfd_cache): New global.
2514 (struct gdb_bfd_cache_search): New.
2515 (hash_bfd, eq_bfd, gdb_bfd_open): New functions.
2516 (gdb_bfd_ref, gdb_bfd_unref): Use gdb_bfd_data.
2517 * gdb_bfd.h (gdb_bfd_open): Declare.
2518
2519 2012-07-18 Tom Tromey <tromey@redhat.com>
2520
2521 * utils.c (make_cleanup_bfd_unref): Rename from
2522 make_cleanup_bfd_close.
2523 * defs.h (make_cleanup_bfd_unref): Rename from
2524 make_cleanup_bfd_close.
2525 * cli/cli-dump.c (bfd_openr_with_cleanup): Update.
2526 (bfd_openw_with_cleanup): Update.
2527 * corelow.c (core_open): Update.
2528 * dsrec.c (load_srec): Update.
2529 * m32r-rom.c (m32r_load, m32r_upload_command): Update.
2530 * remote-m32r-sdi.c (m32r_load): Update.
2531 * remote-mips.c (mips_load_srec): Update.
2532 (pmon_load_fast): Update.
2533 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
2534 Update.
2535 (darwin_bfd_open): Update.
2536 * solib.c (solib_bfd_fopen): Update.
2537 * symfile-mem.c (symbol_file_add_from_memory): Update.
2538 * symfile.c (symbol_file_add_with_addrs_or_offsets): Update.
2539 (symfile_bfd_open): Update.
2540 (generic_load): Update.
2541
2542 2012-07-18 Tom Tromey <tromey@redhat.com>
2543
2544 * remote-mips.c (mips_load_srec): Use make_cleanup_bfd_close.
2545 (pmon_load_fast): Likewise.
2546 * m32r-rom.c (m32r_load): Use make_cleanup_bfd_close.
2547 (m32r_upload_command): Likewise.
2548 * dsrec.c (load_srec): Use make_cleanup_bfd_close.
2549 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
2550 Use make_cleanup_bfd_close.
2551
2552 2012-07-18 Tom Tromey <tromey@redhat.com>
2553
2554 * symfile.c (symfile_bfd_open): Don't copy name. Call
2555 gdb_bfd_stash_filename.
2556 (load_command): Open the new BFD before freeing the old.
2557 (bfd_open_maybe_remote): Call gdb_bfd_stash_filename.
2558 * symfile-mem.c (symbol_file_add_from_memory): Don't copy name.
2559 Call gdb_bfd_stash_filename.
2560 * spu-linux-nat.c (spu_bfd_open): Don't copy name.
2561 * solib-spu.c (spu_bfd_fopen): Don't copy name. Call
2562 gdb_bfd_stash_filename.
2563 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
2564 Free found_pathname.
2565 * rs6000-nat.c (add_vmap): Don't copy filename. Call
2566 gdb_bfd_stash_filename.
2567 * remote.c (remote_bfd_open): Call gdb_bfd_stash_filename.
2568 * machoread.c (macho_add_oso_symfile): Call
2569 gdb_bfd_stash_filename.
2570 (macho_symfile_read_all_oso): Arrange to free archive_name. Call
2571 gdb_bfd_stash_filename.
2572 (macho_check_dsym): Don't copy filename. Call
2573 gdb_bfd_stash_filename.
2574 * jit.c (bfd_open_from_target_memory): Don't copy the filename.
2575 * gdb_bfd.c (gdb_bfd_stash_filename): New function.
2576 * gdb_bfd.h (gdb_bfd_stash_filename): Declare.
2577 * gcore.c (create_gcore_bfd): Call gdb_bfd_stash_filename.
2578 * exec.c (exec_close): Don't free the BFD's filename.
2579 (exec_file_attach): Don't copy the filename. Call
2580 gdb_bfd_stash_filename.
2581 * corelow.c (core_close): Don't free the BFD's filename.
2582 (core_open): Call gdb_bfd_stash_filename.
2583 * corefile.c (reopen_exec_file): Remove #if 0 code.
2584 * solib.c (solib_bfd_fopen): Call gdb_bfd_stash_filename. Free
2585 pathname.
2586 * dwarf2read.c (try_open_dwo_file): Call gdb_bfd_stash_filename.
2587
2588 2012-07-18 Tom Tromey <tromey@redhat.com>
2589
2590 * dwarf2read.c (try_open_dwo_file): Use gdb_bfd_ref and
2591 gdb_bfd_unref.
2592 (free_dwo_file): Use gdb_bfd_unref.
2593 * cli/cli-dump.c: Include gdb_bfd.h.
2594 (bfd_openw_with_cleanup): Use gdb_bfd_ref.
2595 (bfd_openr_with_cleanup): Likewise.
2596 * windows-nat.c (windows_make_so): Use gdb_bfd_ref,
2597 gdb_bfd_unref.
2598 * utils.c: Include gdb_bfd.h.
2599 (do_bfd_close_cleanup): Use gdb_bfd_unref.
2600 * symfile.c: Include gdb_bfd.h.
2601 (separate_debug_file_exists): Use gdb_bfd_unref.
2602 (bfd_open_maybe_remote): Use gdb_bfd_ref.
2603 (symfile_bfd_open): Use gdb_bfd_ref, gdb_bfd_unref.
2604 (generic_load): Use gdb_bfd_ref.
2605 (reread_symbols): Use gdb_bfd_unref.
2606 * symfile-mem.c: Include gdb_bfd.h.
2607 (symbol_file_add_from_memory): Use make_cleanup_bfd_close.
2608 * spu-linux-nat.c (spu_bfd_open): Use gdb_bfd_ref, gdb_bfd_unref.
2609 * solib.c: Include gdb_bfd.h.
2610 (solib_bfd_fopen): Use gdb_bfd_ref.
2611 (solib_bfd_open): Use gdb_bfd_unref.
2612 (free_so_symbols): Use gdb_bfd_unref.
2613 (reload_shared_libraries_1): Use gdb_bfd_unref.
2614 * solib-spu.c: Include gdb_bfd.h.
2615 (spu_bfd_fopen): Use gdb_bfd_ref, gdb_bfd_unref.
2616 * solib-pa64.c (pa64_solib_create_inferior_hook): Use gdb_bfd_ref,
2617 gdb_bfd_unref.
2618 * solib-frv.c: Include gdb_bfd.h.
2619 (enable_break2): Use gdb_bfd_unref.
2620 * solib-dsbt.c: Include gdb_bfd.h.
2621 (enable_break2): Use gdb_bfd_unref.
2622 * solib-darwin.c: Include gdb_bfd.h.
2623 (darwin_solib_get_all_image_info_addr_at_init): Use gdb_bfd_ref,
2624 gdb_bfd_unref.
2625 (darwin_bfd_open): Use gdb_bfd_unref.
2626 * rs6000-nat.c (add_vmap): Use gdb_bfd_ref, gdb_bfd_unref.
2627 * remote-mips.c: Include gdb_bfd.h.
2628 (mips_load_srec): Use gdb_bfd_ref.
2629 (pmon_load_fast): Use gdb_bfd_ref.
2630 * remote-m32r-sdi.c: Include gdb_bfd.h.
2631 (m32r_load): Use gdb_bfd_ref.
2632 * record.c: Include gdb_bfd.h.
2633 (record_save_cleanups): Use gdb_bfd_unref.
2634 (cmd_record_save): Use gdb_bfd_unref.
2635 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_ref,
2636 gdb_bfd_unref.
2637 * objfiles.h (gdb_bfd_close_or_warn): Remove.
2638 (gdb_bfd_ref, gdb_bfd_unref): Move to gdb_bfd.h.
2639 * objfiles.c: Include gdb_bfd.h.
2640 (free_objfile): Use gdb_bfd_unref.
2641 (gdb_bfd_close_or_warn, gdb_bfd_ref, gdb_bfd_unref): Move to
2642 gdb_bfd.c.
2643 * machoread.c (macho_add_oso_symfile): Use gdb_bfd_unref.
2644 (macho_symfile_read_all_oso): Use gdb_bfd_ref, gdb_bfd_unref.
2645 (macho_check_dsym): Likewise.
2646 * m32r-rom.c: Include gdb_bfd.h.
2647 (m32r_load): Use gdb_bfd_ref.
2648 (m32r_upload_command): Use gdb_bfd_ref.
2649 * jit.c: Include gdb_bfd.h.
2650 (jit_bfd_try_read_symtab): Use gdb_bfd_ref, gdb_bfd_unref.
2651 * gdb_bfd.h: New file.
2652 * gdb_bfd.c: New file.
2653 * gcore.c: Include gdb_bfd.h.
2654 (create_gcore_bfd): Use gdb_bfd_ref.
2655 (do_bfd_delete_cleanup): Use gdb_bfd_unref.
2656 (gcore_command): Use gdb_bfd_unref.
2657 * exec.c: Include gdb_bfd.h.
2658 (exec_close): Use gdb_bfd_unref.
2659 (exec_close_1): Use gdb_bfd_unref.
2660 (exec_file_attach): Use gdb_bfd_ref.
2661 * elfread.c: Include gdb_bfd.h.
2662 (build_id_verify): Use gdb_bfd_unref.
2663 * dsrec.c: Include gdb_bfd.h.
2664 (load_srec): Use gdb_bfd_ref.
2665 * corelow.c: Include gdb_bfd.h.
2666 (core_close): Use gdb_bfd_unref.
2667 (core_open): Use gdb_bfd_ref.
2668 * bfd-target.c: Include gdb_bfd.h.
2669 (target_bfd_xclose): Use gdb_bfd_unref.
2670 (target_bfd_reopen): Use gdb_bfd_ref.
2671 * Makefile.in (SFILES): Add gdb_bfd.c.
2672 (HFILES_NO_SRCDIR): Add gdb_bfd.h.
2673 (COMMON_OBS): Add gdb_bfd.o.
2674
2675 2012-07-18 Keith Seitz <keiths@redhat.com>
2676
2677 * breakpoint.c (find_condition_and_thread): Initialize
2678 TASK and REST.
2679 (create_breakpiont): find_condition_and_thread will now
2680 initialize COND_STRING, THREAD, and REST (and TASK).
2681 (addr_string_to_sals): Likewise.
2682
2683 2012-07-18 Pedro Alves <palves@redhat.com>
2684
2685 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_NO_HISTORY>:
2686 Pull the single step breakpoints out of the target.
2687
2688 2012-07-18 Sergio Durigan Junior <sergiodj@redhat.com>
2689
2690 * probe.c (probe_safe_evaluate_at_pc): Rename variable `n_probes'.
2691 * stap-probe.c (compile_probe_arg): Likewise.
2692
2693 2012-07-18 Sergio Durigan Junior <sergiodj@redhat.com>
2694
2695 * elfread.c (elf_get_probe_argument_count): Remove `objfile' argument.
2696 (elf_compile_to_ax): Likewise.
2697 * infrun.c (insert_exception_resume_from_probe): Likewise.
2698 (check_exception_resume): Remove `objfile' variable.
2699 * probe.c (find_probe_by_pc): Remove `objfile' argument.
2700 (struct probe_and_objfile, probe_and_objfile_s): Delete.
2701 (collect_probes): Adjust return value to `VEC (probe_p) *'.
2702 (compare_entries): Rename to...
2703 (compare_probes): ...this. Adjust function to work with
2704 `struct probe *'. Rename variables `ea' and `eb' to `pa' and `pb'
2705 respectively.
2706 (gen_ui_out_table_header_info): Adjust `probes' argument to be
2707 `VEC (probe_p) *'.
2708 (print_ui_out_info): Adjust argument to be `struct probe *'.
2709 (info_probes_for_ops): Adjust internal computations to use
2710 `VEC (probe_p) *'.
2711 (probe_safe_evaluate_at_pc): Refactor to not pass `objfile' anymore.
2712 * probe.h (struct probe_ops) <get_probe_argument_count, compile_to_ax,
2713 gen_info_probes_table_values>: Remove `objfile' argument.
2714 (struct probe) <objfile>: New field.
2715 (find_probe_by_pc): Remove `objfile' argument.
2716 * stap-probe.c (stap_parse_probe_arguments): Likewise.
2717 (stap_get_probe_argument_count): Likewise.
2718 (stap_get_arg): Likewise.
2719 (stap_evaluate_probe_argument): Likewise.
2720 (stap_compile_to_ax): Likewise.
2721 (compile_probe_arg): Refactor not to pass `objfile' anymore.
2722 (handle_stap_probe): Fill `objfile' field from `struct probe'.
2723 (stap_gen_info_probes_table_header): Remove `objfile' argument.
2724 * symfile.h (struct sym_probe_fns) <sym_evaluate_probe_argument,
2725 sym_compile_to_ax>: Likewise.
2726
2727 2012-07-18 Terry Guo <terry.guo@arm.com>
2728
2729 PR 14329
2730 * defs.h (GDB_MI_MSG_WIDTH): New.
2731 * ser_base (ser_base_read_error_fd): New function.
2732 (do_ser_base_readchar): Poll error file descriptor as well as
2733 standard output.
2734 (generic_readchar): Refactor error handling.
2735
2736 2012-07-18 Joel Brobecker <brobecker@adacore.com>
2737
2738 * NEWS: Create a new section for the next release branch.
2739 Rename the section of the current branch, now that it has
2740 been cut.
2741
2742 2012-07-18 Joel Brobecker <brobecker@adacore.com>
2743
2744 GDB 7.5 branch created (branch timestamp: 2012-07-18 03:22 UTC)
2745 * version.in: Bump version to 7.5.50.20120718-cvs.
2746
2747 2012-07-17 Keith Seitz <keiths@redhat.com>
2748
2749 * linespec.c (linespec_parse_line_offset): Make parameter
2750 const.
2751
2752 2012-07-16 Jan Kratochvil <jan.kratochvil@redhat.com>
2753
2754 PR 11914
2755 * f-valprint.c (info_common_command): New variable frame_id.
2756 Reinitialize FI form FRAME_ID after each print_variable_and_value.
2757 * printcmd.c (print_variable_and_value): Extend function comment.
2758 Add comment for invalidated FRAME.
2759 * stack.c (backtrace_command_1): New variable frame_id. Reinitialize
2760 FI form FRAME_ID after each print_frame_local_vars.
2761 (struct print_variable_and_value_data): Change frame to frame_id.
2762 (do_print_variable_and_value): New variable frame, initialize it from
2763 p->frame_id. Add comment for invalidated FRAME.
2764 (print_frame_local_vars, print_frame_arg_vars): New function comment.
2765 Update CB_DATA.FRAME to CB_DATA.FRAME_ID initialization. Add comment
2766 for invalidated FRAME.
2767
2768 2012-07-16 Marc Khouzam <marc.khouzam@ericsson.com>
2769 Pedro Alves <palves@redhat.com>
2770
2771 * linux-nat.c (linux_nat_detach): Don't unregister from the event
2772 loop.
2773
2774 2012-07-16 Tom Tromey <tromey@redhat.com>
2775
2776 * jv-typeprint.c (c_type_print_varspec_suffix): Don't declare.
2777
2778 2012-07-15 Doug Evans <dje@google.com>
2779
2780 * dwarf2read.c (stmt_list_hash): New struct.
2781 (type_unit_group): Embed "per_cu" member, remove pointer.
2782 New union member "t", move member "tus" into it, all uses updated.
2783 New member "hash", replaces member "line_offset, all uses updated.
2784 (quick_file_names): Replace member "offset" with "hash", all uses
2785 updated.
2786 (hash_stmt_list_entry, eq_stmt_list_entry): New functions.
2787 (hash_file_name_entry, eq_file_name_entry): Call them.
2788 (hash_type_unit_group, eq_type_unit_group): Ditto.
2789 (dw2_get_cu, dw2_get_primary_cu): Replace assert with a better one.
2790 (dw2_get_file_names_reader): Fix file name table calculation for TUs.
2791 (dw2_get_file_names): Update.
2792 (create_type_unit_group): Replace "per_cu" arg with "cu".
2793 All callers updated. Fix "quick" (.gdb_index) handling.
2794 (get_type_unit_group): Replace "per_cu" arg with "cu".
2795 All callers updated.
2796 (build_type_unit_groups): Don't reset tu_stats.
2797
2798 * symtab.c (filename_seen_cache): Delete members "tab_alloc_size",
2799 "tab_cur_size". Change member "tab" to be a htab_t.
2800 (create_filename_seen_cache): Update.
2801 (clear_filename_seen_cache, delete_filename_seen_cache): Update.
2802 (filename_seen): Update.
2803
2804 2012-07-13 Doug Evans <dje@google.com>
2805
2806 * symtab.c (filename_seen): Update comment.
2807
2808 2012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2809 Doug Evans <dje@google.com>
2810
2811 * buildsym.c (end_symtab_1): Split it to ...
2812 (end_symtab_get_static_block): ... this ...
2813 (end_symtab_from_static_block): ... and this function.
2814 (end_symtab, end_expandable_symtab): Call them.
2815 * buildsym.h (end_symtab_get_static_block)
2816 (end_symtab_from_static_block): New declarations.
2817 * dwarf2read.c (process_full_comp_unit): New variable static_block.
2818 Set its valid CU ranges.
2819
2820 2012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2821
2822 * dwarf2loc.c (disassemble_dwarf_expression): Handle
2823 DW_OP_GNU_parameter_ref.
2824
2825 2012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2826
2827 * dwarf2read.c (read_call_site_scope): Do not gdb_assert for invalid
2828 read-in CALL_SITE_PARAMETER_PARAM_OFFSET.
2829
2830 2012-07-13 Doug Evans <dje@google.com>
2831
2832 * symtab.c (output_source_filename): Delete unnecessary forward decl.
2833 (filename_seen_cache): New struct.
2834 (INITIAL_FILENAME_SEEN_CACHE_SIZE): New macro.
2835 (create_filename_seen_cache): New function.
2836 (clear_filename_seen_cache, delete_filename_seen_cache): New functions.
2837 (filename_seen): Delete arg "first". New arg "cache". All callers
2838 updated.
2839 (output_source_filename_data): New struct.
2840 (output_source_filename): Delete arg "first". New arg "data".
2841 All callers updated.
2842 (sources_info): Delete local "first". New locals "data", "cleanups".
2843 Rewrite to use filename_seen_cache.
2844 (add_partial_filename_data): Delete member "first". New member
2845 "filename_seen_cache". All uses updated.
2846 (make_source_files_completion_list): Rewrite to use
2847 filename_seen_cache.
2848
2849 2012-07-12 Doug Evans <dje@google.com>
2850
2851 * psymtab.c (map_symbol_filenames_psymtab): Skip shared psymtabs.
2852
2853 2012-07-10 Doug Evans <dje@google.com>
2854
2855 PR gdb/13498
2856 * dwarf2read.c (dwarf2_per_objfile): New members n_type_unit_groups,
2857 all_type_unit_groups, type_unit_groups, tu_stats.
2858 (dwarf2_per_cu_data): Move "imported_symtabs" into new union "s".
2859 All uses updated. Add type_unit_group to union "s".
2860 (type_unit_group): New struct.
2861 (IS_TYPE_UNIT_GROUP): New macro.
2862 (abbrev_table): Delete unused member "section".
2863 (dw2_do_instantiate_symtab): Early exit if type_unit_group.
2864 (dw2_get_cu): Assert not used with type_unit_group.
2865 (dw2_get_primary_cu): New function.
2866 (dw2_build_type_unit_groups_reader): New function.
2867 (dw2_build_type_unit_groups): New function.
2868 (dw2_get_file_names): Assert not called on type units.
2869 (dw2_map_symtabs_matching_filename): Call dw2_build_type_unit_groups.
2870 Redo loop to iterate over type unit groups instead of type units.
2871 (dw2_expand_symtabs_matching, dw2_map_symbol_filenames): Ditto.
2872 (read_abbrev_offset): New function.
2873 (init_cutu_and_read_dies): New arg "abbrev_table". All callers
2874 updated.
2875 (create_partial_symtab): New function.
2876 (process_psymtab_comp_unit_reader): Assert not used with type units.
2877 Call create_partial_symtab.
2878 (process_psymtab_type_unit): Delete.
2879 (hash_type_unit_group, eq_type_unit_group): New functions.
2880 (allocate_type_unit_groups_table): New function.
2881 (NO_STMT_LIST_TYPE_UNIT_PSYMTAB): New macro.
2882 (NO_STMT_LIST_TYPE_UNIT_PSYMTAB_SIZE): New macro.
2883 (create_type_unit_group, get_type_unit_group): New functions.
2884 (tu_abbrev_offset): New struct.
2885 (sort_tu_by_abbrev_offset): New function.
2886 (add_type_unit_group_to_table): New function.
2887 (build_type_unit_groups): New function.
2888 (build_type_psymtabs_reader): New function.
2889 (build_type_psymtab_dependencies): New function.
2890 (build_type_psymtabs): Rewrite.
2891 (scan_partial_symbols): Flag an error if a DW_TAG_imported_unit
2892 is seen in a type unit.
2893 (process_queue): Move symtab expansion debugging printfs here.
2894 Call process_full_type_unit for type units.
2895 (compute_symtab_includes): Assert not called for type units.
2896 (process_cu_includes): Don't call compute_symtab_includes for
2897 type units.
2898 (process_full_type_unit): New function.
2899 (process_imported_unit_die): Flag an error if called for type units.
2900 (handle_DW_AT_stmt_list): Delete arg "want_line_info". All callers
2901 updated. Assert not called for type units.
2902 (read_file_scope): Call dwarf2_start_symtab.
2903 (setup_type_unit_groups): New function.
2904 (read_type_unit_scope): Rewrite.
2905 (abbrev_table_read_table): Initialize abbrev_table->offset.
2906 (abbrev_table_free_cleanup): New function.
2907 (dwarf2_start_symtab): New function.
2908 (load_full_type_unit): Assert not called for type unit groups.
2909 * buildsym.c (finish_block_internal): New arg "expandable".
2910 All callers updated.
2911 (start_symtab): Move most contents to ...
2912 (restart_symtab): ... here. New function.
2913 (reset_symtab_globals): New function.
2914 (end_symtab_1): Renamed from end_symtab. New arg "expandable".
2915 Call reset_symtab_globals.
2916 (end_symtab, end_expandable_symtab): New functions.
2917 (set_missing_symtab, augment_type_symtab): New functions.
2918 * buildsym.h (end_expandable_symtab): Declare.
2919 (augment_type_symtab, restart_symtab): Declare.
2920 * psympriv.h (struct partial_symtab): New member "anonymous".
2921 * psymtab.c (partial_map_symtabs_matching_filename): Ignore
2922 anonymous psymtabs.
2923 (read_psymtabs_with_filename): Ditto.
2924 (map_symbol_filenames_psymtab, psymtab_to_fullname): Ditto.
2925 (expand_symtabs_matching_via_partial): Ditto.
2926 (dump_psymtab): Update.
2927 * dictionary.c (dict_add_pending): New function.
2928 * dictionary.h (dict_add_pending): Declare.
2929
2930 2012-07-09 Doug Evans <dje@google.com>
2931
2932 * buildsym.c (start_subfile): Remove unnecessary check for
2933 name == NULL.
2934
2935 * psymtab.c (allocate_psymtab): Use host_address_to_string.
2936
2937 * dwarf2read.c (load_full_type_unit): Simplify.
2938
2939 * dwarf2read.c (dwarf2_per_objfile): Change type of all_type_units
2940 to struct signatured_type **. All uses updated.
2941
2942 * dwarf2read.c (dwarf2_attr_no_follow): Delete unused arg "cu".
2943 All callers updated.
2944
2945 2012-07-09 Tom Tromey <tromey@redhat.com>
2946
2947 * c-exp.y (check_parameter_typelist): New function.
2948 (parameter_typelist): Call it.
2949 * eval.c (make_params): Handle '(void)' case.
2950 * gdbtypes.c (lookup_function_type_with_arguments): Handle
2951 '(void)' case.
2952
2953 2012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
2954
2955 * common/linux-ptrace.c: Include gdb_assert.h.
2956 <__i386__> (linux_ptrace_test_ret_to_nx_instr): New declaration.
2957 <__i386__>: Include sys/reg.h, sys/mman.h, signal.h, sys/wait.h and
2958 stdint.h.
2959 (linux_ptrace_test_ret_to_nx, linux_ptrace_init_warnings): New
2960 functions.
2961 * common/linux-ptrace.h (linux_ptrace_init_warnings): New declarations.
2962 * linux-nat.c (linux_child_post_attach)
2963 (linux_child_post_startup_inferior): Call linux_ptrace_init_warnings.
2964
2965 2012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
2966
2967 * linux-thread-db.c (thread_db_find_new_threads_silently): Do not apply
2968 nptl <2.7 bug workaround for core files.
2969
2970 2012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
2971
2972 * linux-nat.c (resume_lwp, linux_nat_resume): Remove LP->SIGINFO
2973 clearing.
2974 (save_siginfo): Remove.
2975 (stop_wait_callback, linux_nat_filter_event): Remove the save_siginfo
2976 call.
2977 (resume_stopped_resumed_lwps): Remove LP->SIGINFO clearing.
2978 (linux_nat_get_siginfo): Use PTRACE_GETSIGINFO.
2979 * linux-nat.h (struct lwp_info): Remove field siginfo.
2980
2981 2012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
2982
2983 Code cleanup for the next patch.
2984 * arm-linux-nat.c (arm_linux_stopped_data_address): Change variable
2985 siginfo_p to siginfo, update its users incl. the linux_nat_get_siginfo
2986 call for it.
2987 * ia64-linux-nat.c (ia64_linux_stopped_data_address): Likewise.
2988 (ia64_linux_stopped_data_address):
2989 * linux-nat.c (linux_nat_get_siginfo): Add parameter siginfo, change
2990 the return value.
2991 * linux-nat.h (linux_nat_get_siginfo): Likewise.
2992 * ppc-linux-nat.c (ppc_linux_stopped_data_address): Change variable
2993 siginfo_p to siginfo, update its users incl. the linux_nat_get_siginfo
2994 call for it.
2995
2996 2012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
2997
2998 PR 14321
2999 * findcmd.c (parse_find_args): New variable pattern_buf_size_need.
3000 Increase buffer sizes to 2x we need, not just 2x of the previous size.
3001
3002 2012-07-06 Tom Tromey <tromey@redhat.com>
3003
3004 * c-exp.y (DOTDOTDOT): New token.
3005 (func_mod, exp): Use parameter_typelist.
3006 (parameter_typelist): New production.
3007 (tokentab3): Add "..." token.
3008 * eval.c (make_params): Handle varargs.
3009 * gdbtypes.c (lookup_function_type_with_arguments): Handle
3010 varargs.
3011
3012 2012-07-06 Tom Tromey <tromey@redhat.com>
3013
3014 PR exp/9608:
3015 * c-exp.y (%union) <tvec>: Change type.
3016 (func_mod): Now uses <tvec> type.
3017 (exp): Update for tvec change.
3018 (direct_abs_decl): Push the typelist.
3019 (func_mod): Return a typelist.
3020 (nonempty_typelist): Update for tvec change.
3021 * gdbtypes.c (lookup_function_type_with_arguments): New function.
3022 * gdbtypes.h (lookup_function_type_with_arguments): Declare.
3023 * parse.c (pop_type_list): New function.
3024 (push_typelist): New function.
3025 (follow_types): Handle tp_function_with_arguments.
3026 * parser-defs.h (type_ptr): New typedef. Define a VEC.
3027 (enum type_pieces) <tp_function_with_arguments>: New constant.
3028 (union type_stack_elt) <typelist_val>: New field.
3029 (push_typelist): Declare.
3030
3031 2012-07-06 Tom Tromey <tromey@redhat.com>
3032
3033 * c-exp.y (%union) <type_stack>: New field.
3034 (abs_decl, direct_abs_decl): Use <type_stack> type. Update.
3035 (ptr_operator_ts): New production.
3036 (ptype): Update.
3037 * parse.c (type_stack_reserve): New function.
3038 (check_type_stack_depth): Use it.
3039 (pop_type_stack, append_type_stack, push_type_stack)
3040 (get_type_stack, type_stack_cleanup): New functions.
3041 (follow_types): Handle tp_type_stack.
3042 (_initialize_parse): Simplify initialization.
3043 * parser-defs.h (enum type_pieces) <tp_type_stack>: New
3044 constant.
3045 (union type_stack_elt) <stack_val>: New field.
3046 (get_type_stack, append_type_stack, push_type_stack)
3047 (type_stack_cleanup): Declare.
3048
3049 2012-07-06 Tom Tromey <tromey@redhat.com>
3050
3051 * parser-defs.h (type_stack, type_stack_size, type_stack_depth):
3052 Remove.
3053 (struct type_stack): New.
3054 * parse.c (type_stack, type_stack_size, type_stack_depth):
3055 Remove.
3056 (type_stack): New global.
3057 (parse_exp_in_context, check_type_stack_depth)
3058 (insert_into_type_stack, insert_type, push_type, push_type_int)
3059 (insert_type_address_space, pop_type, pop_type_int)
3060 (_initialize_parse): Update.
3061
3062 2012-07-06 Tom Tromey <tromey@redhat.com>
3063
3064 * c-exp.y (func_mod, direct_abs_decl, abs_decl, ptr_operator):
3065 Remove %type.
3066
3067 2012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
3068
3069 * c-lang.c (c_printstr): Remove ununsed variable WIDTH.
3070
3071 2012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
3072 Jan Kratochvil <jan.kratochvil@redhat.com>
3073
3074 * cp-valprint.c (cp_print_value): Replace potentially unsafe
3075 alloca with xmalloc/xfree.
3076
3077 2012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
3078
3079 * MAINTAINERS (Write After Approval): Add myself to the list.
3080
3081 2012-07-05 Doug Evans <dje@google.com>
3082
3083 * dwarf2read.c (dw2_expand_symtabs_matching): Fix typo.
3084
3085 2012-07-05 Hui Zhu <hui_zhu@mentor.com>
3086
3087 * ax-gdb.c (cli/cli-utils.h): New include.
3088 (linespec.h): Ditto.
3089 (agent_eval_command_one): New function.
3090 (agent_command_1): Ditto.
3091 (agent_command): Call function agent_command_1.
3092 (agent_eval_command): Ditto.
3093 (_initialize_ax_gdb): Change help for "maint agent"
3094 and "maint agent-eval".
3095
3096 2012-07-05 Hui Zhu <hui_zhu@mentor.com>
3097
3098 * breakpoint.c (check_for_argument): Move to file cli/cli-utils.c.
3099 * cli/cli-utils.c (check_for_argument): New function.
3100 * cli/cli-utils.h (check_for_argument): Ditto.
3101
3102 2012-07-04 H.J. Lu <hongjiu.lu@intel.com>
3103
3104 * NEWS: Mention x32 ABI support.
3105
3106 2012-07-04 H.J. Lu <hongjiu.lu@intel.com>
3107
3108 * amd64-tdep.c (amd64_x32_init_abi): Set sp_regnum_from_eax to
3109 AMD64_RSP_REGNUM and pc_regnum_from_eax to AMD64_RIP_REGNUM.
3110
3111 * i386-tdep.c (i386_gdbarch_init): Initialize sp_regnum_from_eax
3112 and pc_regnum_from_eax to -1. Update SP regnum from
3113 sp_regnum_from_eax and PC regnum from pc_regnum_from_eax if
3114 needed.
3115
3116 * i386-tdep.h (gdbarch_tdep): Add sp_regnum_from_eax and
3117 pc_regnum_from_eax.
3118
3119 2012-07-03 Jan Kratochvil <jan.kratochvil@redhat.com>
3120
3121 Fix 'warning: parameter has incomplete type' with gcc-3.4.6.
3122 * dwarf2expr.h: Include gdbtypes.h.
3123 (enum call_site_parameter_kind, union call_site_parameter_u): Remove
3124 these forward declarations.
3125 (cu_offset, sect_offset): Move these ...
3126 * gdbtypes.h: Remove include dwarf2expr.h.
3127 (cu_offset, sect_offset): ... here.
3128
3129 2012-07-03 H.J. Lu <hongjiu.lu@intel.com>
3130
3131 * amd64-linux-tdep.c (linux_sigtramp_code): Renamed to ...
3132 (amd64_linux_sigtramp_code): This.
3133 (amd64_x32_linux_sigtramp_code): New.
3134 (LINUX_SIGTRAMP_LEN): Updated.
3135 (amd64_linux_sigtramp_start): Check x32 sigtramp.
3136
3137 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3138
3139 * linux-thread-db.c (thread_db_new_objfile): Fix comment typos.
3140
3141 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3142
3143 * config.in: Regenerate.
3144 * configure: Regenerate.
3145 * configure.ac: Remove check for gnu/libc-version.h.
3146 * linux-thread-db.c <HAVE_GNU_LIBC_VERSION_H>: Remove include of
3147 gnu/libc-version.h.
3148 (enable_thread_event_reporting) <HAVE_GNU_LIBC_VERSION_H>: Remove
3149 variables libc_version, libc_major and libc_minor. Replace sscanf by
3150 inferior_has_bug. Extend the comment.
3151
3152 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3153
3154 * linux-thread-db.c (inferior_has_bug): New function.
3155 (thread_db_find_new_threads_silently): Return boolean as checked by
3156 inferior_has_bug, describe it in the comments.
3157 (try_thread_db_load_1): Move call to thread_db_find_new_threads_silently
3158 earlier. Abort the initialization if it returned non-zero.
3159 (thread_db_new_objfile): Exclude debug files.
3160 (thread_db_find_new_threads_2): Preinitialize ERR. Check errors also
3161 if UNTIL_NO_NEW,
3162
3163 2012-07-02 Doug Evans <dje@google.com>
3164
3165 * dwarf2read.c (maybe_queue_comp_unit): Move definition next to others
3166 related to queue management.
3167
3168 * dwarf2read.c (create_debug_types_hash_table): Use "debug dwarf2-read"
3169 instead of "debug dwarf2-die" in debugging printfs.
3170 (create_debug_info_hash_table_reader): Ditto.
3171 (create_debug_info_hash_table): Ditto.
3172 (init_dwo_file): Ditto.
3173 (init_cutu_and_read_dies): Add debugging printf.
3174 (init_cutu_and_read_dies_no_follow): Ditto.
3175 (process_psymtab_comp_unit_reader): Ditto.
3176
3177 2012-07-02 Stan Shebs <stan@codesourcery.com>
3178
3179 Add target-side support for dynamic printf.
3180 * NEWS: Mention the additional style.
3181 * breakpoint.h (struct bp_target_info): New fields tcommands, persist.
3182 (struct bp_location): New field cmd_bytecode.
3183 * breakpoint.c: Include format.h.
3184 (disconnected_dprintf): New global.
3185 (parse_cmd_to_aexpr): New function.
3186 (build_target_command_list): New function.
3187 (insert_bp_location): Call it.
3188 (remove_breakpoints_pid): Skip dprintf breakpoints.
3189 (print_one_breakpoint_location): Ditto.
3190 (dprintf_style_agent): New global.
3191 (dprintf_style_enums): Add dprintf_style_agent.
3192 (update_dprintf_command_list): Add agent case.
3193 (agent_printf_command): New function.
3194 (_initialize_breakpoint): Add new commands.
3195 * common/ax.def (printf): New bytecode.
3196 * ax.h (ax_string): Declare.
3197 * ax-gdb.h (gen_printf): Declare.
3198 * ax-gdb.c: Include cli-utils.h, format.h.
3199 (gen_printf): New function.
3200 (maint_agent_print_command): New function.
3201 (_initialize_ax_gdb): Add maint agent-printf command.
3202 * ax-general.c (ax_string): New function.
3203 (ax_print): Add printf disassembly.
3204 * Makefile.in (SFILES): Add format.c
3205 (COMMON_OBS): Add format.o.
3206 * common/format.h: New file.
3207 * common/format.c: New file.
3208 * printcmd.c: Include format.h.
3209 (ui_printf): Call parse_format_string.
3210 * remote.c (remote_state): New field breakpoint_commands.
3211 (PACKET_BreakpointCommands): New enum.
3212 (remote_breakpoint_commands_feature): New function.
3213 (remote_protocol_features): Add new BreakpointCommands entry.
3214 (remote_can_run_breakpoint_commands): New function.
3215 (remote_add_target_side_commands): New function.
3216 (remote_insert_breakpoint): Call it.
3217 (remote_insert_hw_breakpoint): Ditto.
3218 (_initialize_remote): Add new packet configuration for
3219 target-side breakpoint commands.
3220 * target.h (struct target_ops): New field
3221 to_can_run_breakpoint_commands.
3222 (target_can_run_breakpoint_commands): New macro.
3223 * target.c (update_current_target): Handle
3224 to_can_run_breakpoint_commands.
3225
3226 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3227
3228 Execute -ix and -iex only after system and user gdbinit files.
3229 * main.c (captured_main): Move CMDARG_INIT_FILE and CMDARG_INIT_COMMAND
3230 processing down after gdbinit files.
3231
3232 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3233
3234 Add fnmatch-gnu module.
3235 * gnulib/Makefile.in (aclocal_m4_deps): Add new files and remove one.
3236 * gnulib/configure.ac (AC_INIT): Use now import/memmem.c.
3237 * gnulib/aclocal.m4: Regenerate.
3238 * gnulib/config.in: Regenerate.
3239 * gnulib/configure: Regenerate.
3240 * gnulib/import/dummy.c: Remove.
3241 * gnulib/import/Makefile.am: Regenerate.
3242 * gnulib/import/Makefile.in: Likewise.
3243 * gnulib/import/m4/gnulib-cache.m4: Likewise.
3244 * gnulib/import/m4/gnulib-comp.m4: Likewise.
3245 * gnulib/import/alloca.c: New file.
3246 * gnulib/import/alloca.in.h: Likewise.
3247 * gnulib/import/config.charset: Likewise.
3248 * gnulib/import/fnmatch.c: Likewise.
3249 * gnulib/import/fnmatch.in.h: Likewise.
3250 * gnulib/import/fnmatch_loop.c: Likewise.
3251 * gnulib/import/localcharset.c: Likewise.
3252 * gnulib/import/localcharset.h: Likewise.
3253 * gnulib/import/m4/alloca.m4: Likewise.
3254 * gnulib/import/m4/codeset.m4: Likewise.
3255 * gnulib/import/m4/configmake.m4: Likewise.
3256 * gnulib/import/m4/fcntl-o.m4: Likewise.
3257 * gnulib/import/m4/fnmatch.m4: Likewise.
3258 * gnulib/import/m4/glibc21.m4: Likewise.
3259 * gnulib/import/m4/localcharset.m4: Likewise.
3260 * gnulib/import/m4/locale-fr.m4: Likewise.
3261 * gnulib/import/m4/locale-ja.m4: Likewise.
3262 * gnulib/import/m4/locale-zh.m4: Likewise.
3263 * gnulib/import/m4/mbrtowc.m4: Likewise.
3264 * gnulib/import/m4/mbsinit.m4: Likewise.
3265 * gnulib/import/m4/mbsrtowcs.m4: Likewise.
3266 * gnulib/import/m4/mbstate_t.m4: Likewise.
3267 * gnulib/import/m4/stdbool.m4: Likewise.
3268 * gnulib/import/m4/wchar_h.m4: Likewise.
3269 * gnulib/import/m4/wctype_h.m4: Likewise.
3270 * gnulib/import/m4/wint_t.m4: Likewise.
3271 * gnulib/import/mbrtowc.c: Likewise.
3272 * gnulib/import/mbsinit.c: Likewise.
3273 * gnulib/import/mbsrtowcs-impl.h: Likewise.
3274 * gnulib/import/mbsrtowcs-state.c: Likewise.
3275 * gnulib/import/mbsrtowcs.c: Likewise.
3276 * gnulib/import/ref-add.sin: Likewise.
3277 * gnulib/import/ref-del.sin: Likewise.
3278 * gnulib/import/stdbool.in.h: Likewise.
3279 * gnulib/import/streq.h: Likewise.
3280 * gnulib/import/strnlen1.c: Likewise.
3281 * gnulib/import/strnlen1.h: Likewise.
3282 * gnulib/import/verify.h: Likewise.
3283 * gnulib/import/wchar.in.h: Likewise.
3284 * gnulib/import/wctype.in.h: Likewise.
3285
3286 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3287
3288 Support shell wildcards for 'set auto-load safe-path'.
3289 * auto-load.c: Include fnmatch.h.
3290 (filename_is_in_dir): Rename to ...
3291 (filename_is_in_pattern_1, filename_is_in_pattern): ... here and split
3292 it. Update function comment. Rename dir_len to pattern_len. New
3293 variables filename_len, pattern and filename. Add more DEBUG_AUTO_LOAD
3294 messages. Use gdb_filename_fnmatch.
3295 (filename_is_in_auto_load_safe_path_vec): Rename variable dir to
3296 pattern.
3297 (_initialize_auto_load): Extend the "set auto-load safe-path" help text.
3298 * defs.h (gdb_filename_fnmatch): New declaration.
3299 * utils.c: Include fnmatch.h.
3300 (gdb_filename_fnmatch): New function.
3301
3302 2012-07-02 Sergio Durigan Junior <sergiodj@redhat.com>
3303
3304 * breakpoint.c (BREAK_ARGS_HELP): Include help message for the new
3305 `-probe' and `-probe-stap' options.
3306
3307 2012-07-01 Yao Qi <yao@codesourcery.com>
3308
3309 * breakpoint.c: Removed always_inserted_auto, always_inserted_on,
3310 always_inserted_off, and always_inserted_enums.
3311 Change always_inserted_mode's type to 'enum auto_boolean'.
3312 (show_always_inserted_mode, breakpoint_always_inserted_mode): Update
3313 callers.
3314 (_initialize_breakpoint): Call add_setshow_auto_boolean_cmd instead
3315 of add_setshow_enum_cmd.
3316 * infrun.c: Remove can_use_displaced_stepping_auto,
3317 can_use_displaced_stepping_on, can_use_displaced_stepping_off, and
3318 can_use_displaced_stepping_enum.
3319 Change can_use_displaced_stepping's type to 'enum auto_boolean'.
3320 (show_can_use_displaced_stepping, use_displaced_stepping): Update callers.
3321 (_initialize_infrun): Call add_setshow_auto_boolean_cmd instead of
3322 add_setshow_enum_cmd.
3323
3324 2012-06-30 Doug Evans <dje@google.com>
3325
3326 * dwarf2read.c (signatured_type): Make "per_cu" member first.
3327 (init_cutu_and_read_dies): Handle rereading a DWO CU while it's
3328 currently being read. Propagate DW_AT_comp_dir to DWO DIE.
3329
3330 2012-06-29 Doug Evans <dje@google.com>
3331
3332 * linespec.c: #include "stack.h".
3333 (decode_line_with_current_source): Moved here from symtab.c and
3334 renamed from decode_line_spec. All callers updated.
3335 (decode_line_with_last_displayed): Moved here from breakpoint.c and
3336 renamed from decode_line_spec_1. All callers updated.
3337 * linespec.h (decode_line_with_current_source): Move declaration here
3338 from symtab.h and renamed from decode_line_spec.
3339 (decode_line_with_last_displayed): Move declaration here from symtab.h
3340 and renamed from decode_line_spec_1.
3341 * macrocmd.c: #include "linespec.h".
3342 * symtab.c: Remove #include "linespec.h".
3343
3344 2012-06-28 Doug Evans <dje@google.com>
3345
3346 * dwarf2read.c (get_cu_length): New function.
3347 (offset_in_cu_p, error_check_comp_unit_head): Call it.
3348 (create_debug_types_hash_table): Ditto.
3349 (init_cutu_and_read_dies): Ditto.
3350 (init_cutu_and_read_dies_no_follow): Ditto.
3351
3352 * dwarf2read.c (dwarf2_find_base_address): Move definition.
3353
3354 * dwarf2read.c (ABBREV_HASH_SIZE): Remove enclosing #ifndef/#endif.
3355 (struct abbrev_table): Define.
3356 (dwarf2_cu): Replace members dwarf2_abbrevs, abbrev_obstack with
3357 abbrev_table.
3358 (init_cutu_and_read_dies): Update.
3359 (abbrev_table_alloc_abbrev): New function. Replaces
3360 dwarf_alloc_abbrev. All callers updated.
3361 (abbrev_table_add_abbrev): New function.
3362 (abbrev_table_lookup_abbrev): New function. Replaces
3363 dwarf2_lookup_abbrev. All callers updated.
3364 (abbrev_table_read_table): New function. Contents moved here from
3365 dwarf2_read_abbrevs.
3366 (dwarf2_read_abbrevs): Call it.
3367 (abbrev_table_free): New function.
3368 (dwarf2_free_abbrev_table): Call it.
3369
3370 2012-06-28 Stan Shebs <stan@codesourcery.com>
3371
3372 * osdata.c (info_osdata_command): Filter out "Title" columns
3373 from non-MI uses.
3374 * common/linux-osdata.c (struct osdata_type): Add title field.
3375 (osdata_table): Add titles to each entry.
3376 (linux_command_xfer_osdata): Add a column for title data.
3377
3378 2012-06-28 Stan Shebs <stan@codesourcery.com>
3379
3380 Make logging work for MI.
3381 * NEWS: Mention it.
3382 * interps.h (interp_set_logging_ftype): New typedef.
3383 (struct interp_procs): New field set_logging_proc.
3384 (current_interp_set_logging): Declare.
3385 * interps.c (current_interp_set_logging): New function.
3386 * cli/cli-logging.c: Include interps.h.
3387 (set_logging_redirect): Call current_interp_set_logging.
3388 (pop_output_files): Ditto.
3389 (handle_redirections): Ditto, plus skip ui-out redirect if MI.
3390 * mi/mi-console.h (mi_console_set_raw): Declare.
3391 * mi/mi-console.c (mi_console_set_raw): New function.
3392 * mi/mi-interp.c (saved_raw_stdout): New global.
3393 (mi_set_logging): New function.
3394 (_initialize_mi_interp): Add it to interp procs.
3395
3396 2012-06-28 Doug Evans <dje@google.com>
3397
3398 * symtab.c (lookup_symbol_aux_objfile): Use
3399 ALL_OBJFILE_PRIMARY_SYMTABS.
3400
3401 * gdbtypes.c (lookup_typename): Rename local variable "tmp" to "type".
3402
3403 2012-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3404
3405 * common/buffer.c: Include inttypes.h and stdint.h.
3406 (buffer_xml_printf): Use PRId64, PRIu64, PRIx64 and PRIo64.
3407
3408 2012-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3409 Pedro Alves <palves@redhat.com>
3410
3411 * gdbthread.h (ALL_THREADS): New macro.
3412 (thread_list): Declare.
3413 * infrun.c (handle_inferior_event) <spurious signal>: Don't keep
3414 going, but instead fall through to the stepping handling.
3415 * linux-nat.c (resume_lwp): New parameter 'signo'. Resume with
3416 the passed in signal. Adjust debug output.
3417 (resume_callback): Rename to ...
3418 (linux_nat_resume_callback): ... this. Pass the thread's last
3419 stop signal, if in "pass" state.
3420 (linux_nat_resume): Adjust to rename.
3421 (stop_wait_callback): New assertion. Don't respawn signals;
3422 instead let the LWP remain with SIGNALLED set.
3423 (linux_nat_wait_1): Remove flushing of pending SIGSTOPs.
3424 * remote.c (append_pending_thread_resumptions): New.
3425 (remote_vcont_resume): Call it.
3426 * target.h (target_resume): Extend comment.
3427
3428 2012-06-28 Iain Sandoe <iain@codesourcery.com>
3429
3430 * auxv.c (fprint_target_auxv): Handle extended cache data tags.
3431
3432 2012-06-27 Doug Evans <dje@google.com>
3433
3434 * dwarf2read.c (dwarf2_cu): Add ranges_base.
3435 Delete have_addr_base, unused. All uses updated.
3436 (init_cutu_and_read_dies): Process DW_AT_GNU_ranges_base.
3437 (dwarf2_get_pc_bounds): Add ranges_base.
3438 (dwarf2_record_block_ranges): Ditto.
3439
3440 2012-06-27 Tom Tromey <tromey@redhat.com>
3441
3442 PR macros/7961:
3443 * varobj.c (varobj_create): Update.
3444 (varobj_set_value): Update.
3445 * tracepoint.c (validate_actionline): Update.
3446 (encode_actions_1): Update.
3447 * parse.c (parse_exp_1): Add 'pc' argument.
3448 (parse_exp_in_context): Add 'pc' argument. Change how
3449 expression_context_pc is set.
3450 (parse_expression): Update.
3451 (parse_field_expression): Update.
3452 * expression.h (parse_exp_1): Update.
3453 * eval.c (parse_to_comma_and_eval): Update.
3454 * breakpoint.c (set_breakpoint_condition): Update.
3455 (update_watchpoint): Update.
3456 (init_breakpoint_sal): Update
3457 (find_condition_and_thread): Update.
3458 (watch_command_1): Update.
3459 (update_breakpoint_locations): Update.
3460 * ada-lang.c (ada_read_renaming_var_value): Update.
3461 (create_excep_cond_exprs): Update.
3462
3463 2012-06-27 Doug Evans <dje@google.com>
3464
3465 * dwarf2read.c (per_cu_header_read_in): Simplify, and handle
3466 type units.
3467
3468 2012-06-26 Doug Evans <dje@google.com>
3469
3470 * dwarf2read.c (read_and_check_comp_unit_head): Delete unnecessary
3471 prototype.
3472 (error_check_comp_unit_head): New arg abbrev_section. All callers
3473 updated.
3474 (read_and_check_comp_unit_head): Ditto.
3475 (read_and_check_type_unit_head): Ditto.
3476
3477 2012-06-26 Siva Chandra Reddy <sivachandra@google.com>
3478
3479 New attribute 'last' for gdb.Symtab_and_line.
3480 * NEWS (Python Scripting): Add entry about the new attribute.
3481 * python/py-symtab.c (salpy_get_last): New function which
3482 implements the get method for the 'last' attribute of
3483 gdb.Symtab_and_line.
3484 (sal_object_getset): Add entry for the 'last' attribute.
3485
3486 2012-06-26 Doug Evans <dje@google.com>
3487
3488 * dwarf2read.c (dwo_section_names): Add macinfo_dwo, macro_dwo.
3489 (dwo_sections): Add macinfo, macro.
3490 (dwarf2_locate_dwo_sections): Watch for macro sections.
3491 (dwarf_decode_macros): Remove args lh, abfd, section, section_name.
3492 All callers updated. Handle DWO files.
3493
3494 * NEWS: Mention new options "set debug dwarf2-read" and
3495 "set debug symtab-create".
3496 * dwarf2read.c (dwarf2_read_debug): New static global.
3497 (dwarf2_build_psymtabs_hard): Add debugging printfs.
3498 (process_queue): Ditto.
3499 (process_full_comp_unit): Ditto.
3500 (_initialize_dwarf2_read): Add new option "set debug dwarf2-read".
3501 * elfread.c (elf_symfile_read): Add debugging printf.
3502 * minsyms.c (install_minimal_symbols): Ditto.
3503 * psymtab.c (allocate_psymtab): Ditto.
3504 * symfile.c (allocate_symtab): Ditto.
3505 * symtab.c (symtab_create_debug): New global.
3506 (_initialize_symtab): Add new option "set debug symtab-create".
3507 * symtab.h (symtab_create_debug): Declare.
3508
3509 * dwarf2read.c (lookup_dwo_comp_unit): Enhance comment.
3510 (lookup_dwo_type_unit): Ditto.
3511
3512 2012-06-26 Roland McGrath <roland@hack.frob.com>
3513 H.J. Lu <hongjiu.lu@intel.com>
3514
3515 * amd64-linux-nat.c: Include <sys/user.h>.
3516 (ps_get_thread_area): Use PTRACE_PEEKUSER to get fs_base/gs_base
3517 if HAVE_STRUCT_USER_REGS_STRUCT_FS_BASE or
3518 HAVE_STRUCT_USER_REGS_STRUCT_GS_BASE is defined.
3519
3520 * configure.ac: Check if the fs_base and gs_base members of
3521 `struct user_regs_struct' exist.
3522 * config.in: Regenerated.
3523 * configure: Likewise.
3524
3525 2012-06-25 Michael Eager <eager@eagercon.com>
3526
3527 PR python/14291
3528 * python/python.c (gdbpy_write): Check for interrupted output.
3529
3530 2012-06-25 Greta Yorsh <greta.yorsh@arm.com>
3531
3532 * arm-tdep.c (arm_in_function_epilogue_p): Recognize POP with a single
3533 register as a stack alignment in ARM mode.
3534
3535 2012-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3536
3537 Update gnulib to GIT commit a39f53ccb70a613e647e1019fb4c63645220267e.
3538 * gnulib/config.in: Regenerate.
3539 * gnulib/configure: Likewise.
3540 * gnulib/import/m4/extensions.m4: Update it.
3541 * gnulib/import/m4/gnulib-common.m4: Likewise.
3542 * gnulib/import/m4/memmem.m4: Likewise.
3543 * gnulib/import/m4/mmap-anon.m4: Likewise.
3544 * gnulib/import/m4/multiarch.m4: Likewise.
3545 * gnulib/import/stdint.in.h: Likewise.
3546
3547 2012-06-24 Yao Qi <yao@codesourcery.com>
3548
3549 * corefile.c (write_memory_with_notification): New.
3550 * gdbcore.h: Declare write_memory_with_notification.
3551 * ada-lang.c (ada_value_assign): Replace 'write_memory' and
3552 'observer_notify_memory_changed' with 'write_memory_with_notification'.
3553 * valops.c (value_assign): Likewise.
3554 * python/py-inferior.c (infpy_write_memory): Call
3555 'write_memory_with_notification'.
3556
3557 2012-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3558
3559 * cc-with-index.sh: Use also -ex "set auto-load no".
3560
3561 2012-06-23 Doug Evans <dje@google.com>
3562
3563 PR 14125
3564 * NEWS: Document additions to .gdb_index.
3565 * dwarf2read.c: #include "gdb/gdb-index.h".
3566 (DW2_GDB_INDEX_SYMBOL_STATIC_SET_VALUE): New macro.
3567 (DW2_GDB_INDEX_SYMBOL_KIND_SET_VALUE): New macro.
3568 (DW2_GDB_INDEX_CU_SET_VALUE): New macro.
3569 (dwarf2_read_index): Recognize version 7.
3570 (dw2_do_expand_symtabs_matching): New args want_specific_block,
3571 block_kind, domain): All callers updated.
3572 (dw2_find_symbol_file): Handle new index CU values.
3573 (dw2_expand_symtabs_matching): Match symbol kind if requested.
3574 (add_index_entry): New args is_static, kind. All callers updated.
3575 (offset_type_compare, uniquify_cu_indices): New functions
3576 (symbol_kind): New function.
3577 (write_psymtabs_to_index): Remove duplicate CU values.
3578 (write_psymtabs_to_index): Write .gdb_index version 7.
3579
3580 2012-06-22 Joel Brobecker <brobecker@adacore.com>
3581
3582 * configure.ac (build_warnings): Add -Wdeclaration-after-statement.
3583 * configure: Regenerate.
3584
3585 2012-06-20 Yao Qi <yao@codesourcery.com>
3586
3587 * python/py-inferior.c: Update comments of infpy_read_memory
3588 and infpy_write_memory.
3589
3590 2012-06-19 Tom Tromey <tromey@redhat.com>
3591
3592 PR exp/9514:
3593 * parser-defs.h (insert_type, insert_type_address_space): Declare.
3594 (push_type_address_space): Remove.
3595 * parse.c (insert_into_type_stack): New function.
3596 (insert_type): Likewise.
3597 (insert_type_address_space): Rename from push_type_address_space.
3598 Insert tp_space_identifier.
3599 * c-exp.y (ptr_operator): New production.
3600 (abs_decl): Use ptr_operator.
3601 (space_identifier): Call insert_type_address_space.
3602 (ptype): Don't use const_or_volatile_or_space_identifier.
3603 (const_or_volatile_noopt): Call insert_type.
3604 (conversion_type_id, conversion_declarator): New productions.
3605 (operator): Use conversion_type_id.
3606
3607 2012-06-18 Doug Evans <dje@google.com>
3608
3609 * symtab.h (minimal_symbol): New member created_by_gdb.
3610 * elfread.c (elf_symtab_read): Set created_by_gdb for @plt minsym
3611 created by gdb.
3612 * symtab.c (lookup_symbol_in_objfile_from_linkage_name): New function.
3613 (search_symbols): Call it instead of lookup_symbol.
3614 Skip symbols created by gdb. Only scan minsyms if nfiles == 0.
3615
3616 * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_const_index.
3617 Adjust address for DW_OP_GNU_addr_index.
3618 * dwarf2expr.h (dwarf_expr_context): Update comment.
3619 * dwarf2loc.c (locexpr_describe_location_piece): New arg per_cu,
3620 all callers updated. Handle TLS vars described with
3621 DW_OP_GNU_const_index.
3622 (disassemble_dwarf_expression): Handle DW_OP_GNU_addr_index
3623 and DW_OP_GNU_const_index.
3624 * dwarf2read.c (decode_locdesc): Handle DW_OP_GNU_addr_index.
3625
3626 * block.c (find_block_in_blockvector): Make explicit the fact that we
3627 ignore GLOBAL_BLOCK.
3628
3629 2012-06-18 Tom Tromey <tromey@redhat.com>
3630
3631 * c-exp.y (operator): Remove trailing space after "delete" and
3632 "delete[]".
3633
3634 2012-06-18 Mark Kettenis <kettenis@gnu.org>
3635 Jan Kratochvil <jan.kratochvil@redhat.com>
3636
3637 Switch i386 and derived targets to ON_STACK.
3638 * amd64-dicos-tdep.c (amd64_dicos_push_dummy_code): Remove.
3639 (amd64_dicos_init_abi): Remove its installment.
3640 * dicos-tdep.c (dicos_init_abi): Remove the
3641 set_gdbarch_call_dummy_location call. Update the comment here.
3642 * i386-dicos-tdep.c (i386_dicos_push_dummy_code): Remove.
3643 (i386_dicos_init_abi): Remove its installment.
3644 * i386-tdep.c (i386_push_dummy_code): New function.
3645 (i386_gdbarch_init): Call set_gdbarch_call_dummy_location, install
3646 i386_push_dummy_code.
3647
3648 2012-06-18 Jan Kratochvil <jan.kratochvil@redhat.com>
3649
3650 Remove stale dummy frames.
3651 * breakpoint.c: Include dummy-frame.h.
3652 (longjmp_breakpoint_ops): New variable.
3653 (update_breakpoints_after_exec, breakpoint_init_inferior): Delete also
3654 bp_longjmp_call_dummy.
3655 (bpstat_what, bptype_string, print_one_breakpoint_location)
3656 (init_bp_location): Support bp_longjmp_call_dummy.
3657 (set_longjmp_breakpoint): Use longjmp_breakpoint_ops. Comment why.
3658 (set_longjmp_breakpoint_for_call_dummy)
3659 (check_longjmp_breakpoint_for_call_dummy, longjmp_bkpt_dtor): New
3660 functions.
3661 (initialize_breakpoint_ops): Initialize longjmp_breakpoint_ops.
3662 * breakpoint.h (enum bptype): New item bp_longjmp_call_dummy. Delete
3663 FIXME comment and extend the other comment for bp_call_dummy.
3664 (set_longjmp_breakpoint_for_call_dummy)
3665 (check_longjmp_breakpoint_for_call_dummy): New declarations.
3666 * dummy-frame.c: Include gdbthread.h.
3667 (pop_dummy_frame_bpt): New function.
3668 (pop_dummy_frame): Call pop_dummy_frame_bpt.
3669 (dummy_frame_discard): New function.
3670 (cleanup_dummy_frames): Update the comment about longjmps.
3671 * dummy-frame.h (dummy_frame_discard): New declaration.
3672 * gdbthread.h (struct thread_info): Extend initiating_frame comment.
3673 * infcall.c (call_function_by_hand): New variable longjmp_b. Call
3674 set_longjmp_breakpoint_for_call_dummy. Chain its breakpoints with BPT.
3675 * infrun.c (handle_inferior_event) <BPSTAT_WHAT_CLEAR_LONGJMP_RESUME>:
3676 Add case 4 comment. Call check_longjmp_breakpoint_for_call_dummy and
3677 keep_going if IS_LONGJMP and there is no other reason to stop.
3678
3679 2012-06-18 Greta Yorsh <Greta.Yorsh@arm.com>
3680
3681 * remote-sim.c (sim_command_completer): Initialize
3682 variable 'result'.
3683
3684 2012-06-17 Jan Kratochvil <jan.kratochvil@redhat.com>
3685
3686 * dwarf2expr.c (execute_stack_op): Support DW_OP_GNU_parameter_ref.
3687 * dwarf2loc.c (call_site_parameter_matches): Support
3688 CALL_SITE_PARAMETER_PARAM_OFFSET.
3689 (needs_dwarf_reg_entry_value): Push stub value.
3690 * dwarf2read.c (read_call_site_scope): New variable origin. Support
3691 CALL_SITE_PARAMETER_PARAM_OFFSET and its DW_AT_abstract_origin.
3692 * gdbtypes.h (enum call_site_parameter_kind): New item
3693 CALL_SITE_PARAMETER_PARAM_OFFSET.
3694 (struct call_site.parameter.u): New field param_offset.
3695
3696 2012-06-17 Jan Kratochvil <jan.kratochvil@redhat.com>
3697
3698 Code cleanup: Generalize call_site.parameter key.
3699 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_entry_value>: Remove
3700 variable dwarf_reg. New variable kind_u. Update parameters to
3701 push_dwarf_reg_entry_value.
3702 (ctx_no_push_dwarf_reg_entry_value): Update parameters.
3703 * dwarf2expr.h (enum call_site_parameter_kind)
3704 (union call_site_parameter_u): Forward declarations.
3705 (struct dwarf_expr_context_funcs): Update parameters and their
3706 description for push_dwarf_reg_entry_value.
3707 (ctx_no_push_dwarf_reg_entry_value): Update parameters.
3708 * dwarf2loc.c (call_site_parameter_matches): New function.
3709 (dwarf_expr_reg_to_entry_parameter): Update parameters and their
3710 description. Use call_site_parameter_matches.
3711 (dwarf_expr_push_dwarf_reg_entry_value, value_of_dwarf_reg_entry):
3712 Update parameters and their description.
3713 (value_of_dwarf_block_entry): Remove variables dwarf_reg and fb_offset.
3714 New variable kind_u. Adjust the caller for updated parameters.
3715 (needs_dwarf_reg_entry_value): Update parameters.
3716 * dwarf2read.c (read_call_site_scope): New variable loc. Use it
3717 instead of attr. Update for the changed fields of struct
3718 call_site_parameter.
3719 * gdbtypes.h: Include dwarf2expr.h.
3720 (enum call_site_parameter_kind): New.
3721 (struct call_site.parameter): New field kind. Wrap dwarf_reg and
3722 fb_offset into new union u.
3723
3724 2012-06-16 H.J. Lu <hongjiu.lu@intel.com>
3725
3726 * amd64-tdep.c (amd64_x32_analyze_stack_align): New function.
3727 (amd64_analyze_prologue): Call amd64_x32_analyze_stack_align
3728 for x32.
3729
3730 2012-06-16 H.J. Lu <hongjiu.lu@intel.com>
3731
3732 * amd64-linux-nat.c (compat_x32_clock_t): New.
3733 (compat_x32_siginfo_t): Likewise.
3734 (compat_x32_siginfo_from_siginfo): Likewise.
3735 (siginfo_from_compat_x32_siginfo): Likewise.
3736 (amd64_linux_siginfo_fixup): Call compat_x32_siginfo_from_siginfo
3737 and siginfo_from_compat_x32_siginfo for x32.
3738
3739 2012-06-15 Hui Zhu <hui_zhu@mentor.com>
3740
3741 * tracepoint.c (tfile_xfer_partial): Add a lseek.
3742
3743 2012-06-15 H.J. Lu <hongjiu.lu@intel.com>
3744
3745 * amd64-linux-nat.c (ps_get_thread_area): Check bits_per_word
3746 instead of gdbarch_ptr_bit.
3747 * amd64-nat.c (amd64_native_gregset_reg_offset): Likewise.
3748 (amd64_supply_native_gregset): Likewise.
3749 (amd64_collect_native_gregset): Likewise.
3750 * amd64-tdep.c (amd64_supply_fxsave): Likewise.
3751 (amd64_supply_xsave): Likewise.
3752 (amd64_collect_fxsave): Likewise.
3753 (amd64_collect_xsave): Likewise.
3754
3755 2012-06-15 H.J. Lu <hongjiu.lu@intel.com>
3756
3757 * amd64-linux-nat.c (AMD64_LINUX_X32_DS): New.
3758 (amd64_linux_read_description): Check DS segment register for
3759 x32 process.
3760
3761 2012-06-15 Tom Tromey <tromey@redhat.com>
3762
3763 * dwarf2read.c (dw2_find_symbol_file): Unconditionally use
3764 init_cutu_and_read_dies.
3765
3766 2012-06-15 Iain Sandoe <iain@codesourcery.com>
3767
3768 * MAINTAINERS (Write After Approval): Add myself to the list.
3769
3770 2012-06-15 Tom Tromey <tromey@redhat.com>
3771
3772 * valops.c (value_find_oload_method_list): Now static.
3773 * value.h (value_find_oload_method_list): Don't declare.
3774
3775 2012-06-15 Tom Tromey <tromey@redhat.com>
3776
3777 * valops.c (find_overload_match): Use value_ind.
3778
3779 2012-06-15 Maciej W. Rozycki <macro@codesourcery.com>
3780
3781 * infrun.c (handle_inferior_event): Correct indentation.
3782
3783 2012-06-14 Doug Evans <dje@google.com>
3784
3785 * dwarf2loc.c (debug_loc_kind): Add DEBUG_LOC_START_LENGTH.
3786 (DEBUG_LOC_START_END): Renamed from DEBUG_LOC_NORMAL.
3787 All uses updated.
3788 (decode_debug_loc_dwo_addresses): New arg "byte_order". All callers
3789 updated. Handle DEBUG_LOC_START_LENGTH.
3790 (dwarf2_find_location_expression): Handle DEBUG_LOC_START_LENGTH.
3791 (loclist_describe_location): Ditto.
3792
3793 2012-06-14 Maciej W. Rozycki <macro@codesourcery.com>
3794
3795 PR backtrace/13866
3796 * infrun.c (handle_inferior_event): Re-fetch frame and gdbarch
3797 after hiding inline functions.
3798
3799 2012-06-13 Joel Brobecker <brobecker@adacore.com>
3800
3801 * inf-ttrace.c (_initialize_hppa_hpux_nat): Rename into
3802 _initialize_inf_ttrace.
3803
3804 2012-06-13 Joel Brobecker <brobecker@adacore.com>
3805
3806 * ia64-hpux-nat.c (_initialize_ia64_hpux_nat): Renames
3807 _initialize_hppa_hpux_nat.
3808
3809 2012-06-13 Joel Brobecker <brobecker@adacore.com>
3810
3811 * remote-sim.c (sim_command_completer): Change type of return
3812 value to "VEC (char_ptr) *". Adjust implementation accordingly.
3813
3814 2012-06-13 Mark Kettenis <kettenis@gnu.org>
3815 Jan Kratochvil <jan.kratochvil@redhat.com>
3816
3817 PR tdep/14222
3818 * i386-tdep.c (i386_push_dummy_call): Unconditionally align the
3819 stack on a 16-byte boundary.
3820
3821 2012-06-13 Kaushik Srenevasan <kaushik@twitter.com>
3822
3823 * jit.c (finalize_symtab): Set function's return type to 'void' by
3824 default.
3825
3826 2012-06-13 Mark Kettenis <kettenis@gnu.org>
3827 H.J. Lu <hongjiu.lu@intel.com>
3828
3829 * amd64-linux-tdep.c (amd64_linux_init_abi_common): New function.
3830 Move bits common to both the classic LP64 and the new x32 ILP32
3831 ABI here.
3832 (amd64_linux_init_abi): Call amd64_linux_init_abi_common.
3833 (amd64_x32_linux_init_abi): New function.
3834 (_initialize_amd64_linux_tdep): Register osabi for bfd_mach_x64_32
3835 subtype.
3836
3837 * i386-tdep.h (i386_pseudo_register_name): New prototype.
3838 * i386-tdep.c (i386_pseudo_register_name): Make public.
3839 * amd64-tdep.h (amd64_x32_init_abi): New prototype.
3840 * amd64-tdep.c (amd64_dword_names): Add "eip".
3841 (amd64_x32_pseudo_register_type): New function
3842 (amd64_x32_init_abi): New function.
3843
3844 2012-06-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3845
3846 PR build/14003
3847 * inferior.h (struct inferior_suspend_state): Comment out.
3848 (struct inferior): Comment out the field suspend.
3849 * infrun.c (struct infcall_suspend_state): Comment out the field
3850 inferior_suspend.
3851 (save_infcall_suspend_state, restore_infcall_suspend_state): Comment
3852 out its assignment.
3853
3854 2012-06-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3855
3856 PR c++/14177 - Fix parsing TYPENAME:: in parentheses.
3857 * c-exp.y (classify_inner_name): Remove caller assumptions in the
3858 function comment. Return ERROR for unresolved cases. Implement
3859 returning proper NAME.
3860 (yylex): Accept also NAME from classify_inner_name.
3861 * cp-namespace.c (cp_lookup_nested_type): Rename to ...
3862 (cp_lookup_nested_symbol): ... here. Return any found symbol, not just
3863 LOC_TYPEDEF type.
3864 * cp-support.h (cp_lookup_nested_type): Update its declaration.
3865
3866 2012-06-13 Tom Tromey <tromey@redhat.com>
3867
3868 * breakpoint.c (condition_completer): New function.
3869 (_initialize_breakpoint): Use it.
3870 * value.c (complete_internalvar): New function.
3871 * value.h (complete_internalvar): Declare.
3872
3873 2012-06-13 Tom Tromey <tromey@redhat.com>
3874
3875 * ada-lang.c (ada_make_symbol_completion_list): Return a VEC.
3876 * breakpoint.c (catch_syscall_completer): Return a VEC.
3877 * cli/cli-cmds.c (complete_command): Update.
3878 * cli/cli-decode.c (complete_on_cmdlist): Return a VEC.
3879 (complete_on_enum): Likewise.
3880 * command.h: Include gdb_vecs.h.
3881 (completer_ftype): Change return type.
3882 (complete_on_cmdlist, complete_on_enum): Likewise.
3883 * completer.c (noop_completer, filename_completer)
3884 (location_completer): Return a VEC.
3885 (add_struct_fields): Remove 'nextp' argument. Change 'output'
3886 to a VEC.
3887 (expression_completer, complete_line_internal, complete_line)
3888 (command_completer): Return a VEC.
3889 (gdb_completion_word_break_characters, line_completion_function):
3890 Update.
3891 * completer.h: Include gdb_vecs.h.
3892 (complete_line, noop_completer, filename_completer)
3893 (expression_completer, location_completer, command_completer):
3894 Update.
3895 * f-lang.c (f_word_break_characters): Return a VEC.
3896 * interps.c (interpreter_completer): Return a VEC.
3897 * language.h (struct language_defn)
3898 <la_make_symbol_completion_list>: Return a VEC.
3899 * python/py-cmd.c (cmdpy_completer): Return a VEC.
3900 * symtab.c (free_completion_list): Take a VEC.
3901 (return_val_size, return_val_index): Remove.
3902 (return_val): Now a VEC.
3903 (completion_list_add_name): Update.
3904 (default_make_symbol_completion_list_break_on)
3905 (default_make_symbol_completion_list, make_symbol_completion_list)
3906 (make_symbol_completion_list_fn, make_file_symbol_completion_list):
3907 Return a VEC.
3908 (add_filename_to_list): Update.
3909 (struct add_partial_filename_data) <list_used, list_alloced>: Remove.
3910 <list>: Now a VEC.
3911 (maybe_add_partial_symtab_filename): Update.
3912 (make_source_files_completion_list): Return a VEC.
3913 * symtab.h (default_make_symbol_completion_list_break_on)
3914 (default_make_symbol_completion_list, make_symbol_completion_list)
3915 (make_symbol_completion_list_fn, make_file_symbol_completion_list)
3916 (make_source_files_completion_list): Update.
3917
3918 2012-06-13 Tom Tromey <tromey@redhat.com>
3919
3920 * breakpoint.c (add_catch_command): Use completer_ftype.
3921 * breakpoint.h: Include command.h.
3922 (add_catch_command): Use completer_ftype.
3923 * cli/cli-decode.c (set_cmd_completer): Use completer_ftype.
3924 * cli/cli-decode.h (struct cmd_list_element) <completer>:
3925 Use completer_ftype.
3926 * command.h (completer_ftype): New typedef.
3927 (set_cmd_completer): Use it.
3928 * python/py-cmd.c (struct cmdpy_completer) <completer>: Use
3929 completer_ftype.
3930
3931 2012-06-13 Pedro Alves <palves@redhat.com>
3932
3933 Partial revert of previous change.
3934
3935 * serial.c (scb_base): New global.
3936 (serial_for_fd): New.
3937 (serial_open, serial_fdopen_ops): Link new serial in open serials
3938 chain.
3939 (do_serial_close): Unlink serial from the open serials chain.
3940
3941 2012-06-12 Pedro Alves <palves@redhat.com>
3942
3943 * infrun.c (infrun_thread_stop_requested_callback): Don't switch
3944 threads here.
3945 (prepare_for_detach): No longer context switch here in non-stop
3946 mode.
3947 (fetch_inferior_event): Ditto.
3948 (handle_inferior_event) <STOP_QUIETLY || NO_STOP_QUIETLY>: Switch
3949 to the event thread before removing breakpoints. Switch to the
3950 event thread before inserting breakpoints and resuming.
3951 (handle_inferior_event) <TARGET_WAITKIND_SPURIOUS>: Switch to the
3952 event thread before resuming.
3953 (handle_inferior_event) <stepping_past_singlestep_breakpoint>:
3954 Switch to the event thread before removing breakpoints.
3955
3956 2012-06-12 Eli Zaretskii <eliz@gnu.org>
3957
3958 * infcmd.c (construct_inferior_arguments) [__MINGW32__]: Quote
3959 special characters correctly for the Windows shells. See
3960 http://sourceware.org/ml/gdb/2012-06/msg00047.html for the bug
3961 report.
3962 [!__MINGW32__]: Remove extra double quote character from special
3963 characters.
3964
3965 2012-06-11 Stan Shebs <stan@codesourcery.com>
3966
3967 * ui-out.h: Remove #if 0 declarations.
3968 * ui-out.c: Remove #if 0 functions.
3969
3970 2012-06-11 Pedro Alves <palves@redhat.com>
3971
3972 * ser-base.c (run_async_handler_and_reschedule): New.
3973 (fd_event, push_event): Use it.
3974 * serial.c (serial_open, serial_fdopen_ops): Set the initial
3975 reference count to 1.
3976 (do_serial_close): Set the bufp field to NULL. Use serial_unref
3977 instead of xfree.
3978 (serial_is_open, serial_ref, serial_unref): New.
3979 * serial.h (serial_open): Adjust comment.
3980 (serial_is_open): Declare.
3981 (serial_close): Adjust comment.
3982 (serial_ref, serial_unref) Declare.
3983 (struct serial): New field 'refcnt'.
3984
3985 2012-06-11 Pedro Alves <palves@redhat.com>
3986
3987 Remove #if 0'd "connect" command, and unnecessary associated
3988 refcounting and serial reuse bits.
3989
3990 * serial.h (struct serial): Remove fields 'next' and 'refcnt'.
3991 * serial.c (last_serial_opened): Delete.
3992 (scb_base): Delete.
3993 (serial_open): Adjust.
3994 (serial_for_fd): Delete.
3995 (serial_fdopen_ops, do_serial_close): Adjust.
3996 (serial_fdopen_ops): Adjust.
3997
3998 2012-06-11 Pedro Alves <palves@redhat.com>
3999
4000 * serial.c (do_serial_close): Remove early return when SCB is
4001 null.
4002
4003 2012-06-11 Tom Tromey <tromey@redhat.com>
4004
4005 * dwarf2read.c (dw2_get_file_names_reader): Ignore partial units.
4006
4007 2012-06-11 Jan Kratochvil <jan.kratochvil@redhat.com>
4008
4009 Fix regression by the "ambiguous linespec" series.
4010 * breakpoint.c (parse_breakpoint_sals): New variable cursal. Use
4011 get_last_displayed_symtab and get_last_displayed_line and depending
4012 on CURSAL.
4013
4014 2012-06-11 Tom Tromey <tromey@redhat.com>
4015
4016 * dwarf2read.c (dw2_get_primary_filename_reader): New function.
4017 (dw2_find_symbol_file): Use it.
4018
4019 2012-06-11 Michael Eager <eager@eagercon.com>
4020
4021 * mips-linux-tdep.c (mips_gdb_signal_from_target): New
4022 * mips-linux-tdep.h (mips_signals): New
4023
4024 2012-06-11 Tom Tromey <tromey@redhat.com>
4025
4026 * infrun.c (handle_inferior_event)
4027 <BPSTAT_WHAT_SET_LONGJMP_RESUME>: Don't delete the step-resume
4028 breakpoint.
4029 <BPSTAT_WHAT_CLEAR_LONGJMP_RESUME>: Remove longjmp logic; use
4030 exception logic in all cases. Update comments.
4031 (insert_longjmp_resume_breakpoint): Set the exception resume
4032 breakpoint.
4033
4034 2012-06-11 Maciej W. Rozycki <macro@codesourcery.com>
4035
4036 * mips-tdep.c (mips_push_dummy_code): Handle microMIPS code.
4037
4038 2012-06-09 Siva Chandra Reddy <sivachandra@google.com>
4039
4040 * valarith.c (binop_types_user_defined_p): Fix a typo.
4041
4042 2012-06-08 Yao Qi <yao@codesourcery.com>
4043 Chung-Lin Tang <cltang@codesourcery.com>
4044
4045 * arch-utils.c (default_return_in_first_hidden_param_p): New.
4046 * arch-utils.h: Declare.
4047 * gdbarch.sh: Add return_in_first_hidden_param_p.
4048 * gdbarch.c, gdbarch.h: Regenerated.
4049 * infcall.c (call_function_by_hand): Call
4050 gdbarch_return_in_first_hidden_param_p instead of
4051 language_pass_by_reference.
4052
4053 * m68k-tdep.c (m68k_return_in_first_hidden_param_p): New.
4054 (m68k_gdbarch_init): Install m68k_return_in_first_hidden_param_p.
4055 * sh-tdep.c (sh_return_in_first_hidden_param_p): New.
4056 (sh_gdbarch_init): Install sh_return_in_first_hidden_param_p.
4057 * tic6x-tdep.c (tic6x_push_dummy_call): Remove local variable
4058 `cplus_return_struct_by_reference'.
4059 (tic6x_return_value): Handle language cplusplus.
4060 (tic6x_return_in_first_hidden_param_p): New.
4061 (tic6x_gdbarch_init): Install tic6x_return_in_first_hidden_param_p.
4062
4063 2012-06-07 Doug Evans <dje@google.com>
4064
4065 * dwarf2read.c (dwarf2_cu): Add comment.
4066
4067 2012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
4068
4069 * mips-tdep.c (mips_pseudo_register_type): Remove tdep local
4070 variable.
4071 (mips_eabi_push_dummy_call): Likewise.
4072 (mips_n32n64_push_dummy_call): Likewise.
4073 (mips_o32_push_dummy_call): Likewise.
4074 (mips_o64_push_dummy_call): Likewise.
4075
4076 2012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
4077
4078 * mips-tdep.c (mips_convert_register_p): Correct coding style.
4079
4080 2012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
4081
4082 * mips-tdep.c (mips_pseudo_register_type): Use
4083 mips_float_register_p.
4084
4085 2012-06-06 Pedro Alves <palves@redhat.com>
4086
4087 * infrun.c (handle_inferior_event): Remove calls to
4088 reinit_frame_cache that follow a context_switch call.
4089
4090 2012-06-06 Pedro Alves <palves@redhat.com>
4091
4092 * infrun.c (handle_inferior_event) <deferred_step_ptid>: Use
4093 context_switch and remove stale comment.
4094
4095 2012-06-06 Pedro Alves <palves@redhat.com>
4096
4097 * infrun.c (struct execution_control_state): Remove
4098 `new_thread_event' field.
4099 (handle_inferior_event): Simplify new threads handling; don't
4100 resume the inferior if we find a new thread.
4101
4102 2012-06-06 Thomas Schwinge <thomas@codesourcery.com>
4103
4104 * NEWS: Document the deprecation of SH's 'regs' command.
4105 * inferior.h (all_registers_info): Add function declaration.
4106 * sh-tdep.c (sh_show_regs): Remove variable.
4107 (sh_generic_show_regs, sh3_show_regs, sh2e_show_regs, sh2a_show_regs)
4108 (sh2a_nofpu_show_regs, sh3e_show_regs, sh3_dsp_show_regs)
4109 (sh4_show_regs, sh4_nofpu_show_regs, sh_dsp_show_regs)
4110 (sh_show_regs_command): Remove functions.
4111 (sh_gdbarch_init): Don't set sh_show_regs.
4112 (_initialize_sh_tdep): Make the 'regs' command an deprecated alias to
4113 'info all-registers'.
4114 * sh64-tdep.c (sh64_show_media_regs, sh64_show_compact_regs)
4115 (sh64_show_regs): Remove functions.
4116 * sh64-tdep.h (sh64_show_regs): Remove function declaration.
4117
4118 2012-06-06 Jan Kratochvil <jan.kratochvil@redhat.com>
4119
4120 * configure.ac: Move development=true below AC_INIT.
4121 * configure: Regenerate.
4122
4123 2012-06-05 Stan Shebs <stan@codesourcery.com>
4124
4125 * mi/mi-interp.c (mi_interpreter_init): Set raw_stdout from
4126 gdb_stdout.
4127
4128 2012-06-05 Siddhesh Poyarekar <siddhesh@redhat.com>
4129
4130 * corefile.c (read_memory, read_stack, write_memory): Accept LEN
4131 argument as ssize_t.
4132 * gdbcore.h (read_memory, read_stack, write_memory): Likewise.
4133 * remote.c (remote_write_bytes_aux, remote_write_bytes): Likewise.
4134 * target.c (target_read_stack, target_write_memory)
4135 (target_write_raw_memory): Likewise.
4136 * target.h (target_read_stack, target_write_memory)
4137 (target_write_raw_memory): Likewise.
4138
4139 2012-06-05 Jan Kratochvil <jan.kratochvil@redhat.com>
4140
4141 * symfile-mem.c: Change gdb_static_assert to ssize_t.
4142 (target_read_memory_bfd): Cast gdb_assert LEN to ssize_t.
4143 * target.c (target_read_memory): Change LEN to ssize_t.
4144 * target.h (target_read_memory): Change LEN to ssize_t.
4145
4146 2012-06-05 Pedro Alves <palves@redhat.com>
4147
4148 PR backtrace/13866
4149
4150 * breakpoint.c (until_break_command): Only fetch the selected
4151 frame after decode_line_1.
4152
4153 2012-06-05 Joakim Tjernlund <Joakim.Tjernlund@transmode.se>
4154
4155 * solib-svr4.c (enable_break): Don't fallback to setting the solib
4156 event breakpoint at _start, __start or main if a program
4157 interpreter is not found.
4158
4159 2012-06-05 Joel Brobecker <brobecker@adacore.com>
4160
4161 * windows-tdep.h (windows_iterate_over_objfiles_in_search_order):
4162 Add declaration.
4163 * windows-tdep.c: #include "objfiles.h".
4164 (windows_iterate_over_objfiles_in_search_order): New function.
4165 * amd64-windows-tdep.c (amd64_windows_init_abi): Set
4166 iterate_over_objfiles_in_search_order gdbarch method to
4167 windows_iterate_over_objfiles_in_search_order.
4168 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Likewise.
4169
4170 2012-06-05 Joel Brobecker <brobecker@adacore.com>
4171
4172 * gdbarch.sh: Add generation of
4173 "iterate_over_objfiles_in_search_order_cb_ftype" typedef in
4174 gdbarch.h. Add include of "objfiles.h" in gdbarch.c.
4175 (iterate_over_objfiles_in_search_order): New gdbarch method.
4176 * gdbarch.h, gdbarch.c: Regenerate.
4177 * objfiles.h (default_iterate_over_objfiles_in_search_order):
4178 Add declaration.
4179 * objfiles.c (default_iterate_over_objfiles_in_search_order):
4180 New function.
4181 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
4182 out of lookup_symbol_aux_symtabs.
4183 (lookup_symbol_aux_symtabs): Replace extracted-out code by
4184 call to lookup_symbol_aux_objfile.
4185 (struct global_sym_lookup_data): New type.
4186 (lookup_symbol_global_iterator_cb): New function.
4187 (lookup_symbol_global): Search for symbol using
4188 gdbarch_iterate_over_objfiles_in_search_order and
4189 lookup_symbol_global_iterator_cb.
4190 * findvar.c (struct minsym_lookup_data): New type.
4191 (minsym_lookup_iterator_cb): New function.
4192 (default_read_var_value) [case LOC_UNRESOLVED]: Resolve the
4193 symbol's address via gdbarch_iterate_over_objfiles_in_search_order
4194 and minsym_lookup_iterator_cb.
4195
4196 2012-06-05 Joel Brobecker <brobecker@adacore.com>
4197
4198 Revert the following patch:
4199 * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
4200 try locating the symbol in the symbol's own objfile first, before
4201 extending the search to all objfiles.
4202 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
4203 out of lookup_symbol_aux_symtabs.
4204 (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
4205 Replace extracted-out code by call to lookup_symbol_aux_objfile.
4206 Do not search EXCLUDE_OBJFILE.
4207 (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
4208 (lookup_symbol_global): Search for matches in the block's objfile
4209 first, before searching all other objfiles.
4210
4211 2012-06-05 Joel Brobecker <brobecker@adacore.com>
4212
4213 * breakpoint.c (find_condition_and_thread): Stop parsing
4214 as soon as the first invalid keyword is found.
4215
4216 2012-06-05 Joel Brobecker <brobecker@adacore.com>
4217
4218 * copyright.py (EXCLUDE_LIST): Add 'gdb/CONTRIBUTE' to list.
4219
4220 2012-06-05 Joel Brobecker <brobecker@adacore.com>
4221
4222 * config/djgpp/djcheck.sh: Add copyright header.
4223
4224 2012-06-05 Joel Brobecker <brobecker@adacore.com>
4225
4226 * copyright.py (update_files, main): Fix path to update-copyright
4227 script.
4228
4229 2012-06-05 Joel Brobecker <brobecker@adacore.com>
4230
4231 * copyright.py (MULTIPLE_COPYRIGHT_HEADERS): New constant.
4232 (main): Add MULTIPLE_COPYRIGHT_HEADERS to the list of files
4233 for which a reminder to update by hand is printed.
4234
4235 2012-06-04 Doug Evans <dje@google.com>
4236
4237 * buildsym.c (make_blockvector): Add comment.
4238
4239 2012-06-04 Pedro Alves <palves@redhat.com>
4240
4241 * arch-utils.c (default_gdb_signal_from_target): Delete.
4242 * arch-utils.h (default_gdb_signal_from_target): Delete.
4243 * corelow.c (core_open) <signal mapping>: Extended comment. Check
4244 gdbarch_gdb_signal_from_target_p.
4245 * gdbarch.sh (gdb_signal_from_target): Make it an M method (with
4246 predicate).
4247 * gdbarch.h: Regenerate.
4248 * gdbarch.c: Regenerate.
4249
4250 2012-06-04 Pedro Alves <palves@redhat.com>
4251
4252 * gdbarch.sh (gdb_signal_from_target): Mention that the
4253 implementation of the method must be host independent.
4254 * gdbarch.h: Regenerate.
4255
4256 2012-06-04 Jan Kratochvil <jan.kratochvil@redhat.com>
4257
4258 * symfile-mem.c: 3 new gdb_static_assert for target_read_memory_bfd
4259 parameters.
4260 (target_read_memory_bfd): New function.
4261 (symbol_file_add_from_memory): Use it.
4262
4263 2012-06-03 Doug Evans <dje@google.com>
4264
4265 * symtab.c (lookup_global_symbol_from_objfile): Only scan blockvector
4266 of primary symtab.
4267 (basic_lookup_transparent_type): Ditto.
4268
4269 * objfiles.h (ALL_OBJFILE_PRIMARY_SYMTABS): New macro.
4270 (ALL_PRIMARY_SYMTABS): Use it.
4271 (ALL_PSPACE_PRIMARY_SYMTABS): Ditto.
4272 * dwarf2read.c (dw2_find_symbol_file): Ditto.
4273 * linespec.c (iterate_over_all_matching_symtabs): Ditto.
4274 * symtab.c (lookup_symbol_aux_objfile): Ditto.
4275 (basic_lookup_transparent_type): Ditto.
4276
4277 2012-06-02 Sergio Durigan Junior <sergiodj@redhat.com>
4278
4279 * symtab.c (symbol_demangled_name): New variable `dem_name'. Use
4280 it to optimize resolution of demangled name.
4281
4282 2012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4283
4284 * configure.ac (development): Define new variable.
4285 Call AC_CHECK_LIB for mcheck if $development.
4286 (ERROR_ON_WARNING): Enable it by default only if $development.
4287 * config.in: Regenerate.
4288 * configure: Regenerate.
4289
4290 2012-06-01 Siddhesh Poyarekar <siddhesh@redhat.com>
4291
4292 * target.c (target_read_memory): Make LEN argument as size_t.
4293 * target.h (target_read_memory): Likewise.
4294
4295 2012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4296
4297 * tilegx-linux-tdep.c (tilegx_l): Use ULL for 64-bit values.
4298
4299 2012-05-31 Edjunior Machado <emachado@linux.vnet.ibm.com>
4300
4301 * ppc-linux-nat.c (have_ptrace_booke_interface): Disable ptrace
4302 BookE interface for PowerPC server processors if not available
4303 in the Linux Kernel.
4304
4305 2012-05-31 Keith Seitz <keiths@redhat.com>
4306
4307 * linespec.c (decode_objc): Add cleanup to free
4308 INFO.FILE_SYMTABS.
4309 (find_linespec_symbols): Add cleanup to free CLASSES.
4310 * symfile.c (find_separate_debug_file_by_debuglink): Add
4311 cleanup to free DEBUGLINK.
4312 * ui-out.c (clear_header_list): No need to check if
4313 HEADER_NEXT.COLHDR is NULL.
4314 Free HEADER_NEXT.COL_NAME.
4315
4316 2012-05-31 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
4317
4318 * ada-lang.c (standard_lookup): Prevent uninitialized variable
4319 warning.
4320
4321 2012-05-30 Jeff Kenton <jkenton@tilera.com>
4322
4323 * configure.host (gdb_host_cpu): Handle tilegx*.
4324 (gdb_host): Handle tilegx-*-linux*.
4325 * tilegx-linux-nat.c: New file.
4326 * config/tilegx/linux.mh: New file.
4327
4328 2012-05-30 Jeff Kenton <jkenton@tilera.com>
4329
4330 * Makefile.in (ALL_TARGET_OBJS): Add tilegx-tdep.o and
4331 tilegx-linux-tdep.o.
4332 (ALLDEPFILES): Add tilegx-linux-nat.c, tilegx-tdep.c and
4333 tilegx-linux-tdep.c.
4334 * configure.tgt: Handle tilegx-*-linux*.
4335 * tilegx-tdep.h: New file.
4336 * tilegx-tdep.c: New file.
4337 * tilegx-linux-tdep.c: New file.
4338 * regformats/reg-tilegx.dat: New file.
4339
4340 2012-05-30 Edjunior Machado <emachado@linux.vnet.ibm.com>
4341
4342 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): fix
4343 accounting of hw watchpoints on ppc.
4344
4345 2012-05-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
4346
4347 * source.c (openp): Expand tilde in path entries.
4348
4349 2012-05-29 Doug Evans <dje@google.com>
4350
4351 * buildsym.c (block_compar): Fix comment.
4352 (end_symtab): Fix and clarify some comments.
4353
4354 * stabsread.h (cleanup_undefined_stabs_types): Renamed from
4355 cleanup_undefined_types.
4356 * stabsread.c (cleanup_undefined_stabs_types): Ditto.
4357 All callers updated.
4358
4359 2012-05-29 Tom Tromey <tromey@redhat.com>
4360
4361 * symfile.c (symfile_bfd_open): Don't close desc if bfd_fopen
4362 fails.
4363 * solib.c (solib_bfd_fopen): Don't close fd if bfd_fopen fails.
4364 * exec.c (exec_file_attach): Don't close scratch_chan if bfd_fopen
4365 fails.
4366 * dwarf2read.c (try_open_dwo_file): Don't close fd if bfd_fopen
4367 fails.
4368
4369 2012-05-29 Tristan Gingold <gingold@adacore.com>
4370
4371 * solib-darwin.c (dyld_all_image_addr, dyld_all_image): Move into...
4372 (struct darwin_info): ... New struct.
4373 (solib_darwin_pspace_data): New variable.
4374 (darwin_pspace_data_cleanup): New function.
4375 (get_darwin_info): Likewise.
4376 (darwin_dyld_version_ok, darwin_load_image_infos)
4377 (darwin_solib_get_all_image_info_addr_at_init)
4378 (darwin_solib_read_all_image_info_addr): Add info argument.
4379 Adjust code.
4380 (darwin_current_sos): Use per pspace structure.
4381 (darwin_solib_create_inferior_hook): Likewise.
4382 (darwin_clear_solib): Likewise.
4383 (_initialize_darwin_solib): Initialize solib_darwin_pspace_data.
4384
4385 2012-05-28 Pedro Alves <palves@redhat.com>
4386
4387 * infrun.c (wait_for_inferior): Move ecss and ecs locals to the
4388 block that uses them. Clear ecss before handling each event.
4389
4390 2012-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4391
4392 * solib-svr4.c (svr4_current_sos): New comment on
4393 svr4_current_sos_via_xfer_libraries fall back.
4394
4395 2012-05-24 Jan Kratochvil <jan.kratochvil@redhat.com>
4396
4397 * psymtab.c (lookup_symbol_aux_psymtabs): New variable stab_best. Use
4398 it as a fallback for TYPE_IS_OPAQUE.
4399 * symfile.h (struct quick_symbol_functions): Mention TYPE_OPAQUE
4400 symbols for lookup_symbol.
4401
4402 2012-05-24 John Steele Scott <toojays@toojays.net>
4403
4404 PR symtab/13277: Resolving opaque structures in ICC generated binaries.
4405 * dwarf2read.c (struct dwarf2_cu) <producer_is_icc>: New field.
4406 (producer_is_gxx_lt_4_6): Move the checking and caching to...
4407 (check_producer): ... this new function, which also checks for ICC
4408 and caches the result.
4409 (producer_is_icc): New function.
4410 (read_structure_type): Don't set TYPE_STUB_SUPPORTED if the
4411 producer was ICC.
4412
4413 2012-05-24 Pedro Alves <palves@redhat.com>
4414
4415 PR gdb/7205
4416
4417 * arch-utils.c (default_gdb_signal_to_host): Rename to ...
4418 (default_gdb_signal_to_target): ... this. Add comment.
4419 (default_gdb_signal_from_host): Rename to ...
4420 (default_gdb_signal_from_target): ... this. Add comment.
4421 * arch-utils.h (default_gdb_signal_to_host): Rename to ...
4422 (default_gdb_signal_to_target): ... this.
4423 (default_gdb_signal_from_host): Rename to ...
4424 (default_gdb_signal_from_target): ... this.
4425 * corelow.c (core_open): Adjust to naming change. Replace comment.
4426 * gdbarch.sh (gdb_signal_from_host): Rename to ...
4427 (gdb_signal_from_target): ... this. Adjust to
4428 default_gdb_signal_from_host naming change. Extend comment.
4429 (gdb_signal_to_host): Rename to ...
4430 (gdb_signal_to_target): ... this. Adjust to
4431 default_gdb_signal_to_host naming change.
4432 * gdbarch.h, gdbarch.c: Renegerate.
4433
4434 2012-05-24 Pedro Alves <palves@redhat.com>
4435
4436 PR gdb/7205
4437
4438 Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
4439
4440 2012-05-24 Pedro Alves <palves@redhat.com>
4441
4442 PR gdb/7205
4443
4444 Replace target_signal with gdb_signal throughout.
4445
4446 2012-05-24 Pedro Alves <palves@redhat.com>
4447
4448 PR tui/14159
4449
4450 * tui/tui-hooks.c (tui_query_hook): Pre-compute the question
4451 string, instead of reusing the va_list argument.
4452
4453 2012-05-24 Tom Tromey <tromey@redhat.com>
4454
4455 * cp-support.h (cp_finalize_namespace, cp_initialize_namespace):
4456 Remove.
4457
4458 2012-05-23 Doug Evans <dje@google.com>
4459
4460 * symtab.c (search_symbols): Formatting fixes.
4461 (print_symbol_info): Formatting fixes.
4462
4463 * dwarf2-frame.c (execute_cfa_program): Update to handle long long ->
4464 int64_t change to leb128 API.
4465 (read_encoded_value, decode_frame_entry_1): Ditto.
4466 * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Ditto.
4467 (dwarf_block_to_dwarf_reg, dwarf_block_to_dwarf_reg_deref): Ditto.
4468 (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
4469 (execute_stack_op): Ditto.
4470 * dwarf2expr.h (gdb_read_uleb128, gdb_read_sleb128): Ditto.
4471 (safe_read_uleb128, safe_read_sleb128): Ditto.
4472 * dwarf2loc.c (decode_debug_loc_dwo_addresses): Ditto.
4473 (dwarf2_compile_expr_to_ax): Ditto.
4474 (locexpr_describe_location_piece): Ditto.
4475 (disassemble_dwarf_expression): Ditto.
4476 (locexpr_describe_location_1): Ditto.
4477
4478 2012-05-23 Stan Shebs <stan@codesourcery.com>
4479 Kwok Cheung Yeung <kcy@codesourcery.com>
4480
4481 * Makefile.in (SUBDIR_MI_OBS): Add mi-cmd-info.o.
4482 (SUBDIR_MI_SRCS): Add mi-cmd-info.c.
4483 (mi-cmd-info.o): New rule.
4484 * osdata.h (info_osdata_command): New declaration.
4485 * osdata.c (info_osdata_command): Change to non-static.
4486 * mi/mi-cmds.h (mi_cmd_info_os): New declaration.
4487 * mi/mi-cmds.c (mi_cmds): Add -info-os MI command.
4488 * mi/mi-cmd-info.c: New file.
4489
4490 2012-05-23 Doug Evans <dje@google.com>
4491
4492 * symtab.c (search_symbols): Pass NULL for file_matcher to
4493 expand_symtabs_matching if there are no files to match.
4494
4495 * gdbtypes.c (lookup_typename): Simplify.
4496
4497 2012-05-23 Pedro Alves <palves@redhat.com>
4498
4499 * arch-utils.h (default_target_signal_to_host): Delete.
4500 * arch-utils.c (default_target_signal_to_host): Delete.
4501 * gdbarch.sh (target_signal_to_host): Remove.
4502 * gdbarch.h, gdbarch.c: Regenerate.
4503
4504 2012-05-22 Doug Evans <dje@google.com>
4505
4506 * dwarf2-frame.c (struct dwarf2_cie): Make initial_instructions, end
4507 "const gdb_byte *".
4508 (struct dwarf2_fde): Make instructions, end "const gdb_byte *".
4509 (execute_cfa_program): Update to match API of leb128 functions.
4510 (read_1_byte, read_4_bytes, read_8_bytes): Make buf parameter
4511 "const gdb_byte *".
4512 (read_unsigned_leb128, read_signed_leb128): Delete.
4513 (read_initial_length): Change type of buf argument to
4514 "const gdb_byte *".
4515 (read_encoded_value): Update to match API of leb128 functions.
4516 (decode_frame_entry): Change result to "const gdb_byte *", and
4517 similarly for "start" parameter.
4518 (decode_frame_entry_1): Ditto. Use new leb128 reader functions.
4519 (dwarf2_build_frame_info): Change local frame_ptr to
4520 "const gdb_byte *".
4521 * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Replaces
4522 read_uleb128, read_sleb128. All callers updated.
4523 (safe_skip_leb128): New function.
4524 (dwarf_block_to_dwarf_reg): Update to match API of leb128 functions.
4525 Call gdb_read_uleb128, gdb_skip_leb128 instead of read_uleb128.
4526 (dwarf_block_to_dwarf_reg_deref): Update to match API of leb128
4527 functions. Call gdb_read_uleb128, gdb_read_sleb128 instead of
4528 read_uleb128, read_sleb128.
4529 (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
4530 (execute_stack_op): Update to match API of leb128 functions.
4531 * dwarf2expr.h: #include "leb128.h".
4532 (read_uleb128, read_sleb128): Delete.
4533 (gdb_read_uleb128, gdb_read_sleb128, gdb_skip_leb128): New functions.
4534 (safe_read_uleb128, safe_read_sleb128, safe_skip_leb128): Declare.
4535 * dwarf2loc.c (debug_loc_kind): New enum.
4536 (decode_debug_loc_addresses): New function.
4537 (decode_debug_loc_dwo_addresses): New function.
4538 (dwarf2_find_location_expression): Rewrite.
4539 (dwarf2_compile_expr_to_ax): Update to match API of leb128 functions.
4540 (locexpr_describe_location_piece): Ditto.
4541 (disassemble_dwarf_expression): Ditto.
4542 (locexpr_describe_location_1): Ditto.
4543 (loclist_describe_location): Rewrite.
4544 * dwarf2loc.h (dwarf2_loclist_baton): New member "from_dwo".
4545 * dwarf2read.c (die_reader_specs): New member "buffer_end".
4546 (dwarf2_section_buffer_overflow_complaint): Renamed from
4547 dwarf2_macros_too_long_complaint. All callers updated.
4548 (skip_leb128): Delete.
4549 (init_cu_die_reader): Initialize reader->buffer_end.
4550 (skip_one_die): Replace call to skip_leb128 with safe_skip_leb128.
4551 (skip_form_bytes): New arg buffer_end. All callers updated.
4552 Replace call to skip_leb128 with gdb_skip_leb128.
4553 (skip_unknown_opcode): New arg mac_end. All callers updated.
4554 (fill_in_loclist_baton): Initialize baton->from_dwo.
4555
4556 2012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
4557
4558 * mips-linux-nat.c (mips_linux_read_description): Use a more
4559 verbose error message.
4560
4561 2012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
4562
4563 * NEWS: Add MIPS/Linux DSP support.
4564 * mips-linux-tdep.c: Document post-2.6.12 o32 sigcontext layout.
4565 (SIGCONTEXT_DSPCTL): New macro.
4566 (SIGCONTEXT_HI1, SIGCONTEXT_LO1): Likewise.
4567 (SIGCONTEXT_HI2, SIGCONTEXT_LO2): Likewise.
4568 (SIGCONTEXT_HI3, SIGCONTEXT_LO3): Likewise.
4569 (N64_SIGCONTEXT_HI1, N64_SIGCONTEXT_HI2): Likewise.
4570 (N64_SIGCONTEXT_HI3): Likewise.
4571 (N64_SIGCONTEXT_LO1, N64_SIGCONTEXT_LO2): Likewise.
4572 (N64_SIGCONTEXT_LO3): Likewise.
4573 (N64_SIGCONTEXT_DSPCTL): Likewise.
4574 (N64_SIGCONTEXT_FPCSR): Clarify definition.
4575 (mips_linux_o32_sigframe_init): Handle DSP registers.
4576 (mips_linux_n32n64_sigframe_init): Likewise.
4577
4578 2012-05-22 Pierre Muller <muller@ics.u-strasbg.fr>
4579
4580 * common/buffer.c (buffer_grow): ARI fix: Remove unneeded
4581 call to abort.
4582
4583 2012-05-22 Pedro Alves <palves@redhat.com>
4584
4585 * target.h (store_waitstatus): Move declaration ...
4586 * inf-child.h (store_waitstatus): ... here.
4587 * target.c: Move inclusion of gdb_wait.h, and ...
4588 (store_waitstatus): ... this ...
4589 * inf-child.c: ... here.
4590 * linux-nat.c: Include inf-child.h.
4591 * rs6000-nat.c: Include inf-child.h.
4592 * spu-linux-nat.c: Include inf-child.h.
4593
4594 2012-05-22 Pierre Muller <muller@ics.u-strasbg.fr>
4595
4596 * tracepoint.c (start_tracing): Add missing i18n markup.
4597 (stop_tracing, set_trace_user): Ditto.
4598 (set_trace_notes, set_trace_stop_notes): Ditto.
4599
4600 2012-05-21 Tom Tromey <tromey@redhat.com>
4601
4602 PR c++/7173:
4603 * gnu-v3-abi.c (gnuv3_baseclass_offset): Return early for Java
4604 types.
4605 * value.h (value_cast_pointers): Update.
4606 * valops.c (value_cast_pointers): Add 'subclass_check' argument.
4607 (value_cast): Update.
4608 (update_search_result): New function.
4609 (do_search_struct_field): New, from search_struct_field. Check
4610 for ambiguous results.
4611 (search_struct_field): Rewrite.
4612 * infcall.c (value_arg_coerce): Update.
4613 * eval.c (evaluate_subexp_standard) <STRUCTOP_MEMBER>: Use
4614 value_cast_pointers.
4615 * ada-lang.c (ada_convert_actual): Update.
4616
4617 2012-05-21 Tom Tromey <tromey@redhat.com>
4618
4619 * macroexp.c (macro_stringify): Terminate the string.
4620
4621 2012-05-20 Jan Kratochvil <jan.kratochvil@redhat.com>
4622
4623 * NEWS (--with-auto-load-dir): Prepend $debugdir to the default path.
4624 Describe it.
4625 * auto-load.c (auto_load_expand_dir_vars): New function.
4626 (auto_load_safe_path_vec_update): Use it, remove the
4627 substitute_path_component call thanks to it.
4628 (auto_load_objfile_script): Remove the debug_file_directory processing.
4629 Use auto_load_expand_dir_vars, remove the substitute_path_component
4630 call thanks to it.
4631 * configure: Regenerate.
4632 * configure.ac (--with-auto-load-dir): Prepend $debugdir to the default
4633 path. Escape $ also for $debugdir.
4634 (--with_auto_load_safe_path): Escape $ also for $debugdir.
4635 * utils.c (substitute_path_component): Accept also DIRNAME_SEPARATOR.
4636
4637 2012-05-20 Doug Evans <dje@google.com>
4638
4639 * dwarf2read.c (recursively_find_pc_sect_symtab): Initialize "s"
4640 before use. Check for symtab->includes == NULL before scanning it.
4641
4642 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
4643
4644 * mips-tdep.c (mips_reg3_to_reg): Optimize storage.
4645
4646 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
4647
4648 * NEWS: Add microMIPS support and "set mips compression",
4649 "show mips compression" commands.
4650 * mips-tdep.h (mips_isa): New enum.
4651 (gdbarch_tdep): Add mips_isa.
4652 (mips_pc_is_mips16): Update prototype.
4653 (mips_pc_is_mips, mips_pc_is_micromips): New prototypes.
4654 * mips-tdep.c (mips_compression_mips16): New variable.
4655 (mips_compression_micromips): Likewise.
4656 (mips_compression_strings): Likewise.
4657 (mips_compression_string): Likewise.
4658 (is_mips16_isa, is_micromips_isa): New functions.
4659 (is_mips16_addr): Rename to...
4660 (is_compact_addr): ... this.
4661 (unmake_mips16_addr): Likewise to...
4662 (unmake_compact_addr): ... this.
4663 (make_mips16_addr): Likewise to...
4664 (make_compact_addr): ... this.
4665 (is_mips_addr, is_mips16_addr, is_micromips_addr): New
4666 functions.
4667 (mips_elf_make_msymbol_special): Handle microMIPS code.
4668 (msymbol_is_special): Rename to...
4669 (msymbol_is_mips16): ... this.
4670 (mips_make_symbol_special, mips_pc_is_mips16): Update
4671 accordingly.
4672 (msymbol_is_mips, msymbol_is_micromips): New functions.
4673 (mips16_to_32_reg): Rename to...
4674 (mips_reg3_to_reg): ... this.
4675 (mips_pc_is_mips, mips_pc_is_micromips): New functions.
4676 (mips_pc_isa): Likewise.
4677 (mips_read_pc, mips_unwind_pc, mips_write_pc): Handle microMIPS
4678 code.
4679 (mips_fetch_instruction): Pass return status instead of printing
4680 an error message if requested. Handle microMIPS code. Bail out
4681 on an invalid ISA.
4682 (micromips_op): New macro.
4683 (b0s4_imm, b0s5_imm, b0s5_reg, b0s7_imm, b0s10_imm): Likewise.
4684 (b1s9_imm, b2s3_cc, b4s2_regl, b5s5_op, b5s5_reg): Likewise.
4685 (b6s4_op, b7s3_reg): Likewise.
4686 (b0s6_op, b0s11_op, b0s12_imm, b0s16_imm, b0s26_imm): Likewise.
4687 (b6s10_ext, b11s5_reg, b12s4_op): Likewise.
4688 (mips_insn_size): New function.
4689 (mips32_next_pc): Update mips_fetch_instruction call.
4690 (micromips_relative_offset7): New function.
4691 (micromips_relative_offset10): Likewise.
4692 (micromips_relative_offset16): Likewise.
4693 (micromips_pc_insn_size): Likewise.
4694 (micromips_bc1_pc): Likewise.
4695 (micromips_next_pc): Likewise.
4696 (unpack_mips16): Update mips_fetch_instruction call.
4697 (extended_mips16_next_pc): Update according to change to
4698 mips16_to_32_reg.
4699 (mips_next_pc): Update mips_pc_is_mips16 call. Handle microMIPS
4700 code.
4701 (mips16_scan_prologue): Update mips_fetch_instruction call.
4702 Update according to change to mips16_to_32_reg.
4703 (mips_insn16_frame_sniffer): Update mips_pc_is_mips16 call.
4704 (mips_insn16_frame_base_sniffer): Likewise.
4705 (micromips_decode_imm9): New function.
4706 (micromips_scan_prologue): Likewise.
4707 (mips_micro_frame_cache): Likewise.
4708 (mips_micro_frame_this_id): Likewise.
4709 (mips_micro_frame_prev_register): Likewise.
4710 (mips_micro_frame_sniffer): Likewise.
4711 (mips_micro_frame_unwind): New variable.
4712 (mips_micro_frame_base_address): New function.
4713 (mips_micro_frame_base): New variable.
4714 (mips_micro_frame_base_sniffer): New function.
4715 (mips32_scan_prologue): Update mips_fetch_instruction call.
4716 (mips_insn32_frame_sniffer): Check for the standard MIPS ISA
4717 rather than for MIPS16.
4718 (mips_insn32_frame_base_sniffer): Likewise.
4719 (mips_addr_bits_remove): Handle microMIPS code.
4720 (deal_with_atomic_sequence): Rename to...
4721 (mips_deal_with_atomic_sequence): ... this. Update the type
4722 of the variable used to hold an instruction. Remove the ISA bit
4723 check. Update mips_fetch_instruction call.
4724 (micromips_deal_with_atomic_sequence): New function.
4725 (deal_with_atomic_sequence): Likewise.
4726 (mips_about_to_return): Handle microMIPS code. Update
4727 mips_fetch_instruction call.
4728 (heuristic_proc_start): Check for the standard MIPS ISA rather
4729 than for MIPS16. Update mips_pc_is_mips16 and
4730 mips_fetch_instruction calls. Handle microMIPS code.
4731 (mips_push_dummy_code): Handle microMIPS code.
4732 (mips_eabi_push_dummy_call): Likewise.
4733 (mips_o32_return_value): Update mips_pc_is_mips16 call.
4734 (mips_o64_push_dummy_call): Handle microMIPS code.
4735 (mips_o64_return_value): Update mips_pc_is_mips16 call.
4736 (is_delayed): Remove function.
4737 (mips_single_step_through_delay): Replace the call to is_delayed
4738 with mips32_instruction_has_delay_slot. Correct MIPS16 handling.
4739 Handle microMIPS code.
4740 (mips_skip_prologue): Update mips_pc_is_mips16 call. Handle
4741 microMIPS code.
4742 (mips32_in_function_epilogue_p): Update mips_fetch_instruction
4743 call.
4744 (micromips_in_function_epilogue_p): New function.
4745 (mips16_in_function_epilogue_p): Update mips_fetch_instruction
4746 call.
4747 (mips_in_function_epilogue_p): Update mips_pc_is_mips16 call.
4748 Handle microMIPS.
4749 (gdb_print_insn_mips): Likewise.
4750 (mips_breakpoint_from_pc): Likewise.
4751 (mips_remote_breakpoint_from_pc): New function.
4752 (mips32_instruction_has_delay_slot): Simplify making use of the
4753 updated mips_fetch_instruction interface.
4754 (micromips_instruction_has_delay_slot): New function.
4755 (mips16_instruction_has_delay_slot): Simplify making use of the
4756 updated mips_fetch_instruction interface.
4757 (mips_adjust_breakpoint_address): Check for the standard MIPS
4758 ISA rather than for MIPS16 ISA. Update for unmake_compact_addr
4759 calls. Handle microMIPS code.
4760 (mips_get_mips16_fn_stub_pc): Update mips_fetch_instruction call.
4761 (mips_skip_trampoline_code): Handle microMIPS code.
4762 (global_mips_compression): New function.
4763 (mips_gdbarch_init): Handle the compressed ISA setting from ELF
4764 file flags. Register the microMIPS remote breakpoint handler
4765 and heuristic frame unwinder.
4766 (show_mips_compression): New function.
4767 (_initialize_mips_tdep): Add the "set mips compression" and
4768 "show mips compression" commands.
4769
4770 2012-05-18 Sergio Durigan Junior <sergiodj@redhat.com>
4771
4772 * ada-lang.c:
4773 * ada-tasks.c:
4774 * ada-varobj.c:
4775 * amd64-darwin-tdep.c:
4776 * arm-symbian-tdep.c:
4777 * arm-tdep.c:
4778 * avr-tdep.c:
4779 * ax-gdb.c:
4780 * bfin-linux-tdep.c:
4781 * breakpoint.c:
4782 * c-valprint.c:
4783 * cli/cli-cmds.c:
4784 * coffread.c:
4785 * cp-support.c:
4786 * cris-tdep.c:
4787 * dwarf2-frame-tailcall.c:
4788 * dwarf2-frame.c:
4789 * dwarf2expr.c:
4790 * dwarf2loc.c:
4791 * dwarf2read.c:
4792 * elfread.c:
4793 * eval.c:
4794 * expprint.c:
4795 * f-valprint.c:
4796 * frv-tdep.c:
4797 * h8300-tdep.c:
4798 * hppa-hpux-tdep.c:
4799 * hppa-tdep.c:
4800 * hppanbsd-tdep.c:
4801 * i386-nto-tdep.c:
4802 * i386-tdep.c:
4803 * i387-tdep.c:
4804 * ia64-tdep.c:
4805 * jit.c:
4806 * linespec.c:
4807 * linux-tdep.c:
4808 * lm32-tdep.c:
4809 * m2-valprint.c:
4810 * m32c-tdep.c:
4811 * m32r-rom.c:
4812 * m32r-tdep.c:
4813 * m68k-tdep.c:
4814 * m68klinux-tdep.c:
4815 * mi/mi-main.c:
4816 * microblaze-tdep.c:
4817 * mips-linux-tdep.c:
4818 * mips-tdep.c:
4819 * mn10300-tdep.c:
4820 * p-valprint.c:
4821 * parse.c:
4822 * ppc-linux-tdep.c:
4823 * ppc-sysv-tdep.c:
4824 * printcmd.c:
4825 * python/py-finishbreakpoint.c:
4826 * python/py-inferior.c:
4827 * python/py-infthread.c:
4828 * python/py-type.c:
4829 * python/python.c:
4830 * remote-fileio.c:
4831 * remote-m32r-sdi.c:
4832 * remote-mips.c:
4833 * reverse.c:
4834 * rl78-tdep.c:
4835 * rs6000-aix-tdep.c:
4836 * rs6000-tdep.c:
4837 * s390-tdep.c:
4838 * score-tdep.c:
4839 * sh64-tdep.c:
4840 * skip.c:
4841 * solib-darwin.c:
4842 * solib-dsbt.c:
4843 * solib-frv.c:
4844 * sparc-tdep.c:
4845 * spu-multiarch.c:
4846 * spu-tdep.c:
4847 * stack.c:
4848 * symfile.c:
4849 * symtab.c:
4850 * tic6x-tdep.c:
4851 * tracepoint.c:
4852 * v850-tdep.c:
4853 * valarith.c:
4854 * valprint.c:
4855 * value.c:
4856 * xcoffread.c:
4857 * xtensa-tdep.c:
4858 * ada-lang.c:
4859 * ada-tasks.c:
4860 * ada-varobj.c:
4861 * amd64-darwin-tdep.c:
4862 * arm-symbian-tdep.c:
4863 * arm-tdep.c: Delete unused variables.
4864
4865 2012-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
4866
4867 Rename $ddir to $datadir.
4868 * NEWS (--with-auto-load-dir): Rename $ddir to $datadir.
4869 * auto-load.c (auto_load_safe_path_vec_update)
4870 (auto_load_gdb_datadir_changed, auto_load_objfile_script): Likewise.
4871 * configure: Regenerate.
4872 * configure.ac (--with-auto-load-dir, --with-auto-load-safe-path):
4873 Likewise. Remove the 'use $ddir' help string.
4874
4875 2012-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
4876
4877 * auto-load.c (show_auto_load_safe_path): Accept any combination of
4878 DIRNAME_SEPARATOR and IS_DIR_SEPARATOR for wild-match.
4879
4880 2012-05-18 Tom Tromey <tromey@redhat.com>
4881
4882 PR exp/13907:
4883 * valprint.h (struct value_print_options) <symbol_print>: New
4884 field.
4885 * valprint.c (user_print_options): Add default for symbol_print.
4886 (show_symbol_print): New function.
4887 (generic_val_print): Respect symbol_print.
4888 (_initialize_valprint): Add "print symbol" setting.
4889 * f-valprint.c (f_val_print): Respect symbol_print.
4890 * c-valprint.c (c_val_print): Respect symbol_print.
4891 * NEWS: Update.
4892 * printcmd.c (print_address_symbolic): Return int. Ignore some
4893 zero-size symbols.
4894 (print_address_demangle): Return int.
4895 * defs.h: (print_address_symbolic): Return int.
4896 * value.h (print_address_demangle): Return int.
4897
4898 2012-05-18 Tom Tromey <tromey@redhat.com>
4899
4900 * valprint.c (val_print_string): Don't print leading space.
4901 * p-valprint.c (pascal_val_print) <TYPE_CODE_PTR>: Optionally
4902 print space before string or vtbl.
4903 * m2-valprint.c (print_unpacked_pointer): Optionally print space
4904 before string.
4905 * jv-valprint.c (java_value_print): Print space before string.
4906 * go-valprint.c (print_go_string): Print space before string.
4907 * f-valprint.c (f_val_print) <TYPE_CODE_PTR>: Optionally print
4908 space before string.
4909 * c-valprint.c (c_val_print) <TYPE_CODE_PTR>: Optionally print
4910 space before string or vtbl.
4911 * auxv.c (fprint_target_auxv): Print space after address.
4912
4913 2012-05-18 Tom Tromey <tromey@redhat.com>
4914
4915 * printcmd.c (print_address_demangle): Remove special case for 0.
4916
4917 2012-05-18 Tom Tromey <tromey@redhat.com>
4918
4919 * printcmd.c (print_address_demangle): Add 'opts' argument.
4920 * p-valprint.c (pascal_val_print): Update.
4921 * jv-valprint.c (java_val_print): Update.
4922 * value.h: Update.
4923 * valprint.c (generic_val_print): Update.
4924 (print_function_pointer_address): Add 'options' argument. Remove
4925 'addressprint' argument. Update.
4926 * m2-valprint.c (print_unpacked_pointer): Update.
4927 * gnu-v3-abi.c (print_one_vtable): Update.
4928 (gnuv3_print_method_ptr): Update.
4929 * f-valprint.c (f_val_print): Update.
4930 * cp-valprint.c (cp_print_value_fields): Update.
4931 * valprint.h (print_function_pointer_address): Update.
4932 * c-valprint.c (c_val_print): Update.
4933
4934 2012-05-18 Tom Tromey <tromey@redhat.com>
4935
4936 * psymtab.c (find_pc_sect_symtab_from_partial): Return the symtab
4937 directly corresponding to the found psymtab.
4938 * dwarf2read.c (recursively_find_pc_sect_symtab): New function.
4939 (dw2_find_pc_sect_symtab): Use it.
4940 * block.h (blockvector_contains_pc): Declare.
4941 * block.c (find_block_in_blockvector): New function.
4942 (blockvector_for_pc_sect): Use it.
4943 (blockvector_contains_pc): New function.
4944
4945 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
4946
4947 * mips-tdep.h (mips_write_pc): New prototype.
4948 * mips-tdep.c (mips_write_pc): Make external, add description.
4949 * mips-linux-tdep.c (mips_linux_write_pc): Use mips_write_pc,
4950 add description.
4951
4952 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
4953
4954 * mips-tdep.c (mips_read_pc): Use gdbarch_pc_regnum instead of
4955 mips_regnum->pc.
4956 (mips_unwind_pc, mips_write_pc): Likewise.
4957 (mips_gdbarch_init): Remove a comment on gdbarch_pc_regnum and
4958 gdbarch_read_pc.
4959
4960 2012-05-17 Joel Brobecker <brobecker@adacore.com>
4961
4962 * procfs.c (procfs_find_new_threads, procfs_pid_to_str,
4963 proc_warn, proc_error, proc_get_status, proc_flags,
4964 proc_why, proc_what, proc_nsysarg, proc_sysargs,
4965 proc_set_run_on_last_close, proc_unset_run_on_last_close,
4966 proc_unset_inherit_on_fork, proc_set_async, proc_unset_async,
4967 proc_stop_process, proc_wait_for_stop, proc_run_process,
4968 proc_set_traced_signals, proc_set_traced_faults,
4969 proc_set_traced_sysentry, proc_set_traced_sysexit,
4970 proc_set_held_signals, proc_get_held_signals,
4971 proc_get_traced_signals, proc_get_traced_faults,
4972 proc_get_traced_sysentry, proc_get_traced_sysexit,
4973 proc_clear_current_fault, proc_set_current_signal,
4974 proc_clear_current_signal, proc_get_gregs, proc_get_fpregs,
4975 proc_set_gregs, proc_set_fpregs, proc_kill, proc_parent_pid,
4976 proc_get_nthreads, proc_get_nthreads, proc_get_nthreads,
4977 proc_get_current_thread, proc_get_current_thread,
4978 proc_get_current_thread, proc_update_threads,
4979 proc_update_threads, proc_update_threads, proc_update_threads,
4980 proc_iterate_over_threads, procfs_find_new_threads,
4981 procfs_pid_to_str): Make static. Remove advance declaration.
4982 (proc_cursig): Make static. Conditionalized defintion on
4983 PROCFS_DONT_PIOCSSIG_CURSIG being defined.
4984 (proc_syscall, proc_set_kill_on_last_close,
4985 proc_unset_kill_on_last_close, proc_set_inherit_on_fork,
4986 proc_get_pending_signals, proc_get_signal_actions,
4987 proc_trace_signal, proc_ignore_signal): Delete.
4988
4989 2012-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
4990
4991 * coffread.c (cs_section_address): Passing proper argument for
4992 `bfd_get_section_vma'.
4993 * dwarf2read.c (dwarf2_locate_sections): Likewise, for
4994 `bfd_get_section_flags'.
4995 * remote.c (remote_trace_set_readonly_regions): Likewise, for
4996 `bfd_get_section_vma'.
4997
4998 2012-05-16 Tom Tromey <tromey@redhat.com>
4999
5000 PR macros/13205:
5001 * macrotab.h: (macro_define_special): Declare.
5002 (enum macro_special_kind): New.
5003 (struct macro_definition) <argc, replacement>: Update comments.
5004 * macrotab.c (new_macro_definition): Unconditionally set 'argc'.
5005 (macro_define_object_internal): New function.
5006 (macro_define_object): Use it.
5007 (macro_define_special): New function.
5008 (fixup_definition): New function.
5009 (macro_lookup_definition, foreach_macro_in_scope)
5010 (foreach_macro): Use fixup_definition.
5011 * macroexp.h (macro_stringify): Declare.
5012 * macroexp.c (free_buffer_return_text): New function.
5013 (stringify): Constify "arg".
5014 (macro_stringify): New function.
5015 * dwarf2read.c (macro_start_file): Call macro_define_special.
5016
5017 2012-05-16 Maciej W. Rozycki <macro@codesourcery.com>
5018 Maciej W. Rozycki <macro@mips.com>
5019
5020 * breakpoint.h (bp_location): Add related_address member.
5021 * inferior.h (get_return_value): Take a pointer to struct value
5022 instead of struct type for the function requested.
5023 * value.h (using_struct_return): Likewise.
5024 * gdbarch.sh (return_value): Take a pointer to struct value
5025 instead of struct type for the function requested.
5026 * breakpoint.c (set_breakpoint_location_function): Initialize
5027 related_address for bp_gnu_ifunc_resolver breakpoints.
5028 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Pass the
5029 requested function's address to gdbarch_return_value.
5030 * eval.c (evaluate_subexp_standard): Pass the requested
5031 function's address to using_struct_return.
5032 * infcall.c (call_function_by_hand): Pass the requested
5033 function's address to using_struct_return and
5034 gdbarch_return_value.
5035 * infcmd.c (get_return_value): Take a pointer to struct value
5036 instead of struct type for the function requested.
5037 (print_return_value): Update accordingly.
5038 (finish_command_continuation): Likewise.
5039 * stack.c (return_command): Pass the requested function's
5040 address to using_struct_return and gdbarch_return_value.
5041 * value.c (using_struct_return): Take a pointer to struct value
5042 instead of struct type for the function requested. Pass the
5043 requested function's address to gdbarch_return_value.
5044 * python/py-finishbreakpoint.c (finish_breakpoint_object):
5045 New function_value member, replacing function_type.
5046 (bpfinishpy_dealloc): Update accordingly.
5047 (bpfinishpy_pre_stop_hook): Likewise.
5048 (bpfinishpy_init): Likewise. Record the requested function's
5049 address.
5050 * mips-tdep.c (mips_fval_reg): New enum.
5051 (mips_o32_push_dummy_call): For MIPS16 FP doubles do not swap
5052 words put in GP registers.
5053 (mips_o64_push_dummy_call): Update a comment.
5054 (mips_o32_return_value): Take a pointer to struct value instead
5055 of struct type for the function requested and use it to check if
5056 using the MIPS16 calling convention. Return the designated
5057 general purpose registers for floating-point values returned in
5058 MIPS16 mode.
5059 (mips_o64_return_value): Likewise.
5060 * ppc-tdep.h (ppc_sysv_abi_return_value): Update prototype.
5061 (ppc_sysv_abi_broken_return_value): Likewise.
5062 (ppc64_sysv_abi_return_value): Likewise.
5063 * alpha-tdep.c (alpha_return_value): Take a pointer to struct
5064 value instead of struct type for the function requested.
5065 * amd64-tdep.c (amd64_return_value): Likewise.
5066 * amd64-windows-tdep.c (amd64_windows_return_value): Likewise.
5067 * arm-tdep.c (arm_return_value): Likewise.
5068 * avr-tdep.c (avr_return_value): Likewise.
5069 * bfin-tdep.c (bfin_return_value): Likewise.
5070 * cris-tdep.c (cris_return_value): Likewise.
5071 * frv-tdep.c (frv_return_value): Likewise.
5072 * h8300-tdep.c (h8300_return_value): Likewise.
5073 (h8300h_return_value): Likewise.
5074 * hppa-tdep.c (hppa32_return_value): Likewise.
5075 (hppa64_return_value): Likewise.
5076 * i386-tdep.c (i386_return_value): Likewise.
5077 * ia64-tdep.c (ia64_return_value): Likewise.
5078 * iq2000-tdep.c (iq2000_return_value): Likewise.
5079 * lm32-tdep.c (lm32_return_value): Likewise.
5080 * m32c-tdep.c (m32c_return_value): Likewise.
5081 * m32r-tdep.c (m32r_return_value): Likewise.
5082 * m68hc11-tdep.c (m68hc11_return_value): Likewise.
5083 * m68k-tdep.c (m68k_return_value): Likewise.
5084 (m68k_svr4_return_value): Likewise.
5085 * m88k-tdep.c (m88k_return_value): Likewise.
5086 * mep-tdep.c (mep_return_value): Likewise.
5087 * microblaze-tdep.c (microblaze_return_value): Likewise.
5088 * mn10300-tdep.c (mn10300_return_value): Likewise.
5089 * moxie-tdep.c (moxie_return_value): Likewise.
5090 * mt-tdep.c (mt_return_value): Likewise.
5091 * ppc-linux-tdep.c (ppc_linux_return_value): Likewise.
5092 * ppc-sysv-tdep.c (ppc_sysv_abi_return_value): Likewise.
5093 (ppc_sysv_abi_broken_return_value): Likewise.
5094 (ppc64_sysv_abi_return_value): Likewise.
5095 * ppcnbsd-tdep.c (ppcnbsd_return_value): Likewise.
5096 * rl78-tdep.c (rl78_return_value): Likewise.
5097 * rs6000-aix-tdep.c (rs6000_return_value): Likewise.
5098 * rx-tdep.c (rx_return_value): Likewise.
5099 * s390-tdep.c (s390_return_value): Likewise.
5100 * score-tdep.c (score_return_value): Likewise.
5101 * sh-tdep.c (sh_return_value_nofpu): Likewise.
5102 (sh_return_value_fpu): Likewise.
5103 * sh64-tdep.c (sh64_return_value): Likewise.
5104 * sparc-tdep.c (sparc32_return_value): Likewise.
5105 * sparc64-tdep.c (sparc64_return_value): Likewise.
5106 * spu-tdep.c (spu_return_value): Likewise.
5107 * tic6x-tdep.c (tic6x_return_value): Likewise.
5108 * v850-tdep.c (v850_return_value): Likewise.
5109 * vax-tdep.c (vax_return_value): Likewise.
5110 * xstormy16-tdep.c (xstormy16_return_value): Likewise.
5111 * xtensa-tdep.c (xtensa_return_value): Likewise.
5112 * gdbarch.c: Regenerate.
5113 * gdbarch.h: Regenerate.
5114
5115 2012-05-15 Tom Tromey <tromey@redhat.com>
5116
5117 * python/python.c (gdbpy_find_pc_line): Use gdb_py_ulongest.
5118
5119 2012-05-15 Joel Brobecker <brobecker@adacore.com>
5120
5121 * breakpoint.c (init_breakpoint_sal): Add quotes around part
5122 of command in two error message.
5123
5124 2012-05-15 Joel Brobecker <brobecker@adacore.com>
5125
5126 * breakpoint.c (init_breakpoint_sal): Remove trailing spaces.
5127
5128 2012-05-15 Joel Brobecker <brobecker@adacore.com>
5129
5130 * breakpoint.c (find_condition_and_thread): Minor reformatting.
5131
5132 2012-05-15 Jan Kratochvil <jan.kratochvil@redhat.com>
5133
5134 * NEWS (show auto-load scripts-directory): Add forgotten command.
5135
5136 2012-05-15 Jan Kratochvil <jan.kratochvil@redhat.com>
5137
5138 * spu-tdep.c (spu_catch_start): Update create_breakpoint caller
5139 parameters.
5140
5141 2012-05-14 H.J. Lu <hongjiu.lu@intel.com>
5142
5143 * amd64-tdep.c: Include features/i386/x32.c and
5144 features/i386/x32-avx.c.
5145 (_initialize_amd64_tdep): Call initialize_tdesc_x32 and
5146 initialize_tdesc_x32_avx.
5147
5148 2012-05-14 Stan Shebs <stan@codesourcery.com>
5149
5150 Add dynamic printf.
5151 * breakpoint.h (enum bptype): New type bp_dprintf.
5152 (struct breakpoint): New field extra_string.
5153 (struct breakpoint_ops): Add arg to create_breakpoints_sal.
5154 (create_breakpoint): Add extra_string arg.
5155 * breakpoint.c (dprintf_breakpoint_ops): New.
5156 (is_breakpoint): Add bp_dprintf.
5157 (bpstat_what): Add dprintf case.
5158 (bptype_string): Ditto.
5159 (print_one_breakpoint_location): Ditto.
5160 (init_bp_location): Ditto.
5161 (bkpt_print_mention): Ditto.
5162 (dprintf_style_enums): New array.
5163 (dprintf_style): New global.
5164 (dprintf_function): New global.
5165 (dprintf_channel): New global.
5166 (update_dprintf_command_list): New function.
5167 (update_dprintf_commands): New function.
5168 (init_breakpoint_sal): Add extra_string argument, handle it.
5169 (create_breakpoint_sal): Add extra_string argument.
5170 (create_breakpoints_sal): Add extra_string argument, update callers.
5171 (find_condition_and_thread): Add extra argument.
5172 (create_breakpoint): Add extra_string argument, record it.
5173 (dprintf_command): New function.
5174 (break_command_1): Add arg to create_breakpoint call.
5175 (handle_gnu_v3_exceptions): Ditto.
5176 (trace_command): Ditto.
5177 (ftrace_command): Ditto.
5178 (strace_command): Ditto.
5179 (bkpt_print_mention): Add dprintf case.
5180 (create_breakpoint_sal_default): Add extra_string argument.
5181 (_initialize_breakpoint): Add new commands.
5182 * mi/mi-cmd-break.c (mi_cmd_break_insert): Add arg to call.
5183 * python/py-breakpoint.c (bppy_init): Ditto.
5184 * python/py-finishbreakpoint.c (bpfinishpy_init): Ditto.
5185
5186 2012-05-14 Maciej W. Rozycki <macro@codesourcery.com>
5187
5188 * mips-tdep.c (mips_push_dummy_code): Correct description typo.
5189
5190 2012-05-14 Siva Chandra Reddy <sivachandra@google.com>
5191
5192 * python/python.c (gdbpy_find_pc_line): Use ULONGEST instead of
5193 unsigned long long.
5194
5195 2012-05-13 Siva Chandra Reddy <sivachandra@google.com>
5196
5197 Add a new function gdb.find_pc_line to the Python API.
5198 * NEWS (Python Scripting): Add entry about the new function.
5199 * python/python.c (gdbpy_find_pc_line): New function which
5200 implements gdb.find_pc_line.
5201 (GdbMethods): Add entry for the new function.
5202
5203 2012-05-12 Pedro Alves <palves@redhat.com>
5204
5205 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Call
5206 initialize_tdesc_x32_linux and initialize_tdesc_x32_avx_linux.
5207
5208 2012-05-12 Eli Zaretskii <eliz@gnu.org>
5209
5210 * inferior.c: Include completer.h
5211 (initialize_inferiors): Set completer of add-inferior to
5212 filename_completer.
5213
5214 2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
5215
5216 * amd64-linux-tdep.c (amd64_linux_core_read_description): Check
5217 gdbarch_ptr_bit for x32 core dump.
5218
5219 2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
5220
5221 * amd64-linux-tdep.c: Include features/i386/x32-linux.c
5222 and features/i386/x32-avx-linux.c.
5223
5224 2012-05-11 Stan Shebs <stan@codesourcery.com>
5225 Kwok Cheung Yeung <kcy@codesourcery.com>
5226
5227 * NEWS: Describe new info os commands.
5228 * common/linux-osdata.c (PID_T, TIME_T): Define.
5229 (MAX_PID_T_STRLEN): New.
5230 (linux_common_core_of_thread): Add comment. Change to use PID_T and
5231 MAX_PID_T_STRLEN.
5232 (command_from_pid): Add comment. Change to use PID_T.
5233 (commandline_from_pid): Change to use PID_T.
5234 (user_from_pid): Add comment.
5235 (get_process_owner): Add comment. Change to use PID_T and
5236 MAX_PID_T_STRLEN.
5237 (get_number_of_cpu_cores): Add comment.
5238 (get_cores_used_by_process): Add comment. Change to use PID_T and
5239 MAX_PID_T_STRLEN.
5240 (linux_xfer_osdata_processes): Change to use PID_T and
5241 MAX_PID_T_STRLEN.
5242 (compare_processes): New function.
5243 (linux_xfer_osdata_processgroups): New function.
5244 (linux_xfer_osdata_threads): Change to use PID_T.
5245 (linux_xfer_osdata_fds): New function.
5246 (format_socket_state, print_sockets): New functions.
5247 (union socket_addr): New union.
5248 (linux_xfer_osdata_isockets): New function.
5249 (time_from_time_t, group_from_gid): New functions.
5250 (linux_xfer_osdata_shm): New function.
5251 (linux_xfer_osdata_sem): New function.
5252 (linux_xfer_osdata_msg): New function.
5253 (linux_xfer_osdata_modules): New function.
5254 (osdata_table): Add new entries.
5255 * common/buffer.c (buffer_xml_printf): Add support for long and
5256 long long format specifiers.
5257
5258 2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
5259
5260 * amd64-linux-tdep.h (tdesc_x32_linux): New.
5261 (tdesc_x32_avx_linux): Likewise.
5262
5263 2012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
5264
5265 Implement multi-component --with-auto-load-dir.
5266 * NEWS (set auto-load scripts-directory, --with-auto-load-dir): New
5267 entries.
5268 (--with-auto-load-safe-path): Update the default value description.
5269 * auto-load.c (auto_load_dir, set_auto_load_dir, show_auto_load_dir):
5270 New.
5271 (auto_load_objfile_script): Add DEBUG_AUTO_LOAD output. Remove
5272 GDB_DATADIR NULL check. Replace GDB_DATADIR/auto-load by
5273 AUTO_LOAD_DIR. Support $ddir and multiple components in it.
5274 (_initialize_auto_load): Initialize also auto_load_dir. Install new
5275 "set auto-load scripts-directory".
5276 * config.in: Regenerate.
5277 * configure: Regenerate.
5278 * configure.ac (--with-auto-load-dir): New configure option.
5279 (--auto-load-safe-path): Change the default to --with-auto-load-dir.
5280
5281 2012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
5282
5283 Provide $ddir substitution for --with-auto-load-safe-path.
5284 * NEWS (--with-auto-load-safe-path, --without-auto-load-safe-path): New
5285 entries.
5286 * auto-load.c: Include observer.h.
5287 (auto_load_safe_path_vec_update): Call substitute_path_component for
5288 each component. New variable ddir_subst.
5289 (auto_load_gdb_datadir_changed): New function.
5290 (set_auto_load_safe_path): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
5291 AUTO_LOAD_SAFE_PATH. New comment.
5292 (_initialize_auto_load): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
5293 AUTO_LOAD_SAFE_PATH. Install auto_load_gdb_datadir_changed.
5294 * config.in: Regenerate.
5295 * configure: Regenerate.
5296 * configure.ac (--auto-load-safe-path): Rename
5297 DEFAULT_AUTO_LOAD_SAFE_PATH to AUTO_LOAD_SAFE_PATH. Default to
5298 GDB_DATADIR/auto-load.
5299 * defs.h (substitute_path_component): New declaration.
5300 * top.c: Include observer.h.
5301 (set_gdb_datadir): New function.
5302 (init_main): Install it for "set data-directory".
5303 * utils.c (substitute_path_component): New function.
5304
5305 2012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
5306
5307 Make auto-load handle multiple components of DEBUG_FILE_DIRECTORY.
5308 * auto-load.c (auto_load_objfile_script): Remove check for NULL
5309 DEBUG_FILE_DIRECTORY. Handle multiple components of
5310 DEBUG_FILE_DIRECTORY.
5311
5312 2012-05-10 Tom Tromey <tromey@redhat.com>
5313
5314 * dwarf2read.c (recursively_write_psymbols): New function.
5315 (write_psymtabs_to_index): Use it.
5316
5317 * dwarf2read.c (struct dwarf2_queue_item) <pretend_language>: New
5318 field.
5319 (load_cu, dw2_do_instantiate_symtab, process_psymtab_comp_unit)
5320 (load_partial_comp_unit): Update.
5321 (queue_comp_unit): Add argument 'pretend_language'.
5322 (process_queue): Update.
5323 (psymtab_to_symtab_1): Skip dependencies that have a user.
5324 (load_partial_comp_unit_reader): Give meaning to the 'data'
5325 argument.
5326 (load_full_comp_unit): Add 'pretend_language' argument.
5327 (process_full_comp_unit): Add 'pretend_language' argument. Set
5328 language on CU.
5329 (process_imported_unit_die, read_file_scope, read_type_unit_scope):
5330 Update.
5331 (maybe_queue_comp_unit): Add 'pretend_language' argument.
5332 (follow_die_offset, follow_die_sig, read_signatured_type_reader):
5333 Update.
5334 (prepare_one_comp_unit): Add 'pretend_language' argument.
5335
5336 * dwarf2read.c: (dwarf2_per_cu_ptr): New typedef.
5337 (struct dwarf2_per_objfile) <just_read_cus>: New field.
5338 (struct dwarf2_per_cu_data) <imported_symtabs>: New field.
5339 (dw2_do_instantiate_symtab): Check whether symtab was read in
5340 before queueing.
5341 (dw2_instantiate_symtab): Add assertion. Call
5342 process_cu_includes.
5343 (process_psymtab_comp_unit): Compute 'dependencies' for psymtab.
5344 (partial_symtab_p): New typedef.
5345 (set_partial_user): New function.
5346 (dwarf2_build_psymtabs_hard): Use set_partial_user.
5347 (scan_partial_symbols): Add imported CU to imported_symtabs.
5348 (dwarf2_psymtab_to_symtab): Call process_cu_includes.
5349 (psymtab_to_symtab_1): Do nothing if psymtab is readin.
5350 (get_symtab, recursively_compute_inclusions)
5351 (compute_symtab_includes, process_cu_includes)
5352 (process_imported_unit_die): New functions.
5353 (process_die) <DW_TAG_imported_unit>: New case.
5354 (dwarf2_per_objfile_free): Free 'imported_symtabs'.
5355
5356 * dwarf2read.c (struct dwarf2_per_cu_data) <psymtab>: Update
5357 comment.
5358 (struct partial_die_info) <locdesc>: Remove.
5359 <d>: New field.
5360 (process_psymtab_comp_unit): Add 'read_partial' argument.
5361 Update.
5362 (process_type_comp_unit, dwarf2_build_psymtabs_hard): Update.
5363 (scan_partial_symbols): Handle DW_TAG_imported_unit.
5364 (add_partial_symbol): Update.
5365 (process_die): Handle DW_TAG_partial_unit.
5366 (read_file_scope): Update comment.
5367 (load_partial_dies): Handle DW_TAG_imported_unit.
5368 (read_partial_die): Handle DW_TAG_partial_unit, DW_AT_import.
5369 (determine_prefix, dwarf2_name): Handle DW_TAG_partial_unit.
5370
5371 2012-05-10 Tom Tromey <tromey@redhat.com>
5372
5373 * cc-with-dwz.sh: New file.
5374
5375 2012-05-10 Tom Tromey <tromey@redhat.com>
5376
5377 * symtab.h (struct symtab) <includes, user>: New fields.
5378 * block.h (struct block_iterator) <d, idx, which>: New fields.
5379 * block.c (initialize_block_iterator, find_iterator_symtab)
5380 (block_iterator_step, block_iter_name_step)
5381 (block_iter_match_step): New functions.
5382 (block_iterator_first, block_iterator_next)
5383 (block_iter_name_first, block_iter_name_next)
5384 (block_iter_match_first, block_iter_match_next): Rewrite.
5385 (get_block_symtab): New function.
5386
5387 2012-05-10 Tom Tromey <tromey@redhat.com>
5388
5389 * jv-lang.c (get_java_class_symtab): Use allocate_global_block,
5390 set_block_symtab.
5391 * jit.c (finalize_symtab): Use allocate_global_block,
5392 set_block_symtab.
5393 * buildsym.c (finish_block_internal): New function, from old
5394 finish_block.
5395 (finish_block): Rewrite.
5396 (end_symtab): Use finish_block_internal, set_block_symtab.
5397 * block.h (struct global_block): New.
5398 (allocate_global_block, set_block_symtab): Declare.
5399 * block.c (allocate_global_block, set_block_symtab): New
5400 functions.
5401
5402 2012-05-10 Tom Tromey <tromey@redhat.com>
5403
5404 * psymtab.c (partial_map_expand_apply): Add assertion.
5405 (partial_map_symtabs_matching_filename): Skip included psymtabs.
5406 (psymtab_to_symtab): Find unshared psymtab.
5407 (dump_psymtab): Print including psymtabs.
5408 (recursively_search_psymtabs): New function.
5409 (expand_symtabs_matching_via_partial): Use it.
5410 * psympriv.h (struct partial_symtab) <user, searched_flag>: New
5411 fields.
5412 (enum psymtab_search_status): New.
5413
5414 2012-05-10 Tom Tromey <tromey@redhat.com>
5415
5416 * tracepoint.c (scope_info): Update.
5417 * symtab.c (lookup_block_symbol, iterate_over_symbols)
5418 (find_pc_sect_symtab, search_symbols)
5419 (default_make_symbol_completion_list_break_on)
5420 (make_file_symbol_completion_list): Update.
5421 * symmisc.c (dump_symtab_1): Update.
5422 * stack.c (print_frame_args, iterate_over_block_locals)
5423 (print_frame_labels, iterate_over_block_arg_vars): Update.
5424 * python/py-block.c (block_object) <dict>: Remove.
5425 <block>: New field.
5426 <iter>: Change type.
5427 (blpy_iter): Update.
5428 (blpy_block_syms_iternext): Update.
5429 * psymtab.c (map_block): Use block iterators.
5430 * objfiles.c (objfile_relocate1): Use ALL_DICT_SYMBOLS.
5431 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
5432 * mdebugread.c (parse_symbol, mylookup_symbol): Update.
5433 * infrun.c (check_exception_resume): Update.
5434 * cp-support.c (make_symbol_overload_list_block): Update.
5435 * coffread.c (patch_opaque_types): Update.
5436 * buildsym.c (finish_block, end_symtab): Use ALL_DICT_SYMBOLS.
5437 * block.h (struct block_iterator): New.
5438 (block_iterator_first, block_iterator_next, block_iter_name_first)
5439 (block_iter_name_next, block_iter_match_first)
5440 (block_iter_match_next): Declare.
5441 (ALL_BLOCK_SYMBOLS): Redefine.
5442 * block.c (block_iterator_first, block_iterator_next)
5443 (block_iter_name_first, block_iter_name_next)
5444 (block_iter_match_first, block_iter_match_next): New functions.
5445 * ada-lang.c (ada_add_block_symbols)
5446 (ada_make_symbol_completion_list): Use block iterator.
5447
5448 2012-05-10 Tom Tromey <tromey@redhat.com>
5449
5450 * psymtab.c (PSYMTAB_TO_SYMTAB): Remove.
5451 (find_pc_sect_symtab_from_partial, lookup_symbol_aux_psymtabs)
5452 (lookup_partial_symbol, find_last_source_symtab_from_partial)
5453 (read_psymtabs_with_filename, map_matching_symbols_psymtab)
5454 (expand_symtabs_matching_via_partial, maintenance_check_symtabs):
5455 Update.
5456
5457 2012-05-10 Joel Brobecker <brobecker@adacore.com>
5458
5459 * config/djgpp/fnchange.lst: Add entries for print-file-var-lib1.c,
5460 print-file-var-lib2.c, print-file-var-main.c and
5461 print-file-var.exp (located in gdb/testsuite/gdb.base).
5462
5463 2012-05-10 Joel Brobecker <brobecker@adacore.com>
5464
5465 * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
5466 try locating the symbol in the symbol's own objfile first, before
5467 extending the search to all objfiles.
5468 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
5469 out of lookup_symbol_aux_symtabs.
5470 (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
5471 Replace extracted-out code by call to lookup_symbol_aux_objfile.
5472 Do not search EXCLUDE_OBJFILE.
5473 (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
5474 (lookup_symbol_global): Search for matches in the block's objfile
5475 first, before searching all other objfiles.
5476
5477 2012-05-10 Tristan Gingold <gingold@adacore.com>
5478
5479 * printcmd.c (set_command): Add pre/post inc/dec.
5480
5481 2012-05-09 Frank Ch. Eigler <fche@redhat.com>
5482
5483 * gdb.1: Document -ex option.
5484
5485 2012-05-09 Joel Brobecker <brobecker@adacore.com>
5486
5487 * infcall.c (call_function_by_hand): Remove AT_SYMBOL handling.
5488 * inferior.h (AT_SYMBOL): Delete.
5489
5490 2012-05-09 Joel Brobecker <brobecker@adacore.com>
5491
5492 * mips-tdep.c (mips_push_dummy_code): New function.
5493 (mips_gdbarch_init): Set the gdbarch call_dummy_location to
5494 ON_STACK and install mips_push_dummy_code as our gdbarch
5495 push_dummy_code routine.
5496
5497 2012-05-09 Pedro Alves <palves@redhat.com>
5498
5499 * target.c (set_maintenance_target_async_permitted): Rename to ...
5500 (set_target_async_command): ... this.
5501 (show_maintenance_target_async_permitted): Rename to ...
5502 (show_target_async_command): ... this.
5503 (initialize_targets): Adjust.
5504
5505 2012-05-08 Doug Evans <dje@google.com>
5506
5507 * go-exp.y (classify_name): Add missing assignment of fields of
5508 yylval.ssym.
5509
5510 2012-05-08 Eli Zaretskii <eliz@gnu.org>
5511
5512 Display the ">" prompt in interactive mode while reading canned
5513 commands, even when the current interpreter is MI.
5514
5515 * interps.c (interp_set_temp): New function.
5516
5517 * interps.h (interp_set_temp): Add prototype.
5518
5519 * cli/cli-script.c (restore_interp): New cleanup function.
5520 (read_command_lines): Temporarily override the current interpreter
5521 with CLI and arrange for restoring the original one.
5522
5523 2012-05-12 Joel Sherrill <joel.sherrill@oarcorp.com>
5524
5525 * microblaze-rom.c (_initialize_picobug_rom): Add prototype.
5526
5527 2012-05-07 Sergio Durigan Junior <sergiodj@redhat.com>
5528
5529 * probe.c (parse_probes): Move conditional to check for
5530 debuginfo files from here...
5531 * stap-probe.c (stap_get_probes): ... to here.
5532
5533 2012-05-07 Mark Kettenis <kettenis@gnu.org>
5534 H.J. Lu <hongjiu.lu@intel.com>
5535
5536 * amd64-tdep.c (amd64_analyze_prologue): Additionally check for
5537 `movl %esp, %ebp' for the X32 ABI.
5538
5539 2012-05-07 Tom Tromey <tromey@redhat.com>
5540
5541 * dwarf2read.c (dwarf_tag_name): Return const char *. Use
5542 get_DW_TAG_name.
5543 (dwarf_attr_name): Return const char *. Use get_DW_AT_name.
5544 (dwarf_form_name): Return const char *. Use get_DW_FORM_name.
5545 (dwarf_stack_op_name): Remove.
5546 (dwarf_cfi_name): Return const char *. Use get_DW_ATE_name.
5547 (decode_locdesc): Use get_DW_OP_name.
5548 * dwarf2loc.c (unimplemented): Use get_DW_OP_name.
5549 (dwarf2_compile_expr_to_ax): Likewise.
5550 (disassemble_dwarf_expression): Likewise.
5551 * dwarf2expr.h: (dwarf_stack_op_name): Remove.
5552
5553 2012-05-07 Chung-Lin Tang <cltang@codesourcery.com>
5554
5555 * sh-linux-tdep.c: Include trad-frame.h and tramp-frame.h.
5556 (sh_linux_sigtramp_cache): New function.
5557 (sh_linux_sigreturn_init): New function.
5558 (sh_linux_rt_sigreturn_init): New function.
5559 (SH_MOVW,SH_TRAP,SH_OR_R0_R0): New symbols for instruction
5560 patterns.
5561 (SH_NR_SIGRETURN,SH_NR_RT_SIGRETURN): New symbols for sigreturn
5562 syscall codes.
5563 (sh_linux_sigreturn_tramp_frame): New tramp_frame definition.
5564 (sh_linux_rt_sigreturn_tramp_frame): Likewise.
5565 (sh_linux_init_abi): Add init calls to register new tramp_frame
5566 definitions under 32-bit SH, update comments.
5567
5568 2012-05-07 Pedro Alves <palves@redhat.com>
5569
5570 PR gdb/10952
5571
5572 * amd64-linux-tdep.c: Include glibc-tdep.h.
5573 (amd64_linux_init_abi): Install glibc_skip_solib_resolver as
5574 gdbarch_skip_solib_resolver callback.
5575
5576 2012-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
5577
5578 * auto-load.c (set_auto_load_safe_path): Reset AUTO_LOAD_SAFE_PATH
5579 back to DEFAULT_AUTO_LOAD_SAFE_PATH if it is being set to "".
5580 (show_auto_load_safe_path): Check any-directory by comparison with "/".
5581 (add_auto_load_safe_path): Change the error message.
5582 (_initialize_auto_load): Change the "safe-path" help text.
5583 * configure: Regenerate
5584 * configure.ac (--without-auto-load-safe-path): Set
5585 WITH_AUTO_LOAD_SAFE_PATH to /.
5586
5587 2012-05-05 Sergio Durigan Junior <sergiodj@redhat.com>
5588
5589 * stap-probe.h: Do not include unecessary `probe.h'.
5590
5591 2012-05-05 Alan Modra <amodra@gmail.com>
5592
5593 * elfread.c (elf_symtab_read): Use bfd_abs_section_ptr and
5594 bfd_und_section_ptr.
5595 * machoread.c (macho_symtab_add_minsym): Use bfd_abs_section_ptr
5596 and bfd_com_section_ptr.
5597
5598 2012-05-04 Joel Brobecker <brobecker@adacore.com>
5599
5600 * MAINTAINERS (Past Maintainers): Add Chris Faylor.
5601
5602 2012-05-04 Joel Brobecker <brobecker@adacore.com>
5603
5604 * windows-nat.h (segment_register_p_ftype): New typedef.
5605 (windows_set_segment_register_p): Add declaration.
5606 * windows-nat.c (segment_register_p): New static global.
5607 (windows_set_segment_register_p): New function.
5608 (do_windows_fetch_inferior_registers): Add special handling
5609 for segment registers.
5610 * amd64-windows-nat.c: #include "amd64-tdep.h".
5611 (amd64_windows_segment_register_p): New function.
5612 (_initialize_amd64_windows_nat): Call windows_set_segment_register_p.
5613 * i386-windows-nat.c: #include "i386-tdep.h".
5614 (i386_windows_segment_register_p): New function.
5615 (_initialize_i386_windows_nat): Call windows_set_segment_register_p.
5616
5617 2012-05-04 Tristan Gingold <gingold@adacore.com>
5618
5619 * printcmd.c (set_command): Emit a warning if the expression is not
5620 an assignment.
5621
5622 2012-05-03 Joel Brobecker <brobecker@adacore.com>
5623
5624 * nto-procfs.c (procfs_find_new_threads, procfs_pid_to_str):
5625 Make static.
5626
5627 2012-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
5628
5629 * stap-probe.c (stap_is_operator): Change declaration.
5630 (stap_get_opcode): Change return value.
5631 (stap_parse_argument_1): Update calls to `stap_get_opcode' and
5632 `stap_parse_argument_1'.
5633
5634 2012-05-03 Pedro Alves <pedro@codesourcery.com>
5635
5636 * infrun.c (displaced_step_fixup): Add "displaced:" prefix to
5637 debug log.
5638
5639 2012-05-03 Siva Chandra Reddy <sivachandra@google.com>
5640
5641 Add two new methods global_block and static_block to gdb.Symtab
5642 objects.
5643 * NEWS (Python scripting): Add entry about the new methods.
5644 * python/py-symtab.c (stpy_global_block): New function which
5645 implements the gdb.Symtab.global_block() method.
5646 (stpy_static_block): New function which implements the
5647 gdb.Symtab.static_block() method.
5648 (symtab_object_methods): Add entries for the two new methods.
5649
5650 2012-05-03 Doug Evans <dje@google.com>
5651
5652 * dwarf2read.c (dw2_find_symbol_file): Don't crash if there are no
5653 files.
5654
5655 2012-05-03 Yao Qi <yao@codesourcery.com>
5656
5657 * i386-tdep.c (i386_fetch_pointer_argument): Remove extra
5658 space.
5659 (i386_process_record): Ditto.
5660
5661 2012-05-02 Joel Brobecker <brobecker@adacore.com>
5662
5663 * infcall.c (unwind_on_signal_p): Make static.
5664
5665 2012-05-02 Joel Brobecker <brobecker@adacore.com>
5666
5667 * sol-thread.c (solaris_pid_to_str): Make static.
5668 (_initialize_sol_thread): Add prototype.
5669
5670 2012-05-02 Joel Brobecker <brobecker@adacore.com>
5671
5672 * sol-thread.c (procfs_pid_to_str): Delete extern declaration.
5673
5674 2012-05-02 Christopher Faylor <me.cygwin2012@cgf.cx>
5675
5676 * MAINTAINERS: Remove myself.
5677
5678 2012-05-02 Jan Kratochvil <jan.kratochvil@redhat.com>
5679
5680 Fix --without-auto-load-safe-path for MS-Windows host platform.
5681 * auto-load.c (filename_is_in_dir): Return 1 for DIR_LEN 0.
5682
5683 2012-05-02 Eli Zaretskii <eliz@gnu.org>
5684
5685 * gdb_curses.h: Undefine KEY_EVENT before including curses
5686 headers. Move "#undef MOUSE_MOVED" before any curses header
5687 inclusion.
5688
5689 2012-05-02 Sergio Durigan Junior <sergiodj@gmail.com>
5690
5691 * features/i386/i386-mmx-linux.c: Regenerate.
5692 * features/rs6000/powerpc-32.c: Likewise.
5693 * features/rs6000/powerpc-32l.c: Likewise.
5694 * features/rs6000/powerpc-403.c: Likewise.
5695 * features/rs6000/powerpc-403gc.c: Likewise.
5696 * features/rs6000/powerpc-405.c: Likewise.
5697 * features/rs6000/powerpc-505.c: Likewise.
5698 * features/rs6000/powerpc-601.c: Likewise.
5699 * features/rs6000/powerpc-602.c: Likewise.
5700 * features/rs6000/powerpc-603.c: Likewise.
5701 * features/rs6000/powerpc-604.c: Likewise.
5702 * features/rs6000/powerpc-64.c: Likewise.
5703 * features/rs6000/powerpc-64l.c: Likewise.
5704 * features/rs6000/powerpc-750.c: Likewise.
5705 * features/rs6000/powerpc-860.c: Likewise.
5706 * features/rs6000/powerpc-e500.c: Likewise.
5707 * features/rs6000/powerpc-e500l.c: Likewise.
5708 * features/rs6000/powerpc-isa205-32l.c: Likewise.
5709 * features/rs6000/powerpc-isa205-64l.c: Likewise.
5710 * features/rs6000/rs6000.c: Likewise.
5711
5712 2012-05-02 Sergio Durigan Junior <sergiodj@gmail.com>
5713
5714 * i386-tdep.c (i386_stap_parse_special_token) <s>: Remove unused
5715 variable.
5716 * stap-probe.c (stap_parse_single_operand) <reg_suffix,
5717 reg_ind_suffix, reg_suffix_len, reg_ind_suffix_len>: Likewise.
5718 (stap_parse_argument) <e>: Likewise.
5719 (handle_stap_probe) <byte_order>: Likewise.
5720
5721 2012-04-30 Doug Evans <dje@google.com>
5722
5723 * dwarf2read.c (init_cutu_and_read_dies): Renamed from
5724 init_and_read_dies_worker. All callers updated.
5725 (init_cu_and_read_dies, init_tu_and_read_dies): Delete. All calls
5726 replaced with init_cutu_and_read_dies.
5727 (load_partial_comp_unit): Pass 1 for use_existing_cu.
5728 (find_partial_die): Remove FIXME. Don't free current CU.
5729
5730 2012-04-30 Sterling Augustine <saugustine@google.com>
5731
5732 * contrib: New directory.
5733 * contrib/test_pubnames_and_indexes.py: New file.
5734
5735 2012-04-30 Doug Evans <dje@google.com>
5736
5737 * dwarf2read.c (dwarf_decode_macros): New arg section_name.
5738 All callers updated.
5739 (init_cu_die_reader): Verify the section is non-empty.
5740 (dwarf_decode_line_header): Don't dereference section->asection
5741 until we know the section is present.
5742
5743 2012-04-29 Sergio Durigan Junior <sergiodj@redhat.com>
5744
5745 * tracepoint.c (start_tracing, stop_tracing): Checking for NULL
5746 probes.
5747
5748 2012-04-29 Yao Qi <yao@codesourcery.com>
5749
5750 * gdb-code-style.el: New hook gdb-markup-hook
5751 and gdb-comment-hook.
5752
5753 2012-04-28 Doug Evans <dje@google.com>
5754
5755 Initial support for Fission. http://gcc.gnu.org/wiki/DebugFission
5756 * symfile.c (default_symfile_relocate): Use sectp->owner instead of
5757 objfile->obfd.
5758 * symfile.h (dwarf2_debug_sections): New member addr.
5759 * dwarf2expr.c (execute_stack_op): New case DW_OP_GNU_addr_index.
5760 (ctx_no_get_addr_index): New function.
5761 * dwarf2expr.h (dwarf_expr_context_funcs): New member get_addr_index.
5762 (ctx_no_get_addr_index): Declare.
5763 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): Update.
5764 * dwarf2loc.c (dwarf_expr_get_addr_index): New function.
5765 (dwarf_expr_ctx_funcs): Update.
5766 (needs_get_addr_index): New function.
5767 (needs_frame_ctx_funcs): Update.
5768 * dwarf2loc.h (dwarf2_read_addr_index): Declare.
5769 * dwarf2read.c: #include "gdbcore.h".
5770 (dwarf2_per_objfile): New members addr, dwo_files.
5771 (dwarf2_elf_names): Add entry for addr.
5772 (struct dwo_section_names): New type.
5773 (dwo_section_names): New static global.
5774 (dwarf2_cu): New members dwo_unit, addr_base, have_addr_base.
5775 (dwarf2_per_cu_data): New member is_debug_types, all boolean uses of
5776 old debug_types_section member updated to use this.
5777 Rename member debug_types_section to info_or_types_section,
5778 all uses updated.
5779 (signatured_type): Rename member type_offset to type_offset_in_tu,
5780 all uses updated. New member type_offset_in_section.
5781 (struct dwo_sections): New type.
5782 (struct dwo_unit): New type.
5783 (struct dwo_file): New type.
5784 (die_reader_specs): New member dwo_file.
5785 (dwarf2_locate_sections): Watch for .debug_addr.
5786 (zlib_decompress_section): Use sectp->owner instead of objfile->obfd.
5787 (dwarf2_read_section): Get bfd of section from bfd's asection,
5788 instead of objfile.
5789 (create_cus_from_index): Initialize the_cu->info_or_types_section.
5790 (create_signatured_type_table_from_index): Initialize
5791 sig_type->info_or_types_section.
5792 (dw2_get_file_names): Statement lists for type units with DWO files
5793 live in the DWO file.
5794 (create_debug_types_hash_table): New function.
5795 (create_all_type_units): Rewrite.
5796 (init_cu_die_reader): New arg dwo_file, all callers updated.
5797 (init_and_read_dies_worker): Get section from
5798 this_cu->info_or_types_section. Set sig_type->type_offset_in_section.
5799 Watch for DW_AT_GNU_dwo_name and if present lookup the file and
5800 continue reading the CU/TU from there.
5801 (init_cutu_and_read_dies_no_follow): New arg dwo_file, all callers
5802 updated. Get section from this_cu->info_or_types_section.
5803 (create_all_comp_units): Initialize this_cu->info_or_types_section.
5804 (skip_one_die): New cases DW_FORM_GNU_addr_index,
5805 DW_FORM_GNU_str_index.
5806 (hash_dwo_file, eq_dwo_file): New functions.
5807 (allocate_dwo_file_hash_table): New function.
5808 (hash_dwo_unit, eq_dwo_unit): New functions.
5809 (allocate_dwo_unit_table): New function.
5810 (dwarf2_locate_dwo_sections): New function.
5811 (struct create_dwo_info_table_data): New type.
5812 (create_debug_info_hash_table_reader): New function.
5813 (create_debug_info_hash_table): New function.
5814 (try_open_dwo_file, open_dwo_file, init_dwo_file): New function.
5815 (lookup_dwo_file): New function.
5816 (lookup_dwo_comp_unit, lookup_dwo_type_unit): New functions.
5817 (free_dwo_file, free_dwo_file_cleanup): New functions.
5818 (free_dwo_file_from_slot, free_dwo_files): New functions.
5819 (dwarf2_get_pc_bounds): Handle DW_FORM_GNU_addr_index.
5820 (dwarf2_record_block_ranges): Ditto.
5821 (read_partial_die): Ditto.
5822 (process_enumeration_scope): Update to use type_offset_in_section.
5823 (read_full_die_1): New function.
5824 (read_full_die): Rewrite.
5825 (read_attribute_value): New cases DW_FORM_GNU_addr_index,
5826 DW_FORM_GNU_str_index.
5827 (read_addr_index_1, read_addr_index): New functions.
5828 (read_addr_index_from_leb128): New function.
5829 (struct dwarf2_read_addr_index_data): New type.
5830 (dwarf2_read_addr_index_reader): New function.
5831 (dwarf2_read_addr_index): New function.
5832 (read_str_index): New function.
5833 (leb128_size): New function.
5834 (dwarf_decode_line_header): Delete arg abfd, all callers updated.
5835 If processing a type unit from a DWO file, get the line section
5836 from the DWO file.
5837 (var_decode_location): Watch for DW_OP_GNU_addr_index.
5838 (dwarf2_const_value_attr): New cases DW_FORM_GNU_addr_index,
5839 DW_FORM_GNU_str_index.
5840 (lookup_die_type): Check whether section offset of type's die is
5841 known before looking it up. Remove assert. Condition can
5842 legimately happen for inter-cu type references.
5843 (dwarf_attr_name): Handle Fission attributes.
5844 (dwarf_form_name): Handle Fission forms.
5845 (dump_die_shallow): New cases DW_FORM_GNU_addr_index,
5846 DW_FORM_GNU_str_index.
5847 (follow_die_sig): Update to use type_offset_in_section.
5848 (decode_locdesc): New case DW_OP_GNU_addr_index.
5849 (skip_form_bytes): New cases DW_FORM_GNU_addr_index,
5850 DW_FORM_GNU_str_index.
5851 (cu_debug_loc_section): New function.
5852 (fill_in_loclist_baton, dwarf2_symbol_mark_computed): Call it.
5853 (dwarf2_per_objfile_free): Unmap .debug_addr section.
5854 Free DWO files if present.
5855 * xcoffread.c (dwarf2_xcoff_names): Add .debug_addr.
5856
5857 Refactor DIE reading.
5858 * dwarf2read.c (dwarf2_per_objfile): Replace members
5859 debug_info_type_hash and debug_types_type_hash with die_type_hash.
5860 (die_reader_specs): New member "die_section". Temporarily make
5861 member "buffer" non-const, pending constifying all info_ptr uses.
5862 (die_reader_func_ftype): New typedef.
5863 (dw2_get_file_names_reader): New function.
5864 (dw2_get_file_names): Rewrite.
5865 (read_and_check_type_unit_head): Rename arg type_offset to
5866 type_offset_in_tu.
5867 (create_all_type_units): Improve debugging message.
5868 Improve dummy type unit check.
5869 (init_cu_die_reader): New arg "section". All callers updated.
5870 (init_and_read_dies_worker): New function.
5871 (init_cu_and_read_dies, init_tu_and_read_dies): New functions.
5872 (init_cutu_and_read_dies_no_follow): New function.
5873 (init_cutu_and_read_dies_simple): New function.
5874 (process_psymtab_comp_unit_reader): New function.
5875 (process_psymtab_comp_unit): Delete args section,
5876 is_debug_types_section. Rewrite. All callers updated.
5877 (process_psymtab_type_unit): Renamed from process_type_comp_unit.
5878 All callers updated. Rewrite.
5879 (load_partial_comp_unit_reader): New function.
5880 (load_partial_comp_unit): Rewrite.
5881 (skip_children): New arg reader. Delete args buffer, cu.
5882 All callers updated.
5883 (skip_one_die): New arg reader. Delete args buffer, cu.
5884 All callers updated.
5885 (locate_pdi_sibling): New arg reader. Delete args buffer, abfd, cu.
5886 All callers updated.
5887 (load_full_comp_unit_reader): New function.
5888 (load_full_comp_unit): Rewrite.
5889 (read_comp_unit): Delete.
5890 (read_die_and_children_1): Delete, contents moved ...
5891 (read_die_and_children): ... here.
5892 (dwarf2_read_abbrevs): New arg abbrev_section. All callers updated.
5893 (load_partial_dies): New arg reader. Delete args abfd, buffer, cu.
5894 All callers updated.
5895 (read_partial_die): New arg reader. Delete args abfd, buffer, cu.
5896 All callers updated.
5897 (find_partial_die): Rewrite load_all_dies support.
5898 (read_attribute_value): New arg reader. Delete args abfd, cu.
5899 All callers updated.
5900 (read_attribute): New arg reader. Delete args abfd, cu.
5901 All callers updated.
5902 (load_full_type_unit): Add assert.
5903 (read_signatured_type_reader): New function.
5904 (read_signatured_type): Rewrite.
5905 (free_stack_comp_unit): Remove call to age_cached_comp_units.
5906 (free_one_cached_comp_unit): Change target_cu arg to target_per_cu.
5907 All callers updated. Set per_cu->cu = NULL after freeing it.
5908 (dwarf2_per_cu_offset_and_type): Renamed from dwarf2_offset_and_type.
5909 (per_cu_offset_and_type_hash): Renamed from offset_and_type_hash.
5910 (per_cu_offset_and_type_eq): Renamed from offset_and_type_eq.
5911 (set_die_type): Update.
5912 (get_die_type_at_offset): Update.
5913 (read_file_scope): Call prepare_one_comp_unit.
5914 (read_type_unit_scope): Ditto.
5915 (prepare_one_comp_unit): Set producer if present.
5916
5917 2012-04-28 Sergio Durigan Junior <sergiodj@redhat.com>
5918
5919 * probe.c (compile_rx_or_error): Silence ARI warning about missing
5920 gettext function on `error'.
5921
5922 2012-04-27 Doug Evans <dje@google.com>
5923
5924 * dwarf2read.c (dwarf2_read_index): Don't use index if symbol table
5925 is empty.
5926
5927 2012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
5928 Tom Tromey <tromey@redhat.com>
5929
5930 * breakpoint.c (struct breakpoint_objfile_data)
5931 <longjmp_searched>,<longjmp_probes>,<exception_searched>,
5932 <exception_probes>: New fields.
5933 (free_breakpoint_probes): New function.
5934 (create_longjmp_master_breakpoint): Prefer SystemTap probe over
5935 `_Unwind_DebugHook'.
5936 (create_exception_master_breakpoint): Likewise.
5937 (_initialize_breakpoint): Registering cleanup for SystemTap probes.
5938 * infrun.c: Including necessary header files for handling SystemTap
5939 probes.
5940 (handle_inferior_event): Handling longjmp breakpoint and exceptions
5941 via SystemTap probes.
5942 (check_exception_resume): Remove `func' argument. Handle exception
5943 unwinding breakpoint set via a SystemTap probe.
5944 (insert_exception_resume_from_probe): New function.
5945
5946 2012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
5947 Tom Tromey <tromey@redhat.com>
5948 Jan Kratochvil <jan.kratochvil@redhat.com>
5949
5950 * Makefile.in (SFILES): Add `probe' and `stap-probe'.
5951 (COMMON_OBS): Likewise.
5952 (HFILES_NO_SRCDIR): Add `probe'.
5953 * NEWS: Mention support for static and SystemTap probes.
5954 * amd64-tdep.c (amd64_init_abi): Initializing proper fields used by
5955 SystemTap probes' arguments parser.
5956 * arm-linux-tdep.c: Including headers needed to perform the parsing
5957 of SystemTap probes' arguments.
5958 (arm_stap_is_single_operand): New function.
5959 (arm_stap_parse_special_token): Likewise.
5960 (arm_linux_init_abi): Initializing proper fields used by SystemTap
5961 probes' arguments parser.
5962 * ax-gdb.c (require_rvalue): Removing static declaration.
5963 (gen_expr): Likewise.
5964 * ax-gdb.h (gen_expr): Declaring function.
5965 (require_rvalue): Likewise.
5966 * breakpoint.c: Include `gdb_regex.h' and `probe.h'.
5967 (bkpt_probe_breakpoint_ops): New variable.
5968 (momentary_breakpoint_from_master): Set the `probe' value.
5969 (add_location_to_breakpoint): Likewise.
5970 (break_command_1): Using proper breakpoint_ops according to the
5971 argument passed by the user in the command line.
5972 (bkpt_probe_insert_location): New function.
5973 (bkpt_probe_remove_location): Likewise.
5974 (bkpt_probe_create_sals_from_address): Likewise.
5975 (bkpt_probe_decode_linespec): Likewise.
5976 (tracepoint_probe_create_sals_from_address): Likewise.
5977 (tracepoint_probe_decode_linespec): Likewise.
5978 (tracepoint_probe_breakpoint_ops): New variable.
5979 (trace_command): Using proper breakpoint_ops according to the
5980 argument passed by the user in the command line.
5981 (initialize_breakpoint_ops): Initializing breakpoint_ops for
5982 static probes on breakpoints and tracepoints.
5983 * breakpoint.h (struct bp_location) <probe>: New field.
5984 * cli-utils.c (skip_spaces_const): New function.
5985 (extract_arg): Likewise.
5986 * cli-utils.h (skip_spaces_const): Likewise.
5987 (extract_arg): Likewise.
5988 * coffread.c (coff_sym_fns): Add `sym_probe_fns' value.
5989 * configure.ac: Append `stap-probe.o' to be generated when ELF
5990 support is present.
5991 * configure: Regenerate.
5992 * dbxread.c (aout_sym_fns): Add `sym_probe_fns' value.
5993 * elfread.c: Include `probe.h' and `arch-utils.h'.
5994 (probe_key): New variable.
5995 (elf_get_probes): New function.
5996 (elf_get_probe_argument_count): Likewise.
5997 (elf_evaluate_probe_argument): Likewise.
5998 (elf_compile_to_ax): Likewise.
5999 (elf_symfile_relocate_probe): Likewise.
6000 (stap_probe_key_free): Likewise.
6001 (elf_probe_fns): New variable.
6002 (elf_sym_fns): Add `sym_probe_fns' value.
6003 (elf_sym_fns_lazy_psyms): Likewise.
6004 (elf_sym_fns_gdb_index): Likewise.
6005 (_initialize_elfread): Initialize objfile cache for static
6006 probes.
6007 * gdb_vecs.h (struct probe): New forward declaration.
6008 (probe_p): New VEC declaration.
6009 * gdbarch.c: Regenerate.
6010 * gdbarch.h: Regenerate.
6011 * gdbarch.sh (stap_integer_prefix): New variable.
6012 (stap_integer_suffix): Likewise.
6013 (stap_register_prefix): Likewise.
6014 (stap_register_suffix): Likewise.
6015 (stap_register_indirection_prefix): Likewise.
6016 (stap_register_indirection_suffix): Likewise.
6017 (stap_gdb_register_prefix): Likewise.
6018 (stap_gdb_register_suffix): Likewise.
6019 (stap_is_single_operand): New function.
6020 (stap_parse_special_token): Likewise.
6021 (struct stap_parse_info): Forward declaration.
6022 * i386-tdep.c: Including headers needed to perform the parsing
6023 of SystemTap probes' arguments.
6024 (i386_stap_is_single_operand): New function.
6025 (i386_stap_parse_special_token): Likewise.
6026 (i386_elf_init_abi): Initializing proper fields used by SystemTap
6027 probes' arguments parser.
6028 * i386-tdep.h (i386_stap_is_single_operand): New function.
6029 (i386_stap_parse_special_token): Likewise.
6030 * machoread.c (macho_sym_fns): Add `sym_probe_fns' value.
6031 * mipsread.c (ecoff_sym_fns): Likewise.
6032 * objfiles.c (objfile_relocate1): Support relocation for static
6033 probes.
6034 * parse.c (prefixify_expression): Remove static declaration.
6035 (initialize_expout): Likewise.
6036 (reallocate_expout): Likewise.
6037 * parser-defs.h (initialize_expout): Declare function.
6038 (reallocate_expout): Likewise.
6039 (prefixify_expression): Likewise.
6040 * ppc-linux-tdep.c: Including headers needed to perform the parsing
6041 of SystemTap probes' arguments.
6042 (ppc_stap_is_single_operand): New function.
6043 (ppc_stap_parse_special_token): Likewise.
6044 (ppc_linux_init_abi): Initializing proper fields used by SystemTap
6045 probes' arguments parser.
6046 * probe.c: New file, for generic statically defined probe support.
6047 * probe.h: Likewise.
6048 * s390-tdep.c: Including headers needed to perform the parsing of
6049 SystemTap probes' arguments.
6050 (s390_stap_is_single_operand): New function.
6051 (s390_gdbarch_init): Initializing proper fields used by SystemTap
6052 probes' arguments parser.
6053 * somread.c (som_sym_fns): Add `sym_probe_fns' value.
6054 * stap-probe.c: New file, for SystemTap probe support.
6055 * stap-probe.h: Likewise.
6056 * symfile.h: Include `gdb_vecs.h'.
6057 (struct sym_probe_fns): New struct.
6058 (struct sym_fns) <sym_probe_fns>: New field.
6059 * symtab.c (init_sal): Initialize `probe' field.
6060 * symtab.h (struct probe): Forward declaration.
6061 (struct symtab_and_line) <probe>: New field.
6062 * tracepoint.c (start_tracing): Adjust semaphore on breakpoints
6063 locations.
6064 (stop_tracing): Likewise.
6065 * xcoffread.c (xcoff_sym_fns): Add `sym_probe_fns' value.
6066
6067 2012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
6068 Tom Tromey <tromey@redhat.com>
6069
6070 * ax-gdb.c (gen_expr): Clean up code to handle internal variables
6071 and to compile agent expressions.
6072 * infrun.c (siginfo_make_value): New argument `ignore'.
6073 (siginfo_funcs): New struct.
6074 (_initialize_infrun): New argument when calling
6075 `create_internalvar_type_lazy'.
6076 * thread.c (thread_id_make_value): New argument `ignore'.
6077 (thread_funcs): New struct.
6078 (_initialize_thread): New argument when calling
6079 `create_internalvar_type_lazy'.
6080 * tracepoint.c (sdata_make_value): New argument `ignore'.
6081 (sdata_funcs): New struct.
6082 (_initialize_tracepoint): New argument when calling
6083 `create_internalvar_type_lazy'.
6084 * value.c (make_value): New struct.
6085 (create_internalvar_type_lazy): New argument `data'.
6086 (compile_internalvar_to_ax): New function.
6087 (value_of_internalvar): Properly handling `make_value' case.
6088 (clear_internalvar): Likewise.
6089 (show_convenience): Adding `TRY_CATCH' block.
6090 * value.h (internalvar_make_value): Delete, replace by...
6091 (struct internalvar_funcs): ... this.
6092 (create_internalvar_type_lazy) <fun>: Delete argument.
6093 (create_internalvar_type_lazy) <funcs>, <data>: New arguments.
6094 (compile_internalvar_to_ax): New function.
6095 * windows-tdep.c (tlb_make_value): New argument `ignore'.
6096 (tlb_funcs): New struct.
6097 (_initialize_windows_tdep): New argument when calling
6098 `create_internalvar_type_lazy'.
6099
6100 2012-04-27 Mark Wielaard <mjw@redhat.com>
6101
6102 * dwarf2read.c (dwarf2_get_pc_bounds): Check DW_AT_high_pc form to
6103 see whether it is an address or a constant offset from DW_AT_low_pc.
6104 (dwarf2_record_block_ranges): Likewise.
6105 (read_partial_die): Likewise.
6106
6107 2012-04-26 Mark Wielaard <mjw@redhat.com>
6108
6109 * MAINTAINERS (Write After Approval): Add myself to the list.
6110
6111 2012-04-26 Maciej W. Rozycki <macro@codesourcery.com>
6112
6113 * proc-utils.h (proc_prettyprint_signalset): New prototype.
6114 (proc_prettyprint_signal): Likewise.
6115 (proc_prettyprint_faultset): Likewise.
6116 (proc_prettyprint_fault): Likewise.
6117 (proc_prettyprint_actionset): Likewise.
6118 (proc_prettyprint_flags): Move to new proc-flags.c section.
6119 (proc_prettyfprint_flags): New prototype.
6120 * procfs.c (proc_nsysarg, proc_sysargs): Add prototypes.
6121 (proc_syscall, proc_cursig): Likewise.
6122 (proc_set_kill_on_last_close): Likewise.
6123 (proc_unset_kill_on_last_close): Likewise.
6124 (proc_set_watchpoint): Make static.
6125 (proc_delete_dead_threads): Likewise.
6126 (procfs_set_watchpoint): Likewise.
6127 (_initialize_procfs): Add prototype.
6128 * proc-events.c: Include proc-utils.h.
6129 (init_syscall_table): Make static.
6130 * proc-api.c (_initialize_proc_api): Add prototype.
6131 * proc-flags.c: Include proc-utils.h.
6132
6133 2012-04-26 Maciej W. Rozycki <macro@codesourcery.com>
6134
6135 * configure.ac: Add AC_ARG_PROGRAM.
6136 * configure: Regenerate.
6137
6138 2012-04-26 Jan Kratochvil <jan.kratochvil@redhat.com>
6139
6140 Fix DW_AT_lower_bound defaults for DWARF-4+.
6141 * dwarf2read.c (read_subrange_type): Remove initialization of low and
6142 high. New variable low_default_is_valid. Implement DWARF-4+
6143 DW_AT_lower_bound defaults. Print complaint for DW_AT_lower_bound with
6144 no default by the DWARF standard.
6145
6146 2012-04-26 Maciej W. Rozycki <macro@mips.com>
6147 Maciej W. Rozycki <macro@codesourcery.com>
6148
6149 * infrun.c (handle_inferior_event): Move the check for return
6150 trampolines ahead of the check for function trampolines.
6151 * mips-tdep.h (MIPS_S2_REGNUM, MIPS_GP_REGNUM): New macros.
6152 * mips-tdep.c (mips_str_mips16_call_stub): New variable.
6153 (mips_str_mips16_ret_stub): Likewise.
6154 (mips_str_call_fp_stub): Likewise.
6155 (mips_str_call_stub): Likewise.
6156 (mips_str_fn_stub): Likewise.
6157 (mips_str_pic): Likewise.
6158 (mips_in_frame_stub): New function.
6159 (mips_unwind_pc): Return the return address rather than the PC
6160 if the PC of an intermediate frame is inside a call thunk.
6161 (mips_is_stub_suffix): New function.
6162 (mips_is_stub_mode): Likewise.
6163 (mips_get_mips16_fn_stub_pc): Likewise.
6164 (mips_skip_mips16_trampoline_code): Update to handle all the
6165 currently generated stub types. Don't recurse into __fn_stub
6166 thunks. Remove heuristics to handle stubs beyond etext/_etext.
6167 Use cooked register accesses.
6168 (mips_in_return_stub): Reintroduce function.
6169 (mips_skip_trampoline_code): Traverse trampolines recursively.
6170 (mips_gdbarch_init): Handle MIPS16 return trampolines.
6171
6172 2012-04-26 Joel Brobecker <brobecker@adacore.com>
6173
6174 GDB 7.4.1 released.
6175
6176 2012-04-26 Jonathan Larmour <jifl@eCosCentric.com>
6177
6178 * arm-tdep.h (VFP_REGISTER_SIZE): Define.
6179 * features/arm-with-m-vfp-d16.xml: New file. Describes
6180 Cortex-M with VFPv4-sp-d16 FPU register layout.
6181 * features/Makefile (WHICH): Add arm-with-m-vfp-d16.
6182 * features/arm-with-m-vfp-d16.c: New. Generated from above.
6183 * arm-tdep.c: Include arm-with-m-vfp-d16.c.
6184 (arm-register_g_packet_guesses): Add vfp-d16 guess.
6185 (_initialise_arm_tdep): Initialize arm-with-m-vfp-d16 tdesc.
6186
6187 2012-04-25 Doug Evans <dje@google.com>
6188
6189 * cli/cli-decode.c (print_doc_line): Use stream instead of
6190 current_uiout.
6191
6192 2012-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
6193
6194 * features/arm-with-iwmmxt.c: Regenerate.
6195 * features/arm-with-m-fpa-layout.c: Likewise.
6196 * features/arm-with-m.c: Likewise.
6197 * features/arm-with-neon.c: Likewise.
6198 * features/arm-with-vfpv2.c: Likewise.
6199 * features/arm-with-vfpv3.c: Likewise.
6200 * features/mips-dsp-linux.c: Likewise.
6201 * features/mips-linux.c: Likewise.
6202 * features/mips64-dsp-linux.c: Likewise.
6203 * features/mips64-linux.c: Likewise.
6204 * features/s390-linux32.c: Likewise.
6205 * features/s390-linux32v1.c: Likewise.
6206 * features/s390-linux32v2.c: Likewise.
6207 * features/s390-linux64.c: Likewise.
6208 * features/s390-linux64v1.c: Likewise.
6209 * features/s390-linux64v2.c: Likewise.
6210 * features/s390x-linux64.c: Likewise.
6211 * features/s390x-linux64v1.c: Likewise.
6212 * features/s390x-linux64v2.c: Likewise.
6213 * features/tic6x-c62x-linux.c: Likewise.
6214 * features/tic6x-c62x.c: Likewise.
6215 * features/tic6x-c64x-linux.c: Likewise.
6216 * features/tic6x-c64x.c: Likewise.
6217 * features/tic6x-c64xp-linux.c: Likewise.
6218 * features/tic6x-c64xp.c: Likewise.
6219 * target-descriptions.c: Only generate `field_type' and `type'
6220 variables when needed.
6221
6222 2012-04-25 Fredrik Hederstierna <fredrikh.hederstierna@securitas-direct.com>
6223
6224 * cli/cli-cmds.c (cd_command): Use memmove instead of strcpy.
6225
6226 2012-04-25 Doug Evans <dje@google.com>
6227
6228 Initial pass at Go language support.
6229 * NEWS: Mention Go.
6230 * Makefile.in (SFILES): Add go-exp.y, go-lang.c, go-typeprint.c,
6231 go-valprint.c.
6232 (COMMON_OBS): Add go-lang.o, go-val.print.o, go-typeprint.o.
6233 (YYFILES): Add go-exp.c.
6234 (YYOBJ): Add go-exp.o.
6235 (local-maintainer-clean): Delete go-exp.c.
6236 * defs.h (enum language): Add language_go.
6237 * dwarf2read.c: #include "go-lang.h".
6238 (fixup_go_packaging): New function.
6239 (process_full_comp_unit): Call it when processing Go CUs.
6240 (dwarf2_physname): Add Go support.
6241 (read_file_scope): Handle missing language spec for GNU Go.
6242 (set_cu_language): Handle DW_LANG_Go.
6243 * go-exp.y: New file.
6244 * go-lang.h: New file.
6245 * go-lang.c: New file.
6246 * go-typeprint.c: New file.
6247 * go-valprint.c: New file.
6248 * symtab.c: #include "go-lang.h".
6249 (symbol_set_language): Handle language_go.
6250 (symbol_find_demangled_name, symbol_set_names): Ditto.
6251 (symbol_natural_name, demangle_for_lookup, find_main_name): Ditto.
6252
6253 2012-04-24 Jim Meyering <meyering@redhat.com>
6254
6255 avoid a few strncpy-induced buffer overruns
6256 * procfs.c (procfs_make_note_section): Be sure to NUL-terminate
6257 fname and psargs before trying to concatenate.
6258 * tui/tui-stack.c (tui_get_function_from_frame): NUL-terminate
6259 "name" before applying strchr.
6260
6261 2012-04-25 Siva Chandra Reddy <sivachandra@google.com>
6262
6263 * CONTRIBUTE: Use unified diff instead of context diff when
6264 generating patches.
6265
6266 2012-04-24 Maciej W. Rozycki <macro@codesourcery.com>
6267
6268 * mips-tdep.c (mips_about_to_return): Remove dead MIPS16 support
6269 code. Handle JR.HB correctly.
6270
6271 2012-04-24 Maciej W. Rozycki <macro@codesourcery.com>
6272
6273 * mips-tdep.c
6274 (is_mips16_addr, unmake_mips16_addr, make_mips16_addr): Group
6275 with the other MIPS16 helpers.
6276
6277 2012-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
6278
6279 * observer.sh: Conditionally declare `args', thus cleaning up
6280 unused instances of this variable.
6281
6282 2012-04-24 Yao Qi <yao@codesourcery.com>
6283
6284 Revert this patch to allow breakpoint always-inserted
6285 in record target.
6286 2011-12-05 Pedro Alves <pedro@codesourcery.com>
6287 * breakpoint.c: Include record.h.
6288 (breakpoints_always_inserted_mode): Return false when the record
6289 target is in use.
6290
6291 * breakpoint.c (iterate_over_bp_locations): New.
6292 * breakpoint.h: Declare.
6293 New typedef walk_bp_location_callback.
6294 * record.c (record_open): Call record_init_record_breakpoints.
6295 (record_sync_record_breakpoints): New.
6296 (record_init_record_breakpoints): New.
6297 * NEWS: Mention supporting breakpoint always-inserted mode in
6298 record target.
6299
6300 2012-04-24 Marc Khouzam <marc.khouzam@ericsson.com>
6301
6302 * mi/mi-main.c (mi_cmd_execute): Choose a live thread not just
6303 any thread.
6304
6305 2012-04-24 Yao Qi <yao@codesourcery.com>
6306
6307 * breakpoint.c (ep_is_catchpoint): Renamed to ...
6308 (is_catchpoint): ... it.
6309 (print_one_breakpoint_location): Caller update.
6310 * breakpoint.h: Update declaration.
6311
6312 2012-04-23 David S. Miller <davem@davemloft.net>
6313
6314 * configure.tgt (sparc-*-linux*): Set build_gdbserver to yes.
6315
6316 2012-04-23 Tom Tromey <tromey@redhat.com>
6317
6318 * buildsym.c (add_free_pendings): Remove.
6319 * buildsym.h (add_free_pendings): Remove.
6320
6321 2012-04-23 Doug Evans <dje@google.com>
6322
6323 * dwarf2read.c (partial_die_full_name): Record DW_FORM_ref_addr in
6324 attr.u.unsnd instead of attr.u.addr.
6325 (read_attribute_value) Ditto for cases DW_FORM_ref_addr,
6326 DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4, DW_FORM_reg8,
6327 DW_FORM_ref_udata.
6328 (dump_die_shallow): Update cases DW_FORM_ref_addr,
6329 DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4. Add cases DW_FORM_ref8,
6330 DW_FORM_ref_udata.
6331 (dwarf2_get_ref_die_offset): Use DW_UNSND for reference attributes.
6332
6333 2012-04-23 Maciej W. Rozycki <macro@codesourcery.com>
6334
6335 * mips-tdep.c (mips_n32n64_return_value): Fix coding style.
6336 (mips_o32_return_value): Likewise.
6337 (mips_o64_return_value): Likewise.
6338
6339 2012-04-21 Paul Hilfinger <hilfinger@adacore.com>
6340
6341 * ada-lang.c (ada_evaluate_subexp): Add cases for
6342 TYPE_CODE_INTERNAL_FUNCTION and for TYPE_GNU_IFUNC, following
6343 their treatment in eval.c.
6344
6345 2012-04-21 David S. Miller <davem@davemloft.net>
6346
6347 * sparc-tdep.c (X_DISP10): Define.
6348 (sparc_analyze_control_transfer): Handle compare-and-branch.
6349
6350 2012-04-21 Jonathan Larmour <jifl@eCosCentric.com>
6351
6352 * features/Makefile (WHICH): Add arm-with-m and arm-with-m-fpa-layout.
6353 * arm-tdep.c (arm_register_g_packet_guesses): Fix comment.
6354
6355 2012-04-20 Nigel Stephens <nigel@mips.com>
6356 Maciej W. Rozycki <macro@codesourcery.com>
6357
6358 * mips-tdep.c (mips_float_register_p): New function.
6359 (mips_convert_register_float_case_p): Use mips_float_register_p.
6360 (mips_register_type): Likewise.
6361 (mips_print_register): Likewise.
6362 (print_gp_register_row): Likewise.
6363 (mips_print_registers_info): Likewise.
6364
6365 2012-04-20 Shun-Yen Lu <dark.asparagus@gmail.com>
6366
6367 * mips-tdep.c (mips_elf_make_msymbol_special): Fix identification
6368 of mips16 symbols.
6369
6370 2012-04-20 Andrew Pinski <apinski@cavium.com>
6371
6372 * MAINTAINERS (Write After Approval): Add myself to the list.
6373
6374 2012-04-20 Sergio Durigan Junior <sergiodj@redhat.com>
6375
6376 * MAINTAINERS: Update my e-mail address.
6377
6378 2012-04-20 Pedro Alves <palves@redhat.com>
6379
6380 * acx_configure_dir.m4 (ACX_CONFIGURE_DIR): Handle absolute
6381 $srcdir.
6382 * configure: Regenerate.
6383
6384 2012-04-20 Sergio Durigan Junior <sergiodj@redhat.com>
6385
6386 * cp-support.h: Include `gdb_vecs.h'. Delete `const_char_ptr' VEC
6387 declaration.
6388 * gdb_vecs.h: Declare `const_char_ptr' VEC.
6389
6390 2012-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
6391
6392 Fix compilation compatibility with python-2.4
6393 * python/py-type.c (convert_field): Cast ADDRSTRING for
6394 PyObject_SetAttrString as non-const. New comment.
6395
6396 2012-04-19 Tom Tromey <tromey@redhat.com>
6397
6398 * top.c (quit_target): Use all_cleanups.
6399 * main.c (captured_command_loop): Use all_cleanups.
6400 * exceptions.c (throw_exception): Use all_cleanups.
6401
6402 2012-04-19 Pedro Alves <palves@redhat.com>
6403
6404 * Makefile.in (GNULIB_BUILDDIR): New.
6405 (LIBGNU, INCGNU, GNULIB_H): Adjust.
6406 (SUBDIRS): Add $(GNULIB_BUILDDIR).
6407 (CLEANDIRS). Remove gnulib/import.
6408 (REQUIRED_SUBDIRS): Replace gnulib/import with $(GNULIB_BUILDDIR).
6409 (all-lib): Ditto.
6410 (distclean): Remove the $(GNULIB_BUILDDIR) directory.
6411 (gnulib/import/Makefile): Replace gnulib/import with
6412 $(GNULIB_BUILDDIR). Set CONFIG_FILES to just Makefile.
6413 (ACLOCAL_AMFLAGS): Remove '-I gnulib/import/m4'.
6414 (aclocal_m4_deps): Remove the gnulib dependencies. Add
6415 acx_configure_dir.m4.
6416 * acinclude.m4: Include acx_configure_dir.m4.
6417 * acx_configure_dir.m4: New file.
6418 * aclocal.m4: Regenerate.
6419 * configure.ac: Remove gl_EARLY, gl_INIT and AM_INIT_AUTOMAKE
6420 calls. Configure gnulib using ACX_CONFIGURE_DIR.
6421 (GNULIB): New variable.
6422 (GNULIB_STDINT_H): Adjust.
6423 (AC_OUTPUT): Don't output gnulib/Makefile.
6424 * gdb/defs.h: Include build-gnulib/config.h.
6425 * aclocal.m4: Regenerate.
6426 * config.in: Regenerate.
6427 * configure: Regenerate.
6428
6429 * gnulib/Makefile.in: New file.
6430 * gnulib/configure.ac: New file.
6431 * gnulib/aclocal.m4: New file.
6432 * gnulib/config.in: New file.
6433 * gnulib/configure: New file.
6434 * gnulib/: Re-run gnulib-tool to adjust.
6435
6436 2012-04-19 Doug Evans <dje@google.com>
6437
6438 * cleanups.h (struct cleanup): Move to cleanups.c.
6439 (make_cleanup_dtor_ftype): New typedef.
6440 (make_cleanup_dtor): Use it.
6441 (ALL_CLEANUPS): Replace with ...
6442 (all_cleanups): ... this. Declare. All uses updated.
6443 * cleanups.c: #include "gdb_assert.h".
6444 (sentinel_cleanup): New static global.
6445 (SENTINEL_CLEANUP): Define.
6446 (cleanup_chain, final_cleanup_chain): Initialize to SENTINEL_CLEANUP.
6447 (make_my_cleanup2): Assert result is non-NULL.
6448 (all_cleanups): New function.
6449 (save_my_cleanups): Initialize new chain to SENTINEL_CLEANUP instead
6450 of NULL.
6451
6452 2012-04-19 Pedro Alves <palves@redhat.com>
6453
6454 * Makefile.in (HFILES_NO_SRCDIR): Remove gnulib/wchar.in.h.
6455 Adjust paths to gnulib imported files.
6456
6457 2012-04-19 Pedro Alves <palves@redhat.com>
6458
6459 * gnulib/: Move whole directory ...
6460 * gnulib/import/: ... here, and re-rerun gnulib-tool to adjust.
6461 * Makefile.in (LIBGNU, INCGNU, GNULIB_H, CLEANDIRS)
6462 (REQUIRED_SUBDIRS, all-lib, gnulib/Makefile, ACLOCAL_AMFLAGS)
6463 (aclocal_m4_deps): Adjust.
6464 * aclocal.m4: Regenerate.
6465 * configure: Regenerate.
6466 * configure.ac: Adjust AC_OUTPUT output.
6467
6468 2012-04-19 Yao Qi <yao@codesourcery.com>
6469
6470 * Makefile.in (SFILES): Add common/vec.c and remove vec.c.
6471 (vec.o): New rule.
6472 * vec.c: Move it ...
6473 * common/vec.c: ... here.
6474 * vec.h: Move it ...
6475 * common/vec.h: ... here.
6476
6477 2012-04-19 Yao Qi <yao@codesourcery.com>
6478
6479 * gdb-code-style.el: New.
6480
6481 2012-04-18 Pedro Alves <palves@redhat.com>
6482
6483 Update gnulib from latest git.
6484 (639ea5ae15e39fe48d43e04864b2997301e4b969)
6485
6486 * gnulib/Makefile.am: Update.
6487 * gnulib/dummy.c: Update.
6488 * gnulib/extra/arg-nonnull.h: Update.
6489 * gnulib/extra/c++defs.h: Update.
6490 * gnulib/extra/update-copyright: Update.
6491 * gnulib/extra/warn-on-use.h: Update.
6492 * gnulib/inttypes.in.h: Update.
6493 * gnulib/m4/00gnulib.m4: Update.
6494 * gnulib/m4/extensions.m4: Update.
6495 * gnulib/m4/gnulib-cache.m4: Update.
6496 * gnulib/m4/gnulib-common.m4: Update.
6497 * gnulib/m4/gnulib-comp.m4: Update.
6498 * gnulib/m4/gnulib-tool.m4: Update.
6499 * gnulib/m4/include_next.m4: Update.
6500 * gnulib/m4/inttypes-pri.m4: Update.
6501 * gnulib/m4/inttypes.m4: Update.
6502 * gnulib/m4/longlong.m4: Update.
6503 * gnulib/m4/memchr.m4: Update.
6504 * gnulib/m4/memmem.m4: Update.
6505 * gnulib/m4/mmap-anon.m4: Update.
6506 * gnulib/m4/multiarch.m4: Update.
6507 * gnulib/m4/onceonly.m4: Update.
6508 * gnulib/m4/stddef_h.m4: Update.
6509 * gnulib/m4/stdint.m4: Update.
6510 * gnulib/m4/string_h.m4: Update.
6511 * gnulib/m4/warn-on-use.m4: Update.
6512 * gnulib/m4/wchar_h.m4: Update.
6513 * gnulib/m4/wchar_t.m4: Update.
6514 * gnulib/m4/wint_t.m4: Update.
6515 * gnulib/memchr.c: Update.
6516 * gnulib/memmem.c: Update.
6517 * gnulib/stddef.in.h: Update.
6518 * gnulib/stdint.in.h: Update.
6519 * gnulib/str-two-way.h: Update.
6520 * gnulib/string.in.h: Update.
6521 * gnulib/wchar.in.h: Update.
6522
6523 * gnulib/extra/arg-nonnull.h: Delete.
6524 * gnulib/extra/c++defs.h: Delete.
6525 * gnulib/extra/warn-on-use.h: Delete.
6526 * gnulib/m4/wchar_h.m4: Delete.
6527 * gnulib/m4/wint_t.m4: Delete.
6528 * gnulib/wchar.in.h: Delete.
6529
6530 * gnulib/extra/snippets/arg-nonnull.h: New.
6531 * gnulib/extra/snippets/c++defs.h: New.
6532 * gnulib/extra/snippets/warn-on-use.h: New.
6533
6534 * aclocal.m4: Regenerate.
6535 * config.in: Regenerate.
6536 * configure: Regenerate.
6537 * gnulib/Makefile.in: Regenerate.
6538
6539 2012-04-18 Pedro Alves <palves@redhat.com>
6540
6541 Reimport the update-copyright module from gnulib
6542 (250b80067c1e1d8faa0c42fb572f721975b929c5).
6543
6544 * configure: Regenerate.
6545 * gnulib/Makefile.am: Update.
6546 * gnulib/Makefile.in: Regenerate.
6547 * gnulib/extra/update-copyright: Update.
6548 * gnulib/m4/gnulib-cache.m4: Update.
6549 * gnulib/m4/gnulib-comp.m4: Update.
6550
6551 2012-04-18 Tristan Gingold <gingold@adacore.com>
6552
6553 * configure.ac (aix): Put -lpthread into libs.
6554 * configure: Regenerate.
6555
6556 2012-04-18 Tom Tromey <tromey@redhat.com>
6557
6558 * linespec.c (convert_linespec_to_sals): Don't use
6559 SYMBOL_OBJ_SECTION.
6560 (compare_msymbols): Arguments are minsym_and_objfile, not
6561 minimal_symbol*. Don't use SYMBOL_OBJ_SECTION.
6562
6563 2012-04-18 Pedro Alves <palves@redhat.com>
6564
6565 Revert gnulib/ part of:
6566 2011-01-01 Joel Brobecker <brobecker@adacore.com>
6567 Copyright year update in most files (performed by copyright.sh).
6568
6569 2012-04-18 Jan Kratochvil <jan.kratochvil@redhat.com>
6570
6571 Fix 64-bit constants on 32-bit hosts.
6572 * dwarf2read.c (read_unsigned_leb128): Change declaration return type
6573 from unsigned long to ULONGEST.
6574 (read_signed_leb128): Change declaration return type from long to
6575 LONGEST.
6576 (dwarf2_const_value_attr): Change declaration parameter value from long
6577 to LONGEST.
6578 (dwarf2_compute_name): Change variable value from long to LONGEST.
6579 (read_unsigned_leb128): Change return type, variable result and some
6580 casts from unsigned long to ULONGEST.
6581 (read_signed_leb128): Change return type, variable result and some
6582 casts from long to LONGEST.
6583 (dwarf2_const_value_data, dwarf2_const_value_attr): Change parameter
6584 value from long to LONGEST.
6585 (dwarf2_const_value): Change variable value from long to LONGEST.
6586 * symmisc.c (print_symbol): Change SYMBOL_VALUE format strings to use
6587 plongest and hex_string.
6588 * symtab.h (struct general_symbol_info): Change ivalue from long to
6589 LONGEST, remove the comment.
6590 * tracepoint.c (validate_actionline, collect_symbol, scope_info):
6591 Change SYMBOL_VALUE format strings to use plongest and hex_string.
6592
6593 2012-04-18 Siddhesh Poyarekar <siddhesh@redhat.com>
6594
6595 PR symtab/7259:
6596 * ada-exp.y (convert_char_literal): Use TYPE_FIELD_ENUMVAL.
6597 * ada-lang.c (ada_discrete_type_high_bound)
6598 (ada_discrete_type_low_bound): Fix function comment. Use
6599 TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
6600 (ada_identical_enum_types_p): Use TYPE_FIELD_ENUMVAL.
6601 (pos_atr, value_val_atr): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
6602 * ada-typeprint.c (print_enum_type): Change variable lastval to LONGEST.
6603 Use TYPE_FIELD_ENUMVAL.
6604 * ada-valprint.c (print_optional_low_bound, ada_print_scalar)
6605 (ada_val_print_1): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
6606 * c-typeprint.c (c_type_print_base): Move variable lastval to inner
6607 block, change it to LONGEST. Use TYPE_FIELD_ENUMVAL for
6608 TYPE_CODE_ENUM.
6609 * coffread.c (coff_read_enum_type): Use SET_FIELD_ENUMVAL.
6610 * dwarf2read.c (process_enumeration_scope): Likewise.
6611 * gdb-gdb.py (TypeFlagsPrinter): Use field.enumval instead of
6612 field.bitpos.
6613 (class StructMainTypePrettyPrinter): Support also
6614 FIELD_LOC_KIND_ENUMVAL.
6615 * gdbtypes.c (get_discrete_bounds): Use TYPE_FIELD_ENUMVAL for
6616 TYPE_CODE_ENUM.
6617 (recursive_dump_type): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
6618 (copy_type_recursive): Support also FIELD_LOC_KIND_ENUMVAL.
6619 * gdbtypes.h (enum field_loc_kind): New FIELD_LOC_KIND_ENUMVAL.
6620 (struct main_type.flds_bnds.fields.loc): Adjust bitpos comment. New
6621 field enumval.
6622 (struct main_type.flds_bnds.bields): Adjust loc_kind and bitsize to
6623 accommodate enumval.
6624 (struct call_site): Adjust loc_kind to accommodate enumval.
6625 (FIELD_ENUMVAL, FIELD_ENUMVAL_LVAL, SET_FIELD_ENUMVAL)
6626 (TYPE_FIELD_ENUMVAL): New macros.
6627 * m2-typeprint.c (m2_enum): Use TYPE_FIELD_ENUMVAL.
6628 * mdebugread.c (parse_symbol): Use TYPE_FIELD_ENUMVAL for
6629 TYPE_CODE_ENUM.
6630 * p-typeprint.c (pascal_type_print_base): Likewise.
6631 * python/lib/gdb/printing.py (class FlagEnumerationPrinter): Use
6632 enumval.
6633 * python/lib/gdb/types.py (make_enum_dict): Likewise.
6634 * python/py-type.c (convert_field): New variable addrstring. Use
6635 TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
6636 (check_types_equal): Support also FIELD_LOC_KIND_ENUMVAL.
6637 * stabsread.c (read_enum_type): Use SET_FIELD_ENUMVAL.
6638 * typepint.c (print_type_scalar): Use TYPE_FIELD_ENUMVAL for
6639 TYPE_CODE_ENUM.
6640 * valprint.c (generic_val_print): Likewise.
6641
6642 2012-04-17 Doug Evans <dje@google.com>
6643
6644 * dwarf2read.c (lookup_signatured_type): Return NULL instead of 0.
6645
6646 * dwarf2read.c: Whitespace fixes.
6647 (lookup_signatured_type): Tweak comment.
6648 (get_die_type_at_offset): Fix comment.
6649
6650 2012-04-17 Joel Brobecker <brobecker@adacore.com>
6651
6652 * xcoffread.c (xcoff_secnum_to_sections): New function.
6653 (secnum_to_section, secnum_to_bfd_section): Reimplement
6654 using xcoff_secnum_to_sections. Rename "secnum" parameter
6655 into "n_scnum".
6656 (RECORD_MINIMAL_SYMBOL): Delete.
6657 (record_minimal_symbol): New function.
6658 (scan_xcoff_symtab): Replace uses of RECORD_MINIMAL_SYMBOL
6659 by call to record_minimal_symbol and set misc_func_recorded
6660 to 1. Set last_csect_sec to the XCOFF section index instead
6661 of GDB's section_offset index. Update calls to
6662 prim_record_minimal_symbol_and_info to pass the BFD section
6663 as well.
6664
6665 2012-04-17 Joel Brobecker <brobecker@adacore.com>
6666
6667 * xcoffread.c (read_xcoff_symtab): Delete variables
6668 last_csect_val and last_csect_sec and associated code.
6669
6670 2012-04-17 Doug Evans <dje@google.com>
6671
6672 * cleanups.c (make_my_cleanup,make_my_cleanup2): Make static.
6673 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
6674 * cleanups.h (make_my_cleanup,make_my_cleanup2): Delete
6675 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Delete.
6676
6677 * cleanups.h: New file.
6678 * cleanups.c: New file.
6679 * Makefile.in (SFILES): Add cleanups.c.
6680 (HFILES_NO_SRCDIR): Add cleanups.h.
6681 (COMMON_OBS): Add cleanups.o.
6682 * defs.h (struct cleanup): Moved to cleanups.h.
6683 (do_cleanups,do_final_cleanups): Ditto.
6684 (discard_cleanups,discard_final_cleanups): Ditto
6685 (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
6686 (save_cleanups,save_final_cleanups): Ditto.
6687 (restore_cleanups,restore_final_cleanups): Ditto.
6688 (null_cleanup): Ditto.
6689 (make_my_cleanup,make_my_cleanup2): Ditto.
6690 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
6691 * utils.c (cleanup_chain,final_cleanup_chain): Moved to cleanups.c.
6692 (do_cleanups,do_final_cleanups): Ditto.
6693 (discard_cleanups,discard_final_cleanups): Ditto
6694 (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
6695 (save_cleanups,save_final_cleanups): Ditto.
6696 (restore_cleanups,restore_final_cleanups): Ditto.
6697 (null_cleanup): Ditto.
6698 (make_my_cleanup,make_my_cleanup2): Ditto.
6699 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
6700
6701 * utils.c (make_cleanup_freeargv): Use make_cleanup instead of
6702 make_my_cleanup.
6703 (make_cleanup_dyn_string_delete): Ditto.
6704 (make_cleanup_ui_file_delete): Ditto.
6705 (make_cleanup_ui_out_redirect_pop): Ditto.
6706 (make_cleanup_free_section_addr_info): Ditto.
6707 (make_cleanup_restore_integer): Ditto.
6708 (make_cleanup_unpush_target): Ditto.
6709 (make_cleanup_value_free_to_mark): Ditto.
6710 (make_cleanup_value_free): Ditto.
6711 (make_cleanup_free_so): Ditto.
6712
6713 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6714
6715 New option "set debug auto-load".
6716 * NEWS: New commands "set debug auto-load" and "show debug auto-load".
6717 * auto-load.c (debug_auto_load, show_debug_auto_load: New.
6718 (auto_load_safe_path_vec_update)
6719 (filename_is_in_auto_load_safe_path_vec): Call fprintf_unfiltered
6720 if DEBUG_AUTO_LOAD.
6721 (file_is_auto_load_safe): New parameters debug_fmt and ....
6722 Call fprintf_unfiltered if DEBUG_AUTO_LOAD.
6723 (source_gdb_script_for_objfile): Extend the file_is_auto_load_safe
6724 caller by explanatory string.
6725 (_initialize_auto_load): Register "set debug auto-load".
6726 * auto-load.h (file_is_auto_load_safe): New parameters debug_fmt
6727 and ....
6728 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
6729 (try_thread_db_load_from_dir): Extend the file_is_auto_load_safe caller
6730 by explanatory string.
6731 * main.c (captured_main): Likewise.
6732 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile)
6733 (source_section_scripts): Likewise.
6734
6735 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6736
6737 New option "set auto-load safe-path".
6738 * NEWS: New commands "set auto-load safe-path"
6739 and "show auto-load safe-path".
6740 * auto-load.c: Include gdb_vecs.h, readline/tilde.h and completer.h.
6741 (auto_load_safe_path, auto_load_safe_path_vec)
6742 (auto_load_safe_path_vec_update, set_auto_load_safe_path)
6743 (show_auto_load_safe_path, add_auto_load_safe_path, filename_is_in_dir)
6744 (filename_is_in_auto_load_safe_path_vec, file_is_auto_load_safe): New.
6745 (source_gdb_script_for_objfile): New variable is_safe. Call
6746 file_is_auto_load_safe. Return if it is not.
6747 (struct loaded_script): New field loaded.
6748 (maybe_add_script): Add parameter loaded. Initialize SLOT with it.
6749 (print_script): Use LOADED indicator instead of FULL_PATH. Change
6750 output "Missing" to "No".
6751 (_initialize_auto_load): New variable cmd. Initialize
6752 auto_load_safe_path. Register "set auto-load safe-path",
6753 "show auto-load safe-path" and "add-auto-load-safe-path".
6754 * auto-load.h (maybe_add_script): Add parameter loaded.
6755 (file_is_auto_load_safe): New declaration.
6756 * config.in: Regenerate.
6757 * configure: Regenerate.
6758 * configure.ac: New parameters --with-auto-load-safe-path
6759 and --without-auto-load-safe-path.
6760 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
6761 (try_thread_db_load_from_dir): Check file_is_auto_load_safe first.
6762 * main.c (captured_main): Check file_is_auto_load_safe for
6763 LOCAL_GDBINIT.
6764 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile): New
6765 variable is_safe. Call file_is_auto_load_safe. Return if it is not.
6766 (source_section_scripts): Call file_is_auto_load_safe. Return if it is
6767 not.
6768
6769 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6770
6771 auto-load: Implementation.
6772 * NEWS: New descriptions for "info auto-load",
6773 "info auto-load gdb-scripts", "info auto-load python-scripts",
6774 "info auto-load local-gdbinit" and "info auto-load libthread-db".
6775 Deprecate "info auto-load-scripts", "set auto-load-scripts on|off"
6776 and "show auto-load-scripts". New description for "set auto-load",
6777 "show auto-load", "set auto-load gdb-scripts",
6778 "show auto-load gdb-scripts", "set auto-load python-scripts",
6779 "show auto-load python-scripts", "set auto-load local-gdbinit",
6780 "show auto-load local-gdbinit", "set auto-load libthread-db" and
6781 "show auto-load libthread-db".
6782 * auto-load.c: Remove include python/python-internal.h. Add includes
6783 exceptions.h, cli/cli-script.h, gdbcmd.h, cli/cli-decode.h and
6784 cli/cli-setshow.h.
6785 (GDB_AUTO_FILE_NAME, source_gdb_script_for_objfile)
6786 (auto_load_gdb_scripts, show_auto_load_gdb_scripts): New.
6787 (gdbpy_global_auto_load): Rename to ...
6788 (global_auto_load): ... here.
6789 (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
6790 (auto_load_local_gdbinit_loaded, show_auto_load_local_gdbinit)
6791 (script_language_gdb, source_gdb_script_for_objfile): New.
6792 (struct loaded_script): New field language.
6793 (hash_loaded_script_entry, eq_loaded_script_entry): Calculate also
6794 LANGUAGE.
6795 (maybe_add_script): Add parameter language. Drop redundant
6796 entry.full_path initialization. Initialize entry.language and
6797 (*slot)->language.
6798 (auto_load_objfile_script): Change parameter suffix to language.
6799 Remove the call of maybe_add_script.
6800 Call language->source_script_for_objfile.
6801 (load_auto_scripts_for_objfile, struct collect_matching_scripts_data):
6802 New.
6803 (collect_matching_scripts): Adjust it for
6804 struct collect_matching_scripts_data.
6805 (auto_load_info_scripts_pattern_nl): New variable.
6806 (info_auto_load_scripts): Rename to ...
6807 (auto_load_info_scripts): ... here, add parameter language. Adjust it
6808 for struct collect_matching_scripts_data.
6809 (info_auto_load_gdb_scripts, info_auto_load_local_gdbinit)
6810 (set_auto_load_cmd, auto_load_set_cmdlist_get, show_auto_load_cmd)
6811 (auto_load_show_cmdlist_get, info_auto_load_cmd)
6812 (auto_load_info_cmdlist_get): New.
6813 (_initialize_auto_load): Move add_info of "auto-load-scripts" to
6814 python/py-auto-load.c. New installment for "set auto-load gdb-scripts",
6815 "info auto-load gdb-scripts", "set auto-load local-gdbinit" and
6816 "info auto-load local-gdbinit".
6817 * auto-load.h (struct script_language): New.
6818 (gdbpy_global_auto_load): Rename to ...
6819 (global_auto_load): ... here.
6820 (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
6821 (auto_load_local_gdbinit_loaded): New declarations.
6822 (maybe_add_script): New parameter language.
6823 (auto_load_objfile_script): Change parameter suffix to language.
6824 (load_auto_scripts_for_objfile, auto_load_info_scripts_pattern_nl)
6825 (auto_load_info_scripts, auto_load_set_cmdlist_get)
6826 (auto_load_show_cmdlist_get, auto_load_info_cmdlist_get): New
6827 declarations.
6828 * linux-thread-db.c: Include auto-load.h and ctype.h.
6829 (auto_load_thread_db, show_auto_load_thread_db): New.
6830 (struct thread_db_info): New field filename.
6831 (delete_thread_db_info): Call xfree for FILENAME.
6832 (try_thread_db_load): Initialize FILENAME.
6833 (try_thread_db_load_from_pdir, try_thread_db_load_from_dir): Return
6834 if !AUTO_LOAD_THREAD_DB.
6835 (info_auto_load_libthread_db_compare, info_auto_load_libthread_db): New.
6836 (_initialize_thread_db): Install auto_load_thread_db
6837 as "set auto-load libthread-db" and install info_auto_load_libthread_db
6838 as "info auto-load libthread-db".
6839 * main.c (captured_main): Rename gdbpy_global_auto_load to
6840 global_auto_load. Initialize AUTO_LOAD_LOCAL_GDBINIT_PATHNAME and
6841 AUTO_LOAD_LOCAL_GDBINIT_LOADED.
6842 (print_gdb_help): Extend the help for 'local init file'.
6843 * python/py-auto-load.c: Remove a comment about gdb scripts extension.
6844 (GDBPY_AUTO_SECTION_NAME): Extend the comment it is Python specific.
6845 (auto_load_scripts): Rename to ...
6846 (auto_load_python_scripts): ... here, update the comment.
6847 (gdbpy_load_auto_script_for_objfile): New declaration.
6848 (show_auto_load_python_scripts, script_language_python)
6849 (gdbpy_load_auto_script_for_objfile): New.
6850 (source_section_scripts): Refactor the code.
6851 (load_auto_scripts_for_objfile): Rename to ...
6852 (gdbpy_load_auto_scripts_for_objfile): ... here, update the
6853 auto_load_objfile_script caller, drop GDBPY_GLOBAL_AUTO_LOAD checking.
6854 (info_auto_load_python_scripts): New.
6855 (gdbpy_initialize_auto_load): New variables cmd and cmd_name.
6856 Rename "set auto-load-scripts" to "set auto-load python-scripts".
6857 Register "set auto-load-scripts" as its deprecated alias. Register
6858 "info auto-load python-scripts". Register "info auto-load-scripts" as
6859 its deprecated alias.
6860 (load_auto_scripts_for_objfile): Rename to ...
6861 (gdbpy_load_auto_scripts_for_objfile): ... here.
6862 * python/python.h (load_auto_scripts_for_objfile): Rename to ...
6863 (gdbpy_load_auto_scripts_for_objfile): ... here.
6864
6865 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6866
6867 auto-load: Move files.
6868 * Makefile.in (SFILES): Add auto-load.c.
6869 (HFILES_NO_SRCDIR): Add auto-load.h.
6870 (COMMON_OBS): Add auto-load.o.
6871 (distclean): Change .gdbinit for gdb-gdb.gdb.
6872 * auto-load.c: New file, with parts from python/py-auto-load.c.
6873 * auto-load.h: New file, with parts from python/python.h.
6874 * configure: Regenerate.
6875 * configure.ac (AC_OUTPUT): Change .gdbinit for gdb-gdb.gdb.
6876 * gdb-gdb.gdb.in: New file, renamed from gdbinit.in.
6877 * gdbinit.in: Remove file, rename it to gdb-gdb.gdb.in.
6878 * main.c: Include auto-load.h.
6879 * python/py-auto-load.c: Move include filenames.h, gdb_regex.h,
6880 command.h, observer.h and progspace.h to auto-load.c. Add include
6881 auto-load.h.
6882 (gdbpy_global_auto_load, struct auto_load_pspace_info)
6883 (struct loaded_script, auto_load_pspace_data)
6884 (auto_load_pspace_data_cleanup, get_auto_load_pspace_data)
6885 (hash_loaded_script_entry, eq_loaded_script_entry)
6886 (init_loaded_scripts_info, get_auto_load_pspace_data_for_loading)
6887 (maybe_add_script): Move to auto-load.c.
6888 (source_section_scripts): Change maybe_add_script parameters passing,
6889 use script_not_found_warning_print.
6890 (clear_section_scripts, auto_load_objfile_script)
6891 (auto_load_new_objfile, loaded_script_ptr)
6892 (DEF_VEC_P (loaded_script_ptr), collect_matching_scripts, print_script)
6893 (sort_scripts_by_name, info_auto_load_scripts): Move to auto-load.c.
6894 (gdbpy_initialize_auto_load): Move auto_load_pspace_data,
6895 auto_load_new_objfile and info_auto_load_scripts initizations to
6896 auto-load.c.
6897 * python/python.h (gdbpy_global_auto_load): Move to auto-load.h.
6898
6899 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6900
6901 Code cleanup.
6902 * charset.c (find_charset_names): Remove variables ix and elt.
6903 Use free_char_ptr_vec.
6904 * elfread.c (build_id_to_debug_filename): New variables debugdir_vec,
6905 back_to and ix. Use dirnames_to_char_ptr_vec. Remove variable
6906 debugdir_end. New variable debugdir_len.
6907 * gdb_vecs.h (free_char_ptr_vec, make_cleanup_free_char_ptr_vec)
6908 (dirnames_to_char_ptr_vec_append, dirnames_to_char_ptr_vec): New
6909 declarations.
6910 * progspace.c (clear_program_space_solib_cache): Remove variables ix
6911 and elt. Use free_char_ptr_vec.
6912 * source.c (add_path): Remove variables argv, arg and argv_index.
6913 New variables dir_vec, back_to, ix and name.
6914 Use dirnames_to_char_ptr_vec_append. Use freeargv instead of
6915 make_cleanup_freeargv. Remove variable separator. Simplify the code
6916 no longer expecting DIRNAME_SEPARATOR.
6917 (openp): Remove variable p, p1 and len. New variables dir_vec,
6918 back_to, ix and dir. Use dirnames_to_char_ptr_vec. Simplify the code
6919 no longer expecting DIRNAME_SEPARATOR.
6920 * symfile.c (find_separate_debug_file): New variables debugdir_vec,
6921 back_to and ix. Use dirnames_to_char_ptr_vec. Remove variable
6922 debugdir_end.
6923 * utils.c (free_char_ptr_vec, do_free_char_ptr_vec)
6924 (make_cleanup_free_char_ptr_vec, dirnames_to_char_ptr_vec_append)
6925 (dirnames_to_char_ptr_vec): New functions.
6926
6927 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6928
6929 Code cleanup.
6930 * source.c (add_path): Remove always true conditional 'p == 0' and
6931 unindent its code block.
6932
6933 2012-04-17 Pedro Alves <palves@redhat.com>
6934
6935 * gdbtypes.h (FIELD_BITPOS): Rename to ...
6936 (FIELD_BITPOS_LVAL): ... this.
6937 (FIELD_BITPOS): New.
6938 (SET_FIELD_BITPOS): Adjust to use FIELD_BITPOS_LVAL.
6939 * dwarf2read.c (dwarf2_add_field): Use SET_FIELD_BITPOS.
6940 * gdbtypes.c (append_composite_type_field_aligned): Adjust to use
6941 SET_FIELD_BITPOS.
6942 * gnu-v3-abi.c (build_gdb_vtable_type): Adjust to use
6943 SET_FIELD_BITPOS.
6944 * stabsread.c (read_cpp_abbrev, read_one_struct_field)
6945 (read_baseclasses): Adjust to use SET_FIELD_BITPOS.
6946 * target-descriptions.c (tdesc_gdb_type): Adjust to use
6947 SET_FIELD_BITPOS.
6948
6949 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6950
6951 Do not rely on FIELD_LOC_KIND_BITPOS being zero.
6952 * ada-lang.c (ada_template_to_fixed_record_type_1): Replace
6953 TYPE_FIELD_BITPOS used as lvalue by SET_FIELD_BITPOS.
6954 * gdbtypes.c (append_flags_type_flag): Likewise, twice.
6955 * jv-lang.c (java_link_class_type): Likewise, once.
6956 * stabsread.c (read_enum_type): Likewise.
6957
6958 2012-04-16 Yao Qi <yao@codesourcery.com>
6959
6960 * common/agent.c (agent_run_command): Add one more parameter `len'.
6961 Update callers.
6962 * common/agent.h: Update declaration.
6963 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
6964 Update.
6965 (linux_child_static_tracepoint_markers_by_strid): Ditto.
6966
6967 2012-04-14 Anton Gorenkov <xgsa@yandex.ru>
6968
6969 PR mi/13393
6970 * value.c (value_actual_type): New function.
6971 * value.h (value_actual_type): New declaration.
6972 * varobj.c (update_type_if_necessary): New function.
6973 (varobj_create): Call value_actual_type instead of
6974 value_type.
6975 (install_dynamic_child): distinct changed and type changed MI variable
6976 objects.
6977 (update_dynamic_varobj_children): Updated for install_dynamic_child
6978 change. All callers updated.
6979 (varobj_update): Support for MI variable object type change if
6980 the value changed and RTTI is used to determine the type.
6981 (create_child_with_value): Call value_actual_type instead of
6982 value_type.
6983 (adjust_value_for_child_access): Extended with a new parameter which
6984 specify whether the given value should be casted to enclosing type.
6985 All callers updated.
6986
6987 2012-04-14 Yao Qi <yao@codesourcery.com>
6988
6989 Import gnulib module inttypes from git
6990 (250b80067c1e1d8faa0c42fb572f721975b929c5)
6991 * Makefile.in (HFILES_NO_SRCDIR): Add gnulib/inttypes.in.h.
6992 (aclocal_m4_deps): Add gnulib/m4/inttypes.m4 and
6993 gnulib/m4/inttypes-pri.m4
6994 * aclocal.m4, config.in, configure: Regenerated.
6995 * gnulib/Makefile.am: Update.
6996 * gnulib/Makefile.in: Update.
6997 * gnulib/m4/gnulib-cache.m4: Update.
6998 * gnulib/m4/gnulib-comp.m4: Update.
6999 * gnulib/inttypes.in.h: New.
7000 * gnulib/m4/inttypes-pri.m4: New.
7001 * gnulib/m4/inttypes.m4: New.
7002
7003 2012-04-13 Luis Machado <lgustavo@codesourcery.com>
7004
7005 * infrun.c (resume): Update PC address to the real PC after
7006 preparing to do displaced stepping.
7007
7008 2012-04-12 Doug Evans <dje@google.com>
7009
7010 * dwarf2read.c (lookup_signatured_type): Remove arg "objfile", unused.
7011 All callers updated.
7012
7013 2012-04-12 Mark Kettenis <kettenis@gnu.org>
7014
7015 * i386bsd-nat.c (_initialize_i386bsd_nat): Add missing prototype.
7016
7017 2012-04-12 Doug Evans <dje@google.com>
7018
7019 * dwarf2read.c (create_all_type_units): Renamed from
7020 create_debug_types_hash_table. All callers updated.
7021
7022 * dwarf2read.c (create_signatured_type_table_from_index): Rename
7023 local type_sig to sig_type, type_offset to type_offset_in_tu.
7024 (hash_signatured_type): Renamed from hash_type_signature,
7025 all callers updated.
7026 (eq_signatured_type): Renamed from eq_type_signature,
7027 all callers updated.
7028 (create_debug_types_hash_table): Rename local type_sig to sig_type.
7029 (process_enumeration_scope): Ditto.
7030 (lookup_signatured_type_at_offset): Ditto.
7031 (load_full_type_unit, read_signatured_type): Ditto.
7032
7033 2012-04-12 Yao Qi <yao@codesourcery.com>
7034
7035 * remote.c (async_remote_interrupt): Correct function name in
7036 debug message.
7037 (async_remote_interrupt_twice): Ditto.
7038
7039 2012-04-11 Yuanhui Zhang <asmwarrior@gmail.com>
7040
7041 * source.c (find_and_open_source): Consistently pass resulting
7042 full path through xfullpath.
7043
7044 2012-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
7045
7046 Provide more specific displaced-stepping memory error message.
7047 * infrun.c (displaced_step_prepare): New variable status. Call
7048 target_read_memory instead of read_memory, provide more specific
7049 error message.
7050
7051 2012-04-11 Tristan Gingold <gingold@adacore.com>
7052
7053 PR gdb/13901
7054 * darwin-nat.c (darwin_execvp): Revert previous patch.
7055
7056 2012-04-11 Tristan Gingold <gingold@adacore.com>
7057
7058 PR gdb/13901
7059 * darwin-nat.c (darwin_resume_thread): Call darwin_set_sstep only
7060 in case of change.
7061
7062 2012-04-11 Tristan Gingold <gingold@adacore.com>
7063
7064 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
7065 warning.
7066
7067 2012-04-11 Siva Chandra Reddy <sivachandra@google.com>
7068
7069 New command 'explore' which helps explore values and types in
7070 scope.
7071 * NEWS: Add an entry about the new 'explore' command.
7072 * data-directory/Makefile.in: Add gdb/command/explore.py
7073 * python/lib/gdb/command/explore.py: Implemention of the 'explore'
7074 command using the GDB Python API.
7075
7076 2012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
7077
7078 * mips-tdep.c (mips_skip_pic_trampoline_code): Correct sign
7079 extension in jump target calculation.
7080
7081 2012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
7082
7083 * mips-tdep.c (mips32_next_pc): Handle JALX.
7084
7085 2012-04-10 Yao Qi <yao@codesourcery.com>
7086
7087 * Makefile.in (gnulib/Makefile): Remove duplicated dependency.
7088
7089 2012-04-10 Yao Qi <yao@codesourcery.com>
7090
7091 * Makefile.in (aclocal_m4_deps): Add gnulib/m4/gnulib-cache.m4
7092 and gnulib/m4/gnulib-tool.m4.
7093
7094 2012-04-10 Doug Evans <dje@google.com>
7095
7096 * dwarf2read.c (dwarf2_per_cu_data). Clarify comment.
7097 (load_partial_dies): Clarify comment.
7098 (find_partial_die): Support rereading type units.
7099 Clarify CU handling, if we know offset is in CU, don't search for the
7100 containing CU. Add comment regarding memory waste.
7101
7102 2012-04-10 H.J. Lu <hongjiu.lu@intel.com>
7103
7104 * features/Makefile (WHICH): Add i386/x32, i386/x32-linux,
7105 i386/x32-avx and i386/x32-avx-linux.
7106 (i386/x32-expedite): New.
7107 (i386/x32-linux-expedite): Likewise.
7108 (i386/x32-avx-expedite): Likewise.
7109 (i386/x32-avx-linux-expedite): Likewise.
7110 ($(outdir)/i386/x32.dat): Likewise.
7111 ($(outdir)/i386/x32-linux.dat): Likewise.
7112 ($(outdir)/i386/x32-avx.dat): Likewise.
7113 ($(outdir)/i386/x32-avx-linux.dat): Likewise.
7114
7115 * features/i386/x32-avx-linux.xml: New file.
7116 * features/i386/x32-avx.xml: Likewise.
7117 * features/i386/x32-core.xml: Likewise.
7118 * features/i386/x32-linux.xml: Likewise.
7119 * features/i386/x32.xml: Likewise.
7120
7121 * features/i386/x32-avx-linux.c: New. Generated.
7122 * features/i386/x32-avx.c: Likewise.
7123 * features/i386/x32-linux.c: Likewise.
7124 * features/i386/x32.c: Likewise.
7125 * regformats/i386/x32-avx-linux.dat: Likewise.
7126 * regformats/i386/x32-avx.dat: Likewise.
7127 * regformats/i386/x32-linux.dat: Likewise.
7128 * regformats/i386/x32.dat: Likewise.
7129
7130 2012-04-10 Tristan Gingold <gingold@adacore.com>
7131
7132 * darwin-nat.c (darwin_kill_inferior): Always use the no ptrace
7133 code to kill the inferior.
7134
7135 2012-04-09 Mark Kettenis <kettenis@gnu.org>
7136
7137 * ada-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7138 defines.
7139 * c-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7140 defines.
7141 * cp-name-parser.y (yyss, yysslim, yyssp, yystacksize, yyvs)
7142 (yyvsp): New defines.
7143 * f-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7144 defines.
7145 * jv-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7146 defines.
7147 * m2-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7148 defines.
7149 * objc-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7150 defines.
7151 * p-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7152 defines.
7153
7154 2012-04-09 Mark Kettenis <kettenis@gnu.org>
7155
7156 * sparc64-tdep.c (sparc64_store_arguments)
7157 (sparc64_store_arguments): Fix coding style.
7158
7159 2012-04-07 Mark Kettenis <kettenis@gnu.org>
7160
7161 * sparc64-tdep.c (sparc64_store_arguments): Fix handling of
7162 complex floats, adjust some related comments and tighten a related
7163 assertion.
7164 (sparc64_extract_return_value): Handle complex floats.
7165
7166 2012-04-07 Doug Evans <dje@google.com>
7167
7168 * dwarf2read.c (load_partial_dies): Change condition to assert.
7169
7170 2012-04-06 Doug Evans <dje@google.com>
7171
7172 * amd64-tdep.c (amd64_analyze_prologue): Recognize both variations of
7173 "mov %rsp,%rbp".
7174
7175 2012-04-05 Kevin Buettner <kevinb@redhat.com>
7176
7177 * v850-tdep.c (E_NUM_OF_V850_REGS, E_NUM_OF_V850E_REGS): Fix
7178 fencepost error.
7179 (v850_frame_cache): Use gdbarch_num_regs() instead of E_NUM_REGS.
7180 (v850_gdbarch_init): Set `num_regs' as appropriate for the
7181 architecture.
7182
7183 2012-04-05 Keith Seitz <keiths@redhat.com>
7184
7185 * linespec.c (decode_compound): Remove.
7186 (enum offset_relative_sign): New enum.
7187 (struct line_offset): New struct.
7188 (struct linespec): New struct.
7189 (struct linespec_state): Move file_symtabs,
7190 user_filename, and user_function into struct linespec.
7191 Make result an anonymous struct holding vectors of
7192 symbolp and minsym_and_objfile_d.
7193 Add language member.
7194 (enum ls_token_type): New enum.
7195 (linespec_keywords): New array.
7196 (struct ls_token): New struct.
7197 (struct ls_parser): New struct.
7198 (linespec_lexer_lex_number): New function.
7199 (linespec_lexer_lex_keyword): New function.
7200 (is_ada_operator): New function.
7201 (skip_quote_char): New function.
7202 (copy_token_string): New function.
7203 (is_closing_quote_enclosed): New function.
7204 (find_parameter_list_end): New function.
7205 (linespec_lexer_lex_string): New function.
7206 (linespec_lexer_lex_one): New function.
7207 (linespec_lexer_consume_token): New function.
7208 (linespec_lexer_peek_token): New function.
7209 (cplusplus_error): Remove unused function.
7210 (find_methods): Update comment.
7211 (find_toplevel_char): Return const.
7212 (is_objc_method_format): Remove unused function.
7213 (find_toplevel_string): New function.
7214 (is_linespec_boundary): Remove.
7215 (symbol_not_found_error): New function.
7216 (find_method_overload_end): Remove function.
7217 (unexpected_linespec_error): New function.
7218 (keep_name_info): Remove.
7219 (linespec_parse_line_offset): New function.
7220 (linespec_parse_basic): New function.
7221 (canonicalize_linespec): New function.
7222 (decode_line_internal): Remove.
7223 (create_sals_line_offset): New function adapted from
7224 decode_all_digits.
7225 (convert_linespec_to_sals): New function.
7226 (parse_linespec): New function.
7227 (linespec_parser_new): New function.
7228 (linespec_state_destructor): Change parameter type to
7229 struct linespec_state *.
7230 Add language parameter.
7231 Remove freeing of moved members.
7232 (linespec_parser_delete): New function.
7233 (decode_line_full): Use parse_linespec and linespec_parser_new.
7234 (decode_line_1): Likewise.
7235 (decode_indirect): Rename to ...
7236 (linespec_expression_to_pc): ... this and rewrite
7237 to simply find CORE_ADDR, storing this result for later
7238 conversion to SALs.
7239 (locate_first_half): Remove.
7240 (deocde_objc): Add parameter LS.
7241 Initialize new struct collect_info members.
7242 Handle minimal symbols, too.
7243 (decode_compound): Delete.
7244 (lookup_prefix_sym): Rewrite.
7245 (compare_msymbols): New function.
7246 (find_method): Rewrite.
7247 Do not call cplusplus_error.
7248 (symtabs_from_filename): Rewrite.
7249 (collect_function_symbols): Delete.
7250 (find_function_symbols): Rewrite without ARGPTR-style
7251 processing.
7252 (decode_all_digits): Delete. (Rewritten as create_sals_line_offset.)
7253 (decode_dollar): Adapted and renamed to ...
7254 (linespec_parse_variable): ... this.
7255 (find_linespec_symbols): New function.
7256 (decode_label): Adapted and renamed to ...
7257 (find_label_symbols): ... this.
7258 (decode_digits_list_mode): Add and use LS argument.
7259 (decode_digits_ordinary): Likewise.
7260 (collect_symbols): Do not collect SALs, just symbols and msymbols.
7261 If in list mode, allow any symbol class. Otherwise, only
7262 permit LOC_BLOCK symbols.
7263 (minsym_found): Update comments.
7264 (search_minsyms_for_name): Do not convert the matching symbol
7265 into a SAL. Simply push the symbol and objfile into the
7266 result vector.
7267 (decode_variable): Delete. Contents adapted into
7268 find_linespec_symbols.
7269
7270 * cp-support.c (SKIP_SPACE): Remove.
7271 (operator_tokens): Remove unused global.
7272 (cp_validate_operator): Remove.
7273 * cp-support.h (cp_validate_operator): Remove declaration.
7274
7275 2012-04-03 Jan Kratochvil <jan.kratochvil@redhat.com>
7276
7277 * cp-valprint.c (cp_print_value_fields): Check valprint_check_validity
7278 for TYPE_VPTR_FIELDNO.
7279 * valprint.c (valprint_check_validity): Make it global, move the
7280 function comment ...
7281 * value.h (valprint_check_validity): ... to this new declaration.
7282
7283 2012-04-02 Tristan Gingold <gingold@adacore.com>
7284
7285 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Use
7286 the STATE32 api for i386 state.
7287 (i386_darwin_store_inferior_registers): Likewise.
7288
7289 2012-04-02 Tristan Gingold <gingold@adacore.com>
7290
7291 * i386-darwin-tdep.c (i386_darwin_thread_state_reg_offset): Fix
7292 SS offset.
7293 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
7294 format_string.
7295
7296 2012-04-02 Tristan Gingold <gingold@adacore.com>
7297
7298 PR gdb/13901
7299 * darwin-nat.c (darwin_execvp): Set binary preference.
7300
7301 2012-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
7302
7303 * NEWS (set breakpoint condition-evaluation): Use imperative mood.
7304
7305 2012-03-30 Tom Tromey <tromey@redhat.com>
7306
7307 * python/python.c (gdbpy_decode_line): Move cleanup creation out
7308 of TRY_CATCH. Fix error handling.
7309 * python/py-value.c (convert_value_from_python): Move 'old'
7310 declaration to innermost scope.
7311
7312 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7313 Andrey Smirnov <andrew.smirnov@gmail.com>
7314
7315 -Wshadow warning fix.
7316 * ada-lang.c (ada_make_symbol_completion_list): Rename parameters
7317 "wild_match" and "encoded" into "wild_match_p" and "encoded_p".
7318 Adjust code accordingly.
7319
7320 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7321
7322 * ada-lang.c (symbol_completion_add): Rename parameter
7323 "encoded" into "encoded_p". Ajust code and documentation
7324 accordingly.
7325
7326 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7327 Andrey Smirnov <andrew.smirnov@gmail.com>
7328
7329 -Wshadow warning fix.
7330 * ada-lang.c (symbol_completion_add): Rename parameter
7331 "wild_match" into wild_match_p. Update code and documentation
7332 accordingly.
7333
7334 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7335
7336 * ada-lang.c (symbol_completion_match): Rename parameter
7337 "encoded" into "encoded_p". Ajust code and documentation
7338 accordingly.
7339
7340 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7341 Andrey Smirnov <andrew.smirnov@gmail.com>
7342
7343 -Wshadow warning fix.
7344 * ada-lang.c (symbol_completion_match): Rename parameter
7345 "wild_match" into "wild_match_p". Adjust code and function
7346 documentation accordingly.
7347
7348 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7349 Andrey Smirnov <andrew.smirnov@gmail.com>
7350
7351 -Wshadow warning fix.
7352 * ada-lang.c (ada_lookup_encoded_symbol): Rename parameter
7353 "symbol_info" into "info". Adjust code accordingly.
7354 (ada_lookup_symbol): Likewise.
7355
7356 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7357
7358 * ada-lang.c (ada_lookup_symbol_list): Minor reformatting
7359 of this function's documentation.
7360
7361 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7362 Andrey Smirnov <andrew.smirnov@gmail.com>
7363
7364 -Wshadow warning fix.
7365 * ada-lang.c (ada_lookup_symbol_list): Rename "wild_match"
7366 variable into "wild_match_p". Adjust code accordingly.
7367
7368 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7369 Andrey Smirnov <andrew.smirnov@gmail.com>
7370
7371 -Wshadow warning fix.
7372 * ada-lang.c (ada_add_local_symbols): Rename "wild_match"
7373 parameter into "wild_match_p". Adjust code accordingly.
7374 Document this parameter in the function description.
7375
7376 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7377 Andrey Smirnov <andrew.smirnov@gmail.com>
7378
7379 -Wshadow warning fix.
7380 * ada-lang.c (add_symbols_from_enclosing_procs): Rename
7381 "wild_match" parameter to "wild_match_p" (-Wshadow).
7382
7383 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7384
7385 * ada-lang.c (ada_lookup_simple_minsym): Remove trailing spaces
7386 in function documentation.
7387
7388 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7389 Andrey Smirnov <andrew.smirnov@gmail.com>
7390
7391 -Wshadow warning fix.
7392 * ada-lang.c (ada_lookup_simple_minsym): Rename wild_match local
7393 variable into wild_match_p. Adjust code accordingly.
7394
7395 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7396 Andrey Smirnov <andrew.smirnov@gmail.com>
7397
7398 * ada-valprint.c (ada_val_print_1): Move the code handling
7399 TYPE_CODE_ENUM inside its own lexical block. Declare
7400 variables len and val there, instead of in the function's
7401 top level block. Avoid declaring deref_val again in a way
7402 that shadows another variable of the same name declared
7403 in one of the up-level blocks. Just re-use the up-level
7404 variable instead.
7405
7406 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7407
7408 * ada-lang.c (ada_lookup_encoded_symbol): Now returns void.
7409 Replace block_found argument by symbol_info. Adjust
7410 implementation accordingly. Add function documentation.
7411 (ada_lookup_symbol): Adjust to new ada_lookup_encoded_symbol.
7412 Fix documentation.
7413 * ada-lang.h (ada_lookup_encoded_symbol): Update declaration.
7414 * ada-exp.y (write_object_renaming): Adjust to new
7415 ada_lookup_encoded_symbol API.
7416
7417 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7418
7419 * ada-lang.h (struct ada_symbol_info): Reformat. Improve
7420 documentation.
7421
7422 2012-03-28 Rathish C <rathish.c@kpitcummins.com>
7423
7424 * v850-tdep.c: Add the enum values for mpu and fpu registers.
7425 (v850_register_name): Add the mpu and fpu register names.
7426 (v850e_register_name): Add the mpu and fpu register names.
7427 (v850e2_register_name): New function.
7428 (v850_gdbarch_init): Add case for bfd_mach_v850e2 and
7429 bfd_mach_v850e2v3.
7430
7431 2012-03-28 Joel Brobecker <brobecker@adacore.com>
7432
7433 * NEWS: Add entry for Ada varobj support.
7434
7435 2012-03-28 Joel Brobecker <brobecker@adacore.com>
7436
7437 * varobj.c (default_value_is_changeable_p): New function,
7438 extracted from varobj_value_is_changeable_p. Add declaration.
7439 (ada_value_is_changeable_p): New function, extracted from
7440 varobj_value_is_changeable_p. Add declaration.
7441 (struct language_specific): New field "value_is_changeable_p".
7442 (languages): Add entries for new field.
7443 (varobj_create): Set language before calling install_new_value.
7444 (varobj_value_is_changeable_p): Reimplement to call the varobj's
7445 "value_is_changeable_p" language callback.
7446
7447 2012-03-28 Joel Brobecker <brobecker@adacore.com>
7448
7449 * ada-varobj.h, ada-varobj.c: New files.
7450 * Makefile.in (SFILES): Add ada-varobj.c.
7451 (HFILES_NO_SRCDIR): Add ada-varobj.h.
7452 (COMMON_OBS): Add ada-varobj.o.
7453
7454 2012-03-28 Joel Brobecker <brobecker@adacore.com>
7455
7456 * varobj.c (ada_value_has_mutated): Add declaration. New function.
7457 (struct language_specific): New field "value_has_mutated".
7458 (languages): Set field "value_has_mutated" in each entry of array.
7459 (varobj_value_has_mutated): New function.
7460 (varobj_udpdate): Add handling of type mutation.
7461 (value_of_root): Add handling of type mutation.
7462 (ada_value_has_mutated): New function.
7463
7464 2012-03-28 Pedro Alves <palves@redhat.com>
7465
7466 * ia64-linux-nat.c (supply_fpregset, ia64_linux_fetch_register):
7467 Always supply $fr0 as 0.0 and $fr1 as 1.0.
7468
7469 2012-03-28 Tom Tromey <tromey@redhat.com>
7470
7471 * python/py-inferior.c (infpy_read_memory): Remove cleanups and
7472 explicitly free 'buffer' on exit paths. Decref 'membuf_object'
7473 before returning.
7474
7475 2012-03-28 Tom Tromey <tromey@redhat.com>
7476
7477 * .dir-locals.el: New file.
7478
7479 2012-03-28 Pedro Alves <palves@redhat.com>
7480
7481 * ia64-linux-nat.c (u_offsets): Map IA64_EC_REGNUM to PT_AR_EC.
7482
7483 2012-03-28 Joel Brobecker <brobecker@adacore.com>
7484
7485 * ia64-linux-nat.c (ia64_linux_fetch_register): Add special
7486 handling for r0.
7487
7488 2012-03-27 Pedro Alves <palves@redhat.com>
7489
7490 Eliminate struct ui_stream.
7491
7492 * ui-out.h (struct ui_stream): Delete.
7493 (ui_out_field_stream): Adjust prototype.
7494 (ui_out_stream_new, ui_out_stream_delete)
7495 (make_cleanup_ui_out_stream_delete): Delete declarations.
7496 * ui-out.c (ui_out_field_stream): Change prototype to take a
7497 ui_file instead of a ui_stream. Adjust.
7498 (ui_out_stream_new, ui_out_stream_delete, do_stream_delete)
7499 (make_cleanup_ui_out_stream_delete): Delete.
7500 * breakpoint.c (print_breakpoint_location)
7501 (print_one_detail_ranged_breakpoint, print_it_watchpoint): Use
7502 ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
7503 * disasm.c (dump_insns): Ditto.
7504 (do_mixed_source_and_assembly, do_assembly_only): Adjust
7505 prototype.
7506 (gdb_disassembly): Use ui_file/mem_fileopen instead of
7507 ui_stream/ui_out_stream_new.
7508 * infcmd.c (print_return_value): Ditto.
7509 * osdata.c (info_osdata_command): Don't allocate a local
7510 ui_stream.
7511 * stack.c (print_frame_arg, print_frame_args, print_frame): Use
7512 ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
7513 * tracepoint.c (print_one_static_tracepoint_marker): Don't
7514 allocate a local ui_stream.
7515 * mi/mi-cmd-stack.c (list_arg_or_local): Use ui_file/mem_fileopen
7516 instead of ui_stream/ui_out_stream_new.
7517 (list_args_or_locals): Don't allocate a local ui_stream.
7518 * mi/mi-main.c (get_register, mi_cmd_data_evaluate_expression)
7519 (mi_cmd_data_read_memory): Use ui_file/mem_fileopen instead of
7520 ui_stream/ui_out_stream_new.
7521 * cli/cli-setshow.c (do_setshow_command): Ditto.
7522
7523 2012-03-27 Oza Pawandeep <oza.pawandeep@gmail.com>
7524
7525 * arm-linux-tdep.c (arm_linux_init_abi): Call
7526 set_gdbarch_process_record. Initialize `arm_swi_record' field.
7527 * arm-tdep.c (arm_process_record): New function.
7528 (deallocate_reg_mem): New function.
7529 (decode_insn): New function.
7530 (thumb_record_branch): New function.
7531 (thumb_record_ldm_stm_swi(): New function.
7532 (thumb_record_misc): New function.
7533 (thumb_record_ld_st_stack): New function.
7534 (thumb_record_ld_st_imm_offset): New function.
7535 (thumb_record_ld_st_reg_offset(): New function.
7536 (thumb_record_add_sub_cmp_mov): New function.
7537 (thumb_record_shift_add_sub): New function.
7538 (arm_record_coproc_data_proc): New function.
7539 (arm_record_coproc): New function.
7540 (arm_record_b_bl): New function.
7541 (arm_record_ld_st_multiple): New function.
7542 (arm_record_ld_st_reg_offset): New function.
7543 (arm_record_ld_st_imm_offset): New function.
7544 (arm_record_data_proc_imm): New function.
7545 (arm_record_data_proc_misc_ld_str): New function.
7546 (arm_record_extension_space): New function.
7547 (arm_record_strx): New function.
7548 (sbo_sbz): New function.
7549 (struct insn_decode_record): New structure for arm insn record.
7550 (REG_ALLOC): New macro for reg allocations.
7551 (MEM_ALLOC): New macro for memory allocations.
7552 * arm-tdep.h (struct gdbarch_tdep): New field 'arm_swi_record'.
7553
7554 2012-03-27 Andreas Schwab <schwab@linux-m68k.org>
7555
7556 * m68klinux-nat.c (fetch_register): Fix strict-aliasing violation.
7557 (store_register): Likewise.
7558
7559 2012-03-26 Oza Pawandeep <oza.pawandeep@gmail.com>
7560
7561 * MAINTAINERS (Write After Approval): Add myself to the list.
7562
7563 2012-03-25 Jan Kratochvil <jan.kratochvil@redhat.com>
7564
7565 * NEWS (set breakpoint condition-evaluation): Change "gdb" to "host".
7566 Describe also the option "auto".
7567
7568 2012-03-22 Richard Henderson <rth@redhat.com>
7569
7570 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Fix prototype.
7571 * sparc-nat.c (sparc_xfer_wcookie): Make static.
7572
7573 2012-03-22 Richard Henderson <rth@redhat.com>
7574
7575 * jit.c (jit_read_code_entry): Compute alignment and offset of
7576 int64_t member before computing entry_size.
7577
7578 2012-03-22 Siva Chandra Reddy <sivachandra@google.com>
7579
7580 Python scripting: Add new method Value.referenced_value to
7581 gdb.Value which can dereference pointer as well as reference
7582 values.
7583 * NEWS: Add entry under 'Python scripting' about the new method
7584 Value.referenced_value on gdb.Value objects.
7585 * python/py-value.c (valpy_referenced_value): New function
7586 defining a new method on gdb.Value objects which can dereference
7587 pointer and reference values.
7588
7589 2012-03-22 Siva Chandra Reddy <sivachandra@google.com>
7590
7591 * MAINTAINERS (Write After Approval): Add myself to the list.
7592
7593 2012-03-21 Kevin Buettner <kevinb@redhat.com>
7594
7595 * symtab.c (skip_prologue_sal): Change test to check for "main()"
7596 in addition to "main".
7597
7598 2012-03-21 Joel Brobecker <brobecker@adacore.com>
7599
7600 * expression.h (op_name): Add declaration.
7601 * expprint.c (op_name): Remove declaration. Make non-static.
7602 * ax-gdb.c (gen_expr): Use op_name instead of op_string.
7603
7604 2012-03-21 Thomas Schwinge <thomas@codesourcery.com>
7605
7606 * amd64-linux-nat.c (amd64_linux_siginfo_fixup): Use siginfo_t instead
7607 of struct siginfo.
7608 * arm-linux-nat.c (arm_linux_stopped_data_address): Likewise.
7609 * ia64-linux-nat.c (ia64_linux_stopped_data_address): Likewise.
7610 * linux-nat.c (linux_nat_siginfo_fixup, siginfo_fixup)
7611 (linux_xfer_siginfo, linux_nat_set_siginfo_fixup)
7612 (linux_nat_get_siginfo): Likewise.
7613 * linux-nat.h (struct lwp_info, linux_nat_set_siginfo_fixup)
7614 (linux_nat_get_siginfo): Likewise.
7615 * linux-tdep.c (linux_get_siginfo_type): Likewise.
7616 * ppc-linux-nat.c (ppc_linux_stopped_data_address): Likewise.
7617 * procfs.c (gdb_siginfo_t): Likewise.
7618
7619 2012-03-21 Mike Frysinger <vapier@gentoo.org>
7620
7621 * .gitignore: Ignore more files.
7622
7623 2012-03-20 Pedro Alves <palves@redhat.com>
7624
7625 * remote.c (remote_start_remote): Clear `rs->starting_up' on early
7626 returns.
7627
7628 2012-03-20 Yao Qi <yao@codesourcery.com>
7629
7630 * amd64-tdep.c (amd64_displaced_step_copy_insn): Complete missing "}" in
7631 comment.
7632
7633 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
7634
7635 Code cleanupp: Use cu_offset and sect_offset compile time type checking.
7636 * dwarf2expr.c (add_piece, dwarf_get_base_type, execute_stack_op)
7637 (ctx_no_dwarf_call, ctx_no_get_base_type): Use cu_offset and
7638 sect_offset.
7639 * dwarf2expr.h (cu_offset, sect_offset): New types.
7640 (struct dwarf_expr_context_funcs) <dwarf_call>
7641 (struct dwarf_expr_context_funcs) <get_base_type>: Use cu_offset and
7642 sect_offset.
7643 (struct dwarf_expr_context) <len>: Improve the comment.
7644 (struct dwarf_expr_piece, ctx_no_dwarf_call, ctx_no_get_base_type): Use
7645 cu_offset and sect_offset.
7646 * dwarf2loc.c (per_cu_dwarf_call, dwarf_expr_dwarf_call)
7647 (dwarf_expr_get_base_type, needs_frame_dwarf_call)
7648 (dwarf2_compile_expr_to_ax, disassemble_dwarf_expression): Likewise.
7649 * dwarf2loc.h: Include dwarf2expr.h.
7650 (dwarf2_fetch_die_location_block, dwarf2_get_die_type): Use cu_offset
7651 and sect_offset.
7652 * dwarf2read.c (struct dwarf2_per_objfile) <debug_types_type_hash>:
7653 Improve the comment.
7654 (struct comp_unit_head, struct dwarf2_cu, struct dwarf2_per_cu_data)
7655 (struct signatured_type, struct line_header, struct partial_die_info)
7656 (struct die_info, find_partial_die, dwarf2_get_ref_die_offset)
7657 (lookup_signatured_type_at_offset, dwarf2_find_containing_comp_unit)
7658 (get_die_type_at_offset, create_cus_from_index)
7659 (create_signatured_type_table_from_index, dw2_get_file_names)
7660 (offset_in_cu_p, read_comp_unit_head, error_check_comp_unit_head)
7661 (read_and_check_comp_unit_head, read_and_check_type_unit_head)
7662 (create_debug_types_hash_table, process_psymtab_comp_unit)
7663 (load_partial_comp_unit, create_all_comp_units)
7664 (partial_die_parent_scope, partial_die_full_name, skip_one_die)
7665 (load_full_comp_unit, dwarf2_physname, read_import_statement)
7666 (inherit_abstract_dies, read_func_scope, read_call_site_scope)
7667 (dwarf2_add_member_fn, process_enumeration_scope, read_module_type)
7668 (read_typedef, die_hash, die_eq, read_full_die, dwarf2_read_abbrevs)
7669 (load_partial_dies, read_partial_die, find_partial_die_in_comp_unit)
7670 (find_partial_die, read_attribute_value, lookup_die_type)
7671 (dump_die_shallow, store_in_ref_table): Use cu_offset and sect_offset.
7672 (is_ref_attr): New function comment.
7673 (dwarf2_get_ref_die_offset): New function comment, new variable retval.
7674 Use cu_offset and sect_offset.
7675 (follow_die_offset, follow_die_ref, dwarf2_fetch_die_location_block)
7676 (dwarf2_get_die_type, follow_die_sig, lookup_signatured_type_at_offset)
7677 (load_full_type_unit, read_signatured_type, per_cu_header_read_in)
7678 (dwarf2_find_containing_comp_unit, struct dwarf2_offset_and_type)
7679 (offset_and_type_hash, offset_and_type_eq, set_die_type)
7680 (get_die_type_at_offset, partial_die_hash, partial_die_eq)
7681 (write_one_signatured_type, write_psymtabs_to_index): Use cu_offset and
7682 sect_offset.
7683
7684 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
7685
7686 Code cleanup.
7687 * python/py-auto-load.c (source_section_scripts): New variable back_to.
7688 Turn fclose and xfree calls into make_cleanup_fclose and make_cleanup
7689 with xfree.
7690 (auto_load_objfile_script): Turn fclose into make_cleanup_fclose.
7691
7692 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
7693
7694 * NEWS: Describe new options --init-command=FILE, -ix and
7695 --init-eval-command=COMMAND, -iex.
7696 * main.c (struct cmdarg): New enum items CMDARG_INIT_FILE and
7697 CMDARG_INIT_COMMAND.
7698 (captured_main): New enum items OPT_IX and OPT_IEX. Add
7699 "init-command", "init-eval-command", "ix" and "iex" to the variable
7700 long_options. Handle OPT_IX and OPT_IEX. Process them from CMDARG_VEC.
7701 New comment for CMDARG_FILE and CMDARG_COMMAND processing.
7702 (print_gdb_help): Describe --init-command=FILE, -ix and
7703 --init-eval-command=COMMAND, -iex.
7704
7705 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
7706
7707 Code cleanup.
7708 * main.c (struct cmdarg): Move it here from main. Add more comments.
7709 (cmdarg_s, VEC (cmdarg_s)): New.
7710 (main): Move struct cmdarg from here. New variables cmdarg_vec and
7711 cmdarg_p. Remove variables cmdsize and ncmd and their initialization.
7712 Install cleanup for cmdarg_vec. Update filling for options 'x' and
7713 'X'. Replace cmdarg processing by cmdarg_vec processing. Remove xfree
7714 of CMDARG.
7715
7716 2012-03-19 Tom Tromey <tromey@redhat.com>
7717
7718 * gnu-v3-abi.c (gnuv3_print_vtable): Initialize 'result_vec'.
7719
7720 2012-03-16 Jan Kratochvil <jan.kratochvil@redhat.com>
7721
7722 PR symtab/13777
7723 * dwarf2read.c (process_full_comp_unit): Set LOCATIONS_VALID only for
7724 GCC >=4.5.
7725
7726 2012-03-16 Chris January <chris.january@allinea.com>
7727
7728 * tui-tui.win.c (tui_resize_all): Use erase and clearok instead
7729 of clear.
7730
7731 2012-03-16 Chris January <chris.january@allinea.com>
7732
7733 * source.c (add_path): Use memmove instead of strcpy because the
7734 strings overlap.
7735
7736 2012-03-16 Joel Brobecker <brobecker@adacore.com>
7737
7738 * value.h (set_value_parent): Add declaration.
7739 * value.c (set_value_parent): New function.
7740 (value_address): If VALUE->PARENT is not NULL, then use it as
7741 the base address instead of VALUE->LOCATION.address.
7742 * ada-lang.c (ada_value_primitive_packed_val): Keep V's address
7743 the same as OBJ's address. Adjust V's offset accordingly.
7744 Set V's parent.
7745
7746 2012-03-16 Gary Benson <gbenson@redhat.com>
7747
7748 PR breakpoints/10738
7749 * dwarf2read.c (use_deprecated_index_sections): New global.
7750 (struct partial_die_info): New member may_be_inlined.
7751 (read_partial_die): Set may_be_inlined where appropriate.
7752 (add_partial_subprogram): Add partial symbols for partial
7753 DIEs that may be inlined.
7754 (new_symbol_full): Add inlined subroutines to the current
7755 scope.
7756 (write_psymtabs_to_index): Bump version number.
7757 (dwarf2_read_index): Read only version 6 indices unless
7758 use_deprecated_index_sections is set.
7759 * linespec.c (symbol_and_data_callback): New structure.
7760 (iterate_inline_only): New function.
7761 (iterate_over_all_matching_symtabs): New argument
7762 "include_inline". If nonzero, also call the callback for
7763 symbols representing inlined subroutines.
7764 (lookup_prefix_sym): Pass extra argument to the above.
7765 (find_function_symbols): Likewise.
7766 (add_matching_symbols_to_info): Likewise.
7767 * NEWS: Mention that GDB can now set breakpoints on inlined
7768 functions.
7769
7770 2012-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
7771
7772 * p-typeprint.c (pascal_type_print_method_args):
7773 Fix display of parameter of methods.
7774
7775 2012-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
7776
7777 * amd64-windows-nat.c (_initialize_amd64_windows_nat):
7778 Add missing prototype.
7779
7780 2012-03-16 Yao Qi <yao@codesourcery.com>
7781 Jan Kratochvil <jan.kratochvil@redhat.com>
7782
7783 Fix false compilation warning.
7784 * gnu-v3-abi.c (print_one_vtable): Initialize ADDR.
7785
7786 2012-03-15 Jonathan Larmour <jifl@eCosCentric.com>
7787 Pedro Alves <pedro@codesourcery.com>
7788
7789 * arm-tdep.c: Include "remote.h" and "features/arm-with-m-fpa-layout.c".
7790 (arm_register_g_packet_guesses): New function.
7791 (arm_gdbarch_init): Don't force a target description with
7792 registers when the executable is detected as M-profile. Instead
7793 set gdbarch->tdep->is_m. Register `g' packet guesses.
7794 (_initialize_arm_tdep): Initialize the new target description.
7795 * features/arm-with-m-fpa-layout.xml: New description.
7796 * features/arm-with-m-fpa-layout.c: New, generated.
7797
7798 2012-03-15 Joel Brobecker <brobecker@adacore.com>
7799
7800 * breakpoint.c (breakpoint_xfer_memory): Add assertion.
7801 Update function description.
7802 (insert_bp_location): Do not wipe bl->target_info out.
7803 * mem-break.c: #include "gdb_string.h".
7804 (default_memory_insert_breakpoint): Do not call target_read_memory
7805 with a pointer to the breakpoint's shadow_contents buffer. Use
7806 a local buffer instead.
7807 * m32r-tdep.c (m32r_memory_insert_breakpoint): Ditto.
7808
7809 2012-03-15 Tom Tromey <tromey@redhat.com>
7810
7811 * NEWS: Mention "info vtbl", not "info vtable".
7812 * cp-support.c (info_vtbl_command): Fix comment.
7813 (_initialize_cp_support): Fix text.
7814
7815 2012-03-15 Tom Tromey <tromey@redhat.com>
7816
7817 * cp-valprint.c (cp_print_value_fields): Use
7818 print_function_pointer_address for vtable slot.
7819
7820 2012-03-15 Tom Tromey <tromey@redhat.com>
7821
7822 * gnu-v3-abi.c (struct value_and_voffset): New.
7823 (hash_value_and_voffset, eq_value_and_voffset)
7824 (compare_value_and_voffset, compute_vtable_size)
7825 (print_one_vtable, gnuv3_print_vtable): New functions.
7826 (init_gnuv3_ops): Initialize 'print_vtable' field.
7827 * cp-support.c (info_vtbl_command): New function.
7828 (_initialize_cp_support): Add "info vtbl".
7829 * cp-abi.h (cplus_print_vtable): Declare.
7830 (struct cp_abi_ops) <print_vtable>: New field.
7831 * cp-abi.c (cplus_print_vtable): New function.
7832 * NEWS: Update.
7833
7834 2012-03-15 Tom Tromey <tromey@redhat.com>
7835
7836 * d-lang.c (d_language_defn) <la_iterate_over_symbols>: Set to
7837 iterate_over_symbols.
7838
7839 2012-03-14 Doug Evans <dje@google.com>
7840
7841 * dwarf2read.c (dwarf_stack_op_name): Add DW_OP_GNU_encoded_addr,
7842 DW_OP_GNU_parameter_ref.
7843
7844 2012-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
7845
7846 Fix double prompt of 'interpreter-exec mi'.
7847 * mi/mi-interp.c (mi_execute_command_input_handler): New prototype.
7848 (mi_interpreter_resume): use it.
7849 (mi_execute_command_input_handler): New function.
7850 * mi/mi-main.c (mi_execute_command): Move prompt printing to
7851 mi_execute_command_input_handler.
7852
7853 2012-03-13 Josh Matthews <josh@joshmatthews.net> (tiny change)
7854
7855 * darwin-nat-info.c (_initialize_darwin_info_commands): Add
7856 prototype.
7857 (darwin_debug_port_info): Make static.
7858 * darwin-nat.c (_initialize_darwin_inferior): Add prototype.
7859 * machoread.c (_initialize_machoread): Add prototype.
7860 * i386-darwin-nat.c (i386_darwin_dr_set, i386_darwin_dr_get)
7861 (i386_darwin_set_control, i386_darwin_get_control)
7862 i386_darwin_dr_set_addr, i386_darwin_get_addr)
7863 i386_darwin_get_status, i386_darwin_get_control):
7864 Comment out with HW_WATCHPOINT_NOT_YET_ENABLED macro.
7865
7866 2012-03-13 Joel Brobecker <brobecker@adacore.com>
7867
7868 * ax-gdb.c (gen_usual_unary): Remove special handling of
7869 enum and bool types.
7870
7871 2012-03-13 Joel Brobecker <brobecker@adacore.com>
7872
7873 * ax-gdb.c (gen_fetch): Add handling for TYPE_CODE_RANGE types.
7874
7875 2012-03-13 Joel Brobecker <brobecker@adacore.com>
7876
7877 * aix-thread.c (supply_fprs): Make more consistent with fill_fprs.
7878
7879 2012-03-13 Chris January <chris.january@allinea.com>
7880
7881 * aix-thread.c (fill_sprs): Store the floating point registers
7882 at the correct offsets into vals.
7883
7884 2012-03-13 Doug Evans <dje@google.com>
7885
7886 * NEWS: Mention symbol-reloading has been deleted.
7887 * symfile.c (symbol_reloading): Delete.
7888 (show_symbol_reloading): Delete.
7889 (_initialize_symfile): Delete set/show symbol-reloading.
7890
7891 * dwarf2read.c (load_partial_comp_unit): Defer adding cu to
7892 read_in_chain until we have successfully read it in.
7893 (load_full_comp_unit): Ditto.
7894 (read_signatured_type): Add comment.
7895
7896 2012-03-13 Chris January <chris.january@allinea.com>
7897
7898 * stabsread.c (fix_common_block): Change type of valu argument
7899 to CORE_ADDR.
7900
7901 2012-03-13 Chris January <chris.january@allinea.com>
7902
7903 * rs6000-tdep.c (skip_prologue): Support the oril r29, r1, 0x0
7904 instruction.
7905
7906 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
7907
7908 * common/linux-procfs.c (linux_proc_get_int): New, from
7909 linux_proc_get_tgid, change its LWPID type to pid_t, add parameter
7910 field.
7911 (linux_proc_get_tgid): Only call linux_proc_get_int.
7912 (linux_proc_get_tracerpid): New.
7913 (linux_proc_pid_has_state): New, from linux_proc_pid_is_zombie.
7914 (linux_proc_pid_is_stopped, linux_proc_pid_is_zombie): Only call
7915 linux_proc_pid_has_state.
7916 * common/linux-procfs.h (linux_proc_get_tracerpid): New declaration.
7917 * common/linux-ptrace.c: Include linux-procfs.h and buffer.h.
7918 (linux_ptrace_attach_warnings): New.
7919 * common/linux-ptrace.h (struct buffer, linux_ptrace_attach_warnings):
7920 New declaration.
7921 * linux-nat.c: Include exceptions.h, linux-ptrace.h and buffer.h.
7922 (linux_nat_attach): New variables ex, buffer, message and message_s.
7923 Wrap to_attach by TRY_CATCH and call linux_ptrace_attach_warnings.
7924
7925 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
7926
7927 * Makefile.in (linux-ptrace.o): New.
7928 * common/linux-procfs.c (linux_proc_pid_is_zombie): New,
7929 from linux-nat.c.
7930 * common/linux-procfs.h (linux_proc_pid_is_zombie): New declaration.
7931 * common/linux-ptrace.c: New file.
7932 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-ptrace.o.
7933 * config/arm/linux.mh: Likewise.
7934 * config/i386/linux.mh: Likewise.
7935 * config/i386/linux64.mh: Likewise.
7936 * config/ia64/linux.mh: Likewise.
7937 * config/m32r/linux.mh: Likewise.
7938 * config/m68k/linux.mh: Likewise.
7939 * config/mips/linux.mh: Likewise.
7940 * config/pa/linux.mh: Likewise.
7941 * config/powerpc/linux.mh: Likewise.
7942 * config/powerpc/ppc64-linux.mh: Likewise.
7943 * config/powerpc/spu-linux.mh: Likewise.
7944 * config/s390/s390.mh: Likewise.
7945 * config/sparc/linux.mh: Likewise.
7946 * config/sparc/linux64.mh: Likewise.
7947 * config/xtensa/linux.mh: Likewise.
7948 * linux-nat.c (linux_lwp_is_zombie): Remove, move it to
7949 common/linux-procfs.c.
7950 (wait_lwp): Rename linux_lwp_is_zombie to linux_proc_pid_is_zombie.
7951
7952 2012-03-13 Hui Zhu <teawater@gmail.com>
7953 Pedro Alves <palves@redhat.com>
7954
7955 * breakpoint.c (init_breakpoint_sal): New flags parameter. Handle
7956 CREATE_BREAKPOINT_FLAGS_INSERTED.
7957 (create_breakpoint_sal, create_breakpoints_sal)
7958 (base_breakpoint_create_breakpoints_sal)
7959 (tracepoint_create_breakpoints_sal)
7960 (strace_marker_create_breakpoints_sal): New flags parameter. Pass
7961 down.
7962 (break_command_1, handle_gnu_v3_exceptions, trace_command)
7963 (ftrace_command, strace_command): Adjust.
7964 (create_tracepoint_from_upload): Pass
7965 CREATE_BREAKPOINT_FLAGS_INSERTED.
7966 * breakpoint.h (enum breakpoint_create_flags): New.
7967 (create_breakpoint): New flags parameter.
7968 * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust.
7969 * python/py-breakpoint.c (bppy_init): Adjust.
7970 * python/py-finishbreakpoint.c (bpfinishpy_init): Adjust.
7971 * spu-tdep.c (spu_catch_start): Adjust.
7972
7973 2012-03-13 Pedro Alves <palves@redhat.com>
7974 Hui Zhu <teawater@gmail.com>
7975 Yao Qi <yao@codesourcery.com>
7976
7977 * remote.c (struct remote_state): New field `starting_up'.
7978 (remote_start_remote): Set and clear it.
7979 (remote_can_download_tracepoint): If starting up, return false.
7980
7981 2012-03-13 Yao Qi <yao@codesourcery.com>
7982
7983 * inferior.h (struct inferior): Remove fields any_syscall_count,
7984 syscalls_counts and total_syscalls_count. Move them to new
7985 struct catch_syscall_inferior_data in breakpoint.c.
7986 * breakpoint.c: Call DEF_VEC_I(int).
7987 (struct catch_syscall_inferior_data): New.
7988 (get_catch_syscall_inferior_data): New.
7989 (catch_syscall_inferior_data_cleanup): New.
7990 (insert_catch_syscall): Update to access data in
7991 struct catch_syscall_inferior_data.
7992 (insert_catch_syscall): Likewise.
7993 (remove_catch_syscall): Likewise.
7994 (remove_catch_syscall): Likewise.
7995 (is_syscall_catchpoint_enabled): Likewise.
7996 (add_catch_command): Likewise.
7997 (_initialize_breakpoint): Register cleanup.
7998 * breakpoint.h: Removed DEF_VEC_I(int).
7999 * dwarf2loc.c: Call DEF_VEC_I(int).
8000 * mi/mi-main.c: Likewise.
8001
8002 2012-03-12 Mark Kettenis <kettenis@gnu.org>
8003
8004 * inf-ptrace.c (inf_ptrace_post_attach): Make static.
8005
8006 2012-03-12 Chris January <chris.january@allinea.com>
8007
8008 * aix-thread.c (_initialize_aix_thread): Add prototype.
8009 * rs6000-nat.c (_initialize_rs6000_nat): Ditto.
8010 * xcoffsolib.c (_initialize_xcoffsolib): Ditto.
8011
8012 2012-03-12 Joel Brobecker <brobecker@adacore.com>
8013
8014 * amd64bsd-nat.c: Move #include of "amd64bsd-nat.h" after
8015 include of "amd64-nat.h".
8016
8017 2012-03-12 Tom Tromey <tromey@redhat.com>
8018
8019 * buildsym.c (record_pending_block): Now static.
8020 * buildsym.h: (record_pending_block): Remove.
8021
8022 2012-03-12 Andreas Tobler <andreast@fgznet.ch>
8023
8024 * amd64bsd-nat.c: Include amd64bsd-nat.h.
8025
8026 2012-03-09 Tom Tromey <tromey@redhat.com>
8027
8028 * dwarf2read.c (struct dwarf2_cu) <checked_producer,
8029 producer_is_gxx_lt_4_6>: New fields.
8030 (producer_is_gxx_lt_4_6): Use and update producer cache fields.
8031
8032 2012-03-09 Tom Tromey <tromey@redhat.com>
8033
8034 * dwarf2read.c (dwarf2_attr): Avoid tail-recursive call.
8035
8036 2012-03-08 Joel Brobecker <brobecker@adacore.com>
8037
8038 * ravenscar-sparc-thread.c (_initialize_ravenscar_sparc): Add
8039 prototype.
8040
8041 2012-03-08 Joel Brobecker <brobecker@adacore.com>
8042
8043 * ravenscar-thread.c (_initialize_ravenscar): Add prototype.
8044
8045 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
8046
8047 Fix -Wmissing-prototypes build.
8048 * arm-linux-nat.c (get_thread_id): Make it static.
8049 * xtensa-linux-nat.c (get_thread_id): Likewise.
8050
8051 2012-03-08 Joel Brobecker <brobecker@adacore.com>
8052
8053 * server.c (process_point_options): If a conditional expression
8054 is found, only print a message if remote_debug is nonzero.
8055
8056 2012-03-08 Luis Machado <lgustavo@codesourcery.com>
8057
8058 * ax-gdb.c (gen_fetch): Fail gracefully and use error instead
8059 of internal error for unknown/unsupported types.
8060
8061 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
8062
8063 Fix CU relative vs. absolute DIE offsets.
8064 * dwarf2loc.h (dwarf2_fetch_die_location_block): Rename parameter
8065 offset to offset_in_cu.
8066 * dwarf2read.c (process_enumeration_scope): Add CU offset to
8067 TYPE_OFFSET.
8068 (dwarf2_fetch_die_location_block): Rename parameter offset to
8069 offset_in_cu. New variable offset, add CU offset to OFFSET_IN_CU.
8070
8071 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
8072
8073 * libunwind-frame.c: Rename to ...
8074 * ia64-libunwind-tdep.c: ... here.
8075 * libunwind-frame.h: Rename to ...
8076 * ia64-libunwind-tdep.h: ... here.
8077 * Makefile.in (HFILES_NO_SRCDIR): Rename libunwind-frame.h to
8078 ia64-libunwind-tdep.h.
8079 (ALLDEPFILES): Rename libunwind-frame.c to ia64-libunwind-tdep.c.
8080 * README (--with-libunwind): Rename to ...
8081 (--with-libunwind-ia64): ... here, note it is ia64 specific now.
8082 * config.in: Regenerate.
8083 * configure: Regenerate.
8084 * configure.ac: New option --with-libunwind-ia64, make the
8085 AS_HELP_STRING ia64 specific. Deprecate option --with-libunwind.
8086 Remove AC_DEFINE for HAVE_LIBUNWIND.
8087 * ia64-libunwind-tdep.c: Make the file top comment ia64 specific.
8088 Rename libunwind-frame.h #include to ia64-libunwind-tdep.h.
8089 Rename libunwind-frame in the general comment.
8090 * ia64-libunwind-tdep.h: Make the file top comment ia64 specific.
8091 Rename symbol LIBUNWIND_FRAME_H to IA64_TDEP_LIBUNWIND_FRAME_H.
8092 Move forward declarations inside #ifndef. Rename libunwind-frame in
8093 the general comment.
8094 * ia64-tdep.c: Rename libunwind-frame.h #include to
8095 ia64-libunwind-tdep.h.
8096 (ia64_gdb2uw_regnum, ia64_uw2gdb_regnum, ia64_is_fpreg)
8097 (ia64_libunwind_descr): Rename libunwind-frame to
8098 ia64-libunwind-tdep in these function comments.
8099 * ia64-tdep.h: Rename libunwind-frame.h #include to
8100 ia64-libunwind-tdep.h.
8101 * ia64-vms-tdep.c (ia64_vms_libunwind_descr): Rename libunwind-frame to
8102 ia64-libunwind-tdep in that data comment.
8103
8104 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
8105
8106 * libunwind-frame.h (struct frame_unwind): New declaration.
8107
8108 2012-03-08 Joel Brobecker <brobecker@adacore.com>
8109
8110 * breakpoint.c (_initialize_breakpoint): Fix error in help of
8111 "set breakpoint condition-evaluation" command.
8112
8113 2012-03-08 Tristan Gingold <gingold@adacore.com>
8114
8115 * sparc-stub.c: Move to stubs/
8116 * sh-stub.c: Likewise.
8117 * m68k-stub.c: Likewise.
8118 * m32r-stub.c: Likewise.
8119 * i386-stub.c: Likewise.
8120
8121 2012-03-08 Andreas Schwab <schwab@linux-m68k.org>
8122
8123 * m68klinux-tdep.c (m68k_linux_init_abi): Register
8124 linux_get_siginfo_type.
8125
8126 * m68klinux-nat.c: Include "gdb_proc_service.h".
8127 (PTRACE_GET_THREAD_AREA): Define.
8128 (ps_get_thread_area): New function.
8129
8130 2012-03-08 Yao Qi <yao@codesourcery.com>
8131
8132 * remote.c (remote_get_noisy_reply): Replace `sprintf' with
8133 `xsnprintf'.
8134 (remote_query_attached): Likewise.
8135 (remote_static_tracepoint_marker_at): Likewise.
8136 (remote_set_permissions): Likewise.
8137 (remote_detach_1, extended_remote_attach_1): Likewise.
8138 (send_g_packet, remote_vkill): Likewise.
8139 (extended_remote_disable_randomization): Likewise.
8140 (remote_add_target_side_condition): Likewise.
8141 (remote_insert_breakpoint): Likewise.
8142 (remote_remove_breakpoint): Likewise.
8143 (remote_insert_watchpoint): Likewise.
8144 (remote_remove_watchpoint): Likewise.
8145 (remote_insert_hw_breakpoint): Likewise.
8146 (remote_insert_hw_breakpoint): Likewise.
8147 (remote_remove_hw_breakpoint): Likewise.
8148 (remote_download_command_source): Likewise.
8149 (remote_download_tracepoint): Likewise.
8150 (remote_download_trace_state_variable): Likewise.
8151 (remote_disable_tracepoint): Likewise.
8152 (remote_trace_set_readonly_regions): Likewise.
8153 (remote_get_tracepoint_status): Likewise.
8154 (remote_trace_find): Likewise.
8155 (remote_get_trace_state_variable_value): Likewise.
8156 (remote_set_disconnected_tracing): Likewise.
8157 (remote_set_circular_trace_buffer): Likewise.
8158 (remote_get_min_fast_tracepoint_insn_len): Likewise.
8159 (remote_use_agent): Likewise.
8160 (remote_add_target_side_condition): Add one parameter BUF_SIZE.
8161 Update callers.
8162
8163 2012-03-07 Pedro Alves <palves@redhat.com>
8164
8165 * NEWS: Mention QProgramSignals.
8166 * inferior.h (update_signals_program_target): Declare.
8167 * infrun.c: (update_signals_program_target): New.
8168 (handle_command): Update the target of the new program signals
8169 array changes.
8170 * remote.c (PACKET_QProgramSignals): New enum.
8171 (last_program_signals_packet): New global.
8172 (remote_program_signals): New.
8173 (remote_start_remote): Update the target with the program signals
8174 list.
8175 (remote_protocol_features): Add entry for QPassSignals.
8176 (remote_open_1): Free anc clear last_program_signals_packet.
8177 (init_remote_ops): Install remote_program_signals.
8178 * target.c (update_current_target): Adjust.
8179 (target_program_signals): New.
8180 * target.h (struct target_ops) <to_program_signals>: New field.
8181 (target_program_signals): Declare.
8182
8183 2012-03-07 Pedro Alves <palves@redhat.com>
8184
8185 * NEWS: Add subtitle for new z0/z1 conditional breakpoint
8186 extensions.
8187
8188 2012-03-07 Andreas Schwab <schwab@linux-m68k.org>
8189
8190 * m68klinux-nat.c (getregs_supplies): Make static.
8191 (getfpregs_supplies): Likewise.
8192 (have_ptrace_getregs): Likewise.
8193
8194 2012-03-06 Joel Brobecker <brobecker@adacore.com>
8195
8196 * dwarf2read.c (dwarf2_get_die_type): Pass absolute offset
8197 in call to get_die_type_at_offset.
8198
8199 2012-03-06 Stan Shebs <stan@codesourcery.com>
8200
8201 * mi/mi-cmd-break.c: Enforce coding standards, fix comments.
8202 * mi/mi-cmd-disas.c: Ditto.
8203 * mi/mi-cmd-env.c: Ditto.
8204 * mi/mi-cmd-file.c: Ditto.
8205 * mi/mi-cmd-stack.c: Ditto.
8206 * mi/mi-cmd-target.c: Ditto.
8207 * mi/mi-cmd-var.c: Ditto.
8208 * mi/mi-cmds.c: Ditto.
8209 * mi/mi-cmds.h: Ditto.
8210 * mi/mi-console.c: Ditto.
8211 * mi/mi-getopt.c: Ditto.
8212 * mi/mi-getopt.h: Ditto.
8213 * mi/mi-interp.c: Ditto.
8214 * mi/mi-main.c: Ditto.
8215 * mi/mi-out.c: Ditto.
8216 * mi/mi-parse.c: Ditto.
8217 * mi/mi-parse.h: Ditto.
8218 * mi/mi-symbol-cmds.c: Ditto.
8219
8220 * mi/mi-getopt.h: Move mi_opt struct up.
8221 * mi/mi-main.c (captured_mi_execute_command): Remove redundant
8222 return.
8223 * mi/mi-out.c (_initialize_mi_out): Remove empty initialize.
8224
8225 2012-03-06 Tom Tromey <tromey@redhat.com>
8226
8227 * proc-service.c (ps_pglobal_lookup): Set the current program
8228 space.
8229
8230 2012-03-06 Pedro Alves <palves@redhat.com>
8231
8232 * gregset.h [HAVE_SYS_PROCFS_H]: Include <sys/procfs.h>.
8233
8234 2012-03-05 Joel Brobecker <brobecker@adacore.com>
8235
8236 * MAINTAINERS: List Maciej W. Rozycki as the mips maintainer.
8237
8238 2012-03-05 Jan Kratochvil <jan.kratochvil@redhat.com>
8239
8240 Code cleanup.
8241 * common/linux-osdata.c (linux_common_core_of_thread): New function
8242 comment.
8243 * linux-nat.c (linux_nat_wait_1): Replace linux_nat_core_of_thread_1
8244 call by linux_common_core_of_thread.
8245 (linux_nat_core_of_thread_1): Remove.
8246 * linux-nat.h (linux_nat_core_of_thread_1): Remove declaration.
8247 * linux-thread-db.c: Include linux-osdata.h.
8248 (update_thread_core): Replace linux_nat_core_of_thread_1 call by
8249 linux_common_core_of_thread.
8250
8251 2012-03-05 Tom Tromey <tromey@redhat.com>
8252
8253 * value.c (value_primitive_field): Don't fetch contents for
8254 non-virtual bases.
8255
8256 2012-03-05 Tom Tromey <tromey@redhat.com>
8257
8258 * jv-valprint.c (java_value_print): Correctly compute 'obj_addr'.
8259
8260 2012-03-05 Andreas Arnez <arnez@linux.vnet.ibm.com>
8261
8262 * s390-nat.c: Include "gregset.h".
8263
8264 2012-03-05 Jan Kratochvil <jan.kratochvil@redhat.com>
8265
8266 * libunwind-frame.c (LIBUNWIND_SO): Change .7 to .8.
8267 [!LIBUNWIND_SO] (LIBUNWIND_SO_7): New #define.
8268 (libunwind_load): New variable so_error, use it for dlerror. Try to
8269 load also LIBUNWIND_SO_7.
8270
8271 2012-03-05 Pedro Alves <palves@redhat.com>
8272
8273 * i387-tdep.c (i387_supply_xsave): Assert the xsave section buffer
8274 is not NULL, and remove resulting dead code.
8275
8276 2012-03-05 Thomas Schwinge <thomas@codesourcery.com>
8277
8278 * sh-tdep.c (sh_skip_prologue): Provide an upper limit on the function
8279 prologue to sh_analyze_prologue.
8280 (sh_analyze_prologue): Make better use of such an upper limit, and
8281 generally be more cautious about accessing memory.
8282
8283 2012-03-05 Tom Tromey <tromey@redhat.com>
8284
8285 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Rename from
8286 _initialize_ia64_hpux_tdep.
8287
8288 2012-03-05 Pedro Alves <palves@redhat.com>
8289
8290 PR gdb/13766
8291
8292 * i387-tdep.c (i387_supply_xsave): If we have an xsave buffer, and
8293 the register state is clear, supply explicit zero, instead of
8294 marking the register unavailable.
8295
8296 2012-03-05 Tristan Gingold <gingold@adacore.com>
8297
8298 * NEWS: Mention OpenVMS ia64 new target.
8299
8300 2012-03-05 Tristan Gingold <gingold@adacore.com>
8301
8302 * ia64-tdep.h: Include libunwind-frame.h and libunwind-ia64.h.
8303 (ia64_unw_accessors, ia64_unw_rse_accessors)
8304 (ia64_libunwind_descr): Declare.
8305 * ia64-vms-tdep.c: New file.
8306 * ia64-tdep.c (ia64_unw_accessors, ia64_unw_rse_accessors)
8307 (ia64_libunwind_descr): Make them public.
8308 * configure.tgt: Add ia64-*-*vms*.
8309 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-vms-tdep.o
8310 (ALLDEPFILES): Add ia64-vms-tdep.c
8311
8312 2012-03-05 Tristan Gingold <gingold@adacore.com>
8313
8314 * target.h (target_object): Add TARGET_OBJECT_OPENVMS_UIB.
8315 * remote.c (PACKET_qXfer_uib): New enum value.
8316 (remote_protocol_features): Add entry for PACKET_qXfer_uib.
8317 (remote_xfer_partial): Handle TARGET_OBJECT_OPENVMS_UIB.
8318 (_initialize_remote): Call add_packet_config_cmd for
8319 xfer:uib packet.
8320
8321 2012-03-05 Tristan Gingold <gingold@adacore.com>
8322
8323 * osabi.c (gdb_osabi_names): Add OpenVMS.
8324 (generic_elf_osabi_sniffer): Likewise.
8325 * defs.h (gdb_osabi): Add GDB_OSABI_OPENVMS.
8326
8327 2012-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
8328
8329 Removed unused code.
8330 * libunwind-frame.c (libunwind_frame_unwind)
8331 (libunwind_frame_base_address): Remove.
8332 * libunwind-frame.h (libunwind_frame_base_address): Remove declaration.
8333
8334 2012-03-04 Yao Qi <yao@codesourcery.com>
8335
8336 * common/agent.c (gdb_connect_sync_socket): Add _ markup and
8337 remove trailing new line.
8338 (agent_run_command, agent_run_command): Add _ markup.
8339 (agent_capability_check): Likewise.
8340
8341 2012-03-03 Jan Kratochvil <jan.kratochvil@redhat.com>
8342
8343 * breakpoint.c (set_condition_evaluation_mode): Set
8344 CONDITION_EVALUATION_MODE unconditionally.
8345
8346 2012-03-03 Yao Qi <yao@codesourcery.com>
8347
8348 * common/agent.c (agent_look_up_symbols): Add one parameter 'arg'.
8349 * common/agent.h: Update declaration.
8350 * inf-child.c (inf_child_use_agent): New.
8351 (inf_child_can_use_agent): New.
8352 (inf_child_target): Initialize fields `to_use_agent'
8353 and `to_can_use_agent'.
8354 * agent.c (agent_new_objfile): New.
8355 (_initialize_agent): Add agent_new_objfile to new_objfile
8356 observer.
8357
8358 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
8359 New.
8360 (linux_target_install_ops): Initialize field
8361 `to_static_tracepoint_markers_by_strid'.
8362 * remote.c (free_current_marker): Move it to ...
8363 * tracepoint.c (free_current_marker): ... here. New.
8364 (cleanup_target_stop): New.
8365 * tracepoint.h: Declare free_current_marker.
8366 * NEWS: Add one entry about `info static-tracepoint-marker'.
8367
8368 2012-03-03 Yao Qi <yao@codesourcery.com>
8369
8370 * common/agent.c (agent_loaded_p): New.
8371 (agent_look_up_symbols): New global.
8372 * common/agent.h: Declare agent_loaded_p.
8373
8374 2012-03-03 Yao Qi <yao@codesourcery.com>
8375
8376 * common/agent.c (struct ipa_sym_addresses) <addr_capability>: New.
8377 (agent_capability_check, agent_capability_invalidate): New.
8378 (symbol_list): New array element.
8379 * common/agent.h (enum agent_capa): New.
8380 * target.c (target_pre_inferior): Call agent_capability_invalidate.
8381
8382 2012-03-03 Yao Qi <yao@codesourcery.com>
8383
8384 * target.h (struct target_ops) <to_use_agent>: New field.
8385 (struct target_ops) <to_can_use_agent>: New field.
8386 (target_use_agent, target_can_use_agent): New macro.
8387 * target.c (update_current_target): Update.
8388 * remote.c: New enum `PACKET_QAgent'.
8389 (remote_protocol_features): Add a new element.
8390 (remote_use_agent, remote_can_use_agent): New.
8391 (init_remote_ops): Initialize field `can_use_agent' with
8392 remote_can_use_agent. Intiailize field `use_agent' with
8393 remote_use_agent.
8394 * common/agent.c (use_agent): New global.
8395 * common/agent.h: Declare it.
8396 * tracepoint.c (info_static_tracepoint_markers_command): Add
8397 comment.
8398 * Makefile.in (SFILES): Add common/agent.c and agent.c.
8399 (COMMON_OBS): Add common/agent.o and agent.o
8400 (common-agent.o): New rule.
8401 * agent.c: New.
8402
8403 2012-03-03 Yao Qi <yao@codesourcery.com>
8404
8405 * common/agent.c: New.
8406 * common/agent.h: New.
8407 * configure.ac: Add `sys/socket.h' and `sys/un.h' to
8408 AC_CHECK_HEADERS.
8409 * configure, configh.in: Regenerated.
8410
8411 2012-03-02 Kevin Buettner <kevinb@redhat.com>
8412
8413 * sh-tdep.c (sh_frame_cache): Don't fetch the FPSCR register
8414 unless it exists for this architecture.
8415
8416 2012-03-02 Joel Brobecker <brobecker@adacore.com>
8417
8418 * language.h (struct language_defn): New "method" la_read_var_value.
8419 * findvar.c: #include "language.h".
8420 (default_read_var_value): Renames read_var_value. Rewrite
8421 function description.
8422 (read_var_value): New function.
8423 * value.h (default_read_var_value): Add prototype.
8424 * ada-lang.c (ada_read_renaming_var_value, ada_read_var_value):
8425 New functions.
8426 (ada_language_defn): Add entry for la_read_var_value.
8427 * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, language.c,
8428 * m2-lang.c, objc-lang.c, opencl-lang.c, p-lang.c: Update
8429 language_defn structures to add entry for new la_read_var_value
8430 field.
8431
8432 2012-03-02 Tom Tromey <tromey@redhat.com>
8433 Pedro Alves <palves@redhat.com>
8434
8435 PR breakpoints/13776:
8436 * breakpoint.c (breakpoint_init_inferior): Delete step-resume
8437 breakpoints.
8438 (delete_longjmp_breakpoint_at_next_stop): New.
8439 * breakpoint.h (delete_longjmp_breakpoint_at_next_stop): Declare.
8440 * target.c (generic_mourn_inferior): Call mark_breakpoints_out
8441 before deleting the inferior. Add comments.
8442 * thread.c (clear_thread_inferior_resources): Don't delete lonjmp
8443 breakpoints immediately, but only on next stop. Move that code
8444 next to where we mark other breakpoints for deletion.
8445
8446 2012-03-02 Joel Brobecker <brobecker@adacore.com>
8447
8448 * mips-linux-nat.c (mips_linux_read_description): Add missing i18n
8449 marker.
8450 * mips-tdep.c (mips_linux_reg_names): Improve comment to avoid ARI
8451 violation.
8452
8453 2012-03-02 Pedro Alves <palves@redhat.com>
8454
8455 * linux-thread-db.c (attach_thread): Avoid in_thread_list call.
8456
8457 2012-03-02 Ulrich Weigand <uweigand@de.ibm.com>
8458
8459 Fix -Wmissing-prototypes build.
8460 * ppc-linux-nat.c (ppc_linux_get_hwcap): Make static.
8461 * remote-sim.c (gdbsim_has_all_memory): Likewise.
8462 (gdbsim_has_memory): Likewise.
8463
8464 2012-03-02 Yao Qi <yao@codesourcery.com>
8465
8466 Fix -Wmissing-prototypes build.
8467 * charset.c (phony_iconv_open): Make static.
8468 (phony_iconv_close, phony_iconv): Likewise.
8469 * i386-linux-nat.c (_initialize_i386_linux_nat): New prototype.
8470 * i386-windows-nat.c (_initialize_i386_windows_nat): New
8471 prototype.
8472 * mingw-hdep.c (_initialize_mingw_hdep): New prototype.
8473 * ser-mingw.c (create_select_thread): Make static.
8474 * windows-termcap.c (tgetent): New prototype.
8475 (tgetnum, tgetflag, tgetstr, tputs, tgoto): Likewise.
8476
8477 2012-03-02 Zhang Yuanhui <asmwarrior@gmail.com>
8478
8479 Fix -Wmissing-prototypes build.
8480 * windows-nat.c (dll_symbol_command, ctrl_c_handler): Make them static.
8481 (_initialize_windows_nat, _initialize_check_for_gdb_ini)
8482 (_initialize_loadable): New prototypes.
8483
8484 2012-03-02 Doug Evans <dje@google.com>
8485
8486 * dwarf2read.c (load_full_comp_unit): Remove unnecessary reading of
8487 abbrev table, read_comp_unit will do it.
8488
8489 2012-03-02 Jan Kratochvil <jan.kratochvil@redhat.com>
8490
8491 Fix -Wmissing-prototypes build.
8492 * alpha-tdep.c (alpha_deal_with_atomic_sequence): Make it static.
8493 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): New prototype.
8494 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Likewise.
8495 * arm-symbian-tdep.c (arm_symbian_skip_trampoline_code): Make it static.
8496 (_initialize_arm_symbian_tdep): New prototype.
8497 * arm-wince-tdep.c (arm_wince_skip_main_prologue): Make it static.
8498 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): New prototype.
8499 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Make it
8500 static.
8501 * lm32-tdep.c (_initialize_lm32_tdep): New prototype.
8502 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): New
8503 prototype.
8504 * microblaze-tdep.c (microblaze_debug, microblaze_fetch_instruction)
8505 (microblaze_skip_prologue, microblaze_frame_cache): Make them static.
8506 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Make it
8507 static.
8508 * moxie-tdep.c (moxie_process_record): Likewise.
8509 * remote-mips.c (mips_can_use_watchpoint, mips_insert_watchpoint)
8510 (mips_remove_watchpoint, mips_stopped_by_watchpoint): Make them static.
8511 * rl78-tdep.c (rl78_breakpoint_from_pc): Make it static.
8512 (_initialize_rl78_tdep): New prototype.
8513 * rx-tdep.c (rx_breakpoint_from_pc): Make it static.
8514 (_initialize_rx_tdep): New prototype.
8515 * solib-darwin.c (darwin_in_dynsym_resolve_code): Make it static.
8516 (_initialize_darwin_solib): New prototype.
8517 * solib-spu.c: Include solib-spu.h.
8518 (_initialize_spu_solib): New prototype.
8519 * spu-multiarch.c (_initialize_spu_multiarch): New prototype.
8520 * tic6x-tdep.c (tic6x_analyze_prologue, tic6x_skip_prologue)
8521 (tic6x_breakpoint_from_pc, tic6x_frame_unwind_cache)
8522 (tic6x_software_single_step): Make it static.
8523 (_initialize_tic6x_tdep): New prototype.
8524
8525 2012-03-02 Jan Kratochvil <jan.kratochvil@redhat.com>
8526
8527 Fix -Wmissing-prototypes build.
8528 * cris-tdep.c (cris_can_use_hardware_watchpoint)
8529 (cris_region_ok_for_watchpoint, cris_stopped_data_address): Remove.
8530
8531 2012-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
8532
8533 Fix -Wmissing-prototypes build.
8534 * frv-tdep.c (frv_check_watch_resources, frv_stopped_data_address)
8535 (frv_have_stopped_data_address): Remove.
8536
8537 2012-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
8538
8539 Fix -Wmissing-prototypes build.
8540 * Makefile.in (HFILES_NO_SRCDIR): Add sh64-tdep.h.
8541 * sh-tdep.c: Include sh64-tdep.h.
8542 * sh-tdep.h (sh64_gdbarch_init, sh64_show_regs): Remove declarations.
8543 * sh64-tdep.c: Include sh64-tdep.h.
8544 * sh64-tdep.h: New file.
8545
8546 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
8547
8548 * mips-tdep.c (mips32_scan_prologue): Correct indentation.
8549
8550 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
8551
8552 * mips-tdep.c (mips_gdbarch_init): Only set pc_regnum and
8553 sp_regnum once the gdbarch_init_osabi hook has been called.
8554
8555 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
8556
8557 * mips-tdep.c (mips32_bc1_pc): New function.
8558 (mips32_next_pc): Handle BC1ANY2F, BC1ANY2T, BC1ANY4F, BC1ANY4T,
8559 BPOSGE32 and BPOSGE64 instructions.
8560 (deal_with_atomic_sequence): Likewise.
8561 (mips32_instruction_has_delay_slot): Likewise.
8562
8563 2012-03-01 Maciej W. Rozycki <macro@mips.com>
8564 Chris Dearman <chris@mips.com>
8565 Maciej W. Rozycki <macro@codesourcery.com>
8566 Joseph Myers <joseph@codesourcery.com>
8567
8568 * features/mips-dsp.xml: New file.
8569 * features/mips64-dsp.xml: New file.
8570 * features/mips-dsp-linux.xml: New file.
8571 * features/mips64-dsp-linux.xml: New file.
8572 * features/Makefile (WHICH): Add mips-dsp-linux and
8573 mips64-dsp-linux.
8574 (mips-dsp-expedite, mips64-dsp-expedite): New variables.
8575 * features/mips-dsp-linux.c: New file.
8576 * features/mips64-dsp-linux.c: New file.
8577 * regformats/mips-dsp-linux.dat: New file.
8578 * regformats/mips64-dsp-linux.dat: New file.
8579 * mips-linux-nat.c (mips_linux_register_addr): Handle DSP
8580 registers.
8581 (mips64_linux_register_addr): Likewise.
8582 (mips64_linux_regsets_fetch_registers): Likewise.
8583 (mips64_linux_regsets_store_registers): Likewise.
8584 (mips64_linux_fetch_registers): Update call to
8585 mips64_linux_regsets_fetch_registers.
8586 (mips64_linux_store_registers): Update call to
8587 mips64_linux_regsets_store_registers.
8588 (mips_linux_read_description): Probe for DSP registers.
8589 (_initialize_mips_linux_nat): Call initialize_tdesc_mips_dsp_linux
8590 and initialize_tdesc_mips64_dsp_linux.
8591 * mips-linux-tdep.c (supply_gregset, mips64_supply_gregset):
8592 Remove padding of no longer used embedded register slots.
8593 * mips-linux-tdep.h (DSP_BASE, DSP_CONTROL): New macros.
8594 (MIPS_RESTART_REGNUM): Redefine enum value.
8595 * mips-tdep.c (mips_generic_reg_names): Remove trailing null
8596 strings.
8597 (mips_tx39_reg_names): Likewise.
8598 (mips_linux_reg_names): New array of register names for Linux
8599 targets.
8600 (mips_register_name): Check for a null pointer in
8601 mips_processor_reg_names and return an empty string.
8602 (mips_register_type): Exclude embedded registers for the IRIX
8603 and Linux ABIs.
8604 (mips_pseudo_register_type): Likewise. Use dynamic numbers to
8605 refer to FP registers, LO, HI, BadVAddr, Cause and PC. Handle
8606 DSP registers.
8607 (mips_stab_reg_to_regnum): Handle DSP accumulators.
8608 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Likewise.
8609 (mips_gdbarch_init): Likewise. Initialize internal register
8610 indices for the Linux ABI. Use dynamic numbers to refer to
8611 registers, as applicable, while parsing the target description.
8612 * mips-tdep.h (struct mips_regnum): Add dspacc/dspctl offsets.
8613
8614 2012-03-01 Joel Brobecker <brobecker@adacore.com>
8615
8616 * frame.h (read_frame_register_unsigned): Fix typo in function
8617 description.
8618
8619 2012-03-01 Pedro Alves <palves@redhat.com>
8620
8621 * jit-reader.in [!__cplusplus]
8622 (GDB_DECLARE_GPL_COMPATIBLE_READER): Add missing backslash.
8623
8624 2012-03-01 Pedro Alves <palves@redhat.com>
8625
8626 * configure.ac (build_warnings): Add -Wmissing-prototypes.
8627 * configure: Regenerate.
8628
8629 2012-03-01 Pedro Alves <palves@redhat.com>
8630
8631 * amd64-linux-tdep.c (amd64_linux_record_signal): Make static.
8632 * breakpoint.c (create_exception_master_breakpoint, trace_command)
8633 (ftrace_command, strace_command): Make static.
8634 * d-lang.c (_initialize_d_language): Declare.
8635 * dwarf2expr.c (_initialize_dwarf2expr): Declare.
8636 * dwarf2loc.c (_initialize_dwarf2loc):
8637 * dwarf2read.c (process_psymtab_comp_unit): Make static.
8638 * exec.c (exec_get_section_table): Make static.
8639 * i386-linux-tdep.c (i386_linux_record_signal): Make static.
8640 * infcmd.c (ensure_valid_thread, ensure_not_tfind_mode): Make static.
8641 * inferior.c (remove_inferior_command, add_inferior_command)
8642 (clone_inferior_command): Make static.
8643 * linux-nat.c (linux_nat_thread_address_space)
8644 (linux_nat_core_of_thread): Make static.
8645 * linux-tdep.c (_initialize_linux_tdep): Declare.
8646 * objc-lang.c (_initialize_objc_lang): Declare.
8647 * opencl-lang.c (builtin_opencl_type, opencl_language_arch_info):
8648 Make static.
8649 (_initialize_opencl_language): Declare.
8650 * record.c (_initialize_record): Declare.
8651 * remote.c (demand_private_info, remote_get_tib_address)
8652 (remote_supports_cond_tracepoints)
8653 (remote_supports_fast_tracepoints, remote_get_tracepoint_status):
8654 Make static.
8655 * skip.c (_initialize_step_skip): Declare.
8656 * symtab.c (skip_prologue_using_lineinfo): Make static.
8657 * tracepoint.c (delete_trace_state_variable)
8658 (trace_variable_command, delete_trace_variable_command)
8659 (get_uploaded_tsv, find_matching_tracepoint_location)
8660 (find_matching_tsv, create_tsv_from_upload, get_traceframe_info):
8661 Make static.
8662 * value.c (pack_unsigned_long): Make static.
8663 * varobj.c (varobj_ensure_python_env): Make static.
8664 * windows-tdep.c (_initialize_windows_tdep): Declare.
8665 * xml-syscall.c (make_cleanup_free_syscalls_info): Make static.
8666
8667 2012-03-01 Pedro Alves <palves@redhat.com>
8668
8669 * linux-tdep.c (linux_has_shared_address_space): Make static. Add
8670 gdbarch parameter.
8671 (linux_init_abi): Install it as has_shared_address_space gdbarch
8672 callback.
8673
8674 2012-03-01 Pedro Alves <palves@redhat.com>
8675
8676 * observer.c (observer_test_first_notification_function)
8677 (observer_test_second_notification_function)
8678 (observer_test_third_notification_function): Add declarations.
8679
8680 2012-03-01 Pedro Alves <palves@redhat.com>
8681
8682 * common/signals.c (default_target_signal_to_host)
8683 (default_target_signal_from_host): Move ...
8684 * arch-utils.c: ... here.
8685 * arch-utils.h (default_target_signal_to_host)
8686 (default_target_signal_from_host): Declare.
8687
8688 * common/signals.c (target_signal_from_command): Move ...
8689 * infrun.c: ... here.
8690 * inferior.h (target_signal_from_command): Declare.
8691 * target.h (target_signal_from_command)
8692 (default_target_signal_from_host, default_target_signal_to_host):
8693 Delete declarations.
8694
8695 * common/signals.c (_initialize_signals): Delete.
8696
8697 2012-03-01 Pedro Alves <palves@redhat.com>
8698
8699 * jit-reader.in (plugin_is_GPL_compatible): Add declarations for
8700 both __cplusplus and !__cplusplus.
8701
8702 2012-03-01 Pedro Alves <palves@redhat.com>
8703
8704 * psymtab.c (find_and_open_source): Delete declaration.
8705 * source.c (find_and_open_source): Move comment ...
8706 * source.h (find_and_open_source): ... to this new declaration.
8707
8708 2012-03-01 Pedro Alves <palves@redhat.com>
8709
8710 * inline-frame.c: Include inline-frame.h.
8711
8712 2012-03-01 Pedro Alves <palves@redhat.com>
8713
8714 * tui/tui-data.c (set_gen_win_origin): Delete.
8715 * tui/tui-data.h (tui_set_gen_win_origin): Delete declaration.
8716 * tui/tui-regs.c (tui_last_reg_element_no_in_line): Delete.
8717
8718 2012-03-01 Pedro Alves <palves@redhat.com>
8719
8720 * remote.c (encode_actions): Delete declaration.
8721 * tracepoint.c (encode_actions): Make extern.
8722 * tracepoint.h (encode_actions): Declare.
8723
8724 2012-03-01 Pedro Alves <palves@redhat.com>
8725
8726 * python/py-breakpoint.c: Include python.h.
8727 * python/py-continueevent.c (create_continue_event_object): Make
8728 static.
8729 * python/py-lazy-string.c (stpy_get_type): Make static.
8730 * python/py-newobjfileevent.c (create_new_objfile_event_object):
8731 Make static.
8732 * python/py-utils.c (unicode_to_target_python_string): Make
8733 static.
8734 * python/py-value.c: Include python.h.
8735
8736 2012-03-01 Pedro Alves <palves@redhat.com>
8737
8738 * inferior.c (delete_threads_of_inferior): Delete.
8739
8740 2012-03-01 Pedro Alves <palves@redhat.com>
8741
8742 Import fallback definitions from glibc.
8743
8744 * gdb_proc_service.h [!HAVE_PROC_SERVICE_H] (struct
8745 ps_prochandle): Forward declare.
8746 (ps_err_e): Use glibc's comments.
8747 [!HAVE_PROC_SERVICE_H] (ps_pdread, ps_pdwrite, ps_ptread)
8748 (ps_ptwrite, ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
8749 (ps_lsetfpregs, ps_getpid, ps_get_thread_area, ps_pglobal_lookup)
8750 (ps_pstop, ps_pcontinue, ps_lstop, ps_lcontinue, ps_lgetxregsize)
8751 (ps_lgetxregs, ps_lsetxregs, ps_plog): Declare.
8752 (struct ps_prochandle): Adjust comment.
8753
8754 2012-03-01 Pedro Alves <palves@redhat.com>
8755
8756 * ada-lang.c (ada_modulus_from_name): Delete.
8757 * ada-lex.l (lexer_init): Make static.
8758
8759 2012-03-01 Pedro Alves <palves@redhat.com>
8760
8761 PR gdb/13767
8762
8763 * frame.c (read_frame_register_unsigned): New.
8764 * frame.h (read_frame_register_unsigned): Declare.
8765 * i387-tdep.c (print_i387_status_word): New parameter `status_p'.
8766 Handle it.
8767 (print_i387_control_word): New parameter `control_p'. Handle it.
8768 (i387_print_float_info): Handle unavailable float registers.
8769
8770 2012-03-01 Keith Seitz <keiths@redhat.com>
8771
8772 * linespec.c (decode_line_2): Sort the list of methods
8773 alphabetically before presenting the user with a selection
8774 menu.
8775
8776 2012-03-01 Doug Evans <dje@google.com>
8777
8778 * dwarf2read.c (dwarf2_cu): Remove unused members has_form_ref_addr,
8779 has_namespace_info.
8780 (dwarf2_read_abbrevs): Remove corresponding initialization.
8781
8782 2012-03-01 Scott J. Goldman <scottjg@vmware.com>
8783
8784 * NEWS: Mention new python command class gdb.COMMAND_USER.
8785 * cli/cli-cmds.c (show_user): Print error when used on a python
8786 command.
8787 (init_cli_cmds): Update documentation strings for "show user" and
8788 "set/show max-user-call-depth" to clarify that it does not apply to
8789 python commands.
8790 * python/py-cmd.c (cmdpy_init): Treat class_user as a valid class in
8791 error check.
8792 (gdbpy_initialize_commands): Add COMMAND_USER as a constant in
8793 gdb python api.
8794 * top.c (execute_command): Only execute a user-defined command as a
8795 legacy macro if c->user_commands is set.
8796
8797 2012-03-01 Tom Tromey <tromey@redhat.com>
8798
8799 * valprint.h (struct generic_val_print_decorations): New.
8800 (generic_val_print): Declare.
8801 * valprint.c (generic_val_print): New function.
8802 * p-valprint.c (p_decorations): New global.
8803 (pascal_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM,
8804 TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_RANGE, TYPE_CODE_INT,
8805 TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ERROR, TYPE_CODE_UNDEF,
8806 TYPE_CODE_BOOL, TYPE_CODE_CHAR>: Call generic_val_print.
8807 * m2-valprint.c (m2_decorations): New global.
8808 (m2_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM, TYPE_CODE_FUNC,
8809 TYPE_CODE_BOOL, TYPE_CODE_RANGE, TYPE_CODE_INT, TYPE_CODE_CHAR,
8810 TYPE_CODE_FLT, TYPE_CODE_METHOD, TYPE_CODE_VOID, TYPE_CODE_UNDEF,
8811 TYPE_CODE_ERROR>: Call generic_val_print.
8812 * f-valprint.c (f_decorations): New global.
8813 (f_val_print): Use print_function_pointer_address.
8814 <TYPE_CODE_REF, TYPE_CODE_FUNC, TYPE_CODE_CHAR, TYPE_CODE_FLAGS,
8815 TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ENUM, TYPE_CODE_RANGE,
8816 TYPE_CODE_BOOL, TYPE_CODE_COMPLEX, TYPE_CODE_UNDEF>: Call
8817 generic_val_print.
8818 * c-valprint.c (c_decorations): New global.
8819 (c_val_print) <TYPE_CODE_MEMBERPTR, TYPE_CODE_REF, TYPE_CODE_ENUM,
8820 TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_METHOD, TYPE_CODE_BOOL,
8821 TYPE_CODE_RANGE, TYPE_CODE_CHAR, TYPE_CODE_FLT,
8822 TYPE_CODE_DECFLOAT, TYPE_CODE_VOID, TYPE_CODE_ERROR,
8823 TYPE_CODE_UNDEF, TYPE_CODE_COMPLEX>: Call generic_val_print.
8824 * ada-valprint.c (ada_val_print_1) <TYPE_CODE_FLAGS>: Remove
8825 case.
8826
8827 2012-03-01 Tom Tromey <tromey@redhat.com>
8828
8829 * valprint.c (val_print): Update.
8830 * p-valprint (pascal_val_print): Return void.
8831 * p-lang.h (pascal_val_print): Return void.
8832 * m2-valprint.c (m2_val_print): Return void.
8833 * m2-lang.h (m2_val_print): Return void.
8834 * language.h (struct language_defn) <la_val_print>: Return void.
8835 * language.c (unk_lang_val_print): Return void.
8836 * jv-valprint.c (java_val_print): Return void.
8837 * jv-lang.h (java_val_print): Return void.
8838 * f-valprint.c (f_val_print): Return void.
8839 * f-lang.h (f_val_print): Return void.
8840 * d-valprint.c (d_val_print): Return void.
8841 (dynamic_array_type): Update.
8842 * d-lang.h (d_val_print): Return void.
8843 * c-valprint.c (c_val_print): Return void.
8844 * c-lang.h (c_val_print): Return void.
8845 * ada-valprint.c (ada_vada_val_print, ada_val_print_1): Return
8846 void.
8847 * ada-lang.h (ada_val_print): Return void.
8848
8849 2012-03-01 Tom Tromey <tromey@redhat.com>
8850
8851 * value.h (val_print): Return void.
8852 * valprint.c (val_print): Return void.
8853
8854 2012-03-01 Tom Tromey <tromey@redhat.com>
8855
8856 * value.h (common_val_print): Return void.
8857 * valprint.c (common_val_print): Return void.
8858
8859 2012-03-01 Tom Tromey <tromey@redhat.com>
8860
8861 * value.h (value_print): Return void.
8862 * valprint.c (value_print): Return void.
8863 * p-valprint.c (pascal_value_print): Return void.
8864 * p-lang.h (pascal_value_print): Return void.
8865 * language.h (struct language_defn) <la_value_print>: Return
8866 void.
8867 * language.c (unk_lang_value_print): Return void.
8868 * jv-valprint.c (java_value_print): Return void.
8869 * jv-lang.h (java_value_print): Return void.
8870 * f-valprint.c (c_value_print): Don't declare.
8871 Include c-lang.h.
8872 * c-valprint.c (c_value_print): Return void.
8873 * c-lang.h (c_value_print): Return void.
8874 * ada-valprint.c (ada_value_print): Return void.
8875 * ada-lang.h (ada_value_print): Return void.
8876
8877 2012-03-01 Tom Tromey <tromey@redhat.com>
8878
8879 * value.c (value_primitive_field): Handle virtual base classes.
8880
8881 2012-03-01 Tom Tromey <tromey@redhat.com>
8882
8883 * gdbtypes.h (struct vbase): Remove.
8884
8885 2012-03-01 Tom Tromey <tromey@redhat.com>
8886
8887 * c-valprint.c (print_function_pointer_address): Move...
8888 * valprint.c: ... here. Make non-static.
8889 * m2-valprint.c (print_function_pointer_address): Remove.
8890 * valprint.h (print_function_pointer_address): Declare.
8891
8892 2012-03-01 Joel Brobecker <brobecker@adacore.com>
8893
8894 * NEWS: Document the fact that one can provide a condition when
8895 creating an Ada exception catchpoint.
8896
8897 2012-03-01 Tom Tromey <tromey@redhat.com>
8898
8899 * valprint.c (val_print_type_code_flags): Fix placement of
8900 trailing brace.
8901
8902 2012-03-01 Joel Brobecker <brobecker@adacore.com>
8903
8904 * copyright.py (MULTILINE_COMMENT_PREFIXES): Delete.
8905 (update_files): Do not set MULTILINE_COMMENT_PREFIXES
8906 environment variable before calling update-copyright.
8907
8908 2012-03-01 Joel Brobecker <brobecker@adacore.com>
8909
8910 * gnulib/extra/update-copyright: Update to the latest from
8911 gnulib's git repository.
8912 * copyright.py: Set UPDATE_COPYRIGHT_USE_INTERVALS environment
8913 variable to 2 instead of 1.
8914
8915 2012-02-29 Joel Brobecker <brobecker@adacore.com>
8916
8917 * varobj.c (c_value_of_variable): Remove dead code.
8918
8919 2012-02-29 Joel Brobecker <brobecker@adacore.com>
8920
8921 * ada-lex.p (processId): Do not modify already encoded IDs.
8922 Update function documentation.
8923
8924 2012-02-29 Joel Brobecker <brobecker@adacore.com>
8925
8926 * ada-lang.h (ada_find_renaming_symbol): Replace parameter
8927 "name" with "struct symbol *name_sym".
8928 * ada-exp.y (write_var_or_type): Update call to
8929 ada_find_renaming_symbol.
8930 "name" with "struct symbol *name_sym". Adjust Implementation
8931 accordingly. Adjust the function documentation.
8932
8933 2012-02-29 Joel Brobecker <brobecker@adacore.com>
8934
8935 * ada-lang.h (ada_find_any_symbol, ada_find_any_type): Delete.
8936 * ada-lang.c (ada_find_any_type): Add advance declaration.
8937 Make static. Replace ada_find_any_symbol by
8938 ada_find_any_type_symbol.
8939 (ada_find_any_type_symbol): Renames ada_find_any_symbol.
8940 Improve function description. Make static.
8941 (ada_find_renaming_symbol, find_old_style_renaming_symbol):
8942 Replace ada_find_any_symbol by ada_find_any_type_symbol.
8943
8944 2012-02-29 Joel Brobecker <brobecker@adacore.com>
8945
8946 * ada-lang.c (struct tag_args): Delete.
8947 (ada_get_tsd_type): Function body moved up in source file.
8948 (ada_tag_name_1, ada_tag_name_2): Delete.
8949 (ada_get_tsd_from_tag): New function.
8950 (ada_tag_name_from_tsd): New function.
8951 (ada_tag_name): Use a TRY_CATCH block instead of catch_errors
8952 to determine the tag name.
8953
8954 2012-02-29 Joel Brobecker <brobecker@adacore.com>
8955
8956 * ada-lang.h (ada_get_decoded_value, ada_get_decoded_type): Add
8957 declaration.
8958 * ada-lang.c (ada_get_decoded_value, ada_get_decoded_type): New
8959 function.
8960
8961 2012-02-29 Joel Brobecker <brobecker@adacore.com>
8962
8963 * ada-lang.c (ada_is_ignored_field): Rewrite wrong comment.
8964
8965 2012-02-29 Joel Brobecker <brobecker@adacore.com>
8966
8967 * ada-lang.c (ada_lookup_symbol_list): Only cache the result of
8968 full searches.
8969
8970 2012-02-29 Joel Brobecker <brobecker@adacore.com>
8971
8972 * ada-lang.c (constrained_packed_array_type): If there is a
8973 parallel XA type, use it to determine the array index type.
8974
8975 2012-02-29 Joel Brobecker <brobecker@adacore.com>
8976
8977 * ada-valprint.c (ada_val_print_1): If our value is a reference
8978 to an array descriptor, dereference it before converting it
8979 to a simple array.
8980
8981 2012-02-29 Joel Brobecker <brobecker@adacore.com>
8982
8983 * ada-lang.c (ada_to_fixed_value): Call unwrap_value before
8984 creating fixed value.
8985 (ada_value_ind, ada_coerce_ref, assign_component)
8986 (ada_evaluate_subexp): Remove call to unwrap_value before
8987 call to ada_to_fixed_value.
8988
8989 2012-02-29 Joel Brobecker <brobecker@adacore.com>
8990
8991 * ada-lang.c (to_fixed_array_type): Set result's type name.
8992
8993 2012-02-29 Joel Brobecker <brobecker@adacore.com>
8994
8995 * ada-lang.c (catch_ada_exception_command_split): Add new
8996 argument cond_string. Add support for condition at end of
8997 "catch exception" commands.
8998 (ada_decode_exception_location): Add new argument cond_string.
8999 Update call to catch_ada_exception_command_split.
9000 (create_ada_exception_catchpoint): Add new argument cond_string.
9001 Set the breakpoint condition if needed.
9002 (catch_ada_exception_command): Update call to
9003 ada_decode_exception_location.
9004 (ada_decode_assert_location): Add function documentation.
9005 Add support for condition at end of "catch assert" command.
9006 (catch_assert_command): Update calls to ada_decode_assert_location
9007 and create_ada_exception_catchpoint.
9008
9009 2012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
9010
9011 Fix disp-step-syscall.exp: fork: single step over fork.
9012 * i386-linux-tdep.c (-i386_linux_get_syscall_number): Rename to ...
9013 (i386_linux_get_syscall_number_from_regcache): ... here, new function
9014 comment, change parameters gdbarch and ptid to regcache. Remove
9015 parameter regcache, initialize gdbarch from regcache here.
9016 (i386_linux_get_syscall_number, i386_linux_displaced_step_copy_insn):
9017 New functions.
9018 (i386_linux_init_abi): Install i386_linux_displaced_step_copy_insn
9019 instead.
9020 * i386-tdep.c (i386_syscall_p): Check also for 'sysenter' and
9021 'syscall'. Make the 'int' check more strict.
9022
9023 2012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
9024
9025 Fix reverse mode for syscall on AMD CPUs in 32-bit mode.
9026 * i386-linux-tdep.c (i386_linux_intx80_sysenter_record): Rename to ...
9027 (i386_linux_intx80_sysenter_syscall_record): ... here.
9028 (i386_linux_init_abi): Initialize also I386_SYSCALL_RECORD.
9029 Use the renamed function name.
9030
9031 2012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
9032
9033 * arm-linux-tdep.c (arm_linux_copy_svc): Reset stale FRAME.
9034 * breakpoint.c (until_break_command): Likewise.
9035 * elfread.c (elf_gnu_ifunc_resolver_stop): Likewise.
9036 * infcall.c (call_function_by_hand): Likewise.
9037 * infcmd.c (finish_forward): Likewise.
9038 * infrun.c (insert_exception_resume_breakpoint): Likewise.
9039
9040 2012-02-28 Tristan Gingold <gingold@adacore.com>
9041
9042 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Rework code to
9043 avoid variable assignments inside condition.
9044
9045 2012-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
9046
9047 Fix static analysis issue found by cppcheck.
9048 * microblaze-tdep.c (microblaze_extract_return_value): Fix
9049 uninitialized BUF for size 2.
9050
9051 2012-02-27 Chris Dearman <chris@mips.com>
9052 Nathan Froyd <froydnj@codesourcery.com>
9053 Maciej W. Rozycki <macro@codesourcery.com>
9054
9055 * mips-tdep.c (mips32_instruction_has_delay_slot): New function.
9056 (mips16_instruction_has_delay_slot): Likewise.
9057 (mips_segment_boundary): Likewise.
9058 (mips_adjust_breakpoint_address): Likewise.
9059 (mips_gdbarch_init): Use mips_adjust_breakpoint_address.
9060
9061 2012-02-27 Maciej W. Rozycki <macro@mips.com>
9062 Maciej W. Rozycki <macro@codesourcery.com>
9063
9064 * infrun.c (handle_inferior_event): Don't proceed through
9065 shared library trampolines if stepping at the machine
9066 instruction level.
9067
9068 2012-02-27 Maciej W. Rozycki <macro@codesourcery.com>
9069
9070 * mips-linux-tdep.c (mips_linux_init_abi): Set num_pseudo_regs
9071 too.
9072
9073 2012-02-27 Thomas Schwinge <thomas@codesourcery.com>
9074
9075 * sh-tdep.c (sh_make_stub_cache, sh_stub_this_id)
9076 (sh_stub_unwind_sniffer): New functions.
9077 (sh_stub_unwind): New variable.
9078 (sh_gdbarch_init): Wire everything.
9079
9080 2012-02-27 Pedro Alves <palves@redhat.com>
9081
9082 * linux-nat.c (pid_is_stopped): Delete, moved to common/.
9083 (linux_nat_post_attach_wait): Adjust to use
9084 linux_proc_pid_is_stopped.
9085 * common/linux-procfs.h (linux_proc_pid_is_stopped): Declare.
9086 * common/linux-procfs.c (linux_proc_pid_is_stopped): New function,
9087 based on pid_is_stopped from both linux-nat.c and
9088 gdbserver/linux-low.c, and renamed.
9089
9090 2012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
9091
9092 * remote.c (remote_watchpoint_addr_within_range): New function.
9093 (init_remote_ops): Use it.
9094
9095 2012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
9096
9097 * target.h (target_watchpoint_addr_within_range): Document macro.
9098
9099 2012-02-24 Pedro Alves <palves@redhat.com>
9100
9101 * stack.c (set_last_displayed_sal): Issue internal_error instead
9102 of warning, and issue it after clearing the last displayed sal.
9103
9104 2012-02-24 Jan Kratochvil <jan.kratochvil@redhat.com>
9105 Pedro Alves <palves@redhat.com>
9106
9107 * breakpoint.c (until_break_command): Install breakpoints after
9108 all frame manipulations.
9109
9110 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
9111
9112 * remote.c (remote_supports_cond_breakpoints): New forward
9113 declaration.
9114 (remote_add_target_side_condition): New function.
9115 (remote_insert_breakpoint): Add target-side breakpoint
9116 conditional if supported.
9117 (remote_insert_hw_breakpoint): Likewise.
9118 (init_remote_ops): Set to_supports_evaluation_of_breakpoint_conditions
9119 hook.
9120
9121 * target.c (update_current_target): Inherit
9122 to_supports_evaluation_of_breakpoint_conditions.
9123 Default to_supports_evaluation_of_breakpoint_conditions to return_zero.
9124
9125 * target.h (struct target_ops)
9126 <to_supports_evaluation_of_breakpoint_conditions>: New field.
9127 (target_supports_evaluation_of_breakpoint_conditions): New #define.
9128
9129 * breakpoint.c (get_first_locp_gte_addr): New forward declaration.
9130 (condition_evaluation_both, condition_evaluation_auto,
9131 condition_evaluation_host, condition_evaluation_target,
9132 condition_evaluation_enums, condition_evaluation_mode_1,
9133 condition_evaluation_mode): New static globals.
9134 (translate_condition_evaluation_mode): New function.
9135 (breakpoint_condition_evaluation_mode): New function.
9136 (gdb_evaluates_breakpoint_condition_p): New function.
9137 (ALL_BP_LOCATIONS_AT_ADDR): New helper macro.
9138 (mark_breakpoint_modified): New function.
9139 (mark_breakpoint_location_modified): New function.
9140 (set_condition_evaluation_mode): New function.
9141 (show_condition_evaluation_mode): New function.
9142 (bp_location_compare_addrs): New function.
9143 (get_first_location_gte_addr): New helper function.
9144 (set_breakpoint_condition): Free condition bytecode if locations
9145 has become unconditional. Call mark_breakpoint_modified (...).
9146 (condition_command): Call update_global_location_list (1) for
9147 breakpoints.
9148 (breakpoint_xfer_memory): Use is_breakpoint (...).
9149 (is_breakpoint): New function.
9150 (parse_cond_to_aexpr): New function.
9151 (build_target_condition_list): New function.
9152 (insert_bp_location): Handle target-side conditional
9153 breakpoints and call build_target_condition_list (...).
9154 (update_inserted_breakpoint_locations): New function.
9155 (insert_breakpoint_locations): Handle target-side conditional
9156 breakpoints.
9157 (bpstat_check_breakpoint_conditions): Add comment.
9158 (bp_condition_evaluator): New function.
9159 (bp_location_condition_evaluator): New function.
9160 (print_breakpoint_location): Print information on where the condition
9161 will be evaluated.
9162 (print_one_breakpoint_location): Likewise.
9163 (init_bp_location): Call mark_breakpoint_location_modified (...) for
9164 breakpoint location.
9165 (force_breakpoint_reinsertion): New functions.
9166 (update_global_location_list): Handle target-side breakpoint
9167 conditions.
9168 Reinsert locations that are already inserted if conditions have
9169 changed.
9170 (bp_location_dtor): Free agent expression bytecode.
9171 (disable_breakpoint): Call mark_breakpoint_modified (...).
9172 Call update_global_location_list (...) with parameter 1 for breakpoints.
9173 (disable_command): Call mark_breakpoint_location_modified (...).
9174 Call update_global_location_list (...) with parameter 1 for breakpoints.
9175 (enable_breakpoint_disp): Call mark_breakpoint_modified (...).
9176 (enable_command): mark_breakpoint_location_modified (...).
9177 (_initialize_breakpoint): Update documentation and add
9178 condition-evaluation breakpoint subcommand.
9179
9180 * breakpoint.h: Include ax.h.
9181 (condition_list): New data structure.
9182 (condition_status): New enum.
9183 (bp_target_info) <cond_list>: New field.
9184 (bp_location) <condition_changed, cond_bytecode>: New fields.
9185 (is_breakpoint): New prototype.
9186
9187 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
9188
9189 * remote.c (remote_state) <cond_breakpoints>: New field.
9190 (PACKET_ConditionalBreakpoints): New enum.
9191 (remote_cond_breakpoint_feature): New function.
9192 (remote_protocol_features): Add new ConditionalBreakpoints entry.
9193 (remote_supports_cond_breakpoints): New function.
9194 (_initialize_remote): Add new packet configuration for
9195 target-side conditional breakpoints.
9196
9197 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
9198
9199 * NEWS: Mention target-side conditional breakpoint support,
9200 new condition-evaluation breakpoint subcommand and remote
9201 packet extensions.
9202
9203 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
9204
9205 * breakpoint.c (bp_location_compare): Sort by pspace before sorting by
9206 number.
9207
9208 2012-02-24 Thomas Schwinge <thomas@codesourcery.com>
9209
9210 * sh-tdep.c (sh_skip_prologue): Use skip_prologue_using_sal.
9211 (after_prologue): Remove.
9212
9213 2012-02-23 Tom Tromey <tromey@redhat.com>
9214
9215 * jv-valprint.c (java_val_print): Remove dead code.
9216
9217 2012-02-23 Tristan Gingold <gingold@adacore.com>
9218
9219 * ada-tasks.c (struct ada_tasks_inferior_data): Add
9220 known_tasks_element and known_tasks_length fields.
9221 (read_known_tasks_array): Change argument type. Use pointer type
9222 and number of elements from DATA. Adjust.
9223 (read_known_tasks_list): Likewise.
9224 (get_known_tasks_addr): Remove.
9225 (ada_set_current_inferior_known_tasks_addr): Renamed to ...
9226 (ada_tasks_inferior_data_sniffer): ... this. Use symtab for element
9227 type and array length. Merge former get_known_tasks_addr code.
9228
9229 2012-02-23 Jan Kratochvil <jan.kratochvil@redhat.com>
9230
9231 PR backtrace/13716
9232 * infcmd.c (finish_forward): New variable frame_id, initialize it, use
9233 it after set_momentary_breakpoint.
9234
9235 2012-02-22 Sterling Augustine <saugustine@google.com>
9236
9237 PR 13689:
9238 * breakpoint.c (watchpoint_exp_is_constant): Add UNOP_CAST to switch.
9239
9240 2012-02-22 Gary Benson <gbenson@redhat.com>
9241
9242 * dwarf2read.c (dwarf2_read_index): Correct misspelling.
9243 (find_slot_in_mapped_hash): Likewise.
9244
9245 2012-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
9246
9247 PR build/13638
9248 * configure.ac (MAKEINFO): Replace AC_CHECK_PROG by AC_ARG_VAR.
9249 (MAKEINFOFLAGS): Replace static string by AC_ARG_VAR.
9250 * configure: Regenerate.
9251
9252 2012-02-21 Tristan Gingold <gingold@adacore.com>
9253 Pedro Alves <palves@redhat.com>
9254
9255 * ia64-tdep.c: Do not include libunwind-ia64.h.
9256 * libunwind-frame.h: Remove #ifdef HAVE_LIBUNWIND_H guard.
9257 Include libunwind-ia64.h instead of libunwind.h.
9258 * configure.ac (--with-libunwind, $enable_libunwind): Don't check
9259 for libunwind.h existence.
9260 * configure, config.in: Regenerate.
9261
9262 2012-02-21 Anton Gorenkov <xgsa@yandex.ru>
9263
9264 * c-valprint.c (c_value_print): Use value_rtti_indirect_type
9265 instead of value_rtti_target_type.
9266 * eval.c (evaluate_subexp_standard): Use value_rtti_indirect_type
9267 instead of value_rtti_target_type.
9268 * typeprint.c (whatis_exp): Use value_rtti_indirect_type instead of
9269 value_rtti_target_type.
9270 * valops.c (value_ind): Extract function readjust_indirect_value_type.
9271 (value_rtti_target_type): Rename to ...
9272 (value_rtti_indirect_type): ... here and make it indirect. Update
9273 function comment.
9274 * value.c (readjust_indirect_value_type): New function.
9275 (coerce_ref): Support for enclosing type setting for references
9276 with readjust_indirect_value_type.
9277 * value.h (readjust_value_type): New declaration.
9278 (value_rtti_target_type): Rename to ...
9279 (value_rtti_indirect_type): ... here.
9280
9281 2012-02-21 Anton Gorenkov <xgsa@yandex.ru>
9282
9283 * MAINTAINERS (Write After Approval): Add myself to the list.
9284
9285 2012-02-20 Doug Evans <dje@google.com>
9286
9287 * objfiles.c (add_to_objfile_sections): Remove outdated comments.
9288 Rename objfile_p_char parameter to objfilep.
9289 (build_objfile_section_table): Result is now void. All callers
9290 updated.
9291 * objfiles.h (struct objfile): Tweak comments, whitespace.
9292 (build_objfile_section_table): Update.
9293
9294 * elfread.c (elf_symfile_segments): Fix warning text.
9295
9296 2012-02-20 Tom Tromey <tromey@redhat.com>
9297
9298 PR gdb/13498:
9299 * dwarf2read.c (dw2_expand_symtabs_matching): Only visit a
9300 particular set of file names once.
9301 (dw2_map_symbol_filenames): Likewise.
9302
9303 2012-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
9304
9305 Code cleanup.
9306 * main.c (write_files): Remove the declaration.
9307 (external_editor_command): Move the declaration ...
9308 [GDBTK] (external_editor_command): ... here. Fix the comment.
9309
9310 2012-02-20 Tom Tromey <tromey@redhat.com>
9311
9312 * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove
9313 extraneous block.
9314
9315 2012-02-20 Tristan Gingold <gingold@adacore.com>
9316
9317 * darwin-nat.h (enum darwin_msg_state): Add comments.
9318
9319 2012-02-20 Tristan Gingold <gingold@adacore.com>
9320
9321 * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Fix jb_pc_offset
9322 value.
9323
9324 2012-20-18 Joel Brobecker <brobecker@adacore.com>
9325
9326 * breakpoint.c (watchpoint_exp_is_const): Add missing empty line
9327 between function description and implementation.
9328
9329 2012-02-17 Tom Tromey <tromey@redhat.com>
9330
9331 PR python/12070:
9332 * python/py-event.c (event_object_getset): New global.
9333 (event_object_type): Reference it.
9334 * python/py-type.c (field_object_getset): New global.
9335 (field_object_type): Reference it.
9336 * python/python-internal.h (gdb_py_generic_dict): Declare.
9337 * python/py-utils.c (gdb_py_generic_dict): New function.
9338
9339 2012-02-17 Tristan Gingold <gingold@adacore.com>
9340
9341 * solib-darwin.c (darwin_current_sos): Check magic and filetype
9342
9343 2012-02-17 Thomas Schwinge <thomas@codesourcery.com>
9344
9345 * sh-tdep.c (sh_is_renesas_calling_convention): Fix handling of
9346 TYPE_CALLING_CONVENTION annotation.
9347
9348 2012-02-16 Kevin Buettner <kevinb@redhat.com>
9349
9350 * MAINTAINERS: Add rx to target ISA section.
9351 * Makefile.in (ALL_TARGET_OBS): Add rx-tdep.o.
9352 (ALLDEPFILES): Add rx-tdep.c.
9353
9354 2012-02-16 Tom Tromey <tromey@redhat.com>
9355
9356 * symfile.c (symbol_file_add_main_1): Use inferior's
9357 symfile_flags.
9358 * solib.c (solib_read_symbols): Use inferior's symfile_flags.
9359 * linux-nat.c (linux_child_follow_fork): Set symfile_flags on
9360 inferior.
9361 * infrun.c (handle_vfork_child_exec_or_exit): Set symfile_flags on
9362 inferior.
9363 (follow_exec): Use inferior's symfile_flags.
9364 * inferior.h (struct inferior) <symfile_flags>: New field.
9365
9366 2012-02-16 Mike Frysinger <vapier@gentoo.org>
9367
9368 PR gdb/9734:
9369 * remote-sim.c (gdbsim_create_inferior): Call error() when
9370 sim_create_inferior() fails.
9371
9372 2012-02-16 Josh Matthews <josh@joshmatthews.net>
9373
9374 * machoread.c: Initialize nbr_syms to avoid warnings-as-errors failure.
9375
9376 2012-02-16 Tom Tromey <tromey@redhat.com>
9377
9378 PR c++/13653:
9379 * thread.c (struct current_thread_cleanup) <was_removable>: New
9380 field.
9381 (restore_current_thread_cleanup_dtor): Restore 'removable' field.
9382 (make_cleanup_restore_current_thread): Initialize new field.
9383
9384 2012-02-15 Kevin Buettner <kevinb@redhat.com>
9385
9386 * MAINTAINERS: Add rl78 to target ISA section.
9387 * Makefile.in (ALL_TARGET_OBS): Add rl78-tdep.o.
9388 (ALLDEPFILES): Add rl78-tdep.c.
9389 * NEWS: Mention rl78 as a new target.
9390
9391 2012-02-15 Aleksandar Ristovski <aristovski@qnx.com>
9392
9393 * frame.c (find_frame_sal): Initialize sal->pspace field from frame
9394 data.
9395 * stack.c (set_last_displayed_sal): Validate that PSPACE is not NULL.
9396
9397 2012-02-15 Tom Tromey <tromey@redhat.com>
9398
9399 PR gdb/12659:
9400 * infcmd.c (registers_info): Print just the current register's
9401 name.
9402
9403 2012-02-15 Tom Tromey <tromey@redhat.com>
9404
9405 * python/py-symbol.c (sympy_value): Use _().
9406
9407 2012-02-15 Pedro Alves <palves@redhat.com>
9408
9409 * remote.c (remote_detach_1, extended_remote_attach_1): Tweak
9410 output to be like native targets'.
9411 (remote_pid_to_str): Special case the null ptid.
9412
9413 2012-02-14 Stan Shebs <stan@codesourcery.com>
9414
9415 * NEWS: Mention enable count command.
9416 * breakpoint.h (struct breakpoint): New field enable_count.
9417 * breakpoint.c (enable_breakpoint_disp): Add count argument.
9418 (enable_breakpoint): Add arg to call.
9419 (struct disp_data): New struct.
9420 (do_enable_breakpoint_disp): Interp arg as disp_data and unpack.
9421 (do_map_enable_once_breakpoint): Create a struct and pass it.
9422 (do_map_enable_delete_breakpoint): Ditto.
9423 (do_map_enable_count_breakpoint): New function.
9424 (enable_count_command): New function.
9425 (bpstat_stop_status): Decrement enable_count.
9426 (print_one_breakpoint_location): Report enable count.
9427 (_initialize_breakpoint): Add enable count command.
9428
9429 2012-02-14 Kevin Buettner <kevinb@redhat.com>
9430
9431 * rl78-tdep.c (reggroups.h): Include.
9432 (RL78_RAW_BANK0_R0_REGNUM, RL78_RAW_BANK0_R1_REGNUM)
9433 (RL78_RAW_BANK0_R2_REGNUM, RL78_RAW_BANK0_R3_REGNUM)
9434 (RL78_RAW_BANK0_R4_REGNUM, RL78_RAW_BANK0_R5_REGNUM)
9435 (RL78_RAW_BANK0_R6_REGNUM, RL78_RAW_BANK0_R7_REGNUM)
9436 (RL78_RAW_BANK1_R0_REGNUM, RL78_RAW_BANK1_R1_REGNUM)
9437 (RL78_RAW_BANK1_R2_REGNUM, RL78_RAW_BANK1_R3_REGNUM)
9438 (RL78_RAW_BANK1_R4_REGNUM, RL78_RAW_BANK1_R5_REGNUM)
9439 (RL78_RAW_BANK1_R6_REGNUM, RL78_RAW_BANK1_R7_REGNUM)
9440 (RL78_RAW_BANK2_R0_REGNUM, RL78_RAW_BANK2_R1_REGNUM)
9441 (RL78_RAW_BANK2_R2_REGNUM, RL78_RAW_BANK2_R3_REGNUM)
9442 (RL78_RAW_BANK2_R4_REGNUM, RL78_RAW_BANK2_R5_REGNUM)
9443 (RL78_RAW_BANK2_R6_REGNUM, RL78_RAW_BANK2_R7_REGNUM)
9444 (RL78_RAW_BANK3_R0_REGNUM, RL78_RAW_BANK3_R1_REGNUM)
9445 (RL78_RAW_BANK3_R2_REGNUM, RL78_RAW_BANK3_R3_REGNUM)
9446 (RL78_RAW_BANK3_R4_REGNUM, RL78_RAW_BANK3_R5_REGNUM)
9447 (RL78_RAW_BANK3_R6_REGNUM, RL78_RAW_BANK3_R7_REGNUM): Add to
9448 beginning of register list.
9449 (RL78_BANK0_R0_REGNUM, RL78_BANK0_R1_REGNUM, RL78_BANK0_R2_REGNUM)
9450 (RL78_BANK0_R3_REGNUM, RL78_BANK0_R4_REGNUM, RL78_BANK0_R5_REGNUM)
9451 (RL78_BANK0_R6_REGNUM, RL78_BANK0_R7_REGNUM, RL78_BANK1_R0_REGNUM)
9452 (RL78_BANK1_R1_REGNUM, RL78_BANK1_R2_REGNUM, RL78_BANK1_R3_REGNUM)
9453 (RL78_BANK1_R4_REGNUM, RL78_BANK1_R5_REGNUM, RL78_BANK1_R6_REGNUM)
9454 (RL78_BANK1_R7_REGNUM, RL78_BANK2_R0_REGNUM, RL78_BANK2_R1_REGNUM)
9455 (RL78_BANK2_R2_REGNUM, RL78_BANK2_R3_REGNUM, RL78_BANK2_R4_REGNUM)
9456 (RL78_BANK2_R5_REGNUM, RL78_BANK2_R6_REGNUM, RL78_BANK2_R7_REGNUM)
9457 (RL78_BANK3_R0_REGNUM, RL78_BANK3_R1_REGNUM, RL78_BANK3_R2_REGNUM)
9458 (RL78_BANK3_R3_REGNUM, RL78_BANK3_R4_REGNUM, RL78_BANK3_R5_REGNUM)
9459 (RL78_BANK3_R6_REGNUM, RL78_BANK3_R7_REGNUM): Move these into
9460 the pseudo registers. Rearrange other pseudo registers too so
9461 that the bank registers appear at the end.
9462 (rl78_register_type): Account for the fact that the byte sized
9463 bank registers are now pseudo-registers.
9464 (rl78_register_name): Rearrange the register name array. Make
9465 initial set of raw banked registers inaccessible.
9466 (rl78_register_reggroup_p, rl78_register_sim_regno): New functions.
9467 (rl78_pseudo_register_read, rl78_pseudo_register_write): Add
9468 case for copying bytes back and forth between raw and pseudo
9469 versions of the banked registers. Update other cases to reflect
9470 the changed names.
9471 (rl78_return_value): Update to account for changed names of
9472 raw registers.
9473 (rl78_gdbarch_init): Register rl78_register_reggroup_p() and
9474 rl78_register_sim_regno().
9475
9476 2012-02-14 Kevin Buettner <kevinb@redhat.com>
9477
9478 * rl78-tdep.c (rl78_skip_prologue): Make `const' the type of
9479 the name parameter being passed to find_pc_partial_function().
9480
9481 2012-02-14 Jan Kratochvil <jan.kratochvil@redhat.com>
9482
9483 * MAINTAINERS: Step down from being ia64 target maintainer.
9484
9485 2012-02-12 Jan Kratochvil <jan.kratochvil@redhat.com>
9486
9487 * ppc-linux-nat.c (fetch_register, store_register): Fix GCC aliasing
9488 compilation warning.
9489
9490 2012-02-12 Jan Kratochvil <jan.kratochvil@redhat.com>
9491
9492 Fix crash on loaded shlibs without loaded exec_bfd.
9493 * exec.c (exec_files_info): Do not crash on NULL EXEC_BFD.
9494 (set_section_command): Replace exec_bfd by p->bfd.
9495
9496 2012-02-10 Tom Tromey <tromey@redhat.com>
9497
9498 * linespec.c (decode_line_internal): Skip symtabs_from_filename
9499 when we have a C++ qualified name.
9500
9501 2012-02-10 Pedro Alves <palves@redhat.com>
9502
9503 * inferior.c (inferior_pid_to_str): New.
9504 (print_inferior, inferior_command): Use it.
9505
9506 2012-02-10 Pedro Alves <palves@redhat.com>
9507
9508 * configure.ac (HAVE_ELF test): Put the old CFLAGS at the end of
9509 the test CFLAGS.
9510 * configure: Regenerate.
9511
9512 2012-02-10 Jan Kratochvil <jan.kratochvil@redhat.com>
9513
9514 * linespec.c (decode_line_internal): Fix comment correctness.
9515
9516 2012-02-09 Valery Khromov <valery.khromov@gmail.com>
9517
9518 PR gdb/12953
9519 * Makefile.in (HFILES_NO_SRCDIR): Add amd64bsd-nat.h.
9520 * amd64bsd-nat.c: Add support for debug registers (adapted from
9521 i386bsd-nat.c).
9522 [HAVE_PT_GETDBREGS] (amd64bsd_dr_get, amd64bsd_dr_set)
9523 (amd64bsd_dr_set_control, amd64bsd_dr_set_addr)
9524 (amd64bsd_dr_get_addr, amd64bsd_dr_get_status)
9525 (amd64bsd_dr_get_control): New functions.
9526 * amd64bsd-nat.h: New file (adapted from i386bsd-nat.h).
9527 * amd64fbsd-nat.c: Include "amd64bsd-nat.h", "i386-nat.h".
9528 [HAVE_PT_GETDBREGS] (_initialize_amd64fbsd_nat): Add hardware
9529 watchpoints initialization.
9530 * config/i386/fbsd64.mh (NATDEPFILES): Add i386-nat.o.
9531
9532 2012-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
9533
9534 * gdb-gdb.py (StructMainTypePrettyPrinter) <struct_field_img>: Print
9535 flds_bnds.fields.
9536 (StructMainTypePrettyPrinter) <bounds_img>: Print flds_bnds.bounds.
9537
9538 2012-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
9539
9540 * breakpoint.c (bp_location_compare): Fix comment. Reindent the code.
9541
9542 2012-02-08 Joel Brobecker <brobecker@adacore.com>
9543
9544 * language.h (symbol_name_cmp_ftype): Renames
9545 symbol_name_match_p_ftype.
9546 (struct language_defn)[la_get_symbol_name_cmp]: Renames
9547 la_get_symbol_name_match_p.
9548 * ada-lang.c (ada_get_symbol_name_cmp): Renames
9549 ada_get_symbol_name_match_p. Update comment.
9550 (ada_language_defn)[la_get_symbol_name_cmp]: Update value.
9551 * linespec.c (struct symbol_matcher_data)[symbol_name_cmp]:
9552 Renames symbol_name_match_p. Update field type.
9553 (iterate_name_matcher, iterate_over_all_matching_symtabs): Adjust.
9554 * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
9555 opencl-lang.c, p-lang.c: Replace "la_get_symbol_name_match_p" by
9556 "la_get_symbol_name_cmp" in comments.
9557 * language.c: Likewise.
9558
9559 2012-02-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9560
9561 * amd64-sol2-tdep.c (amd64_sol2_gregset_reg_offset): Correct
9562 %eflags offset.
9563 * i386-sol2-nat.c (amd64_sol2_gregset64_reg_offs)
9564 (amd64_sol2_gregset32_reg_offs): Likewise.
9565
9566 2012-02-08 Joel Brobecker <brobecker@adacore.com>
9567
9568 * solib-darwin.c (darwin_bfd_open): Make sure that the filename
9569 of the returned BFD is allocated by GDB.
9570
9571 2012-02-07 Tom Tromey <tromey@redhat.com>
9572
9573 PR python/12027:
9574 * python/python-internal.h (frame_object_type): Declare.
9575 * python/py-symbol.c (sympy_needs_frame): New function.
9576 (sympy_value): New function.
9577 (symbol_object_getset): Add "needs_frame".
9578 (symbol_object_methods): Add "value".
9579 * python/py-frame.c (frame_object_type): No longer static.
9580
9581 2012-02-07 Tom Tromey <tromey@redhat.com>
9582
9583 PR python/13599:
9584 * python/py-symbol.c (sympy_line): New function.
9585 (symbol_object_getset): Add "line".
9586
9587 2012-02-07 Tom Tromey <tromey@redhat.com>
9588
9589 * charset.c (find_charset_names): Check 'in' against NULL.
9590
9591 2012-02-06 Doug Evans <dje@google.com>
9592
9593 * gdbtypes.h (struct main_type): Change type of name,tag_name,
9594 and fields.name members from char * to const char *. All uses updated.
9595 (struct cplus_struct_type): Change type of fn_fieldlists.name member
9596 from char * to const char *. All uses updated.
9597 (type_name_no_tag): Update.
9598 (lookup_unsigned_typename, lookup_signed_typename): Update.
9599 * gdbtypes.c (type_name_no_tag): Change result type
9600 from char * to const char *. All callers updated.
9601 (lookup_unsigned_typename, lookup_signed_typename): Change type of
9602 name parameter from char * to const char *.
9603 * symtab.h (struct cplus_specific): Change type of demangled_name
9604 member from char * to const char *. All uses updated.
9605 (struct general_symbol_info): Change type of name and
9606 mangled_lang.demangled_name members from char * to const char *.
9607 All uses updated.
9608 (symbol_get_demangled_name, symbol_natural_name): Update.
9609 (symbol_demangled_name, symbol_search_name): Update.
9610 * symtab.c (symbol_get_demangled_name): Change result type
9611 from char * to const char *. All callers updated.
9612 (symbol_natural_name, symbol_demangled_name): Ditto.
9613 (symbol_search_name): Ditto.
9614 (completion_list_add_name): Change type of symname,sym_text,
9615 text,word parameters from char * to const char *.
9616 (completion_list_objc_symbol): Change type of sym_text,
9617 text,word parameters from char * to const char *.
9618 * ada-lang.c (find_struct_field): Change type of name parameter
9619 from char * to const char *.
9620 (encoded_ordered_before): Similarly for N0,N1 parameters.
9621 (old_renaming_is_invisible): Similarly for function_name parameter.
9622 (ada_type_name): Change result type from char * to const char *.
9623 All callers updated.
9624 * ada-lang.h (ada_type_name): Update.
9625 * buildsym.c (hashname): Change type of name parameter
9626 from char * to const char *.
9627 * buildsym.h (hashname): Update.
9628 * dbxread.c (end_psymtab): Change type of include_list parameter
9629 from char ** to const char **.
9630 * dwarf2read.c (determine_prefix): Change result type
9631 from char * to const char *. All callers updated.
9632 * f-lang.c (find_common_for_function): Change type of name, funcname
9633 parameters from char * to const char *.
9634 * f-lang.c (find_common_for_function): Update.
9635 * f-valprint.c (list_all_visible_commons): Change type of funcname
9636 parameters from char * to const char *.
9637 * gdbarch.sh (static_transform_name): Change type of name parameter
9638 and result from char * to const char *.
9639 * gdbarch.c: Regenerate.
9640 * gdbarch.h: Regenerate.
9641 * i386-sol2-tdep.c (i386_sol2_static_transform_name): Change type
9642 of name parameter from char * to const char *.
9643 * jv-lang.c (java_primitive_type_from_name): Ditto.
9644 (java_demangled_signature_length): Similarly for signature parameter.
9645 (java_demangled_signature_copy): Ditto.
9646 (java_demangle_type_signature): Ditto.
9647 * jv-lang.h (java_primitive_type_from_name): Update.
9648 (java_demangle_type_signature): Update.
9649 * objc-lang.c (specialcmp): Change type of a,b parameters
9650 from char * to const char *.
9651 * p-lang.c (is_pascal_string_type): Change type of arrayname parameter
9652 from char * to const char *. All callers updated.
9653 * p-lang.h (is_pascal_string_type): Update.
9654 * solib-frv.c (find_canonical_descriptor_in_load_object): Change type
9655 of name parameter from char * to const char *.
9656 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Ditto.
9657 * utils.c (fprintf_symbol_filtered): Ditto.
9658 * defs.h (fprintf_symbol_filtered): Update.
9659 * sparc-tdep.h (sparc_sol2_static_transform_name): Update.
9660 * stabsread.h (end_psymtab): Update.
9661 * stack.c (find_frame_funname): Change type of funname parameter
9662 from char ** to const char **.
9663 * stack.h (find_frame_funname): Update.
9664 * typeprint.c (type_print): Change type of varstring parameter
9665 from char * to const char *.
9666 * value.h (type_print): Update.
9667 * xcoffread.c (xcoff_start_psymtab): Change type of filename parameter
9668 from char * to const char *. All callers updated.
9669 (xcoff_end_psymtab): Change type of include_list parameter
9670 from char ** to const char **. All callers updated.
9671 (swap_sym): Similarly for name parameter. All callers updated.
9672 * coffread.c (patch_type): Add (char*) cast to xfree parameter.
9673 Use xstrdup.
9674 (process_coff_symbol): Use xstrdup.
9675 * stabsread.c (stabs_method_name_from_physname): Renamed from
9676 update_method_name_from_physname. Change result type from void
9677 to char *. All callers updated.
9678 (read_member_functions): In has_destructor case, store name in objfile
9679 obstack instead of malloc space. In !has_stub case, fix mem leak.
9680
9681 2012-02-06 Luca Pizzamiglio <luca.pizzamiglio@gmail.com>
9682
9683 * configure: Rebuild.
9684 * configure.ac: Put -L../bfd and -L../libiberty at the front of
9685 LDFLAGS.
9686
9687 2012-02-03 Kevin Buettner <kevinb@redhat.com>
9688
9689 * configure.tgt (rl78-*-elf): New target.
9690 * rl78-tdep.c: New file.
9691
9692 2012-02-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9693
9694 * remote.c (remote_rcmd): Use getpkt_sane to detect timeout
9695 and continue the loop. Add QUIT statement.
9696
9697 2012-02-03 Tom Tromey <tromey@redhat.com>
9698
9699 PR gdb/13596:
9700 * solib.h (gdb_bfd_lookup_symbol_from_symtab): Rename from
9701 bfd_lookup_symbol_from_symtab.
9702 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
9703 gdb_bfd_lookup_symbol_from_symtab.
9704
9705 2012-02-03 Joel Brobecker <brobecker@adacore.com>
9706
9707 * mi/mi-cmd-stack.c (list_args_or_locals): For argument symbols,
9708 use SYMBOL_LINKAGE_NAME to find the corresponding non-argument
9709 symbol. Add assertion that sym2 is never NULL.
9710
9711 2012-02-02 Doug Evans <dje@google.com>
9712
9713 * blockframe.c (find_pc_partial_function_gnu_ifunc): Change type of
9714 "name" parameter to const char ** from char **. All callers updated.
9715 (find_pc_partial_function): Ditto.
9716 (cache_pc_function_name): Change type to const char * from char *.
9717 * symtab.h ((find_pc_partial_function_gnu_ifunc): Update.
9718 (find_pc_partial_function): Update.
9719 * alpha-tdep.h (struct gdbarch_tdep, member pc_in_sigtramp): Change
9720 type of "name" parameter to const char * from char *.
9721 All uses updated.
9722 * arch-utils.c (generic_in_solib_return_trampoline): Change
9723 type of "name" parameter to const char * from char *.
9724 * arch-utils.h (generic_in_solib_return_trampoline): Update.
9725 * frv-linux-tdep.c (frv_linux_pc_in_sigtramp): Change
9726 type of "name" parameter to const char * from char *.
9727 * gdbarch.sh (in_solib_return_trampoline): Ditto.
9728 * gdbarch.c: Regenerate.
9729 * gdbarch.h: Regenerate.
9730 * hppa-hpux-tdep.c (hppa_hpux_in_solib_return_trampoline): Update.
9731 * rs6000-tdep.c (rs6000_in_solib_return_trampoline): Update.
9732 * m32r-linux-tdep.c (m32r_linux_pc_in_sigtramp): Change
9733 type of "name" parameter to const char * from char *.
9734 * skip.c (skip_function_pc): Ditto.
9735 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Ditto.
9736 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp): Update.
9737 * sparc64fbsd-tdep.c (sparc64fbsd_pc_in_sigtramp): Ditto.
9738 * sparc64nbsd-tdep.c (sparc64nbsd_pc_in_sigtramp): Ditto.
9739 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Ditto.
9740 * sparcnbsd-tdep.c (sparc32nbsd_pc_in_sigtramp): Ditto.
9741 * sparcobsd-tdep.c (sparc32obsd_pc_in_sigtramp): Ditto.
9742 * nbsd-tdep.c (nbsd_pc_in_sigtramp): Similary for "func_name".
9743 * nbsd-tdep.h (nbsd_pc_in_sigtramp): Update.
9744
9745 2012-02-02 Pedro Alves <palves@redhat.com>
9746
9747 * remote.c (remote_get_min_fast_tracepoint_insn_len): Return 0 if
9748 the current inferior has no execution. Make sure the current
9749 remote process matches gdb's current inferior.
9750
9751 2012-02-02 Tom Tromey <tromey@redhat.com>
9752
9753 PR gdb/13405:
9754 * tui/tui-win.c (parse_scrolling_args): Don't write to possibly
9755 read-only memory.
9756
9757 2012-02-02 Tom Tromey <tromey@redhat.com>
9758
9759 PR gdb/9307:
9760 * symtab.c (lookup_language_this): Set block_found.
9761
9762 2012-02-01 Tom Tromey <tromey@redhat.com>
9763
9764 PR gdb/13431:
9765 * jit.c (struct jit_inferior_data): Rewrite.
9766 (struct jit_objfile_data): New.
9767 (get_jit_objfile_data): New function.
9768 (add_objfile_entry): Update.
9769 (jit_read_descriptor): Return int. Replace descriptor_addr
9770 argument with inf_data. Update. Don't call error.
9771 (jit_breakpoint_re_set_internal): Reorder logic. Update. Look up
9772 descriptor here.
9773 (jit_inferior_init): Don't look up descriptor. Don't call error.
9774 (jit_reset_inferior_data_and_breakpoints)
9775 (jit_inferior_created_observer): Remove.
9776 (jit_inferior_exit_hook): Update.
9777 (jit_executable_changed_observer): Remove.
9778 (jit_event_handler): Update.
9779 (free_objfile_data): Reset inferior data if needed.
9780 (_initialize_jit): Update.
9781
9782 2012-02-01 Tom Tromey <tromey@redhat.com>
9783
9784 * jit.c (bfd_open_from_target_memory): Move higher in file.
9785
9786 2012-02-01 Tristan Gingold <gingold@adacore.com>
9787
9788 * libunwind-frame.c (libunwind_load): Display message if dlopen
9789 failed.
9790
9791 2012-02-01 Gary Benson <gbenson@redhat.com>
9792
9793 * symtab.h (symbol_found_callback_ftype): New typedef.
9794 (iterate_over_symbols): Use the above.
9795 * symtab.c (iterate_over_symbols): Likewise.
9796 * language.h (language_defn->la_iterate_over_symbols): Likewise.
9797 * ada-lang.c (ada_iterate_over_symbols): Likewise.
9798 * linespec.c (iterate_over_all_matching_symtabs): Likewise.
9799 (iterate_name_matcher): Document return values.
9800 (collect_one_symbol): Likewise.
9801 (collect_function_symbols): Likewise.
9802 (collect_symbols): Likewise.
9803
9804 2012-02-01 Tom Tromey <tromey@redhat.com>
9805
9806 * ada-lang.c (resolve_subexp): Update.
9807 (ada_lookup_symbol_list): Add 'full_search' argument.
9808 (ada_iterate_over_symbols): Pass 0 as full_search argument to
9809 ada_lookup_symbol_list.
9810 (ada_lookup_encoded_symbol): Update.
9811 (get_var_value): Update.
9812 * ada-exp.y (block_lookup): Update.
9813 (write_var_or_type): Update.
9814 (write_name_assoc): Update.
9815 * ada-lang.h (ada_lookup_symbol_list): Update.
9816
9817 2012-01-31 Tom Tromey <tromey@redhat.com>
9818
9819 * language.h (struct language_defn) <la_iterate_over_symbols>: Fix
9820 comment.
9821
9822 2012-01-31 Doug Evans <dje@google.com>
9823
9824 * symtab.h: Remove outdated comment.
9825 (SYMBOL_MATCHES_NATURAL_NAME): Delete.
9826
9827 2012-02-01 Josh Matthews <josh@joshmatthews.net> (tiny change)
9828
9829 Fix build error in Darwin port.
9830 * i386-darwin-nat.c: Include i386-nat.h.
9831
9832 2012-01-30 Tom Tromey <tromey@redhat.com>
9833
9834 PR breakpoints/13568:
9835 * dwarf2read.c (dwarf_decode_macro_bytes): Add 'include_hash'
9836 argument. Check for recursive includes.
9837 (dwarf_decode_macros): Create an include hash.
9838
9839 2012-01-30 Michael Eager <eager@eagercon.com>
9840
9841 * configure.tgt (powerpc-*-linux*): Add glibc-tdep.o.
9842 * ppc-linux-tdep.c: Include glibc-tdep.h.
9843 (powerpc32_plt_stub, powerpc32_plt_stub_so): Add PLT stub templates.
9844 (powerpc_linux_in_plt_stub): New function.
9845 (powerpc_linux_in_dynsym_resolve_code): New function.
9846 (ppc_skip_trampoline_code): New function.
9847 (ppc_linux_init_abi): Use PPC specific functions rather than generic.
9848 Use glibc_skip_solib_resolver.
9849
9850 2012-01-28 Jan Kratochvil <jan.kratochvil@redhat.com>
9851
9852 Code cleanup: Make 1440 bytes of data segment read-only.
9853 * arch-utils.c (endian_enum): Make it const char *const [].
9854 * arm-tdep.c (fp_model_strings, arm_abi_strings, arm_mode_strings):
9855 Likewise.
9856 * breakpoint.c (always_inserted_enums): Likewise.
9857 * cli/cli-cmds.c (script_ext_enums): Likewise.
9858 * cli/cli-decode.c (add_setshow_enum_cmd, complete_on_enum): Make the
9859 enumlist parameter const char *const *.
9860 * cli/cli-decode.h (struct cmd_list_element): Make the enums field
9861 const char *const *.
9862 * command.h (complete_on_enum, add_setshow_enum_cmd): Make the enumlist
9863 parameter const char *const *.
9864 * cris-tdep.c (cris_modes): Make it const char *const [].
9865 * filesystem.c (target_file_system_kinds): Likewise.
9866 * i386-tdep.c (valid_flavors, valid_conventions): Likewise.
9867 * infrun.c (follow_fork_mode_kind_names, follow_exec_mode_names)
9868 (can_use_displaced_stepping_enum, scheduler_enums)
9869 (exec_direction_names): Likewise.
9870 * language.c (_initialize_language): Make the type_or_range_names and
9871 case_sensitive_names variables const char *const [].
9872 * mips-tdep.c (mips_abi_strings): Make it const char *const [].
9873 * python/python.c (python_excp_enums): Likewise.
9874 * remote.c (interrupt_sequence_modes): Likewise.
9875 * rs6000-tdep.c (powerpc_vector_strings): Likewise.
9876 * serial.c (logbase_enums): Likewise.
9877 * sh-tdep.c (sh_cc_enum): Likewise.
9878 * stack.c (print_frame_arguments_choices, print_entry_values_choices):
9879 Likewise.
9880 * symtab.c (multiple_symbols_modes): Likewise.
9881 * tui/tui-win.c (tui_border_kind_enums, tui_border_mode_enums):
9882 Likewise.
9883 * utils.c (internal_problem_modes): Likewise.
9884
9885 2012-01-27 Jan Kratochvil <jan.kratochvil@redhat.com>
9886
9887 Fix the 2012-01-26 regression by la_get_symbol_name_match_p.
9888 * linespec.c (iterate_name_matcher): Negate the SYMBOL_NAME_MATCH_P
9889 result.
9890
9891 2012-01-27 Doug Evans <dje@google.com>
9892
9893 * configure.ac (with_python): Fix absolute path handling for win32.
9894 * configure: Regenerate.
9895
9896 2012-01-26 Doug Evans <dje@google.com>
9897
9898 * symtab.c: Whitespace cleanup, no code changes.
9899
9900 * symtab.c (lookup_symbol_in_language): Improve comment.
9901 (lookup_symbol_aux): Fix comment.
9902
9903 * psymtab.c (add_psymbol_to_list): Result is now "void".
9904 * psympriv.h (add_psymbol_to_list): Update.
9905
9906 * dwarf2read.c (add_partial_symbol): Delete local psym, unused.
9907
9908 2012-01-26 Jan Kratochvil <jan.kratochvil@redhat.com>
9909
9910 Do not open script filenames twice.
9911 * cli/cli-cmds.c (source_script_from_stream): Pass to
9912 source_python_script also STREAM.
9913 * python/py-auto-load.c (source_section_scripts): Pass to
9914 source_python_script_for_objfile also STREAM.
9915 (auto_load_objfile_script): Pass to source_python_script_for_objfile
9916 also INPUT.
9917 * python/python-internal.h (source_python_script_for_objfile): New
9918 parameter file, rename parameter file to filename.
9919 * python/python.c (python_run_simple_file): Call PyRun_SimpleFile
9920 instead if !_WIN32. Update the function comment.
9921 (source_python_script, source_python_script_for_objfile)
9922 (source_python_script): New parameter file, rename parameter file to
9923 filename. Pass FILENAME to python_run_simple_file.
9924 * python/python.h (source_python_script): New parameter file, rename
9925 parameter file to filename.
9926
9927 2012-01-26 Pedro Alves <palves@redhat.com>
9928
9929 * corelow.c (core_has_fake_pid): Delete.
9930 (core_close): Delete references to `core_has_fake_pid'.
9931 (add_to_thread_list): Adjust to mark the inferior's pid as fake.
9932 (core_open): Delete references to `core_has_fake_pid'.
9933 (core_pid_to_str): Adjust to check inferior->fake_pid_p instead of
9934 the removed global.
9935
9936 2012-01-26 Joel Brobecker <brobecker@adacore.com>
9937
9938 * symfile.h (struct quick_symbol_functions) [expand_symtabs_matching]:
9939 Remove language parameter from name_matcher. Adjust the comment.
9940 * symtab.c (search_symbols_name_matches, expand_partial_symbol_name):
9941 Remove language parameter.
9942 * ada-lang.c (ada_expand_partial_symbol_name): Likewise.
9943 * linespec.c (iterate_name_matcher): Likewise.
9944 * dwarf2read.c (dw2_expand_symtabs_matching): Adjust type of
9945 name_matcher. Adjust call accordingly.
9946 * psymtab.c (expand_symtabs_matching_via_partial): Likewise.
9947 (maintenance_check_symtabs): Adjust type of parameter "fun".
9948 * psymtab.h (maintenance_check_symtabs): Likewise.
9949
9950 2012-01-26 Joel Brobecker <brobecker@adacore.com>
9951
9952 * language.h (symbol_name_match_p_ftype): New typedef.
9953 (struct language_defn): Replace field la_symbol_name_compare
9954 by la_get_symbol_name_match_p.
9955 * ada-lang.c (ada_get_symbol_name_match_p): New function.
9956 (ada_language_defn): Use it.
9957 * linespec.c (struct symbol_matcher_data): New type.
9958 (iterate_name_matcher): Rewrite.
9959 (iterate_over_all_matching_symtabs): Pass a pointer to
9960 a symbol_matcher_data struct to expand_symtabs_matching
9961 instead of just the lookup name.
9962 * c-lang.c, d-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
9963 opencl-lang.c, p-lang.c, language.c: Delete field
9964 la_symbol_name_compare, and replace by NULL for new field
9965 la_get_symbol_name_match_p.
9966 * symfile.h (struct quick_symbol_functions): Update comment.
9967
9968 2012-01-25 Tom Tromey <tromey@redhat.com>
9969
9970 * breakpoint.c (bpstat_stop_status): Check 'breakpoint_at' before
9971 dereferencing.
9972
9973 2012-01-24 Tom Tromey <tromey@redhat.com>
9974
9975 PR symtab/12406:
9976 * solib.c (update_solib_list): Update the program space's
9977 added_solibs and deleted_solibs fields.
9978 * progspace.h (struct program_space) <added_solibs,
9979 deleted_solibs>: New fields.
9980 (clear_program_space_solib_cache): Declare.
9981 * progspace.c (release_program_space): Call
9982 clear_program_space_solib_cache.
9983 (clear_program_space_solib_cache): New function.
9984 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>: Call
9985 bpstat_stop_status. Use handle_solib_event.
9986 * breakpoint.c: Include gdb_regex.h.
9987 (print_solib_event): New function.
9988 (bpstat_print): Use print_solib_event.
9989 (bpstat_stop_status): Add special case for bp_shlib_event.
9990 (handle_solib_event): New function.
9991 (bpstat_what): Use handle_solib_event.
9992 (struct solib_catchpoint): New.
9993 (dtor_catch_solib, insert_catch_solib, remove_catch_solib)
9994 (breakpoint_hit_catch_solib, check_status_catch_solib)
9995 (print_it_catch_solib, print_one_catch_solib)
9996 (print_mention_catch_solib, print_recreate_catch_solib): New
9997 functions.
9998 (catch_solib_breakpoint_ops): New global.
9999 (catch_load_or_unload, catch_load_command_1)
10000 (catch_unload_command_1): New functions.
10001 (internal_bkpt_check_status): Add special case for
10002 bp_shlib_event.
10003 (internal_bkpt_print_it): Use print_solib_event.
10004 (initialize_breakpoint_ops): Initialize
10005 catch_solib_breakpoint_ops.
10006 (_initialize_breakpoint): Register "catch load" and "catch
10007 unload".
10008 * breakpoint.h (handle_solib_event): Declare.
10009 * NEWS: Add entry for "catch load" and "catch unload".
10010
10011 2012-01-24 Tom Tromey <tromey@redhat.com>
10012
10013 * ada-lang.c: Include gdb_vecs.h.
10014 * charset.c: Include gdb_vecs.h.
10015 * tracepoint.h: Include gdb_vecs.h.
10016 * gdb_vecs.h: New file.
10017
10018 2012-01-24 Pedro Alves <pedro@codesourcery.com>
10019
10020 * breakpoint.c (breakpoint_hit_catch_fork)
10021 (breakpoint_hit_catch_vfork, breakpoint_hit_catch_syscall)
10022 (breakpoint_hit_catch_exec): Make use of the `ws' argument.
10023 * infrun.c (inferior_has_forked, inferior_has_vforked)
10024 (inferior_has_execd, inferior_has_called_syscall): Delete.
10025 (handle_syscall_event): Get syscall_number from the execution
10026 control state's wait status.
10027 (wait_for_inferior): Don't clear syscall_number.
10028
10029 2012-01-24 Pedro Alves <palves@redhat.com>
10030
10031 * breakpoint.c (bpstat_check_location, bpstat_stop_status,
10032 pc_at_non_inline_function): Add `ws' parameter, and pass it down.
10033 (breakpoint_hit_catch_fork, breakpoint_hit_catch_vfork)
10034 (breakpoint_hit_catch_syscall, breakpoint_hit_catch_exec): Add
10035 `ws' parameter.
10036 (breakpoint_hit_ranged_breakpoint): Add `ws' parameter. Return
10037 false for events other than TARGET_SIGNAL_TRAP.
10038 (breakpoint_hit_watchpoint, base_breakpoint_breakpoint_hit):
10039 Add `ws' parameter.
10040 (bkpt_breakpoint_hit): Add `ws' parameter. Return false for
10041 events other than TARGET_SIGNAL_TRAP.
10042 (tracepoint_breakpoint_hit): Add `ws' parameter.
10043 * breakpoint.h (struct breakpoint_ops) <breakpoint_hit>: Add `ws'
10044 parameter.
10045 (bpstat_stop_status): Same.
10046 (pc_at_non_inline_function): Same.
10047 * infrun.c (handle_syscall_event, handle_inferior_event): Adjust
10048 to pass the current event's waitstatus to bpstat_stop_status
10049 and pc_at_non_inline_function.
10050
10051 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
10052
10053 Code cleanup.
10054 * cli/cli-cmds.c (source_script_from_stream): Never fclose STREAM.
10055 Update the function comment for it.
10056 (source_script_with_search): Call make_cleanup_fclose for STREAM.
10057 * cli/cli-script.c (script_from_file): Do not call make_cleanup_fclose
10058 for STREAM.
10059
10060 2012-01-24 Pedro Alves <palves@redhat.com>
10061
10062 * breakpoint.c (bpstat_stop_status): Moving clearing print_it
10063 outside `bs->stop' block.
10064 (bpstat_what): Rework bp_shlib_event handling.
10065 (internal_bkpt_check_status): If the breakpoint is a
10066 bp_shlib_event, then set bs->stop and bs->print if
10067 stop_on_solib_events is set.
10068
10069 2012-01-24 Gary Benson <gbenson@redhat.com>
10070
10071 Delete #if 0'd out code.
10072 * stack.c (print_frame_label_vars): Remove.
10073 (catch_info): Likewise.
10074 (_initialize_stack): Remove "info catch" command.
10075 * NEWS: Mention the above.
10076
10077 2012-01-24 Pedro Alves <palves@redhat.com>
10078
10079 * remote.c (remote_add_inferior): New `fake_pid_p' parameter. Use
10080 it.
10081 (remote_notice_new_inferior): If the remote end doesn't support
10082 the multiprocess extensions, then the PID is fake.
10083 (add_current_inferior_and_thread): New.
10084 (remote_start_remote): Use it.
10085 (extended_remote_attach_1): Adjust.
10086 (extended_remote_create_inferior_1): Use
10087 add_current_inferior_and_thread.
10088
10089 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
10090
10091 Fix watchpoints to be specific for each inferior.
10092 * breakpoint.c (watchpoint_in_thread_scope): Verify also
10093 current_program_space.
10094 * i386-nat.c (i386_inferior_data_cleanup): New.
10095 (i386_inferior_data_get): Replace variable inf_data_local by an
10096 inferior_data call.
10097 (i386_use_watchpoints): Initialize i386_inferior_data.
10098 * linux-nat.c (linux_nat_iterate_watchpoint_lwps): Use INFERIOR_PTID
10099 specific iterate_over_lwps.
10100
10101 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
10102
10103 Fix watchpoints across inferior fork.
10104 * amd64-linux-nat.c (update_debug_registers_callback): Update the
10105 comment for linux_nat_iterate_watchpoint_lwps.
10106 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
10107 linux_nat_iterate_watchpoint_lwps.
10108 (amd64_linux_prepare_to_resume): New comment on Linux kernel.
10109 * i386-linux-nat.c (update_debug_registers_callback): Update the
10110 comment for linux_nat_iterate_watchpoint_lwps.
10111 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
10112 linux_nat_iterate_watchpoint_lwps.
10113 (i386_linux_prepare_to_resume): New comment on Linux kernel.
10114 * i386-nat.c: Include inferior.h.
10115 (dr_mirror): Remove.
10116 (i386_inferior_data, struct i386_inferior_data)
10117 (i386_inferior_data_get): New.
10118 (i386_debug_reg_state): Use i386_inferior_data_get.
10119 (i386_cleanup_dregs, i386_update_inferior_debug_regs)
10120 (i386_insert_watchpoint, i386_remove_watchpoint)
10121 (i386_stopped_data_address, i386_insert_hw_breakpoint)
10122 (i386_remove_hw_breakpoint): New variable state, use
10123 i386_debug_reg_state instead of DR_MIRROR.
10124 * linux-nat.c (delete_lwp): New declaration.
10125 (num_lwps): Move here from downwards.
10126 (delete_lwp_cleanup): New.
10127 (linux_child_follow_fork): Create new child_lp, call
10128 linux_nat_new_thread and linux_nat_prepare_to_resume before calling
10129 PTRACE_DETACH.
10130 (num_lwps): Move upwards.
10131 (linux_nat_iterate_watchpoint_lwps): New.
10132 * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): New.
10133 (linux_nat_iterate_watchpoint_lwps_ftype): New declaration.
10134
10135 2012-01-24 Joel Brobecker <brobecker@adacore.com>
10136
10137 GDB 7.4 released.
10138
10139 2012-01-23 Pedro Alves <palves@redhat.com>
10140
10141 * top.c (caution): Rename to ...
10142 (confirm): ... this.
10143 (show_caution): Rename to ...
10144 (show_confirm): ... this.
10145 (quit_cover): Adjust.
10146 (init_main): Adjust.
10147 * top.h (caution): Rename to ...
10148 (confirm): ... this.
10149 * utils.c (internal_vproblem, defaulted_query): Adjust.
10150
10151 2012-01-23 Pedro Alves <palves@redhat.com>
10152
10153 * top.c (caution): Update comment.
10154 (execute_command): Don't consider the current value of `caution'.
10155
10156 2012-01-23 Jan Kratochvil <jan.kratochvil@redhat.com>
10157
10158 * cli/cli-cmds.c (find_and_open_script): Handle failure of fdopen.
10159
10160 2012-01-23 Ulrich Weigand <ulrich.weigand@linaro.org>
10161
10162 * inf-child.c: Include "gdb_stat.h" instead of <sys/stat.h>.
10163 * linux-tdep.c (linux_info_proc): Avoid ARI coding style warning.
10164 * target.c (target_fileio_pwrite): Remove buffer address from
10165 debug output.
10166 (target_fileio_pread): Likewise.
10167
10168 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
10169
10170 * NEWS: Document remote "info proc" and "generate-core-file".
10171
10172 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
10173
10174 * gdbarch.sh (find_memory_regions): New callback.
10175 * gdbarch.c, gdbarch.h: Regenerate.
10176
10177 * gcore.c (gcore_memory_sections): Try gdbarch find_memory_regions
10178 callback before falling back to target method.
10179
10180 * linux-nat.c (read_mapping, linux_nat_find_memory_regions): Remove.
10181 (linux_target_install_ops): No longer install it.
10182
10183 * linux-tdep.c (linux_find_memory_regions): New function.
10184 (linux_init_abi): Install it.
10185
10186 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
10187
10188 * gdbarch.sh (make_corefile_notes): New architecture callback.
10189 * gdbarch.c: Regenerate.
10190 * gdbarch.h: Likewise.
10191
10192 * gcore.c (write_gcore_file): Try gdbarch_make_corefile_notes
10193 before target_make_corefile_notes. If NULL is returned, the
10194 target does not support core file generation.
10195
10196 * linux-nat.c: Include "linux-tdep.h".
10197 (find_signalled_thread, find_stop_signal): Remove.
10198 (linux_nat_do_thread_registers): Likewise.
10199 (struct linux_nat_corefile_thread_data): Likewise.
10200 (linux_nat_corefile_thread_callback): Likewise.
10201 (iterate_over_spus): Likewise.
10202 (struct linux_spu_corefile_data): Likewise.
10203 (linux_spu_corefile_callback): Likewise.
10204 (linux_spu_make_corefile_notes): Likewise.
10205 (linux_nat_collect_thread_registers): New function.
10206 (linux_nat_make_corefile_notes): Replace contents by call to
10207 linux_make_corefile_notes passing linux_nat_collect_thread_registers
10208 as native-only callback.
10209
10210 * linux-tdep.h: Include "bfd.h".
10211 (struct regcache): Add forward declaration.
10212 (linux_collect_thread_registers_ftype): New typedef.
10213 (linux_make_corefile_notes): Add prototype.
10214 * linux-tdep.c: Include "gdbthread.h", "gdbcore.h", "regcache.h",
10215 "regset.h", and "elf-bfd.h".
10216 (find_signalled_thread, find_stop_signal): New functions.
10217 (linux_spu_make_corefile_notes): Likewise.
10218 (linux_collect_thread_registers): Likewise.
10219 (struct linux_corefile_thread_data): New data structure.
10220 (linux_corefile_thread_callback): New funcion.
10221 (linux_make_corefile_notes): Likewise.
10222 (linux_make_corefile_notes_1): Likewise.
10223 (linux_init_abi): Install it.
10224
10225 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
10226
10227 * gdbarch.sh (info_proc): New callback.
10228 * gdbarch.c, gdbarch.h: Regenerate.
10229
10230 * infcmd.c (info_proc_cmd_1): Try gdbarch info_proc callback
10231 before falling back to the target info_proc callback.
10232
10233 * linux-nat.c: Do not include "cli/cli-utils.h".
10234 (linux_nat_info_proc): Remove.
10235 (linux_target_install_ops): No longer install it.
10236
10237 * linux-tdep.c: Include "cli/cli-utils.h" and <ctype.h>.
10238 (read_mapping): New function.
10239 (linux_info_proc): Likewise.
10240 (linux_init_abi): Install it.
10241
10242 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
10243
10244 * defs.h (enum info_proc_what): Moved here from linux-nat.c
10245 * infcmd.c: (info_proc_cmd_1): New function.
10246 (info_proc_cmd): New function, moved here from equivalent routine
10247 orignally in linux-nat.c.
10248 (info_proc_cmd_mappings): Likewise.
10249 (info_proc_cmd_stat): Likewise.
10250 (info_proc_cmd_status): Likewise.
10251 (info_proc_cmd_cwd): Likewise.
10252 (info_proc_cmd_cmdline): Likewise.
10253 (info_proc_cmd_exe): Likewise.
10254 (info_proc_cmd_all): Likewise.
10255 (_initialize_infcmd): Install "info proc" command and subcommands.
10256
10257 * target.h (struct target_ops): Add to_info_proc.
10258 (target_info_proc): Add prototype.
10259 * target.c (target_info_proc): New function.
10260
10261 * procfs.c (procfs_info_proc): Add prototype.
10262 (info_proc_cmd): Rename into ...
10263 (procfs_info_proc): ... this. Update argument types as appropriate
10264 for a to_info_proc implementation. Handle "what" argument.
10265 (procfs_target): Install procfs_info_proc.
10266 (_initialize_procfs): No longer install "info proc" command.
10267
10268 * linux-nat.c: (enum info_proc_what): Remove.
10269 (linux_nat_info_proc_cmd_1): Rename into ...
10270 (linux_nat_info_proc): ... this. Update argument types as appropriate
10271 for a to_info_proc implementation.
10272 (linux_nat_info_proc_cmd): Remove.
10273 (linux_nat_info_proc_cmd_mappings): Likewise.
10274 (linux_nat_info_proc_cmd_stat): Likewise.
10275 (linux_nat_info_proc_cmd_status): Likewise.
10276 (linux_nat_info_proc_cmd_cwd): Likewise.
10277 (linux_nat_info_proc_cmd_cmdline): Likewise.
10278 (linux_nat_info_proc_cmd_exe): Likewise.
10279 (linux_nat_info_proc_cmd_all): Likewise.
10280 (linux_target_install_ops): Install linux_nat_info_proc.
10281 (_initialize_linux_nat): No longer install "info proc" command
10282 and subcommands.
10283
10284 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
10285
10286 * configure.ac [AC_CHECK_FUNCS]: Check for readlink.
10287 * config.in, configure: Regenerate.
10288
10289 * target.h (struct target_ops): Add to_fileio_readlink.
10290 (target_fileio_readlink): Add prototype.
10291 * target.c (target_fileio_readlink): New function.
10292
10293 * inf-child.c: Conditionally include <sys/param.h>.
10294 (inf_child_fileio_readlink): New function.
10295 (inf_child_target): Install it.
10296
10297 * remote.c (PACKET_vFile_readlink): New enum value.
10298 (remote_hostio_readlink): New function.
10299 (init_remote_ops): Install it.
10300 (_initialize_remote): Handle vFile:readlink packet type.
10301
10302 2012-01-20 Pedro Alves <palves@redhat.com>
10303 Ulrich Weigand <ulrich.weigand@linaro.org>
10304
10305 * configure.ac [AC_CHECK_FUNCS]: Check for pread and pwrite.
10306 * config.in, configure: Regenerate.
10307
10308 * target.h (struct target_ops): Add to_fileio_open, to_fileio_pwrite,
10309 to_fileio_pread, to_fileio_close, to_fileio_unlink.
10310 (target_fileio_open): Add prototype.
10311 (target_fileio_pwrite): Likewise.
10312 (target_fileio_pread): Likewise.
10313 (target_fileio_close): Likewise.
10314 (target_fileio_unlink): Likewise.
10315 (target_fileio_read_alloc): Likewise.
10316 (target_fileio_read_stralloc): Likewise.
10317
10318 * target.c: Include "gdb/fileio.h".
10319 (target_read_stralloc): Accept trailing, but not embedded NUL bytes.
10320 (default_fileio_target): New function.
10321 (target_fileio_open): Likewise.
10322 (target_fileio_pwrite): Likewise.
10323 (target_fileio_pread): Likewise.
10324 (target_fileio_close): Likewise.
10325 (target_fileio_unlink): Likewise.
10326 (target_fileio_close_cleanup): Likewise.
10327 (target_fileio_read_alloc_1): Likewise.
10328 (target_fileio_read_alloc): Likewise.
10329 (target_fileio_read_stralloc): Likewise.
10330
10331 * inf-child.c: Include "gdb/fileio.h", <sys/types.h>, <sys/stat.h>,
10332 <fcntl.h>, and <unistd.h>.
10333 (inf_child_fileio_open_flags_to_host): New function.
10334 (inf_child_errno_to_fileio_error): Likewise.
10335 (inf_child_fileio_open): Likewise.
10336 (inf_child_fileio_pwrite): Likewise.
10337 (inf_child_fileio_pread): Likewise.
10338 (inf_child_fileio_close): Likewise.
10339 (inf_child_fileio_unlink): Likewise.
10340 (inf_child_target): Install to_fileio routines.
10341
10342 * remote.c (init_remote_ops): Install to_fileio routines.
10343
10344 2012-01-20 Pedro Alves <palves@redhat.com>
10345 Ulrich Weigand <ulrich.weigand@linaro.org>
10346
10347 * remote.c (remote_multi_process_p): Only check for multi-process
10348 protocol feature, do not check for extended protocol.
10349 (remote_supports_multi_process): Check for extended protocol here.
10350 (set_general_process): Likewise.
10351 (extended_remote_kill): Likewise.
10352 (remote_pid_to_str): Likewise.
10353 (remote_query_supported): Always query multiprocess mode.
10354
10355 2012-01-20 Pedro Alves <palves@redhat.com>
10356 Ulrich Weigand <ulrich.weigand@linaro.org>
10357
10358 * inferior.h (struct inferior): Add fake_pid_p.
10359 * inferior.c (exit_inferior_1): Clear fake_pid_p.
10360 * remote.c (remote_start_remote): Set fake_pid_p if we have to use
10361 magic_null_ptid since the remote side doesn't provide a real PID.
10362
10363 2012-01-19 Tom Tromey <tromey@redhat.com>
10364
10365 * NEWS: Combine the two Python sections.
10366
10367 2012-01-19 Jan Kratochvil <jan.kratochvil@redhat.com>
10368
10369 * target.h (target_close): Update comment on the target's unpush state.
10370
10371 2012-01-19 Pedro Alves <palves@redhat.com>
10372
10373 * linux-nat.c (linux_nat_close): Call linux_nat_is_async_p and
10374 linux_nat_async directly instead of going through the target
10375 vector.
10376 * target.c (unpush_target): Close target after unpushing it, not
10377 before.
10378
10379 2012-01-19 Gary Benson <gbenson@redhat.com>
10380
10381 * mdebugread.c (sort_blocks): Replace integer constants with ones
10382 derived from FIRST_LOCAL_BLOCK.
10383
10384 2012-01-18 Paul Pluzhnikov <ppluzhnikov@google.com>
10385 Jan Kratochvil <jan.kratochvil@redhat.com>
10386
10387 PR gdb/9538
10388 * symfile.c (find_separate_debug_file): New function.
10389 (terminate_after_last_dir_separator): Likewise.
10390 (find_separate_debug_file_by_debuglink): Also try realpath.
10391 * configure.ac (AC_CHECK_FUNCS): Add lstat.
10392 * configure: Regenerate.
10393 * config.in: Regenerate.
10394
10395 2012-01-18 Doug Evans <dje@google.com>
10396
10397 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): Delete.
10398 (main.o): Remove rule.
10399 * configure.ac (BINDIR): Define with AC_DEFINE_DIR.
10400 (--with-sysroot): Rewrite.
10401 * configure: Regenerate.
10402 * config.in: Regenerate.
10403
10404 2012-01-18 Sergio Durigan Junior <sergiodj@redhat.com>
10405
10406 * parse.c (initialize_expout): New function.
10407 (reallocate_expout): Likewise.
10408 (parse_exp_in_context): Use `initialize_expout' and
10409 `reallocate_expout' when appropriate.
10410
10411 2012-01-18 Pedro Alves <palves@redhat.com>
10412
10413 * record.c (struct record_breakpoint, record_breakpoint_p)
10414 (record_breakpoints): New.
10415 (record_insert_breakpoint, record_remove_breakpoint): Manage
10416 record breakpoints list. Only remove breakpoints from the
10417 inferior if they had been inserted there in the first place.
10418
10419 2012-01-17 Doug Evans <dje@google.com>
10420
10421 * linespec.c (decode_line_internal): Don't call symtabs_from_filename
10422 if we know we don't have a file name to look for.
10423
10424 2012-01-17 Pedro Alves <palves@redhat.com>
10425
10426 * dwarf2-frame.c (dwarf2_frame_cfa): Throw NOT_AVAILABLE_ERROR, if
10427 the frame's stop reason is UNWIND_UNAVAILABLE.
10428
10429 2012-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
10430
10431 Fix compilation error.
10432 * m2-exp.y (yyerror): Use ANSI C prototype.
10433
10434 2012-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
10435
10436 * f-exp.y (parse_number): Convert prototype from K&R to ANSI C.
10437 (growbuf_by_size): Likewise.
10438 (yyerror): Likewise.
10439 * m2-exp.y (make_qualname): Remove function (was #if 0'ed).
10440 (modblock): Remove variable (was #if 0'ed).
10441 (parse_number): Convert prototype from K&R to ANSI C.
10442 (yyerror): Likewise.
10443 * objc-exp.y (parse_number): Likewise.
10444 (yyerror): Likewise.
10445 (yylex): Remove #if 0'ed code.
10446 * p-exp.y (uptok): Convert prototype from K&R to ANSI C.
10447 (yyerror): Likewise.
10448
10449 2012-01-16 Tom Tromey <tromey@redhat.com>
10450
10451 * NEWS: Add item.
10452 * symtab.h (compare_filenames_for_search): Declare.
10453 * symtab.c (compare_filenames_for_search): New function.
10454 (iterate_over_some_symtabs): Use it.
10455 * symfile.h (struct quick_symbol_functions)
10456 <map_symtabs_matching_filename>: Change spec.
10457 * psymtab.c (partial_map_symtabs_matching_filename): Use
10458 compare_filenames_for_search. Update for new spec.
10459 * dwarf2read.c (dw2_map_symtabs_matching_filename): Use
10460 compare_filenames_for_search. Update for new spec.
10461 * breakpoint.c (clear_command): Use compare_filenames_for_search.
10462
10463 2012-01-16 Tom Tromey <tromey@redhat.com>
10464
10465 PR python/13281:
10466 * gdbtypes.h (TYPE_FLAG_ENUM): New macro.
10467 (struct main_type) <flag_flag_enum>: New field.
10468 * dwarf2read.c (process_enumeration_scope): Detect "flag" enums.
10469 * NEWS: Add entries.
10470 * c-valprint.c (c_val_print) <TYPE_CODE_ENUM>: Handle "flag"
10471 enums.
10472 * python/lib/gdb/printing.py (_EnumInstance): New class.
10473 (FlagEnumerationPrinter): Likewise.
10474
10475 2012-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
10476
10477 * breakpoint.c (create_sals_from_address_default): New function.
10478 (create_breakpoints_sal_default): Likewise.
10479 (decode_linespec_default): Likewise.
10480 (is_marker_spec): Removed.
10481 (strace_marker_p): New function.
10482 (init_breakpoint_sal): Using `strace_marker_p' instead of
10483 `is_marker_spec'.
10484 (create_breakpoint): Call method `create_sals_from_address' from
10485 breakpoint_ops, replacing code that created SALs conditionally
10486 on the type of the breakpoint. Call method `create_breakpoints_sal',
10487 replacing code that created breakpoints conditionally on the type
10488 wanted.
10489 (base_breakpoint_create_sals_from_address): New function.
10490 (base_breakpoint_create_breakpoints_sal): Likewise.
10491 (base_breakpoint_decode_linespec): Likewise.
10492 (base_breakpoint_ops): Add methods
10493 `base_breakpoint_create_sals_from_address',
10494 `base_breakpoint_create_breakpoints_sal' and
10495 `base_breakpoint_decode_linespec'.
10496 (bkpt_create_sals_from_address): New function.
10497 (bkpt_create_breakpoints_sal): Likewise.
10498 (bkpt_decode_linespec): Likewise.
10499 (tracepoint_create_sals_from_address): Likewise.
10500 (tracepoint_create_breakpoints_sal): Likewise.
10501 (tracepoint_decode_linespec): Likewise.
10502 (strace_marker_create_sals_from_address): Likewise.
10503 (strace_marker_create_breakpoints_sal): Likewise.
10504 (strace_marker_decode_linespec): Likewise.
10505 (strace_marker_breakpoint_ops): New variable.
10506 (addr_string_to_sals): Remove `marker_spec'. Call method
10507 `decode_linespec' from breakpoint_ops, replacing code that decoded
10508 an address string into a SAL. Use `strace_marker_p' instead of
10509 `marker_spec'.
10510 (strace_command): Decide whether we are dealing with a static
10511 tracepoint with marker or not. Use the appropriate breakpoint_ops.
10512 (initialize_breakpoint_ops): Initialize new fields of breakpoint_ops.
10513 * breakpoint.h (linespec_result, linespec_sals): New forward
10514 declarations.
10515 (breakpoint_ops) <create_sals_from_address>,
10516 <create_breakpoints_sal>, <decode_linespec>: New methods.
10517
10518 2012-01-14 Doug Evans <dje@google.com>
10519
10520 * NEWS: Update text for "maint set python print-stack".
10521 It is deprecated in gdb 7.4 and deleted in 7.5.
10522
10523 2012-01-13 Eli Zaretskii <eliz@gnu.org>
10524
10525 * gdb_curses.h (MOUSE_MOVED) [__MINGW32__]: Undefine before
10526 including curses.h.
10527
10528 2012-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
10529
10530 * configure: Regenerate.
10531 * config.in: Regenerate.
10532
10533 2012-01-12 Keith Seitz <keiths@redhat.com>
10534
10535 PR mi/10586
10536 * varobj.c (ANONYMOUS_STRUCT_NAME): Define.
10537 (ANONYMOUS_UNION_NAME): Define.
10538 (is_path_expr_parent): New function.
10539 (get_path_expr_parent): New function.
10540 (is_anonymous_child): New function.
10541 (create_child_with_value): If the child is anonymous and without
10542 a name, assign an object name to it.
10543 (c_describe_child): Use get_path_expr_parent to determine
10544 the parent expression.
10545 If there field represents an anonymous struct or union and
10546 has no name, set an appropriate display name and expression.
10547 (cplus_describe_child): Likewise.
10548
10549 2012-01-12 Pedro Alves <palves@redhat.com>
10550
10551 * i386-tdep.c (i386_frame_cache_1): Also mark the frame base as
10552 available when %ebp is found to be zero (outermost).
10553
10554 2012-01-11 Andreas Tobler <andreast@fgznet.ch>
10555
10556 * common/gdb_assert.h (gdb_static_assert): Rename static_assert to
10557 an internal gdb_static_assert.
10558 * mi/mi-common.c: Rename static_assert to gdb_static_assert.
10559
10560 2012-01-11 Tom Tromey <tromey@redhat.com>
10561
10562 PR gdb/9598:
10563 * breakpoint.c (_initialize_breakpoint): Fix help for "catch
10564 catch" and "catch throw".
10565
10566 2012-01-11 Paul Hilfinger <hilfingr@adacore.com>
10567
10568 * blockframe.c (block_innermost_frame): Start search from selected
10569 frame, if present, or otherwise the current frame.
10570
10571 * c-exp.y (variable): Update innermost_block for
10572 'block COLONCOLON NAME' clause.
10573 * m2-exp.y (variable): Ditto.
10574 * objc-exp.y (variable): Ditto.
10575
10576 2012-01-10 Tom Tromey <tromey@redhat.com>
10577
10578 PR python/13199:
10579 * python/python.c (finish_python_initialization): Set sys.argv.
10580
10581 2012-01-10 Doug Evans <dje@google.com>
10582
10583 * dwarf2read.c (dwarf_decode_lines): Remove arg "abfd". New arg
10584 "want_line_info". All callers updated.
10585 (dwarf_decode_lines_1): New function.
10586 (handle_DW_AT_stmt_list): Add function comment.
10587 New arg "want_line_info". All callers updated.
10588 (read_file_scope,read_type_unit_scope): Move comment from
10589 handle_DW_AT_stmt_list to here.
10590
10591 2012-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
10592
10593 Fix regression after libiberty/ update for GCC PR 6057 and others.
10594 * c-exp.y (operator) <OPERATOR DELETE>
10595 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
10596 * cp-name-parser.y (fill_comp, make_operator, make_dtor)
10597 (make_builtin_type, make_name): New variable i, add gdb_assert.
10598 (operator) <OPERATOR NEW>: Update ARGS to 3.
10599 (operator) <OPERATOR DELETE>: Add trailing space.
10600 (operator) <OPERATOR NEW '[' ']'>: Update ARGS to 3.
10601 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
10602 * cp-support.c (cp_canonicalize_string): Check NULL from
10603 cp_comp_to_string, call warning and return.
10604
10605 2012-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
10606
10607 Fix duplicate .o files after omitting libbfd.a.
10608 * Makefile.in (ALL_TARGET_OBS): Remove corelow.o.
10609 (SFILES): Add corelow.c.
10610 (COMMON_OBS): Add corelow.o.
10611 (ALLDEPFILES): Remove corelow.c.
10612 * config/alpha/alpha-linux.mh (NATDEPFILES): Remove corelow.o.
10613 * config/alpha/alpha-osf3.mh: Likewise.
10614 * config/alpha/fbsd.mh: Likewise.
10615 * config/arm/nbsdaout.mh: Likewise.
10616 * config/arm/nbsdelf.mh: Likewise.
10617 * config/i386/i386gnu.mh: Likewise.
10618 * config/ia64/hpux.mh: Likewise.
10619 * config/ia64/linux.mh: Likewise.
10620 * config/m32r/linux.mh: Likewise.
10621 * config/m68k/linux.mh: Likewise.
10622 * config/mips/irix5.mh: Likewise.
10623 * config/mips/irix6.mh: Likewise.
10624 * config/pa/hpux.mh: Likewise.
10625 * config/pa/linux.mh: Likewise.
10626 * config/powerpc/aix.mh: Likewise.
10627 * config/sparc/linux.mh: Likewise.
10628 * config/sparc/linux64.mh: Likewise.
10629 * config/sparc/sol2.mh: Likewise.
10630 * config/vax/vax.mh: Likewise.
10631 * configure.tgt (alpha*-*-freebsd* alpha*-*-kfreebsd*-gnu)
10632 (alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu, alpha*-*-openbsd*)
10633 (am33_2.0*-*-linux*, arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-linux*)
10634 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-netbsd*)
10635 (hppa*-*-openbsd*, i[34567]86-*-dicos*, i[34567]86-*-freebsd*)
10636 (i[34567]86-*-kfreebsd*-gnu, i[34567]86-*-netbsd*)
10637 (i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*, i[34567]86-*-nto*)
10638 (i[34567]86-*-solaris2.1[0-9]*, x86_64-*-solaris2.1[0-9]*)
10639 (i[34567]86-*-solaris*, i[34567]86-*-linux*, i[34567]86-*-cygwin*)
10640 (i[34567]86-*-mingw32*, m68*-*-netbsd*, m68*-*-knetbsd*-gnu)
10641 (m68*-*-openbsd*, m88*-*-openbsd*, microblaze*-linux-*)
10642 (microblaze*-*-linux*, mips*-*-linux*, mips*-*-netbsd*)
10643 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
10644 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-linux*)
10645 (powerpc64-*-linux*, s390*-*-*, score-*-*, sh*-*-linux*)
10646 (sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
10647 (sparc*-*-freebsd*, sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*)
10648 (sparc-*-knetbsd*-gnu, sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu)
10649 (sparc-*-openbsd*, sparc64-*-openbsd*, tic6x-*-*linux, vax-*-netbsd*)
10650 (vax-*-knetbsd*-gnu, vax-*-openbsd*, x86_64-*-dicos*, x86_64-*-linux*)
10651 (x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu, x86_64-*-netbsd*)
10652 (x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*, xtensa*-*-linux*): Remove
10653 corelow.o from gdb_target_obs.
10654 * corefile.c (core_target): Update the comment on NULL value.
10655 (core_file_command): Replace error by gdb_assert on CORE_TARGET.
10656 * corelow.c (sniff_core_bfd): Call error instead of warning on zero
10657 MATCHES. Drop YUMMY set on NULL.
10658 (core_close): Do not call exit_inferior_silent on zero PID. Do not
10659 reclaim CORE_DATA if it is already NULL.
10660
10661 2012-01-09 Doug Evans <dje@google.com>
10662
10663 * gdbtypes.c (safe_parse_type): Initialize type to keep gcc happy.
10664 * varobj.c (varobj_set_value): Initialize val,value to keep gcc happy.
10665
10666 2012-01-09 Keith Seitz <keiths@redhat.com>
10667
10668 * breakpoint.c (wrapper.h): Don't include.
10669
10670 2012-01-09 Keith Seitz <keiths@redhat.com>
10671
10672 * Makefile.in (SFILES): Remove wrapper.c.
10673 (HFILES_NO_SRCDIR): Remove wrapper.h.
10674 (COMMON_OBS): Remove wrapper.o.
10675 * cli/cli-interp.c: Don't inlude wrapper.h.
10676 * corelow.c: Likewise.
10677 (core_open): Replace gdb_target_find_new_threads with
10678 TRY_CATCH around target_find_new_threads.
10679 * eval.c (fetch_subexp_value): Likewise for value_fetch_lazy.
10680 * gdbtypes.c (safe_parse_type): Likewise for parse_and_eval_type.
10681 * varobj.c (varobj_create): Likewise for parse_exp_1 and
10682 evaluate_expression.
10683 (varobj_set_value): Likewise for evaluate_expression and
10684 value_assign.
10685 (install_new_variable): Likewise for value_fetch_lazy.
10686 (adjust_value_for_child_access): Likewise for value_ind.
10687 (c_describe_child): Likewise for value_subscript and
10688 value_ind.
10689 (c_value_of_root): Likewise for evaluate_expression.
10690 * wrapper.c: Remove.
10691 * wrapper.h: Remove.
10692
10693 2012-01-09 Doug Evans <dje@google.com>
10694
10695 * dwarf2read.c (read_and_check_comp_unit_head): Renamed from
10696 partial_read_comp_unit_head. Replace "buffer", "buffer_size" and
10697 "abfd" args with "section". All callers updated.
10698 Error checking code moved ...
10699 (error_check_comp_unit_head): ... here. New function.
10700 (read_and_check_type_unit_head): Renamed from read_type_unit_head.
10701 Delete arg "abfd". New arg "type_offset". All callers updated.
10702 (create_debug_types_hash_table): Simplify by using
10703 read_and_check_type_unit_head.
10704
10705 * parser-defs.h (namecopy): Delete.
10706 * parse.c (namecopy, namecopy_size): Move into copy_name.
10707
10708 2012-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
10709
10710 Partially fix duplicate .o files after omitting libbfd.a.
10711 * config/alpha/alpha-osf3.mh (NATDEPFILES): Remove solib.o.
10712 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
10713 * config/i386/obsdaout.mh (NATDEPFILES): Remove solib.o.
10714 * config/m68k/nbsdaout.mh (NATDEPFILES): Remove solib.o.
10715 * config/m68k/obsd.mh (NATDEPFILES): Remove solib.o.
10716 * config/powerpc/aix.mh (NATDEPFILES): Remove xcoffread.o.
10717 * config/vax/nbsdaout.mh (NATDEPFILES): Remove solib.o.
10718
10719 2012-01-09 Pedro Alves <palves@redhat.com>
10720
10721 * MAINTAINERS: Update my email address.
10722
10723 2012-01-08 Doug Evans <dje@google.com>
10724
10725 * dwarf2read.c (dwarf2_per_objfile): Rename n_type_comp_units to
10726 n_type_units. Rename type_comp_units to all_type_units.
10727 All uses updated.
10728 (add_signatured_type_cu_to_table): Renamed from
10729 add_signatured_type_cu_to_list. All callers updated.
10730
10731 * gdbtypes.h (struct cplus_struct_type): Delete member
10732 nfn_fields_total. All uses removed.
10733
10734 2012-01-06 Doug Evans <dje@google.com>
10735
10736 * dwarf2read.c: Move FIXME from dwarf2_build_psymtabs_hard
10737 to top of file.
10738 (dwarf2_find_comp_unit): Delete.
10739 (process_psymtab_comp_unit): Make result "void".
10740 Delete args buffer, info_ptr, buffer_size, and replace with
10741 "section". All callers updated.
10742 (dwarf2_build_psymtabs_hard): Simplify.
10743
10744 2012-01-06 Sergio Durigan Junior <sergiodj@redhat.com>
10745 Thiago Jung Bauermann <bauerman@br.ibm.com>
10746
10747 * ada-lang.c (ada_exception_name_addr): Add `volatile' keyword
10748 before `struct gdb_exception'.
10749 * breakpoint.c (update_global_location_list_nothrow)
10750 (update_breakpoint_locations, enable_breakpoint_disp): Likewise.
10751 * cp-abi.c (value_rtti_type): Likewise.
10752 * cp-support.c (cp_validate_operator): Likewise.
10753 * infrun.c (insert_exception_resume_breakpoint)
10754 (check_exception_resume, keep_going): Likewise.
10755 * mi-interp.c (mi_breakpoint_created)
10756 (mi_breakpoint_modified): Likewise.
10757 * rs6000-aix-tdep.c (rs6000_convert_from_func_ptr_addr): Likewise.
10758 * solib-ia64-hpux.c (ia64_hpux_at_dld_breakpoint_p)
10759 (ia64_hpux_handle_dld_breakpoint_1): Likewise.
10760
10761 2012-01-05 Doug Evans <dje@google.com>
10762
10763 * dwarf2read.c (statement_prologue): Delete, unused.
10764
10765 * dwarf2read.c (dwarf2_per_cu_addr_size): Make result type an int.
10766 * dwarf2loc.h (dwarf2_per_cu_addr_size): Update.
10767
10768 * dwarf2read.c (comp_unit_header): Delete, unused.
10769
10770 2012-01-05 Ulrich Weigand <uweigand@de.ibm.com>
10771
10772 * configure.tgt [s390*-*-*] (gdb_target_obs): Add corelow.o.
10773 * config/s390/s390.mh (NATDEPFILES): Remove corelow.o.
10774
10775 2012-01-05 Khoo Yit Phang <khooyp@cs.umd.edu>
10776
10777 * infrun.c (normal_stop): Don't skip calling the normal_stop
10778 observers if the thread was doing a multi-step, but stopped for
10779 some reason other than stepping.
10780
10781 2012-01-05 Pedro Alves <alves.ped@gmail.com>
10782
10783 * cli/cli-decode.h: Add comments.
10784 (CMD_LIST_AMBIGUOUS): Moved to command.h
10785 (add_cmd, add_alias_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
10786 (set_cmd_cfunc, set_cmd_sfunc, set_cmd_completer, cmd_cfunc_eq)
10787 (set_cmd_context, get_cmd_context, lookup_cmd, lookup_cmd_1)
10788 (deprecate_cmd, deprecated_cmd_warning, lookup_cmd_composition)
10789 (add_com, add_com_alias, add_info, add_info_alias)
10790 (complete_on_cmdlist, complete_on_enum, help_list): Remove
10791 declarations.
10792 * command.h: Add and adjust comments.
10793 (CMD_LIST_AMBIGUOUS): Moved here.
10794 (help_cmd, help_cmd_list): Delete declarations.
10795
10796 2012-01-04 Doug Evans <dje@google.com>
10797
10798 * dwarf2read.c (dwarf2_read_abbrevs): Delete arg "abfd".
10799 All callers updated.
10800 (load_full_type_unit): Renamed from read_signatured_type_at_offset.
10801 Replace all arguments with "per_cu". All callers updated.
10802
10803 * dwarf2read.c (dwarf2_per_cu_data): Remove outdated comment.
10804
10805 * dwarf2read.c (init_one_comp_unit): Delete arg "objfile".
10806 New arg "per_cu". All callers updated.
10807
10808 Delete #if 0'd out code.
10809 * language.c (binop_result_type): Delete.
10810 (simple_type, ordered_type, same_type, integral_type): Delete.
10811 (numeric_type, character_type, string_type, boolean_type): Delete.
10812 (float_type, structured_type): Delete.
10813 * language.h: Update.
10814
10815 2012-01-04 Tom Tromey <tromey@redhat.com>
10816
10817 * python/py-value.c (valpy_binop): Initialize 'res_val'.
10818
10819 2012-01-04 Joel Brobecker <brobecker@adacore.com>
10820
10821 * corefile.c (close_exec_file): Delete.
10822 (reopen_exec_file): Remove commented out code that seems related
10823 to close_exec_file, which is being deleted here.
10824 * inferior.h (close_exec_file): Delete.
10825 * fork-child.c (fork_inferior): Remove call to fork_inferior.
10826
10827 2012-01-04 Joel Brobecker <brobecker@adacore.com>
10828
10829 * ada-lang.c: #include "cli/cli-utils.h".
10830 (get_selections): Use skip_spaces.
10831 (ada_get_next_arg): Use skip_spaces and skip_to_space.
10832 (catch_ada_exception_command_split): Use skip_spaces.
10833 (ada_decode_assert_location): Likewise.
10834
10835 2012-01-04 Joel Brobecker <brobecker@adacore.com>
10836
10837 * linespec.c (decode_line_internal): Check for C++ or Java
10838 compound constructs only if the current language is C, C++
10839 or Java.
10840
10841 2012-01-04 Jan Kratochvil <jan.kratochvil@redhat.com>
10842
10843 Revert:
10844 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10845 Joel Brobecker <brobecker@adacore.com>
10846 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
10847 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
10848 3 times.
10849 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
10850 fall through into AT_ENTRY_POINT.
10851 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
10852 DUMMY_ADDR with it.
10853 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
10854 PPC_INSN_SIZE skip to 3 times.
10855
10856 2012-01-04 Joel Brobecker <brobecker@adacore.com>
10857
10858 * linespec.c (add_minsym): Preserve function descriptors.
10859
10860 2012-01-04 Ulrich Weigand <uweigand@de.ibm.com>
10861
10862 * breakpoint.c (all_locations_are_pending): Consider locations
10863 in program spaces executing during startup pending as well.
10864
10865 2012-01-04 Joel Brobecker <brobecker@adacore.com>
10866
10867 Copyright year update in most files of the GDB Project.
10868
10869 2012-01-04 Joel Brobecker <brobecker@adacore.com>
10870
10871 * copyright.sh: Delete.
10872 * copyright.py: Rewrite.
10873
10874 2012-01-04 Joel Brobecker <brobecker@adacore.com>
10875
10876 * gnulib/extra/update-copyright: New file, imported from gnulib.
10877
10878 2012-01-04 Joel Brobecker <brobecker@adacore.com>
10879
10880 * README (Copyright and License Notices): New section.
10881
10882 2012-01-03 Tom Tromey <tromey@redhat.com>
10883
10884 PR python/12533:
10885 * python/py-value.c (valpy_dereference, valpy_get_address
10886 valpy_get_dynamic_type, valpy_lazy_string, valpy_do_cast)
10887 (valpy_getitem, valpy_call, valpy_binop, valpy_negative)
10888 (valpy_absolute, valpy_richcompare): Free intermediate values.
10889
10890 2011-01-03 Joel Brobecker <brobecker@adacore.com>
10891
10892 * ada-lang.c: Reformat the copyright notice.
10893
10894 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10895
10896 * Makefile.in (ALL_TARGET_OBS): Remove solib-target.o.
10897 * configure.tgt (arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-symbianelf*)
10898 (i[34567]86-*-dicos*, i[34567]86-*-cygwin*, i[34567]86-*-mingw32*)
10899 (x86_64-*-dicos*, x86_64-*-mingw*): Remove solib-target.o.
10900 Revert this part of:
10901 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10902 Build gdb directly from *.o files not using libgdb.a.
10903 * Makefile.in (COMMON_OBS): Remove solib-target.o.
10904
10905 2012-01-02 Joel Brobecker <brobecker@adacore.com>
10906
10907 * gdb/common/gdb_thread_db.h, gdb/dbxread.c, gdb/environ.c,
10908 gdb/gcore.h, gdb/rs6000-tdep.h, gdb/s390-nat.c, gdb/tic6x-tdep.c:
10909 Reformat the copyright header.
10910
10911 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10912
10913 Revert this part of:
10914 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10915 Remove the gdbtui binary.
10916 * gdb.c (main): Remove args.interpreter_p initialization.
10917 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
10918 * main.h (struct captured_main_args): Remove interpreter_p.
10919
10920 2012-01-02 Joel Brobecker <brobecker@adacore.com>
10921
10922 * config/djgpp/fnchange.lst: Add entry for ChangeLog-2011.
10923
10924 2012-01-02 Joel Brobecker <brobecker@adacore.com>
10925
10926 * top.c (print_gdb_version): Update copyright year.
10927
10928 2012-01-02 Yao Qi <yao@codesourcery.com>
10929
10930 * inf-ptrace.c (inf_ptrace_xfer_partial): Reindent.
10931
10932 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10933 Joel Brobecker <brobecker@adacore.com>
10934
10935 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
10936 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
10937 3 times.
10938 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
10939 fall through into AT_ENTRY_POINT.
10940 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
10941 DUMMY_ADDR with it.
10942 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
10943 PPC_INSN_SIZE skip to 3 times.
10944
10945 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10946
10947 * amd64-linux-nat.c (update_debug_registers_callback): New comment on
10948 the return value.
10949 * i386-linux-nat.c (update_debug_registers_callback): Likewise.
10950
10951 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10952
10953 Build gdb directly from *.o files not using libgdb.a.
10954 * Makefile.in (SUBDIR_TUI_OBS): Remove duplicate tui.o.
10955 (COMMON_OBS): Remove solib-target.o.
10956 (LIBGDB_OBS, libgdb.a): Move it before the gdb$(EXEEXT) rule.
10957 (gdb$(EXEEXT)): Replace libgdb.a with $(LIBGDB_OBS).
10958 (LIBGDB_OBS, libgdb.a): Move it above.
10959 * configure.tgt (alpha*-*-linux*, alpha*-*-freebsd*)
10960 (alpha*-*-kfreebsd*-gnu, alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu)
10961 (alpha*-*-openbsd*, am33_2.0*-*-linux*, arm*-wince-pe)
10962 (arm*-*-mingw32ce*, arm*-*-linux*, arm*-*-netbsd*, arm*-*-knetbsd*-gnu)
10963 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-linux*)
10964 (hppa*-*-netbsd*, hppa*-*-openbsd*, i[34567]86-*-darwin*)
10965 (i[34567]86-*-dicos*, i[34567]86-*-freebsd*, i[34567]86-*-kfreebsd*-gnu)
10966 (i[34567]86-*-netbsd*, i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*)
10967 (i[34567]86-*-nto*, i[34567]86-*-solaris2.1[0-9]*)
10968 (x86_64-*-solaris2.1[0-9]*, i[34567]86-*-solaris*, i[34567]86-*-linux*)
10969 (i[34567]86-*-gnu*, ia64-*-linux*, m32r*-*-linux*, m68*-*-linux*)
10970 (m68*-*-netbsd*, m68*-*-knetbsd*-gnu, m68*-*-openbsd*)
10971 (microblaze*-linux-*, microblaze*-*-linux*, mips*-sgi-irix5*)
10972 (mips*-sgi-irix6*, mips*-*-linux*, mips*-*-netbsd*)
10973 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
10974 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-aix*, rs6000-*-*)
10975 (powerpc-*-linux*, powerpc64-*-linux*, powerpc*-*-*, s390*-*-*)
10976 (sh*-*-linux*, sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
10977 (sparc-*-linux*, sparc64-*-linux*, sparc*-*-freebsd*)
10978 (sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*, sparc-*-knetbsd*-gnu)
10979 (sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu, sparc-*-openbsd*)
10980 (sparc64-*-openbsd*, sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*)
10981 (sparc-*-solaris2*, sparcv9-*-solaris2*, sparc64-*-solaris2*)
10982 (vax-*-netbsd*, vax-*-knetbsd*-gnu, x86_64-*-darwin*, x86_64-*-dicos*)
10983 (x86_64-*-linux*, x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu)
10984 (x86_64-*-netbsd*, x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*)
10985 (xtensa*-*-linux*, xtensa*): Remove solib.o from gdb_target_obs.
10986
10987 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10988
10989 Remove the gdbtui binary.
10990 * .gitignore (/gdbtui): Remove.
10991 * Makefile.in (TUI): Remove.
10992 (SUBDIR_TUI_OBS): Remove tui-main.o.
10993 (SUBDIR_TUI_SRCS): Remove tui/tui-main.c.
10994 (all-tui, install-tui, uninstall-tui, $(TUI)$(EXEEXT), clean-tui)
10995 (tui-main.o): Remove.
10996 (all_object_files): Remove tui-main.o.
10997 * NEWS: New note for the gdbtui removal.
10998 * configure: Rebuilt.
10999 * configure.ac: No longer add all-tui, clean-tui, install-tui and
11000 uninstall-tui to CONFIG_ALL, CONFIG_CLEAN, CONFIG_INSTALL and
11001 CONFIG_UNINSTALL respectively.
11002 * gdb.c (main): Remove args.interpreter_p initialization.
11003 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
11004 * main.h (struct captured_main_args): Remove interpreter_p.
11005 * tui/tui-main.c: Remove.
11006
11007 2012-01-01 Doug Evans <dje@google.com>
11008
11009 * dwarf2read.c (dwarf2_compute_name): Simplify objfile references.
11010 (dwarf2_physname, read_import_statement): Ditto.
11011 (read_call_site_scope, dwarf2_record_block_ranges): Ditto.
11012 (process_structure_scope read_subroutine_type): Ditto.
11013 (read_typedef, load_partial_dies, read_partial_die): Ditto.
11014 (find_partial_die, dwarf_decode_lines, lookup_die_type): Ditto.
11015 (dwarf2_fetch_die_location_block): Ditto.
11016 (dwarf_decode_macros, dwarf2_symbol_mark_computed): Ditto.
11017
11018 * dwarf2read.c (read_signatured_type): Delete `objfile' arg.
11019 All callers updated.
11020 (load_full_comp_unit, queue_comp_unit, process_queue): Ditto.
11021 (dw2_do_instantiate_symtab, dw2_instantiate_symtab): Ditto.
11022 (process_psymtab_comp_unit, load_partial_comp_unit): Ditto.
11023
11024 * dwarf2read.c (load_cu): Move assert to more useful location.
11025
11026 * dwarf2read.c (free_heap_comp_unit): Renamed from free_one_comp_unit.
11027 All callers updated.
11028
11029 * dwarf2read.c (dwarf2_per_objfile): Add comment.
11030 (dwarf2_elf_names): Minor reformat.
11031 (dwarf2_per_cu_data): Tweak comment.
11032 (dwarf2_read_section): Fix comment.
11033 (create_all_comp_units): Fix comment.
11034 (load_full_comp_unit): Fix comment.
11035 (process_full_comp_unit): Fix comment.
11036 (read_signatured_type): Fix comment.
11037
11038 For older changes see ChangeLog-2011.
11039 \f
11040 Local Variables:
11041 mode: change-log
11042 left-margin: 8
11043 fill-column: 74
11044 version-control: never
11045 coding: utf-8
11046 End:
This page took 0.251908 seconds and 5 git commands to generate.