off-by-one max exponent computation in convert_doublest_to_floatformat
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2012-10-24 Joel Brobecker <brobecker@adacore.com>
2
3 * doublest.c (convert_doublest_to_floatformat): Fix comparison
4 against maximum exponent value.
5
6 2012-10-24 Joel Brobecker <brobecker@adacore.com>
7
8 * ada-lang.h (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Add entry for
9 "unwind-seh.c".
10
11 2012-10-24 Joel Brobecker <brobecker@adacore.com>
12
13 * ada-lang.c (ada_template_to_fixed_record_type_1): Do not
14 strip typedef layer when computing the fixed type's field type,
15 only when computing its size.
16
17 2012-10-24 Mark Kettenis <kettenis@gnu.org>
18
19 PR gdb/12783
20 * i386-tdep.c (i386_return_value): Handle complex double and long
21 double.
22
23 2012-10-24 Joel Brobecker <brobecker@adacore.com>
24
25 * windows-nat.c (windows_create_inferior) [!__CYGWIN__]:
26 New local variable args_len.
27 Quote the name of the executable when computing the command line.
28
29 2012-10-23 Mark Kettenis <kettenis@gnu.org>
30
31 PR gdb/12796
32 PR gdb/12798
33 PR gdb/12800
34 * amd64-tdep.h (enum amd64_regnum): Add AMD64_ST1_REGNUM and
35 AMD64_FTAG_REGNUM.
36 * amd64-tdep.c (amd64_classify): Classify complex types.
37 (amd64_return_value): Handle the COMPLEX_X87 class.
38
39 2012-10-23 Joel Brobecker <brobecker@adacore.com>
40
41 * rs6000-aix-tdep.c (rs6000_aix_auto_wide_charset): New function.
42 (rs6000_aix_init_osabi): Set auto_wide_charset gdbarch method.
43
44 2012-10-23 Joel Brobecker <brobecker@adacore.com>
45
46 * amd64-windows-tdep.c (amd64_windows_auto_wide_charset): New
47 function.
48 (amd64_windows_init_abi): Set auto_wide_charset gdbarch method
49 to amd64_windows_auto_wide_charset.
50
51 2012-10-23 Yao Qi <yao@codesourcery.com>
52
53 * event-top.c (mark_async_signal_handler_wrapper): Remove.
54 * event-top.h: Remove its declaration.
55 (async_request_quit): Call mark_async_signal_handler instead of
56 mark_async_signal_handler_wrapper.
57 (async_do_nothing, async_disconnect): Likewise.
58 (async_stop_sig): Likewise.
59 * remote.c (handle_remote_sigint): Likewise.
60 (handle_remote_sigint_twice): Likewise.
61
62 2012-10-23 Yao Qi <yao@codesourcery.com>
63
64 * event-top.c (sigint_token, sighup_token): Replace 'void *'
65 with 'static struct async_signal_handler *'.
66 (sighup_token, sigquit_token, sigstp_token): Likewise.
67
68 2012-10-22 Ali Anwar <ali_anwar@codesourcery.com>
69
70 * gdbarch.sh (function_list): Use 'pstring' when printing
71 a variable which could return NULL.
72 * gdbarch.c: Regenerate.
73
74 2012-10-10 Joel Brobecker <brobecker@adacore.com>
75 Tom Tromey <tromey@redhat.com>
76
77 * rs6000-aix-tdep.c (rs6000_aix_osabi_sniffer): Replace
78 inneffective if condition by gdb assertion. Add function
79 description comment.
80
81 2012-10-19 Joel Brobecker <brobecker@adacore.com>
82
83 * parser-defs.h (struct exp_descriptor): Document constraint
84 on return value for "op_name" callbacks.
85
86 2012-10-18 Tom Tromey <tromey@redhat.com>
87
88 * tracepoint.c (print_one_static_tracepoint_marker): Constify.
89 * symtab.c (iterate_over_some_symtabs): Constify.
90 * source.h (symtab_to_fullname): Return 'const char *'.
91 * source.c (symtab_to_fullname): Return 'const char *'.
92 * python/py-symtab.c (stpy_fullname): Constify.
93 * cli/cli-cmds.c (edit_command): Constify.
94 * breakpoint.c (print_breakpoint_location)
95 (update_static_tracepoint): Constify.
96
97 2012-10-18 Tom Tromey <tromey@redhat.com>
98
99 * breakpoint.c (compare_breakpoints): Fix comparison.
100
101 2012-10-18 Tom Tromey <tromey@redhat.com>
102
103 * valprint.c (generic_emit_char, generic_printstr): Pass size of
104 gdb_wchar_t to convert_between_encodings.
105
106 2012-10-17 Yao Qi <yao@codesourcery.com>
107
108 * breakpoint.c (invalidate_bp_value_on_memory_change): Add one
109 more parameter 'inferior'.
110 * corefile.c (write_memory_with_notification): Caller update.
111
112 * mi/mi-cmd-var.c: Include "mi-main.h".
113 (mi_cmd_var_assign): Set mi_suppress_notification.data_write_memory
114 to 1 and restore it later.
115 * mi/mi-cmds.c (mi_cmd mi_cmds): Update for "data-write-memory"
116 and "data-write-memory-bytes.
117 * mi/mi-interp.c: Include objfiles.h.
118 (mi_interpreter_init): Call observer_attach_memory_changed.
119 (mi_memory_changed): New.
120 * mi/mi-main.h (struct mi_suppress_notification) <memory>:
121 New field.
122
123 * NEWS: Mention new MI notification "memory-changed".
124
125 2012-10-16 Jan Kratochvil <jan.kratochvil@redhat.com>
126
127 * dwarf2loc.c (dwarf_expr_reg_to_entry_parameter): Remove comment.
128
129 2012-10-15 Doug Evans <dje@google.com>
130
131 New option -nh: inhibit loading of ~/.gdbinit.
132 * NEWS: Mention -nh.
133 * main.c (captured_main): Recognize and process -nh.
134 (print_gdb_help): Mention -nh.
135 * gdb.1: Mention -nh. Remove erroneous docs on -nx behavior.
136
137 2012-10-15 H.J. Lu <hongjiu.lu@intel.com>
138
139 PR backtrace/14646
140 PR gdb/14647
141 * i386-tdep.h (gdbarch_tdep): Remove sp_regnum_from_eax and
142 pc_regnum_from_eax.
143 * i386-tdep.c (i386_gdbarch_init): Don't use sp_regnum_from_eax
144 nor pc_regnum_from_eax.
145 * amd64-tdep.c (amd64_x32_init_abi): Don't set sp_regnum_from_eax
146 nor pc_regnum_from_eax.
147
148 2012-10-15 Jan Kratochvil <jan.kratochvil@redhat.com>
149
150 Fix entry values resolving in inlined frames.
151 * dwarf2loc.c (dwarf_expr_reg_to_entry_parameter): Move func_addr,
152 gdbarch and caller_frame initialization later. Skip INLINE_FRAME
153 entries of FRAME.
154
155 2012-10-15 Joel Brobecker <brobecker@adacore.com>
156
157 * configure.ac: Build with -DMS_WIN64 if building with Python
158 enabled using GCC on amd64-windows.
159 * configure: Regenerate.
160
161 2012-10-15 Tom Tromey <tromey@redhat.com>
162
163 PR python/14635:
164 * python/py-symtab.c (del_objfile_sal): Set 'symtab' field
165 to Py_None.
166
167 2012-10-15 Tom Tromey <tromey@redhat.com>
168
169 PR python/14634:
170 * python/py-symbol.c (sympy_dealloc): Check for NULL symbol.
171
172 2012-10-11 Andrew Burgess <aburgess@broadcom.com>
173
174 * remote-sim.c (gdbsim_create_inferior): Call init_thread_list to
175 reset thread numbering back to 1.
176
177 2012-10-11 Doug Evans <dje@google.com>
178
179 PR breakpoints/14643.
180 * linespec.c (struct ls_parser): New member keyword_ok.
181 (linespec_lexer_lex_string): Add comment.
182 (linespec_lexer_lex_one): Ignore keywords if it's the wrong place
183 for one.
184 (parse_linespec): Set keyword_ok.
185
186 2012-10-10 Doug Evans <dje@google.com>
187
188 * dwarf2read.c (process_psymtab_comp_unit_reader): Remove duplicate
189 "0x" prefix on address in log message.
190
191 * dwarf2read.c (read_1_byte): Add const to buf parameter.
192 (read_1_signed_byte, read_2_bytes, read_2_signed_bytes): Ditto.
193 (read_4_bytes, read_4_signed_bytes, read_8_bytes): Ditto.
194 (lookup_dwo_file): Add const to dwo_name parameter.
195 (lookup_dwo_comp_unit, lookup_dwo_type_unit): Ditto.
196
197 2012-10-06 Jan Kratochvil <jan.kratochvil@redhat.com>
198
199 Fix crash during stepping on ppc32.
200 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code): Test NULL
201 SYM.
202
203 2012-10-03 Doug Evans <dje@google.com>
204
205 PR symtab/14601
206 * buildsym.c (buildsym_init): Reset using_directives to NULL.
207
208 2012-10-02 Andrew Burgess <aburgess@broadcom.com>
209
210 * remote-sim.c (dump_mem): Always dump buffer contents, zero fill
211 output and use uint32_t not long to ensure 4 byte size.
212
213 2012-10-02 Joel Brobecker <brobecker@adacore.com>
214
215 * rs6000-nat.c (add_vmap): Set "last" to "next" after having
216 unref'ed it.
217
218 2012-10-01 Andrew Burgess <aburgess@broadcom.com>
219
220 * target.c (simple_search_memory): Include access length in
221 warning message.
222
223 2012-09-28 Nathan Miller <nathanm2@us.ibm.com>
224 Edjunior Machado <emachado@linux.vnet.ibm.com>
225
226 PR gdb/13989
227 * solib.c (solib_find): Prevent GDB from loading native libraries when
228 debugging a cross-target corefile.
229
230 2012-09-28 selven <pcthegreat@gmail.com>
231
232 Make definition match declaration.
233
234 * regcache.c (regcache_register_status): Change return type to
235 enum register_status.
236
237 2012-09-28 Yao Qi <yao@codesourcery.com>
238
239 * mi/mi-main.c (mi_cmd_data_write_memory): Call
240 write_memory_with_notification instead of write_memory.
241 (mi_cmd_data_write_memory_bytes): Call write_memory_with_notification
242 instead of target_write_memory.
243
244 2012-09-28 Yao Qi <yao@codesourcery.com>
245
246 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Emit error
247 when the length of content is not an even number.
248
249 2012-09-27 Tom Tromey <tromey@redhat.com>
250
251 Fix https://bugzilla.redhat.com/show_bug.cgi?id=849357
252 * cp-valprint.c (cp_print_value_fields): Use get_vptr_fieldno.
253
254 2012-09-27 Joel Brobecker <brobecker@adacore.com>
255
256 * sol-thread.c (sol_thread_fetch_registers)
257 (sol_thread_store_registers): Delete commented out code.
258
259 2012-09-27 Joel Brobecker <brobecker@adacore.com>
260
261 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
262 Move these functions to sparc-sol-thread.c.
263 * sparc-sol-thread.c: New file.
264 * configure.ac: Add sparc-sol-thread.o to CONFIG_OBS and
265 sparc-sol-thread.c to CONFIG_SRCS for sparc-solaris native
266 configurations.
267 * configure: Regenerate.
268
269 2012-09-27 Joel Brobecker <brobecker@adacore.com>
270
271 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
272 Remove commented-out code.
273
274 2012-09-27 Joel Brobecker <brobecker@adacore.com>
275
276 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
277 Enable this code for sparc hosts only.
278
279 2012-09-27 Joel Brobecker <brobecker@adacore.com>
280
281 * procfs.h (procfs_find_LDT_entry): Add declaration.
282 * sol-thread.c (ps_lgetLDT): Delete local declaration of
283 function procfs_find_LDT_entry.
284
285 2012-09-27 Joel Brobecker <brobecker@adacore.com>
286
287 * procfs.c (proc_get_LDT_entry): Make static.
288
289 2012-09-27 Joel Brobecker <brobecker@adacore.com>
290
291 * procfs.c (proc_find_memory_regions): Fix declaration.
292
293 2012-09-27 Siddhesh Poyarekar <siddhesh@redhat.com>
294
295 * amd64-tdep.c (amd64_return_value): Revert previous change
296 that used TYPE_LENGTH directly.
297 * bfin-tdep.c (bfin_extract_return_value): Likewise.
298 (bfin_store_return_value): Likewise.
299 * cris-tdep.c (cris_store_return_value): Likewise.
300 (cris_extract_return_value): Likewise.
301 * h8300-tdep.c (h8300_extract_return_value): Likewise.
302 * hppa-tdep.c (hppa64_return_value): Likewise.
303 * lm32-tdep.c (lm32_store_return_value): Likewise.
304 * microblaze-tdep.c (microblaze_store_return_value): Likewise.
305 * spu-tdep.c (spu_value_from_register): Likewise.
306 * vax-tdep.c (vax_return_value): Likewise.
307
308 2012-09-27 Siddhesh Poyarekar <siddhesh@redhat.com>
309
310 * gdbtypes.c (lookup_array_range_type): Expand parameters
311 LOW_BOUND and HIGH_BOUND to LONGEST.
312 (lookup_string_range_type): Likewise.
313 * gdbtypes.h (lookup_array_range_type): Likewise.
314 (lookup_string_range_type): Likewise.
315 * valops.c (value_cstring): Expand parameter LEN to ssize_t.
316 Expand HIGHBOUND to ssize_t.
317 (value_string): Likewise.
318 * value.h (value_cstring): Expand parameter LEN to ssize_t.
319 (value_string): Likewise.
320
321 2012-09-27 Yao Qi <yao@codesourcery.com>
322
323 PR breakpoints/13898
324 * breakpoint.h (tracepoint_breakpoint_ops): Forward declaration.
325 * mi/mi-cmd-break.c (mi_cmd_break_insert): Set breakpoint_ops
326 per breakpoint type.
327
328 2012-09-26 Pierre Muller <muller@ics.u-strasbg.fr>
329
330 * procfs.c: Add gdb_bfd header.
331 * rs6000-nat.c: Likewise.
332 * solib-pa64.c: Likewise.
333 * spu-linux-nat.c: Likewise.
334 * windows-nat.c: Likewise.
335
336 2012-09-26 Tom Tromey <tromey@redhat.com>
337
338 * f-lang.h (BLANK_COMMON_NAME_LOCAL): Remove.
339
340 2012-09-26 Tom Tromey <tromey@redhat.com>
341
342 * dwarf2read.c (mark_common_block_symbol_computed): New function.
343 (read_common_block): Handle child DIEs with
344 DW_AT_data_member_location.
345 (new_symbol_full): Add special case for common blocks.
346
347 2012-09-26 Jan Kratochvil <jan.kratochvil@redhat.com>
348 Tom Tromey <tromey@redhat.com>
349
350 * dwarf2read.c (read_common_block): Rewrite.
351 (new_symbol_full): Handle DW_TAG_common_block.
352 * f-lang.c (head_common_list, find_common_for_function):
353 Remove.
354 * f-lang.h (struct common_entry, struct saved_f77_common,
355 SAVED_F77_COMMON, SAVED_F77_COMMON_PTR, COMMON_ENTRY,
356 COMMON_ENTRY_PTR, head_common_list, find_common_for_function,
357 BLANK_COMMON_NAME_LOCAL): Remove.
358 (struct common_block): New.
359 * f-valprint.c (list_all_visible_commons): Remove.
360 (info_common_command_for_block): New function.
361 (info_common_command): Use it.
362 * stack.c (iterate_over_block_locals): Special case for
363 COMMON_BLOCK_DOMAIN.
364 * symtab.h (enum domain_enum_tag) <COMMON_BLOCK_DOMAIN>: New
365 constant.
366 (struct general_symbol_info) <value.common_block>: New field.
367 (SYMBOL_VALUE_COMMON_BLOCK): New define.
368
369 2012-09-26 Jan Kratochvil <jan.kratochvil@redhat.com>
370 Tom Tromey <tromey@redhat.com>
371
372 * f-lang.c (allocate_saved_bf_node,
373 allocate_saved_function_node, allocate_saved_f77_common_node,
374 allocate_common_entry_node, tail_common_list, current_common,
375 saved_bf_list, saved_bf_list_end, current_head_bf_list,
376 tmp_bf_ptr, add_common_block, add_common_entry,
377 find_first_common_named, patch_common_entries,
378 patch_all_commons_by_name, ADD_BF_SYMNUM, clear_bf_list,
379 global_remote_debug, get_bf_for_fcn, saved_function_list,
380 saved_function_list_end, clear_function_list, struct saved_fcn,
381 struct saved_bf_symnum, SAVED_FUNCTION, SAVED_FUNCTION_PTR,
382 SAVED_BF, SAVED_BF_PTR): Remove.
383 * f-lang.h (tail_common_list, current_common,
384 UNINITIALIZED_SECNUM, COMMON_NEEDS_PATCHING,
385 BLANK_COMMON_NAME_ORIGINAL, BLANK_COMMON_NAME_MF77,
386 DEFAULT_UPPER_BOUND, DEFAULT_LOWER_BOUND, real_main_name,
387 real_main_c_value): Remove.
388 * f-valprint.c (there_is_a_visible_common_named): Remove.
389
390 2012-09-26 Andrew Burgess <aburgess@broadcom.com>
391
392 * breakpoint.c (update_global_location_list): Ignore previous
393 duplicate status of a breakpoint when starting a new scan for
394 duplicate breakpoints.
395
396 2012-09-26 Karthik Bhat <kv.bhat@samsung.com>
397 PR breakpoints/14419
398 * arm-tdep.c (arm_skip_prologue): Extending producer check to
399 support LLVM compiler.
400
401 2012-09-26 Siddhesh Poyarekar <siddhesh@redhat.com>
402
403 * amd64-tdep.c (amd64_return_value): Use TYPE_LENGTH directly.
404 * bfin-tdep.c (bfin_extract_return_value): Likewise.
405 (bfin_store_return_value): Likewise.
406 * cris-tdep.c (cris_store_return_value): Likewise.
407 (cris_extract_return_value): Likewise.
408 * h8300-tdep.c (h8300_extract_return_value): Likewise.
409 * hppa-tdep.c (hppa64_return_value): Likewise.
410 * lm32-tdep.c (lm32_store_return_value): Likewise.
411 * microblaze-tdep.c (microblaze_store_return_value): Likewise.
412 * spu-tdep.c (spu_value_from_register): Likewise.
413 * vax-tdep.c (vax_return_value): Likewise.
414
415 2012-09-26 Siddhesh Poyarekar <siddhesh@redhat.com>
416
417 * breakpoint.c (invalidate_bp_value_on_memory_change): Expand
418 parameter LEN to ssize_t.
419
420 2012-09-25 Siddhesh Poyarekar <siddhesh@redhat.com>
421
422 * ada-valprint.c (ada_val_print_1): Eliminate single-use
423 variable LEN.
424 * alpha-tdep.c (alpha_extract_return_value): Use TYPE_LENGTH
425 directly.
426 (alpha_store_return_value): Likewise.
427 * amd64-tdep.c (amd64_classify_aggregate): Likewise.
428 (amd64_push_arguments): Likewise.
429 * ax-gdb.c (gen_trace_static_fields): Likewise.
430 (gen_traced_pop): Likewise.
431 * bfin-tdep.c (bfin_push_dummy_call): Likewise.
432 * breakpoint.c (update_watchpoint): Likewise.
433 * findcmd.c (parse_find_args): Use local variable for type
434 instead of length.
435 * findvar.c (default_read_var_value): Use TYPE_LENGTH directly.
436 * h8300-tdep.c (h8300h_extract_return_value): Likewise.
437 (h8300_store_return_value): Likewise.
438 * i386-darwin-tdep.c (i386_darwin_push_dummy_call): Likewise.
439 Use i386_darwin_arg_type_alignment directly.
440 * infcall.c (call_function_by_hand): Use TYPE_LENGTH directly.
441 * lm32-tdep.c (lm32_push_dummy_call): Likewise.
442 * m68hc11-tdep.c (m68hc11_push_dummy_call): Likewise.
443 (m68hc11_extract_return_value): Likewise.
444 * mep-tdep.c (mep_push_dummy_call): Likewise.
445 * printcmd.c (float_type_from_length): Likewise.
446 * s390-tdep.c (s390_value_from_register): Likewise.
447 * stack.c (read_frame_arg): Likewise.
448 * tracepoint.c (encode_actions_1): Likewise.
449 * valops.c (value_fetch_lazy): Use local variable for type
450 instead of length. Use TYPE_LENGTH directly.
451 * value.c (value_contents_equal): Use TYPE_LENGTH directly.
452
453 2012-09-25 Joel Brobecker <brobecker@adacore.com>
454
455 * symtab.c (skip_prologue_sal): Fix typo in comment.
456
457 2012-09-25 Joel Brobecker <brobecker@adacore.com>
458
459 * linespec.c (create_sals_line_offset): Fix typo in comment.
460
461 2012-09-25 Siddhesh Poyarekar <siddhesh@redhat.com>
462
463 * c-typeprint.c (c_type_print_varspec_suffix): Remove cast and
464 use plongest to print the array size.
465
466 2012-09-24 Siddhesh Poyarekar <siddhesh@redhat.com>
467
468 * m2-typeprint.c (m2_enum): Expand LASTVAL to LONGEST.
469 * p-valprint.c (pascal_type_print_base): Likewise.
470
471 2012-09-22 Yao Qi <yao@codesourcery.com>
472
473 * remote.c (remote_get_trace_status): Remove setting default
474 values of fields of 'ts'.
475
476 2012-09-21 Jan Kratochvil <jan.kratochvil@redhat.com>
477
478 Fix internal error on canonicalization of clang types.
479 * cp-name-parser.y (operator): New comment at make_operator call for
480 new, delete, new[] and delete[].
481 (exp): Use "sizeof ". Add new comment at make_operator call.
482
483 2012-09-21 Jan Kratochvil <jan.kratochvil@redhat.com>
484
485 Fix disassemble without parameters in tailcall frame.
486 * cli/cli-cmds.c (disassemble_current_function): Use
487 get_frame_address_in_block.
488
489 2012-09-21 Tom Tromey <tromey@redhat.com>
490
491 * c-typeprint.c (c_type_print_base) <TYPE_CODE_STRUCT,
492 TYPE_CODE_UNION>: Unify, removing a goto.
493
494 2012-09-21 Tom Tromey <tromey@redhat.com>
495
496 * c-typeprint.c (cp_type_print_derivation_info): Fix comment.
497
498 2012-09-21 Andrew Burgess <aburgess@broadcom.com>
499
500 * findvar.c (read_frame_register_value): Mark the result value as
501 optimized out if any of the input registers have been optimized out.
502
503 2012-09-21 Andreas Schwab <schwab@linux-m68k.org>
504
505 * python/python.c (finalize_python): Only define if HAVE_PYTHON.
506
507 2012-09-21 Siddhesh Poyarekar <siddhesh@redhat.com>
508
509 * eval.c (evaluate_subexp_standard): Eliminate single-use
510 variable LOWER.
511
512 2012-09-21 Yao Qi <yao@codesourcery.com>
513
514 * mi/mi-interp.c: Declare mi_record_changed.
515 (mi_interpreter_init): Call observer_attach_record_changed.
516 (mi_record_changed): New.
517 * record.c (record_open): Call observer_notify_record_changed.
518 (cmd_record_stop): Call observer_notify_record_changed.
519 * NEWS: Mention it.
520
521 2012-09-20 Tom Tromey <tromey@redhat.com>
522
523 * NEWS: Update.
524 * python/python.c (finalize_python): New function.
525 (_initialize_python): Make a final cleanup.
526
527 2012-09-19 Doug Evans <dje@google.com>
528
529 * buildsym.h (param_symbols): Delete, unused.
530 (context_stack): Delete member "params", unused.
531 * buildsym.c (push_context): Update.
532 * dwarf2read.c (read_func_scope): Update.
533
534 2012-09-19 Thomas Schwinge <thomas@codesourcery.com>
535
536 * sh-tdep.c (sh_register_convert_to_virtual)
537 (sh_register_convert_to_raw): Add a gdbarch parameter. Update
538 all callers. Just do a memcpy if not the little-endian case.
539
540 * h8300-tdep.c (h8300_gdbarch_init): Invoke
541 set_gdbarch_double_format and set_gdbarch_long_double_format.
542 * m68hc11-tdep.c (m68hc11_gdbarch_init): Invoke
543 set_gdbarch_double_format.
544 * sh-tdep.c (sh_gdbarch_init): Likewise.
545
546 * NEWS: Document the removal of SH's 'regs' command.
547 * sh-tdep.c (_initialize_sh_tdep): Remove the deprecated 'regs'
548 command.
549
550 2012-09-18 Sergio Durigan Junior <sergiodj@redhat.com>
551
552 * infcmd.c (_initialize_infcmd): Register `j' as an alias for
553 `jump'.
554
555 2012-09-18 Joel Brobecker <brobecker@adacore.com>
556
557 * linespec.c (iterate_over_all_matching_symtabs): Use the correct
558 language when iterating over symbols.
559
560 2012-09-18 Yao Qi <yao@codesourcery.com>
561
562 * mi/mi-interp.c: Declare mi_tsv_created and mi_tsv_deleted.
563 (mi_interpreter_init): Call observer_attach_tsv_created and
564 observer_attach_tsv_deleted.
565 (mi_tsv_created, mi_tsv_deleted): New.
566 * tracepoint.c (delete_trace_state_variable): Call
567 observer_notify_tsv_deleted.
568 (trace_variable_command): Call observer_notify_tsv_created.
569 (delete_trace_variable_command): Call
570 observer_notify_tsv_deleted.
571 (create_tsv_from_upload): Call observer_notify_tsv_created.
572 * NEWS: Mention it.
573
574 2012-09-18 Yao Qi <yao@codesourcery.com>
575
576 * tracepoint.c (tfind_1): Call observer_notify_traceframe_changed
577 if traceframe changed.
578 * mi/mi-cmds.c (mi_cmd mi_cmds): Adjust for command
579 "trace-find".
580 * mi/mi-interp.c: Declare 'mi_traceframe_changed'.
581 (mi_interpreter_init): Hook mi_traceframe_changed to observer
582 'traceframe_changed'.
583 (mi_traceframe_changed): New.
584 * mi/mi-main.h (struct mi_suppress_notification) <traceframe>:
585 New field.
586 * NEWS: Mention the new MI notification.
587
588 2012-09-17 Mike Wrighton <wrighton@codesourcery.com>
589
590 * MAINTAINERS (Write After Approval): Add "Mike Wrighton".
591
592 2012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
593
594 * common/linux-ptrace.c: Change __i386__ to __i386__ || __x86_64__.
595 (linux_ptrace_test_ret_to_nx): Extend comment for x86_64. Change
596 __i386__ to __i386__ || __x86_64__. Extend code also for __x86_64__.
597 Extend code also for PaX support. Convert all gdb_assert to warning
598 calls.
599
600 2012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
601
602 Implement auto-load user conveniences suggested by Doug Evans.
603 * auto-load.c: Include top.h.
604 (file_is_auto_load_safe): New variable advice_printed. Print advice.
605 (_initialize_auto_load): New variable scripts_directory_help. Mention
606 GDBPY_AUTO_FILE_NAME and GDB_AUTO_FILE_NAME for set auto-load
607 scripts-directory. Document in online help one can use also files for
608 set auto-load safe-path.
609 * python/py-auto-load.c: (GDBPY_AUTO_FILE_NAME): Move it from here ...
610 * python/python.h (GDBPY_AUTO_FILE_NAME): ... to here.
611
612 2012-09-17 Siddhesh Poyarekar <siddhesh@redhat.com>
613
614 * tic6x-tdep.c (tic6x_push_dummy_call): Remove unused definition
615 of LEN.
616
617 2012-09-17 Siddhesh Poyarekar <siddhesh@redhat.com>
618
619 * m2-valprint.c (m2_print_array_contents): Eliminate variable
620 ELTLEN and use TYPE_LENGTH directly.
621 (m2_val_print): Likewise.
622 * m68k-tdep.c (m68k_svr4_extract_return_value): Eliminate
623 variable LEN and use TYPE_LENGTH directly.
624 (m68k_svr4_store_return_value): Likewise.
625 * mips-tdep.c (mips_o32_push_dummy_call): Eliminate variable
626 ARGLEN and use TYPE_LENGTH directly.
627 (mips_o64_push_dummy_call): Likewise.
628 * s390-tdep (s390_function_arg_pass_by_reference): Eliminate
629 variable LENGTH and use TYPE_LENGTH directly.
630 (s390_function_arg_float): Likewise.
631 (s390_function_arg_integer): Likewise.
632 (s390_push_dummy_call): Likewise.
633 (s390_return_value_convention): Likewise.
634 * spu-tdep.c (spu_push_dummy_call): Eliminate LEN and use
635 TYPE_LENGTH directly.
636
637 2012-09-17 Yao Qi <yao@codesourcery.com>
638
639 * cli/cli-decode.c (add_setshow_zuinteger_unlimited_cmd): New.
640 Update comment to add_setshow_integer_cmd.
641 * cli/cli-setshow.c (do_set_command): Handle case
642 'var_zuinteger_unlimited'.
643 (do_show_command): Likewise.
644 * cli/cli-cmds.c (init_cmds): Call add_setshow_zuinteger_unlimited_cmd
645 for command 'remotetimeout'.
646 * command.h (enum var_types): New zuinteger_unlimited. Update comment
647 to var_integer.
648 * source.c (_initialize_source): Call add_setshow_zuinteger_unlimited_cmd
649 for command 'set listsize'.
650
651 2012-09-17 Siddhesh Poyarekar <siddhesh@redhat.com>
652
653 * infrun.c (restore_infcall_suspend_state): Eliminate single-use
654 variable LEN.
655
656 2012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
657
658 PR 14119
659 * frame.c (skip_inlined_frames): Skip also TAILCALL_FRAME frames.
660 (frame_pop): Drop also TAILCALL_FRAME frames.
661 * infcmd.c (finish_command): Ignore also TAILCALL_FRAME frames.
662
663 2012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
664 Pedro Alves <palves@redhat.com>
665
666 PR 14548
667 * infrun.c (handle_inferior_event): Do not reverse-continue back to the
668 function start if we are already at function start. Both for
669 reverse-next and for reverse-step into function without line number
670 info.
671
672 2012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
673
674 Code cleanup - rename 'inline' depth to 'artificial' depth.
675 * breakpoint.c (set_momentary_breakpoint): Rename at a caller to
676 frame_id_artificial_p, extend the comment.
677 * dwarf2-frame-tailcall.c (tailcall_frame_this_id): Rename at a user.
678 * frame.c (fprint_frame_id): Rename at a user, change debug output
679 text to "artificial=".
680 (skip_inlined_frames): Rename to ...
681 (skip_artificial_frames): ... here. Extend the comment.
682 (get_stack_frame_id, frame_unwind_caller_id): Rename at a caller.
683 (frame_id_inlined_p): Rename to ...
684 (frame_id_artificial_p): ... here. Rename at a user.
685 (frame_id_eq, frame_id_inner, frame_unwind_caller_pc)
686 (frame_unwind_caller_pc_if_available, frame_unwind_caller_arch): Rename
687 at a user.
688 * frame.h (struct frame_id): Rename inline_depth to artificial_depth.
689 Extend the comment.
690 (frame_id_inlined_p): Rename to ...
691 (frame_id_artificial_p): ... here.
692 * inline-frame.c (inline_frame_this_id): Rename at a user.
693
694 2012-09-14 Andrew Burgess <aburgess@broadcom.com>
695
696 * c-typeprint.c (c_type_print_varspec_suffix): Display the size of
697 vector variables using vector_size syntax rather than array
698 syntax.
699
700 2012-09-14 Siddhesh Poyarekar <siddhesh@redhat.com>
701
702 * valarith.c (value_concat): Replace unsafe ALLOCA with
703 XMALLOC/XFREE.
704
705 2012-09-14 Pedro Alves <palves@redhat.com>
706
707 * gdb.1 (SEE ALSO): Expand pointer to GDB's Texinfo manual.
708
709 2012-09-14 Khoo Yit Phang <khooyp@cs.umd.edu>
710
711 Point contrib/cc-with-tweaks.sh to the build-local data-directory.
712 * contrib/cc-with-tweaks.sh (GDB): Add -data-directory
713 data-directory as appropriate.
714
715 2012-09-14 Siddhesh Poyarekar <siddhesh@redhat.com>
716
717 * printcmd.c (ui_printf): Eliminate single-use variable
718 PARAM_LEN.
719
720 2012-09-14 Yao Qi <yao@codesourcery.com>
721 Pedro Alves <palves@redhat.com>
722
723 * valops.c (value_assign): Move observer_notify_target_changed
724 below to replace reinit_frame_cache.
725
726 2012-09-13 Khoo Yit Phang <khooyp@cs.umd.edu>
727
728 Refactor Python "gdb" module into a proper Python package, by
729 introducing a new "_gdb" module for code implemented in C, and
730 using reload/__import__ instead of exec.
731 * python/lib/gdb/__init__.py: Import * from _gdb.
732 (GdbOutputFile, sys.stdout, GdbOutputErrorFile, sys.stderr,
733 prompt_hook, sys.argv): Moved from finish_python_initialization.
734 (pretty_printers, PYTHONDIR): Moved from _initialize_python.
735 (packages, auto_load_packages): New list and function replacing
736 module_dict and auto-loading code, using __file__ instead of
737 gdb.PYTHONDIR and reload/__import__ instead of exec.
738 (GdbSetPythonDirectory): Replacing function of the same name
739 from finish_python_initialization, using reload/__import__ instead
740 of exec, as well as call auto_load_packages.
741 * python/py-prettyprint.c (find_pretty_printer_from_gdb): Check
742 gdb_python_module and not gdb_module.
743 * python/python-internal.h (gdb_python_module): Declare.
744 * python/python.c (gdb_python_module): New global.
745 (before_prompt_hook): Check gdb_python_module and not gdb_module.
746 (_initialize_python): Rename gdb module to _gdb.
747 Move gdb.PYTHONDIR and gdb.pretty_printer to lib/gdb/__init__.py.
748 (finish_python_initialization): Move Python code to
749 lib/gdb/__init__.py; instead, set up sys.path and import gdb into
750 __main__.
751
752 2012-09-13 Pedro Alves <palves@redhat.com>
753
754 * Makefile.in (COMMON_OBS): Add registry.o.
755 * registry.c: New file.
756 * registry.h (struct registry_container): Declare.
757 (registry_data_callback): New typedef.
758 (struct registry_data, struct registry_data_registration, struct
759 registry_data_registry): New type.
760 (register_data_with_cleanup, registry_alloc_data)
761 (registry_callback_adaptor, registry_clear_data)
762 (registry_container_free_data, registry_set_data, registry_data):
763 Declare.
764 (DEFINE_REGISTRY): Refactor structures and functions as shims over
765 the new common structures and functions.
766 (DECLARE_REGISTRY): Declare struct TAG ## _data. Use the tagged
767 callback typedefs.
768
769 2012-09-12 Mike Wrighton <wrighton@codesourcery.com>
770
771 * remote.c (remote_insert_hw_breakpoint): Throw exception if
772 there is an error inserting hardware breakpoints and use the
773 error message from the target.
774
775 * breakpoint.c (insert_bp_location, insert_breakpoint_locations):
776 Catch this exception and print the error message contained within. Do not
777 print the default hardware error breakpoint message in this case.
778
779 2012-09-12 Doug Evans <dje@google.com>
780
781 * dwarf2read.c (dwarf2_read_addr_index): Fix handling the case where
782 cu == NULL.
783
784 2012-09-11 Doug Evans <dje@google.com>
785
786 * dwarf2read.c (dw2_do_expand_symtabs_matching): Don't examine
787 .gdb_index symbol attributes if there are none.
788
789 2012-09-11 Joel Brobecker <brobecker@adacore.com>
790
791 * symtab.h (struct minimal_symbol) [has_size]: New field.
792 (MSYMBOL_SIZE): Adjust to forbid macro from being used as lvalue.
793 (SET_MSYMBOL_SIZE, MSYMBOL_HAS_SIZE): New macros.
794 * printcmd.c (build_address_symbolic): Only filter out zero-sized
795 minimal symbols if the symbol's size is actually known.
796 * minsyms.c (prim_record_minimal_symbol_full): Adjust setting
797 of msymbol's size field. Add comment.
798 * elfread.c (elf_symtab_read, elf_rel_plt_read): Use
799 SET_MSYMBOL_SIZE to set the minimal symbol size.
800
801 2012-09-11 Joel Brobecker <brobecker@adacore.com>
802
803 * minsyms.c (install_minimal_symbols): Use memset to fill entire
804 minimal_symbol struct object, rather than setting some of its
805 fields one by one.
806
807 2012-09-11 Andrew Burgess <aburgess@broadcom.com>
808
809 * c-typeprint.c (c_type_print_varspec_prefix): Pass through the
810 passed_a_ptr flag when displaying typedef types.
811
812 2012-09-10 Joel Brobecker <brobecker@adacore.com>
813
814 * ada-lang.c (coerce_unspec_val_to_type): Make sure that
815 the optimized_out flag is preserved.
816
817 2012-09-10 Anthony Green <green@moxielogic.com>
818
819 * moxie-tdep.c (moxie_analyze_prologue): Update for function
820 prologue changes in GCC.
821
822 2012-09-10 Keith Seitz <keiths@redhat.com>
823
824 PR gdb/13483
825 * gdbtypes.h (BOOL_PTR_CONVERSION_BADNESS): Rename to ...
826 (BOOL_CONVERSION_BADNESS): ... this.
827 * gdbtypes.c (BOOL_PTR_CONVERSION_BADNESS): Likewise.
828 (rank_one_type): Allow all boolean conversions
829 permitted by the standard.
830
831 2012-09-06 Tom Tromey <tromey@redhat.com>
832
833 * python/py-newobjfileevent.c (create_new_objfile_event_object):
834 Don't decref py_objfile.
835
836 2012-09-02 Khoo Yit Phang <khooyp@cs.umd.edu>
837
838 Do not enable -lmcheck by default when Python is enabled with
839 threading support.
840 * configure.ac: (python_has_threads) New variable, by testing
841 if WITH_THREAD is defined in Python.h.
842 Move --enable-lmcheck after --with-python.
843 Do not enable -lmcheck by default if python_has_threads=yes.
844 Warn if --enable-lmcheck and python_has_threads=yes.
845 * configure: Regenerate.
846
847 2012-08-31 Yao Qi <yao@codesourcery.com>
848
849 * mi/mi-cmds.c (mi_cmds): New macros DEF_MI_CMD_CLI
850 DEF_MI_CMD_MI DEF_MI_CMD_CLI_1 and DEF_MI_CMD_CLI_1.
851 Update some commands.
852 * mi/mi-cmds.h (struct mi_cmd) <suppress_notification>: New field.
853 * mi/mi-main.c (mi_cmd_execute): Set '*parse->cmd->suppress_notification'
854 to 1.
855
856 2012-08-31 Yao Qi <yao@codesourcery.com>
857
858 * mi/mi-cmds.c (mi_cmds): Add 'static'.
859
860 2012-08-30 Khoo Yit Phang <khooyp@cs.umd.edu>
861
862 * MAINTAINERS (Write After Approval): Add "Khoo Yit Phang".
863
864 2012-08-29 Doug Evans <dje@google.com>
865
866 * main.c (print_gdb_help): Remove reference to
867 --use-deprecated-index-sections.
868
869 2012-08-28 Yao Qi <yao@codesourcery.com>
870
871 * cli/cli-cmds.c (max_user_call_depth): Add 'unsigned'.
872 (init_cmds): Call add_setshow_uinteger_cmd for command
873 'max-user-call-depth'.
874 * cli/cli-script.c (execute_user_command): Add 'unsigned' to the
875 declaration of 'max_user_call_depth'.
876 * frame.c (backtrace_limit): Add 'unsigned'.
877 (_initialize_frame): Call add_setshow_uinteger_cmd for command
878 'limit'.
879 * remote.c (remoteaddresssize): Add 'unsigned'.
880 (remote_address_masked): Change local var 'address_size' to
881 'unsigned'.
882 (_initialize_remote): Call add_setshow_uinteger_cmd for
883 'remoteaddresssize'.
884 * top.c (history_size): Add 'unsigned'.
885 (show_commands): Change local variables to 'unsigned'.
886 (set_history_size_command): Don't check history_size is negative.
887 Adjust the condition to call unstifle_history and set history_size
888 to UNIT_MAX.
889
890 2012-08-28 Pedro Alves <palves@redhat.com>
891
892 PR gdb/14428
893
894 * infcmd.c (default_print_one_register_info): New, factored out
895 from default_print_registers_info.
896 (default_print_registers_info): Use it. Mark value unavailable if
897 necessary.
898 (registers_info): Print user registers with
899 default_print_one_register_info.
900
901 2010-08-27 H.J. Lu <hongjiu.lu@intel.com>
902
903 PR tui/14486
904 * tui/tui-source.c (tui_source_is_displayed): Check if TUI_SRC_WIN
905 is not NULL before referencing it.
906
907 2012-08-27 Jan Kratochvil <jan.kratochvil@redhat.com>
908
909 * breakpoint.c (parse_breakpoint_sals) <(*address) == NULL>: New
910 variable pc. Call find_pc_line instead of find_pc_overlay, restore
911 original PC for it.
912
913 2012-08-27 Eli Zaretskii <eliz@gnu.org>
914 Jan Kratochvil <jan.kratochvil@redhat.com>
915
916 * auto-load.c (auto_load_objfile_script): Rename to ...
917 (auto_load_objfile_script_1): ... here, change variable realname to
918 parameter realname, document it, add return value, add variable retval.
919 (auto_load_objfile_script): New function.
920
921 2012-08-27 Jan Kratochvil <jan.kratochvil@redhat.com>
922
923 * cli/cli-decode.c (print_doc_line): Keep skipping '.' and ',' not
924 followed by a whitespace.
925
926 2012-08-27 Jan Kratochvil <jan.kratochvil@redhat.com>
927
928 PR gdb/14494.
929 * dwarf2read.c (dwarf2_locate_sections): Move variable aflag here.
930 Move the SEC_HAS_CONTENTS check here - for any NAMES use.
931 (dwarf2_locate_sections) <eh_frame>: Move the variable and check from
932 here.
933
934 2012-08-27 Wei-cheng Wang <cole945@gmail.com>
935
936 * memattr.c (create_mem_region): Fix memory region overlapping
937 checking.
938
939 2012-08-24 Siddhesh Poyarekar <siddhesh@redhat.com>
940
941 * h8300-tdep.c (h8300_push_dummy_call): Replace unsafe alloca
942 with xmalloc/cleanup.
943 * mt-tdep.c (mt_push_dummy_call): Likewise.
944 * tilegx-tdep.c (tilegx_push_dummy_call): Likewise.
945 * xstormy16-tdep.c (xstormy16_push_dummy_call): Likewise.
946
947 2012-08-24 Yao Qi <yao@codesourcery.com>
948
949 * jv-exp.y (push_expression_name): Add "." at the end of error
950 message.
951
952 2012-08-23 Khoo Yit Phang <khooyp@cs.umd.edu>
953
954 Document how to return from "python-interactive" to GDB.
955 * python/python.c (_initialize_python): Update documentation.
956
957 2012-08-23 Pedro Alves <palves@redhat.com>
958
959 * infrun.c (_initialize_infrun) <handle command help text>:
960 Mention that multiple signals are supported.
961
962 2012-08-23 Pedro Alves <palves@redhat.com>
963
964 * infcmd.c (_initialize_infcmd) <signal command>: Fix typo in help
965 string.
966
967 2012-08-23 Yao Qi <yao@codesourcery.com>
968
969 * tracepoint.c (disconnect_tracing): Call set_tracepoint_num.
970 (tfind_1): Don't call registers_changed, set_traceframe_num,
971 and clear_traceframe_info.
972 Call set_current_traceframe.
973 (set_current_traceframe): call set_traceframe_num.
974
975 2012-08-22 Sergio Durigan Junior <sergiodj@redhat.com>
976
977 * remote-sim.c (_initialize_remote_sim): Pass NULL argument to
978 `register_inferior_data_with_cleanup', fixing regression on PowerPC64.
979
980 2012-08-22 Khoo Yit Phang <khooyp@cs.umd.edu>
981
982 Enable readline in Python in a GDB-specific way and block the
983 standard Python readline module to prevent conflicts with GDB.
984 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-gdb-readline.o.
985 (SUBDIR_PYTHON_SRCS): Add python/py-gdb-readline.c.
986 (py-gdb-readline.o): Add rule to compile python/py-gdb-readline.c.
987 * python/py-gdb-readline.c: New file.
988 * python/python-internal.h (gdbpy_initialize_gdb_readline): New
989 prototype.
990 * python/python.c (_initialize_python): Call
991 gdbpy_initialize_gdb_readline.
992
993 2012-08-22 Keith Seitz <keiths@redhat.com>
994
995 * defs.h: Include build-gnulib/config.h
996
997 2012-08-22 Joseph Myers <joseph@codesourcery.com>
998
999 * arm-tdep.c (thumb_get_next_pc_raw): Mask off low bits for bx pc
1000 and blx pc.
1001
1002 2012-08-22 Khoo Yit Phang <khooyp@cs.umd.edu>
1003
1004 Add a new "python-interactive" command that starts a standard
1005 Python interactive prompt with "pi" as alias, and add "py" as
1006 an alias to "python".
1007 * NEWS: Mention the new commands.
1008 * python/python.c (eval_python_command): New function.
1009 (python_interactive_command): For "python-interactive" with
1010 arguments, call eval_python_command. For "python-interactive"
1011 without arguments, call PyRun_InteractiveLoop.
1012 (_initialize_python): Add "python-interactive" command with
1013 "pi" as alias, and add "py" as an alias to "python".
1014
1015 2012-08-22 Tom Tromey <tromey@redhat.com>
1016
1017 * defs.h (quit_flag): Don't declare.
1018 (clear_quit_flag, check_quit_flag, set_quit_flag): Declare.
1019 (QUIT): Use new functions.
1020 * event-top.c (command_handler): Use clear_quit_flag.
1021 (handle_sigint): Use set_quit_flag.
1022 (async_request_quit): Use check_quit_flag. Don't check
1023 immediate_quit.
1024 * exceptions.c (throw_exception): Use clear_quit_flag.
1025 * main.c (captured_main): Use clear_quit_flag.
1026 * python/python.c (clear_quit_flag, set_quit_flag)
1027 (check_quit_flag): New functions.
1028 * remote-sim.c (gdb_os_poll_quit): Use check_quit_flag,
1029 clear_quit_flag.
1030 * remote.c (remote_wait_as): Use check_quit_flag,
1031 clear_quit_flag.
1032 (remote_start_remote): Call QUIT.
1033 * symfile.c (load_progress): Use check_quit_flag.
1034 * top.c (command_loop): Use clear_quit_flag.
1035 (command_line_input): Call QUIT.
1036 * utils.c (quit_flag): Conditionally define.
1037 (clear_quit_flag, check_quit_flag, set_quit_flag): New
1038 functions.
1039 (prompt_for_continue): Call QUIT. Use quit, not
1040 async_request_quit.
1041 * remote-mips.c (mips_expect_timeout): Call QUIT.
1042 * monitor.c (monitor_expect): Call QUIT.
1043
1044 2012-08-22 Tom Tromey <tromey@redhat.com>
1045
1046 * event-top.c (sigwinch_token, handle_sigwinch): Remove.
1047 (async_init_signals): Update.
1048 * utils.c (init_page_info): Don't use SIGWINCH_HANDLER.
1049 (SIGWINCH_HANDLER_BODY): Remove.
1050
1051 2012-08-22 Tom Tromey <tromey@redhat.com>
1052
1053 * jit.c (jit_object_close_impl): Don't malloc the objfile
1054 name.
1055 * objfiles.c (allocate_objfile): Don't malloc the objfile
1056 name.
1057 (free_objfile): Don't free the objfile name.
1058 * objfiles.h (struct objfile) <name>: Update comment.
1059 * symfile.c (reread_symbols): Fix reference counting. Don't
1060 malloc objfile name.
1061
1062 2012-08-22 Tom Tromey <tromey@redhat.com>
1063
1064 * windows-nat.c (windows_make_so): Use gdb_bfd_open.
1065 * symfile.c (bfd_open_maybe_remote): Use gdb_bfd_open.
1066 (symfile_bfd_open): Likewise.
1067 (generic_load): Likewise.
1068 * solib.c (solib_bfd_fopen): Use gdb_bfd_open.
1069 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
1070 gdb_bfd_open.
1071 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
1072 Use gdb_bfd_open.
1073 * rs6000-nat.c (add_vmap): Use gdb_bfd_open.
1074 * remote-mips.c (mips_load_srec): Use gdb_bfd_open.
1075 (pmon_load_fast): Likewise.
1076 * remote-m32r-sdi.c (m32r_load): Use gdb_bfd_open.
1077 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_open.
1078 * machoread.c (macho_symfile_read_all_oso): Use gdb_bfd_open.
1079 (macho_check_dsym): Likewise.
1080 * m32r-rom.c (m32r_load): Use gdb_bfd_open.
1081 (m32r_upload_command): Likewise.
1082 * gdb_bfd.h (gdb_bfd_cache): Declare.
1083 * gdb_bfd.c (struct gdb_bfd_data): New.
1084 (gdb_bfd_cache): New global.
1085 (struct gdb_bfd_cache_search): New.
1086 (hash_bfd): New function.
1087 (eq_bfd): Likewise.
1088 (gdb_bfd_open): Likewise.
1089 (gdb_bfd_ref): Allocate a gdb_bfd_data and attach to the BFD.
1090 (gdb_bfd_unref): Remove closed BFD from cache. Update for
1091 gdb_bfd_data.
1092 * exec.c (exec_file_attach): Use gdb_bfd_open.
1093 * dsrec.c (load_srec): Use gdb_bfd_open.
1094
1095 2012-08-22 Tom Tromey <tromey@redhat.com>
1096
1097 * dwarf2read.c (macro_start_file): Update.
1098 * objfiles.c (get_objfile_bfd_data): Initialize macro_cache.
1099 (free_objfile_per_bfd_storage): Destroy macro_cache.
1100 (allocate_objfile, free_objfile): Update.
1101 * objfiles.h (struct objfile_per_bfd_storage) <macro_cache>:
1102 New field.
1103 (struct objfile) <macro_cache>: Remove.
1104 * symfile.c (reread_symbols): Update.
1105 * symmisc.c (print_symbol_bcache_statistics): Update.
1106 (print_objfile_statistics): Update.
1107
1108 2012-08-22 Tom Tromey <tromey@redhat.com>
1109
1110 * elfread.c (elf_symtab_read): Update.
1111 * objfiles.c (objfiles_bfd_data): New global.
1112 (get_objfile_bfd_data, free_objfile_per_bfd_storage)
1113 (objfile_bfd_data_free, set_objfile_per_bfd): New functions.
1114 (allocate_objfile, free_objfile): Update.
1115 (_initialize_objfiles): Initialize objfiles_bfd_data.
1116 * objfiles.h (struct objfile_per_bfd_storage): New.
1117 (struct objfile) <per_bfd>: New field.
1118 <filename_cache>: Remove.
1119 (set_objfile_per_bfd): Declare.
1120 * symfile.c (reread_symbols): Update. Call
1121 set_objfile_per_bfd.
1122 (allocate_symtab): Update.
1123 * symmisc.c (print_symbol_bcache_statistics): Update.
1124 (print_objfile_statistics): Print the size of the BFD obstack.
1125
1126 2012-08-22 Tom Tromey <tromey@redhat.com>
1127
1128 * gdb_bfd.h: Include registry.h. Use DECLARE_REGISTRY.
1129 * gdb_bfd.c: Use DEFINE_REGISTRY.
1130 (struct gdb_bfd_data): Add REGISTRY_FIELDS.
1131 (gdb_bfd_ref): Call bfd_alloc_data.
1132 (gdb_bfd_unref): Call bfd_free_data.
1133
1134 2012-08-22 Tom Tromey <tromey@redhat.com>
1135
1136 * registry.h (struct registry_fields): New.
1137 (REGISTRY_FIELDS): Redefine.
1138 (REGISTRY_ACCESS_FIELD): New macro.
1139 (DEFINE_REGISTRY): Add ACCESS argument. Update defined
1140 functions.
1141
1142 2012-08-22 Tom Tromey <tromey@redhat.com>
1143
1144 * auto-load.c (_initialize_auto_load): Update.
1145 * solib-svr4.c (_initialize_svr4_solib): Update
1146 * solib-dsbt.c (_initialize_dsbt_solib): Update.
1147 * solib-darwin.c (_initialize_darwin_solib): Update.
1148 * registry.h: New file.
1149 * python/py-progspace.c (gdbpy_initialize_pspace): Update.
1150 * python/py-inferior.c (gdbpy_initialize_inferior): Update.
1151 * progspace.h: Include registry.h. Use DECLARE_REGISTRY.
1152 (register_program_space_data_with_cleanup)
1153 (register_program_space_data, program_space_alloc_data)
1154 (clear_program_space_data, set_program_space_data)
1155 (program_space_data): Don't declare.
1156 * progspace.c: Use DEFINE_REGISTRY.
1157 (struct program_space_data, struct
1158 program_space_data_registration, struct
1159 program_space_data_registry, program_space_data_registry)
1160 (register_program_space_data_with_cleanup)
1161 (register_program_space_data, program_space_alloc_data)
1162 (program_space_free_data, clear_program_space_data)
1163 (set_program_space_data, program_space_data): Remove.
1164 * objfiles.h: Include registry.h. Use DECLARE_REGISTRY.
1165 (struct objfile) <data, num_data>: Replace with REGISTRY_FIELDS.
1166 (register_objfile_data_with_cleanup, register_objfile_data)
1167 (clear_objfile_data, set_objfile_data, objfile_data): Don't
1168 declare.
1169 * objfiles.c: Use DEFINE_REGISTRY.
1170 (struct objfile_data, struct objfile_data_registration, struct
1171 objfile_data_registry, objfile_data_registry)
1172 (register_objfile_data_with_cleanup, register_objfile_data)
1173 (objfile_alloc_data, objfile_free_data, clear_objfile_data)
1174 (set_objfile_data, objfile_data): Remove.
1175 (_initialize_objfiles): Update.
1176 * jit.c (_initialize_jit): Update.
1177 * inflow.c (_initialize_inflow): Update.
1178 * inferior.h: Include registry.h. Use DECLARE_REGISTRY.
1179 (struct inferior) <data, num_data>: Replace with REGISTRY_FIELDS.
1180 (register_inferior_data_with_cleanup, register_inferior_data)
1181 (clear_inferior_data, set_inferior_data, inferior_data): Don't
1182 declare.
1183 * inferior.c: Use DEFINE_REGISTRY.
1184 (struct inferior_data, struct inferior_data_registration, struct
1185 inferior_data_registry, inferior_data_registry)
1186 (register_inferior_data_with_cleanup, register_inferior_data)
1187 (inferior_alloc_data, inferior_free_data clear_inferior_data)
1188 (set_inferior_data, inferior_data): Remove.
1189 * auxv.c (_initialize_auxv): Update.
1190 * ada-lang.c (_initialize_ada_language): Update.
1191 * breakpoint.c (_initialize_breakpoint): Update.
1192 * i386-nat.c (i386_use_watchpoints): Update.
1193
1194 2012-08-22 Tom Tromey <tromey@redhat.com>
1195
1196 * exec.c (exec_close, exec_file_attach): Update.
1197 (add_to_section_table): Initialize 'key' field.
1198 (add_target_sections, remove_target_sections): Add 'key' argument.
1199 * exec.h (add_target_sections, remove_target_sections): Add
1200 'key' argument.
1201 * solib.c (solib_map_sections, update_solib_list, clear_solib)
1202 (reload_shared_libraries_1): Update.
1203 * target.h (struct target_section) <key>: New field.
1204
1205 2012-08-22 Tom Tromey <tromey@redhat.com>
1206
1207 * cli/cli-cmds.c (filter_sals): Handle nelts == 0 case.
1208
1209 2012-08-21 Pierre Muller <muller@ics.u-strasbg.fr>
1210
1211 * symfile.c (allocate_symtab): Use host_address_to_string
1212 function instead of cast of pointer to long which is not
1213 compatible with x86_64-w64-mingw32 build.
1214
1215 2012-08-19 Andrew Pinski <apinski@cavium.com>
1216
1217 * mips-tdep.c (is_octeon): New function.
1218 (is_octeon_bbit_op): New function.
1219 (mips32_next_pc): Handle Octeon's bbit instructions.
1220 (mips32_instruction_has_delay_slot): Likewise.
1221
1222 2012-08-19 Andrew Pinski <apinski@cavium.com>
1223
1224 * mips-tdep.c (mips32_next_pc): Fix line spacing of the comment
1225 before the function.
1226
1227 2012-08-19 Andrew Pinski <apinski@cavium.com>
1228
1229 * mips-tdep.c (mips32_next_pc): Consolidate calls to itype_op.
1230
1231 2012-08-19 Keith Seitz <keiths@redhat.com>
1232
1233 PR c++/14365
1234 * c-typeprint.c (c_type_print_varspec_prefix): Pass
1235 -1 for SHOW to c_type_print_base for METHODPTR and MEMBERPTR.
1236
1237 2012-08-18 Eli Zaretskii <eliz@gnu.org>
1238
1239 * Makefile.in (HFILES_NO_SRCDIR): Fix a typo: golang.h -> go-lang.h.
1240 The typo broke "make TAGS".
1241
1242 2012-08-17 Joel Brobecker <brobecker@adacore.com>
1243
1244 GDB 7.5 released.
1245
1246 2012-08-17 Keith Seitz <keiths@redhat.com>
1247
1248 PR c++/13356
1249 * gdbtypes.c (strict_type_checking): New variable.
1250 (show_strict_type_checking): New function.
1251 (rank_one_type): Return NS_POINTER_INTEGER_CONVERSION_BADNESS
1252 if strict type checking is disabled.
1253 (_initialize_gdbtypes): Add "check type" subcommand.
1254 * gdbtypes.h (NS_INTEGER_POINTER_CONVERSION_BADNESS): New struct.
1255
1256 2012-08-17 Keith Seitz <keiths@redhat.com>
1257
1258 * language.h (type_mode): Remove.
1259 (type_check): Remove.
1260 (struct language_defn): Remove la_type_check.
1261 (STRICT_TYPE): Remove unused macro.
1262 (type_error): Remove.
1263 * language.c (set_type_range_case): Renamed to ...
1264 (set_range_case): ... this. Update all callers.
1265 Remove type_mode/type_check.
1266 (type_mode): Remove.
1267 (type_check): Remove.
1268 (show_type_command): Remove.
1269 (set_type_command): Remove.
1270 (language_info): Remove type checking output.
1271 (type_error): Remove unused function.
1272 (range_error): Update comment.
1273 (unknown_language_defn): Remove la_type_check.
1274 (auto_language_defn): Likewise.
1275 (local_language_defn): Likewise.
1276 (_initialize_language): Remove "check type" subcommand.
1277 * ada-lang.c (ada_language_defn): Remove la_type_check.
1278 * c-lang.c (c_language_defn): Likewise.
1279 (cplus_language_defn): Likewise.
1280 (asm_language_defn): Likewise.
1281 (minimal_language_defn): Likewise.
1282 * d-lang.c (d_language_defn): Likewise.
1283 * f-lang.c (f_language_defn): Likewise.
1284 * go-lang.c (go_language_defn): Likewise.
1285 * jv-lang.c (java_language_defn): Likewise.
1286 * m2-lang.c (m2_language_defn): Likewise.
1287 * objc-lang.c (objc_language_defn): Likewise.
1288 * opencl-lang.c (opencl_language_defn): Likewise.
1289 * p-lang.c (pascal_language_defn): Likewise.
1290
1291 2012-08-16 Mike Frysinger <vapier@gentoo.org>
1292
1293 * infcmd.c (_initialize_infcmd): Remove trailing ) in next help text.
1294
1295 2012-08-16 Joel Brobecker <brobecker@adacore.com>
1296
1297 * ia64-hpux-nat.c (ia64_hpux_get_register_from_save_state_t):
1298 New function.
1299 (ia64_hpux_xfer_memory): Check if inferior_ptid is known before
1300 using the regache. Use ia64_hpux_get_register_from_save_state_t
1301 to access the bsp and bspstore registers if not.
1302
1303 2012-08-16 Joel Brobecker <brobecker@adacore.com>
1304
1305 * breakpoint.h (detach_breakpoints): pid parameter is now a ptid.
1306 * breakpoint.c (detach_breakpoints): Change pid parameter into
1307 a ptid. Adjust code accordingly.
1308 * infrun.c (handle_inferior_event): Delete variable child_pid.
1309 Update call to detach_breakpoints to pass the child ptid for
1310 fork events.
1311 * linux-nat.c (linux_nat_iterate_watchpoint_lwps): Remove
1312 assert that inferior_ptid's lwp is zero.
1313 (linux_handle_extended_wait): Update call to detach_breakpoints.
1314 * inf-ttrace.c (inf_ttrace_follow_fork): Update call to
1315 detach_breakpoints.
1316
1317 2012-08-16 Joel Brobecker <brobecker@adacore.com>
1318
1319 * inf-ttrace.c (inf_ttrace_follow_fork): When following the
1320 parent, only call detach_breakpoints if tts.tts_event ==
1321 TTEVT_VFORK.
1322
1323 2012-08-16 Joel Brobecker <brobecker@adacore.com>
1324
1325 * dwarf2-frame.c (dwarf2_frame_cache): Use
1326 get_frame_address_in_block instead of get_frame_pc as
1327 the bound for executing the frame's FDE.
1328
1329 2012-08-16 Yao Qi <yao@codesourcery.com>
1330
1331 * gdbtypes.h (enum type_code): Define TYPE_CODE_BITSTRING -1.
1332 * arm-tdep.c (arm_type_align): Remove code handling TYPE_CODE_BITSTRING.
1333 * c-typeprint.c (c_type_print_varspec_prefix): Likewise.
1334 (c_type_print_varspec_suffix): Likewise.
1335 * eval.c (evaluate_subexp_standard): Likewise.
1336 * f-typeprint.c (f_type_print_varspec_prefix): Likewise.
1337 (f_type_print_varspec_suffix): Likewise.
1338 * gdbtypes.c (is_scalar_type): Likewise.
1339 (recursive_dump_type): Likewise.
1340 * infcall.c (value_arg_coerce): Likewise.
1341 * m2-valprint.c (m2_val_print): Likewise.
1342 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
1343 (pascal_type_print_varspec_suffix): Likewise.
1344 (pascal_type_print_base): Likewise.
1345 * p-valprint.c (pascal_val_print): Likewise.
1346 (pascal_val_print): Likewise.
1347 * valops.c (value_slice): Likewise.
1348 * valprint.c (scalar_type_p): Likewise.
1349 * valarith.c (value_bitstring_subscript): Remove.
1350 (value_concat): Remove code handling TYPE_CODE_BITSTRING.
1351 Remove comment on TYPE_CODE_BITSTRING.
1352
1353 * stabsread.c (read_type): Don't set TYPE_CODE (type) to
1354 TYPE_CODE_BITSTRING.
1355
1356 * python/py-type.c (pyty_codes): Move ENTRY (TYPE_CODE_BITSTRING) to
1357 slot 0.
1358
1359 2012-08-16 Yao Qi <yao@codesourcery.com>
1360
1361 * tracepoint.c (trace_find_none_command): Remove.
1362 (_initialize_tracepoint): Call add_alias_cmd for "tfind none".
1363
1364 2012-08-16 Yao Qi <yao@codesourcery.com>
1365
1366 * remote.c (handle_notification): Remove parameter 'length'.
1367 (putpkt_binary, getpkt_or_notif_sane_1): Caller update.
1368
1369 2012-08-15 Keith Seitz <keiths@redhat.com>
1370
1371 * gdbtypes.c (opaque_type_resolution): Make static.
1372 Add missing comment.
1373 (overload_debug): Add missing comment.
1374 (show_opaque_type_resolution): Likewise.
1375 (show_overload_debug): Likewise.
1376 (print_bit_vector): Remove unnecessary forward declaration.
1377 (print_arg_types): Likewise.
1378 (dump_fn_fieldlists): Likewise.
1379 (print_cplus_stuff): Likewise.
1380
1381 2012-08-15 Tom Tromey <tromey@redhat.com>
1382
1383 * gdb_bfd.c (struct gdb_bfd_data) <archive_bfd>: New field.
1384 (gdb_bfd_ref): Initialize new field.
1385 (gdb_bfd_unref): Unref the archive BFD.
1386 (gdb_bfd_openr_next_archived_file): Acquire a reference to the
1387 parent archive.
1388
1389 2012-08-15 Tom Tromey <tromey@redhat.com>
1390
1391 PR python/14387:
1392 * python/py-bpevent.c (create_breakpoint_event_object): Update
1393 comment.
1394 * python/py-event.c (evpy_add_attribute): Update comment.
1395 * python/py-exitedevent.c (create_exited_event_object): Fix
1396 reference counting and error handling.
1397 * python/py-newobjfileevent.c (create_new_objfile_event_object):
1398 Fix reference counting.
1399 * python/py-signalevent.c (create_signal_event_object): Fix
1400 reference counting and error handling.
1401 * python/py-stopevent.c (emit_stop_event): Fix reference
1402 counting.
1403 * python/py-threadevent.c (get_event_thread): Return a
1404 borrowed reference.
1405 * python/py-type.c (convert_field): Fix reference counting.
1406
1407 2012-08-15 Tom Tromey <tromey@redhat.com>
1408
1409 * dwarf2read.c (dwarf_decode_macro_bytes)
1410 <DW_MACRO_GNU_transparent_include>: Use pointer to included data
1411 as hash key.
1412
1413 2012-08-14 Mike Frysinger <vapier@gentoo.org>
1414
1415 * infcmd.c (_initialize_infcmd): Update help text for the signal,
1416 stepi, nexti, finish, next, step, jump, and continue commands.
1417 * infrun.c (_initialize_infrun): Update help text for the handle
1418 command.
1419
1420 2012-08-14 Doug Evans <dje@google.com>
1421
1422 * gdbtypes.c (struct extra): Delete, unused.
1423
1424 * gdbtypes.c: Whitespace cleanup.
1425 (address_space_name_to_int): Remove "extern" from definition.
1426 (_initialize_gdbtypes): Declare with initialize_file_ftype.
1427
1428 * gdbtypes.c (make_pointer_type): Remove redundant setting of
1429 TYPE_POINTER_TYPE (type).
1430
1431 2012-08-14 Gary Benson <gbenson@redhat.com>
1432
1433 * solib-svr4.c (svr4_free_library_list): Use free_so.
1434
1435 2012-08-13 Mike Frysinger <vapier@gentoo.org>
1436
1437 * .gitignore: Add go-exp.c.
1438
1439 2012-08-13 Doug Evans <dje@google.com>
1440
1441 * value.c (show_convenience): Tweak comment.
1442 (_initialize_values): Mention convenience functions in the help text
1443 for "show convenience".
1444
1445 2012-08-13 Yao Qi <yao@codesourcery.com>
1446
1447 * std-operator.def: Remove TERNOP_SLICE_COUNT.
1448 * breakpoint.c (watchpoint_exp_is_const): Remove handling to
1449 TERNOP_SLICE_COUNT.
1450 * eval.c (evaluate_subexp_standard): Likewise.
1451 * expprint.c (print_subexp_standard): Likewise.
1452 (dump_subexp_body_standard): Likewise.
1453 * parse.c (operator_length_standard): Likewise.
1454
1455 2012-08-13 Yao Qi <yao@codesourcery.com>
1456
1457 * std-operator.def: Remove OP_BITSTRING.
1458 * breakpoint.c (watchpoint_exp_is_const): Update.
1459 * eval.c (evaluate_subexp_standard): Remove handling to
1460 OP_BITSTRING.
1461 * expprint.c (print_subexp_standard): Likewise.
1462 (dump_subexp_body_standard): Likewise.
1463 * parse.c (operator_length_standard): Likewise.
1464 * valops.c (value_bitstring): Remove.
1465 * value.h: Remove the declaration of 'value_bitstring'.
1466
1467 2012-08-10 Sergio Durigan Junior <sergiodj@redhat.com>
1468
1469 * linespec.c (find_methods): Remove unused variables `i1' and
1470 `name_len'.
1471 (decode_line_full): Likewise for `arg_start'.
1472
1473 2012-08-10 Sergio Durigan Junior <sergiodj@redhat.com>
1474
1475 * gdb_bfd.c (gdb_bfd_unref): Remove unused variable `slot'.
1476 (zlib_decompress_section): Likewise for `section_data'.
1477 (gdb_bfd_map_section): Likewise for `buf' and `retbuf'.
1478
1479 2012-08-10 Doug Evans <dje@google.com>
1480
1481 Add $_memeq, $_regex, $_streq, $_strlen convenience functions.
1482 * NEWS: Document them.
1483 * data-directory/Makefile.in (PYTHON_FILES): Add function/__init__.py,
1484 function/strfns.py.
1485 * python/py-type.c (typy_array_1): New function.
1486 (typy_array): Call it.
1487 (typy_vector): New function.
1488 (type_object_methods): Add "vector".
1489 * python/lib/gdb/function/__init__.py: New file.
1490 * python/lib/gdb/function/strfns.py: New file.
1491
1492 2012-08-10 Siddhesh Poyarekar <siddhesh@redhat.com>
1493
1494 * python/py-type.c (convert_field): Use gdb_py_long_from_longest
1495 for TYPE_FIELD_BITPOS.
1496 (typy_get_sizeof): Likewise for TYPE_LENGTH.
1497
1498 2012-08-10 Mike Frysinger <vapier@gentoo.org>
1499
1500 PR cli/10436:
1501 * common/vec.h (VEC_merge): Define.
1502 (DEF_VEC_ALLOC_FUNC_I): Add a merge helper.
1503 (DEF_VEC_ALLOC_FUNC_P): Likewise.
1504 (DEF_VEC_ALLOC_FUNC_O): Likewise.
1505 * completer.c: Include gdb_signals.h.
1506 (signal_completer): Define.
1507 * completer.h (signal_completer): Add prototype.
1508 * infcmd.c (_initialize_infcmd): Assign the command
1509 completer for "signal" to handle_completer.
1510 * infrun.c: Include completer.h.
1511 (handle_completer): Define.
1512 (_initialize_infrun): Declare a new local variable c. Store the
1513 result of add_com("handle") to it. Assign the command
1514 completer for "handle" to handle_completer.
1515
1516 2012-08-09 Yao Qi <yao@codesourcery.com>
1517
1518 * cli/cli-decode.c (set_cmd_prefix): New.
1519 (lookup_cmd_for_prefixlist): New.
1520 (add_prefix_cmd): Call set_cmd_prefix and update field 'prefix'
1521 of each cmd_list_element in *prefixlist.
1522 (add_setshow_cmd_full): set_cmd_prefix.
1523 (add_alias_cmd): Likewise.
1524 * cli/cli-decode.h (struct cmd_list_element) <prefix>: New field.
1525 Declare 'auto_boolean_enums'.
1526 * cli/cli-setshow.c: Include "observer.h".
1527 (notify_command_param_changed_p): New.
1528 (add_setshow_auto_boolean_cmd): Move auto_boolean_enums out.
1529 Remove 'static'.
1530 (do_setshow_command): Split it to ...
1531 (do_set_command, do_show_command): ... them. New.
1532 (do_set_command): Call observer_notify_command_param_changed if
1533 notify_command_param_changed_p returns true.
1534 (cmd_show_list): Caller update.
1535 * auto-load.c (set_auto_load_cmd): Likewise.
1536 * remote.c (show_remote_cmd): Likewise.
1537 * cli/cli-setshow.h: Update declarations.
1538 * top.c (execute_command): Call do_set_command and do_show_command.
1539
1540 * NEWS: Mention new MI notification.
1541 * mi/mi-interp.c: Declare mi_command_param_changed.
1542 (mi_interpreter_init): Attach mi_command_param_changed to
1543 observer command_param_changed.
1544 (mi_command_param_changed): New.
1545 Remove mi_suppress_breakpoint_notifications.
1546 Define global variable mi_suppress_notification.
1547 (mi_breakpoint_created): Update.
1548 (mi_breakpoint_deleted): Likewise.
1549 (mi_breakpoint_modified): Likewise.
1550 * mi/mi-main.c (mi_cmd_execute): Likewise. Check command
1551 'gdb-set' and set mi_suppress_notification.
1552 * mi/mi-main.h: (mi_suppress_notification): New struct.
1553
1554 2012-08-09 Andreas Tobler <andreast@fgznet.ch>
1555 Jan Kratochvil <jan.kratochvil@redhat.com>
1556
1557 * fbsd-nat.h (fbsd_find_memory_regions): Use find_memory_region_ftype.
1558
1559 2012-08-09 Yao Qi <yao@codesourcery.com>
1560
1561 * cli/cli-cmds.c (enablebreaklist): Move it to breakpoint.c.
1562 (skiplist): Move it to skip.c.
1563 (init_cmd_lists): Remove code setting enablebreaklist and
1564 skiplist to NULL.
1565 * breakpoint.c (enablebreaklist): Moved from cli/cli-cmds.c.
1566 * cli/cli-cmds.h: Remove declaration of enablebreaklist and
1567 skiplist.
1568 * gdbcmd.h: Likewise.
1569 * skip.c (_initialize_step_skip): Move 'skiplist' from
1570 cli/cli-cmds.c.
1571
1572 2012-08-09 Yao Qi <yao@codesourcery.com>
1573
1574 * cli/cli-dump.c: Add 'static' to some cmd_list_element variables.
1575 * gnu-nat.c, symfile.c: Likewise.
1576
1577 2012-08-08 Aaron Gamble <agamble@google.com>
1578
1579 * utils.c (prompt_for_continue_wait_time): New static global.
1580 (make_command_stats_cleanup): Initialize it.
1581 (report_command_stats): Subtract time waiting for user.
1582 (prompt_for_continue): Track time waiting for user.
1583 (defaulted_query): Track time waiting for user.
1584
1585 2012-08-08 Doug Evans <dje@google.com>
1586
1587 * eval.c (evaluate_subexp_standard): Fix thinko in handling
1588 UNOP_MEMVAL_TYPE.
1589 * expprint.c (print_subexp_standard, case OP_TYPE): New.
1590 (print_subexp_standard, case UNOP_CAST_TYPE): Don't increment pos.
1591 (print_subexp_standard, case UNOP_DYNAMIC_CAST): Ditto.
1592 (print_subexp_standard, case UNOP_REINTERPRET_CAST): Ditto.
1593 (print_subexp_standard, case UNOP_MEMVAL_TYPE): Ditto.
1594 (dump_subexp_body_standard, case UNOP_DYNAMIC_CAST): Don't increment
1595 elt.
1596 (dump_subexp_body_standard, case UNOP_REINTERPRET_CAST): Ditto.
1597 (dump_subexp_body_standard, case UNOP_CAST_TYPE): Ditto.
1598 (dump_subexp_body_standard, case UNOP_MEMVAL_TYPE): Ditto.
1599 (dump_prefix_expression): Handle OP_TYPE.
1600
1601 2012-08-08 Keith Seitz <keiths@redhat.com>
1602
1603 * breakpoint.c (parse_breakpoint_sals): Remove unused variable
1604 addr_start.
1605
1606 2012-08-08 Doug Evans <dje@google.com>
1607
1608 * linux-thread-db.c: #include "gdb_vecs.h".
1609 (try_thread_db_load_from_pdir_1): New arg "subdir". All callers
1610 updated.
1611 (try_thread_db_load_from_pdir): New arg "subdir". All callers updated.
1612 (thread_db_load_search): Use a vector to iterate over path elements.
1613 Handle text appearing after "$pdir".
1614
1615 * gdb_string.h: Moved to ...
1616 * common/gdb_string.h: ... here.
1617 * common/vec.h: Remove #ifndef GDBSERVER conditional inclusion of
1618 gdb_string.h and gdb_assert.h.
1619
1620 2012-08-08 Yao Qi <yao@codesourcery.com>
1621
1622 * tic6x-tdep.c (tic6x_register_to_value): Remove.
1623 (tic6x_value_to_register): Likewise.
1624 (tic6x_gdbarch_init): Don't call set_gdbarch_register_to_value
1625 and set_gdbarch_value_to_register.
1626
1627 2012-08-07 Jan Kratochvil <jan.kratochvil@redhat.com>
1628 Jean-Marc Saffroy <saffroy@gmail.com>
1629
1630 PR 11804
1631 * defs.h (find_memory_region_ftype): New comment. New arg modified.
1632 * fbsd-nat.c (fbsd_find_memory_regions): Add the passed modified value.
1633 * gcore.c (gcore_create_callback): New function comment. Add modified
1634 parameter. Only write modified regions. Set SEC_READONLY exactly
1635 according to MODIFIED.
1636 (objfile_find_memory_regions): Ignore separate debug info files. Ass
1637 the passed modified value to FUNC.
1638 * gnu-nat.c (gnu_find_memory_regions): Add the passed modified value.
1639 * linux-tdep.c (linux_find_memory_regions): Try to reads smaps file
1640 first. New variables modified and has_anonymous. Parse the lines of
1641 smaps file. Add the passed MODIFIED value to FUNC.
1642 * procfs.c (find_memory_regions_callback): Add the passed modified
1643 value.
1644
1645 2012-08-06 Tom Tromey <tromey@redhat.com>
1646
1647 * dwarf2-frame.c (clear_pointer_cleanup): New function.
1648 (dwarf2_frame_cache): Use it.
1649 * frame-unwind.h (frame_sniffer_ftype): Document prologue
1650 cache initialization constraint.
1651
1652 2012-08-06 Tom Tromey <tromey@redhat.com>
1653
1654 PR python/14386:
1655 * varobj.c (update_dynamic_varobj_children): Don't call
1656 PyIter_Check.
1657
1658 2012-08-06 Tom Tromey <tromey@redhat.com>
1659
1660 PR cli/14392:
1661 * cli/cli-cmds.c (list_command): Filter 'sals_end'.
1662
1663 2012-08-06 Nathaniel Flath <flat0103@gmail.com>
1664
1665 * NEWS: New entry for 'cd' default parameters.
1666 * cli/cli-cmds.c (cd_command): Replace error_no_arg by DIR assignment.
1667
1668 2012-08-03 Tom Tromey <tromey@redhat.com>
1669
1670 * dwarf2-frame.c (dwarf2_frame_cache): Call do_cleanups before
1671 return.
1672
1673 2012-08-02 Ulrich Weigand <ulrich.weigand@linaro.org>
1674
1675 * inf-child.c (inf_child_fileio_pwrite): If pwrite fails, fall back
1676 to attempting lseek/write.
1677 (inf_child_fileio_pread): Likewise for pread.
1678
1679 2012-08-02 Yao Qi <yao@codesourcery.com>
1680
1681 * dwarf2loc.c (entry_values_debug): Add 'unsigned'.
1682 (_initialize_dwarf2loc): Call add_setshow_zuinteger_cmd instead of
1683 add_setshow_zinteger_cmd.
1684 * dwarf2loc.h: Update the declaration of 'entry_values_debug'.
1685 * dwarf2read.c (dwarf2_die_debug): Add 'unsigned'.
1686 (_initialize_dwarf2_read): Call add_setshow_zuinteger_cmd
1687 instead of add_setshow_zinteger_cmd.
1688 * darwin-nat.c (dwarwin_debug_flag): Add 'unsigned'.
1689 (_initialize_darwin_inferior): Call add_setshow_zuinteger_cmd
1690 instead of add_setshow_zinteger_cmd.
1691 * frame.c (frame_debug): Add 'unsigned'.
1692 (_intialize_frame): Call add_setshow_zuinteger_cmd instead of
1693 add_setshow_zinteger_cmd.
1694 * frame.h: Update the declaration of 'frame_debug'.
1695 * gdbtypes.c (overload_debug): Add 'unsigned'.
1696 (_initialize_gdbtypes): Call add_setshow_zuinteger_cmd instead of
1697 add_setshow_zinteger_cmd.
1698 * inferior.h: Update declaration of 'debug_infrun'.
1699 * infrun.c (debug_infrun): Add 'unsigned'.
1700 (_initialize_infrun): Call add_setshow_zuinteger_cmd instead of
1701 add_setshow_zinteger_cmd.
1702 * jit.c (jit_debug): Add 'unsigned'.
1703 (_initialize_jit): Call add_setshow_zuinteger_cmd instead of
1704 add_setshow_zinteger_cmd.
1705 * linux-nat.c (debug_linux_nat): Add 'unsigned'.
1706 (_initialize_linux_nat): Call add_setshow_zuinteger_cmd
1707 instead of add_setshow_zinteger_cmd.
1708 * linux-thread-db.c (libthread_db_debug): Add 'unsigned'.
1709 (_initialize_thread_db): Call add_setshow_zuinteger_cmd instead of
1710 add_setshow_zinteger_cmd.
1711 * machoread.c (mach_o_debug_level): Add 'unsigned'.
1712 (_initialize_machoread): Call add_setshow_zuinteger_cmd
1713 instead of add_setshow_zinteger_cmd.
1714 * mi/mi-cmd-var.c: Update the declaration of 'varobjdebug'.
1715 * microblaze-tdep.c (microblaze_debug_flag): Add 'unsigned'.
1716 (_initialize_microblaze_tdep): Call add_setshow_zuinteger_cmd
1717 intead of add_setshow_zinteger_cmd.
1718 * mips-tdep.c (mips_debug): Add 'unsigned'.
1719 (_initialize_mips_tdep): Call add_setshow_zuinteger_cmd
1720 instead of add_setshow_zinteger_cmd.
1721 * monitor.c (monitor_debug): Add 'unsigned'.
1722 (_initialize_remote_monitors): Call add_setshow_zuinteger_cmd instead of
1723 add_setshow_zinteger_cmd.
1724 * observer.c (observer_debug): Add 'unsigned'.
1725 (_initialize_observer): Call add_setshow_zuinteger_cmd instead of
1726 add_setshow_zinteger_cmd.
1727 * parse.c (expressiondebug): Add 'unsigned'.
1728 (_initialize_parse): Call add_setshow_zuinteger_cmd instead of
1729 add_setshow_zinteger_cmd.
1730 * record.c (record_debug): Add 'unsigned'.
1731 (_initialize_record): Call add_setshow_zuinteger_cmd instead of
1732 add_setshow_zinteger_cmd.
1733 * record.h: Update the declaration of 'record_debug'.
1734 * stap-probe.c (stap_expression_debug): Add 'unsigned'.
1735 (_initialize_stap_probe): Call add_setshow_zuinteger_cmd instead of
1736 add_setshow_zinteger_cmd.
1737 * serial.c (global_serial_debug_p): Add 'unsigned'.
1738 (_initialize_serial): Call add_setshow_zuinteger_cmd instead of
1739 add_setshow_zinteger_cmd.
1740 * solib-dsbt.c (solib_dsbt_debug): Add 'unsigned'.
1741 (_initialize_dsbt_solib): Call add_setshow_zuinteger_cmd instead of
1742 add_setshow_zinteger_cmd.
1743 * solib-frv.c (solib_frv_debug): Add 'unsigned'.
1744 (_initialize_frv_solib): Call add_setshow_zuinteger_cmd instead of
1745 add_setshow_zinteger_cmd.
1746 * target.c (targetdebug): Add 'unsigned'.
1747 (initialize_targets): Call add_setshow_zuinteger_cmd instead of
1748 add_setshow_zinteger_cmd.
1749 * valops.c (overload_debug): Add 'unsigned'.
1750 * varobj.c (varobjdebug): Add 'unsigned'.
1751 (_initialize_varobj): Call add_setshow_zuinteger_cmd instead of
1752 add_setshow_zinteger_cmd.
1753 * xtensa-tdep.c (xtensa_debug_level): Add 'unsigned'.
1754 (_initialize_xtensa_tdep): Call add_setshow_zuinteger_cmd
1755 instead of add_setshow_zinteger_cmd.
1756
1757 * arch-utils.h: Remove the declaration of 'gdbarch_debug'.
1758 * gdbarch.sh (gdbarch_debug): Add 'unsigned'.
1759 (extern void _initialize_gdbarch): Call add_setshow_zuinteger_cmd
1760 instead of add_setshow_zinteger_cmd.
1761 * gdbarch.c, gdbarch.h: Re-generated.
1762
1763 2012-08-02 Yao Qi <yao@codesourcery.com>
1764
1765 * nto-tdep.c: Don't include cli/cli-decode.h and
1766 cli/cli-cmds.h.
1767 (_initialize_nto_tdep): Remove.
1768 * nto-tdep.h (struct nto_target_ops) <internal_debugging>:
1769 Remove field.
1770 Remove macro nto_internal_debugging.
1771
1772 2012-08-01 Richard Henderson <rth@redhat.com>
1773
1774 * configure.tgt (m32c-*-*) [gdb_target_obs]: Remove prologue-value.o.
1775 (mep-*-*) [gdb_target_obs]: Likewise.
1776
1777 2012-07-31 Andreas Schwab <schwab@linux-m68k.org>
1778
1779 * ppc-linux-tdep.c (ppc_linux_init_abi): Register
1780 linux_get_siginfo_type.
1781
1782 2012-07-31 Jan Kratochvil <jan.kratochvil@redhat.com>
1783
1784 * infcall.c (call_function_by_hand): Move BP_ADDR comment to
1785 AT_ENTRY_POINT.
1786 (call_function_by_hand) <ON_STACK>: Call write_memory with
1787 gdbarch_breakpoint_from_pc, if possible.
1788 (call_function_by_hand) <AT_ENTRY_POINT>: The BP_ADDR comment is moved
1789 here.
1790
1791 2012-07-31 Yao Qi <yao@codesourcery.com>
1792
1793 * tracepoint.c: Add 'static' for some variables.
1794
1795 2012-07-31 Yao Qi <yao@codesourcery.com>
1796
1797 * go32-nat.c: Declare _initialize_go32_nat.
1798 * ser-go32.c: Declare _initialize_ser_dos.
1799 * top.c (do_chdir_cleanup): Add 'static'.
1800
1801 2012-07-30 Keith Seitz <keiths@redhat.com>
1802
1803 * linespec.c (linespec_lex_number): A number followed
1804 by quotes is a valid number, too.
1805
1806 2012-07-30 Tom Tromey <tromey@redhat.com>
1807
1808 * remote-sim.c (gdb_os_poll_quit): Don't check immediate_quit.
1809
1810 2012-07-30 Ulrich Weigand <ulrich.weigand@linaro.org>
1811
1812 * arm-linux-nat.c (arm_linux_hw_breakpoint_initialize): Do not
1813 attempt to 4-byte-align HW breakpoint addresses for Thumb.
1814
1815 2012-07-30 Andrew Burgess <aburgess@broadcom.com>
1816
1817 * varobj.c (varobj_invalidate_iter): All varobj must be marked as
1818 invalid or reevaluated to prevent prevent references to possibly
1819 delete'd type objects being left in the varobj.
1820
1821 2012-07-27 Tom Tromey <tromey@redhat.com>
1822 Jan Kratochvil <jan.kratochvil@redhat.com>
1823
1824 * copying.awk: Print buffer-read-only and vi ro markers.
1825 * copying.c: Rebuild.
1826 * gdbarch.sh (copyright): Print buffer-read-only and vi ro markers.
1827 * gdbarch.c, gdbarch.h: Rebuild.
1828 * target-descriptions.c (maint_print_c_tdesc_cmd): Print
1829 buffer-read-only and vi ro markers.
1830 * features/arm-with-iwmmxt.c: Rebuild.
1831 * features/arm-with-m-fpa-layout.c: Rebuild.
1832 * features/arm-with-m-vfp-d16.c: Rebuild.
1833 * features/arm-with-m.c: Rebuild.
1834 * features/arm-with-neon.c: Rebuild.
1835 * features/arm-with-vfpv2.c: Rebuild.
1836 * features/arm-with-vfpv3.c: Rebuild.
1837 * features/i386/amd64-avx-linux.c: Rebuild.
1838 * features/i386/amd64-avx.c: Rebuild.
1839 * features/i386/amd64-linux.c: Rebuild.
1840 * features/i386/amd64.c: Rebuild.
1841 * features/i386/i386-avx-linux.c: Rebuild.
1842 * features/i386/i386-avx.c: Rebuild.
1843 * features/i386/i386-linux.c: Rebuild.
1844 * features/i386/i386-mmx-linux.c: Rebuild.
1845 * features/i386/i386-mmx.c: Rebuild.
1846 * features/i386/i386.c: Rebuild.
1847 * features/i386/x32-avx-linux.c: Rebuild.
1848 * features/i386/x32-avx.c: Rebuild.
1849 * features/i386/x32-linux.c: Rebuild.
1850 * features/i386/x32.c: Rebuild.
1851 * features/mips-dsp-linux.c: Rebuild.
1852 * features/mips-linux.c: Rebuild.
1853 * features/mips64-dsp-linux.c: Rebuild.
1854 * features/mips64-linux.c: Rebuild.
1855 * features/rs6000/powerpc-32.c: Rebuild.
1856 * features/rs6000/powerpc-32l.c: Rebuild.
1857 * features/rs6000/powerpc-403.c: Rebuild.
1858 * features/rs6000/powerpc-403gc.c: Rebuild.
1859 * features/rs6000/powerpc-405.c: Rebuild.
1860 * features/rs6000/powerpc-505.c: Rebuild.
1861 * features/rs6000/powerpc-601.c: Rebuild.
1862 * features/rs6000/powerpc-602.c: Rebuild.
1863 * features/rs6000/powerpc-603.c: Rebuild.
1864 * features/rs6000/powerpc-604.c: Rebuild.
1865 * features/rs6000/powerpc-64.c: Rebuild.
1866 * features/rs6000/powerpc-64l.c: Rebuild.
1867 * features/rs6000/powerpc-7400.c: Rebuild.
1868 * features/rs6000/powerpc-750.c: Rebuild.
1869 * features/rs6000/powerpc-860.c: Rebuild.
1870 * features/rs6000/powerpc-altivec32.c: Rebuild.
1871 * features/rs6000/powerpc-altivec32l.c: Rebuild.
1872 * features/rs6000/powerpc-altivec64.c: Rebuild.
1873 * features/rs6000/powerpc-altivec64l.c: Rebuild.
1874 * features/rs6000/powerpc-cell32l.c: Rebuild.
1875 * features/rs6000/powerpc-cell64l.c: Rebuild.
1876 * features/rs6000/powerpc-e500.c: Rebuild.
1877 * features/rs6000/powerpc-e500l.c: Rebuild.
1878 * features/rs6000/powerpc-isa205-32l.c: Rebuild.
1879 * features/rs6000/powerpc-isa205-64l.c: Rebuild.
1880 * features/rs6000/powerpc-isa205-altivec32l.c: Rebuild.
1881 * features/rs6000/powerpc-isa205-altivec64l.c: Rebuild.
1882 * features/rs6000/powerpc-isa205-vsx32l.c: Rebuild.
1883 * features/rs6000/powerpc-isa205-vsx64l.c: Rebuild.
1884 * features/rs6000/powerpc-vsx32.c: Rebuild.
1885 * features/rs6000/powerpc-vsx32l.c: Rebuild.
1886 * features/rs6000/powerpc-vsx64.c: Rebuild.
1887 * features/rs6000/powerpc-vsx64l.c: Rebuild.
1888 * features/rs6000/rs6000.c: Rebuild.
1889 * features/s390-linux32.c: Rebuild.
1890 * features/s390-linux32v1.c: Rebuild.
1891 * features/s390-linux32v2.c: Rebuild.
1892 * features/s390-linux64.c: Rebuild.
1893 * features/s390-linux64v1.c: Rebuild.
1894 * features/s390-linux64v2.c: Rebuild.
1895 * features/s390x-linux64.c: Rebuild.
1896 * features/s390x-linux64v1.c: Rebuild.
1897 * features/s390x-linux64v2.c: Rebuild.
1898 * features/tic6x-c62x-linux.c: Rebuild.
1899 * features/tic6x-c62x.c: Rebuild.
1900 * features/tic6x-c64x-linux.c: Rebuild.
1901 * features/tic6x-c64x.c: Rebuild.
1902 * features/tic6x-c64xp-linux.c: Rebuild.
1903 * features/tic6x-c64xp.c: Rebuild.
1904
1905 2012-07-27 Tom Tromey <tromey@redhat.com>
1906
1907 * c-exp.y (classify_name): Avoid assignment in condition.
1908
1909 2012-07-27 Roland Schwingel <roland.schwingel@onevision.com>
1910
1911 * amd64-windows-tdep.c: Include "frame.h".
1912 (amd64_windows_skip_trampoline_code): New function.
1913 (amd64_windows_init_abi): Add trampoline registration.
1914
1915 2012-07-27 Yao Qi <yao@codesourcery.com>
1916
1917 * tracepoint.c (cur_traceframe_number): Remove.
1918 (set_tfile_traceframe): Remove.
1919 (tfile_trace_find, tfile_fetch_registers): Update callers.
1920 (tfile_xfer_partial, tfile_get_trace_state_variable_value): Likewise.
1921 (tfile_open, tfile_trace_find): Likewise.
1922
1923 2012-07-27 Yao Qi <yao@codesourcery.com>
1924
1925 * thread.c (switch_to_thread): Don't call registers_changed.
1926
1927 2012-07-26 Tom Tromey <tromey@redhat.com>
1928
1929 * Makefile.in (SFILES): Remove objc-exp.y.
1930 (YYFILES): Remove objc-exp.c.
1931 (YYOBJ): Remove objc-exp.o.
1932 (local-maintainer-clean): Don't mention objc-exp.c.
1933 * c-exp.y: Include objc-lang.h.
1934 (%union) <class>: New field.
1935 (NSSTRING, SELECTOR, CLASSNAME, OBJC_LBRAC): New tokens.
1936 (exp): Clone subscript production for OBJC_LBRAC. Add various
1937 Objective C productions.
1938 (msglist, msgarglist, msgarg): New productions.
1939 (array_mod, func_mod, operator): Clone productions for
1940 OBJC_LBRAC.
1941 (parse_string_or_char): Handle '@' strings.
1942 (lex_one_token): Return OBJC_LBRAC. Recognize @selector.
1943 (classify_name): Check la_name_of_this. Recognize ObjC class
1944 names.
1945 * objc-exp.y: Remove.
1946 * objc-lang.c (objc_language_defn): Use c_parse, c_error.
1947 * objc-lang.h (objc_parse, objc_error): Don't declare.
1948
1949 2012-07-26 Markus Metzger <markus.t.metzger@intel.com>
1950
1951 * python/py-inferior.c (infpy_threads): Call update_thread_list ().
1952
1953 2012-07-26 Jan Kratochvil <jan.kratochvil@redhat.com>
1954
1955 * auto-load.c (auto_load_info_scripts): Remove immediate_quit increment
1956 and decrement.
1957
1958 2012-07-26 Tom Tromey <tromey@redhat.com>
1959
1960 * copying.c: Rebuild.
1961 * copying.awk: Don't use immediate_quit. Use 'no_set_class', not
1962 'no_class'.
1963
1964 2012-07-26 Tom Tromey <tromey@redhat.com>
1965
1966 * symmisc.c (print_symbol_bcache_statistics): Use QUIT, not
1967 immediate_quit.
1968 (print_objfile_statistics): Likewise.
1969 (maintenance_print_symbols): Likewise.
1970 (maintenance_print_msymbols): Likewise.
1971 (maintenance_print_objfiles): Likewise.
1972 * psymtab.c (print_partial_symbols): Call QUIT.
1973 (maintenance_print_psymbols): Likewise. Don't modify
1974 immediate_quit.
1975 * copying.c (show_copying_command): Don't modify immediate_quit.
1976 (show_warranty_command): Likewise.
1977 * cli/cli-cmds.c (show_version): Don't modify immediate_quit.
1978
1979 2012-07-26 Keith Seitz <keiths@redhat.com>
1980
1981 * linespec.c (linespec_lexer_lex_number): The input
1982 is also a valid number if the next character is a comma
1983 or colon.
1984
1985 2012-07-26 Joel Brobecker <brobecker@adacore.com>
1986
1987 * NEWS: Document new --enable-libmcheck/--disable-libmcheck
1988 configure options.
1989
1990 2012-07-26 Tristan Gingold <gingold@adacore.com>
1991
1992 * machoread.c: Include gdb_bfd.h.
1993
1994 2012-07-26 Tristan Gingold <gingold@adacore.com>
1995
1996 * dwarf2loc.c (locexpr_describe_location_piece): Use uint64_t for
1997 offset.
1998
1999 2012-07-26 Siddhesh Poyarekar <siddhesh@redhat.com>
2000
2001 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Expand parameter
2002 SIZE to size_t.
2003 (dwarf2_evaluate_loc_desc): Likewise.
2004 (dwarf2_loc_desc_needs_frame): Likewise.
2005 (locexpr_describe_location_1): Likewise.
2006 * dwarf2loc.h (struct dwarf2_locexpr_baton): Make SIZE as
2007 size_t.
2008 (struct dwarf2_loclist_baton): Likewise.
2009 * dwarf2read.c (struct dwarf_block): Likewise.
2010 (dump_die_shallow): Use pulongest to print dwarf_block.size.
2011 (decode_locdesc): Expand SIZE and I to size_t.
2012
2013 2012-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
2014
2015 * contrib/cc-with-tweaks.sh: Put into comment path gdb/contrib/.
2016
2017 2012-07-25 Joel Brobecker <brobecker@adacore.com>
2018
2019 * doublest.c (convert_doublest_to_floatformat): If the exponent
2020 is too small, treat the value as zero. If the exponent is too
2021 large, treat the value as infinity.
2022
2023 2012-07-25 Joel Brobecker <brobecker@adacore.com>
2024
2025 * configure.ac: Add --enable-lmcheck configure option.
2026 * configure: Regenerate.
2027
2028 2012-07-25 Tom Tromey <tromey@redhat.com>
2029
2030 * NEWS: Mention maint info bfds.
2031 * gdb_bfd.c (all_bfds): New global.
2032 (gdb_bfd_ref, gdb_bfd_unref): Update all_bfds.
2033 (print_one_bfd, maintenance_info_bfds, _initialize_gdb_bfd):
2034 New functions.
2035
2036 2012-07-25 Ralf Corsépius <ralf.corsepius@rtems.org>
2037
2038 * configure.tgt: Add v850*-*-rtems*.
2039
2040 2012-07-25 Tom Tromey <tromey@redhat.com>
2041
2042 * macrotab.c (macro_bcache_str): Remove cast.
2043
2044 2012-07-25 Hui Zhu <hui_zhu@mentor.com>
2045
2046 * linespec.c (linespec_lexer_lex_number): Update comments,
2047 change the return and add check to make sure the input is
2048 the decimal numbers.
2049 (linespec_lexer_lex_one): If linespec_lexer_lex_number return
2050 false, call linespec_lexer_lex_string.
2051
2052 2012-07-24 Tom Tromey <tromey@redhat.com>
2053
2054 * symfile.c (symbol_file_add): Don't open BFD twice.
2055
2056 2012-07-24 Marc Khouzam <marc.khouzam@ericsson.com>
2057
2058 * breakpoint.c (create_breakpoint): Store condition for pending
2059 breakpoints.
2060
2061 2012-07-24 Andreas Schwab <schwab@linux-m68k.org>
2062
2063 * m68k-tdep.c (m68k_reg_struct_return_p): Accept complex types.
2064 (m68k_return_value): Handle complex types like structures.
2065 (m68k_svr4_return_value): Likewise.
2066
2067 2012-07-24 Marcus Shawcroft <marcus.shawcroft@arm.com>
2068
2069 * gdb_bfd.c (zlib_decompress_section) <!HAVE_ZLIB_H>: Adjust
2070 parameters to bfd_get_section_name.
2071
2072 2012-07-24 Yao Qi <yao@codesourcery.com>
2073
2074 * cli/cli-setshow.c: Handle case 'var_uinteger'
2075 and 'var_zuninteger' together. Handle case 'var_integer' and
2076 'var_zinteger' together.
2077
2078 2012-07-23 Keith Seitz <keiths@redhat.com>
2079
2080 * linespec.c (convert_linespec_to_sal): Don't add
2081 any symbols to the result vector if symbol_to_sal
2082 returns zero.
2083
2084 2012-07-23 Keith Seitz <keiths@redhat.com>
2085
2086 * linespec.c (decode_objc): Record the function name
2087 in the linespec.
2088
2089 2012-07-23 Tom Tromey <tromey@redhat.com>
2090
2091 * rs6000-nat.c (add_vmap): Rewrite archive loop. Fix reference
2092 counting.
2093 * exec.c (exec_close_1): Unconditionally release vmap's BFD.
2094 (map_vmap): Acquire a reference to the BFD.
2095
2096 2012-07-23 Siddhesh Poyarekar <siddhesh@redhat.com>
2097
2098 * p-valprint.c (pascal_object_print_value): Replace potentially
2099 unsafe alloca with xmalloc/xfree.
2100 * valops.c (search_struct_method): Likewise.
2101
2102 2012-07-23 Tom Tromey <tromey@redhat.com>
2103
2104 * solib-svr4.c (enable_break): Update.
2105 * bfd-target.h (target_bfd_reopen): Update documentation.
2106
2107 2012-07-23 Tom Tromey <tromey@redhat.com>
2108
2109 * symfile.c (separate_debug_file_exists): Update.
2110 (gdb_bfd_open_maybe_remote): Rename from bfd_open_maybe_remote.
2111 (reread_symbols): Update.
2112 * elfread.c (build_id_verify): Update.
2113 * symfile.h (gdb_bfd_open_maybe_remote): Rename from
2114 bfd_open_maybe_remote.
2115
2116 2012-07-23 Tom Tromey <tromey@redhat.com>
2117
2118 * gdb_bfd.c (gdb_bfd_ref, gdb_bfd_unref): Fix comment.
2119
2120 2012-07-23 Tom Tromey <tromey@redhat.com>
2121
2122 * coffread.c (coff_symfile_read): Make a cleanup for 'debugfile'
2123 and 'abfd'.
2124 * elfread.c (elf_symfile_read): Make a cleanup for 'debugfile'
2125 and 'abfd'.
2126 * jit.c (jit_bfd_try_read_symtab): Make a cleanup for 'nbfd'.
2127 * machoread.c (macho_add_oso_symfile): Make a cleanup for
2128 'abfd'.
2129 (macho_symfile_read): Make a cleanup for 'dsym_bfd'.
2130 * objfiles.c (allocate_objfile): Acquire a new reference.
2131 * rs6000-nat.c (add_vmap): Don't acquire a BFD reference.
2132 * solib.c (solib_read_symbols): Don't acquire a BFD reference.
2133 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Make
2134 a cleanup for 'nbfd'.
2135 * symfile-mem.c (symbol_file_add_from_memory): Make a cleanup
2136 for 'nbfd'.
2137 * symfile.c (symbol_file_add_with_addrs_or_offsets): Don't
2138 make a cleanup for 'abfd'.
2139 (symbol_file_add): Make a BFD cleanup.
2140
2141 2012-07-23 Tom Tromey <tromey@redhat.com>
2142
2143 * cli/cli-dump.c (bfd_openr_with_cleanup): Use gdb_bfd_openr.
2144 (bfd_openw_with_cleanup): Use gdb_bfd_openw.
2145 * corelow.c (core_open): Use gdb_bfd_fopen.
2146 * dsrec.c (load_srec): Use gdb_bfd_openr.
2147 * exec.c (exec_file_attach): Use gdb_bfd_fopen.
2148 * gcore.c (gcore_memory_sections): Use gdb_bfd_openw.
2149 * gdb_bfd.c (gdb_bfd_fopen, gdb_bfd_openr, gdb_bfd_openw)
2150 (gdb_bfd_openr_iovec, gdb_bfd_openr_next_archived_file)
2151 (gdb_bfd_fdopenr): New functions.
2152 * gdb_bfd.h (gdb_bfd_fopen, gdb_bfd_openr, gdb_bfd_openw)
2153 (gdb_bfd_openr_iovec, gdb_bfd_openr_next_archived_file)
2154 (gdb_bfd_fdopenr): Declare.
2155 * jit.c (bfd_open_from_target_memory): Use gdb_bfd_openr_iovec.
2156 * m32-rom.c (m32r_load, m32r_upload_command): Use gdb_bfd_openr.
2157 * machoread.c (macho_symfile_read_all_oso): Use gdb_bfd_openr,
2158 gdb_bfd_openr_next_archived_file.
2159 (macho_check_dsym): Use gdb_bfd_openr.
2160 (macho_add_oso_symfile): Don't call gdb_bfd_stash_filename.
2161 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_fdopenr.
2162 * remote-m32r-sdi.c (m32r_load): Use gdb_bfd_openr.
2163 * remote-mips.c (mips_load_srec, pmon_load_fast): Use
2164 gdb_bfd_openr.
2165 * remote.c (remote_bfd_open): Use gdb_bfd_openr_iovec.
2166 * rs6000-nat.c (add_vmap): Use gdb_bfd_openr, gdb_bfd_fdopenr,
2167 gdb_bfd_openr_next_archived_file.
2168 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
2169 Use gdb_bfd_openr.
2170 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
2171 gdb_bfd_openr.
2172 * solib-spu.c (spu_bfd_fopen): Use gdb_bfd_openr_iovec.
2173 * solib.c (solib_bfd_fopen): Use gdb_bfd_fopen.
2174 * spu-linux-nat.c (spu_bfd_open): Use gdb_bfd_openr_iovec.
2175 * symfile.c (bfd_open_maybe_remote): Use gdb_bfd_openr.
2176 (symfile_bfd_open): Use gdb_bfd_fopen.
2177 (generic_load): Use gdb_bfd_openr.
2178 * windows-nat.c (windows_make_so): Use gdb_bfd_openr.
2179
2180 2012-07-23 Tom Tromey <tromey@redhat.com>
2181
2182 * bfd-target.c (target_bfd_reopen): Update.
2183 * cli/cli-dump.c (bfd_openr_with_cleanup)
2184 (bfd_openw_with_cleanup): Update.
2185 * corelow.c (core_open): Update.
2186 * dsrec.c (load_srec): Update.
2187 * exec.c (exec_file_attach): Update.
2188 * gcore.c (create_gcore_bfd): Update.
2189 * gdb_bfd.c (gdb_bfd_ref): Return void.
2190 (gdb_bfd_open): Update.
2191 * gdb_bfd.h (gdb_bfd_ref): Return void.
2192 Update comments.
2193 * jit.c (jit_bfd_try_read_symtab): Update.
2194 * m32r-rom.c (m32r_load, m32r_upload_command): Update.
2195 * machoread.c (macho_symfile_read_all_oso): Update.
2196 (macho_check_dsym): Update.
2197 * procfs.c (insert_dbx_link_bpt_in_file): Update.
2198 * remote-m32r-sdi.c (m32r_load): Update.
2199 * remote-mips.c (mips_load_srec, pmon_load_fast): Update.
2200 * rs6000-nat.c (add_vmap): Update.
2201 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
2202 Update.
2203 * solib-pa64.c (pa64_solib_create_inferior_hook): Update.
2204 * solib-spu.c (spu_bfd_open): Update.
2205 * solib.c (solib_bfd_fopen, solib_read_symbols): Update.
2206 * spu-linux-nat.c (spu_bfd_open): Update.
2207 * symfile.c (bfd_open_maybe_remote, symfile_bfd_open)
2208 (generic_load): Update.
2209 * windows-nat.c (windows_make_so): Update.
2210
2211 2012-07-22 Siddhesh Poyarekar <siddhesh@redhat.com>
2212
2213 * sh-tdep.c (sh_treat_as_flt_p): Remove unused variable LEN.
2214
2215 2012-07-20 Jeff Kenton <jkenton@tilera.com>
2216
2217 * tilegx-linux-tdep.c (tilegx_linux_sigframe_init): Fix
2218 SIGTRAMP_FRAME unwinding.
2219
2220 2012-07-20 Doug Evans <dje@google.com>
2221
2222 * NEWS: Document new options "set/show use-deprecated-index-sections",
2223 and delete reference to --use-deprecated-index-sections.
2224 * symfile.h (use_deprecated_index_sections): Delete.
2225 * dwarf2read.c (use_deprecated_index_sections): Make static.
2226 (read_index_from_section): Update wording of how to load
2227 deprecated index sections.
2228 (_initialize_dwarf2_read): New options
2229 "set/show use-deprecated-index-sections".
2230 * main.c (captured_main): Delete --use-deprecated-index-sections.
2231
2232 2012-07-20 Pedro Alves <palves@redhat.com>
2233
2234 PR threads/11692
2235 PR gdb/12203
2236
2237 * infrun.c (handle_inferior_event) <new thread>: Don't special
2238 case minus_one_ptid.
2239 <TARGET_WAITKIND_SPURIOUS>: Ditto.
2240 * linux-thread-db.c (thread_get_info_callback): Don't return early
2241 if the thread is zombie.
2242 (thread_from_lwp): Change return type to void. Rewrite stale
2243 comment.
2244 (attach_thread): Don't return early if the thread is zombie,
2245 instead set its "dying" flag.
2246 (thread_db_wait): Don't return TARGET_WAITKIND_SPURIOUS anymore.
2247 (find_new_threads_callback): Don't return early if the thread is
2248 zombie.
2249
2250 2012-07-20 Pedro Alves <palves@redhat.com>
2251
2252 * linux-nat.c (linux_nat_wait): Dump the passed in target options.
2253 * target.c (target_wait): Likewise.
2254 (str_comma_list_concat_elem, do_option, target_options_to_string):
2255 New functions.
2256 * target.h (target_options_to_string): Declare.
2257
2258 2012-07-20 Jan Kratochvil <jan.kratochvil@redhat.com>
2259 Tom Tromey <tromey@redhat.com>
2260
2261 * dwarf2read.c (dwarf_decode_macros)
2262 <DW_MACRO_GNU_define_indirect_alt, DW_MACRO_GNU_undef_indirect_alt,
2263 DW_MACRO_GNU_transparent_include_alt>: New cases.
2264 (dwarf_decode_macro_bytes) <DW_MACRO_GNU_define_indirect,
2265 DW_MACRO_GNU_undef_indirect>: Examine 'section_is_dwz'.
2266
2267 2012-07-20 Tom Tromey <tromey@redhat.com>
2268
2269 * dwarf2read.c (try_open_dwo_file): Don't call
2270 gdb_bfd_stash_filename.
2271
2272 2012-07-20 Pedro Alves <palves@redhat.com>
2273
2274 * i386-tdep.c (i386_record_modrm, i386_record_lea_modrm_addr)
2275 (i386_record_lea_modrm, i386_record_push, i386_record_floats)
2276 (i386_process_record): Tweak description comments.
2277
2278 2012-07-20 Pedro Alves <palves@redhat.com>
2279
2280 * i386-tdep.c (i386_record_modrm, i386_record_lea_modrm_addr)
2281 (i386_process_record): Use record_read_memory.
2282 * record.c (record_read_memory): New function.
2283 (record_arch_list_add_mem, record_exec_insn): Use
2284 record_read_memory.
2285 * record.h (record_read_memory): Declare.
2286
2287 2012-07-20 Yao Qi <yao@codesourcery.com>
2288
2289 * cli/cli-setshow.c (do_setshow_command): Don't check pointer is
2290 NULL for xfree.
2291
2292 2012-07-19 Pedro Alves <palves@redhat.com>
2293
2294 * record.c (record_resume): Ask the target beneath to report all
2295 signals.
2296
2297 2012-07-19 Doug Evans <dje@google.com>
2298
2299 * dwarf2read.c (dwarf2_ranges_read): Ignore ranges starting at zero if
2300 there's no section at address zero.
2301 (dwarf2_record_block_ranges): Ditto.
2302
2303 2012-07-19 Yao Qi <yao@codesourcery.com>
2304
2305 * command.h, remote.c: Fix a typo in comment.
2306
2307 2012-07-19 Tom Tromey <tromey@redhat.com>
2308
2309 PR exp/13206:
2310 * ax-gdb.c (gen_expr) <OP_TYPEOF, OP_DECLTYPE>: New cases.
2311 * breakpoint.c (watchpoint_exp_is_const) <OP_TYPEOF,
2312 OP_DECLTYPE>: New cases.
2313 * c-exp.y (TYPEOF, DECLTYPE): New tokens.
2314 (type_exp): Add new productions.
2315 (ident_tokens): Add __typeof__, typeof, __typeof, __decltype,
2316 and decltype.
2317 * eval.c (evaluate_subexp_standard) <OP_TYPEOF, OP_DECLTYPE>:
2318 New case.
2319 * expprint.c (dump_subexp_body_standard) <OP_TYPEOF,
2320 OP_DECLTYPE>: New case.
2321 * parse.c (operator_length_standard) <OP_TYPEOF, OP_DECLTYPE>:
2322 New case.
2323 * std-operator.def (OP_TYPEOF, OP_DECLTYPE): New constants.
2324 * varobj.c (varobj_create): Handle OP_TYPEOF, OP_DECLTYPE.
2325
2326 2012-07-19 Tom Tromey <tromey@redhat.com>
2327
2328 * c-exp.y (enum token_flags): New.
2329 (struct token) <cxx_only>: Remove.
2330 <flags>: New field.
2331 (tokentab3, tokentab2, ident_tokens): Update.
2332 (lex_one_token): Update. Handle FLAG_SHADOW.
2333
2334 2012-07-19 Tom Tromey <tromey@redhat.com>
2335
2336 * ax-gdb.c (gen_expr): Handle UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE.
2337 * breakpoint.c (watchpoint_exp_is_const): Handle UNOP_CAST_TYPE,
2338 UNOP_REINTERPRET_CAST, UNOP_DYNAMIC_CAST.
2339 * c-exp.y (exp): Emit UNOP_MEMVAL_TYPE, UNOP_CAST_TYPE. Update
2340 for changes to UNOP_REINTERPRET_CAST, UNOP_DYNAMIC_CAST. Use
2341 type_exp production where appropriate.
2342 * eval.c (evaluate_subexp_standard) <UNOP_CAST_TYPE>: New case.
2343 <UNOP_DYNAMIC_CAST, UNOP_REINTERPRET_CAST>: Update.
2344 <UNOP_MEMVAL_TYPE>: New case.
2345 (evaluate_subexp_for_address) <UNOP_MEMVAL_TYPE>: New case.
2346 (evaluate_subexp_for_sizeof) <UNOP_MEMVAL_TYPE>: New case.
2347 * expprint.c (print_subexp_standard) <UNOP_CAST_TYPE>: New case.
2348 <UNOP_MEMVAL_TYPE>: New case.
2349 (dump_subexp_body_standard) <UNOP_DYNAMIC_CAST,
2350 UNOP_REINTERPRET_CAST>: Update.
2351 <UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE>: New cases.
2352 * parse.c (operator_length_standard) <UNOP_DYNAMIC_CAST,
2353 UNOP_REINTERPRET_CAST>: Update.
2354 <UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE>: New cases.
2355 * stack.c (return_command): Also check for UNOP_CAST_TYPE.
2356 * std-operator.def (UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE): New
2357 constants.
2358
2359 2012-07-19 Yao Qi <yao@codesourcery.com>
2360 Jan Kratochvil <jan.kratochvil@redhat.com>
2361
2362 * cli/cli-setshow.c (do_setshow_command): Handle case 'var_filename'
2363 and case 'var_optional_filename' together.
2364 * infcmd.c (_initialize_infcmd): Call add_setshow_string_noescape_cmd
2365 instead of add_setshow_optional_filename_cmd for setshow command
2366 'args'. Set completer for 'set args'.
2367
2368 2012-07-18 Doug Evans <dje@google.com>
2369
2370 * common/gdb_vecs.h: Moved here from ./gdb_vecs.h.
2371 * common/gdb_vecs.c: New file, contents from utils.c.
2372 * common/host-defs.h: New file, contents from defs.h.
2373 * utils.h: New file, contents from defs.h.
2374 * defs.h: Move all declarations of objects defined in utils.c
2375 to utils.h (except QUIT() and related).
2376 #include "utils.h", "host-defs.h".
2377 * probe.h (probe_p): Move here from gdb_vecs.h.
2378 * symfile.c: #include "probe.h" instead of "gdb_vecs.h".
2379 * utils.c (free_char_ptr_vec): Moved to common/gdb_vecs.c.
2380 (dirnames_to_char_ptr_vec_append, dirnames_to_char_ptr_vec): Ditto.
2381 * Makefile.in (SFILES): Add common/gdb_vecs.c.
2382 (HFILES_NO_SRCDIR): Add common/gdb_vecs.h, common/host-defs.h, utils.h.
2383 (COMMON_OBS): Add gdb_vecs.o.
2384 (gdb_vecs.o): New rule.
2385
2386 2012-07-18 Keith Seitz <keiths@redhat.com>
2387
2388 * linespec.c (add_sal_to_sals): Add LITERAL_CANONICAL
2389 parameter. If non-zero, use SYMNAME as the canonical name
2390 for the SaL.
2391 Update all callers.
2392 (convert_linespec_to_sals): Use add_sal_to_sals for
2393 expressions, too.
2394 (decode_line_full): No need to "fill in missing canonical names"
2395 anymore. Simply make cleanups for the allocated names.
2396
2397 2012-07-18 Keith Seitz <keiths@redhat.com>
2398
2399 * linespec.c (struct linespec): Constify expression,
2400 source_filename, function_name, and label_name.
2401 (symbol_not_found_error): Make all parameters const.
2402 (linespec_parser_delete): No need to check for NULL
2403 when using xfree. Cast const char * to char * for xfree.
2404
2405 2012-07-18 Keith Seitz <keiths@redhat.com>
2406
2407 * breakpoint.c (invalid_thread_id_error): New function.
2408 (find_condition_and_thread): Use invalid_thread_id_error.
2409 (watch_command_1): Likewise.
2410
2411 2012-07-18 Tom Tromey <tromey@redhat.com>
2412
2413 * cc-with-index.sh, cc-with-dwz.sh: Remove.
2414 * contrib/cc-with-tweaks.sh: New file.
2415
2416 2012-07-18 Tom Tromey <tromey@redhat.com>
2417
2418 * dwarf2read.c (struct dwz_file) <gdb_index>: New field.
2419 (locate_dwz_sections): Recognize .gdb_index.
2420 (create_cus_from_index_list): New function.
2421 (create_cus_from_index): Use it. Handle .dwz data.
2422 (read_index_from_section): New function, extracted from
2423 dwarf2_read_index.
2424 (dwarf2_read_index): Use it. Read .gdb_index from dwz file,
2425 if needed.
2426
2427 2012-07-18 Tom Tromey <tromey@redhat.com>
2428
2429 * dwarf2read.c (struct dwarf2_per_objfile) <dwz_file>: New field.
2430 (struct dwarf2_per_cu_data) <length>: No longer bitfield.
2431 <is_dwz>: New field.
2432 (struct dwz_file): New.
2433 (struct partial_die_info) <is_dwz, spec_is_dwz>: New fields.
2434 (locate_dwz_sections, dwarf2_get_dwz_file)
2435 (get_abbrev_section_for_cu): New functions.
2436 (error_check_comp_unit_head, read_and_check_comp_unit_head)
2437 (read_and_check_type_unit_head): Add abbrev_section argument.
2438 (create_debug_types_hash_table): Update.
2439 (init_cutu_and_read_dies): Use proper abbrev section.
2440 (init_cutu_and_read_dies_no_follow): Likewise.
2441 (set_partial_user): Do nothing if PST==NULL.
2442 (read_comp_units_from_section): New function.
2443 (create_all_comp_units): Use it.
2444 (scan_partial_symbols, partial_die_parent_scope): Update.
2445 (skip_one_die): Handle DW_FORM_GNU_ref_alt, DW_FORM_GNU_strp_alt.
2446 (process_imported_unit_die, read_partial_die): Handle .dwz files.
2447 (find_partial_die): Add offset_in_dwz argument. Update.
2448 (guess_partial_die_structure_name, fixup_partial_die): Update.
2449 (read_attribute_value): Handle DW_FORM_GNU_ref_alt,
2450 DW_FORM_GNU_strp_alt.
2451 (read_indirect_string_from_dwz): New function.
2452 (dwarf2_const_value_attr): Handle DW_FORM_GNU_strp_alt.
2453 (dump_die_shallow): Handle DW_FORM_GNU_ref_alt, DW_FORM_GNU_strp_alt.
2454 (is_ref_attr): Handle DW_FORM_GNU_ref_alt.
2455 (follow_die_offset): Add offset_in_dwz argument.
2456 (follow_die_ref, dwarf2_fetch_die_location_block): Update.
2457 (skip_form_bytes): Handle DW_FORM_GNU_strp_alt.
2458 (dwarf_decode_macro_bytes): Add section_is_dwz argument.
2459 Handle new macro forms.
2460 (dwarf_decode_macros): Update.
2461 (dwarf2_find_containing_comp_unit): Add offset_in_dwz argument.
2462 (dwarf2_per_objfile_free): Unref dwz_bfd, if it exists
2463 (lookup_die_type): Handle DW_FORM_GNU_ref_alt.
2464 (create_debug_types_hash_table): Use correct abbrev section.
2465 (get_debug_line_section): New function.
2466 (dwarf_decode_line_header, dwarf_decode_lines_1): Use it.
2467 (process_full_comp_unit): Pass 'required' argument to
2468 end_symtab_get_static_block.
2469 * buildsym.h (end_symtab_get_static_block): Update.
2470 * buildsym.c (end_symtab_get_static_block): Add 'required'
2471 argument.
2472 (end_symtab, end_expandable_symtab): Update.
2473
2474 2012-07-18 Tom Tromey <tromey@redhat.com>
2475
2476 * dwarf2read.c: Don't include zlib.h or sys/mman.h.
2477 (pagesize): Remove.
2478 (struct dwarf2_section_info) <map_addr, map_len>: Remove.
2479 (zlib_decompress_section): Remove.
2480 (dwarf2_read_section): Use gdb_bfd_map_section.
2481 (munmap_section_buffer): Remove.
2482 (free_dwo_file, dwarf2_per_objfile_free): Don't use
2483 munmap_section_buffer.
2484 * gdb_bfd.c: Include zlib.h, sys/mman.h.
2485 (struct gdb_bfd_section_data): New.
2486 (free_one_bfd_section): New function.
2487 (gdb_bfd_close_or_warn): Use free_one_bfd_section.
2488 (get_section_descriptor, zlib_decompress_section)
2489 (gdb_bfd_map_section): New functions.
2490 * gdb_bfd.h (gdb_bfd_map_section): Declare.
2491
2492 2012-07-18 Tom Tromey <tromey@redhat.com>
2493
2494 * dwarf2read.c (try_open_dwo_file): use gdb_bfd_open.
2495
2496 2012-07-18 Tom Tromey <tromey@redhat.com>
2497
2498 * gdb_bfd.c (struct gdb_bfd_data): New.
2499 (gdb_bfd_cache): New global.
2500 (struct gdb_bfd_cache_search): New.
2501 (hash_bfd, eq_bfd, gdb_bfd_open): New functions.
2502 (gdb_bfd_ref, gdb_bfd_unref): Use gdb_bfd_data.
2503 * gdb_bfd.h (gdb_bfd_open): Declare.
2504
2505 2012-07-18 Tom Tromey <tromey@redhat.com>
2506
2507 * utils.c (make_cleanup_bfd_unref): Rename from
2508 make_cleanup_bfd_close.
2509 * defs.h (make_cleanup_bfd_unref): Rename from
2510 make_cleanup_bfd_close.
2511 * cli/cli-dump.c (bfd_openr_with_cleanup): Update.
2512 (bfd_openw_with_cleanup): Update.
2513 * corelow.c (core_open): Update.
2514 * dsrec.c (load_srec): Update.
2515 * m32r-rom.c (m32r_load, m32r_upload_command): Update.
2516 * remote-m32r-sdi.c (m32r_load): Update.
2517 * remote-mips.c (mips_load_srec): Update.
2518 (pmon_load_fast): Update.
2519 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
2520 Update.
2521 (darwin_bfd_open): Update.
2522 * solib.c (solib_bfd_fopen): Update.
2523 * symfile-mem.c (symbol_file_add_from_memory): Update.
2524 * symfile.c (symbol_file_add_with_addrs_or_offsets): Update.
2525 (symfile_bfd_open): Update.
2526 (generic_load): Update.
2527
2528 2012-07-18 Tom Tromey <tromey@redhat.com>
2529
2530 * remote-mips.c (mips_load_srec): Use make_cleanup_bfd_close.
2531 (pmon_load_fast): Likewise.
2532 * m32r-rom.c (m32r_load): Use make_cleanup_bfd_close.
2533 (m32r_upload_command): Likewise.
2534 * dsrec.c (load_srec): Use make_cleanup_bfd_close.
2535 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
2536 Use make_cleanup_bfd_close.
2537
2538 2012-07-18 Tom Tromey <tromey@redhat.com>
2539
2540 * symfile.c (symfile_bfd_open): Don't copy name. Call
2541 gdb_bfd_stash_filename.
2542 (load_command): Open the new BFD before freeing the old.
2543 (bfd_open_maybe_remote): Call gdb_bfd_stash_filename.
2544 * symfile-mem.c (symbol_file_add_from_memory): Don't copy name.
2545 Call gdb_bfd_stash_filename.
2546 * spu-linux-nat.c (spu_bfd_open): Don't copy name.
2547 * solib-spu.c (spu_bfd_fopen): Don't copy name. Call
2548 gdb_bfd_stash_filename.
2549 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
2550 Free found_pathname.
2551 * rs6000-nat.c (add_vmap): Don't copy filename. Call
2552 gdb_bfd_stash_filename.
2553 * remote.c (remote_bfd_open): Call gdb_bfd_stash_filename.
2554 * machoread.c (macho_add_oso_symfile): Call
2555 gdb_bfd_stash_filename.
2556 (macho_symfile_read_all_oso): Arrange to free archive_name. Call
2557 gdb_bfd_stash_filename.
2558 (macho_check_dsym): Don't copy filename. Call
2559 gdb_bfd_stash_filename.
2560 * jit.c (bfd_open_from_target_memory): Don't copy the filename.
2561 * gdb_bfd.c (gdb_bfd_stash_filename): New function.
2562 * gdb_bfd.h (gdb_bfd_stash_filename): Declare.
2563 * gcore.c (create_gcore_bfd): Call gdb_bfd_stash_filename.
2564 * exec.c (exec_close): Don't free the BFD's filename.
2565 (exec_file_attach): Don't copy the filename. Call
2566 gdb_bfd_stash_filename.
2567 * corelow.c (core_close): Don't free the BFD's filename.
2568 (core_open): Call gdb_bfd_stash_filename.
2569 * corefile.c (reopen_exec_file): Remove #if 0 code.
2570 * solib.c (solib_bfd_fopen): Call gdb_bfd_stash_filename. Free
2571 pathname.
2572 * dwarf2read.c (try_open_dwo_file): Call gdb_bfd_stash_filename.
2573
2574 2012-07-18 Tom Tromey <tromey@redhat.com>
2575
2576 * dwarf2read.c (try_open_dwo_file): Use gdb_bfd_ref and
2577 gdb_bfd_unref.
2578 (free_dwo_file): Use gdb_bfd_unref.
2579 * cli/cli-dump.c: Include gdb_bfd.h.
2580 (bfd_openw_with_cleanup): Use gdb_bfd_ref.
2581 (bfd_openr_with_cleanup): Likewise.
2582 * windows-nat.c (windows_make_so): Use gdb_bfd_ref,
2583 gdb_bfd_unref.
2584 * utils.c: Include gdb_bfd.h.
2585 (do_bfd_close_cleanup): Use gdb_bfd_unref.
2586 * symfile.c: Include gdb_bfd.h.
2587 (separate_debug_file_exists): Use gdb_bfd_unref.
2588 (bfd_open_maybe_remote): Use gdb_bfd_ref.
2589 (symfile_bfd_open): Use gdb_bfd_ref, gdb_bfd_unref.
2590 (generic_load): Use gdb_bfd_ref.
2591 (reread_symbols): Use gdb_bfd_unref.
2592 * symfile-mem.c: Include gdb_bfd.h.
2593 (symbol_file_add_from_memory): Use make_cleanup_bfd_close.
2594 * spu-linux-nat.c (spu_bfd_open): Use gdb_bfd_ref, gdb_bfd_unref.
2595 * solib.c: Include gdb_bfd.h.
2596 (solib_bfd_fopen): Use gdb_bfd_ref.
2597 (solib_bfd_open): Use gdb_bfd_unref.
2598 (free_so_symbols): Use gdb_bfd_unref.
2599 (reload_shared_libraries_1): Use gdb_bfd_unref.
2600 * solib-spu.c: Include gdb_bfd.h.
2601 (spu_bfd_fopen): Use gdb_bfd_ref, gdb_bfd_unref.
2602 * solib-pa64.c (pa64_solib_create_inferior_hook): Use gdb_bfd_ref,
2603 gdb_bfd_unref.
2604 * solib-frv.c: Include gdb_bfd.h.
2605 (enable_break2): Use gdb_bfd_unref.
2606 * solib-dsbt.c: Include gdb_bfd.h.
2607 (enable_break2): Use gdb_bfd_unref.
2608 * solib-darwin.c: Include gdb_bfd.h.
2609 (darwin_solib_get_all_image_info_addr_at_init): Use gdb_bfd_ref,
2610 gdb_bfd_unref.
2611 (darwin_bfd_open): Use gdb_bfd_unref.
2612 * rs6000-nat.c (add_vmap): Use gdb_bfd_ref, gdb_bfd_unref.
2613 * remote-mips.c: Include gdb_bfd.h.
2614 (mips_load_srec): Use gdb_bfd_ref.
2615 (pmon_load_fast): Use gdb_bfd_ref.
2616 * remote-m32r-sdi.c: Include gdb_bfd.h.
2617 (m32r_load): Use gdb_bfd_ref.
2618 * record.c: Include gdb_bfd.h.
2619 (record_save_cleanups): Use gdb_bfd_unref.
2620 (cmd_record_save): Use gdb_bfd_unref.
2621 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_ref,
2622 gdb_bfd_unref.
2623 * objfiles.h (gdb_bfd_close_or_warn): Remove.
2624 (gdb_bfd_ref, gdb_bfd_unref): Move to gdb_bfd.h.
2625 * objfiles.c: Include gdb_bfd.h.
2626 (free_objfile): Use gdb_bfd_unref.
2627 (gdb_bfd_close_or_warn, gdb_bfd_ref, gdb_bfd_unref): Move to
2628 gdb_bfd.c.
2629 * machoread.c (macho_add_oso_symfile): Use gdb_bfd_unref.
2630 (macho_symfile_read_all_oso): Use gdb_bfd_ref, gdb_bfd_unref.
2631 (macho_check_dsym): Likewise.
2632 * m32r-rom.c: Include gdb_bfd.h.
2633 (m32r_load): Use gdb_bfd_ref.
2634 (m32r_upload_command): Use gdb_bfd_ref.
2635 * jit.c: Include gdb_bfd.h.
2636 (jit_bfd_try_read_symtab): Use gdb_bfd_ref, gdb_bfd_unref.
2637 * gdb_bfd.h: New file.
2638 * gdb_bfd.c: New file.
2639 * gcore.c: Include gdb_bfd.h.
2640 (create_gcore_bfd): Use gdb_bfd_ref.
2641 (do_bfd_delete_cleanup): Use gdb_bfd_unref.
2642 (gcore_command): Use gdb_bfd_unref.
2643 * exec.c: Include gdb_bfd.h.
2644 (exec_close): Use gdb_bfd_unref.
2645 (exec_close_1): Use gdb_bfd_unref.
2646 (exec_file_attach): Use gdb_bfd_ref.
2647 * elfread.c: Include gdb_bfd.h.
2648 (build_id_verify): Use gdb_bfd_unref.
2649 * dsrec.c: Include gdb_bfd.h.
2650 (load_srec): Use gdb_bfd_ref.
2651 * corelow.c: Include gdb_bfd.h.
2652 (core_close): Use gdb_bfd_unref.
2653 (core_open): Use gdb_bfd_ref.
2654 * bfd-target.c: Include gdb_bfd.h.
2655 (target_bfd_xclose): Use gdb_bfd_unref.
2656 (target_bfd_reopen): Use gdb_bfd_ref.
2657 * Makefile.in (SFILES): Add gdb_bfd.c.
2658 (HFILES_NO_SRCDIR): Add gdb_bfd.h.
2659 (COMMON_OBS): Add gdb_bfd.o.
2660
2661 2012-07-18 Keith Seitz <keiths@redhat.com>
2662
2663 * breakpoint.c (find_condition_and_thread): Initialize
2664 TASK and REST.
2665 (create_breakpiont): find_condition_and_thread will now
2666 initialize COND_STRING, THREAD, and REST (and TASK).
2667 (addr_string_to_sals): Likewise.
2668
2669 2012-07-18 Pedro Alves <palves@redhat.com>
2670
2671 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_NO_HISTORY>:
2672 Pull the single step breakpoints out of the target.
2673
2674 2012-07-18 Sergio Durigan Junior <sergiodj@redhat.com>
2675
2676 * probe.c (probe_safe_evaluate_at_pc): Rename variable `n_probes'.
2677 * stap-probe.c (compile_probe_arg): Likewise.
2678
2679 2012-07-18 Sergio Durigan Junior <sergiodj@redhat.com>
2680
2681 * elfread.c (elf_get_probe_argument_count): Remove `objfile' argument.
2682 (elf_compile_to_ax): Likewise.
2683 * infrun.c (insert_exception_resume_from_probe): Likewise.
2684 (check_exception_resume): Remove `objfile' variable.
2685 * probe.c (find_probe_by_pc): Remove `objfile' argument.
2686 (struct probe_and_objfile, probe_and_objfile_s): Delete.
2687 (collect_probes): Adjust return value to `VEC (probe_p) *'.
2688 (compare_entries): Rename to...
2689 (compare_probes): ...this. Adjust function to work with
2690 `struct probe *'. Rename variables `ea' and `eb' to `pa' and `pb'
2691 respectively.
2692 (gen_ui_out_table_header_info): Adjust `probes' argument to be
2693 `VEC (probe_p) *'.
2694 (print_ui_out_info): Adjust argument to be `struct probe *'.
2695 (info_probes_for_ops): Adjust internal computations to use
2696 `VEC (probe_p) *'.
2697 (probe_safe_evaluate_at_pc): Refactor to not pass `objfile' anymore.
2698 * probe.h (struct probe_ops) <get_probe_argument_count, compile_to_ax,
2699 gen_info_probes_table_values>: Remove `objfile' argument.
2700 (struct probe) <objfile>: New field.
2701 (find_probe_by_pc): Remove `objfile' argument.
2702 * stap-probe.c (stap_parse_probe_arguments): Likewise.
2703 (stap_get_probe_argument_count): Likewise.
2704 (stap_get_arg): Likewise.
2705 (stap_evaluate_probe_argument): Likewise.
2706 (stap_compile_to_ax): Likewise.
2707 (compile_probe_arg): Refactor not to pass `objfile' anymore.
2708 (handle_stap_probe): Fill `objfile' field from `struct probe'.
2709 (stap_gen_info_probes_table_header): Remove `objfile' argument.
2710 * symfile.h (struct sym_probe_fns) <sym_evaluate_probe_argument,
2711 sym_compile_to_ax>: Likewise.
2712
2713 2012-07-18 Terry Guo <terry.guo@arm.com>
2714
2715 PR 14329
2716 * defs.h (GDB_MI_MSG_WIDTH): New.
2717 * ser_base (ser_base_read_error_fd): New function.
2718 (do_ser_base_readchar): Poll error file descriptor as well as
2719 standard output.
2720 (generic_readchar): Refactor error handling.
2721
2722 2012-07-18 Joel Brobecker <brobecker@adacore.com>
2723
2724 * NEWS: Create a new section for the next release branch.
2725 Rename the section of the current branch, now that it has
2726 been cut.
2727
2728 2012-07-18 Joel Brobecker <brobecker@adacore.com>
2729
2730 GDB 7.5 branch created (branch timestamp: 2012-07-18 03:22 UTC)
2731 * version.in: Bump version to 7.5.50.20120718-cvs.
2732
2733 2012-07-17 Keith Seitz <keiths@redhat.com>
2734
2735 * linespec.c (linespec_parse_line_offset): Make parameter
2736 const.
2737
2738 2012-07-16 Jan Kratochvil <jan.kratochvil@redhat.com>
2739
2740 PR 11914
2741 * f-valprint.c (info_common_command): New variable frame_id.
2742 Reinitialize FI form FRAME_ID after each print_variable_and_value.
2743 * printcmd.c (print_variable_and_value): Extend function comment.
2744 Add comment for invalidated FRAME.
2745 * stack.c (backtrace_command_1): New variable frame_id. Reinitialize
2746 FI form FRAME_ID after each print_frame_local_vars.
2747 (struct print_variable_and_value_data): Change frame to frame_id.
2748 (do_print_variable_and_value): New variable frame, initialize it from
2749 p->frame_id. Add comment for invalidated FRAME.
2750 (print_frame_local_vars, print_frame_arg_vars): New function comment.
2751 Update CB_DATA.FRAME to CB_DATA.FRAME_ID initialization. Add comment
2752 for invalidated FRAME.
2753
2754 2012-07-16 Marc Khouzam <marc.khouzam@ericsson.com>
2755 Pedro Alves <palves@redhat.com>
2756
2757 * linux-nat.c (linux_nat_detach): Don't unregister from the event
2758 loop.
2759
2760 2012-07-16 Tom Tromey <tromey@redhat.com>
2761
2762 * jv-typeprint.c (c_type_print_varspec_suffix): Don't declare.
2763
2764 2012-07-15 Doug Evans <dje@google.com>
2765
2766 * dwarf2read.c (stmt_list_hash): New struct.
2767 (type_unit_group): Embed "per_cu" member, remove pointer.
2768 New union member "t", move member "tus" into it, all uses updated.
2769 New member "hash", replaces member "line_offset, all uses updated.
2770 (quick_file_names): Replace member "offset" with "hash", all uses
2771 updated.
2772 (hash_stmt_list_entry, eq_stmt_list_entry): New functions.
2773 (hash_file_name_entry, eq_file_name_entry): Call them.
2774 (hash_type_unit_group, eq_type_unit_group): Ditto.
2775 (dw2_get_cu, dw2_get_primary_cu): Replace assert with a better one.
2776 (dw2_get_file_names_reader): Fix file name table calculation for TUs.
2777 (dw2_get_file_names): Update.
2778 (create_type_unit_group): Replace "per_cu" arg with "cu".
2779 All callers updated. Fix "quick" (.gdb_index) handling.
2780 (get_type_unit_group): Replace "per_cu" arg with "cu".
2781 All callers updated.
2782 (build_type_unit_groups): Don't reset tu_stats.
2783
2784 * symtab.c (filename_seen_cache): Delete members "tab_alloc_size",
2785 "tab_cur_size". Change member "tab" to be a htab_t.
2786 (create_filename_seen_cache): Update.
2787 (clear_filename_seen_cache, delete_filename_seen_cache): Update.
2788 (filename_seen): Update.
2789
2790 2012-07-13 Doug Evans <dje@google.com>
2791
2792 * symtab.c (filename_seen): Update comment.
2793
2794 2012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2795 Doug Evans <dje@google.com>
2796
2797 * buildsym.c (end_symtab_1): Split it to ...
2798 (end_symtab_get_static_block): ... this ...
2799 (end_symtab_from_static_block): ... and this function.
2800 (end_symtab, end_expandable_symtab): Call them.
2801 * buildsym.h (end_symtab_get_static_block)
2802 (end_symtab_from_static_block): New declarations.
2803 * dwarf2read.c (process_full_comp_unit): New variable static_block.
2804 Set its valid CU ranges.
2805
2806 2012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2807
2808 * dwarf2loc.c (disassemble_dwarf_expression): Handle
2809 DW_OP_GNU_parameter_ref.
2810
2811 2012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2812
2813 * dwarf2read.c (read_call_site_scope): Do not gdb_assert for invalid
2814 read-in CALL_SITE_PARAMETER_PARAM_OFFSET.
2815
2816 2012-07-13 Doug Evans <dje@google.com>
2817
2818 * symtab.c (output_source_filename): Delete unnecessary forward decl.
2819 (filename_seen_cache): New struct.
2820 (INITIAL_FILENAME_SEEN_CACHE_SIZE): New macro.
2821 (create_filename_seen_cache): New function.
2822 (clear_filename_seen_cache, delete_filename_seen_cache): New functions.
2823 (filename_seen): Delete arg "first". New arg "cache". All callers
2824 updated.
2825 (output_source_filename_data): New struct.
2826 (output_source_filename): Delete arg "first". New arg "data".
2827 All callers updated.
2828 (sources_info): Delete local "first". New locals "data", "cleanups".
2829 Rewrite to use filename_seen_cache.
2830 (add_partial_filename_data): Delete member "first". New member
2831 "filename_seen_cache". All uses updated.
2832 (make_source_files_completion_list): Rewrite to use
2833 filename_seen_cache.
2834
2835 2012-07-12 Doug Evans <dje@google.com>
2836
2837 * psymtab.c (map_symbol_filenames_psymtab): Skip shared psymtabs.
2838
2839 2012-07-10 Doug Evans <dje@google.com>
2840
2841 PR gdb/13498
2842 * dwarf2read.c (dwarf2_per_objfile): New members n_type_unit_groups,
2843 all_type_unit_groups, type_unit_groups, tu_stats.
2844 (dwarf2_per_cu_data): Move "imported_symtabs" into new union "s".
2845 All uses updated. Add type_unit_group to union "s".
2846 (type_unit_group): New struct.
2847 (IS_TYPE_UNIT_GROUP): New macro.
2848 (abbrev_table): Delete unused member "section".
2849 (dw2_do_instantiate_symtab): Early exit if type_unit_group.
2850 (dw2_get_cu): Assert not used with type_unit_group.
2851 (dw2_get_primary_cu): New function.
2852 (dw2_build_type_unit_groups_reader): New function.
2853 (dw2_build_type_unit_groups): New function.
2854 (dw2_get_file_names): Assert not called on type units.
2855 (dw2_map_symtabs_matching_filename): Call dw2_build_type_unit_groups.
2856 Redo loop to iterate over type unit groups instead of type units.
2857 (dw2_expand_symtabs_matching, dw2_map_symbol_filenames): Ditto.
2858 (read_abbrev_offset): New function.
2859 (init_cutu_and_read_dies): New arg "abbrev_table". All callers
2860 updated.
2861 (create_partial_symtab): New function.
2862 (process_psymtab_comp_unit_reader): Assert not used with type units.
2863 Call create_partial_symtab.
2864 (process_psymtab_type_unit): Delete.
2865 (hash_type_unit_group, eq_type_unit_group): New functions.
2866 (allocate_type_unit_groups_table): New function.
2867 (NO_STMT_LIST_TYPE_UNIT_PSYMTAB): New macro.
2868 (NO_STMT_LIST_TYPE_UNIT_PSYMTAB_SIZE): New macro.
2869 (create_type_unit_group, get_type_unit_group): New functions.
2870 (tu_abbrev_offset): New struct.
2871 (sort_tu_by_abbrev_offset): New function.
2872 (add_type_unit_group_to_table): New function.
2873 (build_type_unit_groups): New function.
2874 (build_type_psymtabs_reader): New function.
2875 (build_type_psymtab_dependencies): New function.
2876 (build_type_psymtabs): Rewrite.
2877 (scan_partial_symbols): Flag an error if a DW_TAG_imported_unit
2878 is seen in a type unit.
2879 (process_queue): Move symtab expansion debugging printfs here.
2880 Call process_full_type_unit for type units.
2881 (compute_symtab_includes): Assert not called for type units.
2882 (process_cu_includes): Don't call compute_symtab_includes for
2883 type units.
2884 (process_full_type_unit): New function.
2885 (process_imported_unit_die): Flag an error if called for type units.
2886 (handle_DW_AT_stmt_list): Delete arg "want_line_info". All callers
2887 updated. Assert not called for type units.
2888 (read_file_scope): Call dwarf2_start_symtab.
2889 (setup_type_unit_groups): New function.
2890 (read_type_unit_scope): Rewrite.
2891 (abbrev_table_read_table): Initialize abbrev_table->offset.
2892 (abbrev_table_free_cleanup): New function.
2893 (dwarf2_start_symtab): New function.
2894 (load_full_type_unit): Assert not called for type unit groups.
2895 * buildsym.c (finish_block_internal): New arg "expandable".
2896 All callers updated.
2897 (start_symtab): Move most contents to ...
2898 (restart_symtab): ... here. New function.
2899 (reset_symtab_globals): New function.
2900 (end_symtab_1): Renamed from end_symtab. New arg "expandable".
2901 Call reset_symtab_globals.
2902 (end_symtab, end_expandable_symtab): New functions.
2903 (set_missing_symtab, augment_type_symtab): New functions.
2904 * buildsym.h (end_expandable_symtab): Declare.
2905 (augment_type_symtab, restart_symtab): Declare.
2906 * psympriv.h (struct partial_symtab): New member "anonymous".
2907 * psymtab.c (partial_map_symtabs_matching_filename): Ignore
2908 anonymous psymtabs.
2909 (read_psymtabs_with_filename): Ditto.
2910 (map_symbol_filenames_psymtab, psymtab_to_fullname): Ditto.
2911 (expand_symtabs_matching_via_partial): Ditto.
2912 (dump_psymtab): Update.
2913 * dictionary.c (dict_add_pending): New function.
2914 * dictionary.h (dict_add_pending): Declare.
2915
2916 2012-07-09 Doug Evans <dje@google.com>
2917
2918 * buildsym.c (start_subfile): Remove unnecessary check for
2919 name == NULL.
2920
2921 * psymtab.c (allocate_psymtab): Use host_address_to_string.
2922
2923 * dwarf2read.c (load_full_type_unit): Simplify.
2924
2925 * dwarf2read.c (dwarf2_per_objfile): Change type of all_type_units
2926 to struct signatured_type **. All uses updated.
2927
2928 * dwarf2read.c (dwarf2_attr_no_follow): Delete unused arg "cu".
2929 All callers updated.
2930
2931 2012-07-09 Tom Tromey <tromey@redhat.com>
2932
2933 * c-exp.y (check_parameter_typelist): New function.
2934 (parameter_typelist): Call it.
2935 * eval.c (make_params): Handle '(void)' case.
2936 * gdbtypes.c (lookup_function_type_with_arguments): Handle
2937 '(void)' case.
2938
2939 2012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
2940
2941 * common/linux-ptrace.c: Include gdb_assert.h.
2942 <__i386__> (linux_ptrace_test_ret_to_nx_instr): New declaration.
2943 <__i386__>: Include sys/reg.h, sys/mman.h, signal.h, sys/wait.h and
2944 stdint.h.
2945 (linux_ptrace_test_ret_to_nx, linux_ptrace_init_warnings): New
2946 functions.
2947 * common/linux-ptrace.h (linux_ptrace_init_warnings): New declarations.
2948 * linux-nat.c (linux_child_post_attach)
2949 (linux_child_post_startup_inferior): Call linux_ptrace_init_warnings.
2950
2951 2012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
2952
2953 * linux-thread-db.c (thread_db_find_new_threads_silently): Do not apply
2954 nptl <2.7 bug workaround for core files.
2955
2956 2012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
2957
2958 * linux-nat.c (resume_lwp, linux_nat_resume): Remove LP->SIGINFO
2959 clearing.
2960 (save_siginfo): Remove.
2961 (stop_wait_callback, linux_nat_filter_event): Remove the save_siginfo
2962 call.
2963 (resume_stopped_resumed_lwps): Remove LP->SIGINFO clearing.
2964 (linux_nat_get_siginfo): Use PTRACE_GETSIGINFO.
2965 * linux-nat.h (struct lwp_info): Remove field siginfo.
2966
2967 2012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
2968
2969 Code cleanup for the next patch.
2970 * arm-linux-nat.c (arm_linux_stopped_data_address): Change variable
2971 siginfo_p to siginfo, update its users incl. the linux_nat_get_siginfo
2972 call for it.
2973 * ia64-linux-nat.c (ia64_linux_stopped_data_address): Likewise.
2974 (ia64_linux_stopped_data_address):
2975 * linux-nat.c (linux_nat_get_siginfo): Add parameter siginfo, change
2976 the return value.
2977 * linux-nat.h (linux_nat_get_siginfo): Likewise.
2978 * ppc-linux-nat.c (ppc_linux_stopped_data_address): Change variable
2979 siginfo_p to siginfo, update its users incl. the linux_nat_get_siginfo
2980 call for it.
2981
2982 2012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
2983
2984 PR 14321
2985 * findcmd.c (parse_find_args): New variable pattern_buf_size_need.
2986 Increase buffer sizes to 2x we need, not just 2x of the previous size.
2987
2988 2012-07-06 Tom Tromey <tromey@redhat.com>
2989
2990 * c-exp.y (DOTDOTDOT): New token.
2991 (func_mod, exp): Use parameter_typelist.
2992 (parameter_typelist): New production.
2993 (tokentab3): Add "..." token.
2994 * eval.c (make_params): Handle varargs.
2995 * gdbtypes.c (lookup_function_type_with_arguments): Handle
2996 varargs.
2997
2998 2012-07-06 Tom Tromey <tromey@redhat.com>
2999
3000 PR exp/9608:
3001 * c-exp.y (%union) <tvec>: Change type.
3002 (func_mod): Now uses <tvec> type.
3003 (exp): Update for tvec change.
3004 (direct_abs_decl): Push the typelist.
3005 (func_mod): Return a typelist.
3006 (nonempty_typelist): Update for tvec change.
3007 * gdbtypes.c (lookup_function_type_with_arguments): New function.
3008 * gdbtypes.h (lookup_function_type_with_arguments): Declare.
3009 * parse.c (pop_type_list): New function.
3010 (push_typelist): New function.
3011 (follow_types): Handle tp_function_with_arguments.
3012 * parser-defs.h (type_ptr): New typedef. Define a VEC.
3013 (enum type_pieces) <tp_function_with_arguments>: New constant.
3014 (union type_stack_elt) <typelist_val>: New field.
3015 (push_typelist): Declare.
3016
3017 2012-07-06 Tom Tromey <tromey@redhat.com>
3018
3019 * c-exp.y (%union) <type_stack>: New field.
3020 (abs_decl, direct_abs_decl): Use <type_stack> type. Update.
3021 (ptr_operator_ts): New production.
3022 (ptype): Update.
3023 * parse.c (type_stack_reserve): New function.
3024 (check_type_stack_depth): Use it.
3025 (pop_type_stack, append_type_stack, push_type_stack)
3026 (get_type_stack, type_stack_cleanup): New functions.
3027 (follow_types): Handle tp_type_stack.
3028 (_initialize_parse): Simplify initialization.
3029 * parser-defs.h (enum type_pieces) <tp_type_stack>: New
3030 constant.
3031 (union type_stack_elt) <stack_val>: New field.
3032 (get_type_stack, append_type_stack, push_type_stack)
3033 (type_stack_cleanup): Declare.
3034
3035 2012-07-06 Tom Tromey <tromey@redhat.com>
3036
3037 * parser-defs.h (type_stack, type_stack_size, type_stack_depth):
3038 Remove.
3039 (struct type_stack): New.
3040 * parse.c (type_stack, type_stack_size, type_stack_depth):
3041 Remove.
3042 (type_stack): New global.
3043 (parse_exp_in_context, check_type_stack_depth)
3044 (insert_into_type_stack, insert_type, push_type, push_type_int)
3045 (insert_type_address_space, pop_type, pop_type_int)
3046 (_initialize_parse): Update.
3047
3048 2012-07-06 Tom Tromey <tromey@redhat.com>
3049
3050 * c-exp.y (func_mod, direct_abs_decl, abs_decl, ptr_operator):
3051 Remove %type.
3052
3053 2012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
3054
3055 * c-lang.c (c_printstr): Remove ununsed variable WIDTH.
3056
3057 2012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
3058 Jan Kratochvil <jan.kratochvil@redhat.com>
3059
3060 * cp-valprint.c (cp_print_value): Replace potentially unsafe
3061 alloca with xmalloc/xfree.
3062
3063 2012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
3064
3065 * MAINTAINERS (Write After Approval): Add myself to the list.
3066
3067 2012-07-05 Doug Evans <dje@google.com>
3068
3069 * dwarf2read.c (dw2_expand_symtabs_matching): Fix typo.
3070
3071 2012-07-05 Hui Zhu <hui_zhu@mentor.com>
3072
3073 * ax-gdb.c (cli/cli-utils.h): New include.
3074 (linespec.h): Ditto.
3075 (agent_eval_command_one): New function.
3076 (agent_command_1): Ditto.
3077 (agent_command): Call function agent_command_1.
3078 (agent_eval_command): Ditto.
3079 (_initialize_ax_gdb): Change help for "maint agent"
3080 and "maint agent-eval".
3081
3082 2012-07-05 Hui Zhu <hui_zhu@mentor.com>
3083
3084 * breakpoint.c (check_for_argument): Move to file cli/cli-utils.c.
3085 * cli/cli-utils.c (check_for_argument): New function.
3086 * cli/cli-utils.h (check_for_argument): Ditto.
3087
3088 2012-07-04 H.J. Lu <hongjiu.lu@intel.com>
3089
3090 * NEWS: Mention x32 ABI support.
3091
3092 2012-07-04 H.J. Lu <hongjiu.lu@intel.com>
3093
3094 * amd64-tdep.c (amd64_x32_init_abi): Set sp_regnum_from_eax to
3095 AMD64_RSP_REGNUM and pc_regnum_from_eax to AMD64_RIP_REGNUM.
3096
3097 * i386-tdep.c (i386_gdbarch_init): Initialize sp_regnum_from_eax
3098 and pc_regnum_from_eax to -1. Update SP regnum from
3099 sp_regnum_from_eax and PC regnum from pc_regnum_from_eax if
3100 needed.
3101
3102 * i386-tdep.h (gdbarch_tdep): Add sp_regnum_from_eax and
3103 pc_regnum_from_eax.
3104
3105 2012-07-03 Jan Kratochvil <jan.kratochvil@redhat.com>
3106
3107 Fix 'warning: parameter has incomplete type' with gcc-3.4.6.
3108 * dwarf2expr.h: Include gdbtypes.h.
3109 (enum call_site_parameter_kind, union call_site_parameter_u): Remove
3110 these forward declarations.
3111 (cu_offset, sect_offset): Move these ...
3112 * gdbtypes.h: Remove include dwarf2expr.h.
3113 (cu_offset, sect_offset): ... here.
3114
3115 2012-07-03 H.J. Lu <hongjiu.lu@intel.com>
3116
3117 * amd64-linux-tdep.c (linux_sigtramp_code): Renamed to ...
3118 (amd64_linux_sigtramp_code): This.
3119 (amd64_x32_linux_sigtramp_code): New.
3120 (LINUX_SIGTRAMP_LEN): Updated.
3121 (amd64_linux_sigtramp_start): Check x32 sigtramp.
3122
3123 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3124
3125 * linux-thread-db.c (thread_db_new_objfile): Fix comment typos.
3126
3127 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3128
3129 * config.in: Regenerate.
3130 * configure: Regenerate.
3131 * configure.ac: Remove check for gnu/libc-version.h.
3132 * linux-thread-db.c <HAVE_GNU_LIBC_VERSION_H>: Remove include of
3133 gnu/libc-version.h.
3134 (enable_thread_event_reporting) <HAVE_GNU_LIBC_VERSION_H>: Remove
3135 variables libc_version, libc_major and libc_minor. Replace sscanf by
3136 inferior_has_bug. Extend the comment.
3137
3138 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3139
3140 * linux-thread-db.c (inferior_has_bug): New function.
3141 (thread_db_find_new_threads_silently): Return boolean as checked by
3142 inferior_has_bug, describe it in the comments.
3143 (try_thread_db_load_1): Move call to thread_db_find_new_threads_silently
3144 earlier. Abort the initialization if it returned non-zero.
3145 (thread_db_new_objfile): Exclude debug files.
3146 (thread_db_find_new_threads_2): Preinitialize ERR. Check errors also
3147 if UNTIL_NO_NEW,
3148
3149 2012-07-02 Doug Evans <dje@google.com>
3150
3151 * dwarf2read.c (maybe_queue_comp_unit): Move definition next to others
3152 related to queue management.
3153
3154 * dwarf2read.c (create_debug_types_hash_table): Use "debug dwarf2-read"
3155 instead of "debug dwarf2-die" in debugging printfs.
3156 (create_debug_info_hash_table_reader): Ditto.
3157 (create_debug_info_hash_table): Ditto.
3158 (init_dwo_file): Ditto.
3159 (init_cutu_and_read_dies): Add debugging printf.
3160 (init_cutu_and_read_dies_no_follow): Ditto.
3161 (process_psymtab_comp_unit_reader): Ditto.
3162
3163 2012-07-02 Stan Shebs <stan@codesourcery.com>
3164
3165 Add target-side support for dynamic printf.
3166 * NEWS: Mention the additional style.
3167 * breakpoint.h (struct bp_target_info): New fields tcommands, persist.
3168 (struct bp_location): New field cmd_bytecode.
3169 * breakpoint.c: Include format.h.
3170 (disconnected_dprintf): New global.
3171 (parse_cmd_to_aexpr): New function.
3172 (build_target_command_list): New function.
3173 (insert_bp_location): Call it.
3174 (remove_breakpoints_pid): Skip dprintf breakpoints.
3175 (print_one_breakpoint_location): Ditto.
3176 (dprintf_style_agent): New global.
3177 (dprintf_style_enums): Add dprintf_style_agent.
3178 (update_dprintf_command_list): Add agent case.
3179 (agent_printf_command): New function.
3180 (_initialize_breakpoint): Add new commands.
3181 * common/ax.def (printf): New bytecode.
3182 * ax.h (ax_string): Declare.
3183 * ax-gdb.h (gen_printf): Declare.
3184 * ax-gdb.c: Include cli-utils.h, format.h.
3185 (gen_printf): New function.
3186 (maint_agent_print_command): New function.
3187 (_initialize_ax_gdb): Add maint agent-printf command.
3188 * ax-general.c (ax_string): New function.
3189 (ax_print): Add printf disassembly.
3190 * Makefile.in (SFILES): Add format.c
3191 (COMMON_OBS): Add format.o.
3192 * common/format.h: New file.
3193 * common/format.c: New file.
3194 * printcmd.c: Include format.h.
3195 (ui_printf): Call parse_format_string.
3196 * remote.c (remote_state): New field breakpoint_commands.
3197 (PACKET_BreakpointCommands): New enum.
3198 (remote_breakpoint_commands_feature): New function.
3199 (remote_protocol_features): Add new BreakpointCommands entry.
3200 (remote_can_run_breakpoint_commands): New function.
3201 (remote_add_target_side_commands): New function.
3202 (remote_insert_breakpoint): Call it.
3203 (remote_insert_hw_breakpoint): Ditto.
3204 (_initialize_remote): Add new packet configuration for
3205 target-side breakpoint commands.
3206 * target.h (struct target_ops): New field
3207 to_can_run_breakpoint_commands.
3208 (target_can_run_breakpoint_commands): New macro.
3209 * target.c (update_current_target): Handle
3210 to_can_run_breakpoint_commands.
3211
3212 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3213
3214 Execute -ix and -iex only after system and user gdbinit files.
3215 * main.c (captured_main): Move CMDARG_INIT_FILE and CMDARG_INIT_COMMAND
3216 processing down after gdbinit files.
3217
3218 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3219
3220 Add fnmatch-gnu module.
3221 * gnulib/Makefile.in (aclocal_m4_deps): Add new files and remove one.
3222 * gnulib/configure.ac (AC_INIT): Use now import/memmem.c.
3223 * gnulib/aclocal.m4: Regenerate.
3224 * gnulib/config.in: Regenerate.
3225 * gnulib/configure: Regenerate.
3226 * gnulib/import/dummy.c: Remove.
3227 * gnulib/import/Makefile.am: Regenerate.
3228 * gnulib/import/Makefile.in: Likewise.
3229 * gnulib/import/m4/gnulib-cache.m4: Likewise.
3230 * gnulib/import/m4/gnulib-comp.m4: Likewise.
3231 * gnulib/import/alloca.c: New file.
3232 * gnulib/import/alloca.in.h: Likewise.
3233 * gnulib/import/config.charset: Likewise.
3234 * gnulib/import/fnmatch.c: Likewise.
3235 * gnulib/import/fnmatch.in.h: Likewise.
3236 * gnulib/import/fnmatch_loop.c: Likewise.
3237 * gnulib/import/localcharset.c: Likewise.
3238 * gnulib/import/localcharset.h: Likewise.
3239 * gnulib/import/m4/alloca.m4: Likewise.
3240 * gnulib/import/m4/codeset.m4: Likewise.
3241 * gnulib/import/m4/configmake.m4: Likewise.
3242 * gnulib/import/m4/fcntl-o.m4: Likewise.
3243 * gnulib/import/m4/fnmatch.m4: Likewise.
3244 * gnulib/import/m4/glibc21.m4: Likewise.
3245 * gnulib/import/m4/localcharset.m4: Likewise.
3246 * gnulib/import/m4/locale-fr.m4: Likewise.
3247 * gnulib/import/m4/locale-ja.m4: Likewise.
3248 * gnulib/import/m4/locale-zh.m4: Likewise.
3249 * gnulib/import/m4/mbrtowc.m4: Likewise.
3250 * gnulib/import/m4/mbsinit.m4: Likewise.
3251 * gnulib/import/m4/mbsrtowcs.m4: Likewise.
3252 * gnulib/import/m4/mbstate_t.m4: Likewise.
3253 * gnulib/import/m4/stdbool.m4: Likewise.
3254 * gnulib/import/m4/wchar_h.m4: Likewise.
3255 * gnulib/import/m4/wctype_h.m4: Likewise.
3256 * gnulib/import/m4/wint_t.m4: Likewise.
3257 * gnulib/import/mbrtowc.c: Likewise.
3258 * gnulib/import/mbsinit.c: Likewise.
3259 * gnulib/import/mbsrtowcs-impl.h: Likewise.
3260 * gnulib/import/mbsrtowcs-state.c: Likewise.
3261 * gnulib/import/mbsrtowcs.c: Likewise.
3262 * gnulib/import/ref-add.sin: Likewise.
3263 * gnulib/import/ref-del.sin: Likewise.
3264 * gnulib/import/stdbool.in.h: Likewise.
3265 * gnulib/import/streq.h: Likewise.
3266 * gnulib/import/strnlen1.c: Likewise.
3267 * gnulib/import/strnlen1.h: Likewise.
3268 * gnulib/import/verify.h: Likewise.
3269 * gnulib/import/wchar.in.h: Likewise.
3270 * gnulib/import/wctype.in.h: Likewise.
3271
3272 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3273
3274 Support shell wildcards for 'set auto-load safe-path'.
3275 * auto-load.c: Include fnmatch.h.
3276 (filename_is_in_dir): Rename to ...
3277 (filename_is_in_pattern_1, filename_is_in_pattern): ... here and split
3278 it. Update function comment. Rename dir_len to pattern_len. New
3279 variables filename_len, pattern and filename. Add more DEBUG_AUTO_LOAD
3280 messages. Use gdb_filename_fnmatch.
3281 (filename_is_in_auto_load_safe_path_vec): Rename variable dir to
3282 pattern.
3283 (_initialize_auto_load): Extend the "set auto-load safe-path" help text.
3284 * defs.h (gdb_filename_fnmatch): New declaration.
3285 * utils.c: Include fnmatch.h.
3286 (gdb_filename_fnmatch): New function.
3287
3288 2012-07-02 Sergio Durigan Junior <sergiodj@redhat.com>
3289
3290 * breakpoint.c (BREAK_ARGS_HELP): Include help message for the new
3291 `-probe' and `-probe-stap' options.
3292
3293 2012-07-01 Yao Qi <yao@codesourcery.com>
3294
3295 * breakpoint.c: Removed always_inserted_auto, always_inserted_on,
3296 always_inserted_off, and always_inserted_enums.
3297 Change always_inserted_mode's type to 'enum auto_boolean'.
3298 (show_always_inserted_mode, breakpoint_always_inserted_mode): Update
3299 callers.
3300 (_initialize_breakpoint): Call add_setshow_auto_boolean_cmd instead
3301 of add_setshow_enum_cmd.
3302 * infrun.c: Remove can_use_displaced_stepping_auto,
3303 can_use_displaced_stepping_on, can_use_displaced_stepping_off, and
3304 can_use_displaced_stepping_enum.
3305 Change can_use_displaced_stepping's type to 'enum auto_boolean'.
3306 (show_can_use_displaced_stepping, use_displaced_stepping): Update callers.
3307 (_initialize_infrun): Call add_setshow_auto_boolean_cmd instead of
3308 add_setshow_enum_cmd.
3309
3310 2012-06-30 Doug Evans <dje@google.com>
3311
3312 * dwarf2read.c (signatured_type): Make "per_cu" member first.
3313 (init_cutu_and_read_dies): Handle rereading a DWO CU while it's
3314 currently being read. Propagate DW_AT_comp_dir to DWO DIE.
3315
3316 2012-06-29 Doug Evans <dje@google.com>
3317
3318 * linespec.c: #include "stack.h".
3319 (decode_line_with_current_source): Moved here from symtab.c and
3320 renamed from decode_line_spec. All callers updated.
3321 (decode_line_with_last_displayed): Moved here from breakpoint.c and
3322 renamed from decode_line_spec_1. All callers updated.
3323 * linespec.h (decode_line_with_current_source): Move declaration here
3324 from symtab.h and renamed from decode_line_spec.
3325 (decode_line_with_last_displayed): Move declaration here from symtab.h
3326 and renamed from decode_line_spec_1.
3327 * macrocmd.c: #include "linespec.h".
3328 * symtab.c: Remove #include "linespec.h".
3329
3330 2012-06-28 Doug Evans <dje@google.com>
3331
3332 * dwarf2read.c (get_cu_length): New function.
3333 (offset_in_cu_p, error_check_comp_unit_head): Call it.
3334 (create_debug_types_hash_table): Ditto.
3335 (init_cutu_and_read_dies): Ditto.
3336 (init_cutu_and_read_dies_no_follow): Ditto.
3337
3338 * dwarf2read.c (dwarf2_find_base_address): Move definition.
3339
3340 * dwarf2read.c (ABBREV_HASH_SIZE): Remove enclosing #ifndef/#endif.
3341 (struct abbrev_table): Define.
3342 (dwarf2_cu): Replace members dwarf2_abbrevs, abbrev_obstack with
3343 abbrev_table.
3344 (init_cutu_and_read_dies): Update.
3345 (abbrev_table_alloc_abbrev): New function. Replaces
3346 dwarf_alloc_abbrev. All callers updated.
3347 (abbrev_table_add_abbrev): New function.
3348 (abbrev_table_lookup_abbrev): New function. Replaces
3349 dwarf2_lookup_abbrev. All callers updated.
3350 (abbrev_table_read_table): New function. Contents moved here from
3351 dwarf2_read_abbrevs.
3352 (dwarf2_read_abbrevs): Call it.
3353 (abbrev_table_free): New function.
3354 (dwarf2_free_abbrev_table): Call it.
3355
3356 2012-06-28 Stan Shebs <stan@codesourcery.com>
3357
3358 * osdata.c (info_osdata_command): Filter out "Title" columns
3359 from non-MI uses.
3360 * common/linux-osdata.c (struct osdata_type): Add title field.
3361 (osdata_table): Add titles to each entry.
3362 (linux_command_xfer_osdata): Add a column for title data.
3363
3364 2012-06-28 Stan Shebs <stan@codesourcery.com>
3365
3366 Make logging work for MI.
3367 * NEWS: Mention it.
3368 * interps.h (interp_set_logging_ftype): New typedef.
3369 (struct interp_procs): New field set_logging_proc.
3370 (current_interp_set_logging): Declare.
3371 * interps.c (current_interp_set_logging): New function.
3372 * cli/cli-logging.c: Include interps.h.
3373 (set_logging_redirect): Call current_interp_set_logging.
3374 (pop_output_files): Ditto.
3375 (handle_redirections): Ditto, plus skip ui-out redirect if MI.
3376 * mi/mi-console.h (mi_console_set_raw): Declare.
3377 * mi/mi-console.c (mi_console_set_raw): New function.
3378 * mi/mi-interp.c (saved_raw_stdout): New global.
3379 (mi_set_logging): New function.
3380 (_initialize_mi_interp): Add it to interp procs.
3381
3382 2012-06-28 Doug Evans <dje@google.com>
3383
3384 * symtab.c (lookup_symbol_aux_objfile): Use
3385 ALL_OBJFILE_PRIMARY_SYMTABS.
3386
3387 * gdbtypes.c (lookup_typename): Rename local variable "tmp" to "type".
3388
3389 2012-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3390
3391 * common/buffer.c: Include inttypes.h and stdint.h.
3392 (buffer_xml_printf): Use PRId64, PRIu64, PRIx64 and PRIo64.
3393
3394 2012-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3395 Pedro Alves <palves@redhat.com>
3396
3397 * gdbthread.h (ALL_THREADS): New macro.
3398 (thread_list): Declare.
3399 * infrun.c (handle_inferior_event) <spurious signal>: Don't keep
3400 going, but instead fall through to the stepping handling.
3401 * linux-nat.c (resume_lwp): New parameter 'signo'. Resume with
3402 the passed in signal. Adjust debug output.
3403 (resume_callback): Rename to ...
3404 (linux_nat_resume_callback): ... this. Pass the thread's last
3405 stop signal, if in "pass" state.
3406 (linux_nat_resume): Adjust to rename.
3407 (stop_wait_callback): New assertion. Don't respawn signals;
3408 instead let the LWP remain with SIGNALLED set.
3409 (linux_nat_wait_1): Remove flushing of pending SIGSTOPs.
3410 * remote.c (append_pending_thread_resumptions): New.
3411 (remote_vcont_resume): Call it.
3412 * target.h (target_resume): Extend comment.
3413
3414 2012-06-28 Iain Sandoe <iain@codesourcery.com>
3415
3416 * auxv.c (fprint_target_auxv): Handle extended cache data tags.
3417
3418 2012-06-27 Doug Evans <dje@google.com>
3419
3420 * dwarf2read.c (dwarf2_cu): Add ranges_base.
3421 Delete have_addr_base, unused. All uses updated.
3422 (init_cutu_and_read_dies): Process DW_AT_GNU_ranges_base.
3423 (dwarf2_get_pc_bounds): Add ranges_base.
3424 (dwarf2_record_block_ranges): Ditto.
3425
3426 2012-06-27 Tom Tromey <tromey@redhat.com>
3427
3428 PR macros/7961:
3429 * varobj.c (varobj_create): Update.
3430 (varobj_set_value): Update.
3431 * tracepoint.c (validate_actionline): Update.
3432 (encode_actions_1): Update.
3433 * parse.c (parse_exp_1): Add 'pc' argument.
3434 (parse_exp_in_context): Add 'pc' argument. Change how
3435 expression_context_pc is set.
3436 (parse_expression): Update.
3437 (parse_field_expression): Update.
3438 * expression.h (parse_exp_1): Update.
3439 * eval.c (parse_to_comma_and_eval): Update.
3440 * breakpoint.c (set_breakpoint_condition): Update.
3441 (update_watchpoint): Update.
3442 (init_breakpoint_sal): Update
3443 (find_condition_and_thread): Update.
3444 (watch_command_1): Update.
3445 (update_breakpoint_locations): Update.
3446 * ada-lang.c (ada_read_renaming_var_value): Update.
3447 (create_excep_cond_exprs): Update.
3448
3449 2012-06-27 Doug Evans <dje@google.com>
3450
3451 * dwarf2read.c (per_cu_header_read_in): Simplify, and handle
3452 type units.
3453
3454 2012-06-26 Doug Evans <dje@google.com>
3455
3456 * dwarf2read.c (read_and_check_comp_unit_head): Delete unnecessary
3457 prototype.
3458 (error_check_comp_unit_head): New arg abbrev_section. All callers
3459 updated.
3460 (read_and_check_comp_unit_head): Ditto.
3461 (read_and_check_type_unit_head): Ditto.
3462
3463 2012-06-26 Siva Chandra Reddy <sivachandra@google.com>
3464
3465 New attribute 'last' for gdb.Symtab_and_line.
3466 * NEWS (Python Scripting): Add entry about the new attribute.
3467 * python/py-symtab.c (salpy_get_last): New function which
3468 implements the get method for the 'last' attribute of
3469 gdb.Symtab_and_line.
3470 (sal_object_getset): Add entry for the 'last' attribute.
3471
3472 2012-06-26 Doug Evans <dje@google.com>
3473
3474 * dwarf2read.c (dwo_section_names): Add macinfo_dwo, macro_dwo.
3475 (dwo_sections): Add macinfo, macro.
3476 (dwarf2_locate_dwo_sections): Watch for macro sections.
3477 (dwarf_decode_macros): Remove args lh, abfd, section, section_name.
3478 All callers updated. Handle DWO files.
3479
3480 * NEWS: Mention new options "set debug dwarf2-read" and
3481 "set debug symtab-create".
3482 * dwarf2read.c (dwarf2_read_debug): New static global.
3483 (dwarf2_build_psymtabs_hard): Add debugging printfs.
3484 (process_queue): Ditto.
3485 (process_full_comp_unit): Ditto.
3486 (_initialize_dwarf2_read): Add new option "set debug dwarf2-read".
3487 * elfread.c (elf_symfile_read): Add debugging printf.
3488 * minsyms.c (install_minimal_symbols): Ditto.
3489 * psymtab.c (allocate_psymtab): Ditto.
3490 * symfile.c (allocate_symtab): Ditto.
3491 * symtab.c (symtab_create_debug): New global.
3492 (_initialize_symtab): Add new option "set debug symtab-create".
3493 * symtab.h (symtab_create_debug): Declare.
3494
3495 * dwarf2read.c (lookup_dwo_comp_unit): Enhance comment.
3496 (lookup_dwo_type_unit): Ditto.
3497
3498 2012-06-26 Roland McGrath <roland@hack.frob.com>
3499 H.J. Lu <hongjiu.lu@intel.com>
3500
3501 * amd64-linux-nat.c: Include <sys/user.h>.
3502 (ps_get_thread_area): Use PTRACE_PEEKUSER to get fs_base/gs_base
3503 if HAVE_STRUCT_USER_REGS_STRUCT_FS_BASE or
3504 HAVE_STRUCT_USER_REGS_STRUCT_GS_BASE is defined.
3505
3506 * configure.ac: Check if the fs_base and gs_base members of
3507 `struct user_regs_struct' exist.
3508 * config.in: Regenerated.
3509 * configure: Likewise.
3510
3511 2012-06-25 Michael Eager <eager@eagercon.com>
3512
3513 PR python/14291
3514 * python/python.c (gdbpy_write): Check for interrupted output.
3515
3516 2012-06-25 Greta Yorsh <greta.yorsh@arm.com>
3517
3518 * arm-tdep.c (arm_in_function_epilogue_p): Recognize POP with a single
3519 register as a stack alignment in ARM mode.
3520
3521 2012-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3522
3523 Update gnulib to GIT commit a39f53ccb70a613e647e1019fb4c63645220267e.
3524 * gnulib/config.in: Regenerate.
3525 * gnulib/configure: Likewise.
3526 * gnulib/import/m4/extensions.m4: Update it.
3527 * gnulib/import/m4/gnulib-common.m4: Likewise.
3528 * gnulib/import/m4/memmem.m4: Likewise.
3529 * gnulib/import/m4/mmap-anon.m4: Likewise.
3530 * gnulib/import/m4/multiarch.m4: Likewise.
3531 * gnulib/import/stdint.in.h: Likewise.
3532
3533 2012-06-24 Yao Qi <yao@codesourcery.com>
3534
3535 * corefile.c (write_memory_with_notification): New.
3536 * gdbcore.h: Declare write_memory_with_notification.
3537 * ada-lang.c (ada_value_assign): Replace 'write_memory' and
3538 'observer_notify_memory_changed' with 'write_memory_with_notification'.
3539 * valops.c (value_assign): Likewise.
3540 * python/py-inferior.c (infpy_write_memory): Call
3541 'write_memory_with_notification'.
3542
3543 2012-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3544
3545 * cc-with-index.sh: Use also -ex "set auto-load no".
3546
3547 2012-06-23 Doug Evans <dje@google.com>
3548
3549 PR 14125
3550 * NEWS: Document additions to .gdb_index.
3551 * dwarf2read.c: #include "gdb/gdb-index.h".
3552 (DW2_GDB_INDEX_SYMBOL_STATIC_SET_VALUE): New macro.
3553 (DW2_GDB_INDEX_SYMBOL_KIND_SET_VALUE): New macro.
3554 (DW2_GDB_INDEX_CU_SET_VALUE): New macro.
3555 (dwarf2_read_index): Recognize version 7.
3556 (dw2_do_expand_symtabs_matching): New args want_specific_block,
3557 block_kind, domain): All callers updated.
3558 (dw2_find_symbol_file): Handle new index CU values.
3559 (dw2_expand_symtabs_matching): Match symbol kind if requested.
3560 (add_index_entry): New args is_static, kind. All callers updated.
3561 (offset_type_compare, uniquify_cu_indices): New functions
3562 (symbol_kind): New function.
3563 (write_psymtabs_to_index): Remove duplicate CU values.
3564 (write_psymtabs_to_index): Write .gdb_index version 7.
3565
3566 2012-06-22 Joel Brobecker <brobecker@adacore.com>
3567
3568 * configure.ac (build_warnings): Add -Wdeclaration-after-statement.
3569 * configure: Regenerate.
3570
3571 2012-06-20 Yao Qi <yao@codesourcery.com>
3572
3573 * python/py-inferior.c: Update comments of infpy_read_memory
3574 and infpy_write_memory.
3575
3576 2012-06-19 Tom Tromey <tromey@redhat.com>
3577
3578 PR exp/9514:
3579 * parser-defs.h (insert_type, insert_type_address_space): Declare.
3580 (push_type_address_space): Remove.
3581 * parse.c (insert_into_type_stack): New function.
3582 (insert_type): Likewise.
3583 (insert_type_address_space): Rename from push_type_address_space.
3584 Insert tp_space_identifier.
3585 * c-exp.y (ptr_operator): New production.
3586 (abs_decl): Use ptr_operator.
3587 (space_identifier): Call insert_type_address_space.
3588 (ptype): Don't use const_or_volatile_or_space_identifier.
3589 (const_or_volatile_noopt): Call insert_type.
3590 (conversion_type_id, conversion_declarator): New productions.
3591 (operator): Use conversion_type_id.
3592
3593 2012-06-18 Doug Evans <dje@google.com>
3594
3595 * symtab.h (minimal_symbol): New member created_by_gdb.
3596 * elfread.c (elf_symtab_read): Set created_by_gdb for @plt minsym
3597 created by gdb.
3598 * symtab.c (lookup_symbol_in_objfile_from_linkage_name): New function.
3599 (search_symbols): Call it instead of lookup_symbol.
3600 Skip symbols created by gdb. Only scan minsyms if nfiles == 0.
3601
3602 * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_const_index.
3603 Adjust address for DW_OP_GNU_addr_index.
3604 * dwarf2expr.h (dwarf_expr_context): Update comment.
3605 * dwarf2loc.c (locexpr_describe_location_piece): New arg per_cu,
3606 all callers updated. Handle TLS vars described with
3607 DW_OP_GNU_const_index.
3608 (disassemble_dwarf_expression): Handle DW_OP_GNU_addr_index
3609 and DW_OP_GNU_const_index.
3610 * dwarf2read.c (decode_locdesc): Handle DW_OP_GNU_addr_index.
3611
3612 * block.c (find_block_in_blockvector): Make explicit the fact that we
3613 ignore GLOBAL_BLOCK.
3614
3615 2012-06-18 Tom Tromey <tromey@redhat.com>
3616
3617 * c-exp.y (operator): Remove trailing space after "delete" and
3618 "delete[]".
3619
3620 2012-06-18 Mark Kettenis <kettenis@gnu.org>
3621 Jan Kratochvil <jan.kratochvil@redhat.com>
3622
3623 Switch i386 and derived targets to ON_STACK.
3624 * amd64-dicos-tdep.c (amd64_dicos_push_dummy_code): Remove.
3625 (amd64_dicos_init_abi): Remove its installment.
3626 * dicos-tdep.c (dicos_init_abi): Remove the
3627 set_gdbarch_call_dummy_location call. Update the comment here.
3628 * i386-dicos-tdep.c (i386_dicos_push_dummy_code): Remove.
3629 (i386_dicos_init_abi): Remove its installment.
3630 * i386-tdep.c (i386_push_dummy_code): New function.
3631 (i386_gdbarch_init): Call set_gdbarch_call_dummy_location, install
3632 i386_push_dummy_code.
3633
3634 2012-06-18 Jan Kratochvil <jan.kratochvil@redhat.com>
3635
3636 Remove stale dummy frames.
3637 * breakpoint.c: Include dummy-frame.h.
3638 (longjmp_breakpoint_ops): New variable.
3639 (update_breakpoints_after_exec, breakpoint_init_inferior): Delete also
3640 bp_longjmp_call_dummy.
3641 (bpstat_what, bptype_string, print_one_breakpoint_location)
3642 (init_bp_location): Support bp_longjmp_call_dummy.
3643 (set_longjmp_breakpoint): Use longjmp_breakpoint_ops. Comment why.
3644 (set_longjmp_breakpoint_for_call_dummy)
3645 (check_longjmp_breakpoint_for_call_dummy, longjmp_bkpt_dtor): New
3646 functions.
3647 (initialize_breakpoint_ops): Initialize longjmp_breakpoint_ops.
3648 * breakpoint.h (enum bptype): New item bp_longjmp_call_dummy. Delete
3649 FIXME comment and extend the other comment for bp_call_dummy.
3650 (set_longjmp_breakpoint_for_call_dummy)
3651 (check_longjmp_breakpoint_for_call_dummy): New declarations.
3652 * dummy-frame.c: Include gdbthread.h.
3653 (pop_dummy_frame_bpt): New function.
3654 (pop_dummy_frame): Call pop_dummy_frame_bpt.
3655 (dummy_frame_discard): New function.
3656 (cleanup_dummy_frames): Update the comment about longjmps.
3657 * dummy-frame.h (dummy_frame_discard): New declaration.
3658 * gdbthread.h (struct thread_info): Extend initiating_frame comment.
3659 * infcall.c (call_function_by_hand): New variable longjmp_b. Call
3660 set_longjmp_breakpoint_for_call_dummy. Chain its breakpoints with BPT.
3661 * infrun.c (handle_inferior_event) <BPSTAT_WHAT_CLEAR_LONGJMP_RESUME>:
3662 Add case 4 comment. Call check_longjmp_breakpoint_for_call_dummy and
3663 keep_going if IS_LONGJMP and there is no other reason to stop.
3664
3665 2012-06-18 Greta Yorsh <Greta.Yorsh@arm.com>
3666
3667 * remote-sim.c (sim_command_completer): Initialize
3668 variable 'result'.
3669
3670 2012-06-17 Jan Kratochvil <jan.kratochvil@redhat.com>
3671
3672 * dwarf2expr.c (execute_stack_op): Support DW_OP_GNU_parameter_ref.
3673 * dwarf2loc.c (call_site_parameter_matches): Support
3674 CALL_SITE_PARAMETER_PARAM_OFFSET.
3675 (needs_dwarf_reg_entry_value): Push stub value.
3676 * dwarf2read.c (read_call_site_scope): New variable origin. Support
3677 CALL_SITE_PARAMETER_PARAM_OFFSET and its DW_AT_abstract_origin.
3678 * gdbtypes.h (enum call_site_parameter_kind): New item
3679 CALL_SITE_PARAMETER_PARAM_OFFSET.
3680 (struct call_site.parameter.u): New field param_offset.
3681
3682 2012-06-17 Jan Kratochvil <jan.kratochvil@redhat.com>
3683
3684 Code cleanup: Generalize call_site.parameter key.
3685 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_entry_value>: Remove
3686 variable dwarf_reg. New variable kind_u. Update parameters to
3687 push_dwarf_reg_entry_value.
3688 (ctx_no_push_dwarf_reg_entry_value): Update parameters.
3689 * dwarf2expr.h (enum call_site_parameter_kind)
3690 (union call_site_parameter_u): Forward declarations.
3691 (struct dwarf_expr_context_funcs): Update parameters and their
3692 description for push_dwarf_reg_entry_value.
3693 (ctx_no_push_dwarf_reg_entry_value): Update parameters.
3694 * dwarf2loc.c (call_site_parameter_matches): New function.
3695 (dwarf_expr_reg_to_entry_parameter): Update parameters and their
3696 description. Use call_site_parameter_matches.
3697 (dwarf_expr_push_dwarf_reg_entry_value, value_of_dwarf_reg_entry):
3698 Update parameters and their description.
3699 (value_of_dwarf_block_entry): Remove variables dwarf_reg and fb_offset.
3700 New variable kind_u. Adjust the caller for updated parameters.
3701 (needs_dwarf_reg_entry_value): Update parameters.
3702 * dwarf2read.c (read_call_site_scope): New variable loc. Use it
3703 instead of attr. Update for the changed fields of struct
3704 call_site_parameter.
3705 * gdbtypes.h: Include dwarf2expr.h.
3706 (enum call_site_parameter_kind): New.
3707 (struct call_site.parameter): New field kind. Wrap dwarf_reg and
3708 fb_offset into new union u.
3709
3710 2012-06-16 H.J. Lu <hongjiu.lu@intel.com>
3711
3712 * amd64-tdep.c (amd64_x32_analyze_stack_align): New function.
3713 (amd64_analyze_prologue): Call amd64_x32_analyze_stack_align
3714 for x32.
3715
3716 2012-06-16 H.J. Lu <hongjiu.lu@intel.com>
3717
3718 * amd64-linux-nat.c (compat_x32_clock_t): New.
3719 (compat_x32_siginfo_t): Likewise.
3720 (compat_x32_siginfo_from_siginfo): Likewise.
3721 (siginfo_from_compat_x32_siginfo): Likewise.
3722 (amd64_linux_siginfo_fixup): Call compat_x32_siginfo_from_siginfo
3723 and siginfo_from_compat_x32_siginfo for x32.
3724
3725 2012-06-15 Hui Zhu <hui_zhu@mentor.com>
3726
3727 * tracepoint.c (tfile_xfer_partial): Add a lseek.
3728
3729 2012-06-15 H.J. Lu <hongjiu.lu@intel.com>
3730
3731 * amd64-linux-nat.c (ps_get_thread_area): Check bits_per_word
3732 instead of gdbarch_ptr_bit.
3733 * amd64-nat.c (amd64_native_gregset_reg_offset): Likewise.
3734 (amd64_supply_native_gregset): Likewise.
3735 (amd64_collect_native_gregset): Likewise.
3736 * amd64-tdep.c (amd64_supply_fxsave): Likewise.
3737 (amd64_supply_xsave): Likewise.
3738 (amd64_collect_fxsave): Likewise.
3739 (amd64_collect_xsave): Likewise.
3740
3741 2012-06-15 H.J. Lu <hongjiu.lu@intel.com>
3742
3743 * amd64-linux-nat.c (AMD64_LINUX_X32_DS): New.
3744 (amd64_linux_read_description): Check DS segment register for
3745 x32 process.
3746
3747 2012-06-15 Tom Tromey <tromey@redhat.com>
3748
3749 * dwarf2read.c (dw2_find_symbol_file): Unconditionally use
3750 init_cutu_and_read_dies.
3751
3752 2012-06-15 Iain Sandoe <iain@codesourcery.com>
3753
3754 * MAINTAINERS (Write After Approval): Add myself to the list.
3755
3756 2012-06-15 Tom Tromey <tromey@redhat.com>
3757
3758 * valops.c (value_find_oload_method_list): Now static.
3759 * value.h (value_find_oload_method_list): Don't declare.
3760
3761 2012-06-15 Tom Tromey <tromey@redhat.com>
3762
3763 * valops.c (find_overload_match): Use value_ind.
3764
3765 2012-06-15 Maciej W. Rozycki <macro@codesourcery.com>
3766
3767 * infrun.c (handle_inferior_event): Correct indentation.
3768
3769 2012-06-14 Doug Evans <dje@google.com>
3770
3771 * dwarf2loc.c (debug_loc_kind): Add DEBUG_LOC_START_LENGTH.
3772 (DEBUG_LOC_START_END): Renamed from DEBUG_LOC_NORMAL.
3773 All uses updated.
3774 (decode_debug_loc_dwo_addresses): New arg "byte_order". All callers
3775 updated. Handle DEBUG_LOC_START_LENGTH.
3776 (dwarf2_find_location_expression): Handle DEBUG_LOC_START_LENGTH.
3777 (loclist_describe_location): Ditto.
3778
3779 2012-06-14 Maciej W. Rozycki <macro@codesourcery.com>
3780
3781 PR backtrace/13866
3782 * infrun.c (handle_inferior_event): Re-fetch frame and gdbarch
3783 after hiding inline functions.
3784
3785 2012-06-13 Joel Brobecker <brobecker@adacore.com>
3786
3787 * inf-ttrace.c (_initialize_hppa_hpux_nat): Rename into
3788 _initialize_inf_ttrace.
3789
3790 2012-06-13 Joel Brobecker <brobecker@adacore.com>
3791
3792 * ia64-hpux-nat.c (_initialize_ia64_hpux_nat): Renames
3793 _initialize_hppa_hpux_nat.
3794
3795 2012-06-13 Joel Brobecker <brobecker@adacore.com>
3796
3797 * remote-sim.c (sim_command_completer): Change type of return
3798 value to "VEC (char_ptr) *". Adjust implementation accordingly.
3799
3800 2012-06-13 Mark Kettenis <kettenis@gnu.org>
3801 Jan Kratochvil <jan.kratochvil@redhat.com>
3802
3803 PR tdep/14222
3804 * i386-tdep.c (i386_push_dummy_call): Unconditionally align the
3805 stack on a 16-byte boundary.
3806
3807 2012-06-13 Kaushik Srenevasan <kaushik@twitter.com>
3808
3809 * jit.c (finalize_symtab): Set function's return type to 'void' by
3810 default.
3811
3812 2012-06-13 Mark Kettenis <kettenis@gnu.org>
3813 H.J. Lu <hongjiu.lu@intel.com>
3814
3815 * amd64-linux-tdep.c (amd64_linux_init_abi_common): New function.
3816 Move bits common to both the classic LP64 and the new x32 ILP32
3817 ABI here.
3818 (amd64_linux_init_abi): Call amd64_linux_init_abi_common.
3819 (amd64_x32_linux_init_abi): New function.
3820 (_initialize_amd64_linux_tdep): Register osabi for bfd_mach_x64_32
3821 subtype.
3822
3823 * i386-tdep.h (i386_pseudo_register_name): New prototype.
3824 * i386-tdep.c (i386_pseudo_register_name): Make public.
3825 * amd64-tdep.h (amd64_x32_init_abi): New prototype.
3826 * amd64-tdep.c (amd64_dword_names): Add "eip".
3827 (amd64_x32_pseudo_register_type): New function
3828 (amd64_x32_init_abi): New function.
3829
3830 2012-06-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3831
3832 PR build/14003
3833 * inferior.h (struct inferior_suspend_state): Comment out.
3834 (struct inferior): Comment out the field suspend.
3835 * infrun.c (struct infcall_suspend_state): Comment out the field
3836 inferior_suspend.
3837 (save_infcall_suspend_state, restore_infcall_suspend_state): Comment
3838 out its assignment.
3839
3840 2012-06-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3841
3842 PR c++/14177 - Fix parsing TYPENAME:: in parentheses.
3843 * c-exp.y (classify_inner_name): Remove caller assumptions in the
3844 function comment. Return ERROR for unresolved cases. Implement
3845 returning proper NAME.
3846 (yylex): Accept also NAME from classify_inner_name.
3847 * cp-namespace.c (cp_lookup_nested_type): Rename to ...
3848 (cp_lookup_nested_symbol): ... here. Return any found symbol, not just
3849 LOC_TYPEDEF type.
3850 * cp-support.h (cp_lookup_nested_type): Update its declaration.
3851
3852 2012-06-13 Tom Tromey <tromey@redhat.com>
3853
3854 * breakpoint.c (condition_completer): New function.
3855 (_initialize_breakpoint): Use it.
3856 * value.c (complete_internalvar): New function.
3857 * value.h (complete_internalvar): Declare.
3858
3859 2012-06-13 Tom Tromey <tromey@redhat.com>
3860
3861 * ada-lang.c (ada_make_symbol_completion_list): Return a VEC.
3862 * breakpoint.c (catch_syscall_completer): Return a VEC.
3863 * cli/cli-cmds.c (complete_command): Update.
3864 * cli/cli-decode.c (complete_on_cmdlist): Return a VEC.
3865 (complete_on_enum): Likewise.
3866 * command.h: Include gdb_vecs.h.
3867 (completer_ftype): Change return type.
3868 (complete_on_cmdlist, complete_on_enum): Likewise.
3869 * completer.c (noop_completer, filename_completer)
3870 (location_completer): Return a VEC.
3871 (add_struct_fields): Remove 'nextp' argument. Change 'output'
3872 to a VEC.
3873 (expression_completer, complete_line_internal, complete_line)
3874 (command_completer): Return a VEC.
3875 (gdb_completion_word_break_characters, line_completion_function):
3876 Update.
3877 * completer.h: Include gdb_vecs.h.
3878 (complete_line, noop_completer, filename_completer)
3879 (expression_completer, location_completer, command_completer):
3880 Update.
3881 * f-lang.c (f_word_break_characters): Return a VEC.
3882 * interps.c (interpreter_completer): Return a VEC.
3883 * language.h (struct language_defn)
3884 <la_make_symbol_completion_list>: Return a VEC.
3885 * python/py-cmd.c (cmdpy_completer): Return a VEC.
3886 * symtab.c (free_completion_list): Take a VEC.
3887 (return_val_size, return_val_index): Remove.
3888 (return_val): Now a VEC.
3889 (completion_list_add_name): Update.
3890 (default_make_symbol_completion_list_break_on)
3891 (default_make_symbol_completion_list, make_symbol_completion_list)
3892 (make_symbol_completion_list_fn, make_file_symbol_completion_list):
3893 Return a VEC.
3894 (add_filename_to_list): Update.
3895 (struct add_partial_filename_data) <list_used, list_alloced>: Remove.
3896 <list>: Now a VEC.
3897 (maybe_add_partial_symtab_filename): Update.
3898 (make_source_files_completion_list): Return a VEC.
3899 * symtab.h (default_make_symbol_completion_list_break_on)
3900 (default_make_symbol_completion_list, make_symbol_completion_list)
3901 (make_symbol_completion_list_fn, make_file_symbol_completion_list)
3902 (make_source_files_completion_list): Update.
3903
3904 2012-06-13 Tom Tromey <tromey@redhat.com>
3905
3906 * breakpoint.c (add_catch_command): Use completer_ftype.
3907 * breakpoint.h: Include command.h.
3908 (add_catch_command): Use completer_ftype.
3909 * cli/cli-decode.c (set_cmd_completer): Use completer_ftype.
3910 * cli/cli-decode.h (struct cmd_list_element) <completer>:
3911 Use completer_ftype.
3912 * command.h (completer_ftype): New typedef.
3913 (set_cmd_completer): Use it.
3914 * python/py-cmd.c (struct cmdpy_completer) <completer>: Use
3915 completer_ftype.
3916
3917 2012-06-13 Pedro Alves <palves@redhat.com>
3918
3919 Partial revert of previous change.
3920
3921 * serial.c (scb_base): New global.
3922 (serial_for_fd): New.
3923 (serial_open, serial_fdopen_ops): Link new serial in open serials
3924 chain.
3925 (do_serial_close): Unlink serial from the open serials chain.
3926
3927 2012-06-12 Pedro Alves <palves@redhat.com>
3928
3929 * infrun.c (infrun_thread_stop_requested_callback): Don't switch
3930 threads here.
3931 (prepare_for_detach): No longer context switch here in non-stop
3932 mode.
3933 (fetch_inferior_event): Ditto.
3934 (handle_inferior_event) <STOP_QUIETLY || NO_STOP_QUIETLY>: Switch
3935 to the event thread before removing breakpoints. Switch to the
3936 event thread before inserting breakpoints and resuming.
3937 (handle_inferior_event) <TARGET_WAITKIND_SPURIOUS>: Switch to the
3938 event thread before resuming.
3939 (handle_inferior_event) <stepping_past_singlestep_breakpoint>:
3940 Switch to the event thread before removing breakpoints.
3941
3942 2012-06-12 Eli Zaretskii <eliz@gnu.org>
3943
3944 * infcmd.c (construct_inferior_arguments) [__MINGW32__]: Quote
3945 special characters correctly for the Windows shells. See
3946 http://sourceware.org/ml/gdb/2012-06/msg00047.html for the bug
3947 report.
3948 [!__MINGW32__]: Remove extra double quote character from special
3949 characters.
3950
3951 2012-06-11 Stan Shebs <stan@codesourcery.com>
3952
3953 * ui-out.h: Remove #if 0 declarations.
3954 * ui-out.c: Remove #if 0 functions.
3955
3956 2012-06-11 Pedro Alves <palves@redhat.com>
3957
3958 * ser-base.c (run_async_handler_and_reschedule): New.
3959 (fd_event, push_event): Use it.
3960 * serial.c (serial_open, serial_fdopen_ops): Set the initial
3961 reference count to 1.
3962 (do_serial_close): Set the bufp field to NULL. Use serial_unref
3963 instead of xfree.
3964 (serial_is_open, serial_ref, serial_unref): New.
3965 * serial.h (serial_open): Adjust comment.
3966 (serial_is_open): Declare.
3967 (serial_close): Adjust comment.
3968 (serial_ref, serial_unref) Declare.
3969 (struct serial): New field 'refcnt'.
3970
3971 2012-06-11 Pedro Alves <palves@redhat.com>
3972
3973 Remove #if 0'd "connect" command, and unnecessary associated
3974 refcounting and serial reuse bits.
3975
3976 * serial.h (struct serial): Remove fields 'next' and 'refcnt'.
3977 * serial.c (last_serial_opened): Delete.
3978 (scb_base): Delete.
3979 (serial_open): Adjust.
3980 (serial_for_fd): Delete.
3981 (serial_fdopen_ops, do_serial_close): Adjust.
3982 (serial_fdopen_ops): Adjust.
3983
3984 2012-06-11 Pedro Alves <palves@redhat.com>
3985
3986 * serial.c (do_serial_close): Remove early return when SCB is
3987 null.
3988
3989 2012-06-11 Tom Tromey <tromey@redhat.com>
3990
3991 * dwarf2read.c (dw2_get_file_names_reader): Ignore partial units.
3992
3993 2012-06-11 Jan Kratochvil <jan.kratochvil@redhat.com>
3994
3995 Fix regression by the "ambiguous linespec" series.
3996 * breakpoint.c (parse_breakpoint_sals): New variable cursal. Use
3997 get_last_displayed_symtab and get_last_displayed_line and depending
3998 on CURSAL.
3999
4000 2012-06-11 Tom Tromey <tromey@redhat.com>
4001
4002 * dwarf2read.c (dw2_get_primary_filename_reader): New function.
4003 (dw2_find_symbol_file): Use it.
4004
4005 2012-06-11 Michael Eager <eager@eagercon.com>
4006
4007 * mips-linux-tdep.c (mips_gdb_signal_from_target): New
4008 * mips-linux-tdep.h (mips_signals): New
4009
4010 2012-06-11 Tom Tromey <tromey@redhat.com>
4011
4012 * infrun.c (handle_inferior_event)
4013 <BPSTAT_WHAT_SET_LONGJMP_RESUME>: Don't delete the step-resume
4014 breakpoint.
4015 <BPSTAT_WHAT_CLEAR_LONGJMP_RESUME>: Remove longjmp logic; use
4016 exception logic in all cases. Update comments.
4017 (insert_longjmp_resume_breakpoint): Set the exception resume
4018 breakpoint.
4019
4020 2012-06-11 Maciej W. Rozycki <macro@codesourcery.com>
4021
4022 * mips-tdep.c (mips_push_dummy_code): Handle microMIPS code.
4023
4024 2012-06-09 Siva Chandra Reddy <sivachandra@google.com>
4025
4026 * valarith.c (binop_types_user_defined_p): Fix a typo.
4027
4028 2012-06-08 Yao Qi <yao@codesourcery.com>
4029 Chung-Lin Tang <cltang@codesourcery.com>
4030
4031 * arch-utils.c (default_return_in_first_hidden_param_p): New.
4032 * arch-utils.h: Declare.
4033 * gdbarch.sh: Add return_in_first_hidden_param_p.
4034 * gdbarch.c, gdbarch.h: Regenerated.
4035 * infcall.c (call_function_by_hand): Call
4036 gdbarch_return_in_first_hidden_param_p instead of
4037 language_pass_by_reference.
4038
4039 * m68k-tdep.c (m68k_return_in_first_hidden_param_p): New.
4040 (m68k_gdbarch_init): Install m68k_return_in_first_hidden_param_p.
4041 * sh-tdep.c (sh_return_in_first_hidden_param_p): New.
4042 (sh_gdbarch_init): Install sh_return_in_first_hidden_param_p.
4043 * tic6x-tdep.c (tic6x_push_dummy_call): Remove local variable
4044 `cplus_return_struct_by_reference'.
4045 (tic6x_return_value): Handle language cplusplus.
4046 (tic6x_return_in_first_hidden_param_p): New.
4047 (tic6x_gdbarch_init): Install tic6x_return_in_first_hidden_param_p.
4048
4049 2012-06-07 Doug Evans <dje@google.com>
4050
4051 * dwarf2read.c (dwarf2_cu): Add comment.
4052
4053 2012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
4054
4055 * mips-tdep.c (mips_pseudo_register_type): Remove tdep local
4056 variable.
4057 (mips_eabi_push_dummy_call): Likewise.
4058 (mips_n32n64_push_dummy_call): Likewise.
4059 (mips_o32_push_dummy_call): Likewise.
4060 (mips_o64_push_dummy_call): Likewise.
4061
4062 2012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
4063
4064 * mips-tdep.c (mips_convert_register_p): Correct coding style.
4065
4066 2012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
4067
4068 * mips-tdep.c (mips_pseudo_register_type): Use
4069 mips_float_register_p.
4070
4071 2012-06-06 Pedro Alves <palves@redhat.com>
4072
4073 * infrun.c (handle_inferior_event): Remove calls to
4074 reinit_frame_cache that follow a context_switch call.
4075
4076 2012-06-06 Pedro Alves <palves@redhat.com>
4077
4078 * infrun.c (handle_inferior_event) <deferred_step_ptid>: Use
4079 context_switch and remove stale comment.
4080
4081 2012-06-06 Pedro Alves <palves@redhat.com>
4082
4083 * infrun.c (struct execution_control_state): Remove
4084 `new_thread_event' field.
4085 (handle_inferior_event): Simplify new threads handling; don't
4086 resume the inferior if we find a new thread.
4087
4088 2012-06-06 Thomas Schwinge <thomas@codesourcery.com>
4089
4090 * NEWS: Document the deprecation of SH's 'regs' command.
4091 * inferior.h (all_registers_info): Add function declaration.
4092 * sh-tdep.c (sh_show_regs): Remove variable.
4093 (sh_generic_show_regs, sh3_show_regs, sh2e_show_regs, sh2a_show_regs)
4094 (sh2a_nofpu_show_regs, sh3e_show_regs, sh3_dsp_show_regs)
4095 (sh4_show_regs, sh4_nofpu_show_regs, sh_dsp_show_regs)
4096 (sh_show_regs_command): Remove functions.
4097 (sh_gdbarch_init): Don't set sh_show_regs.
4098 (_initialize_sh_tdep): Make the 'regs' command an deprecated alias to
4099 'info all-registers'.
4100 * sh64-tdep.c (sh64_show_media_regs, sh64_show_compact_regs)
4101 (sh64_show_regs): Remove functions.
4102 * sh64-tdep.h (sh64_show_regs): Remove function declaration.
4103
4104 2012-06-06 Jan Kratochvil <jan.kratochvil@redhat.com>
4105
4106 * configure.ac: Move development=true below AC_INIT.
4107 * configure: Regenerate.
4108
4109 2012-06-05 Stan Shebs <stan@codesourcery.com>
4110
4111 * mi/mi-interp.c (mi_interpreter_init): Set raw_stdout from
4112 gdb_stdout.
4113
4114 2012-06-05 Siddhesh Poyarekar <siddhesh@redhat.com>
4115
4116 * corefile.c (read_memory, read_stack, write_memory): Accept LEN
4117 argument as ssize_t.
4118 * gdbcore.h (read_memory, read_stack, write_memory): Likewise.
4119 * remote.c (remote_write_bytes_aux, remote_write_bytes): Likewise.
4120 * target.c (target_read_stack, target_write_memory)
4121 (target_write_raw_memory): Likewise.
4122 * target.h (target_read_stack, target_write_memory)
4123 (target_write_raw_memory): Likewise.
4124
4125 2012-06-05 Jan Kratochvil <jan.kratochvil@redhat.com>
4126
4127 * symfile-mem.c: Change gdb_static_assert to ssize_t.
4128 (target_read_memory_bfd): Cast gdb_assert LEN to ssize_t.
4129 * target.c (target_read_memory): Change LEN to ssize_t.
4130 * target.h (target_read_memory): Change LEN to ssize_t.
4131
4132 2012-06-05 Pedro Alves <palves@redhat.com>
4133
4134 PR backtrace/13866
4135
4136 * breakpoint.c (until_break_command): Only fetch the selected
4137 frame after decode_line_1.
4138
4139 2012-06-05 Joakim Tjernlund <Joakim.Tjernlund@transmode.se>
4140
4141 * solib-svr4.c (enable_break): Don't fallback to setting the solib
4142 event breakpoint at _start, __start or main if a program
4143 interpreter is not found.
4144
4145 2012-06-05 Joel Brobecker <brobecker@adacore.com>
4146
4147 * windows-tdep.h (windows_iterate_over_objfiles_in_search_order):
4148 Add declaration.
4149 * windows-tdep.c: #include "objfiles.h".
4150 (windows_iterate_over_objfiles_in_search_order): New function.
4151 * amd64-windows-tdep.c (amd64_windows_init_abi): Set
4152 iterate_over_objfiles_in_search_order gdbarch method to
4153 windows_iterate_over_objfiles_in_search_order.
4154 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Likewise.
4155
4156 2012-06-05 Joel Brobecker <brobecker@adacore.com>
4157
4158 * gdbarch.sh: Add generation of
4159 "iterate_over_objfiles_in_search_order_cb_ftype" typedef in
4160 gdbarch.h. Add include of "objfiles.h" in gdbarch.c.
4161 (iterate_over_objfiles_in_search_order): New gdbarch method.
4162 * gdbarch.h, gdbarch.c: Regenerate.
4163 * objfiles.h (default_iterate_over_objfiles_in_search_order):
4164 Add declaration.
4165 * objfiles.c (default_iterate_over_objfiles_in_search_order):
4166 New function.
4167 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
4168 out of lookup_symbol_aux_symtabs.
4169 (lookup_symbol_aux_symtabs): Replace extracted-out code by
4170 call to lookup_symbol_aux_objfile.
4171 (struct global_sym_lookup_data): New type.
4172 (lookup_symbol_global_iterator_cb): New function.
4173 (lookup_symbol_global): Search for symbol using
4174 gdbarch_iterate_over_objfiles_in_search_order and
4175 lookup_symbol_global_iterator_cb.
4176 * findvar.c (struct minsym_lookup_data): New type.
4177 (minsym_lookup_iterator_cb): New function.
4178 (default_read_var_value) [case LOC_UNRESOLVED]: Resolve the
4179 symbol's address via gdbarch_iterate_over_objfiles_in_search_order
4180 and minsym_lookup_iterator_cb.
4181
4182 2012-06-05 Joel Brobecker <brobecker@adacore.com>
4183
4184 Revert the following patch:
4185 * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
4186 try locating the symbol in the symbol's own objfile first, before
4187 extending the search to all objfiles.
4188 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
4189 out of lookup_symbol_aux_symtabs.
4190 (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
4191 Replace extracted-out code by call to lookup_symbol_aux_objfile.
4192 Do not search EXCLUDE_OBJFILE.
4193 (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
4194 (lookup_symbol_global): Search for matches in the block's objfile
4195 first, before searching all other objfiles.
4196
4197 2012-06-05 Joel Brobecker <brobecker@adacore.com>
4198
4199 * breakpoint.c (find_condition_and_thread): Stop parsing
4200 as soon as the first invalid keyword is found.
4201
4202 2012-06-05 Joel Brobecker <brobecker@adacore.com>
4203
4204 * copyright.py (EXCLUDE_LIST): Add 'gdb/CONTRIBUTE' to list.
4205
4206 2012-06-05 Joel Brobecker <brobecker@adacore.com>
4207
4208 * config/djgpp/djcheck.sh: Add copyright header.
4209
4210 2012-06-05 Joel Brobecker <brobecker@adacore.com>
4211
4212 * copyright.py (update_files, main): Fix path to update-copyright
4213 script.
4214
4215 2012-06-05 Joel Brobecker <brobecker@adacore.com>
4216
4217 * copyright.py (MULTIPLE_COPYRIGHT_HEADERS): New constant.
4218 (main): Add MULTIPLE_COPYRIGHT_HEADERS to the list of files
4219 for which a reminder to update by hand is printed.
4220
4221 2012-06-04 Doug Evans <dje@google.com>
4222
4223 * buildsym.c (make_blockvector): Add comment.
4224
4225 2012-06-04 Pedro Alves <palves@redhat.com>
4226
4227 * arch-utils.c (default_gdb_signal_from_target): Delete.
4228 * arch-utils.h (default_gdb_signal_from_target): Delete.
4229 * corelow.c (core_open) <signal mapping>: Extended comment. Check
4230 gdbarch_gdb_signal_from_target_p.
4231 * gdbarch.sh (gdb_signal_from_target): Make it an M method (with
4232 predicate).
4233 * gdbarch.h: Regenerate.
4234 * gdbarch.c: Regenerate.
4235
4236 2012-06-04 Pedro Alves <palves@redhat.com>
4237
4238 * gdbarch.sh (gdb_signal_from_target): Mention that the
4239 implementation of the method must be host independent.
4240 * gdbarch.h: Regenerate.
4241
4242 2012-06-04 Jan Kratochvil <jan.kratochvil@redhat.com>
4243
4244 * symfile-mem.c: 3 new gdb_static_assert for target_read_memory_bfd
4245 parameters.
4246 (target_read_memory_bfd): New function.
4247 (symbol_file_add_from_memory): Use it.
4248
4249 2012-06-03 Doug Evans <dje@google.com>
4250
4251 * symtab.c (lookup_global_symbol_from_objfile): Only scan blockvector
4252 of primary symtab.
4253 (basic_lookup_transparent_type): Ditto.
4254
4255 * objfiles.h (ALL_OBJFILE_PRIMARY_SYMTABS): New macro.
4256 (ALL_PRIMARY_SYMTABS): Use it.
4257 (ALL_PSPACE_PRIMARY_SYMTABS): Ditto.
4258 * dwarf2read.c (dw2_find_symbol_file): Ditto.
4259 * linespec.c (iterate_over_all_matching_symtabs): Ditto.
4260 * symtab.c (lookup_symbol_aux_objfile): Ditto.
4261 (basic_lookup_transparent_type): Ditto.
4262
4263 2012-06-02 Sergio Durigan Junior <sergiodj@redhat.com>
4264
4265 * symtab.c (symbol_demangled_name): New variable `dem_name'. Use
4266 it to optimize resolution of demangled name.
4267
4268 2012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4269
4270 * configure.ac (development): Define new variable.
4271 Call AC_CHECK_LIB for mcheck if $development.
4272 (ERROR_ON_WARNING): Enable it by default only if $development.
4273 * config.in: Regenerate.
4274 * configure: Regenerate.
4275
4276 2012-06-01 Siddhesh Poyarekar <siddhesh@redhat.com>
4277
4278 * target.c (target_read_memory): Make LEN argument as size_t.
4279 * target.h (target_read_memory): Likewise.
4280
4281 2012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4282
4283 * tilegx-linux-tdep.c (tilegx_l): Use ULL for 64-bit values.
4284
4285 2012-05-31 Edjunior Machado <emachado@linux.vnet.ibm.com>
4286
4287 * ppc-linux-nat.c (have_ptrace_booke_interface): Disable ptrace
4288 BookE interface for PowerPC server processors if not available
4289 in the Linux Kernel.
4290
4291 2012-05-31 Keith Seitz <keiths@redhat.com>
4292
4293 * linespec.c (decode_objc): Add cleanup to free
4294 INFO.FILE_SYMTABS.
4295 (find_linespec_symbols): Add cleanup to free CLASSES.
4296 * symfile.c (find_separate_debug_file_by_debuglink): Add
4297 cleanup to free DEBUGLINK.
4298 * ui-out.c (clear_header_list): No need to check if
4299 HEADER_NEXT.COLHDR is NULL.
4300 Free HEADER_NEXT.COL_NAME.
4301
4302 2012-05-31 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
4303
4304 * ada-lang.c (standard_lookup): Prevent uninitialized variable
4305 warning.
4306
4307 2012-05-30 Jeff Kenton <jkenton@tilera.com>
4308
4309 * configure.host (gdb_host_cpu): Handle tilegx*.
4310 (gdb_host): Handle tilegx-*-linux*.
4311 * tilegx-linux-nat.c: New file.
4312 * config/tilegx/linux.mh: New file.
4313
4314 2012-05-30 Jeff Kenton <jkenton@tilera.com>
4315
4316 * Makefile.in (ALL_TARGET_OBJS): Add tilegx-tdep.o and
4317 tilegx-linux-tdep.o.
4318 (ALLDEPFILES): Add tilegx-linux-nat.c, tilegx-tdep.c and
4319 tilegx-linux-tdep.c.
4320 * configure.tgt: Handle tilegx-*-linux*.
4321 * tilegx-tdep.h: New file.
4322 * tilegx-tdep.c: New file.
4323 * tilegx-linux-tdep.c: New file.
4324 * regformats/reg-tilegx.dat: New file.
4325
4326 2012-05-30 Edjunior Machado <emachado@linux.vnet.ibm.com>
4327
4328 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): fix
4329 accounting of hw watchpoints on ppc.
4330
4331 2012-05-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
4332
4333 * source.c (openp): Expand tilde in path entries.
4334
4335 2012-05-29 Doug Evans <dje@google.com>
4336
4337 * buildsym.c (block_compar): Fix comment.
4338 (end_symtab): Fix and clarify some comments.
4339
4340 * stabsread.h (cleanup_undefined_stabs_types): Renamed from
4341 cleanup_undefined_types.
4342 * stabsread.c (cleanup_undefined_stabs_types): Ditto.
4343 All callers updated.
4344
4345 2012-05-29 Tom Tromey <tromey@redhat.com>
4346
4347 * symfile.c (symfile_bfd_open): Don't close desc if bfd_fopen
4348 fails.
4349 * solib.c (solib_bfd_fopen): Don't close fd if bfd_fopen fails.
4350 * exec.c (exec_file_attach): Don't close scratch_chan if bfd_fopen
4351 fails.
4352 * dwarf2read.c (try_open_dwo_file): Don't close fd if bfd_fopen
4353 fails.
4354
4355 2012-05-29 Tristan Gingold <gingold@adacore.com>
4356
4357 * solib-darwin.c (dyld_all_image_addr, dyld_all_image): Move into...
4358 (struct darwin_info): ... New struct.
4359 (solib_darwin_pspace_data): New variable.
4360 (darwin_pspace_data_cleanup): New function.
4361 (get_darwin_info): Likewise.
4362 (darwin_dyld_version_ok, darwin_load_image_infos)
4363 (darwin_solib_get_all_image_info_addr_at_init)
4364 (darwin_solib_read_all_image_info_addr): Add info argument.
4365 Adjust code.
4366 (darwin_current_sos): Use per pspace structure.
4367 (darwin_solib_create_inferior_hook): Likewise.
4368 (darwin_clear_solib): Likewise.
4369 (_initialize_darwin_solib): Initialize solib_darwin_pspace_data.
4370
4371 2012-05-28 Pedro Alves <palves@redhat.com>
4372
4373 * infrun.c (wait_for_inferior): Move ecss and ecs locals to the
4374 block that uses them. Clear ecss before handling each event.
4375
4376 2012-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4377
4378 * solib-svr4.c (svr4_current_sos): New comment on
4379 svr4_current_sos_via_xfer_libraries fall back.
4380
4381 2012-05-24 Jan Kratochvil <jan.kratochvil@redhat.com>
4382
4383 * psymtab.c (lookup_symbol_aux_psymtabs): New variable stab_best. Use
4384 it as a fallback for TYPE_IS_OPAQUE.
4385 * symfile.h (struct quick_symbol_functions): Mention TYPE_OPAQUE
4386 symbols for lookup_symbol.
4387
4388 2012-05-24 John Steele Scott <toojays@toojays.net>
4389
4390 PR symtab/13277: Resolving opaque structures in ICC generated binaries.
4391 * dwarf2read.c (struct dwarf2_cu) <producer_is_icc>: New field.
4392 (producer_is_gxx_lt_4_6): Move the checking and caching to...
4393 (check_producer): ... this new function, which also checks for ICC
4394 and caches the result.
4395 (producer_is_icc): New function.
4396 (read_structure_type): Don't set TYPE_STUB_SUPPORTED if the
4397 producer was ICC.
4398
4399 2012-05-24 Pedro Alves <palves@redhat.com>
4400
4401 PR gdb/7205
4402
4403 * arch-utils.c (default_gdb_signal_to_host): Rename to ...
4404 (default_gdb_signal_to_target): ... this. Add comment.
4405 (default_gdb_signal_from_host): Rename to ...
4406 (default_gdb_signal_from_target): ... this. Add comment.
4407 * arch-utils.h (default_gdb_signal_to_host): Rename to ...
4408 (default_gdb_signal_to_target): ... this.
4409 (default_gdb_signal_from_host): Rename to ...
4410 (default_gdb_signal_from_target): ... this.
4411 * corelow.c (core_open): Adjust to naming change. Replace comment.
4412 * gdbarch.sh (gdb_signal_from_host): Rename to ...
4413 (gdb_signal_from_target): ... this. Adjust to
4414 default_gdb_signal_from_host naming change. Extend comment.
4415 (gdb_signal_to_host): Rename to ...
4416 (gdb_signal_to_target): ... this. Adjust to
4417 default_gdb_signal_to_host naming change.
4418 * gdbarch.h, gdbarch.c: Renegerate.
4419
4420 2012-05-24 Pedro Alves <palves@redhat.com>
4421
4422 PR gdb/7205
4423
4424 Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
4425
4426 2012-05-24 Pedro Alves <palves@redhat.com>
4427
4428 PR gdb/7205
4429
4430 Replace target_signal with gdb_signal throughout.
4431
4432 2012-05-24 Pedro Alves <palves@redhat.com>
4433
4434 PR tui/14159
4435
4436 * tui/tui-hooks.c (tui_query_hook): Pre-compute the question
4437 string, instead of reusing the va_list argument.
4438
4439 2012-05-24 Tom Tromey <tromey@redhat.com>
4440
4441 * cp-support.h (cp_finalize_namespace, cp_initialize_namespace):
4442 Remove.
4443
4444 2012-05-23 Doug Evans <dje@google.com>
4445
4446 * symtab.c (search_symbols): Formatting fixes.
4447 (print_symbol_info): Formatting fixes.
4448
4449 * dwarf2-frame.c (execute_cfa_program): Update to handle long long ->
4450 int64_t change to leb128 API.
4451 (read_encoded_value, decode_frame_entry_1): Ditto.
4452 * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Ditto.
4453 (dwarf_block_to_dwarf_reg, dwarf_block_to_dwarf_reg_deref): Ditto.
4454 (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
4455 (execute_stack_op): Ditto.
4456 * dwarf2expr.h (gdb_read_uleb128, gdb_read_sleb128): Ditto.
4457 (safe_read_uleb128, safe_read_sleb128): Ditto.
4458 * dwarf2loc.c (decode_debug_loc_dwo_addresses): Ditto.
4459 (dwarf2_compile_expr_to_ax): Ditto.
4460 (locexpr_describe_location_piece): Ditto.
4461 (disassemble_dwarf_expression): Ditto.
4462 (locexpr_describe_location_1): Ditto.
4463
4464 2012-05-23 Stan Shebs <stan@codesourcery.com>
4465 Kwok Cheung Yeung <kcy@codesourcery.com>
4466
4467 * Makefile.in (SUBDIR_MI_OBS): Add mi-cmd-info.o.
4468 (SUBDIR_MI_SRCS): Add mi-cmd-info.c.
4469 (mi-cmd-info.o): New rule.
4470 * osdata.h (info_osdata_command): New declaration.
4471 * osdata.c (info_osdata_command): Change to non-static.
4472 * mi/mi-cmds.h (mi_cmd_info_os): New declaration.
4473 * mi/mi-cmds.c (mi_cmds): Add -info-os MI command.
4474 * mi/mi-cmd-info.c: New file.
4475
4476 2012-05-23 Doug Evans <dje@google.com>
4477
4478 * symtab.c (search_symbols): Pass NULL for file_matcher to
4479 expand_symtabs_matching if there are no files to match.
4480
4481 * gdbtypes.c (lookup_typename): Simplify.
4482
4483 2012-05-23 Pedro Alves <palves@redhat.com>
4484
4485 * arch-utils.h (default_target_signal_to_host): Delete.
4486 * arch-utils.c (default_target_signal_to_host): Delete.
4487 * gdbarch.sh (target_signal_to_host): Remove.
4488 * gdbarch.h, gdbarch.c: Regenerate.
4489
4490 2012-05-22 Doug Evans <dje@google.com>
4491
4492 * dwarf2-frame.c (struct dwarf2_cie): Make initial_instructions, end
4493 "const gdb_byte *".
4494 (struct dwarf2_fde): Make instructions, end "const gdb_byte *".
4495 (execute_cfa_program): Update to match API of leb128 functions.
4496 (read_1_byte, read_4_bytes, read_8_bytes): Make buf parameter
4497 "const gdb_byte *".
4498 (read_unsigned_leb128, read_signed_leb128): Delete.
4499 (read_initial_length): Change type of buf argument to
4500 "const gdb_byte *".
4501 (read_encoded_value): Update to match API of leb128 functions.
4502 (decode_frame_entry): Change result to "const gdb_byte *", and
4503 similarly for "start" parameter.
4504 (decode_frame_entry_1): Ditto. Use new leb128 reader functions.
4505 (dwarf2_build_frame_info): Change local frame_ptr to
4506 "const gdb_byte *".
4507 * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Replaces
4508 read_uleb128, read_sleb128. All callers updated.
4509 (safe_skip_leb128): New function.
4510 (dwarf_block_to_dwarf_reg): Update to match API of leb128 functions.
4511 Call gdb_read_uleb128, gdb_skip_leb128 instead of read_uleb128.
4512 (dwarf_block_to_dwarf_reg_deref): Update to match API of leb128
4513 functions. Call gdb_read_uleb128, gdb_read_sleb128 instead of
4514 read_uleb128, read_sleb128.
4515 (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
4516 (execute_stack_op): Update to match API of leb128 functions.
4517 * dwarf2expr.h: #include "leb128.h".
4518 (read_uleb128, read_sleb128): Delete.
4519 (gdb_read_uleb128, gdb_read_sleb128, gdb_skip_leb128): New functions.
4520 (safe_read_uleb128, safe_read_sleb128, safe_skip_leb128): Declare.
4521 * dwarf2loc.c (debug_loc_kind): New enum.
4522 (decode_debug_loc_addresses): New function.
4523 (decode_debug_loc_dwo_addresses): New function.
4524 (dwarf2_find_location_expression): Rewrite.
4525 (dwarf2_compile_expr_to_ax): Update to match API of leb128 functions.
4526 (locexpr_describe_location_piece): Ditto.
4527 (disassemble_dwarf_expression): Ditto.
4528 (locexpr_describe_location_1): Ditto.
4529 (loclist_describe_location): Rewrite.
4530 * dwarf2loc.h (dwarf2_loclist_baton): New member "from_dwo".
4531 * dwarf2read.c (die_reader_specs): New member "buffer_end".
4532 (dwarf2_section_buffer_overflow_complaint): Renamed from
4533 dwarf2_macros_too_long_complaint. All callers updated.
4534 (skip_leb128): Delete.
4535 (init_cu_die_reader): Initialize reader->buffer_end.
4536 (skip_one_die): Replace call to skip_leb128 with safe_skip_leb128.
4537 (skip_form_bytes): New arg buffer_end. All callers updated.
4538 Replace call to skip_leb128 with gdb_skip_leb128.
4539 (skip_unknown_opcode): New arg mac_end. All callers updated.
4540 (fill_in_loclist_baton): Initialize baton->from_dwo.
4541
4542 2012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
4543
4544 * mips-linux-nat.c (mips_linux_read_description): Use a more
4545 verbose error message.
4546
4547 2012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
4548
4549 * NEWS: Add MIPS/Linux DSP support.
4550 * mips-linux-tdep.c: Document post-2.6.12 o32 sigcontext layout.
4551 (SIGCONTEXT_DSPCTL): New macro.
4552 (SIGCONTEXT_HI1, SIGCONTEXT_LO1): Likewise.
4553 (SIGCONTEXT_HI2, SIGCONTEXT_LO2): Likewise.
4554 (SIGCONTEXT_HI3, SIGCONTEXT_LO3): Likewise.
4555 (N64_SIGCONTEXT_HI1, N64_SIGCONTEXT_HI2): Likewise.
4556 (N64_SIGCONTEXT_HI3): Likewise.
4557 (N64_SIGCONTEXT_LO1, N64_SIGCONTEXT_LO2): Likewise.
4558 (N64_SIGCONTEXT_LO3): Likewise.
4559 (N64_SIGCONTEXT_DSPCTL): Likewise.
4560 (N64_SIGCONTEXT_FPCSR): Clarify definition.
4561 (mips_linux_o32_sigframe_init): Handle DSP registers.
4562 (mips_linux_n32n64_sigframe_init): Likewise.
4563
4564 2012-05-22 Pierre Muller <muller@ics.u-strasbg.fr>
4565
4566 * common/buffer.c (buffer_grow): ARI fix: Remove unneeded
4567 call to abort.
4568
4569 2012-05-22 Pedro Alves <palves@redhat.com>
4570
4571 * target.h (store_waitstatus): Move declaration ...
4572 * inf-child.h (store_waitstatus): ... here.
4573 * target.c: Move inclusion of gdb_wait.h, and ...
4574 (store_waitstatus): ... this ...
4575 * inf-child.c: ... here.
4576 * linux-nat.c: Include inf-child.h.
4577 * rs6000-nat.c: Include inf-child.h.
4578 * spu-linux-nat.c: Include inf-child.h.
4579
4580 2012-05-22 Pierre Muller <muller@ics.u-strasbg.fr>
4581
4582 * tracepoint.c (start_tracing): Add missing i18n markup.
4583 (stop_tracing, set_trace_user): Ditto.
4584 (set_trace_notes, set_trace_stop_notes): Ditto.
4585
4586 2012-05-21 Tom Tromey <tromey@redhat.com>
4587
4588 PR c++/7173:
4589 * gnu-v3-abi.c (gnuv3_baseclass_offset): Return early for Java
4590 types.
4591 * value.h (value_cast_pointers): Update.
4592 * valops.c (value_cast_pointers): Add 'subclass_check' argument.
4593 (value_cast): Update.
4594 (update_search_result): New function.
4595 (do_search_struct_field): New, from search_struct_field. Check
4596 for ambiguous results.
4597 (search_struct_field): Rewrite.
4598 * infcall.c (value_arg_coerce): Update.
4599 * eval.c (evaluate_subexp_standard) <STRUCTOP_MEMBER>: Use
4600 value_cast_pointers.
4601 * ada-lang.c (ada_convert_actual): Update.
4602
4603 2012-05-21 Tom Tromey <tromey@redhat.com>
4604
4605 * macroexp.c (macro_stringify): Terminate the string.
4606
4607 2012-05-20 Jan Kratochvil <jan.kratochvil@redhat.com>
4608
4609 * NEWS (--with-auto-load-dir): Prepend $debugdir to the default path.
4610 Describe it.
4611 * auto-load.c (auto_load_expand_dir_vars): New function.
4612 (auto_load_safe_path_vec_update): Use it, remove the
4613 substitute_path_component call thanks to it.
4614 (auto_load_objfile_script): Remove the debug_file_directory processing.
4615 Use auto_load_expand_dir_vars, remove the substitute_path_component
4616 call thanks to it.
4617 * configure: Regenerate.
4618 * configure.ac (--with-auto-load-dir): Prepend $debugdir to the default
4619 path. Escape $ also for $debugdir.
4620 (--with_auto_load_safe_path): Escape $ also for $debugdir.
4621 * utils.c (substitute_path_component): Accept also DIRNAME_SEPARATOR.
4622
4623 2012-05-20 Doug Evans <dje@google.com>
4624
4625 * dwarf2read.c (recursively_find_pc_sect_symtab): Initialize "s"
4626 before use. Check for symtab->includes == NULL before scanning it.
4627
4628 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
4629
4630 * mips-tdep.c (mips_reg3_to_reg): Optimize storage.
4631
4632 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
4633
4634 * NEWS: Add microMIPS support and "set mips compression",
4635 "show mips compression" commands.
4636 * mips-tdep.h (mips_isa): New enum.
4637 (gdbarch_tdep): Add mips_isa.
4638 (mips_pc_is_mips16): Update prototype.
4639 (mips_pc_is_mips, mips_pc_is_micromips): New prototypes.
4640 * mips-tdep.c (mips_compression_mips16): New variable.
4641 (mips_compression_micromips): Likewise.
4642 (mips_compression_strings): Likewise.
4643 (mips_compression_string): Likewise.
4644 (is_mips16_isa, is_micromips_isa): New functions.
4645 (is_mips16_addr): Rename to...
4646 (is_compact_addr): ... this.
4647 (unmake_mips16_addr): Likewise to...
4648 (unmake_compact_addr): ... this.
4649 (make_mips16_addr): Likewise to...
4650 (make_compact_addr): ... this.
4651 (is_mips_addr, is_mips16_addr, is_micromips_addr): New
4652 functions.
4653 (mips_elf_make_msymbol_special): Handle microMIPS code.
4654 (msymbol_is_special): Rename to...
4655 (msymbol_is_mips16): ... this.
4656 (mips_make_symbol_special, mips_pc_is_mips16): Update
4657 accordingly.
4658 (msymbol_is_mips, msymbol_is_micromips): New functions.
4659 (mips16_to_32_reg): Rename to...
4660 (mips_reg3_to_reg): ... this.
4661 (mips_pc_is_mips, mips_pc_is_micromips): New functions.
4662 (mips_pc_isa): Likewise.
4663 (mips_read_pc, mips_unwind_pc, mips_write_pc): Handle microMIPS
4664 code.
4665 (mips_fetch_instruction): Pass return status instead of printing
4666 an error message if requested. Handle microMIPS code. Bail out
4667 on an invalid ISA.
4668 (micromips_op): New macro.
4669 (b0s4_imm, b0s5_imm, b0s5_reg, b0s7_imm, b0s10_imm): Likewise.
4670 (b1s9_imm, b2s3_cc, b4s2_regl, b5s5_op, b5s5_reg): Likewise.
4671 (b6s4_op, b7s3_reg): Likewise.
4672 (b0s6_op, b0s11_op, b0s12_imm, b0s16_imm, b0s26_imm): Likewise.
4673 (b6s10_ext, b11s5_reg, b12s4_op): Likewise.
4674 (mips_insn_size): New function.
4675 (mips32_next_pc): Update mips_fetch_instruction call.
4676 (micromips_relative_offset7): New function.
4677 (micromips_relative_offset10): Likewise.
4678 (micromips_relative_offset16): Likewise.
4679 (micromips_pc_insn_size): Likewise.
4680 (micromips_bc1_pc): Likewise.
4681 (micromips_next_pc): Likewise.
4682 (unpack_mips16): Update mips_fetch_instruction call.
4683 (extended_mips16_next_pc): Update according to change to
4684 mips16_to_32_reg.
4685 (mips_next_pc): Update mips_pc_is_mips16 call. Handle microMIPS
4686 code.
4687 (mips16_scan_prologue): Update mips_fetch_instruction call.
4688 Update according to change to mips16_to_32_reg.
4689 (mips_insn16_frame_sniffer): Update mips_pc_is_mips16 call.
4690 (mips_insn16_frame_base_sniffer): Likewise.
4691 (micromips_decode_imm9): New function.
4692 (micromips_scan_prologue): Likewise.
4693 (mips_micro_frame_cache): Likewise.
4694 (mips_micro_frame_this_id): Likewise.
4695 (mips_micro_frame_prev_register): Likewise.
4696 (mips_micro_frame_sniffer): Likewise.
4697 (mips_micro_frame_unwind): New variable.
4698 (mips_micro_frame_base_address): New function.
4699 (mips_micro_frame_base): New variable.
4700 (mips_micro_frame_base_sniffer): New function.
4701 (mips32_scan_prologue): Update mips_fetch_instruction call.
4702 (mips_insn32_frame_sniffer): Check for the standard MIPS ISA
4703 rather than for MIPS16.
4704 (mips_insn32_frame_base_sniffer): Likewise.
4705 (mips_addr_bits_remove): Handle microMIPS code.
4706 (deal_with_atomic_sequence): Rename to...
4707 (mips_deal_with_atomic_sequence): ... this. Update the type
4708 of the variable used to hold an instruction. Remove the ISA bit
4709 check. Update mips_fetch_instruction call.
4710 (micromips_deal_with_atomic_sequence): New function.
4711 (deal_with_atomic_sequence): Likewise.
4712 (mips_about_to_return): Handle microMIPS code. Update
4713 mips_fetch_instruction call.
4714 (heuristic_proc_start): Check for the standard MIPS ISA rather
4715 than for MIPS16. Update mips_pc_is_mips16 and
4716 mips_fetch_instruction calls. Handle microMIPS code.
4717 (mips_push_dummy_code): Handle microMIPS code.
4718 (mips_eabi_push_dummy_call): Likewise.
4719 (mips_o32_return_value): Update mips_pc_is_mips16 call.
4720 (mips_o64_push_dummy_call): Handle microMIPS code.
4721 (mips_o64_return_value): Update mips_pc_is_mips16 call.
4722 (is_delayed): Remove function.
4723 (mips_single_step_through_delay): Replace the call to is_delayed
4724 with mips32_instruction_has_delay_slot. Correct MIPS16 handling.
4725 Handle microMIPS code.
4726 (mips_skip_prologue): Update mips_pc_is_mips16 call. Handle
4727 microMIPS code.
4728 (mips32_in_function_epilogue_p): Update mips_fetch_instruction
4729 call.
4730 (micromips_in_function_epilogue_p): New function.
4731 (mips16_in_function_epilogue_p): Update mips_fetch_instruction
4732 call.
4733 (mips_in_function_epilogue_p): Update mips_pc_is_mips16 call.
4734 Handle microMIPS.
4735 (gdb_print_insn_mips): Likewise.
4736 (mips_breakpoint_from_pc): Likewise.
4737 (mips_remote_breakpoint_from_pc): New function.
4738 (mips32_instruction_has_delay_slot): Simplify making use of the
4739 updated mips_fetch_instruction interface.
4740 (micromips_instruction_has_delay_slot): New function.
4741 (mips16_instruction_has_delay_slot): Simplify making use of the
4742 updated mips_fetch_instruction interface.
4743 (mips_adjust_breakpoint_address): Check for the standard MIPS
4744 ISA rather than for MIPS16 ISA. Update for unmake_compact_addr
4745 calls. Handle microMIPS code.
4746 (mips_get_mips16_fn_stub_pc): Update mips_fetch_instruction call.
4747 (mips_skip_trampoline_code): Handle microMIPS code.
4748 (global_mips_compression): New function.
4749 (mips_gdbarch_init): Handle the compressed ISA setting from ELF
4750 file flags. Register the microMIPS remote breakpoint handler
4751 and heuristic frame unwinder.
4752 (show_mips_compression): New function.
4753 (_initialize_mips_tdep): Add the "set mips compression" and
4754 "show mips compression" commands.
4755
4756 2012-05-18 Sergio Durigan Junior <sergiodj@redhat.com>
4757
4758 * ada-lang.c:
4759 * ada-tasks.c:
4760 * ada-varobj.c:
4761 * amd64-darwin-tdep.c:
4762 * arm-symbian-tdep.c:
4763 * arm-tdep.c:
4764 * avr-tdep.c:
4765 * ax-gdb.c:
4766 * bfin-linux-tdep.c:
4767 * breakpoint.c:
4768 * c-valprint.c:
4769 * cli/cli-cmds.c:
4770 * coffread.c:
4771 * cp-support.c:
4772 * cris-tdep.c:
4773 * dwarf2-frame-tailcall.c:
4774 * dwarf2-frame.c:
4775 * dwarf2expr.c:
4776 * dwarf2loc.c:
4777 * dwarf2read.c:
4778 * elfread.c:
4779 * eval.c:
4780 * expprint.c:
4781 * f-valprint.c:
4782 * frv-tdep.c:
4783 * h8300-tdep.c:
4784 * hppa-hpux-tdep.c:
4785 * hppa-tdep.c:
4786 * hppanbsd-tdep.c:
4787 * i386-nto-tdep.c:
4788 * i386-tdep.c:
4789 * i387-tdep.c:
4790 * ia64-tdep.c:
4791 * jit.c:
4792 * linespec.c:
4793 * linux-tdep.c:
4794 * lm32-tdep.c:
4795 * m2-valprint.c:
4796 * m32c-tdep.c:
4797 * m32r-rom.c:
4798 * m32r-tdep.c:
4799 * m68k-tdep.c:
4800 * m68klinux-tdep.c:
4801 * mi/mi-main.c:
4802 * microblaze-tdep.c:
4803 * mips-linux-tdep.c:
4804 * mips-tdep.c:
4805 * mn10300-tdep.c:
4806 * p-valprint.c:
4807 * parse.c:
4808 * ppc-linux-tdep.c:
4809 * ppc-sysv-tdep.c:
4810 * printcmd.c:
4811 * python/py-finishbreakpoint.c:
4812 * python/py-inferior.c:
4813 * python/py-infthread.c:
4814 * python/py-type.c:
4815 * python/python.c:
4816 * remote-fileio.c:
4817 * remote-m32r-sdi.c:
4818 * remote-mips.c:
4819 * reverse.c:
4820 * rl78-tdep.c:
4821 * rs6000-aix-tdep.c:
4822 * rs6000-tdep.c:
4823 * s390-tdep.c:
4824 * score-tdep.c:
4825 * sh64-tdep.c:
4826 * skip.c:
4827 * solib-darwin.c:
4828 * solib-dsbt.c:
4829 * solib-frv.c:
4830 * sparc-tdep.c:
4831 * spu-multiarch.c:
4832 * spu-tdep.c:
4833 * stack.c:
4834 * symfile.c:
4835 * symtab.c:
4836 * tic6x-tdep.c:
4837 * tracepoint.c:
4838 * v850-tdep.c:
4839 * valarith.c:
4840 * valprint.c:
4841 * value.c:
4842 * xcoffread.c:
4843 * xtensa-tdep.c:
4844 * ada-lang.c:
4845 * ada-tasks.c:
4846 * ada-varobj.c:
4847 * amd64-darwin-tdep.c:
4848 * arm-symbian-tdep.c:
4849 * arm-tdep.c: Delete unused variables.
4850
4851 2012-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
4852
4853 Rename $ddir to $datadir.
4854 * NEWS (--with-auto-load-dir): Rename $ddir to $datadir.
4855 * auto-load.c (auto_load_safe_path_vec_update)
4856 (auto_load_gdb_datadir_changed, auto_load_objfile_script): Likewise.
4857 * configure: Regenerate.
4858 * configure.ac (--with-auto-load-dir, --with-auto-load-safe-path):
4859 Likewise. Remove the 'use $ddir' help string.
4860
4861 2012-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
4862
4863 * auto-load.c (show_auto_load_safe_path): Accept any combination of
4864 DIRNAME_SEPARATOR and IS_DIR_SEPARATOR for wild-match.
4865
4866 2012-05-18 Tom Tromey <tromey@redhat.com>
4867
4868 PR exp/13907:
4869 * valprint.h (struct value_print_options) <symbol_print>: New
4870 field.
4871 * valprint.c (user_print_options): Add default for symbol_print.
4872 (show_symbol_print): New function.
4873 (generic_val_print): Respect symbol_print.
4874 (_initialize_valprint): Add "print symbol" setting.
4875 * f-valprint.c (f_val_print): Respect symbol_print.
4876 * c-valprint.c (c_val_print): Respect symbol_print.
4877 * NEWS: Update.
4878 * printcmd.c (print_address_symbolic): Return int. Ignore some
4879 zero-size symbols.
4880 (print_address_demangle): Return int.
4881 * defs.h: (print_address_symbolic): Return int.
4882 * value.h (print_address_demangle): Return int.
4883
4884 2012-05-18 Tom Tromey <tromey@redhat.com>
4885
4886 * valprint.c (val_print_string): Don't print leading space.
4887 * p-valprint.c (pascal_val_print) <TYPE_CODE_PTR>: Optionally
4888 print space before string or vtbl.
4889 * m2-valprint.c (print_unpacked_pointer): Optionally print space
4890 before string.
4891 * jv-valprint.c (java_value_print): Print space before string.
4892 * go-valprint.c (print_go_string): Print space before string.
4893 * f-valprint.c (f_val_print) <TYPE_CODE_PTR>: Optionally print
4894 space before string.
4895 * c-valprint.c (c_val_print) <TYPE_CODE_PTR>: Optionally print
4896 space before string or vtbl.
4897 * auxv.c (fprint_target_auxv): Print space after address.
4898
4899 2012-05-18 Tom Tromey <tromey@redhat.com>
4900
4901 * printcmd.c (print_address_demangle): Remove special case for 0.
4902
4903 2012-05-18 Tom Tromey <tromey@redhat.com>
4904
4905 * printcmd.c (print_address_demangle): Add 'opts' argument.
4906 * p-valprint.c (pascal_val_print): Update.
4907 * jv-valprint.c (java_val_print): Update.
4908 * value.h: Update.
4909 * valprint.c (generic_val_print): Update.
4910 (print_function_pointer_address): Add 'options' argument. Remove
4911 'addressprint' argument. Update.
4912 * m2-valprint.c (print_unpacked_pointer): Update.
4913 * gnu-v3-abi.c (print_one_vtable): Update.
4914 (gnuv3_print_method_ptr): Update.
4915 * f-valprint.c (f_val_print): Update.
4916 * cp-valprint.c (cp_print_value_fields): Update.
4917 * valprint.h (print_function_pointer_address): Update.
4918 * c-valprint.c (c_val_print): Update.
4919
4920 2012-05-18 Tom Tromey <tromey@redhat.com>
4921
4922 * psymtab.c (find_pc_sect_symtab_from_partial): Return the symtab
4923 directly corresponding to the found psymtab.
4924 * dwarf2read.c (recursively_find_pc_sect_symtab): New function.
4925 (dw2_find_pc_sect_symtab): Use it.
4926 * block.h (blockvector_contains_pc): Declare.
4927 * block.c (find_block_in_blockvector): New function.
4928 (blockvector_for_pc_sect): Use it.
4929 (blockvector_contains_pc): New function.
4930
4931 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
4932
4933 * mips-tdep.h (mips_write_pc): New prototype.
4934 * mips-tdep.c (mips_write_pc): Make external, add description.
4935 * mips-linux-tdep.c (mips_linux_write_pc): Use mips_write_pc,
4936 add description.
4937
4938 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
4939
4940 * mips-tdep.c (mips_read_pc): Use gdbarch_pc_regnum instead of
4941 mips_regnum->pc.
4942 (mips_unwind_pc, mips_write_pc): Likewise.
4943 (mips_gdbarch_init): Remove a comment on gdbarch_pc_regnum and
4944 gdbarch_read_pc.
4945
4946 2012-05-17 Joel Brobecker <brobecker@adacore.com>
4947
4948 * procfs.c (procfs_find_new_threads, procfs_pid_to_str,
4949 proc_warn, proc_error, proc_get_status, proc_flags,
4950 proc_why, proc_what, proc_nsysarg, proc_sysargs,
4951 proc_set_run_on_last_close, proc_unset_run_on_last_close,
4952 proc_unset_inherit_on_fork, proc_set_async, proc_unset_async,
4953 proc_stop_process, proc_wait_for_stop, proc_run_process,
4954 proc_set_traced_signals, proc_set_traced_faults,
4955 proc_set_traced_sysentry, proc_set_traced_sysexit,
4956 proc_set_held_signals, proc_get_held_signals,
4957 proc_get_traced_signals, proc_get_traced_faults,
4958 proc_get_traced_sysentry, proc_get_traced_sysexit,
4959 proc_clear_current_fault, proc_set_current_signal,
4960 proc_clear_current_signal, proc_get_gregs, proc_get_fpregs,
4961 proc_set_gregs, proc_set_fpregs, proc_kill, proc_parent_pid,
4962 proc_get_nthreads, proc_get_nthreads, proc_get_nthreads,
4963 proc_get_current_thread, proc_get_current_thread,
4964 proc_get_current_thread, proc_update_threads,
4965 proc_update_threads, proc_update_threads, proc_update_threads,
4966 proc_iterate_over_threads, procfs_find_new_threads,
4967 procfs_pid_to_str): Make static. Remove advance declaration.
4968 (proc_cursig): Make static. Conditionalized defintion on
4969 PROCFS_DONT_PIOCSSIG_CURSIG being defined.
4970 (proc_syscall, proc_set_kill_on_last_close,
4971 proc_unset_kill_on_last_close, proc_set_inherit_on_fork,
4972 proc_get_pending_signals, proc_get_signal_actions,
4973 proc_trace_signal, proc_ignore_signal): Delete.
4974
4975 2012-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
4976
4977 * coffread.c (cs_section_address): Passing proper argument for
4978 `bfd_get_section_vma'.
4979 * dwarf2read.c (dwarf2_locate_sections): Likewise, for
4980 `bfd_get_section_flags'.
4981 * remote.c (remote_trace_set_readonly_regions): Likewise, for
4982 `bfd_get_section_vma'.
4983
4984 2012-05-16 Tom Tromey <tromey@redhat.com>
4985
4986 PR macros/13205:
4987 * macrotab.h: (macro_define_special): Declare.
4988 (enum macro_special_kind): New.
4989 (struct macro_definition) <argc, replacement>: Update comments.
4990 * macrotab.c (new_macro_definition): Unconditionally set 'argc'.
4991 (macro_define_object_internal): New function.
4992 (macro_define_object): Use it.
4993 (macro_define_special): New function.
4994 (fixup_definition): New function.
4995 (macro_lookup_definition, foreach_macro_in_scope)
4996 (foreach_macro): Use fixup_definition.
4997 * macroexp.h (macro_stringify): Declare.
4998 * macroexp.c (free_buffer_return_text): New function.
4999 (stringify): Constify "arg".
5000 (macro_stringify): New function.
5001 * dwarf2read.c (macro_start_file): Call macro_define_special.
5002
5003 2012-05-16 Maciej W. Rozycki <macro@codesourcery.com>
5004 Maciej W. Rozycki <macro@mips.com>
5005
5006 * breakpoint.h (bp_location): Add related_address member.
5007 * inferior.h (get_return_value): Take a pointer to struct value
5008 instead of struct type for the function requested.
5009 * value.h (using_struct_return): Likewise.
5010 * gdbarch.sh (return_value): Take a pointer to struct value
5011 instead of struct type for the function requested.
5012 * breakpoint.c (set_breakpoint_location_function): Initialize
5013 related_address for bp_gnu_ifunc_resolver breakpoints.
5014 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Pass the
5015 requested function's address to gdbarch_return_value.
5016 * eval.c (evaluate_subexp_standard): Pass the requested
5017 function's address to using_struct_return.
5018 * infcall.c (call_function_by_hand): Pass the requested
5019 function's address to using_struct_return and
5020 gdbarch_return_value.
5021 * infcmd.c (get_return_value): Take a pointer to struct value
5022 instead of struct type for the function requested.
5023 (print_return_value): Update accordingly.
5024 (finish_command_continuation): Likewise.
5025 * stack.c (return_command): Pass the requested function's
5026 address to using_struct_return and gdbarch_return_value.
5027 * value.c (using_struct_return): Take a pointer to struct value
5028 instead of struct type for the function requested. Pass the
5029 requested function's address to gdbarch_return_value.
5030 * python/py-finishbreakpoint.c (finish_breakpoint_object):
5031 New function_value member, replacing function_type.
5032 (bpfinishpy_dealloc): Update accordingly.
5033 (bpfinishpy_pre_stop_hook): Likewise.
5034 (bpfinishpy_init): Likewise. Record the requested function's
5035 address.
5036 * mips-tdep.c (mips_fval_reg): New enum.
5037 (mips_o32_push_dummy_call): For MIPS16 FP doubles do not swap
5038 words put in GP registers.
5039 (mips_o64_push_dummy_call): Update a comment.
5040 (mips_o32_return_value): Take a pointer to struct value instead
5041 of struct type for the function requested and use it to check if
5042 using the MIPS16 calling convention. Return the designated
5043 general purpose registers for floating-point values returned in
5044 MIPS16 mode.
5045 (mips_o64_return_value): Likewise.
5046 * ppc-tdep.h (ppc_sysv_abi_return_value): Update prototype.
5047 (ppc_sysv_abi_broken_return_value): Likewise.
5048 (ppc64_sysv_abi_return_value): Likewise.
5049 * alpha-tdep.c (alpha_return_value): Take a pointer to struct
5050 value instead of struct type for the function requested.
5051 * amd64-tdep.c (amd64_return_value): Likewise.
5052 * amd64-windows-tdep.c (amd64_windows_return_value): Likewise.
5053 * arm-tdep.c (arm_return_value): Likewise.
5054 * avr-tdep.c (avr_return_value): Likewise.
5055 * bfin-tdep.c (bfin_return_value): Likewise.
5056 * cris-tdep.c (cris_return_value): Likewise.
5057 * frv-tdep.c (frv_return_value): Likewise.
5058 * h8300-tdep.c (h8300_return_value): Likewise.
5059 (h8300h_return_value): Likewise.
5060 * hppa-tdep.c (hppa32_return_value): Likewise.
5061 (hppa64_return_value): Likewise.
5062 * i386-tdep.c (i386_return_value): Likewise.
5063 * ia64-tdep.c (ia64_return_value): Likewise.
5064 * iq2000-tdep.c (iq2000_return_value): Likewise.
5065 * lm32-tdep.c (lm32_return_value): Likewise.
5066 * m32c-tdep.c (m32c_return_value): Likewise.
5067 * m32r-tdep.c (m32r_return_value): Likewise.
5068 * m68hc11-tdep.c (m68hc11_return_value): Likewise.
5069 * m68k-tdep.c (m68k_return_value): Likewise.
5070 (m68k_svr4_return_value): Likewise.
5071 * m88k-tdep.c (m88k_return_value): Likewise.
5072 * mep-tdep.c (mep_return_value): Likewise.
5073 * microblaze-tdep.c (microblaze_return_value): Likewise.
5074 * mn10300-tdep.c (mn10300_return_value): Likewise.
5075 * moxie-tdep.c (moxie_return_value): Likewise.
5076 * mt-tdep.c (mt_return_value): Likewise.
5077 * ppc-linux-tdep.c (ppc_linux_return_value): Likewise.
5078 * ppc-sysv-tdep.c (ppc_sysv_abi_return_value): Likewise.
5079 (ppc_sysv_abi_broken_return_value): Likewise.
5080 (ppc64_sysv_abi_return_value): Likewise.
5081 * ppcnbsd-tdep.c (ppcnbsd_return_value): Likewise.
5082 * rl78-tdep.c (rl78_return_value): Likewise.
5083 * rs6000-aix-tdep.c (rs6000_return_value): Likewise.
5084 * rx-tdep.c (rx_return_value): Likewise.
5085 * s390-tdep.c (s390_return_value): Likewise.
5086 * score-tdep.c (score_return_value): Likewise.
5087 * sh-tdep.c (sh_return_value_nofpu): Likewise.
5088 (sh_return_value_fpu): Likewise.
5089 * sh64-tdep.c (sh64_return_value): Likewise.
5090 * sparc-tdep.c (sparc32_return_value): Likewise.
5091 * sparc64-tdep.c (sparc64_return_value): Likewise.
5092 * spu-tdep.c (spu_return_value): Likewise.
5093 * tic6x-tdep.c (tic6x_return_value): Likewise.
5094 * v850-tdep.c (v850_return_value): Likewise.
5095 * vax-tdep.c (vax_return_value): Likewise.
5096 * xstormy16-tdep.c (xstormy16_return_value): Likewise.
5097 * xtensa-tdep.c (xtensa_return_value): Likewise.
5098 * gdbarch.c: Regenerate.
5099 * gdbarch.h: Regenerate.
5100
5101 2012-05-15 Tom Tromey <tromey@redhat.com>
5102
5103 * python/python.c (gdbpy_find_pc_line): Use gdb_py_ulongest.
5104
5105 2012-05-15 Joel Brobecker <brobecker@adacore.com>
5106
5107 * breakpoint.c (init_breakpoint_sal): Add quotes around part
5108 of command in two error message.
5109
5110 2012-05-15 Joel Brobecker <brobecker@adacore.com>
5111
5112 * breakpoint.c (init_breakpoint_sal): Remove trailing spaces.
5113
5114 2012-05-15 Joel Brobecker <brobecker@adacore.com>
5115
5116 * breakpoint.c (find_condition_and_thread): Minor reformatting.
5117
5118 2012-05-15 Jan Kratochvil <jan.kratochvil@redhat.com>
5119
5120 * NEWS (show auto-load scripts-directory): Add forgotten command.
5121
5122 2012-05-15 Jan Kratochvil <jan.kratochvil@redhat.com>
5123
5124 * spu-tdep.c (spu_catch_start): Update create_breakpoint caller
5125 parameters.
5126
5127 2012-05-14 H.J. Lu <hongjiu.lu@intel.com>
5128
5129 * amd64-tdep.c: Include features/i386/x32.c and
5130 features/i386/x32-avx.c.
5131 (_initialize_amd64_tdep): Call initialize_tdesc_x32 and
5132 initialize_tdesc_x32_avx.
5133
5134 2012-05-14 Stan Shebs <stan@codesourcery.com>
5135
5136 Add dynamic printf.
5137 * breakpoint.h (enum bptype): New type bp_dprintf.
5138 (struct breakpoint): New field extra_string.
5139 (struct breakpoint_ops): Add arg to create_breakpoints_sal.
5140 (create_breakpoint): Add extra_string arg.
5141 * breakpoint.c (dprintf_breakpoint_ops): New.
5142 (is_breakpoint): Add bp_dprintf.
5143 (bpstat_what): Add dprintf case.
5144 (bptype_string): Ditto.
5145 (print_one_breakpoint_location): Ditto.
5146 (init_bp_location): Ditto.
5147 (bkpt_print_mention): Ditto.
5148 (dprintf_style_enums): New array.
5149 (dprintf_style): New global.
5150 (dprintf_function): New global.
5151 (dprintf_channel): New global.
5152 (update_dprintf_command_list): New function.
5153 (update_dprintf_commands): New function.
5154 (init_breakpoint_sal): Add extra_string argument, handle it.
5155 (create_breakpoint_sal): Add extra_string argument.
5156 (create_breakpoints_sal): Add extra_string argument, update callers.
5157 (find_condition_and_thread): Add extra argument.
5158 (create_breakpoint): Add extra_string argument, record it.
5159 (dprintf_command): New function.
5160 (break_command_1): Add arg to create_breakpoint call.
5161 (handle_gnu_v3_exceptions): Ditto.
5162 (trace_command): Ditto.
5163 (ftrace_command): Ditto.
5164 (strace_command): Ditto.
5165 (bkpt_print_mention): Add dprintf case.
5166 (create_breakpoint_sal_default): Add extra_string argument.
5167 (_initialize_breakpoint): Add new commands.
5168 * mi/mi-cmd-break.c (mi_cmd_break_insert): Add arg to call.
5169 * python/py-breakpoint.c (bppy_init): Ditto.
5170 * python/py-finishbreakpoint.c (bpfinishpy_init): Ditto.
5171
5172 2012-05-14 Maciej W. Rozycki <macro@codesourcery.com>
5173
5174 * mips-tdep.c (mips_push_dummy_code): Correct description typo.
5175
5176 2012-05-14 Siva Chandra Reddy <sivachandra@google.com>
5177
5178 * python/python.c (gdbpy_find_pc_line): Use ULONGEST instead of
5179 unsigned long long.
5180
5181 2012-05-13 Siva Chandra Reddy <sivachandra@google.com>
5182
5183 Add a new function gdb.find_pc_line to the Python API.
5184 * NEWS (Python Scripting): Add entry about the new function.
5185 * python/python.c (gdbpy_find_pc_line): New function which
5186 implements gdb.find_pc_line.
5187 (GdbMethods): Add entry for the new function.
5188
5189 2012-05-12 Pedro Alves <palves@redhat.com>
5190
5191 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Call
5192 initialize_tdesc_x32_linux and initialize_tdesc_x32_avx_linux.
5193
5194 2012-05-12 Eli Zaretskii <eliz@gnu.org>
5195
5196 * inferior.c: Include completer.h
5197 (initialize_inferiors): Set completer of add-inferior to
5198 filename_completer.
5199
5200 2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
5201
5202 * amd64-linux-tdep.c (amd64_linux_core_read_description): Check
5203 gdbarch_ptr_bit for x32 core dump.
5204
5205 2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
5206
5207 * amd64-linux-tdep.c: Include features/i386/x32-linux.c
5208 and features/i386/x32-avx-linux.c.
5209
5210 2012-05-11 Stan Shebs <stan@codesourcery.com>
5211 Kwok Cheung Yeung <kcy@codesourcery.com>
5212
5213 * NEWS: Describe new info os commands.
5214 * common/linux-osdata.c (PID_T, TIME_T): Define.
5215 (MAX_PID_T_STRLEN): New.
5216 (linux_common_core_of_thread): Add comment. Change to use PID_T and
5217 MAX_PID_T_STRLEN.
5218 (command_from_pid): Add comment. Change to use PID_T.
5219 (commandline_from_pid): Change to use PID_T.
5220 (user_from_pid): Add comment.
5221 (get_process_owner): Add comment. Change to use PID_T and
5222 MAX_PID_T_STRLEN.
5223 (get_number_of_cpu_cores): Add comment.
5224 (get_cores_used_by_process): Add comment. Change to use PID_T and
5225 MAX_PID_T_STRLEN.
5226 (linux_xfer_osdata_processes): Change to use PID_T and
5227 MAX_PID_T_STRLEN.
5228 (compare_processes): New function.
5229 (linux_xfer_osdata_processgroups): New function.
5230 (linux_xfer_osdata_threads): Change to use PID_T.
5231 (linux_xfer_osdata_fds): New function.
5232 (format_socket_state, print_sockets): New functions.
5233 (union socket_addr): New union.
5234 (linux_xfer_osdata_isockets): New function.
5235 (time_from_time_t, group_from_gid): New functions.
5236 (linux_xfer_osdata_shm): New function.
5237 (linux_xfer_osdata_sem): New function.
5238 (linux_xfer_osdata_msg): New function.
5239 (linux_xfer_osdata_modules): New function.
5240 (osdata_table): Add new entries.
5241 * common/buffer.c (buffer_xml_printf): Add support for long and
5242 long long format specifiers.
5243
5244 2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
5245
5246 * amd64-linux-tdep.h (tdesc_x32_linux): New.
5247 (tdesc_x32_avx_linux): Likewise.
5248
5249 2012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
5250
5251 Implement multi-component --with-auto-load-dir.
5252 * NEWS (set auto-load scripts-directory, --with-auto-load-dir): New
5253 entries.
5254 (--with-auto-load-safe-path): Update the default value description.
5255 * auto-load.c (auto_load_dir, set_auto_load_dir, show_auto_load_dir):
5256 New.
5257 (auto_load_objfile_script): Add DEBUG_AUTO_LOAD output. Remove
5258 GDB_DATADIR NULL check. Replace GDB_DATADIR/auto-load by
5259 AUTO_LOAD_DIR. Support $ddir and multiple components in it.
5260 (_initialize_auto_load): Initialize also auto_load_dir. Install new
5261 "set auto-load scripts-directory".
5262 * config.in: Regenerate.
5263 * configure: Regenerate.
5264 * configure.ac (--with-auto-load-dir): New configure option.
5265 (--auto-load-safe-path): Change the default to --with-auto-load-dir.
5266
5267 2012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
5268
5269 Provide $ddir substitution for --with-auto-load-safe-path.
5270 * NEWS (--with-auto-load-safe-path, --without-auto-load-safe-path): New
5271 entries.
5272 * auto-load.c: Include observer.h.
5273 (auto_load_safe_path_vec_update): Call substitute_path_component for
5274 each component. New variable ddir_subst.
5275 (auto_load_gdb_datadir_changed): New function.
5276 (set_auto_load_safe_path): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
5277 AUTO_LOAD_SAFE_PATH. New comment.
5278 (_initialize_auto_load): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
5279 AUTO_LOAD_SAFE_PATH. Install auto_load_gdb_datadir_changed.
5280 * config.in: Regenerate.
5281 * configure: Regenerate.
5282 * configure.ac (--auto-load-safe-path): Rename
5283 DEFAULT_AUTO_LOAD_SAFE_PATH to AUTO_LOAD_SAFE_PATH. Default to
5284 GDB_DATADIR/auto-load.
5285 * defs.h (substitute_path_component): New declaration.
5286 * top.c: Include observer.h.
5287 (set_gdb_datadir): New function.
5288 (init_main): Install it for "set data-directory".
5289 * utils.c (substitute_path_component): New function.
5290
5291 2012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
5292
5293 Make auto-load handle multiple components of DEBUG_FILE_DIRECTORY.
5294 * auto-load.c (auto_load_objfile_script): Remove check for NULL
5295 DEBUG_FILE_DIRECTORY. Handle multiple components of
5296 DEBUG_FILE_DIRECTORY.
5297
5298 2012-05-10 Tom Tromey <tromey@redhat.com>
5299
5300 * dwarf2read.c (recursively_write_psymbols): New function.
5301 (write_psymtabs_to_index): Use it.
5302
5303 * dwarf2read.c (struct dwarf2_queue_item) <pretend_language>: New
5304 field.
5305 (load_cu, dw2_do_instantiate_symtab, process_psymtab_comp_unit)
5306 (load_partial_comp_unit): Update.
5307 (queue_comp_unit): Add argument 'pretend_language'.
5308 (process_queue): Update.
5309 (psymtab_to_symtab_1): Skip dependencies that have a user.
5310 (load_partial_comp_unit_reader): Give meaning to the 'data'
5311 argument.
5312 (load_full_comp_unit): Add 'pretend_language' argument.
5313 (process_full_comp_unit): Add 'pretend_language' argument. Set
5314 language on CU.
5315 (process_imported_unit_die, read_file_scope, read_type_unit_scope):
5316 Update.
5317 (maybe_queue_comp_unit): Add 'pretend_language' argument.
5318 (follow_die_offset, follow_die_sig, read_signatured_type_reader):
5319 Update.
5320 (prepare_one_comp_unit): Add 'pretend_language' argument.
5321
5322 * dwarf2read.c: (dwarf2_per_cu_ptr): New typedef.
5323 (struct dwarf2_per_objfile) <just_read_cus>: New field.
5324 (struct dwarf2_per_cu_data) <imported_symtabs>: New field.
5325 (dw2_do_instantiate_symtab): Check whether symtab was read in
5326 before queueing.
5327 (dw2_instantiate_symtab): Add assertion. Call
5328 process_cu_includes.
5329 (process_psymtab_comp_unit): Compute 'dependencies' for psymtab.
5330 (partial_symtab_p): New typedef.
5331 (set_partial_user): New function.
5332 (dwarf2_build_psymtabs_hard): Use set_partial_user.
5333 (scan_partial_symbols): Add imported CU to imported_symtabs.
5334 (dwarf2_psymtab_to_symtab): Call process_cu_includes.
5335 (psymtab_to_symtab_1): Do nothing if psymtab is readin.
5336 (get_symtab, recursively_compute_inclusions)
5337 (compute_symtab_includes, process_cu_includes)
5338 (process_imported_unit_die): New functions.
5339 (process_die) <DW_TAG_imported_unit>: New case.
5340 (dwarf2_per_objfile_free): Free 'imported_symtabs'.
5341
5342 * dwarf2read.c (struct dwarf2_per_cu_data) <psymtab>: Update
5343 comment.
5344 (struct partial_die_info) <locdesc>: Remove.
5345 <d>: New field.
5346 (process_psymtab_comp_unit): Add 'read_partial' argument.
5347 Update.
5348 (process_type_comp_unit, dwarf2_build_psymtabs_hard): Update.
5349 (scan_partial_symbols): Handle DW_TAG_imported_unit.
5350 (add_partial_symbol): Update.
5351 (process_die): Handle DW_TAG_partial_unit.
5352 (read_file_scope): Update comment.
5353 (load_partial_dies): Handle DW_TAG_imported_unit.
5354 (read_partial_die): Handle DW_TAG_partial_unit, DW_AT_import.
5355 (determine_prefix, dwarf2_name): Handle DW_TAG_partial_unit.
5356
5357 2012-05-10 Tom Tromey <tromey@redhat.com>
5358
5359 * cc-with-dwz.sh: New file.
5360
5361 2012-05-10 Tom Tromey <tromey@redhat.com>
5362
5363 * symtab.h (struct symtab) <includes, user>: New fields.
5364 * block.h (struct block_iterator) <d, idx, which>: New fields.
5365 * block.c (initialize_block_iterator, find_iterator_symtab)
5366 (block_iterator_step, block_iter_name_step)
5367 (block_iter_match_step): New functions.
5368 (block_iterator_first, block_iterator_next)
5369 (block_iter_name_first, block_iter_name_next)
5370 (block_iter_match_first, block_iter_match_next): Rewrite.
5371 (get_block_symtab): New function.
5372
5373 2012-05-10 Tom Tromey <tromey@redhat.com>
5374
5375 * jv-lang.c (get_java_class_symtab): Use allocate_global_block,
5376 set_block_symtab.
5377 * jit.c (finalize_symtab): Use allocate_global_block,
5378 set_block_symtab.
5379 * buildsym.c (finish_block_internal): New function, from old
5380 finish_block.
5381 (finish_block): Rewrite.
5382 (end_symtab): Use finish_block_internal, set_block_symtab.
5383 * block.h (struct global_block): New.
5384 (allocate_global_block, set_block_symtab): Declare.
5385 * block.c (allocate_global_block, set_block_symtab): New
5386 functions.
5387
5388 2012-05-10 Tom Tromey <tromey@redhat.com>
5389
5390 * psymtab.c (partial_map_expand_apply): Add assertion.
5391 (partial_map_symtabs_matching_filename): Skip included psymtabs.
5392 (psymtab_to_symtab): Find unshared psymtab.
5393 (dump_psymtab): Print including psymtabs.
5394 (recursively_search_psymtabs): New function.
5395 (expand_symtabs_matching_via_partial): Use it.
5396 * psympriv.h (struct partial_symtab) <user, searched_flag>: New
5397 fields.
5398 (enum psymtab_search_status): New.
5399
5400 2012-05-10 Tom Tromey <tromey@redhat.com>
5401
5402 * tracepoint.c (scope_info): Update.
5403 * symtab.c (lookup_block_symbol, iterate_over_symbols)
5404 (find_pc_sect_symtab, search_symbols)
5405 (default_make_symbol_completion_list_break_on)
5406 (make_file_symbol_completion_list): Update.
5407 * symmisc.c (dump_symtab_1): Update.
5408 * stack.c (print_frame_args, iterate_over_block_locals)
5409 (print_frame_labels, iterate_over_block_arg_vars): Update.
5410 * python/py-block.c (block_object) <dict>: Remove.
5411 <block>: New field.
5412 <iter>: Change type.
5413 (blpy_iter): Update.
5414 (blpy_block_syms_iternext): Update.
5415 * psymtab.c (map_block): Use block iterators.
5416 * objfiles.c (objfile_relocate1): Use ALL_DICT_SYMBOLS.
5417 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
5418 * mdebugread.c (parse_symbol, mylookup_symbol): Update.
5419 * infrun.c (check_exception_resume): Update.
5420 * cp-support.c (make_symbol_overload_list_block): Update.
5421 * coffread.c (patch_opaque_types): Update.
5422 * buildsym.c (finish_block, end_symtab): Use ALL_DICT_SYMBOLS.
5423 * block.h (struct block_iterator): New.
5424 (block_iterator_first, block_iterator_next, block_iter_name_first)
5425 (block_iter_name_next, block_iter_match_first)
5426 (block_iter_match_next): Declare.
5427 (ALL_BLOCK_SYMBOLS): Redefine.
5428 * block.c (block_iterator_first, block_iterator_next)
5429 (block_iter_name_first, block_iter_name_next)
5430 (block_iter_match_first, block_iter_match_next): New functions.
5431 * ada-lang.c (ada_add_block_symbols)
5432 (ada_make_symbol_completion_list): Use block iterator.
5433
5434 2012-05-10 Tom Tromey <tromey@redhat.com>
5435
5436 * psymtab.c (PSYMTAB_TO_SYMTAB): Remove.
5437 (find_pc_sect_symtab_from_partial, lookup_symbol_aux_psymtabs)
5438 (lookup_partial_symbol, find_last_source_symtab_from_partial)
5439 (read_psymtabs_with_filename, map_matching_symbols_psymtab)
5440 (expand_symtabs_matching_via_partial, maintenance_check_symtabs):
5441 Update.
5442
5443 2012-05-10 Joel Brobecker <brobecker@adacore.com>
5444
5445 * config/djgpp/fnchange.lst: Add entries for print-file-var-lib1.c,
5446 print-file-var-lib2.c, print-file-var-main.c and
5447 print-file-var.exp (located in gdb/testsuite/gdb.base).
5448
5449 2012-05-10 Joel Brobecker <brobecker@adacore.com>
5450
5451 * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
5452 try locating the symbol in the symbol's own objfile first, before
5453 extending the search to all objfiles.
5454 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
5455 out of lookup_symbol_aux_symtabs.
5456 (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
5457 Replace extracted-out code by call to lookup_symbol_aux_objfile.
5458 Do not search EXCLUDE_OBJFILE.
5459 (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
5460 (lookup_symbol_global): Search for matches in the block's objfile
5461 first, before searching all other objfiles.
5462
5463 2012-05-10 Tristan Gingold <gingold@adacore.com>
5464
5465 * printcmd.c (set_command): Add pre/post inc/dec.
5466
5467 2012-05-09 Frank Ch. Eigler <fche@redhat.com>
5468
5469 * gdb.1: Document -ex option.
5470
5471 2012-05-09 Joel Brobecker <brobecker@adacore.com>
5472
5473 * infcall.c (call_function_by_hand): Remove AT_SYMBOL handling.
5474 * inferior.h (AT_SYMBOL): Delete.
5475
5476 2012-05-09 Joel Brobecker <brobecker@adacore.com>
5477
5478 * mips-tdep.c (mips_push_dummy_code): New function.
5479 (mips_gdbarch_init): Set the gdbarch call_dummy_location to
5480 ON_STACK and install mips_push_dummy_code as our gdbarch
5481 push_dummy_code routine.
5482
5483 2012-05-09 Pedro Alves <palves@redhat.com>
5484
5485 * target.c (set_maintenance_target_async_permitted): Rename to ...
5486 (set_target_async_command): ... this.
5487 (show_maintenance_target_async_permitted): Rename to ...
5488 (show_target_async_command): ... this.
5489 (initialize_targets): Adjust.
5490
5491 2012-05-08 Doug Evans <dje@google.com>
5492
5493 * go-exp.y (classify_name): Add missing assignment of fields of
5494 yylval.ssym.
5495
5496 2012-05-08 Eli Zaretskii <eliz@gnu.org>
5497
5498 Display the ">" prompt in interactive mode while reading canned
5499 commands, even when the current interpreter is MI.
5500
5501 * interps.c (interp_set_temp): New function.
5502
5503 * interps.h (interp_set_temp): Add prototype.
5504
5505 * cli/cli-script.c (restore_interp): New cleanup function.
5506 (read_command_lines): Temporarily override the current interpreter
5507 with CLI and arrange for restoring the original one.
5508
5509 2012-05-12 Joel Sherrill <joel.sherrill@oarcorp.com>
5510
5511 * microblaze-rom.c (_initialize_picobug_rom): Add prototype.
5512
5513 2012-05-07 Sergio Durigan Junior <sergiodj@redhat.com>
5514
5515 * probe.c (parse_probes): Move conditional to check for
5516 debuginfo files from here...
5517 * stap-probe.c (stap_get_probes): ... to here.
5518
5519 2012-05-07 Mark Kettenis <kettenis@gnu.org>
5520 H.J. Lu <hongjiu.lu@intel.com>
5521
5522 * amd64-tdep.c (amd64_analyze_prologue): Additionally check for
5523 `movl %esp, %ebp' for the X32 ABI.
5524
5525 2012-05-07 Tom Tromey <tromey@redhat.com>
5526
5527 * dwarf2read.c (dwarf_tag_name): Return const char *. Use
5528 get_DW_TAG_name.
5529 (dwarf_attr_name): Return const char *. Use get_DW_AT_name.
5530 (dwarf_form_name): Return const char *. Use get_DW_FORM_name.
5531 (dwarf_stack_op_name): Remove.
5532 (dwarf_cfi_name): Return const char *. Use get_DW_ATE_name.
5533 (decode_locdesc): Use get_DW_OP_name.
5534 * dwarf2loc.c (unimplemented): Use get_DW_OP_name.
5535 (dwarf2_compile_expr_to_ax): Likewise.
5536 (disassemble_dwarf_expression): Likewise.
5537 * dwarf2expr.h: (dwarf_stack_op_name): Remove.
5538
5539 2012-05-07 Chung-Lin Tang <cltang@codesourcery.com>
5540
5541 * sh-linux-tdep.c: Include trad-frame.h and tramp-frame.h.
5542 (sh_linux_sigtramp_cache): New function.
5543 (sh_linux_sigreturn_init): New function.
5544 (sh_linux_rt_sigreturn_init): New function.
5545 (SH_MOVW,SH_TRAP,SH_OR_R0_R0): New symbols for instruction
5546 patterns.
5547 (SH_NR_SIGRETURN,SH_NR_RT_SIGRETURN): New symbols for sigreturn
5548 syscall codes.
5549 (sh_linux_sigreturn_tramp_frame): New tramp_frame definition.
5550 (sh_linux_rt_sigreturn_tramp_frame): Likewise.
5551 (sh_linux_init_abi): Add init calls to register new tramp_frame
5552 definitions under 32-bit SH, update comments.
5553
5554 2012-05-07 Pedro Alves <palves@redhat.com>
5555
5556 PR gdb/10952
5557
5558 * amd64-linux-tdep.c: Include glibc-tdep.h.
5559 (amd64_linux_init_abi): Install glibc_skip_solib_resolver as
5560 gdbarch_skip_solib_resolver callback.
5561
5562 2012-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
5563
5564 * auto-load.c (set_auto_load_safe_path): Reset AUTO_LOAD_SAFE_PATH
5565 back to DEFAULT_AUTO_LOAD_SAFE_PATH if it is being set to "".
5566 (show_auto_load_safe_path): Check any-directory by comparison with "/".
5567 (add_auto_load_safe_path): Change the error message.
5568 (_initialize_auto_load): Change the "safe-path" help text.
5569 * configure: Regenerate
5570 * configure.ac (--without-auto-load-safe-path): Set
5571 WITH_AUTO_LOAD_SAFE_PATH to /.
5572
5573 2012-05-05 Sergio Durigan Junior <sergiodj@redhat.com>
5574
5575 * stap-probe.h: Do not include unecessary `probe.h'.
5576
5577 2012-05-05 Alan Modra <amodra@gmail.com>
5578
5579 * elfread.c (elf_symtab_read): Use bfd_abs_section_ptr and
5580 bfd_und_section_ptr.
5581 * machoread.c (macho_symtab_add_minsym): Use bfd_abs_section_ptr
5582 and bfd_com_section_ptr.
5583
5584 2012-05-04 Joel Brobecker <brobecker@adacore.com>
5585
5586 * MAINTAINERS (Past Maintainers): Add Chris Faylor.
5587
5588 2012-05-04 Joel Brobecker <brobecker@adacore.com>
5589
5590 * windows-nat.h (segment_register_p_ftype): New typedef.
5591 (windows_set_segment_register_p): Add declaration.
5592 * windows-nat.c (segment_register_p): New static global.
5593 (windows_set_segment_register_p): New function.
5594 (do_windows_fetch_inferior_registers): Add special handling
5595 for segment registers.
5596 * amd64-windows-nat.c: #include "amd64-tdep.h".
5597 (amd64_windows_segment_register_p): New function.
5598 (_initialize_amd64_windows_nat): Call windows_set_segment_register_p.
5599 * i386-windows-nat.c: #include "i386-tdep.h".
5600 (i386_windows_segment_register_p): New function.
5601 (_initialize_i386_windows_nat): Call windows_set_segment_register_p.
5602
5603 2012-05-04 Tristan Gingold <gingold@adacore.com>
5604
5605 * printcmd.c (set_command): Emit a warning if the expression is not
5606 an assignment.
5607
5608 2012-05-03 Joel Brobecker <brobecker@adacore.com>
5609
5610 * nto-procfs.c (procfs_find_new_threads, procfs_pid_to_str):
5611 Make static.
5612
5613 2012-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
5614
5615 * stap-probe.c (stap_is_operator): Change declaration.
5616 (stap_get_opcode): Change return value.
5617 (stap_parse_argument_1): Update calls to `stap_get_opcode' and
5618 `stap_parse_argument_1'.
5619
5620 2012-05-03 Pedro Alves <pedro@codesourcery.com>
5621
5622 * infrun.c (displaced_step_fixup): Add "displaced:" prefix to
5623 debug log.
5624
5625 2012-05-03 Siva Chandra Reddy <sivachandra@google.com>
5626
5627 Add two new methods global_block and static_block to gdb.Symtab
5628 objects.
5629 * NEWS (Python scripting): Add entry about the new methods.
5630 * python/py-symtab.c (stpy_global_block): New function which
5631 implements the gdb.Symtab.global_block() method.
5632 (stpy_static_block): New function which implements the
5633 gdb.Symtab.static_block() method.
5634 (symtab_object_methods): Add entries for the two new methods.
5635
5636 2012-05-03 Doug Evans <dje@google.com>
5637
5638 * dwarf2read.c (dw2_find_symbol_file): Don't crash if there are no
5639 files.
5640
5641 2012-05-03 Yao Qi <yao@codesourcery.com>
5642
5643 * i386-tdep.c (i386_fetch_pointer_argument): Remove extra
5644 space.
5645 (i386_process_record): Ditto.
5646
5647 2012-05-02 Joel Brobecker <brobecker@adacore.com>
5648
5649 * infcall.c (unwind_on_signal_p): Make static.
5650
5651 2012-05-02 Joel Brobecker <brobecker@adacore.com>
5652
5653 * sol-thread.c (solaris_pid_to_str): Make static.
5654 (_initialize_sol_thread): Add prototype.
5655
5656 2012-05-02 Joel Brobecker <brobecker@adacore.com>
5657
5658 * sol-thread.c (procfs_pid_to_str): Delete extern declaration.
5659
5660 2012-05-02 Christopher Faylor <me.cygwin2012@cgf.cx>
5661
5662 * MAINTAINERS: Remove myself.
5663
5664 2012-05-02 Jan Kratochvil <jan.kratochvil@redhat.com>
5665
5666 Fix --without-auto-load-safe-path for MS-Windows host platform.
5667 * auto-load.c (filename_is_in_dir): Return 1 for DIR_LEN 0.
5668
5669 2012-05-02 Eli Zaretskii <eliz@gnu.org>
5670
5671 * gdb_curses.h: Undefine KEY_EVENT before including curses
5672 headers. Move "#undef MOUSE_MOVED" before any curses header
5673 inclusion.
5674
5675 2012-05-02 Sergio Durigan Junior <sergiodj@gmail.com>
5676
5677 * features/i386/i386-mmx-linux.c: Regenerate.
5678 * features/rs6000/powerpc-32.c: Likewise.
5679 * features/rs6000/powerpc-32l.c: Likewise.
5680 * features/rs6000/powerpc-403.c: Likewise.
5681 * features/rs6000/powerpc-403gc.c: Likewise.
5682 * features/rs6000/powerpc-405.c: Likewise.
5683 * features/rs6000/powerpc-505.c: Likewise.
5684 * features/rs6000/powerpc-601.c: Likewise.
5685 * features/rs6000/powerpc-602.c: Likewise.
5686 * features/rs6000/powerpc-603.c: Likewise.
5687 * features/rs6000/powerpc-604.c: Likewise.
5688 * features/rs6000/powerpc-64.c: Likewise.
5689 * features/rs6000/powerpc-64l.c: Likewise.
5690 * features/rs6000/powerpc-750.c: Likewise.
5691 * features/rs6000/powerpc-860.c: Likewise.
5692 * features/rs6000/powerpc-e500.c: Likewise.
5693 * features/rs6000/powerpc-e500l.c: Likewise.
5694 * features/rs6000/powerpc-isa205-32l.c: Likewise.
5695 * features/rs6000/powerpc-isa205-64l.c: Likewise.
5696 * features/rs6000/rs6000.c: Likewise.
5697
5698 2012-05-02 Sergio Durigan Junior <sergiodj@gmail.com>
5699
5700 * i386-tdep.c (i386_stap_parse_special_token) <s>: Remove unused
5701 variable.
5702 * stap-probe.c (stap_parse_single_operand) <reg_suffix,
5703 reg_ind_suffix, reg_suffix_len, reg_ind_suffix_len>: Likewise.
5704 (stap_parse_argument) <e>: Likewise.
5705 (handle_stap_probe) <byte_order>: Likewise.
5706
5707 2012-04-30 Doug Evans <dje@google.com>
5708
5709 * dwarf2read.c (init_cutu_and_read_dies): Renamed from
5710 init_and_read_dies_worker. All callers updated.
5711 (init_cu_and_read_dies, init_tu_and_read_dies): Delete. All calls
5712 replaced with init_cutu_and_read_dies.
5713 (load_partial_comp_unit): Pass 1 for use_existing_cu.
5714 (find_partial_die): Remove FIXME. Don't free current CU.
5715
5716 2012-04-30 Sterling Augustine <saugustine@google.com>
5717
5718 * contrib: New directory.
5719 * contrib/test_pubnames_and_indexes.py: New file.
5720
5721 2012-04-30 Doug Evans <dje@google.com>
5722
5723 * dwarf2read.c (dwarf_decode_macros): New arg section_name.
5724 All callers updated.
5725 (init_cu_die_reader): Verify the section is non-empty.
5726 (dwarf_decode_line_header): Don't dereference section->asection
5727 until we know the section is present.
5728
5729 2012-04-29 Sergio Durigan Junior <sergiodj@redhat.com>
5730
5731 * tracepoint.c (start_tracing, stop_tracing): Checking for NULL
5732 probes.
5733
5734 2012-04-29 Yao Qi <yao@codesourcery.com>
5735
5736 * gdb-code-style.el: New hook gdb-markup-hook
5737 and gdb-comment-hook.
5738
5739 2012-04-28 Doug Evans <dje@google.com>
5740
5741 Initial support for Fission. http://gcc.gnu.org/wiki/DebugFission
5742 * symfile.c (default_symfile_relocate): Use sectp->owner instead of
5743 objfile->obfd.
5744 * symfile.h (dwarf2_debug_sections): New member addr.
5745 * dwarf2expr.c (execute_stack_op): New case DW_OP_GNU_addr_index.
5746 (ctx_no_get_addr_index): New function.
5747 * dwarf2expr.h (dwarf_expr_context_funcs): New member get_addr_index.
5748 (ctx_no_get_addr_index): Declare.
5749 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): Update.
5750 * dwarf2loc.c (dwarf_expr_get_addr_index): New function.
5751 (dwarf_expr_ctx_funcs): Update.
5752 (needs_get_addr_index): New function.
5753 (needs_frame_ctx_funcs): Update.
5754 * dwarf2loc.h (dwarf2_read_addr_index): Declare.
5755 * dwarf2read.c: #include "gdbcore.h".
5756 (dwarf2_per_objfile): New members addr, dwo_files.
5757 (dwarf2_elf_names): Add entry for addr.
5758 (struct dwo_section_names): New type.
5759 (dwo_section_names): New static global.
5760 (dwarf2_cu): New members dwo_unit, addr_base, have_addr_base.
5761 (dwarf2_per_cu_data): New member is_debug_types, all boolean uses of
5762 old debug_types_section member updated to use this.
5763 Rename member debug_types_section to info_or_types_section,
5764 all uses updated.
5765 (signatured_type): Rename member type_offset to type_offset_in_tu,
5766 all uses updated. New member type_offset_in_section.
5767 (struct dwo_sections): New type.
5768 (struct dwo_unit): New type.
5769 (struct dwo_file): New type.
5770 (die_reader_specs): New member dwo_file.
5771 (dwarf2_locate_sections): Watch for .debug_addr.
5772 (zlib_decompress_section): Use sectp->owner instead of objfile->obfd.
5773 (dwarf2_read_section): Get bfd of section from bfd's asection,
5774 instead of objfile.
5775 (create_cus_from_index): Initialize the_cu->info_or_types_section.
5776 (create_signatured_type_table_from_index): Initialize
5777 sig_type->info_or_types_section.
5778 (dw2_get_file_names): Statement lists for type units with DWO files
5779 live in the DWO file.
5780 (create_debug_types_hash_table): New function.
5781 (create_all_type_units): Rewrite.
5782 (init_cu_die_reader): New arg dwo_file, all callers updated.
5783 (init_and_read_dies_worker): Get section from
5784 this_cu->info_or_types_section. Set sig_type->type_offset_in_section.
5785 Watch for DW_AT_GNU_dwo_name and if present lookup the file and
5786 continue reading the CU/TU from there.
5787 (init_cutu_and_read_dies_no_follow): New arg dwo_file, all callers
5788 updated. Get section from this_cu->info_or_types_section.
5789 (create_all_comp_units): Initialize this_cu->info_or_types_section.
5790 (skip_one_die): New cases DW_FORM_GNU_addr_index,
5791 DW_FORM_GNU_str_index.
5792 (hash_dwo_file, eq_dwo_file): New functions.
5793 (allocate_dwo_file_hash_table): New function.
5794 (hash_dwo_unit, eq_dwo_unit): New functions.
5795 (allocate_dwo_unit_table): New function.
5796 (dwarf2_locate_dwo_sections): New function.
5797 (struct create_dwo_info_table_data): New type.
5798 (create_debug_info_hash_table_reader): New function.
5799 (create_debug_info_hash_table): New function.
5800 (try_open_dwo_file, open_dwo_file, init_dwo_file): New function.
5801 (lookup_dwo_file): New function.
5802 (lookup_dwo_comp_unit, lookup_dwo_type_unit): New functions.
5803 (free_dwo_file, free_dwo_file_cleanup): New functions.
5804 (free_dwo_file_from_slot, free_dwo_files): New functions.
5805 (dwarf2_get_pc_bounds): Handle DW_FORM_GNU_addr_index.
5806 (dwarf2_record_block_ranges): Ditto.
5807 (read_partial_die): Ditto.
5808 (process_enumeration_scope): Update to use type_offset_in_section.
5809 (read_full_die_1): New function.
5810 (read_full_die): Rewrite.
5811 (read_attribute_value): New cases DW_FORM_GNU_addr_index,
5812 DW_FORM_GNU_str_index.
5813 (read_addr_index_1, read_addr_index): New functions.
5814 (read_addr_index_from_leb128): New function.
5815 (struct dwarf2_read_addr_index_data): New type.
5816 (dwarf2_read_addr_index_reader): New function.
5817 (dwarf2_read_addr_index): New function.
5818 (read_str_index): New function.
5819 (leb128_size): New function.
5820 (dwarf_decode_line_header): Delete arg abfd, all callers updated.
5821 If processing a type unit from a DWO file, get the line section
5822 from the DWO file.
5823 (var_decode_location): Watch for DW_OP_GNU_addr_index.
5824 (dwarf2_const_value_attr): New cases DW_FORM_GNU_addr_index,
5825 DW_FORM_GNU_str_index.
5826 (lookup_die_type): Check whether section offset of type's die is
5827 known before looking it up. Remove assert. Condition can
5828 legimately happen for inter-cu type references.
5829 (dwarf_attr_name): Handle Fission attributes.
5830 (dwarf_form_name): Handle Fission forms.
5831 (dump_die_shallow): New cases DW_FORM_GNU_addr_index,
5832 DW_FORM_GNU_str_index.
5833 (follow_die_sig): Update to use type_offset_in_section.
5834 (decode_locdesc): New case DW_OP_GNU_addr_index.
5835 (skip_form_bytes): New cases DW_FORM_GNU_addr_index,
5836 DW_FORM_GNU_str_index.
5837 (cu_debug_loc_section): New function.
5838 (fill_in_loclist_baton, dwarf2_symbol_mark_computed): Call it.
5839 (dwarf2_per_objfile_free): Unmap .debug_addr section.
5840 Free DWO files if present.
5841 * xcoffread.c (dwarf2_xcoff_names): Add .debug_addr.
5842
5843 Refactor DIE reading.
5844 * dwarf2read.c (dwarf2_per_objfile): Replace members
5845 debug_info_type_hash and debug_types_type_hash with die_type_hash.
5846 (die_reader_specs): New member "die_section". Temporarily make
5847 member "buffer" non-const, pending constifying all info_ptr uses.
5848 (die_reader_func_ftype): New typedef.
5849 (dw2_get_file_names_reader): New function.
5850 (dw2_get_file_names): Rewrite.
5851 (read_and_check_type_unit_head): Rename arg type_offset to
5852 type_offset_in_tu.
5853 (create_all_type_units): Improve debugging message.
5854 Improve dummy type unit check.
5855 (init_cu_die_reader): New arg "section". All callers updated.
5856 (init_and_read_dies_worker): New function.
5857 (init_cu_and_read_dies, init_tu_and_read_dies): New functions.
5858 (init_cutu_and_read_dies_no_follow): New function.
5859 (init_cutu_and_read_dies_simple): New function.
5860 (process_psymtab_comp_unit_reader): New function.
5861 (process_psymtab_comp_unit): Delete args section,
5862 is_debug_types_section. Rewrite. All callers updated.
5863 (process_psymtab_type_unit): Renamed from process_type_comp_unit.
5864 All callers updated. Rewrite.
5865 (load_partial_comp_unit_reader): New function.
5866 (load_partial_comp_unit): Rewrite.
5867 (skip_children): New arg reader. Delete args buffer, cu.
5868 All callers updated.
5869 (skip_one_die): New arg reader. Delete args buffer, cu.
5870 All callers updated.
5871 (locate_pdi_sibling): New arg reader. Delete args buffer, abfd, cu.
5872 All callers updated.
5873 (load_full_comp_unit_reader): New function.
5874 (load_full_comp_unit): Rewrite.
5875 (read_comp_unit): Delete.
5876 (read_die_and_children_1): Delete, contents moved ...
5877 (read_die_and_children): ... here.
5878 (dwarf2_read_abbrevs): New arg abbrev_section. All callers updated.
5879 (load_partial_dies): New arg reader. Delete args abfd, buffer, cu.
5880 All callers updated.
5881 (read_partial_die): New arg reader. Delete args abfd, buffer, cu.
5882 All callers updated.
5883 (find_partial_die): Rewrite load_all_dies support.
5884 (read_attribute_value): New arg reader. Delete args abfd, cu.
5885 All callers updated.
5886 (read_attribute): New arg reader. Delete args abfd, cu.
5887 All callers updated.
5888 (load_full_type_unit): Add assert.
5889 (read_signatured_type_reader): New function.
5890 (read_signatured_type): Rewrite.
5891 (free_stack_comp_unit): Remove call to age_cached_comp_units.
5892 (free_one_cached_comp_unit): Change target_cu arg to target_per_cu.
5893 All callers updated. Set per_cu->cu = NULL after freeing it.
5894 (dwarf2_per_cu_offset_and_type): Renamed from dwarf2_offset_and_type.
5895 (per_cu_offset_and_type_hash): Renamed from offset_and_type_hash.
5896 (per_cu_offset_and_type_eq): Renamed from offset_and_type_eq.
5897 (set_die_type): Update.
5898 (get_die_type_at_offset): Update.
5899 (read_file_scope): Call prepare_one_comp_unit.
5900 (read_type_unit_scope): Ditto.
5901 (prepare_one_comp_unit): Set producer if present.
5902
5903 2012-04-28 Sergio Durigan Junior <sergiodj@redhat.com>
5904
5905 * probe.c (compile_rx_or_error): Silence ARI warning about missing
5906 gettext function on `error'.
5907
5908 2012-04-27 Doug Evans <dje@google.com>
5909
5910 * dwarf2read.c (dwarf2_read_index): Don't use index if symbol table
5911 is empty.
5912
5913 2012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
5914 Tom Tromey <tromey@redhat.com>
5915
5916 * breakpoint.c (struct breakpoint_objfile_data)
5917 <longjmp_searched>,<longjmp_probes>,<exception_searched>,
5918 <exception_probes>: New fields.
5919 (free_breakpoint_probes): New function.
5920 (create_longjmp_master_breakpoint): Prefer SystemTap probe over
5921 `_Unwind_DebugHook'.
5922 (create_exception_master_breakpoint): Likewise.
5923 (_initialize_breakpoint): Registering cleanup for SystemTap probes.
5924 * infrun.c: Including necessary header files for handling SystemTap
5925 probes.
5926 (handle_inferior_event): Handling longjmp breakpoint and exceptions
5927 via SystemTap probes.
5928 (check_exception_resume): Remove `func' argument. Handle exception
5929 unwinding breakpoint set via a SystemTap probe.
5930 (insert_exception_resume_from_probe): New function.
5931
5932 2012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
5933 Tom Tromey <tromey@redhat.com>
5934 Jan Kratochvil <jan.kratochvil@redhat.com>
5935
5936 * Makefile.in (SFILES): Add `probe' and `stap-probe'.
5937 (COMMON_OBS): Likewise.
5938 (HFILES_NO_SRCDIR): Add `probe'.
5939 * NEWS: Mention support for static and SystemTap probes.
5940 * amd64-tdep.c (amd64_init_abi): Initializing proper fields used by
5941 SystemTap probes' arguments parser.
5942 * arm-linux-tdep.c: Including headers needed to perform the parsing
5943 of SystemTap probes' arguments.
5944 (arm_stap_is_single_operand): New function.
5945 (arm_stap_parse_special_token): Likewise.
5946 (arm_linux_init_abi): Initializing proper fields used by SystemTap
5947 probes' arguments parser.
5948 * ax-gdb.c (require_rvalue): Removing static declaration.
5949 (gen_expr): Likewise.
5950 * ax-gdb.h (gen_expr): Declaring function.
5951 (require_rvalue): Likewise.
5952 * breakpoint.c: Include `gdb_regex.h' and `probe.h'.
5953 (bkpt_probe_breakpoint_ops): New variable.
5954 (momentary_breakpoint_from_master): Set the `probe' value.
5955 (add_location_to_breakpoint): Likewise.
5956 (break_command_1): Using proper breakpoint_ops according to the
5957 argument passed by the user in the command line.
5958 (bkpt_probe_insert_location): New function.
5959 (bkpt_probe_remove_location): Likewise.
5960 (bkpt_probe_create_sals_from_address): Likewise.
5961 (bkpt_probe_decode_linespec): Likewise.
5962 (tracepoint_probe_create_sals_from_address): Likewise.
5963 (tracepoint_probe_decode_linespec): Likewise.
5964 (tracepoint_probe_breakpoint_ops): New variable.
5965 (trace_command): Using proper breakpoint_ops according to the
5966 argument passed by the user in the command line.
5967 (initialize_breakpoint_ops): Initializing breakpoint_ops for
5968 static probes on breakpoints and tracepoints.
5969 * breakpoint.h (struct bp_location) <probe>: New field.
5970 * cli-utils.c (skip_spaces_const): New function.
5971 (extract_arg): Likewise.
5972 * cli-utils.h (skip_spaces_const): Likewise.
5973 (extract_arg): Likewise.
5974 * coffread.c (coff_sym_fns): Add `sym_probe_fns' value.
5975 * configure.ac: Append `stap-probe.o' to be generated when ELF
5976 support is present.
5977 * configure: Regenerate.
5978 * dbxread.c (aout_sym_fns): Add `sym_probe_fns' value.
5979 * elfread.c: Include `probe.h' and `arch-utils.h'.
5980 (probe_key): New variable.
5981 (elf_get_probes): New function.
5982 (elf_get_probe_argument_count): Likewise.
5983 (elf_evaluate_probe_argument): Likewise.
5984 (elf_compile_to_ax): Likewise.
5985 (elf_symfile_relocate_probe): Likewise.
5986 (stap_probe_key_free): Likewise.
5987 (elf_probe_fns): New variable.
5988 (elf_sym_fns): Add `sym_probe_fns' value.
5989 (elf_sym_fns_lazy_psyms): Likewise.
5990 (elf_sym_fns_gdb_index): Likewise.
5991 (_initialize_elfread): Initialize objfile cache for static
5992 probes.
5993 * gdb_vecs.h (struct probe): New forward declaration.
5994 (probe_p): New VEC declaration.
5995 * gdbarch.c: Regenerate.
5996 * gdbarch.h: Regenerate.
5997 * gdbarch.sh (stap_integer_prefix): New variable.
5998 (stap_integer_suffix): Likewise.
5999 (stap_register_prefix): Likewise.
6000 (stap_register_suffix): Likewise.
6001 (stap_register_indirection_prefix): Likewise.
6002 (stap_register_indirection_suffix): Likewise.
6003 (stap_gdb_register_prefix): Likewise.
6004 (stap_gdb_register_suffix): Likewise.
6005 (stap_is_single_operand): New function.
6006 (stap_parse_special_token): Likewise.
6007 (struct stap_parse_info): Forward declaration.
6008 * i386-tdep.c: Including headers needed to perform the parsing
6009 of SystemTap probes' arguments.
6010 (i386_stap_is_single_operand): New function.
6011 (i386_stap_parse_special_token): Likewise.
6012 (i386_elf_init_abi): Initializing proper fields used by SystemTap
6013 probes' arguments parser.
6014 * i386-tdep.h (i386_stap_is_single_operand): New function.
6015 (i386_stap_parse_special_token): Likewise.
6016 * machoread.c (macho_sym_fns): Add `sym_probe_fns' value.
6017 * mipsread.c (ecoff_sym_fns): Likewise.
6018 * objfiles.c (objfile_relocate1): Support relocation for static
6019 probes.
6020 * parse.c (prefixify_expression): Remove static declaration.
6021 (initialize_expout): Likewise.
6022 (reallocate_expout): Likewise.
6023 * parser-defs.h (initialize_expout): Declare function.
6024 (reallocate_expout): Likewise.
6025 (prefixify_expression): Likewise.
6026 * ppc-linux-tdep.c: Including headers needed to perform the parsing
6027 of SystemTap probes' arguments.
6028 (ppc_stap_is_single_operand): New function.
6029 (ppc_stap_parse_special_token): Likewise.
6030 (ppc_linux_init_abi): Initializing proper fields used by SystemTap
6031 probes' arguments parser.
6032 * probe.c: New file, for generic statically defined probe support.
6033 * probe.h: Likewise.
6034 * s390-tdep.c: Including headers needed to perform the parsing of
6035 SystemTap probes' arguments.
6036 (s390_stap_is_single_operand): New function.
6037 (s390_gdbarch_init): Initializing proper fields used by SystemTap
6038 probes' arguments parser.
6039 * somread.c (som_sym_fns): Add `sym_probe_fns' value.
6040 * stap-probe.c: New file, for SystemTap probe support.
6041 * stap-probe.h: Likewise.
6042 * symfile.h: Include `gdb_vecs.h'.
6043 (struct sym_probe_fns): New struct.
6044 (struct sym_fns) <sym_probe_fns>: New field.
6045 * symtab.c (init_sal): Initialize `probe' field.
6046 * symtab.h (struct probe): Forward declaration.
6047 (struct symtab_and_line) <probe>: New field.
6048 * tracepoint.c (start_tracing): Adjust semaphore on breakpoints
6049 locations.
6050 (stop_tracing): Likewise.
6051 * xcoffread.c (xcoff_sym_fns): Add `sym_probe_fns' value.
6052
6053 2012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
6054 Tom Tromey <tromey@redhat.com>
6055
6056 * ax-gdb.c (gen_expr): Clean up code to handle internal variables
6057 and to compile agent expressions.
6058 * infrun.c (siginfo_make_value): New argument `ignore'.
6059 (siginfo_funcs): New struct.
6060 (_initialize_infrun): New argument when calling
6061 `create_internalvar_type_lazy'.
6062 * thread.c (thread_id_make_value): New argument `ignore'.
6063 (thread_funcs): New struct.
6064 (_initialize_thread): New argument when calling
6065 `create_internalvar_type_lazy'.
6066 * tracepoint.c (sdata_make_value): New argument `ignore'.
6067 (sdata_funcs): New struct.
6068 (_initialize_tracepoint): New argument when calling
6069 `create_internalvar_type_lazy'.
6070 * value.c (make_value): New struct.
6071 (create_internalvar_type_lazy): New argument `data'.
6072 (compile_internalvar_to_ax): New function.
6073 (value_of_internalvar): Properly handling `make_value' case.
6074 (clear_internalvar): Likewise.
6075 (show_convenience): Adding `TRY_CATCH' block.
6076 * value.h (internalvar_make_value): Delete, replace by...
6077 (struct internalvar_funcs): ... this.
6078 (create_internalvar_type_lazy) <fun>: Delete argument.
6079 (create_internalvar_type_lazy) <funcs>, <data>: New arguments.
6080 (compile_internalvar_to_ax): New function.
6081 * windows-tdep.c (tlb_make_value): New argument `ignore'.
6082 (tlb_funcs): New struct.
6083 (_initialize_windows_tdep): New argument when calling
6084 `create_internalvar_type_lazy'.
6085
6086 2012-04-27 Mark Wielaard <mjw@redhat.com>
6087
6088 * dwarf2read.c (dwarf2_get_pc_bounds): Check DW_AT_high_pc form to
6089 see whether it is an address or a constant offset from DW_AT_low_pc.
6090 (dwarf2_record_block_ranges): Likewise.
6091 (read_partial_die): Likewise.
6092
6093 2012-04-26 Mark Wielaard <mjw@redhat.com>
6094
6095 * MAINTAINERS (Write After Approval): Add myself to the list.
6096
6097 2012-04-26 Maciej W. Rozycki <macro@codesourcery.com>
6098
6099 * proc-utils.h (proc_prettyprint_signalset): New prototype.
6100 (proc_prettyprint_signal): Likewise.
6101 (proc_prettyprint_faultset): Likewise.
6102 (proc_prettyprint_fault): Likewise.
6103 (proc_prettyprint_actionset): Likewise.
6104 (proc_prettyprint_flags): Move to new proc-flags.c section.
6105 (proc_prettyfprint_flags): New prototype.
6106 * procfs.c (proc_nsysarg, proc_sysargs): Add prototypes.
6107 (proc_syscall, proc_cursig): Likewise.
6108 (proc_set_kill_on_last_close): Likewise.
6109 (proc_unset_kill_on_last_close): Likewise.
6110 (proc_set_watchpoint): Make static.
6111 (proc_delete_dead_threads): Likewise.
6112 (procfs_set_watchpoint): Likewise.
6113 (_initialize_procfs): Add prototype.
6114 * proc-events.c: Include proc-utils.h.
6115 (init_syscall_table): Make static.
6116 * proc-api.c (_initialize_proc_api): Add prototype.
6117 * proc-flags.c: Include proc-utils.h.
6118
6119 2012-04-26 Maciej W. Rozycki <macro@codesourcery.com>
6120
6121 * configure.ac: Add AC_ARG_PROGRAM.
6122 * configure: Regenerate.
6123
6124 2012-04-26 Jan Kratochvil <jan.kratochvil@redhat.com>
6125
6126 Fix DW_AT_lower_bound defaults for DWARF-4+.
6127 * dwarf2read.c (read_subrange_type): Remove initialization of low and
6128 high. New variable low_default_is_valid. Implement DWARF-4+
6129 DW_AT_lower_bound defaults. Print complaint for DW_AT_lower_bound with
6130 no default by the DWARF standard.
6131
6132 2012-04-26 Maciej W. Rozycki <macro@mips.com>
6133 Maciej W. Rozycki <macro@codesourcery.com>
6134
6135 * infrun.c (handle_inferior_event): Move the check for return
6136 trampolines ahead of the check for function trampolines.
6137 * mips-tdep.h (MIPS_S2_REGNUM, MIPS_GP_REGNUM): New macros.
6138 * mips-tdep.c (mips_str_mips16_call_stub): New variable.
6139 (mips_str_mips16_ret_stub): Likewise.
6140 (mips_str_call_fp_stub): Likewise.
6141 (mips_str_call_stub): Likewise.
6142 (mips_str_fn_stub): Likewise.
6143 (mips_str_pic): Likewise.
6144 (mips_in_frame_stub): New function.
6145 (mips_unwind_pc): Return the return address rather than the PC
6146 if the PC of an intermediate frame is inside a call thunk.
6147 (mips_is_stub_suffix): New function.
6148 (mips_is_stub_mode): Likewise.
6149 (mips_get_mips16_fn_stub_pc): Likewise.
6150 (mips_skip_mips16_trampoline_code): Update to handle all the
6151 currently generated stub types. Don't recurse into __fn_stub
6152 thunks. Remove heuristics to handle stubs beyond etext/_etext.
6153 Use cooked register accesses.
6154 (mips_in_return_stub): Reintroduce function.
6155 (mips_skip_trampoline_code): Traverse trampolines recursively.
6156 (mips_gdbarch_init): Handle MIPS16 return trampolines.
6157
6158 2012-04-26 Joel Brobecker <brobecker@adacore.com>
6159
6160 GDB 7.4.1 released.
6161
6162 2012-04-26 Jonathan Larmour <jifl@eCosCentric.com>
6163
6164 * arm-tdep.h (VFP_REGISTER_SIZE): Define.
6165 * features/arm-with-m-vfp-d16.xml: New file. Describes
6166 Cortex-M with VFPv4-sp-d16 FPU register layout.
6167 * features/Makefile (WHICH): Add arm-with-m-vfp-d16.
6168 * features/arm-with-m-vfp-d16.c: New. Generated from above.
6169 * arm-tdep.c: Include arm-with-m-vfp-d16.c.
6170 (arm-register_g_packet_guesses): Add vfp-d16 guess.
6171 (_initialise_arm_tdep): Initialize arm-with-m-vfp-d16 tdesc.
6172
6173 2012-04-25 Doug Evans <dje@google.com>
6174
6175 * cli/cli-decode.c (print_doc_line): Use stream instead of
6176 current_uiout.
6177
6178 2012-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
6179
6180 * features/arm-with-iwmmxt.c: Regenerate.
6181 * features/arm-with-m-fpa-layout.c: Likewise.
6182 * features/arm-with-m.c: Likewise.
6183 * features/arm-with-neon.c: Likewise.
6184 * features/arm-with-vfpv2.c: Likewise.
6185 * features/arm-with-vfpv3.c: Likewise.
6186 * features/mips-dsp-linux.c: Likewise.
6187 * features/mips-linux.c: Likewise.
6188 * features/mips64-dsp-linux.c: Likewise.
6189 * features/mips64-linux.c: Likewise.
6190 * features/s390-linux32.c: Likewise.
6191 * features/s390-linux32v1.c: Likewise.
6192 * features/s390-linux32v2.c: Likewise.
6193 * features/s390-linux64.c: Likewise.
6194 * features/s390-linux64v1.c: Likewise.
6195 * features/s390-linux64v2.c: Likewise.
6196 * features/s390x-linux64.c: Likewise.
6197 * features/s390x-linux64v1.c: Likewise.
6198 * features/s390x-linux64v2.c: Likewise.
6199 * features/tic6x-c62x-linux.c: Likewise.
6200 * features/tic6x-c62x.c: Likewise.
6201 * features/tic6x-c64x-linux.c: Likewise.
6202 * features/tic6x-c64x.c: Likewise.
6203 * features/tic6x-c64xp-linux.c: Likewise.
6204 * features/tic6x-c64xp.c: Likewise.
6205 * target-descriptions.c: Only generate `field_type' and `type'
6206 variables when needed.
6207
6208 2012-04-25 Fredrik Hederstierna <fredrikh.hederstierna@securitas-direct.com>
6209
6210 * cli/cli-cmds.c (cd_command): Use memmove instead of strcpy.
6211
6212 2012-04-25 Doug Evans <dje@google.com>
6213
6214 Initial pass at Go language support.
6215 * NEWS: Mention Go.
6216 * Makefile.in (SFILES): Add go-exp.y, go-lang.c, go-typeprint.c,
6217 go-valprint.c.
6218 (COMMON_OBS): Add go-lang.o, go-val.print.o, go-typeprint.o.
6219 (YYFILES): Add go-exp.c.
6220 (YYOBJ): Add go-exp.o.
6221 (local-maintainer-clean): Delete go-exp.c.
6222 * defs.h (enum language): Add language_go.
6223 * dwarf2read.c: #include "go-lang.h".
6224 (fixup_go_packaging): New function.
6225 (process_full_comp_unit): Call it when processing Go CUs.
6226 (dwarf2_physname): Add Go support.
6227 (read_file_scope): Handle missing language spec for GNU Go.
6228 (set_cu_language): Handle DW_LANG_Go.
6229 * go-exp.y: New file.
6230 * go-lang.h: New file.
6231 * go-lang.c: New file.
6232 * go-typeprint.c: New file.
6233 * go-valprint.c: New file.
6234 * symtab.c: #include "go-lang.h".
6235 (symbol_set_language): Handle language_go.
6236 (symbol_find_demangled_name, symbol_set_names): Ditto.
6237 (symbol_natural_name, demangle_for_lookup, find_main_name): Ditto.
6238
6239 2012-04-24 Jim Meyering <meyering@redhat.com>
6240
6241 avoid a few strncpy-induced buffer overruns
6242 * procfs.c (procfs_make_note_section): Be sure to NUL-terminate
6243 fname and psargs before trying to concatenate.
6244 * tui/tui-stack.c (tui_get_function_from_frame): NUL-terminate
6245 "name" before applying strchr.
6246
6247 2012-04-25 Siva Chandra Reddy <sivachandra@google.com>
6248
6249 * CONTRIBUTE: Use unified diff instead of context diff when
6250 generating patches.
6251
6252 2012-04-24 Maciej W. Rozycki <macro@codesourcery.com>
6253
6254 * mips-tdep.c (mips_about_to_return): Remove dead MIPS16 support
6255 code. Handle JR.HB correctly.
6256
6257 2012-04-24 Maciej W. Rozycki <macro@codesourcery.com>
6258
6259 * mips-tdep.c
6260 (is_mips16_addr, unmake_mips16_addr, make_mips16_addr): Group
6261 with the other MIPS16 helpers.
6262
6263 2012-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
6264
6265 * observer.sh: Conditionally declare `args', thus cleaning up
6266 unused instances of this variable.
6267
6268 2012-04-24 Yao Qi <yao@codesourcery.com>
6269
6270 Revert this patch to allow breakpoint always-inserted
6271 in record target.
6272 2011-12-05 Pedro Alves <pedro@codesourcery.com>
6273 * breakpoint.c: Include record.h.
6274 (breakpoints_always_inserted_mode): Return false when the record
6275 target is in use.
6276
6277 * breakpoint.c (iterate_over_bp_locations): New.
6278 * breakpoint.h: Declare.
6279 New typedef walk_bp_location_callback.
6280 * record.c (record_open): Call record_init_record_breakpoints.
6281 (record_sync_record_breakpoints): New.
6282 (record_init_record_breakpoints): New.
6283 * NEWS: Mention supporting breakpoint always-inserted mode in
6284 record target.
6285
6286 2012-04-24 Marc Khouzam <marc.khouzam@ericsson.com>
6287
6288 * mi/mi-main.c (mi_cmd_execute): Choose a live thread not just
6289 any thread.
6290
6291 2012-04-24 Yao Qi <yao@codesourcery.com>
6292
6293 * breakpoint.c (ep_is_catchpoint): Renamed to ...
6294 (is_catchpoint): ... it.
6295 (print_one_breakpoint_location): Caller update.
6296 * breakpoint.h: Update declaration.
6297
6298 2012-04-23 David S. Miller <davem@davemloft.net>
6299
6300 * configure.tgt (sparc-*-linux*): Set build_gdbserver to yes.
6301
6302 2012-04-23 Tom Tromey <tromey@redhat.com>
6303
6304 * buildsym.c (add_free_pendings): Remove.
6305 * buildsym.h (add_free_pendings): Remove.
6306
6307 2012-04-23 Doug Evans <dje@google.com>
6308
6309 * dwarf2read.c (partial_die_full_name): Record DW_FORM_ref_addr in
6310 attr.u.unsnd instead of attr.u.addr.
6311 (read_attribute_value) Ditto for cases DW_FORM_ref_addr,
6312 DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4, DW_FORM_reg8,
6313 DW_FORM_ref_udata.
6314 (dump_die_shallow): Update cases DW_FORM_ref_addr,
6315 DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4. Add cases DW_FORM_ref8,
6316 DW_FORM_ref_udata.
6317 (dwarf2_get_ref_die_offset): Use DW_UNSND for reference attributes.
6318
6319 2012-04-23 Maciej W. Rozycki <macro@codesourcery.com>
6320
6321 * mips-tdep.c (mips_n32n64_return_value): Fix coding style.
6322 (mips_o32_return_value): Likewise.
6323 (mips_o64_return_value): Likewise.
6324
6325 2012-04-21 Paul Hilfinger <hilfinger@adacore.com>
6326
6327 * ada-lang.c (ada_evaluate_subexp): Add cases for
6328 TYPE_CODE_INTERNAL_FUNCTION and for TYPE_GNU_IFUNC, following
6329 their treatment in eval.c.
6330
6331 2012-04-21 David S. Miller <davem@davemloft.net>
6332
6333 * sparc-tdep.c (X_DISP10): Define.
6334 (sparc_analyze_control_transfer): Handle compare-and-branch.
6335
6336 2012-04-21 Jonathan Larmour <jifl@eCosCentric.com>
6337
6338 * features/Makefile (WHICH): Add arm-with-m and arm-with-m-fpa-layout.
6339 * arm-tdep.c (arm_register_g_packet_guesses): Fix comment.
6340
6341 2012-04-20 Nigel Stephens <nigel@mips.com>
6342 Maciej W. Rozycki <macro@codesourcery.com>
6343
6344 * mips-tdep.c (mips_float_register_p): New function.
6345 (mips_convert_register_float_case_p): Use mips_float_register_p.
6346 (mips_register_type): Likewise.
6347 (mips_print_register): Likewise.
6348 (print_gp_register_row): Likewise.
6349 (mips_print_registers_info): Likewise.
6350
6351 2012-04-20 Shun-Yen Lu <dark.asparagus@gmail.com>
6352
6353 * mips-tdep.c (mips_elf_make_msymbol_special): Fix identification
6354 of mips16 symbols.
6355
6356 2012-04-20 Andrew Pinski <apinski@cavium.com>
6357
6358 * MAINTAINERS (Write After Approval): Add myself to the list.
6359
6360 2012-04-20 Sergio Durigan Junior <sergiodj@redhat.com>
6361
6362 * MAINTAINERS: Update my e-mail address.
6363
6364 2012-04-20 Pedro Alves <palves@redhat.com>
6365
6366 * acx_configure_dir.m4 (ACX_CONFIGURE_DIR): Handle absolute
6367 $srcdir.
6368 * configure: Regenerate.
6369
6370 2012-04-20 Sergio Durigan Junior <sergiodj@redhat.com>
6371
6372 * cp-support.h: Include `gdb_vecs.h'. Delete `const_char_ptr' VEC
6373 declaration.
6374 * gdb_vecs.h: Declare `const_char_ptr' VEC.
6375
6376 2012-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
6377
6378 Fix compilation compatibility with python-2.4
6379 * python/py-type.c (convert_field): Cast ADDRSTRING for
6380 PyObject_SetAttrString as non-const. New comment.
6381
6382 2012-04-19 Tom Tromey <tromey@redhat.com>
6383
6384 * top.c (quit_target): Use all_cleanups.
6385 * main.c (captured_command_loop): Use all_cleanups.
6386 * exceptions.c (throw_exception): Use all_cleanups.
6387
6388 2012-04-19 Pedro Alves <palves@redhat.com>
6389
6390 * Makefile.in (GNULIB_BUILDDIR): New.
6391 (LIBGNU, INCGNU, GNULIB_H): Adjust.
6392 (SUBDIRS): Add $(GNULIB_BUILDDIR).
6393 (CLEANDIRS). Remove gnulib/import.
6394 (REQUIRED_SUBDIRS): Replace gnulib/import with $(GNULIB_BUILDDIR).
6395 (all-lib): Ditto.
6396 (distclean): Remove the $(GNULIB_BUILDDIR) directory.
6397 (gnulib/import/Makefile): Replace gnulib/import with
6398 $(GNULIB_BUILDDIR). Set CONFIG_FILES to just Makefile.
6399 (ACLOCAL_AMFLAGS): Remove '-I gnulib/import/m4'.
6400 (aclocal_m4_deps): Remove the gnulib dependencies. Add
6401 acx_configure_dir.m4.
6402 * acinclude.m4: Include acx_configure_dir.m4.
6403 * acx_configure_dir.m4: New file.
6404 * aclocal.m4: Regenerate.
6405 * configure.ac: Remove gl_EARLY, gl_INIT and AM_INIT_AUTOMAKE
6406 calls. Configure gnulib using ACX_CONFIGURE_DIR.
6407 (GNULIB): New variable.
6408 (GNULIB_STDINT_H): Adjust.
6409 (AC_OUTPUT): Don't output gnulib/Makefile.
6410 * gdb/defs.h: Include build-gnulib/config.h.
6411 * aclocal.m4: Regenerate.
6412 * config.in: Regenerate.
6413 * configure: Regenerate.
6414
6415 * gnulib/Makefile.in: New file.
6416 * gnulib/configure.ac: New file.
6417 * gnulib/aclocal.m4: New file.
6418 * gnulib/config.in: New file.
6419 * gnulib/configure: New file.
6420 * gnulib/: Re-run gnulib-tool to adjust.
6421
6422 2012-04-19 Doug Evans <dje@google.com>
6423
6424 * cleanups.h (struct cleanup): Move to cleanups.c.
6425 (make_cleanup_dtor_ftype): New typedef.
6426 (make_cleanup_dtor): Use it.
6427 (ALL_CLEANUPS): Replace with ...
6428 (all_cleanups): ... this. Declare. All uses updated.
6429 * cleanups.c: #include "gdb_assert.h".
6430 (sentinel_cleanup): New static global.
6431 (SENTINEL_CLEANUP): Define.
6432 (cleanup_chain, final_cleanup_chain): Initialize to SENTINEL_CLEANUP.
6433 (make_my_cleanup2): Assert result is non-NULL.
6434 (all_cleanups): New function.
6435 (save_my_cleanups): Initialize new chain to SENTINEL_CLEANUP instead
6436 of NULL.
6437
6438 2012-04-19 Pedro Alves <palves@redhat.com>
6439
6440 * Makefile.in (HFILES_NO_SRCDIR): Remove gnulib/wchar.in.h.
6441 Adjust paths to gnulib imported files.
6442
6443 2012-04-19 Pedro Alves <palves@redhat.com>
6444
6445 * gnulib/: Move whole directory ...
6446 * gnulib/import/: ... here, and re-rerun gnulib-tool to adjust.
6447 * Makefile.in (LIBGNU, INCGNU, GNULIB_H, CLEANDIRS)
6448 (REQUIRED_SUBDIRS, all-lib, gnulib/Makefile, ACLOCAL_AMFLAGS)
6449 (aclocal_m4_deps): Adjust.
6450 * aclocal.m4: Regenerate.
6451 * configure: Regenerate.
6452 * configure.ac: Adjust AC_OUTPUT output.
6453
6454 2012-04-19 Yao Qi <yao@codesourcery.com>
6455
6456 * Makefile.in (SFILES): Add common/vec.c and remove vec.c.
6457 (vec.o): New rule.
6458 * vec.c: Move it ...
6459 * common/vec.c: ... here.
6460 * vec.h: Move it ...
6461 * common/vec.h: ... here.
6462
6463 2012-04-19 Yao Qi <yao@codesourcery.com>
6464
6465 * gdb-code-style.el: New.
6466
6467 2012-04-18 Pedro Alves <palves@redhat.com>
6468
6469 Update gnulib from latest git.
6470 (639ea5ae15e39fe48d43e04864b2997301e4b969)
6471
6472 * gnulib/Makefile.am: Update.
6473 * gnulib/dummy.c: Update.
6474 * gnulib/extra/arg-nonnull.h: Update.
6475 * gnulib/extra/c++defs.h: Update.
6476 * gnulib/extra/update-copyright: Update.
6477 * gnulib/extra/warn-on-use.h: Update.
6478 * gnulib/inttypes.in.h: Update.
6479 * gnulib/m4/00gnulib.m4: Update.
6480 * gnulib/m4/extensions.m4: Update.
6481 * gnulib/m4/gnulib-cache.m4: Update.
6482 * gnulib/m4/gnulib-common.m4: Update.
6483 * gnulib/m4/gnulib-comp.m4: Update.
6484 * gnulib/m4/gnulib-tool.m4: Update.
6485 * gnulib/m4/include_next.m4: Update.
6486 * gnulib/m4/inttypes-pri.m4: Update.
6487 * gnulib/m4/inttypes.m4: Update.
6488 * gnulib/m4/longlong.m4: Update.
6489 * gnulib/m4/memchr.m4: Update.
6490 * gnulib/m4/memmem.m4: Update.
6491 * gnulib/m4/mmap-anon.m4: Update.
6492 * gnulib/m4/multiarch.m4: Update.
6493 * gnulib/m4/onceonly.m4: Update.
6494 * gnulib/m4/stddef_h.m4: Update.
6495 * gnulib/m4/stdint.m4: Update.
6496 * gnulib/m4/string_h.m4: Update.
6497 * gnulib/m4/warn-on-use.m4: Update.
6498 * gnulib/m4/wchar_h.m4: Update.
6499 * gnulib/m4/wchar_t.m4: Update.
6500 * gnulib/m4/wint_t.m4: Update.
6501 * gnulib/memchr.c: Update.
6502 * gnulib/memmem.c: Update.
6503 * gnulib/stddef.in.h: Update.
6504 * gnulib/stdint.in.h: Update.
6505 * gnulib/str-two-way.h: Update.
6506 * gnulib/string.in.h: Update.
6507 * gnulib/wchar.in.h: Update.
6508
6509 * gnulib/extra/arg-nonnull.h: Delete.
6510 * gnulib/extra/c++defs.h: Delete.
6511 * gnulib/extra/warn-on-use.h: Delete.
6512 * gnulib/m4/wchar_h.m4: Delete.
6513 * gnulib/m4/wint_t.m4: Delete.
6514 * gnulib/wchar.in.h: Delete.
6515
6516 * gnulib/extra/snippets/arg-nonnull.h: New.
6517 * gnulib/extra/snippets/c++defs.h: New.
6518 * gnulib/extra/snippets/warn-on-use.h: New.
6519
6520 * aclocal.m4: Regenerate.
6521 * config.in: Regenerate.
6522 * configure: Regenerate.
6523 * gnulib/Makefile.in: Regenerate.
6524
6525 2012-04-18 Pedro Alves <palves@redhat.com>
6526
6527 Reimport the update-copyright module from gnulib
6528 (250b80067c1e1d8faa0c42fb572f721975b929c5).
6529
6530 * configure: Regenerate.
6531 * gnulib/Makefile.am: Update.
6532 * gnulib/Makefile.in: Regenerate.
6533 * gnulib/extra/update-copyright: Update.
6534 * gnulib/m4/gnulib-cache.m4: Update.
6535 * gnulib/m4/gnulib-comp.m4: Update.
6536
6537 2012-04-18 Tristan Gingold <gingold@adacore.com>
6538
6539 * configure.ac (aix): Put -lpthread into libs.
6540 * configure: Regenerate.
6541
6542 2012-04-18 Tom Tromey <tromey@redhat.com>
6543
6544 * linespec.c (convert_linespec_to_sals): Don't use
6545 SYMBOL_OBJ_SECTION.
6546 (compare_msymbols): Arguments are minsym_and_objfile, not
6547 minimal_symbol*. Don't use SYMBOL_OBJ_SECTION.
6548
6549 2012-04-18 Pedro Alves <palves@redhat.com>
6550
6551 Revert gnulib/ part of:
6552 2011-01-01 Joel Brobecker <brobecker@adacore.com>
6553 Copyright year update in most files (performed by copyright.sh).
6554
6555 2012-04-18 Jan Kratochvil <jan.kratochvil@redhat.com>
6556
6557 Fix 64-bit constants on 32-bit hosts.
6558 * dwarf2read.c (read_unsigned_leb128): Change declaration return type
6559 from unsigned long to ULONGEST.
6560 (read_signed_leb128): Change declaration return type from long to
6561 LONGEST.
6562 (dwarf2_const_value_attr): Change declaration parameter value from long
6563 to LONGEST.
6564 (dwarf2_compute_name): Change variable value from long to LONGEST.
6565 (read_unsigned_leb128): Change return type, variable result and some
6566 casts from unsigned long to ULONGEST.
6567 (read_signed_leb128): Change return type, variable result and some
6568 casts from long to LONGEST.
6569 (dwarf2_const_value_data, dwarf2_const_value_attr): Change parameter
6570 value from long to LONGEST.
6571 (dwarf2_const_value): Change variable value from long to LONGEST.
6572 * symmisc.c (print_symbol): Change SYMBOL_VALUE format strings to use
6573 plongest and hex_string.
6574 * symtab.h (struct general_symbol_info): Change ivalue from long to
6575 LONGEST, remove the comment.
6576 * tracepoint.c (validate_actionline, collect_symbol, scope_info):
6577 Change SYMBOL_VALUE format strings to use plongest and hex_string.
6578
6579 2012-04-18 Siddhesh Poyarekar <siddhesh@redhat.com>
6580
6581 PR symtab/7259:
6582 * ada-exp.y (convert_char_literal): Use TYPE_FIELD_ENUMVAL.
6583 * ada-lang.c (ada_discrete_type_high_bound)
6584 (ada_discrete_type_low_bound): Fix function comment. Use
6585 TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
6586 (ada_identical_enum_types_p): Use TYPE_FIELD_ENUMVAL.
6587 (pos_atr, value_val_atr): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
6588 * ada-typeprint.c (print_enum_type): Change variable lastval to LONGEST.
6589 Use TYPE_FIELD_ENUMVAL.
6590 * ada-valprint.c (print_optional_low_bound, ada_print_scalar)
6591 (ada_val_print_1): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
6592 * c-typeprint.c (c_type_print_base): Move variable lastval to inner
6593 block, change it to LONGEST. Use TYPE_FIELD_ENUMVAL for
6594 TYPE_CODE_ENUM.
6595 * coffread.c (coff_read_enum_type): Use SET_FIELD_ENUMVAL.
6596 * dwarf2read.c (process_enumeration_scope): Likewise.
6597 * gdb-gdb.py (TypeFlagsPrinter): Use field.enumval instead of
6598 field.bitpos.
6599 (class StructMainTypePrettyPrinter): Support also
6600 FIELD_LOC_KIND_ENUMVAL.
6601 * gdbtypes.c (get_discrete_bounds): Use TYPE_FIELD_ENUMVAL for
6602 TYPE_CODE_ENUM.
6603 (recursive_dump_type): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
6604 (copy_type_recursive): Support also FIELD_LOC_KIND_ENUMVAL.
6605 * gdbtypes.h (enum field_loc_kind): New FIELD_LOC_KIND_ENUMVAL.
6606 (struct main_type.flds_bnds.fields.loc): Adjust bitpos comment. New
6607 field enumval.
6608 (struct main_type.flds_bnds.bields): Adjust loc_kind and bitsize to
6609 accommodate enumval.
6610 (struct call_site): Adjust loc_kind to accommodate enumval.
6611 (FIELD_ENUMVAL, FIELD_ENUMVAL_LVAL, SET_FIELD_ENUMVAL)
6612 (TYPE_FIELD_ENUMVAL): New macros.
6613 * m2-typeprint.c (m2_enum): Use TYPE_FIELD_ENUMVAL.
6614 * mdebugread.c (parse_symbol): Use TYPE_FIELD_ENUMVAL for
6615 TYPE_CODE_ENUM.
6616 * p-typeprint.c (pascal_type_print_base): Likewise.
6617 * python/lib/gdb/printing.py (class FlagEnumerationPrinter): Use
6618 enumval.
6619 * python/lib/gdb/types.py (make_enum_dict): Likewise.
6620 * python/py-type.c (convert_field): New variable addrstring. Use
6621 TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
6622 (check_types_equal): Support also FIELD_LOC_KIND_ENUMVAL.
6623 * stabsread.c (read_enum_type): Use SET_FIELD_ENUMVAL.
6624 * typepint.c (print_type_scalar): Use TYPE_FIELD_ENUMVAL for
6625 TYPE_CODE_ENUM.
6626 * valprint.c (generic_val_print): Likewise.
6627
6628 2012-04-17 Doug Evans <dje@google.com>
6629
6630 * dwarf2read.c (lookup_signatured_type): Return NULL instead of 0.
6631
6632 * dwarf2read.c: Whitespace fixes.
6633 (lookup_signatured_type): Tweak comment.
6634 (get_die_type_at_offset): Fix comment.
6635
6636 2012-04-17 Joel Brobecker <brobecker@adacore.com>
6637
6638 * xcoffread.c (xcoff_secnum_to_sections): New function.
6639 (secnum_to_section, secnum_to_bfd_section): Reimplement
6640 using xcoff_secnum_to_sections. Rename "secnum" parameter
6641 into "n_scnum".
6642 (RECORD_MINIMAL_SYMBOL): Delete.
6643 (record_minimal_symbol): New function.
6644 (scan_xcoff_symtab): Replace uses of RECORD_MINIMAL_SYMBOL
6645 by call to record_minimal_symbol and set misc_func_recorded
6646 to 1. Set last_csect_sec to the XCOFF section index instead
6647 of GDB's section_offset index. Update calls to
6648 prim_record_minimal_symbol_and_info to pass the BFD section
6649 as well.
6650
6651 2012-04-17 Joel Brobecker <brobecker@adacore.com>
6652
6653 * xcoffread.c (read_xcoff_symtab): Delete variables
6654 last_csect_val and last_csect_sec and associated code.
6655
6656 2012-04-17 Doug Evans <dje@google.com>
6657
6658 * cleanups.c (make_my_cleanup,make_my_cleanup2): Make static.
6659 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
6660 * cleanups.h (make_my_cleanup,make_my_cleanup2): Delete
6661 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Delete.
6662
6663 * cleanups.h: New file.
6664 * cleanups.c: New file.
6665 * Makefile.in (SFILES): Add cleanups.c.
6666 (HFILES_NO_SRCDIR): Add cleanups.h.
6667 (COMMON_OBS): Add cleanups.o.
6668 * defs.h (struct cleanup): Moved to cleanups.h.
6669 (do_cleanups,do_final_cleanups): Ditto.
6670 (discard_cleanups,discard_final_cleanups): Ditto
6671 (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
6672 (save_cleanups,save_final_cleanups): Ditto.
6673 (restore_cleanups,restore_final_cleanups): Ditto.
6674 (null_cleanup): Ditto.
6675 (make_my_cleanup,make_my_cleanup2): Ditto.
6676 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
6677 * utils.c (cleanup_chain,final_cleanup_chain): Moved to cleanups.c.
6678 (do_cleanups,do_final_cleanups): Ditto.
6679 (discard_cleanups,discard_final_cleanups): Ditto
6680 (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
6681 (save_cleanups,save_final_cleanups): Ditto.
6682 (restore_cleanups,restore_final_cleanups): Ditto.
6683 (null_cleanup): Ditto.
6684 (make_my_cleanup,make_my_cleanup2): Ditto.
6685 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
6686
6687 * utils.c (make_cleanup_freeargv): Use make_cleanup instead of
6688 make_my_cleanup.
6689 (make_cleanup_dyn_string_delete): Ditto.
6690 (make_cleanup_ui_file_delete): Ditto.
6691 (make_cleanup_ui_out_redirect_pop): Ditto.
6692 (make_cleanup_free_section_addr_info): Ditto.
6693 (make_cleanup_restore_integer): Ditto.
6694 (make_cleanup_unpush_target): Ditto.
6695 (make_cleanup_value_free_to_mark): Ditto.
6696 (make_cleanup_value_free): Ditto.
6697 (make_cleanup_free_so): Ditto.
6698
6699 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6700
6701 New option "set debug auto-load".
6702 * NEWS: New commands "set debug auto-load" and "show debug auto-load".
6703 * auto-load.c (debug_auto_load, show_debug_auto_load: New.
6704 (auto_load_safe_path_vec_update)
6705 (filename_is_in_auto_load_safe_path_vec): Call fprintf_unfiltered
6706 if DEBUG_AUTO_LOAD.
6707 (file_is_auto_load_safe): New parameters debug_fmt and ....
6708 Call fprintf_unfiltered if DEBUG_AUTO_LOAD.
6709 (source_gdb_script_for_objfile): Extend the file_is_auto_load_safe
6710 caller by explanatory string.
6711 (_initialize_auto_load): Register "set debug auto-load".
6712 * auto-load.h (file_is_auto_load_safe): New parameters debug_fmt
6713 and ....
6714 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
6715 (try_thread_db_load_from_dir): Extend the file_is_auto_load_safe caller
6716 by explanatory string.
6717 * main.c (captured_main): Likewise.
6718 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile)
6719 (source_section_scripts): Likewise.
6720
6721 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6722
6723 New option "set auto-load safe-path".
6724 * NEWS: New commands "set auto-load safe-path"
6725 and "show auto-load safe-path".
6726 * auto-load.c: Include gdb_vecs.h, readline/tilde.h and completer.h.
6727 (auto_load_safe_path, auto_load_safe_path_vec)
6728 (auto_load_safe_path_vec_update, set_auto_load_safe_path)
6729 (show_auto_load_safe_path, add_auto_load_safe_path, filename_is_in_dir)
6730 (filename_is_in_auto_load_safe_path_vec, file_is_auto_load_safe): New.
6731 (source_gdb_script_for_objfile): New variable is_safe. Call
6732 file_is_auto_load_safe. Return if it is not.
6733 (struct loaded_script): New field loaded.
6734 (maybe_add_script): Add parameter loaded. Initialize SLOT with it.
6735 (print_script): Use LOADED indicator instead of FULL_PATH. Change
6736 output "Missing" to "No".
6737 (_initialize_auto_load): New variable cmd. Initialize
6738 auto_load_safe_path. Register "set auto-load safe-path",
6739 "show auto-load safe-path" and "add-auto-load-safe-path".
6740 * auto-load.h (maybe_add_script): Add parameter loaded.
6741 (file_is_auto_load_safe): New declaration.
6742 * config.in: Regenerate.
6743 * configure: Regenerate.
6744 * configure.ac: New parameters --with-auto-load-safe-path
6745 and --without-auto-load-safe-path.
6746 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
6747 (try_thread_db_load_from_dir): Check file_is_auto_load_safe first.
6748 * main.c (captured_main): Check file_is_auto_load_safe for
6749 LOCAL_GDBINIT.
6750 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile): New
6751 variable is_safe. Call file_is_auto_load_safe. Return if it is not.
6752 (source_section_scripts): Call file_is_auto_load_safe. Return if it is
6753 not.
6754
6755 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6756
6757 auto-load: Implementation.
6758 * NEWS: New descriptions for "info auto-load",
6759 "info auto-load gdb-scripts", "info auto-load python-scripts",
6760 "info auto-load local-gdbinit" and "info auto-load libthread-db".
6761 Deprecate "info auto-load-scripts", "set auto-load-scripts on|off"
6762 and "show auto-load-scripts". New description for "set auto-load",
6763 "show auto-load", "set auto-load gdb-scripts",
6764 "show auto-load gdb-scripts", "set auto-load python-scripts",
6765 "show auto-load python-scripts", "set auto-load local-gdbinit",
6766 "show auto-load local-gdbinit", "set auto-load libthread-db" and
6767 "show auto-load libthread-db".
6768 * auto-load.c: Remove include python/python-internal.h. Add includes
6769 exceptions.h, cli/cli-script.h, gdbcmd.h, cli/cli-decode.h and
6770 cli/cli-setshow.h.
6771 (GDB_AUTO_FILE_NAME, source_gdb_script_for_objfile)
6772 (auto_load_gdb_scripts, show_auto_load_gdb_scripts): New.
6773 (gdbpy_global_auto_load): Rename to ...
6774 (global_auto_load): ... here.
6775 (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
6776 (auto_load_local_gdbinit_loaded, show_auto_load_local_gdbinit)
6777 (script_language_gdb, source_gdb_script_for_objfile): New.
6778 (struct loaded_script): New field language.
6779 (hash_loaded_script_entry, eq_loaded_script_entry): Calculate also
6780 LANGUAGE.
6781 (maybe_add_script): Add parameter language. Drop redundant
6782 entry.full_path initialization. Initialize entry.language and
6783 (*slot)->language.
6784 (auto_load_objfile_script): Change parameter suffix to language.
6785 Remove the call of maybe_add_script.
6786 Call language->source_script_for_objfile.
6787 (load_auto_scripts_for_objfile, struct collect_matching_scripts_data):
6788 New.
6789 (collect_matching_scripts): Adjust it for
6790 struct collect_matching_scripts_data.
6791 (auto_load_info_scripts_pattern_nl): New variable.
6792 (info_auto_load_scripts): Rename to ...
6793 (auto_load_info_scripts): ... here, add parameter language. Adjust it
6794 for struct collect_matching_scripts_data.
6795 (info_auto_load_gdb_scripts, info_auto_load_local_gdbinit)
6796 (set_auto_load_cmd, auto_load_set_cmdlist_get, show_auto_load_cmd)
6797 (auto_load_show_cmdlist_get, info_auto_load_cmd)
6798 (auto_load_info_cmdlist_get): New.
6799 (_initialize_auto_load): Move add_info of "auto-load-scripts" to
6800 python/py-auto-load.c. New installment for "set auto-load gdb-scripts",
6801 "info auto-load gdb-scripts", "set auto-load local-gdbinit" and
6802 "info auto-load local-gdbinit".
6803 * auto-load.h (struct script_language): New.
6804 (gdbpy_global_auto_load): Rename to ...
6805 (global_auto_load): ... here.
6806 (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
6807 (auto_load_local_gdbinit_loaded): New declarations.
6808 (maybe_add_script): New parameter language.
6809 (auto_load_objfile_script): Change parameter suffix to language.
6810 (load_auto_scripts_for_objfile, auto_load_info_scripts_pattern_nl)
6811 (auto_load_info_scripts, auto_load_set_cmdlist_get)
6812 (auto_load_show_cmdlist_get, auto_load_info_cmdlist_get): New
6813 declarations.
6814 * linux-thread-db.c: Include auto-load.h and ctype.h.
6815 (auto_load_thread_db, show_auto_load_thread_db): New.
6816 (struct thread_db_info): New field filename.
6817 (delete_thread_db_info): Call xfree for FILENAME.
6818 (try_thread_db_load): Initialize FILENAME.
6819 (try_thread_db_load_from_pdir, try_thread_db_load_from_dir): Return
6820 if !AUTO_LOAD_THREAD_DB.
6821 (info_auto_load_libthread_db_compare, info_auto_load_libthread_db): New.
6822 (_initialize_thread_db): Install auto_load_thread_db
6823 as "set auto-load libthread-db" and install info_auto_load_libthread_db
6824 as "info auto-load libthread-db".
6825 * main.c (captured_main): Rename gdbpy_global_auto_load to
6826 global_auto_load. Initialize AUTO_LOAD_LOCAL_GDBINIT_PATHNAME and
6827 AUTO_LOAD_LOCAL_GDBINIT_LOADED.
6828 (print_gdb_help): Extend the help for 'local init file'.
6829 * python/py-auto-load.c: Remove a comment about gdb scripts extension.
6830 (GDBPY_AUTO_SECTION_NAME): Extend the comment it is Python specific.
6831 (auto_load_scripts): Rename to ...
6832 (auto_load_python_scripts): ... here, update the comment.
6833 (gdbpy_load_auto_script_for_objfile): New declaration.
6834 (show_auto_load_python_scripts, script_language_python)
6835 (gdbpy_load_auto_script_for_objfile): New.
6836 (source_section_scripts): Refactor the code.
6837 (load_auto_scripts_for_objfile): Rename to ...
6838 (gdbpy_load_auto_scripts_for_objfile): ... here, update the
6839 auto_load_objfile_script caller, drop GDBPY_GLOBAL_AUTO_LOAD checking.
6840 (info_auto_load_python_scripts): New.
6841 (gdbpy_initialize_auto_load): New variables cmd and cmd_name.
6842 Rename "set auto-load-scripts" to "set auto-load python-scripts".
6843 Register "set auto-load-scripts" as its deprecated alias. Register
6844 "info auto-load python-scripts". Register "info auto-load-scripts" as
6845 its deprecated alias.
6846 (load_auto_scripts_for_objfile): Rename to ...
6847 (gdbpy_load_auto_scripts_for_objfile): ... here.
6848 * python/python.h (load_auto_scripts_for_objfile): Rename to ...
6849 (gdbpy_load_auto_scripts_for_objfile): ... here.
6850
6851 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6852
6853 auto-load: Move files.
6854 * Makefile.in (SFILES): Add auto-load.c.
6855 (HFILES_NO_SRCDIR): Add auto-load.h.
6856 (COMMON_OBS): Add auto-load.o.
6857 (distclean): Change .gdbinit for gdb-gdb.gdb.
6858 * auto-load.c: New file, with parts from python/py-auto-load.c.
6859 * auto-load.h: New file, with parts from python/python.h.
6860 * configure: Regenerate.
6861 * configure.ac (AC_OUTPUT): Change .gdbinit for gdb-gdb.gdb.
6862 * gdb-gdb.gdb.in: New file, renamed from gdbinit.in.
6863 * gdbinit.in: Remove file, rename it to gdb-gdb.gdb.in.
6864 * main.c: Include auto-load.h.
6865 * python/py-auto-load.c: Move include filenames.h, gdb_regex.h,
6866 command.h, observer.h and progspace.h to auto-load.c. Add include
6867 auto-load.h.
6868 (gdbpy_global_auto_load, struct auto_load_pspace_info)
6869 (struct loaded_script, auto_load_pspace_data)
6870 (auto_load_pspace_data_cleanup, get_auto_load_pspace_data)
6871 (hash_loaded_script_entry, eq_loaded_script_entry)
6872 (init_loaded_scripts_info, get_auto_load_pspace_data_for_loading)
6873 (maybe_add_script): Move to auto-load.c.
6874 (source_section_scripts): Change maybe_add_script parameters passing,
6875 use script_not_found_warning_print.
6876 (clear_section_scripts, auto_load_objfile_script)
6877 (auto_load_new_objfile, loaded_script_ptr)
6878 (DEF_VEC_P (loaded_script_ptr), collect_matching_scripts, print_script)
6879 (sort_scripts_by_name, info_auto_load_scripts): Move to auto-load.c.
6880 (gdbpy_initialize_auto_load): Move auto_load_pspace_data,
6881 auto_load_new_objfile and info_auto_load_scripts initizations to
6882 auto-load.c.
6883 * python/python.h (gdbpy_global_auto_load): Move to auto-load.h.
6884
6885 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6886
6887 Code cleanup.
6888 * charset.c (find_charset_names): Remove variables ix and elt.
6889 Use free_char_ptr_vec.
6890 * elfread.c (build_id_to_debug_filename): New variables debugdir_vec,
6891 back_to and ix. Use dirnames_to_char_ptr_vec. Remove variable
6892 debugdir_end. New variable debugdir_len.
6893 * gdb_vecs.h (free_char_ptr_vec, make_cleanup_free_char_ptr_vec)
6894 (dirnames_to_char_ptr_vec_append, dirnames_to_char_ptr_vec): New
6895 declarations.
6896 * progspace.c (clear_program_space_solib_cache): Remove variables ix
6897 and elt. Use free_char_ptr_vec.
6898 * source.c (add_path): Remove variables argv, arg and argv_index.
6899 New variables dir_vec, back_to, ix and name.
6900 Use dirnames_to_char_ptr_vec_append. Use freeargv instead of
6901 make_cleanup_freeargv. Remove variable separator. Simplify the code
6902 no longer expecting DIRNAME_SEPARATOR.
6903 (openp): Remove variable p, p1 and len. New variables dir_vec,
6904 back_to, ix and dir. Use dirnames_to_char_ptr_vec. Simplify the code
6905 no longer expecting DIRNAME_SEPARATOR.
6906 * symfile.c (find_separate_debug_file): New variables debugdir_vec,
6907 back_to and ix. Use dirnames_to_char_ptr_vec. Remove variable
6908 debugdir_end.
6909 * utils.c (free_char_ptr_vec, do_free_char_ptr_vec)
6910 (make_cleanup_free_char_ptr_vec, dirnames_to_char_ptr_vec_append)
6911 (dirnames_to_char_ptr_vec): New functions.
6912
6913 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6914
6915 Code cleanup.
6916 * source.c (add_path): Remove always true conditional 'p == 0' and
6917 unindent its code block.
6918
6919 2012-04-17 Pedro Alves <palves@redhat.com>
6920
6921 * gdbtypes.h (FIELD_BITPOS): Rename to ...
6922 (FIELD_BITPOS_LVAL): ... this.
6923 (FIELD_BITPOS): New.
6924 (SET_FIELD_BITPOS): Adjust to use FIELD_BITPOS_LVAL.
6925 * dwarf2read.c (dwarf2_add_field): Use SET_FIELD_BITPOS.
6926 * gdbtypes.c (append_composite_type_field_aligned): Adjust to use
6927 SET_FIELD_BITPOS.
6928 * gnu-v3-abi.c (build_gdb_vtable_type): Adjust to use
6929 SET_FIELD_BITPOS.
6930 * stabsread.c (read_cpp_abbrev, read_one_struct_field)
6931 (read_baseclasses): Adjust to use SET_FIELD_BITPOS.
6932 * target-descriptions.c (tdesc_gdb_type): Adjust to use
6933 SET_FIELD_BITPOS.
6934
6935 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6936
6937 Do not rely on FIELD_LOC_KIND_BITPOS being zero.
6938 * ada-lang.c (ada_template_to_fixed_record_type_1): Replace
6939 TYPE_FIELD_BITPOS used as lvalue by SET_FIELD_BITPOS.
6940 * gdbtypes.c (append_flags_type_flag): Likewise, twice.
6941 * jv-lang.c (java_link_class_type): Likewise, once.
6942 * stabsread.c (read_enum_type): Likewise.
6943
6944 2012-04-16 Yao Qi <yao@codesourcery.com>
6945
6946 * common/agent.c (agent_run_command): Add one more parameter `len'.
6947 Update callers.
6948 * common/agent.h: Update declaration.
6949 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
6950 Update.
6951 (linux_child_static_tracepoint_markers_by_strid): Ditto.
6952
6953 2012-04-14 Anton Gorenkov <xgsa@yandex.ru>
6954
6955 PR mi/13393
6956 * value.c (value_actual_type): New function.
6957 * value.h (value_actual_type): New declaration.
6958 * varobj.c (update_type_if_necessary): New function.
6959 (varobj_create): Call value_actual_type instead of
6960 value_type.
6961 (install_dynamic_child): distinct changed and type changed MI variable
6962 objects.
6963 (update_dynamic_varobj_children): Updated for install_dynamic_child
6964 change. All callers updated.
6965 (varobj_update): Support for MI variable object type change if
6966 the value changed and RTTI is used to determine the type.
6967 (create_child_with_value): Call value_actual_type instead of
6968 value_type.
6969 (adjust_value_for_child_access): Extended with a new parameter which
6970 specify whether the given value should be casted to enclosing type.
6971 All callers updated.
6972
6973 2012-04-14 Yao Qi <yao@codesourcery.com>
6974
6975 Import gnulib module inttypes from git
6976 (250b80067c1e1d8faa0c42fb572f721975b929c5)
6977 * Makefile.in (HFILES_NO_SRCDIR): Add gnulib/inttypes.in.h.
6978 (aclocal_m4_deps): Add gnulib/m4/inttypes.m4 and
6979 gnulib/m4/inttypes-pri.m4
6980 * aclocal.m4, config.in, configure: Regenerated.
6981 * gnulib/Makefile.am: Update.
6982 * gnulib/Makefile.in: Update.
6983 * gnulib/m4/gnulib-cache.m4: Update.
6984 * gnulib/m4/gnulib-comp.m4: Update.
6985 * gnulib/inttypes.in.h: New.
6986 * gnulib/m4/inttypes-pri.m4: New.
6987 * gnulib/m4/inttypes.m4: New.
6988
6989 2012-04-13 Luis Machado <lgustavo@codesourcery.com>
6990
6991 * infrun.c (resume): Update PC address to the real PC after
6992 preparing to do displaced stepping.
6993
6994 2012-04-12 Doug Evans <dje@google.com>
6995
6996 * dwarf2read.c (lookup_signatured_type): Remove arg "objfile", unused.
6997 All callers updated.
6998
6999 2012-04-12 Mark Kettenis <kettenis@gnu.org>
7000
7001 * i386bsd-nat.c (_initialize_i386bsd_nat): Add missing prototype.
7002
7003 2012-04-12 Doug Evans <dje@google.com>
7004
7005 * dwarf2read.c (create_all_type_units): Renamed from
7006 create_debug_types_hash_table. All callers updated.
7007
7008 * dwarf2read.c (create_signatured_type_table_from_index): Rename
7009 local type_sig to sig_type, type_offset to type_offset_in_tu.
7010 (hash_signatured_type): Renamed from hash_type_signature,
7011 all callers updated.
7012 (eq_signatured_type): Renamed from eq_type_signature,
7013 all callers updated.
7014 (create_debug_types_hash_table): Rename local type_sig to sig_type.
7015 (process_enumeration_scope): Ditto.
7016 (lookup_signatured_type_at_offset): Ditto.
7017 (load_full_type_unit, read_signatured_type): Ditto.
7018
7019 2012-04-12 Yao Qi <yao@codesourcery.com>
7020
7021 * remote.c (async_remote_interrupt): Correct function name in
7022 debug message.
7023 (async_remote_interrupt_twice): Ditto.
7024
7025 2012-04-11 Yuanhui Zhang <asmwarrior@gmail.com>
7026
7027 * source.c (find_and_open_source): Consistently pass resulting
7028 full path through xfullpath.
7029
7030 2012-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
7031
7032 Provide more specific displaced-stepping memory error message.
7033 * infrun.c (displaced_step_prepare): New variable status. Call
7034 target_read_memory instead of read_memory, provide more specific
7035 error message.
7036
7037 2012-04-11 Tristan Gingold <gingold@adacore.com>
7038
7039 PR gdb/13901
7040 * darwin-nat.c (darwin_execvp): Revert previous patch.
7041
7042 2012-04-11 Tristan Gingold <gingold@adacore.com>
7043
7044 PR gdb/13901
7045 * darwin-nat.c (darwin_resume_thread): Call darwin_set_sstep only
7046 in case of change.
7047
7048 2012-04-11 Tristan Gingold <gingold@adacore.com>
7049
7050 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
7051 warning.
7052
7053 2012-04-11 Siva Chandra Reddy <sivachandra@google.com>
7054
7055 New command 'explore' which helps explore values and types in
7056 scope.
7057 * NEWS: Add an entry about the new 'explore' command.
7058 * data-directory/Makefile.in: Add gdb/command/explore.py
7059 * python/lib/gdb/command/explore.py: Implemention of the 'explore'
7060 command using the GDB Python API.
7061
7062 2012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
7063
7064 * mips-tdep.c (mips_skip_pic_trampoline_code): Correct sign
7065 extension in jump target calculation.
7066
7067 2012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
7068
7069 * mips-tdep.c (mips32_next_pc): Handle JALX.
7070
7071 2012-04-10 Yao Qi <yao@codesourcery.com>
7072
7073 * Makefile.in (gnulib/Makefile): Remove duplicated dependency.
7074
7075 2012-04-10 Yao Qi <yao@codesourcery.com>
7076
7077 * Makefile.in (aclocal_m4_deps): Add gnulib/m4/gnulib-cache.m4
7078 and gnulib/m4/gnulib-tool.m4.
7079
7080 2012-04-10 Doug Evans <dje@google.com>
7081
7082 * dwarf2read.c (dwarf2_per_cu_data). Clarify comment.
7083 (load_partial_dies): Clarify comment.
7084 (find_partial_die): Support rereading type units.
7085 Clarify CU handling, if we know offset is in CU, don't search for the
7086 containing CU. Add comment regarding memory waste.
7087
7088 2012-04-10 H.J. Lu <hongjiu.lu@intel.com>
7089
7090 * features/Makefile (WHICH): Add i386/x32, i386/x32-linux,
7091 i386/x32-avx and i386/x32-avx-linux.
7092 (i386/x32-expedite): New.
7093 (i386/x32-linux-expedite): Likewise.
7094 (i386/x32-avx-expedite): Likewise.
7095 (i386/x32-avx-linux-expedite): Likewise.
7096 ($(outdir)/i386/x32.dat): Likewise.
7097 ($(outdir)/i386/x32-linux.dat): Likewise.
7098 ($(outdir)/i386/x32-avx.dat): Likewise.
7099 ($(outdir)/i386/x32-avx-linux.dat): Likewise.
7100
7101 * features/i386/x32-avx-linux.xml: New file.
7102 * features/i386/x32-avx.xml: Likewise.
7103 * features/i386/x32-core.xml: Likewise.
7104 * features/i386/x32-linux.xml: Likewise.
7105 * features/i386/x32.xml: Likewise.
7106
7107 * features/i386/x32-avx-linux.c: New. Generated.
7108 * features/i386/x32-avx.c: Likewise.
7109 * features/i386/x32-linux.c: Likewise.
7110 * features/i386/x32.c: Likewise.
7111 * regformats/i386/x32-avx-linux.dat: Likewise.
7112 * regformats/i386/x32-avx.dat: Likewise.
7113 * regformats/i386/x32-linux.dat: Likewise.
7114 * regformats/i386/x32.dat: Likewise.
7115
7116 2012-04-10 Tristan Gingold <gingold@adacore.com>
7117
7118 * darwin-nat.c (darwin_kill_inferior): Always use the no ptrace
7119 code to kill the inferior.
7120
7121 2012-04-09 Mark Kettenis <kettenis@gnu.org>
7122
7123 * ada-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7124 defines.
7125 * c-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7126 defines.
7127 * cp-name-parser.y (yyss, yysslim, yyssp, yystacksize, yyvs)
7128 (yyvsp): New defines.
7129 * f-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7130 defines.
7131 * jv-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7132 defines.
7133 * m2-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7134 defines.
7135 * objc-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7136 defines.
7137 * p-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7138 defines.
7139
7140 2012-04-09 Mark Kettenis <kettenis@gnu.org>
7141
7142 * sparc64-tdep.c (sparc64_store_arguments)
7143 (sparc64_store_arguments): Fix coding style.
7144
7145 2012-04-07 Mark Kettenis <kettenis@gnu.org>
7146
7147 * sparc64-tdep.c (sparc64_store_arguments): Fix handling of
7148 complex floats, adjust some related comments and tighten a related
7149 assertion.
7150 (sparc64_extract_return_value): Handle complex floats.
7151
7152 2012-04-07 Doug Evans <dje@google.com>
7153
7154 * dwarf2read.c (load_partial_dies): Change condition to assert.
7155
7156 2012-04-06 Doug Evans <dje@google.com>
7157
7158 * amd64-tdep.c (amd64_analyze_prologue): Recognize both variations of
7159 "mov %rsp,%rbp".
7160
7161 2012-04-05 Kevin Buettner <kevinb@redhat.com>
7162
7163 * v850-tdep.c (E_NUM_OF_V850_REGS, E_NUM_OF_V850E_REGS): Fix
7164 fencepost error.
7165 (v850_frame_cache): Use gdbarch_num_regs() instead of E_NUM_REGS.
7166 (v850_gdbarch_init): Set `num_regs' as appropriate for the
7167 architecture.
7168
7169 2012-04-05 Keith Seitz <keiths@redhat.com>
7170
7171 * linespec.c (decode_compound): Remove.
7172 (enum offset_relative_sign): New enum.
7173 (struct line_offset): New struct.
7174 (struct linespec): New struct.
7175 (struct linespec_state): Move file_symtabs,
7176 user_filename, and user_function into struct linespec.
7177 Make result an anonymous struct holding vectors of
7178 symbolp and minsym_and_objfile_d.
7179 Add language member.
7180 (enum ls_token_type): New enum.
7181 (linespec_keywords): New array.
7182 (struct ls_token): New struct.
7183 (struct ls_parser): New struct.
7184 (linespec_lexer_lex_number): New function.
7185 (linespec_lexer_lex_keyword): New function.
7186 (is_ada_operator): New function.
7187 (skip_quote_char): New function.
7188 (copy_token_string): New function.
7189 (is_closing_quote_enclosed): New function.
7190 (find_parameter_list_end): New function.
7191 (linespec_lexer_lex_string): New function.
7192 (linespec_lexer_lex_one): New function.
7193 (linespec_lexer_consume_token): New function.
7194 (linespec_lexer_peek_token): New function.
7195 (cplusplus_error): Remove unused function.
7196 (find_methods): Update comment.
7197 (find_toplevel_char): Return const.
7198 (is_objc_method_format): Remove unused function.
7199 (find_toplevel_string): New function.
7200 (is_linespec_boundary): Remove.
7201 (symbol_not_found_error): New function.
7202 (find_method_overload_end): Remove function.
7203 (unexpected_linespec_error): New function.
7204 (keep_name_info): Remove.
7205 (linespec_parse_line_offset): New function.
7206 (linespec_parse_basic): New function.
7207 (canonicalize_linespec): New function.
7208 (decode_line_internal): Remove.
7209 (create_sals_line_offset): New function adapted from
7210 decode_all_digits.
7211 (convert_linespec_to_sals): New function.
7212 (parse_linespec): New function.
7213 (linespec_parser_new): New function.
7214 (linespec_state_destructor): Change parameter type to
7215 struct linespec_state *.
7216 Add language parameter.
7217 Remove freeing of moved members.
7218 (linespec_parser_delete): New function.
7219 (decode_line_full): Use parse_linespec and linespec_parser_new.
7220 (decode_line_1): Likewise.
7221 (decode_indirect): Rename to ...
7222 (linespec_expression_to_pc): ... this and rewrite
7223 to simply find CORE_ADDR, storing this result for later
7224 conversion to SALs.
7225 (locate_first_half): Remove.
7226 (deocde_objc): Add parameter LS.
7227 Initialize new struct collect_info members.
7228 Handle minimal symbols, too.
7229 (decode_compound): Delete.
7230 (lookup_prefix_sym): Rewrite.
7231 (compare_msymbols): New function.
7232 (find_method): Rewrite.
7233 Do not call cplusplus_error.
7234 (symtabs_from_filename): Rewrite.
7235 (collect_function_symbols): Delete.
7236 (find_function_symbols): Rewrite without ARGPTR-style
7237 processing.
7238 (decode_all_digits): Delete. (Rewritten as create_sals_line_offset.)
7239 (decode_dollar): Adapted and renamed to ...
7240 (linespec_parse_variable): ... this.
7241 (find_linespec_symbols): New function.
7242 (decode_label): Adapted and renamed to ...
7243 (find_label_symbols): ... this.
7244 (decode_digits_list_mode): Add and use LS argument.
7245 (decode_digits_ordinary): Likewise.
7246 (collect_symbols): Do not collect SALs, just symbols and msymbols.
7247 If in list mode, allow any symbol class. Otherwise, only
7248 permit LOC_BLOCK symbols.
7249 (minsym_found): Update comments.
7250 (search_minsyms_for_name): Do not convert the matching symbol
7251 into a SAL. Simply push the symbol and objfile into the
7252 result vector.
7253 (decode_variable): Delete. Contents adapted into
7254 find_linespec_symbols.
7255
7256 * cp-support.c (SKIP_SPACE): Remove.
7257 (operator_tokens): Remove unused global.
7258 (cp_validate_operator): Remove.
7259 * cp-support.h (cp_validate_operator): Remove declaration.
7260
7261 2012-04-03 Jan Kratochvil <jan.kratochvil@redhat.com>
7262
7263 * cp-valprint.c (cp_print_value_fields): Check valprint_check_validity
7264 for TYPE_VPTR_FIELDNO.
7265 * valprint.c (valprint_check_validity): Make it global, move the
7266 function comment ...
7267 * value.h (valprint_check_validity): ... to this new declaration.
7268
7269 2012-04-02 Tristan Gingold <gingold@adacore.com>
7270
7271 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Use
7272 the STATE32 api for i386 state.
7273 (i386_darwin_store_inferior_registers): Likewise.
7274
7275 2012-04-02 Tristan Gingold <gingold@adacore.com>
7276
7277 * i386-darwin-tdep.c (i386_darwin_thread_state_reg_offset): Fix
7278 SS offset.
7279 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
7280 format_string.
7281
7282 2012-04-02 Tristan Gingold <gingold@adacore.com>
7283
7284 PR gdb/13901
7285 * darwin-nat.c (darwin_execvp): Set binary preference.
7286
7287 2012-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
7288
7289 * NEWS (set breakpoint condition-evaluation): Use imperative mood.
7290
7291 2012-03-30 Tom Tromey <tromey@redhat.com>
7292
7293 * python/python.c (gdbpy_decode_line): Move cleanup creation out
7294 of TRY_CATCH. Fix error handling.
7295 * python/py-value.c (convert_value_from_python): Move 'old'
7296 declaration to innermost scope.
7297
7298 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7299 Andrey Smirnov <andrew.smirnov@gmail.com>
7300
7301 -Wshadow warning fix.
7302 * ada-lang.c (ada_make_symbol_completion_list): Rename parameters
7303 "wild_match" and "encoded" into "wild_match_p" and "encoded_p".
7304 Adjust code accordingly.
7305
7306 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7307
7308 * ada-lang.c (symbol_completion_add): Rename parameter
7309 "encoded" into "encoded_p". Ajust code and documentation
7310 accordingly.
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 (symbol_completion_add): Rename parameter
7317 "wild_match" into wild_match_p. Update code and documentation
7318 accordingly.
7319
7320 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7321
7322 * ada-lang.c (symbol_completion_match): 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_match): Rename parameter
7331 "wild_match" into "wild_match_p". Adjust code and function
7332 documentation accordingly.
7333
7334 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7335 Andrey Smirnov <andrew.smirnov@gmail.com>
7336
7337 -Wshadow warning fix.
7338 * ada-lang.c (ada_lookup_encoded_symbol): Rename parameter
7339 "symbol_info" into "info". Adjust code accordingly.
7340 (ada_lookup_symbol): Likewise.
7341
7342 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7343
7344 * ada-lang.c (ada_lookup_symbol_list): Minor reformatting
7345 of this function's documentation.
7346
7347 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7348 Andrey Smirnov <andrew.smirnov@gmail.com>
7349
7350 -Wshadow warning fix.
7351 * ada-lang.c (ada_lookup_symbol_list): Rename "wild_match"
7352 variable into "wild_match_p". Adjust code accordingly.
7353
7354 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7355 Andrey Smirnov <andrew.smirnov@gmail.com>
7356
7357 -Wshadow warning fix.
7358 * ada-lang.c (ada_add_local_symbols): Rename "wild_match"
7359 parameter into "wild_match_p". Adjust code accordingly.
7360 Document this parameter in the function description.
7361
7362 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7363 Andrey Smirnov <andrew.smirnov@gmail.com>
7364
7365 -Wshadow warning fix.
7366 * ada-lang.c (add_symbols_from_enclosing_procs): Rename
7367 "wild_match" parameter to "wild_match_p" (-Wshadow).
7368
7369 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7370
7371 * ada-lang.c (ada_lookup_simple_minsym): Remove trailing spaces
7372 in function documentation.
7373
7374 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7375 Andrey Smirnov <andrew.smirnov@gmail.com>
7376
7377 -Wshadow warning fix.
7378 * ada-lang.c (ada_lookup_simple_minsym): Rename wild_match local
7379 variable into wild_match_p. Adjust code accordingly.
7380
7381 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7382 Andrey Smirnov <andrew.smirnov@gmail.com>
7383
7384 * ada-valprint.c (ada_val_print_1): Move the code handling
7385 TYPE_CODE_ENUM inside its own lexical block. Declare
7386 variables len and val there, instead of in the function's
7387 top level block. Avoid declaring deref_val again in a way
7388 that shadows another variable of the same name declared
7389 in one of the up-level blocks. Just re-use the up-level
7390 variable instead.
7391
7392 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7393
7394 * ada-lang.c (ada_lookup_encoded_symbol): Now returns void.
7395 Replace block_found argument by symbol_info. Adjust
7396 implementation accordingly. Add function documentation.
7397 (ada_lookup_symbol): Adjust to new ada_lookup_encoded_symbol.
7398 Fix documentation.
7399 * ada-lang.h (ada_lookup_encoded_symbol): Update declaration.
7400 * ada-exp.y (write_object_renaming): Adjust to new
7401 ada_lookup_encoded_symbol API.
7402
7403 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7404
7405 * ada-lang.h (struct ada_symbol_info): Reformat. Improve
7406 documentation.
7407
7408 2012-03-28 Rathish C <rathish.c@kpitcummins.com>
7409
7410 * v850-tdep.c: Add the enum values for mpu and fpu registers.
7411 (v850_register_name): Add the mpu and fpu register names.
7412 (v850e_register_name): Add the mpu and fpu register names.
7413 (v850e2_register_name): New function.
7414 (v850_gdbarch_init): Add case for bfd_mach_v850e2 and
7415 bfd_mach_v850e2v3.
7416
7417 2012-03-28 Joel Brobecker <brobecker@adacore.com>
7418
7419 * NEWS: Add entry for Ada varobj support.
7420
7421 2012-03-28 Joel Brobecker <brobecker@adacore.com>
7422
7423 * varobj.c (default_value_is_changeable_p): New function,
7424 extracted from varobj_value_is_changeable_p. Add declaration.
7425 (ada_value_is_changeable_p): New function, extracted from
7426 varobj_value_is_changeable_p. Add declaration.
7427 (struct language_specific): New field "value_is_changeable_p".
7428 (languages): Add entries for new field.
7429 (varobj_create): Set language before calling install_new_value.
7430 (varobj_value_is_changeable_p): Reimplement to call the varobj's
7431 "value_is_changeable_p" language callback.
7432
7433 2012-03-28 Joel Brobecker <brobecker@adacore.com>
7434
7435 * ada-varobj.h, ada-varobj.c: New files.
7436 * Makefile.in (SFILES): Add ada-varobj.c.
7437 (HFILES_NO_SRCDIR): Add ada-varobj.h.
7438 (COMMON_OBS): Add ada-varobj.o.
7439
7440 2012-03-28 Joel Brobecker <brobecker@adacore.com>
7441
7442 * varobj.c (ada_value_has_mutated): Add declaration. New function.
7443 (struct language_specific): New field "value_has_mutated".
7444 (languages): Set field "value_has_mutated" in each entry of array.
7445 (varobj_value_has_mutated): New function.
7446 (varobj_udpdate): Add handling of type mutation.
7447 (value_of_root): Add handling of type mutation.
7448 (ada_value_has_mutated): New function.
7449
7450 2012-03-28 Pedro Alves <palves@redhat.com>
7451
7452 * ia64-linux-nat.c (supply_fpregset, ia64_linux_fetch_register):
7453 Always supply $fr0 as 0.0 and $fr1 as 1.0.
7454
7455 2012-03-28 Tom Tromey <tromey@redhat.com>
7456
7457 * python/py-inferior.c (infpy_read_memory): Remove cleanups and
7458 explicitly free 'buffer' on exit paths. Decref 'membuf_object'
7459 before returning.
7460
7461 2012-03-28 Tom Tromey <tromey@redhat.com>
7462
7463 * .dir-locals.el: New file.
7464
7465 2012-03-28 Pedro Alves <palves@redhat.com>
7466
7467 * ia64-linux-nat.c (u_offsets): Map IA64_EC_REGNUM to PT_AR_EC.
7468
7469 2012-03-28 Joel Brobecker <brobecker@adacore.com>
7470
7471 * ia64-linux-nat.c (ia64_linux_fetch_register): Add special
7472 handling for r0.
7473
7474 2012-03-27 Pedro Alves <palves@redhat.com>
7475
7476 Eliminate struct ui_stream.
7477
7478 * ui-out.h (struct ui_stream): Delete.
7479 (ui_out_field_stream): Adjust prototype.
7480 (ui_out_stream_new, ui_out_stream_delete)
7481 (make_cleanup_ui_out_stream_delete): Delete declarations.
7482 * ui-out.c (ui_out_field_stream): Change prototype to take a
7483 ui_file instead of a ui_stream. Adjust.
7484 (ui_out_stream_new, ui_out_stream_delete, do_stream_delete)
7485 (make_cleanup_ui_out_stream_delete): Delete.
7486 * breakpoint.c (print_breakpoint_location)
7487 (print_one_detail_ranged_breakpoint, print_it_watchpoint): Use
7488 ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
7489 * disasm.c (dump_insns): Ditto.
7490 (do_mixed_source_and_assembly, do_assembly_only): Adjust
7491 prototype.
7492 (gdb_disassembly): Use ui_file/mem_fileopen instead of
7493 ui_stream/ui_out_stream_new.
7494 * infcmd.c (print_return_value): Ditto.
7495 * osdata.c (info_osdata_command): Don't allocate a local
7496 ui_stream.
7497 * stack.c (print_frame_arg, print_frame_args, print_frame): Use
7498 ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
7499 * tracepoint.c (print_one_static_tracepoint_marker): Don't
7500 allocate a local ui_stream.
7501 * mi/mi-cmd-stack.c (list_arg_or_local): Use ui_file/mem_fileopen
7502 instead of ui_stream/ui_out_stream_new.
7503 (list_args_or_locals): Don't allocate a local ui_stream.
7504 * mi/mi-main.c (get_register, mi_cmd_data_evaluate_expression)
7505 (mi_cmd_data_read_memory): Use ui_file/mem_fileopen instead of
7506 ui_stream/ui_out_stream_new.
7507 * cli/cli-setshow.c (do_setshow_command): Ditto.
7508
7509 2012-03-27 Oza Pawandeep <oza.pawandeep@gmail.com>
7510
7511 * arm-linux-tdep.c (arm_linux_init_abi): Call
7512 set_gdbarch_process_record. Initialize `arm_swi_record' field.
7513 * arm-tdep.c (arm_process_record): New function.
7514 (deallocate_reg_mem): New function.
7515 (decode_insn): New function.
7516 (thumb_record_branch): New function.
7517 (thumb_record_ldm_stm_swi(): New function.
7518 (thumb_record_misc): New function.
7519 (thumb_record_ld_st_stack): New function.
7520 (thumb_record_ld_st_imm_offset): New function.
7521 (thumb_record_ld_st_reg_offset(): New function.
7522 (thumb_record_add_sub_cmp_mov): New function.
7523 (thumb_record_shift_add_sub): New function.
7524 (arm_record_coproc_data_proc): New function.
7525 (arm_record_coproc): New function.
7526 (arm_record_b_bl): New function.
7527 (arm_record_ld_st_multiple): New function.
7528 (arm_record_ld_st_reg_offset): New function.
7529 (arm_record_ld_st_imm_offset): New function.
7530 (arm_record_data_proc_imm): New function.
7531 (arm_record_data_proc_misc_ld_str): New function.
7532 (arm_record_extension_space): New function.
7533 (arm_record_strx): New function.
7534 (sbo_sbz): New function.
7535 (struct insn_decode_record): New structure for arm insn record.
7536 (REG_ALLOC): New macro for reg allocations.
7537 (MEM_ALLOC): New macro for memory allocations.
7538 * arm-tdep.h (struct gdbarch_tdep): New field 'arm_swi_record'.
7539
7540 2012-03-27 Andreas Schwab <schwab@linux-m68k.org>
7541
7542 * m68klinux-nat.c (fetch_register): Fix strict-aliasing violation.
7543 (store_register): Likewise.
7544
7545 2012-03-26 Oza Pawandeep <oza.pawandeep@gmail.com>
7546
7547 * MAINTAINERS (Write After Approval): Add myself to the list.
7548
7549 2012-03-25 Jan Kratochvil <jan.kratochvil@redhat.com>
7550
7551 * NEWS (set breakpoint condition-evaluation): Change "gdb" to "host".
7552 Describe also the option "auto".
7553
7554 2012-03-22 Richard Henderson <rth@redhat.com>
7555
7556 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Fix prototype.
7557 * sparc-nat.c (sparc_xfer_wcookie): Make static.
7558
7559 2012-03-22 Richard Henderson <rth@redhat.com>
7560
7561 * jit.c (jit_read_code_entry): Compute alignment and offset of
7562 int64_t member before computing entry_size.
7563
7564 2012-03-22 Siva Chandra Reddy <sivachandra@google.com>
7565
7566 Python scripting: Add new method Value.referenced_value to
7567 gdb.Value which can dereference pointer as well as reference
7568 values.
7569 * NEWS: Add entry under 'Python scripting' about the new method
7570 Value.referenced_value on gdb.Value objects.
7571 * python/py-value.c (valpy_referenced_value): New function
7572 defining a new method on gdb.Value objects which can dereference
7573 pointer and reference values.
7574
7575 2012-03-22 Siva Chandra Reddy <sivachandra@google.com>
7576
7577 * MAINTAINERS (Write After Approval): Add myself to the list.
7578
7579 2012-03-21 Kevin Buettner <kevinb@redhat.com>
7580
7581 * symtab.c (skip_prologue_sal): Change test to check for "main()"
7582 in addition to "main".
7583
7584 2012-03-21 Joel Brobecker <brobecker@adacore.com>
7585
7586 * expression.h (op_name): Add declaration.
7587 * expprint.c (op_name): Remove declaration. Make non-static.
7588 * ax-gdb.c (gen_expr): Use op_name instead of op_string.
7589
7590 2012-03-21 Thomas Schwinge <thomas@codesourcery.com>
7591
7592 * amd64-linux-nat.c (amd64_linux_siginfo_fixup): Use siginfo_t instead
7593 of struct siginfo.
7594 * arm-linux-nat.c (arm_linux_stopped_data_address): Likewise.
7595 * ia64-linux-nat.c (ia64_linux_stopped_data_address): Likewise.
7596 * linux-nat.c (linux_nat_siginfo_fixup, siginfo_fixup)
7597 (linux_xfer_siginfo, linux_nat_set_siginfo_fixup)
7598 (linux_nat_get_siginfo): Likewise.
7599 * linux-nat.h (struct lwp_info, linux_nat_set_siginfo_fixup)
7600 (linux_nat_get_siginfo): Likewise.
7601 * linux-tdep.c (linux_get_siginfo_type): Likewise.
7602 * ppc-linux-nat.c (ppc_linux_stopped_data_address): Likewise.
7603 * procfs.c (gdb_siginfo_t): Likewise.
7604
7605 2012-03-21 Mike Frysinger <vapier@gentoo.org>
7606
7607 * .gitignore: Ignore more files.
7608
7609 2012-03-20 Pedro Alves <palves@redhat.com>
7610
7611 * remote.c (remote_start_remote): Clear `rs->starting_up' on early
7612 returns.
7613
7614 2012-03-20 Yao Qi <yao@codesourcery.com>
7615
7616 * amd64-tdep.c (amd64_displaced_step_copy_insn): Complete missing "}" in
7617 comment.
7618
7619 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
7620
7621 Code cleanupp: Use cu_offset and sect_offset compile time type checking.
7622 * dwarf2expr.c (add_piece, dwarf_get_base_type, execute_stack_op)
7623 (ctx_no_dwarf_call, ctx_no_get_base_type): Use cu_offset and
7624 sect_offset.
7625 * dwarf2expr.h (cu_offset, sect_offset): New types.
7626 (struct dwarf_expr_context_funcs) <dwarf_call>
7627 (struct dwarf_expr_context_funcs) <get_base_type>: Use cu_offset and
7628 sect_offset.
7629 (struct dwarf_expr_context) <len>: Improve the comment.
7630 (struct dwarf_expr_piece, ctx_no_dwarf_call, ctx_no_get_base_type): Use
7631 cu_offset and sect_offset.
7632 * dwarf2loc.c (per_cu_dwarf_call, dwarf_expr_dwarf_call)
7633 (dwarf_expr_get_base_type, needs_frame_dwarf_call)
7634 (dwarf2_compile_expr_to_ax, disassemble_dwarf_expression): Likewise.
7635 * dwarf2loc.h: Include dwarf2expr.h.
7636 (dwarf2_fetch_die_location_block, dwarf2_get_die_type): Use cu_offset
7637 and sect_offset.
7638 * dwarf2read.c (struct dwarf2_per_objfile) <debug_types_type_hash>:
7639 Improve the comment.
7640 (struct comp_unit_head, struct dwarf2_cu, struct dwarf2_per_cu_data)
7641 (struct signatured_type, struct line_header, struct partial_die_info)
7642 (struct die_info, find_partial_die, dwarf2_get_ref_die_offset)
7643 (lookup_signatured_type_at_offset, dwarf2_find_containing_comp_unit)
7644 (get_die_type_at_offset, create_cus_from_index)
7645 (create_signatured_type_table_from_index, dw2_get_file_names)
7646 (offset_in_cu_p, read_comp_unit_head, error_check_comp_unit_head)
7647 (read_and_check_comp_unit_head, read_and_check_type_unit_head)
7648 (create_debug_types_hash_table, process_psymtab_comp_unit)
7649 (load_partial_comp_unit, create_all_comp_units)
7650 (partial_die_parent_scope, partial_die_full_name, skip_one_die)
7651 (load_full_comp_unit, dwarf2_physname, read_import_statement)
7652 (inherit_abstract_dies, read_func_scope, read_call_site_scope)
7653 (dwarf2_add_member_fn, process_enumeration_scope, read_module_type)
7654 (read_typedef, die_hash, die_eq, read_full_die, dwarf2_read_abbrevs)
7655 (load_partial_dies, read_partial_die, find_partial_die_in_comp_unit)
7656 (find_partial_die, read_attribute_value, lookup_die_type)
7657 (dump_die_shallow, store_in_ref_table): Use cu_offset and sect_offset.
7658 (is_ref_attr): New function comment.
7659 (dwarf2_get_ref_die_offset): New function comment, new variable retval.
7660 Use cu_offset and sect_offset.
7661 (follow_die_offset, follow_die_ref, dwarf2_fetch_die_location_block)
7662 (dwarf2_get_die_type, follow_die_sig, lookup_signatured_type_at_offset)
7663 (load_full_type_unit, read_signatured_type, per_cu_header_read_in)
7664 (dwarf2_find_containing_comp_unit, struct dwarf2_offset_and_type)
7665 (offset_and_type_hash, offset_and_type_eq, set_die_type)
7666 (get_die_type_at_offset, partial_die_hash, partial_die_eq)
7667 (write_one_signatured_type, write_psymtabs_to_index): Use cu_offset and
7668 sect_offset.
7669
7670 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
7671
7672 Code cleanup.
7673 * python/py-auto-load.c (source_section_scripts): New variable back_to.
7674 Turn fclose and xfree calls into make_cleanup_fclose and make_cleanup
7675 with xfree.
7676 (auto_load_objfile_script): Turn fclose into make_cleanup_fclose.
7677
7678 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
7679
7680 * NEWS: Describe new options --init-command=FILE, -ix and
7681 --init-eval-command=COMMAND, -iex.
7682 * main.c (struct cmdarg): New enum items CMDARG_INIT_FILE and
7683 CMDARG_INIT_COMMAND.
7684 (captured_main): New enum items OPT_IX and OPT_IEX. Add
7685 "init-command", "init-eval-command", "ix" and "iex" to the variable
7686 long_options. Handle OPT_IX and OPT_IEX. Process them from CMDARG_VEC.
7687 New comment for CMDARG_FILE and CMDARG_COMMAND processing.
7688 (print_gdb_help): Describe --init-command=FILE, -ix and
7689 --init-eval-command=COMMAND, -iex.
7690
7691 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
7692
7693 Code cleanup.
7694 * main.c (struct cmdarg): Move it here from main. Add more comments.
7695 (cmdarg_s, VEC (cmdarg_s)): New.
7696 (main): Move struct cmdarg from here. New variables cmdarg_vec and
7697 cmdarg_p. Remove variables cmdsize and ncmd and their initialization.
7698 Install cleanup for cmdarg_vec. Update filling for options 'x' and
7699 'X'. Replace cmdarg processing by cmdarg_vec processing. Remove xfree
7700 of CMDARG.
7701
7702 2012-03-19 Tom Tromey <tromey@redhat.com>
7703
7704 * gnu-v3-abi.c (gnuv3_print_vtable): Initialize 'result_vec'.
7705
7706 2012-03-16 Jan Kratochvil <jan.kratochvil@redhat.com>
7707
7708 PR symtab/13777
7709 * dwarf2read.c (process_full_comp_unit): Set LOCATIONS_VALID only for
7710 GCC >=4.5.
7711
7712 2012-03-16 Chris January <chris.january@allinea.com>
7713
7714 * tui-tui.win.c (tui_resize_all): Use erase and clearok instead
7715 of clear.
7716
7717 2012-03-16 Chris January <chris.january@allinea.com>
7718
7719 * source.c (add_path): Use memmove instead of strcpy because the
7720 strings overlap.
7721
7722 2012-03-16 Joel Brobecker <brobecker@adacore.com>
7723
7724 * value.h (set_value_parent): Add declaration.
7725 * value.c (set_value_parent): New function.
7726 (value_address): If VALUE->PARENT is not NULL, then use it as
7727 the base address instead of VALUE->LOCATION.address.
7728 * ada-lang.c (ada_value_primitive_packed_val): Keep V's address
7729 the same as OBJ's address. Adjust V's offset accordingly.
7730 Set V's parent.
7731
7732 2012-03-16 Gary Benson <gbenson@redhat.com>
7733
7734 PR breakpoints/10738
7735 * dwarf2read.c (use_deprecated_index_sections): New global.
7736 (struct partial_die_info): New member may_be_inlined.
7737 (read_partial_die): Set may_be_inlined where appropriate.
7738 (add_partial_subprogram): Add partial symbols for partial
7739 DIEs that may be inlined.
7740 (new_symbol_full): Add inlined subroutines to the current
7741 scope.
7742 (write_psymtabs_to_index): Bump version number.
7743 (dwarf2_read_index): Read only version 6 indices unless
7744 use_deprecated_index_sections is set.
7745 * linespec.c (symbol_and_data_callback): New structure.
7746 (iterate_inline_only): New function.
7747 (iterate_over_all_matching_symtabs): New argument
7748 "include_inline". If nonzero, also call the callback for
7749 symbols representing inlined subroutines.
7750 (lookup_prefix_sym): Pass extra argument to the above.
7751 (find_function_symbols): Likewise.
7752 (add_matching_symbols_to_info): Likewise.
7753 * NEWS: Mention that GDB can now set breakpoints on inlined
7754 functions.
7755
7756 2012-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
7757
7758 * p-typeprint.c (pascal_type_print_method_args):
7759 Fix display of parameter of methods.
7760
7761 2012-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
7762
7763 * amd64-windows-nat.c (_initialize_amd64_windows_nat):
7764 Add missing prototype.
7765
7766 2012-03-16 Yao Qi <yao@codesourcery.com>
7767 Jan Kratochvil <jan.kratochvil@redhat.com>
7768
7769 Fix false compilation warning.
7770 * gnu-v3-abi.c (print_one_vtable): Initialize ADDR.
7771
7772 2012-03-15 Jonathan Larmour <jifl@eCosCentric.com>
7773 Pedro Alves <pedro@codesourcery.com>
7774
7775 * arm-tdep.c: Include "remote.h" and "features/arm-with-m-fpa-layout.c".
7776 (arm_register_g_packet_guesses): New function.
7777 (arm_gdbarch_init): Don't force a target description with
7778 registers when the executable is detected as M-profile. Instead
7779 set gdbarch->tdep->is_m. Register `g' packet guesses.
7780 (_initialize_arm_tdep): Initialize the new target description.
7781 * features/arm-with-m-fpa-layout.xml: New description.
7782 * features/arm-with-m-fpa-layout.c: New, generated.
7783
7784 2012-03-15 Joel Brobecker <brobecker@adacore.com>
7785
7786 * breakpoint.c (breakpoint_xfer_memory): Add assertion.
7787 Update function description.
7788 (insert_bp_location): Do not wipe bl->target_info out.
7789 * mem-break.c: #include "gdb_string.h".
7790 (default_memory_insert_breakpoint): Do not call target_read_memory
7791 with a pointer to the breakpoint's shadow_contents buffer. Use
7792 a local buffer instead.
7793 * m32r-tdep.c (m32r_memory_insert_breakpoint): Ditto.
7794
7795 2012-03-15 Tom Tromey <tromey@redhat.com>
7796
7797 * NEWS: Mention "info vtbl", not "info vtable".
7798 * cp-support.c (info_vtbl_command): Fix comment.
7799 (_initialize_cp_support): Fix text.
7800
7801 2012-03-15 Tom Tromey <tromey@redhat.com>
7802
7803 * cp-valprint.c (cp_print_value_fields): Use
7804 print_function_pointer_address for vtable slot.
7805
7806 2012-03-15 Tom Tromey <tromey@redhat.com>
7807
7808 * gnu-v3-abi.c (struct value_and_voffset): New.
7809 (hash_value_and_voffset, eq_value_and_voffset)
7810 (compare_value_and_voffset, compute_vtable_size)
7811 (print_one_vtable, gnuv3_print_vtable): New functions.
7812 (init_gnuv3_ops): Initialize 'print_vtable' field.
7813 * cp-support.c (info_vtbl_command): New function.
7814 (_initialize_cp_support): Add "info vtbl".
7815 * cp-abi.h (cplus_print_vtable): Declare.
7816 (struct cp_abi_ops) <print_vtable>: New field.
7817 * cp-abi.c (cplus_print_vtable): New function.
7818 * NEWS: Update.
7819
7820 2012-03-15 Tom Tromey <tromey@redhat.com>
7821
7822 * d-lang.c (d_language_defn) <la_iterate_over_symbols>: Set to
7823 iterate_over_symbols.
7824
7825 2012-03-14 Doug Evans <dje@google.com>
7826
7827 * dwarf2read.c (dwarf_stack_op_name): Add DW_OP_GNU_encoded_addr,
7828 DW_OP_GNU_parameter_ref.
7829
7830 2012-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
7831
7832 Fix double prompt of 'interpreter-exec mi'.
7833 * mi/mi-interp.c (mi_execute_command_input_handler): New prototype.
7834 (mi_interpreter_resume): use it.
7835 (mi_execute_command_input_handler): New function.
7836 * mi/mi-main.c (mi_execute_command): Move prompt printing to
7837 mi_execute_command_input_handler.
7838
7839 2012-03-13 Josh Matthews <josh@joshmatthews.net> (tiny change)
7840
7841 * darwin-nat-info.c (_initialize_darwin_info_commands): Add
7842 prototype.
7843 (darwin_debug_port_info): Make static.
7844 * darwin-nat.c (_initialize_darwin_inferior): Add prototype.
7845 * machoread.c (_initialize_machoread): Add prototype.
7846 * i386-darwin-nat.c (i386_darwin_dr_set, i386_darwin_dr_get)
7847 (i386_darwin_set_control, i386_darwin_get_control)
7848 i386_darwin_dr_set_addr, i386_darwin_get_addr)
7849 i386_darwin_get_status, i386_darwin_get_control):
7850 Comment out with HW_WATCHPOINT_NOT_YET_ENABLED macro.
7851
7852 2012-03-13 Joel Brobecker <brobecker@adacore.com>
7853
7854 * ax-gdb.c (gen_usual_unary): Remove special handling of
7855 enum and bool types.
7856
7857 2012-03-13 Joel Brobecker <brobecker@adacore.com>
7858
7859 * ax-gdb.c (gen_fetch): Add handling for TYPE_CODE_RANGE types.
7860
7861 2012-03-13 Joel Brobecker <brobecker@adacore.com>
7862
7863 * aix-thread.c (supply_fprs): Make more consistent with fill_fprs.
7864
7865 2012-03-13 Chris January <chris.january@allinea.com>
7866
7867 * aix-thread.c (fill_sprs): Store the floating point registers
7868 at the correct offsets into vals.
7869
7870 2012-03-13 Doug Evans <dje@google.com>
7871
7872 * NEWS: Mention symbol-reloading has been deleted.
7873 * symfile.c (symbol_reloading): Delete.
7874 (show_symbol_reloading): Delete.
7875 (_initialize_symfile): Delete set/show symbol-reloading.
7876
7877 * dwarf2read.c (load_partial_comp_unit): Defer adding cu to
7878 read_in_chain until we have successfully read it in.
7879 (load_full_comp_unit): Ditto.
7880 (read_signatured_type): Add comment.
7881
7882 2012-03-13 Chris January <chris.january@allinea.com>
7883
7884 * stabsread.c (fix_common_block): Change type of valu argument
7885 to CORE_ADDR.
7886
7887 2012-03-13 Chris January <chris.january@allinea.com>
7888
7889 * rs6000-tdep.c (skip_prologue): Support the oril r29, r1, 0x0
7890 instruction.
7891
7892 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
7893
7894 * common/linux-procfs.c (linux_proc_get_int): New, from
7895 linux_proc_get_tgid, change its LWPID type to pid_t, add parameter
7896 field.
7897 (linux_proc_get_tgid): Only call linux_proc_get_int.
7898 (linux_proc_get_tracerpid): New.
7899 (linux_proc_pid_has_state): New, from linux_proc_pid_is_zombie.
7900 (linux_proc_pid_is_stopped, linux_proc_pid_is_zombie): Only call
7901 linux_proc_pid_has_state.
7902 * common/linux-procfs.h (linux_proc_get_tracerpid): New declaration.
7903 * common/linux-ptrace.c: Include linux-procfs.h and buffer.h.
7904 (linux_ptrace_attach_warnings): New.
7905 * common/linux-ptrace.h (struct buffer, linux_ptrace_attach_warnings):
7906 New declaration.
7907 * linux-nat.c: Include exceptions.h, linux-ptrace.h and buffer.h.
7908 (linux_nat_attach): New variables ex, buffer, message and message_s.
7909 Wrap to_attach by TRY_CATCH and call linux_ptrace_attach_warnings.
7910
7911 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
7912
7913 * Makefile.in (linux-ptrace.o): New.
7914 * common/linux-procfs.c (linux_proc_pid_is_zombie): New,
7915 from linux-nat.c.
7916 * common/linux-procfs.h (linux_proc_pid_is_zombie): New declaration.
7917 * common/linux-ptrace.c: New file.
7918 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-ptrace.o.
7919 * config/arm/linux.mh: Likewise.
7920 * config/i386/linux.mh: Likewise.
7921 * config/i386/linux64.mh: Likewise.
7922 * config/ia64/linux.mh: Likewise.
7923 * config/m32r/linux.mh: Likewise.
7924 * config/m68k/linux.mh: Likewise.
7925 * config/mips/linux.mh: Likewise.
7926 * config/pa/linux.mh: Likewise.
7927 * config/powerpc/linux.mh: Likewise.
7928 * config/powerpc/ppc64-linux.mh: Likewise.
7929 * config/powerpc/spu-linux.mh: Likewise.
7930 * config/s390/s390.mh: Likewise.
7931 * config/sparc/linux.mh: Likewise.
7932 * config/sparc/linux64.mh: Likewise.
7933 * config/xtensa/linux.mh: Likewise.
7934 * linux-nat.c (linux_lwp_is_zombie): Remove, move it to
7935 common/linux-procfs.c.
7936 (wait_lwp): Rename linux_lwp_is_zombie to linux_proc_pid_is_zombie.
7937
7938 2012-03-13 Hui Zhu <teawater@gmail.com>
7939 Pedro Alves <palves@redhat.com>
7940
7941 * breakpoint.c (init_breakpoint_sal): New flags parameter. Handle
7942 CREATE_BREAKPOINT_FLAGS_INSERTED.
7943 (create_breakpoint_sal, create_breakpoints_sal)
7944 (base_breakpoint_create_breakpoints_sal)
7945 (tracepoint_create_breakpoints_sal)
7946 (strace_marker_create_breakpoints_sal): New flags parameter. Pass
7947 down.
7948 (break_command_1, handle_gnu_v3_exceptions, trace_command)
7949 (ftrace_command, strace_command): Adjust.
7950 (create_tracepoint_from_upload): Pass
7951 CREATE_BREAKPOINT_FLAGS_INSERTED.
7952 * breakpoint.h (enum breakpoint_create_flags): New.
7953 (create_breakpoint): New flags parameter.
7954 * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust.
7955 * python/py-breakpoint.c (bppy_init): Adjust.
7956 * python/py-finishbreakpoint.c (bpfinishpy_init): Adjust.
7957 * spu-tdep.c (spu_catch_start): Adjust.
7958
7959 2012-03-13 Pedro Alves <palves@redhat.com>
7960 Hui Zhu <teawater@gmail.com>
7961 Yao Qi <yao@codesourcery.com>
7962
7963 * remote.c (struct remote_state): New field `starting_up'.
7964 (remote_start_remote): Set and clear it.
7965 (remote_can_download_tracepoint): If starting up, return false.
7966
7967 2012-03-13 Yao Qi <yao@codesourcery.com>
7968
7969 * inferior.h (struct inferior): Remove fields any_syscall_count,
7970 syscalls_counts and total_syscalls_count. Move them to new
7971 struct catch_syscall_inferior_data in breakpoint.c.
7972 * breakpoint.c: Call DEF_VEC_I(int).
7973 (struct catch_syscall_inferior_data): New.
7974 (get_catch_syscall_inferior_data): New.
7975 (catch_syscall_inferior_data_cleanup): New.
7976 (insert_catch_syscall): Update to access data in
7977 struct catch_syscall_inferior_data.
7978 (insert_catch_syscall): Likewise.
7979 (remove_catch_syscall): Likewise.
7980 (remove_catch_syscall): Likewise.
7981 (is_syscall_catchpoint_enabled): Likewise.
7982 (add_catch_command): Likewise.
7983 (_initialize_breakpoint): Register cleanup.
7984 * breakpoint.h: Removed DEF_VEC_I(int).
7985 * dwarf2loc.c: Call DEF_VEC_I(int).
7986 * mi/mi-main.c: Likewise.
7987
7988 2012-03-12 Mark Kettenis <kettenis@gnu.org>
7989
7990 * inf-ptrace.c (inf_ptrace_post_attach): Make static.
7991
7992 2012-03-12 Chris January <chris.january@allinea.com>
7993
7994 * aix-thread.c (_initialize_aix_thread): Add prototype.
7995 * rs6000-nat.c (_initialize_rs6000_nat): Ditto.
7996 * xcoffsolib.c (_initialize_xcoffsolib): Ditto.
7997
7998 2012-03-12 Joel Brobecker <brobecker@adacore.com>
7999
8000 * amd64bsd-nat.c: Move #include of "amd64bsd-nat.h" after
8001 include of "amd64-nat.h".
8002
8003 2012-03-12 Tom Tromey <tromey@redhat.com>
8004
8005 * buildsym.c (record_pending_block): Now static.
8006 * buildsym.h: (record_pending_block): Remove.
8007
8008 2012-03-12 Andreas Tobler <andreast@fgznet.ch>
8009
8010 * amd64bsd-nat.c: Include amd64bsd-nat.h.
8011
8012 2012-03-09 Tom Tromey <tromey@redhat.com>
8013
8014 * dwarf2read.c (struct dwarf2_cu) <checked_producer,
8015 producer_is_gxx_lt_4_6>: New fields.
8016 (producer_is_gxx_lt_4_6): Use and update producer cache fields.
8017
8018 2012-03-09 Tom Tromey <tromey@redhat.com>
8019
8020 * dwarf2read.c (dwarf2_attr): Avoid tail-recursive call.
8021
8022 2012-03-08 Joel Brobecker <brobecker@adacore.com>
8023
8024 * ravenscar-sparc-thread.c (_initialize_ravenscar_sparc): Add
8025 prototype.
8026
8027 2012-03-08 Joel Brobecker <brobecker@adacore.com>
8028
8029 * ravenscar-thread.c (_initialize_ravenscar): Add prototype.
8030
8031 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
8032
8033 Fix -Wmissing-prototypes build.
8034 * arm-linux-nat.c (get_thread_id): Make it static.
8035 * xtensa-linux-nat.c (get_thread_id): Likewise.
8036
8037 2012-03-08 Joel Brobecker <brobecker@adacore.com>
8038
8039 * server.c (process_point_options): If a conditional expression
8040 is found, only print a message if remote_debug is nonzero.
8041
8042 2012-03-08 Luis Machado <lgustavo@codesourcery.com>
8043
8044 * ax-gdb.c (gen_fetch): Fail gracefully and use error instead
8045 of internal error for unknown/unsupported types.
8046
8047 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
8048
8049 Fix CU relative vs. absolute DIE offsets.
8050 * dwarf2loc.h (dwarf2_fetch_die_location_block): Rename parameter
8051 offset to offset_in_cu.
8052 * dwarf2read.c (process_enumeration_scope): Add CU offset to
8053 TYPE_OFFSET.
8054 (dwarf2_fetch_die_location_block): Rename parameter offset to
8055 offset_in_cu. New variable offset, add CU offset to OFFSET_IN_CU.
8056
8057 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
8058
8059 * libunwind-frame.c: Rename to ...
8060 * ia64-libunwind-tdep.c: ... here.
8061 * libunwind-frame.h: Rename to ...
8062 * ia64-libunwind-tdep.h: ... here.
8063 * Makefile.in (HFILES_NO_SRCDIR): Rename libunwind-frame.h to
8064 ia64-libunwind-tdep.h.
8065 (ALLDEPFILES): Rename libunwind-frame.c to ia64-libunwind-tdep.c.
8066 * README (--with-libunwind): Rename to ...
8067 (--with-libunwind-ia64): ... here, note it is ia64 specific now.
8068 * config.in: Regenerate.
8069 * configure: Regenerate.
8070 * configure.ac: New option --with-libunwind-ia64, make the
8071 AS_HELP_STRING ia64 specific. Deprecate option --with-libunwind.
8072 Remove AC_DEFINE for HAVE_LIBUNWIND.
8073 * ia64-libunwind-tdep.c: Make the file top comment ia64 specific.
8074 Rename libunwind-frame.h #include to ia64-libunwind-tdep.h.
8075 Rename libunwind-frame in the general comment.
8076 * ia64-libunwind-tdep.h: Make the file top comment ia64 specific.
8077 Rename symbol LIBUNWIND_FRAME_H to IA64_TDEP_LIBUNWIND_FRAME_H.
8078 Move forward declarations inside #ifndef. Rename libunwind-frame in
8079 the general comment.
8080 * ia64-tdep.c: Rename libunwind-frame.h #include to
8081 ia64-libunwind-tdep.h.
8082 (ia64_gdb2uw_regnum, ia64_uw2gdb_regnum, ia64_is_fpreg)
8083 (ia64_libunwind_descr): Rename libunwind-frame to
8084 ia64-libunwind-tdep in these function comments.
8085 * ia64-tdep.h: Rename libunwind-frame.h #include to
8086 ia64-libunwind-tdep.h.
8087 * ia64-vms-tdep.c (ia64_vms_libunwind_descr): Rename libunwind-frame to
8088 ia64-libunwind-tdep in that data comment.
8089
8090 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
8091
8092 * libunwind-frame.h (struct frame_unwind): New declaration.
8093
8094 2012-03-08 Joel Brobecker <brobecker@adacore.com>
8095
8096 * breakpoint.c (_initialize_breakpoint): Fix error in help of
8097 "set breakpoint condition-evaluation" command.
8098
8099 2012-03-08 Tristan Gingold <gingold@adacore.com>
8100
8101 * sparc-stub.c: Move to stubs/
8102 * sh-stub.c: Likewise.
8103 * m68k-stub.c: Likewise.
8104 * m32r-stub.c: Likewise.
8105 * i386-stub.c: Likewise.
8106
8107 2012-03-08 Andreas Schwab <schwab@linux-m68k.org>
8108
8109 * m68klinux-tdep.c (m68k_linux_init_abi): Register
8110 linux_get_siginfo_type.
8111
8112 * m68klinux-nat.c: Include "gdb_proc_service.h".
8113 (PTRACE_GET_THREAD_AREA): Define.
8114 (ps_get_thread_area): New function.
8115
8116 2012-03-08 Yao Qi <yao@codesourcery.com>
8117
8118 * remote.c (remote_get_noisy_reply): Replace `sprintf' with
8119 `xsnprintf'.
8120 (remote_query_attached): Likewise.
8121 (remote_static_tracepoint_marker_at): Likewise.
8122 (remote_set_permissions): Likewise.
8123 (remote_detach_1, extended_remote_attach_1): Likewise.
8124 (send_g_packet, remote_vkill): Likewise.
8125 (extended_remote_disable_randomization): Likewise.
8126 (remote_add_target_side_condition): Likewise.
8127 (remote_insert_breakpoint): Likewise.
8128 (remote_remove_breakpoint): Likewise.
8129 (remote_insert_watchpoint): Likewise.
8130 (remote_remove_watchpoint): Likewise.
8131 (remote_insert_hw_breakpoint): Likewise.
8132 (remote_insert_hw_breakpoint): Likewise.
8133 (remote_remove_hw_breakpoint): Likewise.
8134 (remote_download_command_source): Likewise.
8135 (remote_download_tracepoint): Likewise.
8136 (remote_download_trace_state_variable): Likewise.
8137 (remote_disable_tracepoint): Likewise.
8138 (remote_trace_set_readonly_regions): Likewise.
8139 (remote_get_tracepoint_status): Likewise.
8140 (remote_trace_find): Likewise.
8141 (remote_get_trace_state_variable_value): Likewise.
8142 (remote_set_disconnected_tracing): Likewise.
8143 (remote_set_circular_trace_buffer): Likewise.
8144 (remote_get_min_fast_tracepoint_insn_len): Likewise.
8145 (remote_use_agent): Likewise.
8146 (remote_add_target_side_condition): Add one parameter BUF_SIZE.
8147 Update callers.
8148
8149 2012-03-07 Pedro Alves <palves@redhat.com>
8150
8151 * NEWS: Mention QProgramSignals.
8152 * inferior.h (update_signals_program_target): Declare.
8153 * infrun.c: (update_signals_program_target): New.
8154 (handle_command): Update the target of the new program signals
8155 array changes.
8156 * remote.c (PACKET_QProgramSignals): New enum.
8157 (last_program_signals_packet): New global.
8158 (remote_program_signals): New.
8159 (remote_start_remote): Update the target with the program signals
8160 list.
8161 (remote_protocol_features): Add entry for QPassSignals.
8162 (remote_open_1): Free anc clear last_program_signals_packet.
8163 (init_remote_ops): Install remote_program_signals.
8164 * target.c (update_current_target): Adjust.
8165 (target_program_signals): New.
8166 * target.h (struct target_ops) <to_program_signals>: New field.
8167 (target_program_signals): Declare.
8168
8169 2012-03-07 Pedro Alves <palves@redhat.com>
8170
8171 * NEWS: Add subtitle for new z0/z1 conditional breakpoint
8172 extensions.
8173
8174 2012-03-07 Andreas Schwab <schwab@linux-m68k.org>
8175
8176 * m68klinux-nat.c (getregs_supplies): Make static.
8177 (getfpregs_supplies): Likewise.
8178 (have_ptrace_getregs): Likewise.
8179
8180 2012-03-06 Joel Brobecker <brobecker@adacore.com>
8181
8182 * dwarf2read.c (dwarf2_get_die_type): Pass absolute offset
8183 in call to get_die_type_at_offset.
8184
8185 2012-03-06 Stan Shebs <stan@codesourcery.com>
8186
8187 * mi/mi-cmd-break.c: Enforce coding standards, fix comments.
8188 * mi/mi-cmd-disas.c: Ditto.
8189 * mi/mi-cmd-env.c: Ditto.
8190 * mi/mi-cmd-file.c: Ditto.
8191 * mi/mi-cmd-stack.c: Ditto.
8192 * mi/mi-cmd-target.c: Ditto.
8193 * mi/mi-cmd-var.c: Ditto.
8194 * mi/mi-cmds.c: Ditto.
8195 * mi/mi-cmds.h: Ditto.
8196 * mi/mi-console.c: Ditto.
8197 * mi/mi-getopt.c: Ditto.
8198 * mi/mi-getopt.h: Ditto.
8199 * mi/mi-interp.c: Ditto.
8200 * mi/mi-main.c: Ditto.
8201 * mi/mi-out.c: Ditto.
8202 * mi/mi-parse.c: Ditto.
8203 * mi/mi-parse.h: Ditto.
8204 * mi/mi-symbol-cmds.c: Ditto.
8205
8206 * mi/mi-getopt.h: Move mi_opt struct up.
8207 * mi/mi-main.c (captured_mi_execute_command): Remove redundant
8208 return.
8209 * mi/mi-out.c (_initialize_mi_out): Remove empty initialize.
8210
8211 2012-03-06 Tom Tromey <tromey@redhat.com>
8212
8213 * proc-service.c (ps_pglobal_lookup): Set the current program
8214 space.
8215
8216 2012-03-06 Pedro Alves <palves@redhat.com>
8217
8218 * gregset.h [HAVE_SYS_PROCFS_H]: Include <sys/procfs.h>.
8219
8220 2012-03-05 Joel Brobecker <brobecker@adacore.com>
8221
8222 * MAINTAINERS: List Maciej W. Rozycki as the mips maintainer.
8223
8224 2012-03-05 Jan Kratochvil <jan.kratochvil@redhat.com>
8225
8226 Code cleanup.
8227 * common/linux-osdata.c (linux_common_core_of_thread): New function
8228 comment.
8229 * linux-nat.c (linux_nat_wait_1): Replace linux_nat_core_of_thread_1
8230 call by linux_common_core_of_thread.
8231 (linux_nat_core_of_thread_1): Remove.
8232 * linux-nat.h (linux_nat_core_of_thread_1): Remove declaration.
8233 * linux-thread-db.c: Include linux-osdata.h.
8234 (update_thread_core): Replace linux_nat_core_of_thread_1 call by
8235 linux_common_core_of_thread.
8236
8237 2012-03-05 Tom Tromey <tromey@redhat.com>
8238
8239 * value.c (value_primitive_field): Don't fetch contents for
8240 non-virtual bases.
8241
8242 2012-03-05 Tom Tromey <tromey@redhat.com>
8243
8244 * jv-valprint.c (java_value_print): Correctly compute 'obj_addr'.
8245
8246 2012-03-05 Andreas Arnez <arnez@linux.vnet.ibm.com>
8247
8248 * s390-nat.c: Include "gregset.h".
8249
8250 2012-03-05 Jan Kratochvil <jan.kratochvil@redhat.com>
8251
8252 * libunwind-frame.c (LIBUNWIND_SO): Change .7 to .8.
8253 [!LIBUNWIND_SO] (LIBUNWIND_SO_7): New #define.
8254 (libunwind_load): New variable so_error, use it for dlerror. Try to
8255 load also LIBUNWIND_SO_7.
8256
8257 2012-03-05 Pedro Alves <palves@redhat.com>
8258
8259 * i387-tdep.c (i387_supply_xsave): Assert the xsave section buffer
8260 is not NULL, and remove resulting dead code.
8261
8262 2012-03-05 Thomas Schwinge <thomas@codesourcery.com>
8263
8264 * sh-tdep.c (sh_skip_prologue): Provide an upper limit on the function
8265 prologue to sh_analyze_prologue.
8266 (sh_analyze_prologue): Make better use of such an upper limit, and
8267 generally be more cautious about accessing memory.
8268
8269 2012-03-05 Tom Tromey <tromey@redhat.com>
8270
8271 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Rename from
8272 _initialize_ia64_hpux_tdep.
8273
8274 2012-03-05 Pedro Alves <palves@redhat.com>
8275
8276 PR gdb/13766
8277
8278 * i387-tdep.c (i387_supply_xsave): If we have an xsave buffer, and
8279 the register state is clear, supply explicit zero, instead of
8280 marking the register unavailable.
8281
8282 2012-03-05 Tristan Gingold <gingold@adacore.com>
8283
8284 * NEWS: Mention OpenVMS ia64 new target.
8285
8286 2012-03-05 Tristan Gingold <gingold@adacore.com>
8287
8288 * ia64-tdep.h: Include libunwind-frame.h and libunwind-ia64.h.
8289 (ia64_unw_accessors, ia64_unw_rse_accessors)
8290 (ia64_libunwind_descr): Declare.
8291 * ia64-vms-tdep.c: New file.
8292 * ia64-tdep.c (ia64_unw_accessors, ia64_unw_rse_accessors)
8293 (ia64_libunwind_descr): Make them public.
8294 * configure.tgt: Add ia64-*-*vms*.
8295 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-vms-tdep.o
8296 (ALLDEPFILES): Add ia64-vms-tdep.c
8297
8298 2012-03-05 Tristan Gingold <gingold@adacore.com>
8299
8300 * target.h (target_object): Add TARGET_OBJECT_OPENVMS_UIB.
8301 * remote.c (PACKET_qXfer_uib): New enum value.
8302 (remote_protocol_features): Add entry for PACKET_qXfer_uib.
8303 (remote_xfer_partial): Handle TARGET_OBJECT_OPENVMS_UIB.
8304 (_initialize_remote): Call add_packet_config_cmd for
8305 xfer:uib packet.
8306
8307 2012-03-05 Tristan Gingold <gingold@adacore.com>
8308
8309 * osabi.c (gdb_osabi_names): Add OpenVMS.
8310 (generic_elf_osabi_sniffer): Likewise.
8311 * defs.h (gdb_osabi): Add GDB_OSABI_OPENVMS.
8312
8313 2012-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
8314
8315 Removed unused code.
8316 * libunwind-frame.c (libunwind_frame_unwind)
8317 (libunwind_frame_base_address): Remove.
8318 * libunwind-frame.h (libunwind_frame_base_address): Remove declaration.
8319
8320 2012-03-04 Yao Qi <yao@codesourcery.com>
8321
8322 * common/agent.c (gdb_connect_sync_socket): Add _ markup and
8323 remove trailing new line.
8324 (agent_run_command, agent_run_command): Add _ markup.
8325 (agent_capability_check): Likewise.
8326
8327 2012-03-03 Jan Kratochvil <jan.kratochvil@redhat.com>
8328
8329 * breakpoint.c (set_condition_evaluation_mode): Set
8330 CONDITION_EVALUATION_MODE unconditionally.
8331
8332 2012-03-03 Yao Qi <yao@codesourcery.com>
8333
8334 * common/agent.c (agent_look_up_symbols): Add one parameter 'arg'.
8335 * common/agent.h: Update declaration.
8336 * inf-child.c (inf_child_use_agent): New.
8337 (inf_child_can_use_agent): New.
8338 (inf_child_target): Initialize fields `to_use_agent'
8339 and `to_can_use_agent'.
8340 * agent.c (agent_new_objfile): New.
8341 (_initialize_agent): Add agent_new_objfile to new_objfile
8342 observer.
8343
8344 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
8345 New.
8346 (linux_target_install_ops): Initialize field
8347 `to_static_tracepoint_markers_by_strid'.
8348 * remote.c (free_current_marker): Move it to ...
8349 * tracepoint.c (free_current_marker): ... here. New.
8350 (cleanup_target_stop): New.
8351 * tracepoint.h: Declare free_current_marker.
8352 * NEWS: Add one entry about `info static-tracepoint-marker'.
8353
8354 2012-03-03 Yao Qi <yao@codesourcery.com>
8355
8356 * common/agent.c (agent_loaded_p): New.
8357 (agent_look_up_symbols): New global.
8358 * common/agent.h: Declare agent_loaded_p.
8359
8360 2012-03-03 Yao Qi <yao@codesourcery.com>
8361
8362 * common/agent.c (struct ipa_sym_addresses) <addr_capability>: New.
8363 (agent_capability_check, agent_capability_invalidate): New.
8364 (symbol_list): New array element.
8365 * common/agent.h (enum agent_capa): New.
8366 * target.c (target_pre_inferior): Call agent_capability_invalidate.
8367
8368 2012-03-03 Yao Qi <yao@codesourcery.com>
8369
8370 * target.h (struct target_ops) <to_use_agent>: New field.
8371 (struct target_ops) <to_can_use_agent>: New field.
8372 (target_use_agent, target_can_use_agent): New macro.
8373 * target.c (update_current_target): Update.
8374 * remote.c: New enum `PACKET_QAgent'.
8375 (remote_protocol_features): Add a new element.
8376 (remote_use_agent, remote_can_use_agent): New.
8377 (init_remote_ops): Initialize field `can_use_agent' with
8378 remote_can_use_agent. Intiailize field `use_agent' with
8379 remote_use_agent.
8380 * common/agent.c (use_agent): New global.
8381 * common/agent.h: Declare it.
8382 * tracepoint.c (info_static_tracepoint_markers_command): Add
8383 comment.
8384 * Makefile.in (SFILES): Add common/agent.c and agent.c.
8385 (COMMON_OBS): Add common/agent.o and agent.o
8386 (common-agent.o): New rule.
8387 * agent.c: New.
8388
8389 2012-03-03 Yao Qi <yao@codesourcery.com>
8390
8391 * common/agent.c: New.
8392 * common/agent.h: New.
8393 * configure.ac: Add `sys/socket.h' and `sys/un.h' to
8394 AC_CHECK_HEADERS.
8395 * configure, configh.in: Regenerated.
8396
8397 2012-03-02 Kevin Buettner <kevinb@redhat.com>
8398
8399 * sh-tdep.c (sh_frame_cache): Don't fetch the FPSCR register
8400 unless it exists for this architecture.
8401
8402 2012-03-02 Joel Brobecker <brobecker@adacore.com>
8403
8404 * language.h (struct language_defn): New "method" la_read_var_value.
8405 * findvar.c: #include "language.h".
8406 (default_read_var_value): Renames read_var_value. Rewrite
8407 function description.
8408 (read_var_value): New function.
8409 * value.h (default_read_var_value): Add prototype.
8410 * ada-lang.c (ada_read_renaming_var_value, ada_read_var_value):
8411 New functions.
8412 (ada_language_defn): Add entry for la_read_var_value.
8413 * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, language.c,
8414 * m2-lang.c, objc-lang.c, opencl-lang.c, p-lang.c: Update
8415 language_defn structures to add entry for new la_read_var_value
8416 field.
8417
8418 2012-03-02 Tom Tromey <tromey@redhat.com>
8419 Pedro Alves <palves@redhat.com>
8420
8421 PR breakpoints/13776:
8422 * breakpoint.c (breakpoint_init_inferior): Delete step-resume
8423 breakpoints.
8424 (delete_longjmp_breakpoint_at_next_stop): New.
8425 * breakpoint.h (delete_longjmp_breakpoint_at_next_stop): Declare.
8426 * target.c (generic_mourn_inferior): Call mark_breakpoints_out
8427 before deleting the inferior. Add comments.
8428 * thread.c (clear_thread_inferior_resources): Don't delete lonjmp
8429 breakpoints immediately, but only on next stop. Move that code
8430 next to where we mark other breakpoints for deletion.
8431
8432 2012-03-02 Joel Brobecker <brobecker@adacore.com>
8433
8434 * mips-linux-nat.c (mips_linux_read_description): Add missing i18n
8435 marker.
8436 * mips-tdep.c (mips_linux_reg_names): Improve comment to avoid ARI
8437 violation.
8438
8439 2012-03-02 Pedro Alves <palves@redhat.com>
8440
8441 * linux-thread-db.c (attach_thread): Avoid in_thread_list call.
8442
8443 2012-03-02 Ulrich Weigand <uweigand@de.ibm.com>
8444
8445 Fix -Wmissing-prototypes build.
8446 * ppc-linux-nat.c (ppc_linux_get_hwcap): Make static.
8447 * remote-sim.c (gdbsim_has_all_memory): Likewise.
8448 (gdbsim_has_memory): Likewise.
8449
8450 2012-03-02 Yao Qi <yao@codesourcery.com>
8451
8452 Fix -Wmissing-prototypes build.
8453 * charset.c (phony_iconv_open): Make static.
8454 (phony_iconv_close, phony_iconv): Likewise.
8455 * i386-linux-nat.c (_initialize_i386_linux_nat): New prototype.
8456 * i386-windows-nat.c (_initialize_i386_windows_nat): New
8457 prototype.
8458 * mingw-hdep.c (_initialize_mingw_hdep): New prototype.
8459 * ser-mingw.c (create_select_thread): Make static.
8460 * windows-termcap.c (tgetent): New prototype.
8461 (tgetnum, tgetflag, tgetstr, tputs, tgoto): Likewise.
8462
8463 2012-03-02 Zhang Yuanhui <asmwarrior@gmail.com>
8464
8465 Fix -Wmissing-prototypes build.
8466 * windows-nat.c (dll_symbol_command, ctrl_c_handler): Make them static.
8467 (_initialize_windows_nat, _initialize_check_for_gdb_ini)
8468 (_initialize_loadable): New prototypes.
8469
8470 2012-03-02 Doug Evans <dje@google.com>
8471
8472 * dwarf2read.c (load_full_comp_unit): Remove unnecessary reading of
8473 abbrev table, read_comp_unit will do it.
8474
8475 2012-03-02 Jan Kratochvil <jan.kratochvil@redhat.com>
8476
8477 Fix -Wmissing-prototypes build.
8478 * alpha-tdep.c (alpha_deal_with_atomic_sequence): Make it static.
8479 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): New prototype.
8480 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Likewise.
8481 * arm-symbian-tdep.c (arm_symbian_skip_trampoline_code): Make it static.
8482 (_initialize_arm_symbian_tdep): New prototype.
8483 * arm-wince-tdep.c (arm_wince_skip_main_prologue): Make it static.
8484 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): New prototype.
8485 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Make it
8486 static.
8487 * lm32-tdep.c (_initialize_lm32_tdep): New prototype.
8488 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): New
8489 prototype.
8490 * microblaze-tdep.c (microblaze_debug, microblaze_fetch_instruction)
8491 (microblaze_skip_prologue, microblaze_frame_cache): Make them static.
8492 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Make it
8493 static.
8494 * moxie-tdep.c (moxie_process_record): Likewise.
8495 * remote-mips.c (mips_can_use_watchpoint, mips_insert_watchpoint)
8496 (mips_remove_watchpoint, mips_stopped_by_watchpoint): Make them static.
8497 * rl78-tdep.c (rl78_breakpoint_from_pc): Make it static.
8498 (_initialize_rl78_tdep): New prototype.
8499 * rx-tdep.c (rx_breakpoint_from_pc): Make it static.
8500 (_initialize_rx_tdep): New prototype.
8501 * solib-darwin.c (darwin_in_dynsym_resolve_code): Make it static.
8502 (_initialize_darwin_solib): New prototype.
8503 * solib-spu.c: Include solib-spu.h.
8504 (_initialize_spu_solib): New prototype.
8505 * spu-multiarch.c (_initialize_spu_multiarch): New prototype.
8506 * tic6x-tdep.c (tic6x_analyze_prologue, tic6x_skip_prologue)
8507 (tic6x_breakpoint_from_pc, tic6x_frame_unwind_cache)
8508 (tic6x_software_single_step): Make it static.
8509 (_initialize_tic6x_tdep): New prototype.
8510
8511 2012-03-02 Jan Kratochvil <jan.kratochvil@redhat.com>
8512
8513 Fix -Wmissing-prototypes build.
8514 * cris-tdep.c (cris_can_use_hardware_watchpoint)
8515 (cris_region_ok_for_watchpoint, cris_stopped_data_address): Remove.
8516
8517 2012-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
8518
8519 Fix -Wmissing-prototypes build.
8520 * frv-tdep.c (frv_check_watch_resources, frv_stopped_data_address)
8521 (frv_have_stopped_data_address): Remove.
8522
8523 2012-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
8524
8525 Fix -Wmissing-prototypes build.
8526 * Makefile.in (HFILES_NO_SRCDIR): Add sh64-tdep.h.
8527 * sh-tdep.c: Include sh64-tdep.h.
8528 * sh-tdep.h (sh64_gdbarch_init, sh64_show_regs): Remove declarations.
8529 * sh64-tdep.c: Include sh64-tdep.h.
8530 * sh64-tdep.h: New file.
8531
8532 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
8533
8534 * mips-tdep.c (mips32_scan_prologue): Correct indentation.
8535
8536 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
8537
8538 * mips-tdep.c (mips_gdbarch_init): Only set pc_regnum and
8539 sp_regnum once the gdbarch_init_osabi hook has been called.
8540
8541 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
8542
8543 * mips-tdep.c (mips32_bc1_pc): New function.
8544 (mips32_next_pc): Handle BC1ANY2F, BC1ANY2T, BC1ANY4F, BC1ANY4T,
8545 BPOSGE32 and BPOSGE64 instructions.
8546 (deal_with_atomic_sequence): Likewise.
8547 (mips32_instruction_has_delay_slot): Likewise.
8548
8549 2012-03-01 Maciej W. Rozycki <macro@mips.com>
8550 Chris Dearman <chris@mips.com>
8551 Maciej W. Rozycki <macro@codesourcery.com>
8552 Joseph Myers <joseph@codesourcery.com>
8553
8554 * features/mips-dsp.xml: New file.
8555 * features/mips64-dsp.xml: New file.
8556 * features/mips-dsp-linux.xml: New file.
8557 * features/mips64-dsp-linux.xml: New file.
8558 * features/Makefile (WHICH): Add mips-dsp-linux and
8559 mips64-dsp-linux.
8560 (mips-dsp-expedite, mips64-dsp-expedite): New variables.
8561 * features/mips-dsp-linux.c: New file.
8562 * features/mips64-dsp-linux.c: New file.
8563 * regformats/mips-dsp-linux.dat: New file.
8564 * regformats/mips64-dsp-linux.dat: New file.
8565 * mips-linux-nat.c (mips_linux_register_addr): Handle DSP
8566 registers.
8567 (mips64_linux_register_addr): Likewise.
8568 (mips64_linux_regsets_fetch_registers): Likewise.
8569 (mips64_linux_regsets_store_registers): Likewise.
8570 (mips64_linux_fetch_registers): Update call to
8571 mips64_linux_regsets_fetch_registers.
8572 (mips64_linux_store_registers): Update call to
8573 mips64_linux_regsets_store_registers.
8574 (mips_linux_read_description): Probe for DSP registers.
8575 (_initialize_mips_linux_nat): Call initialize_tdesc_mips_dsp_linux
8576 and initialize_tdesc_mips64_dsp_linux.
8577 * mips-linux-tdep.c (supply_gregset, mips64_supply_gregset):
8578 Remove padding of no longer used embedded register slots.
8579 * mips-linux-tdep.h (DSP_BASE, DSP_CONTROL): New macros.
8580 (MIPS_RESTART_REGNUM): Redefine enum value.
8581 * mips-tdep.c (mips_generic_reg_names): Remove trailing null
8582 strings.
8583 (mips_tx39_reg_names): Likewise.
8584 (mips_linux_reg_names): New array of register names for Linux
8585 targets.
8586 (mips_register_name): Check for a null pointer in
8587 mips_processor_reg_names and return an empty string.
8588 (mips_register_type): Exclude embedded registers for the IRIX
8589 and Linux ABIs.
8590 (mips_pseudo_register_type): Likewise. Use dynamic numbers to
8591 refer to FP registers, LO, HI, BadVAddr, Cause and PC. Handle
8592 DSP registers.
8593 (mips_stab_reg_to_regnum): Handle DSP accumulators.
8594 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Likewise.
8595 (mips_gdbarch_init): Likewise. Initialize internal register
8596 indices for the Linux ABI. Use dynamic numbers to refer to
8597 registers, as applicable, while parsing the target description.
8598 * mips-tdep.h (struct mips_regnum): Add dspacc/dspctl offsets.
8599
8600 2012-03-01 Joel Brobecker <brobecker@adacore.com>
8601
8602 * frame.h (read_frame_register_unsigned): Fix typo in function
8603 description.
8604
8605 2012-03-01 Pedro Alves <palves@redhat.com>
8606
8607 * jit-reader.in [!__cplusplus]
8608 (GDB_DECLARE_GPL_COMPATIBLE_READER): Add missing backslash.
8609
8610 2012-03-01 Pedro Alves <palves@redhat.com>
8611
8612 * configure.ac (build_warnings): Add -Wmissing-prototypes.
8613 * configure: Regenerate.
8614
8615 2012-03-01 Pedro Alves <palves@redhat.com>
8616
8617 * amd64-linux-tdep.c (amd64_linux_record_signal): Make static.
8618 * breakpoint.c (create_exception_master_breakpoint, trace_command)
8619 (ftrace_command, strace_command): Make static.
8620 * d-lang.c (_initialize_d_language): Declare.
8621 * dwarf2expr.c (_initialize_dwarf2expr): Declare.
8622 * dwarf2loc.c (_initialize_dwarf2loc):
8623 * dwarf2read.c (process_psymtab_comp_unit): Make static.
8624 * exec.c (exec_get_section_table): Make static.
8625 * i386-linux-tdep.c (i386_linux_record_signal): Make static.
8626 * infcmd.c (ensure_valid_thread, ensure_not_tfind_mode): Make static.
8627 * inferior.c (remove_inferior_command, add_inferior_command)
8628 (clone_inferior_command): Make static.
8629 * linux-nat.c (linux_nat_thread_address_space)
8630 (linux_nat_core_of_thread): Make static.
8631 * linux-tdep.c (_initialize_linux_tdep): Declare.
8632 * objc-lang.c (_initialize_objc_lang): Declare.
8633 * opencl-lang.c (builtin_opencl_type, opencl_language_arch_info):
8634 Make static.
8635 (_initialize_opencl_language): Declare.
8636 * record.c (_initialize_record): Declare.
8637 * remote.c (demand_private_info, remote_get_tib_address)
8638 (remote_supports_cond_tracepoints)
8639 (remote_supports_fast_tracepoints, remote_get_tracepoint_status):
8640 Make static.
8641 * skip.c (_initialize_step_skip): Declare.
8642 * symtab.c (skip_prologue_using_lineinfo): Make static.
8643 * tracepoint.c (delete_trace_state_variable)
8644 (trace_variable_command, delete_trace_variable_command)
8645 (get_uploaded_tsv, find_matching_tracepoint_location)
8646 (find_matching_tsv, create_tsv_from_upload, get_traceframe_info):
8647 Make static.
8648 * value.c (pack_unsigned_long): Make static.
8649 * varobj.c (varobj_ensure_python_env): Make static.
8650 * windows-tdep.c (_initialize_windows_tdep): Declare.
8651 * xml-syscall.c (make_cleanup_free_syscalls_info): Make static.
8652
8653 2012-03-01 Pedro Alves <palves@redhat.com>
8654
8655 * linux-tdep.c (linux_has_shared_address_space): Make static. Add
8656 gdbarch parameter.
8657 (linux_init_abi): Install it as has_shared_address_space gdbarch
8658 callback.
8659
8660 2012-03-01 Pedro Alves <palves@redhat.com>
8661
8662 * observer.c (observer_test_first_notification_function)
8663 (observer_test_second_notification_function)
8664 (observer_test_third_notification_function): Add declarations.
8665
8666 2012-03-01 Pedro Alves <palves@redhat.com>
8667
8668 * common/signals.c (default_target_signal_to_host)
8669 (default_target_signal_from_host): Move ...
8670 * arch-utils.c: ... here.
8671 * arch-utils.h (default_target_signal_to_host)
8672 (default_target_signal_from_host): Declare.
8673
8674 * common/signals.c (target_signal_from_command): Move ...
8675 * infrun.c: ... here.
8676 * inferior.h (target_signal_from_command): Declare.
8677 * target.h (target_signal_from_command)
8678 (default_target_signal_from_host, default_target_signal_to_host):
8679 Delete declarations.
8680
8681 * common/signals.c (_initialize_signals): Delete.
8682
8683 2012-03-01 Pedro Alves <palves@redhat.com>
8684
8685 * jit-reader.in (plugin_is_GPL_compatible): Add declarations for
8686 both __cplusplus and !__cplusplus.
8687
8688 2012-03-01 Pedro Alves <palves@redhat.com>
8689
8690 * psymtab.c (find_and_open_source): Delete declaration.
8691 * source.c (find_and_open_source): Move comment ...
8692 * source.h (find_and_open_source): ... to this new declaration.
8693
8694 2012-03-01 Pedro Alves <palves@redhat.com>
8695
8696 * inline-frame.c: Include inline-frame.h.
8697
8698 2012-03-01 Pedro Alves <palves@redhat.com>
8699
8700 * tui/tui-data.c (set_gen_win_origin): Delete.
8701 * tui/tui-data.h (tui_set_gen_win_origin): Delete declaration.
8702 * tui/tui-regs.c (tui_last_reg_element_no_in_line): Delete.
8703
8704 2012-03-01 Pedro Alves <palves@redhat.com>
8705
8706 * remote.c (encode_actions): Delete declaration.
8707 * tracepoint.c (encode_actions): Make extern.
8708 * tracepoint.h (encode_actions): Declare.
8709
8710 2012-03-01 Pedro Alves <palves@redhat.com>
8711
8712 * python/py-breakpoint.c: Include python.h.
8713 * python/py-continueevent.c (create_continue_event_object): Make
8714 static.
8715 * python/py-lazy-string.c (stpy_get_type): Make static.
8716 * python/py-newobjfileevent.c (create_new_objfile_event_object):
8717 Make static.
8718 * python/py-utils.c (unicode_to_target_python_string): Make
8719 static.
8720 * python/py-value.c: Include python.h.
8721
8722 2012-03-01 Pedro Alves <palves@redhat.com>
8723
8724 * inferior.c (delete_threads_of_inferior): Delete.
8725
8726 2012-03-01 Pedro Alves <palves@redhat.com>
8727
8728 Import fallback definitions from glibc.
8729
8730 * gdb_proc_service.h [!HAVE_PROC_SERVICE_H] (struct
8731 ps_prochandle): Forward declare.
8732 (ps_err_e): Use glibc's comments.
8733 [!HAVE_PROC_SERVICE_H] (ps_pdread, ps_pdwrite, ps_ptread)
8734 (ps_ptwrite, ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
8735 (ps_lsetfpregs, ps_getpid, ps_get_thread_area, ps_pglobal_lookup)
8736 (ps_pstop, ps_pcontinue, ps_lstop, ps_lcontinue, ps_lgetxregsize)
8737 (ps_lgetxregs, ps_lsetxregs, ps_plog): Declare.
8738 (struct ps_prochandle): Adjust comment.
8739
8740 2012-03-01 Pedro Alves <palves@redhat.com>
8741
8742 * ada-lang.c (ada_modulus_from_name): Delete.
8743 * ada-lex.l (lexer_init): Make static.
8744
8745 2012-03-01 Pedro Alves <palves@redhat.com>
8746
8747 PR gdb/13767
8748
8749 * frame.c (read_frame_register_unsigned): New.
8750 * frame.h (read_frame_register_unsigned): Declare.
8751 * i387-tdep.c (print_i387_status_word): New parameter `status_p'.
8752 Handle it.
8753 (print_i387_control_word): New parameter `control_p'. Handle it.
8754 (i387_print_float_info): Handle unavailable float registers.
8755
8756 2012-03-01 Keith Seitz <keiths@redhat.com>
8757
8758 * linespec.c (decode_line_2): Sort the list of methods
8759 alphabetically before presenting the user with a selection
8760 menu.
8761
8762 2012-03-01 Doug Evans <dje@google.com>
8763
8764 * dwarf2read.c (dwarf2_cu): Remove unused members has_form_ref_addr,
8765 has_namespace_info.
8766 (dwarf2_read_abbrevs): Remove corresponding initialization.
8767
8768 2012-03-01 Scott J. Goldman <scottjg@vmware.com>
8769
8770 * NEWS: Mention new python command class gdb.COMMAND_USER.
8771 * cli/cli-cmds.c (show_user): Print error when used on a python
8772 command.
8773 (init_cli_cmds): Update documentation strings for "show user" and
8774 "set/show max-user-call-depth" to clarify that it does not apply to
8775 python commands.
8776 * python/py-cmd.c (cmdpy_init): Treat class_user as a valid class in
8777 error check.
8778 (gdbpy_initialize_commands): Add COMMAND_USER as a constant in
8779 gdb python api.
8780 * top.c (execute_command): Only execute a user-defined command as a
8781 legacy macro if c->user_commands is set.
8782
8783 2012-03-01 Tom Tromey <tromey@redhat.com>
8784
8785 * valprint.h (struct generic_val_print_decorations): New.
8786 (generic_val_print): Declare.
8787 * valprint.c (generic_val_print): New function.
8788 * p-valprint.c (p_decorations): New global.
8789 (pascal_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM,
8790 TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_RANGE, TYPE_CODE_INT,
8791 TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ERROR, TYPE_CODE_UNDEF,
8792 TYPE_CODE_BOOL, TYPE_CODE_CHAR>: Call generic_val_print.
8793 * m2-valprint.c (m2_decorations): New global.
8794 (m2_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM, TYPE_CODE_FUNC,
8795 TYPE_CODE_BOOL, TYPE_CODE_RANGE, TYPE_CODE_INT, TYPE_CODE_CHAR,
8796 TYPE_CODE_FLT, TYPE_CODE_METHOD, TYPE_CODE_VOID, TYPE_CODE_UNDEF,
8797 TYPE_CODE_ERROR>: Call generic_val_print.
8798 * f-valprint.c (f_decorations): New global.
8799 (f_val_print): Use print_function_pointer_address.
8800 <TYPE_CODE_REF, TYPE_CODE_FUNC, TYPE_CODE_CHAR, TYPE_CODE_FLAGS,
8801 TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ENUM, TYPE_CODE_RANGE,
8802 TYPE_CODE_BOOL, TYPE_CODE_COMPLEX, TYPE_CODE_UNDEF>: Call
8803 generic_val_print.
8804 * c-valprint.c (c_decorations): New global.
8805 (c_val_print) <TYPE_CODE_MEMBERPTR, TYPE_CODE_REF, TYPE_CODE_ENUM,
8806 TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_METHOD, TYPE_CODE_BOOL,
8807 TYPE_CODE_RANGE, TYPE_CODE_CHAR, TYPE_CODE_FLT,
8808 TYPE_CODE_DECFLOAT, TYPE_CODE_VOID, TYPE_CODE_ERROR,
8809 TYPE_CODE_UNDEF, TYPE_CODE_COMPLEX>: Call generic_val_print.
8810 * ada-valprint.c (ada_val_print_1) <TYPE_CODE_FLAGS>: Remove
8811 case.
8812
8813 2012-03-01 Tom Tromey <tromey@redhat.com>
8814
8815 * valprint.c (val_print): Update.
8816 * p-valprint (pascal_val_print): Return void.
8817 * p-lang.h (pascal_val_print): Return void.
8818 * m2-valprint.c (m2_val_print): Return void.
8819 * m2-lang.h (m2_val_print): Return void.
8820 * language.h (struct language_defn) <la_val_print>: Return void.
8821 * language.c (unk_lang_val_print): Return void.
8822 * jv-valprint.c (java_val_print): Return void.
8823 * jv-lang.h (java_val_print): Return void.
8824 * f-valprint.c (f_val_print): Return void.
8825 * f-lang.h (f_val_print): Return void.
8826 * d-valprint.c (d_val_print): Return void.
8827 (dynamic_array_type): Update.
8828 * d-lang.h (d_val_print): Return void.
8829 * c-valprint.c (c_val_print): Return void.
8830 * c-lang.h (c_val_print): Return void.
8831 * ada-valprint.c (ada_vada_val_print, ada_val_print_1): Return
8832 void.
8833 * ada-lang.h (ada_val_print): Return void.
8834
8835 2012-03-01 Tom Tromey <tromey@redhat.com>
8836
8837 * value.h (val_print): Return void.
8838 * valprint.c (val_print): Return void.
8839
8840 2012-03-01 Tom Tromey <tromey@redhat.com>
8841
8842 * value.h (common_val_print): Return void.
8843 * valprint.c (common_val_print): Return void.
8844
8845 2012-03-01 Tom Tromey <tromey@redhat.com>
8846
8847 * value.h (value_print): Return void.
8848 * valprint.c (value_print): Return void.
8849 * p-valprint.c (pascal_value_print): Return void.
8850 * p-lang.h (pascal_value_print): Return void.
8851 * language.h (struct language_defn) <la_value_print>: Return
8852 void.
8853 * language.c (unk_lang_value_print): Return void.
8854 * jv-valprint.c (java_value_print): Return void.
8855 * jv-lang.h (java_value_print): Return void.
8856 * f-valprint.c (c_value_print): Don't declare.
8857 Include c-lang.h.
8858 * c-valprint.c (c_value_print): Return void.
8859 * c-lang.h (c_value_print): Return void.
8860 * ada-valprint.c (ada_value_print): Return void.
8861 * ada-lang.h (ada_value_print): Return void.
8862
8863 2012-03-01 Tom Tromey <tromey@redhat.com>
8864
8865 * value.c (value_primitive_field): Handle virtual base classes.
8866
8867 2012-03-01 Tom Tromey <tromey@redhat.com>
8868
8869 * gdbtypes.h (struct vbase): Remove.
8870
8871 2012-03-01 Tom Tromey <tromey@redhat.com>
8872
8873 * c-valprint.c (print_function_pointer_address): Move...
8874 * valprint.c: ... here. Make non-static.
8875 * m2-valprint.c (print_function_pointer_address): Remove.
8876 * valprint.h (print_function_pointer_address): Declare.
8877
8878 2012-03-01 Joel Brobecker <brobecker@adacore.com>
8879
8880 * NEWS: Document the fact that one can provide a condition when
8881 creating an Ada exception catchpoint.
8882
8883 2012-03-01 Tom Tromey <tromey@redhat.com>
8884
8885 * valprint.c (val_print_type_code_flags): Fix placement of
8886 trailing brace.
8887
8888 2012-03-01 Joel Brobecker <brobecker@adacore.com>
8889
8890 * copyright.py (MULTILINE_COMMENT_PREFIXES): Delete.
8891 (update_files): Do not set MULTILINE_COMMENT_PREFIXES
8892 environment variable before calling update-copyright.
8893
8894 2012-03-01 Joel Brobecker <brobecker@adacore.com>
8895
8896 * gnulib/extra/update-copyright: Update to the latest from
8897 gnulib's git repository.
8898 * copyright.py: Set UPDATE_COPYRIGHT_USE_INTERVALS environment
8899 variable to 2 instead of 1.
8900
8901 2012-02-29 Joel Brobecker <brobecker@adacore.com>
8902
8903 * varobj.c (c_value_of_variable): Remove dead code.
8904
8905 2012-02-29 Joel Brobecker <brobecker@adacore.com>
8906
8907 * ada-lex.p (processId): Do not modify already encoded IDs.
8908 Update function documentation.
8909
8910 2012-02-29 Joel Brobecker <brobecker@adacore.com>
8911
8912 * ada-lang.h (ada_find_renaming_symbol): Replace parameter
8913 "name" with "struct symbol *name_sym".
8914 * ada-exp.y (write_var_or_type): Update call to
8915 ada_find_renaming_symbol.
8916 "name" with "struct symbol *name_sym". Adjust Implementation
8917 accordingly. Adjust the function documentation.
8918
8919 2012-02-29 Joel Brobecker <brobecker@adacore.com>
8920
8921 * ada-lang.h (ada_find_any_symbol, ada_find_any_type): Delete.
8922 * ada-lang.c (ada_find_any_type): Add advance declaration.
8923 Make static. Replace ada_find_any_symbol by
8924 ada_find_any_type_symbol.
8925 (ada_find_any_type_symbol): Renames ada_find_any_symbol.
8926 Improve function description. Make static.
8927 (ada_find_renaming_symbol, find_old_style_renaming_symbol):
8928 Replace ada_find_any_symbol by ada_find_any_type_symbol.
8929
8930 2012-02-29 Joel Brobecker <brobecker@adacore.com>
8931
8932 * ada-lang.c (struct tag_args): Delete.
8933 (ada_get_tsd_type): Function body moved up in source file.
8934 (ada_tag_name_1, ada_tag_name_2): Delete.
8935 (ada_get_tsd_from_tag): New function.
8936 (ada_tag_name_from_tsd): New function.
8937 (ada_tag_name): Use a TRY_CATCH block instead of catch_errors
8938 to determine the tag name.
8939
8940 2012-02-29 Joel Brobecker <brobecker@adacore.com>
8941
8942 * ada-lang.h (ada_get_decoded_value, ada_get_decoded_type): Add
8943 declaration.
8944 * ada-lang.c (ada_get_decoded_value, ada_get_decoded_type): New
8945 function.
8946
8947 2012-02-29 Joel Brobecker <brobecker@adacore.com>
8948
8949 * ada-lang.c (ada_is_ignored_field): Rewrite wrong comment.
8950
8951 2012-02-29 Joel Brobecker <brobecker@adacore.com>
8952
8953 * ada-lang.c (ada_lookup_symbol_list): Only cache the result of
8954 full searches.
8955
8956 2012-02-29 Joel Brobecker <brobecker@adacore.com>
8957
8958 * ada-lang.c (constrained_packed_array_type): If there is a
8959 parallel XA type, use it to determine the array index type.
8960
8961 2012-02-29 Joel Brobecker <brobecker@adacore.com>
8962
8963 * ada-valprint.c (ada_val_print_1): If our value is a reference
8964 to an array descriptor, dereference it before converting it
8965 to a simple array.
8966
8967 2012-02-29 Joel Brobecker <brobecker@adacore.com>
8968
8969 * ada-lang.c (ada_to_fixed_value): Call unwrap_value before
8970 creating fixed value.
8971 (ada_value_ind, ada_coerce_ref, assign_component)
8972 (ada_evaluate_subexp): Remove call to unwrap_value before
8973 call to ada_to_fixed_value.
8974
8975 2012-02-29 Joel Brobecker <brobecker@adacore.com>
8976
8977 * ada-lang.c (to_fixed_array_type): Set result's type name.
8978
8979 2012-02-29 Joel Brobecker <brobecker@adacore.com>
8980
8981 * ada-lang.c (catch_ada_exception_command_split): Add new
8982 argument cond_string. Add support for condition at end of
8983 "catch exception" commands.
8984 (ada_decode_exception_location): Add new argument cond_string.
8985 Update call to catch_ada_exception_command_split.
8986 (create_ada_exception_catchpoint): Add new argument cond_string.
8987 Set the breakpoint condition if needed.
8988 (catch_ada_exception_command): Update call to
8989 ada_decode_exception_location.
8990 (ada_decode_assert_location): Add function documentation.
8991 Add support for condition at end of "catch assert" command.
8992 (catch_assert_command): Update calls to ada_decode_assert_location
8993 and create_ada_exception_catchpoint.
8994
8995 2012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
8996
8997 Fix disp-step-syscall.exp: fork: single step over fork.
8998 * i386-linux-tdep.c (-i386_linux_get_syscall_number): Rename to ...
8999 (i386_linux_get_syscall_number_from_regcache): ... here, new function
9000 comment, change parameters gdbarch and ptid to regcache. Remove
9001 parameter regcache, initialize gdbarch from regcache here.
9002 (i386_linux_get_syscall_number, i386_linux_displaced_step_copy_insn):
9003 New functions.
9004 (i386_linux_init_abi): Install i386_linux_displaced_step_copy_insn
9005 instead.
9006 * i386-tdep.c (i386_syscall_p): Check also for 'sysenter' and
9007 'syscall'. Make the 'int' check more strict.
9008
9009 2012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
9010
9011 Fix reverse mode for syscall on AMD CPUs in 32-bit mode.
9012 * i386-linux-tdep.c (i386_linux_intx80_sysenter_record): Rename to ...
9013 (i386_linux_intx80_sysenter_syscall_record): ... here.
9014 (i386_linux_init_abi): Initialize also I386_SYSCALL_RECORD.
9015 Use the renamed function name.
9016
9017 2012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
9018
9019 * arm-linux-tdep.c (arm_linux_copy_svc): Reset stale FRAME.
9020 * breakpoint.c (until_break_command): Likewise.
9021 * elfread.c (elf_gnu_ifunc_resolver_stop): Likewise.
9022 * infcall.c (call_function_by_hand): Likewise.
9023 * infcmd.c (finish_forward): Likewise.
9024 * infrun.c (insert_exception_resume_breakpoint): Likewise.
9025
9026 2012-02-28 Tristan Gingold <gingold@adacore.com>
9027
9028 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Rework code to
9029 avoid variable assignments inside condition.
9030
9031 2012-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
9032
9033 Fix static analysis issue found by cppcheck.
9034 * microblaze-tdep.c (microblaze_extract_return_value): Fix
9035 uninitialized BUF for size 2.
9036
9037 2012-02-27 Chris Dearman <chris@mips.com>
9038 Nathan Froyd <froydnj@codesourcery.com>
9039 Maciej W. Rozycki <macro@codesourcery.com>
9040
9041 * mips-tdep.c (mips32_instruction_has_delay_slot): New function.
9042 (mips16_instruction_has_delay_slot): Likewise.
9043 (mips_segment_boundary): Likewise.
9044 (mips_adjust_breakpoint_address): Likewise.
9045 (mips_gdbarch_init): Use mips_adjust_breakpoint_address.
9046
9047 2012-02-27 Maciej W. Rozycki <macro@mips.com>
9048 Maciej W. Rozycki <macro@codesourcery.com>
9049
9050 * infrun.c (handle_inferior_event): Don't proceed through
9051 shared library trampolines if stepping at the machine
9052 instruction level.
9053
9054 2012-02-27 Maciej W. Rozycki <macro@codesourcery.com>
9055
9056 * mips-linux-tdep.c (mips_linux_init_abi): Set num_pseudo_regs
9057 too.
9058
9059 2012-02-27 Thomas Schwinge <thomas@codesourcery.com>
9060
9061 * sh-tdep.c (sh_make_stub_cache, sh_stub_this_id)
9062 (sh_stub_unwind_sniffer): New functions.
9063 (sh_stub_unwind): New variable.
9064 (sh_gdbarch_init): Wire everything.
9065
9066 2012-02-27 Pedro Alves <palves@redhat.com>
9067
9068 * linux-nat.c (pid_is_stopped): Delete, moved to common/.
9069 (linux_nat_post_attach_wait): Adjust to use
9070 linux_proc_pid_is_stopped.
9071 * common/linux-procfs.h (linux_proc_pid_is_stopped): Declare.
9072 * common/linux-procfs.c (linux_proc_pid_is_stopped): New function,
9073 based on pid_is_stopped from both linux-nat.c and
9074 gdbserver/linux-low.c, and renamed.
9075
9076 2012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
9077
9078 * remote.c (remote_watchpoint_addr_within_range): New function.
9079 (init_remote_ops): Use it.
9080
9081 2012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
9082
9083 * target.h (target_watchpoint_addr_within_range): Document macro.
9084
9085 2012-02-24 Pedro Alves <palves@redhat.com>
9086
9087 * stack.c (set_last_displayed_sal): Issue internal_error instead
9088 of warning, and issue it after clearing the last displayed sal.
9089
9090 2012-02-24 Jan Kratochvil <jan.kratochvil@redhat.com>
9091 Pedro Alves <palves@redhat.com>
9092
9093 * breakpoint.c (until_break_command): Install breakpoints after
9094 all frame manipulations.
9095
9096 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
9097
9098 * remote.c (remote_supports_cond_breakpoints): New forward
9099 declaration.
9100 (remote_add_target_side_condition): New function.
9101 (remote_insert_breakpoint): Add target-side breakpoint
9102 conditional if supported.
9103 (remote_insert_hw_breakpoint): Likewise.
9104 (init_remote_ops): Set to_supports_evaluation_of_breakpoint_conditions
9105 hook.
9106
9107 * target.c (update_current_target): Inherit
9108 to_supports_evaluation_of_breakpoint_conditions.
9109 Default to_supports_evaluation_of_breakpoint_conditions to return_zero.
9110
9111 * target.h (struct target_ops)
9112 <to_supports_evaluation_of_breakpoint_conditions>: New field.
9113 (target_supports_evaluation_of_breakpoint_conditions): New #define.
9114
9115 * breakpoint.c (get_first_locp_gte_addr): New forward declaration.
9116 (condition_evaluation_both, condition_evaluation_auto,
9117 condition_evaluation_host, condition_evaluation_target,
9118 condition_evaluation_enums, condition_evaluation_mode_1,
9119 condition_evaluation_mode): New static globals.
9120 (translate_condition_evaluation_mode): New function.
9121 (breakpoint_condition_evaluation_mode): New function.
9122 (gdb_evaluates_breakpoint_condition_p): New function.
9123 (ALL_BP_LOCATIONS_AT_ADDR): New helper macro.
9124 (mark_breakpoint_modified): New function.
9125 (mark_breakpoint_location_modified): New function.
9126 (set_condition_evaluation_mode): New function.
9127 (show_condition_evaluation_mode): New function.
9128 (bp_location_compare_addrs): New function.
9129 (get_first_location_gte_addr): New helper function.
9130 (set_breakpoint_condition): Free condition bytecode if locations
9131 has become unconditional. Call mark_breakpoint_modified (...).
9132 (condition_command): Call update_global_location_list (1) for
9133 breakpoints.
9134 (breakpoint_xfer_memory): Use is_breakpoint (...).
9135 (is_breakpoint): New function.
9136 (parse_cond_to_aexpr): New function.
9137 (build_target_condition_list): New function.
9138 (insert_bp_location): Handle target-side conditional
9139 breakpoints and call build_target_condition_list (...).
9140 (update_inserted_breakpoint_locations): New function.
9141 (insert_breakpoint_locations): Handle target-side conditional
9142 breakpoints.
9143 (bpstat_check_breakpoint_conditions): Add comment.
9144 (bp_condition_evaluator): New function.
9145 (bp_location_condition_evaluator): New function.
9146 (print_breakpoint_location): Print information on where the condition
9147 will be evaluated.
9148 (print_one_breakpoint_location): Likewise.
9149 (init_bp_location): Call mark_breakpoint_location_modified (...) for
9150 breakpoint location.
9151 (force_breakpoint_reinsertion): New functions.
9152 (update_global_location_list): Handle target-side breakpoint
9153 conditions.
9154 Reinsert locations that are already inserted if conditions have
9155 changed.
9156 (bp_location_dtor): Free agent expression bytecode.
9157 (disable_breakpoint): Call mark_breakpoint_modified (...).
9158 Call update_global_location_list (...) with parameter 1 for breakpoints.
9159 (disable_command): Call mark_breakpoint_location_modified (...).
9160 Call update_global_location_list (...) with parameter 1 for breakpoints.
9161 (enable_breakpoint_disp): Call mark_breakpoint_modified (...).
9162 (enable_command): mark_breakpoint_location_modified (...).
9163 (_initialize_breakpoint): Update documentation and add
9164 condition-evaluation breakpoint subcommand.
9165
9166 * breakpoint.h: Include ax.h.
9167 (condition_list): New data structure.
9168 (condition_status): New enum.
9169 (bp_target_info) <cond_list>: New field.
9170 (bp_location) <condition_changed, cond_bytecode>: New fields.
9171 (is_breakpoint): New prototype.
9172
9173 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
9174
9175 * remote.c (remote_state) <cond_breakpoints>: New field.
9176 (PACKET_ConditionalBreakpoints): New enum.
9177 (remote_cond_breakpoint_feature): New function.
9178 (remote_protocol_features): Add new ConditionalBreakpoints entry.
9179 (remote_supports_cond_breakpoints): New function.
9180 (_initialize_remote): Add new packet configuration for
9181 target-side conditional breakpoints.
9182
9183 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
9184
9185 * NEWS: Mention target-side conditional breakpoint support,
9186 new condition-evaluation breakpoint subcommand and remote
9187 packet extensions.
9188
9189 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
9190
9191 * breakpoint.c (bp_location_compare): Sort by pspace before sorting by
9192 number.
9193
9194 2012-02-24 Thomas Schwinge <thomas@codesourcery.com>
9195
9196 * sh-tdep.c (sh_skip_prologue): Use skip_prologue_using_sal.
9197 (after_prologue): Remove.
9198
9199 2012-02-23 Tom Tromey <tromey@redhat.com>
9200
9201 * jv-valprint.c (java_val_print): Remove dead code.
9202
9203 2012-02-23 Tristan Gingold <gingold@adacore.com>
9204
9205 * ada-tasks.c (struct ada_tasks_inferior_data): Add
9206 known_tasks_element and known_tasks_length fields.
9207 (read_known_tasks_array): Change argument type. Use pointer type
9208 and number of elements from DATA. Adjust.
9209 (read_known_tasks_list): Likewise.
9210 (get_known_tasks_addr): Remove.
9211 (ada_set_current_inferior_known_tasks_addr): Renamed to ...
9212 (ada_tasks_inferior_data_sniffer): ... this. Use symtab for element
9213 type and array length. Merge former get_known_tasks_addr code.
9214
9215 2012-02-23 Jan Kratochvil <jan.kratochvil@redhat.com>
9216
9217 PR backtrace/13716
9218 * infcmd.c (finish_forward): New variable frame_id, initialize it, use
9219 it after set_momentary_breakpoint.
9220
9221 2012-02-22 Sterling Augustine <saugustine@google.com>
9222
9223 PR 13689:
9224 * breakpoint.c (watchpoint_exp_is_constant): Add UNOP_CAST to switch.
9225
9226 2012-02-22 Gary Benson <gbenson@redhat.com>
9227
9228 * dwarf2read.c (dwarf2_read_index): Correct misspelling.
9229 (find_slot_in_mapped_hash): Likewise.
9230
9231 2012-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
9232
9233 PR build/13638
9234 * configure.ac (MAKEINFO): Replace AC_CHECK_PROG by AC_ARG_VAR.
9235 (MAKEINFOFLAGS): Replace static string by AC_ARG_VAR.
9236 * configure: Regenerate.
9237
9238 2012-02-21 Tristan Gingold <gingold@adacore.com>
9239 Pedro Alves <palves@redhat.com>
9240
9241 * ia64-tdep.c: Do not include libunwind-ia64.h.
9242 * libunwind-frame.h: Remove #ifdef HAVE_LIBUNWIND_H guard.
9243 Include libunwind-ia64.h instead of libunwind.h.
9244 * configure.ac (--with-libunwind, $enable_libunwind): Don't check
9245 for libunwind.h existence.
9246 * configure, config.in: Regenerate.
9247
9248 2012-02-21 Anton Gorenkov <xgsa@yandex.ru>
9249
9250 * c-valprint.c (c_value_print): Use value_rtti_indirect_type
9251 instead of value_rtti_target_type.
9252 * eval.c (evaluate_subexp_standard): Use value_rtti_indirect_type
9253 instead of value_rtti_target_type.
9254 * typeprint.c (whatis_exp): Use value_rtti_indirect_type instead of
9255 value_rtti_target_type.
9256 * valops.c (value_ind): Extract function readjust_indirect_value_type.
9257 (value_rtti_target_type): Rename to ...
9258 (value_rtti_indirect_type): ... here and make it indirect. Update
9259 function comment.
9260 * value.c (readjust_indirect_value_type): New function.
9261 (coerce_ref): Support for enclosing type setting for references
9262 with readjust_indirect_value_type.
9263 * value.h (readjust_value_type): New declaration.
9264 (value_rtti_target_type): Rename to ...
9265 (value_rtti_indirect_type): ... here.
9266
9267 2012-02-21 Anton Gorenkov <xgsa@yandex.ru>
9268
9269 * MAINTAINERS (Write After Approval): Add myself to the list.
9270
9271 2012-02-20 Doug Evans <dje@google.com>
9272
9273 * objfiles.c (add_to_objfile_sections): Remove outdated comments.
9274 Rename objfile_p_char parameter to objfilep.
9275 (build_objfile_section_table): Result is now void. All callers
9276 updated.
9277 * objfiles.h (struct objfile): Tweak comments, whitespace.
9278 (build_objfile_section_table): Update.
9279
9280 * elfread.c (elf_symfile_segments): Fix warning text.
9281
9282 2012-02-20 Tom Tromey <tromey@redhat.com>
9283
9284 PR gdb/13498:
9285 * dwarf2read.c (dw2_expand_symtabs_matching): Only visit a
9286 particular set of file names once.
9287 (dw2_map_symbol_filenames): Likewise.
9288
9289 2012-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
9290
9291 Code cleanup.
9292 * main.c (write_files): Remove the declaration.
9293 (external_editor_command): Move the declaration ...
9294 [GDBTK] (external_editor_command): ... here. Fix the comment.
9295
9296 2012-02-20 Tom Tromey <tromey@redhat.com>
9297
9298 * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove
9299 extraneous block.
9300
9301 2012-02-20 Tristan Gingold <gingold@adacore.com>
9302
9303 * darwin-nat.h (enum darwin_msg_state): Add comments.
9304
9305 2012-02-20 Tristan Gingold <gingold@adacore.com>
9306
9307 * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Fix jb_pc_offset
9308 value.
9309
9310 2012-20-18 Joel Brobecker <brobecker@adacore.com>
9311
9312 * breakpoint.c (watchpoint_exp_is_const): Add missing empty line
9313 between function description and implementation.
9314
9315 2012-02-17 Tom Tromey <tromey@redhat.com>
9316
9317 PR python/12070:
9318 * python/py-event.c (event_object_getset): New global.
9319 (event_object_type): Reference it.
9320 * python/py-type.c (field_object_getset): New global.
9321 (field_object_type): Reference it.
9322 * python/python-internal.h (gdb_py_generic_dict): Declare.
9323 * python/py-utils.c (gdb_py_generic_dict): New function.
9324
9325 2012-02-17 Tristan Gingold <gingold@adacore.com>
9326
9327 * solib-darwin.c (darwin_current_sos): Check magic and filetype
9328
9329 2012-02-17 Thomas Schwinge <thomas@codesourcery.com>
9330
9331 * sh-tdep.c (sh_is_renesas_calling_convention): Fix handling of
9332 TYPE_CALLING_CONVENTION annotation.
9333
9334 2012-02-16 Kevin Buettner <kevinb@redhat.com>
9335
9336 * MAINTAINERS: Add rx to target ISA section.
9337 * Makefile.in (ALL_TARGET_OBS): Add rx-tdep.o.
9338 (ALLDEPFILES): Add rx-tdep.c.
9339
9340 2012-02-16 Tom Tromey <tromey@redhat.com>
9341
9342 * symfile.c (symbol_file_add_main_1): Use inferior's
9343 symfile_flags.
9344 * solib.c (solib_read_symbols): Use inferior's symfile_flags.
9345 * linux-nat.c (linux_child_follow_fork): Set symfile_flags on
9346 inferior.
9347 * infrun.c (handle_vfork_child_exec_or_exit): Set symfile_flags on
9348 inferior.
9349 (follow_exec): Use inferior's symfile_flags.
9350 * inferior.h (struct inferior) <symfile_flags>: New field.
9351
9352 2012-02-16 Mike Frysinger <vapier@gentoo.org>
9353
9354 PR gdb/9734:
9355 * remote-sim.c (gdbsim_create_inferior): Call error() when
9356 sim_create_inferior() fails.
9357
9358 2012-02-16 Josh Matthews <josh@joshmatthews.net>
9359
9360 * machoread.c: Initialize nbr_syms to avoid warnings-as-errors failure.
9361
9362 2012-02-16 Tom Tromey <tromey@redhat.com>
9363
9364 PR c++/13653:
9365 * thread.c (struct current_thread_cleanup) <was_removable>: New
9366 field.
9367 (restore_current_thread_cleanup_dtor): Restore 'removable' field.
9368 (make_cleanup_restore_current_thread): Initialize new field.
9369
9370 2012-02-15 Kevin Buettner <kevinb@redhat.com>
9371
9372 * MAINTAINERS: Add rl78 to target ISA section.
9373 * Makefile.in (ALL_TARGET_OBS): Add rl78-tdep.o.
9374 (ALLDEPFILES): Add rl78-tdep.c.
9375 * NEWS: Mention rl78 as a new target.
9376
9377 2012-02-15 Aleksandar Ristovski <aristovski@qnx.com>
9378
9379 * frame.c (find_frame_sal): Initialize sal->pspace field from frame
9380 data.
9381 * stack.c (set_last_displayed_sal): Validate that PSPACE is not NULL.
9382
9383 2012-02-15 Tom Tromey <tromey@redhat.com>
9384
9385 PR gdb/12659:
9386 * infcmd.c (registers_info): Print just the current register's
9387 name.
9388
9389 2012-02-15 Tom Tromey <tromey@redhat.com>
9390
9391 * python/py-symbol.c (sympy_value): Use _().
9392
9393 2012-02-15 Pedro Alves <palves@redhat.com>
9394
9395 * remote.c (remote_detach_1, extended_remote_attach_1): Tweak
9396 output to be like native targets'.
9397 (remote_pid_to_str): Special case the null ptid.
9398
9399 2012-02-14 Stan Shebs <stan@codesourcery.com>
9400
9401 * NEWS: Mention enable count command.
9402 * breakpoint.h (struct breakpoint): New field enable_count.
9403 * breakpoint.c (enable_breakpoint_disp): Add count argument.
9404 (enable_breakpoint): Add arg to call.
9405 (struct disp_data): New struct.
9406 (do_enable_breakpoint_disp): Interp arg as disp_data and unpack.
9407 (do_map_enable_once_breakpoint): Create a struct and pass it.
9408 (do_map_enable_delete_breakpoint): Ditto.
9409 (do_map_enable_count_breakpoint): New function.
9410 (enable_count_command): New function.
9411 (bpstat_stop_status): Decrement enable_count.
9412 (print_one_breakpoint_location): Report enable count.
9413 (_initialize_breakpoint): Add enable count command.
9414
9415 2012-02-14 Kevin Buettner <kevinb@redhat.com>
9416
9417 * rl78-tdep.c (reggroups.h): Include.
9418 (RL78_RAW_BANK0_R0_REGNUM, RL78_RAW_BANK0_R1_REGNUM)
9419 (RL78_RAW_BANK0_R2_REGNUM, RL78_RAW_BANK0_R3_REGNUM)
9420 (RL78_RAW_BANK0_R4_REGNUM, RL78_RAW_BANK0_R5_REGNUM)
9421 (RL78_RAW_BANK0_R6_REGNUM, RL78_RAW_BANK0_R7_REGNUM)
9422 (RL78_RAW_BANK1_R0_REGNUM, RL78_RAW_BANK1_R1_REGNUM)
9423 (RL78_RAW_BANK1_R2_REGNUM, RL78_RAW_BANK1_R3_REGNUM)
9424 (RL78_RAW_BANK1_R4_REGNUM, RL78_RAW_BANK1_R5_REGNUM)
9425 (RL78_RAW_BANK1_R6_REGNUM, RL78_RAW_BANK1_R7_REGNUM)
9426 (RL78_RAW_BANK2_R0_REGNUM, RL78_RAW_BANK2_R1_REGNUM)
9427 (RL78_RAW_BANK2_R2_REGNUM, RL78_RAW_BANK2_R3_REGNUM)
9428 (RL78_RAW_BANK2_R4_REGNUM, RL78_RAW_BANK2_R5_REGNUM)
9429 (RL78_RAW_BANK2_R6_REGNUM, RL78_RAW_BANK2_R7_REGNUM)
9430 (RL78_RAW_BANK3_R0_REGNUM, RL78_RAW_BANK3_R1_REGNUM)
9431 (RL78_RAW_BANK3_R2_REGNUM, RL78_RAW_BANK3_R3_REGNUM)
9432 (RL78_RAW_BANK3_R4_REGNUM, RL78_RAW_BANK3_R5_REGNUM)
9433 (RL78_RAW_BANK3_R6_REGNUM, RL78_RAW_BANK3_R7_REGNUM): Add to
9434 beginning of register list.
9435 (RL78_BANK0_R0_REGNUM, RL78_BANK0_R1_REGNUM, RL78_BANK0_R2_REGNUM)
9436 (RL78_BANK0_R3_REGNUM, RL78_BANK0_R4_REGNUM, RL78_BANK0_R5_REGNUM)
9437 (RL78_BANK0_R6_REGNUM, RL78_BANK0_R7_REGNUM, RL78_BANK1_R0_REGNUM)
9438 (RL78_BANK1_R1_REGNUM, RL78_BANK1_R2_REGNUM, RL78_BANK1_R3_REGNUM)
9439 (RL78_BANK1_R4_REGNUM, RL78_BANK1_R5_REGNUM, RL78_BANK1_R6_REGNUM)
9440 (RL78_BANK1_R7_REGNUM, RL78_BANK2_R0_REGNUM, RL78_BANK2_R1_REGNUM)
9441 (RL78_BANK2_R2_REGNUM, RL78_BANK2_R3_REGNUM, RL78_BANK2_R4_REGNUM)
9442 (RL78_BANK2_R5_REGNUM, RL78_BANK2_R6_REGNUM, RL78_BANK2_R7_REGNUM)
9443 (RL78_BANK3_R0_REGNUM, RL78_BANK3_R1_REGNUM, RL78_BANK3_R2_REGNUM)
9444 (RL78_BANK3_R3_REGNUM, RL78_BANK3_R4_REGNUM, RL78_BANK3_R5_REGNUM)
9445 (RL78_BANK3_R6_REGNUM, RL78_BANK3_R7_REGNUM): Move these into
9446 the pseudo registers. Rearrange other pseudo registers too so
9447 that the bank registers appear at the end.
9448 (rl78_register_type): Account for the fact that the byte sized
9449 bank registers are now pseudo-registers.
9450 (rl78_register_name): Rearrange the register name array. Make
9451 initial set of raw banked registers inaccessible.
9452 (rl78_register_reggroup_p, rl78_register_sim_regno): New functions.
9453 (rl78_pseudo_register_read, rl78_pseudo_register_write): Add
9454 case for copying bytes back and forth between raw and pseudo
9455 versions of the banked registers. Update other cases to reflect
9456 the changed names.
9457 (rl78_return_value): Update to account for changed names of
9458 raw registers.
9459 (rl78_gdbarch_init): Register rl78_register_reggroup_p() and
9460 rl78_register_sim_regno().
9461
9462 2012-02-14 Kevin Buettner <kevinb@redhat.com>
9463
9464 * rl78-tdep.c (rl78_skip_prologue): Make `const' the type of
9465 the name parameter being passed to find_pc_partial_function().
9466
9467 2012-02-14 Jan Kratochvil <jan.kratochvil@redhat.com>
9468
9469 * MAINTAINERS: Step down from being ia64 target maintainer.
9470
9471 2012-02-12 Jan Kratochvil <jan.kratochvil@redhat.com>
9472
9473 * ppc-linux-nat.c (fetch_register, store_register): Fix GCC aliasing
9474 compilation warning.
9475
9476 2012-02-12 Jan Kratochvil <jan.kratochvil@redhat.com>
9477
9478 Fix crash on loaded shlibs without loaded exec_bfd.
9479 * exec.c (exec_files_info): Do not crash on NULL EXEC_BFD.
9480 (set_section_command): Replace exec_bfd by p->bfd.
9481
9482 2012-02-10 Tom Tromey <tromey@redhat.com>
9483
9484 * linespec.c (decode_line_internal): Skip symtabs_from_filename
9485 when we have a C++ qualified name.
9486
9487 2012-02-10 Pedro Alves <palves@redhat.com>
9488
9489 * inferior.c (inferior_pid_to_str): New.
9490 (print_inferior, inferior_command): Use it.
9491
9492 2012-02-10 Pedro Alves <palves@redhat.com>
9493
9494 * configure.ac (HAVE_ELF test): Put the old CFLAGS at the end of
9495 the test CFLAGS.
9496 * configure: Regenerate.
9497
9498 2012-02-10 Jan Kratochvil <jan.kratochvil@redhat.com>
9499
9500 * linespec.c (decode_line_internal): Fix comment correctness.
9501
9502 2012-02-09 Valery Khromov <valery.khromov@gmail.com>
9503
9504 PR gdb/12953
9505 * Makefile.in (HFILES_NO_SRCDIR): Add amd64bsd-nat.h.
9506 * amd64bsd-nat.c: Add support for debug registers (adapted from
9507 i386bsd-nat.c).
9508 [HAVE_PT_GETDBREGS] (amd64bsd_dr_get, amd64bsd_dr_set)
9509 (amd64bsd_dr_set_control, amd64bsd_dr_set_addr)
9510 (amd64bsd_dr_get_addr, amd64bsd_dr_get_status)
9511 (amd64bsd_dr_get_control): New functions.
9512 * amd64bsd-nat.h: New file (adapted from i386bsd-nat.h).
9513 * amd64fbsd-nat.c: Include "amd64bsd-nat.h", "i386-nat.h".
9514 [HAVE_PT_GETDBREGS] (_initialize_amd64fbsd_nat): Add hardware
9515 watchpoints initialization.
9516 * config/i386/fbsd64.mh (NATDEPFILES): Add i386-nat.o.
9517
9518 2012-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
9519
9520 * gdb-gdb.py (StructMainTypePrettyPrinter) <struct_field_img>: Print
9521 flds_bnds.fields.
9522 (StructMainTypePrettyPrinter) <bounds_img>: Print flds_bnds.bounds.
9523
9524 2012-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
9525
9526 * breakpoint.c (bp_location_compare): Fix comment. Reindent the code.
9527
9528 2012-02-08 Joel Brobecker <brobecker@adacore.com>
9529
9530 * language.h (symbol_name_cmp_ftype): Renames
9531 symbol_name_match_p_ftype.
9532 (struct language_defn)[la_get_symbol_name_cmp]: Renames
9533 la_get_symbol_name_match_p.
9534 * ada-lang.c (ada_get_symbol_name_cmp): Renames
9535 ada_get_symbol_name_match_p. Update comment.
9536 (ada_language_defn)[la_get_symbol_name_cmp]: Update value.
9537 * linespec.c (struct symbol_matcher_data)[symbol_name_cmp]:
9538 Renames symbol_name_match_p. Update field type.
9539 (iterate_name_matcher, iterate_over_all_matching_symtabs): Adjust.
9540 * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
9541 opencl-lang.c, p-lang.c: Replace "la_get_symbol_name_match_p" by
9542 "la_get_symbol_name_cmp" in comments.
9543 * language.c: Likewise.
9544
9545 2012-02-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9546
9547 * amd64-sol2-tdep.c (amd64_sol2_gregset_reg_offset): Correct
9548 %eflags offset.
9549 * i386-sol2-nat.c (amd64_sol2_gregset64_reg_offs)
9550 (amd64_sol2_gregset32_reg_offs): Likewise.
9551
9552 2012-02-08 Joel Brobecker <brobecker@adacore.com>
9553
9554 * solib-darwin.c (darwin_bfd_open): Make sure that the filename
9555 of the returned BFD is allocated by GDB.
9556
9557 2012-02-07 Tom Tromey <tromey@redhat.com>
9558
9559 PR python/12027:
9560 * python/python-internal.h (frame_object_type): Declare.
9561 * python/py-symbol.c (sympy_needs_frame): New function.
9562 (sympy_value): New function.
9563 (symbol_object_getset): Add "needs_frame".
9564 (symbol_object_methods): Add "value".
9565 * python/py-frame.c (frame_object_type): No longer static.
9566
9567 2012-02-07 Tom Tromey <tromey@redhat.com>
9568
9569 PR python/13599:
9570 * python/py-symbol.c (sympy_line): New function.
9571 (symbol_object_getset): Add "line".
9572
9573 2012-02-07 Tom Tromey <tromey@redhat.com>
9574
9575 * charset.c (find_charset_names): Check 'in' against NULL.
9576
9577 2012-02-06 Doug Evans <dje@google.com>
9578
9579 * gdbtypes.h (struct main_type): Change type of name,tag_name,
9580 and fields.name members from char * to const char *. All uses updated.
9581 (struct cplus_struct_type): Change type of fn_fieldlists.name member
9582 from char * to const char *. All uses updated.
9583 (type_name_no_tag): Update.
9584 (lookup_unsigned_typename, lookup_signed_typename): Update.
9585 * gdbtypes.c (type_name_no_tag): Change result type
9586 from char * to const char *. All callers updated.
9587 (lookup_unsigned_typename, lookup_signed_typename): Change type of
9588 name parameter from char * to const char *.
9589 * symtab.h (struct cplus_specific): Change type of demangled_name
9590 member from char * to const char *. All uses updated.
9591 (struct general_symbol_info): Change type of name and
9592 mangled_lang.demangled_name members from char * to const char *.
9593 All uses updated.
9594 (symbol_get_demangled_name, symbol_natural_name): Update.
9595 (symbol_demangled_name, symbol_search_name): Update.
9596 * symtab.c (symbol_get_demangled_name): Change result type
9597 from char * to const char *. All callers updated.
9598 (symbol_natural_name, symbol_demangled_name): Ditto.
9599 (symbol_search_name): Ditto.
9600 (completion_list_add_name): Change type of symname,sym_text,
9601 text,word parameters from char * to const char *.
9602 (completion_list_objc_symbol): Change type of sym_text,
9603 text,word parameters from char * to const char *.
9604 * ada-lang.c (find_struct_field): Change type of name parameter
9605 from char * to const char *.
9606 (encoded_ordered_before): Similarly for N0,N1 parameters.
9607 (old_renaming_is_invisible): Similarly for function_name parameter.
9608 (ada_type_name): Change result type from char * to const char *.
9609 All callers updated.
9610 * ada-lang.h (ada_type_name): Update.
9611 * buildsym.c (hashname): Change type of name parameter
9612 from char * to const char *.
9613 * buildsym.h (hashname): Update.
9614 * dbxread.c (end_psymtab): Change type of include_list parameter
9615 from char ** to const char **.
9616 * dwarf2read.c (determine_prefix): Change result type
9617 from char * to const char *. All callers updated.
9618 * f-lang.c (find_common_for_function): Change type of name, funcname
9619 parameters from char * to const char *.
9620 * f-lang.c (find_common_for_function): Update.
9621 * f-valprint.c (list_all_visible_commons): Change type of funcname
9622 parameters from char * to const char *.
9623 * gdbarch.sh (static_transform_name): Change type of name parameter
9624 and result from char * to const char *.
9625 * gdbarch.c: Regenerate.
9626 * gdbarch.h: Regenerate.
9627 * i386-sol2-tdep.c (i386_sol2_static_transform_name): Change type
9628 of name parameter from char * to const char *.
9629 * jv-lang.c (java_primitive_type_from_name): Ditto.
9630 (java_demangled_signature_length): Similarly for signature parameter.
9631 (java_demangled_signature_copy): Ditto.
9632 (java_demangle_type_signature): Ditto.
9633 * jv-lang.h (java_primitive_type_from_name): Update.
9634 (java_demangle_type_signature): Update.
9635 * objc-lang.c (specialcmp): Change type of a,b parameters
9636 from char * to const char *.
9637 * p-lang.c (is_pascal_string_type): Change type of arrayname parameter
9638 from char * to const char *. All callers updated.
9639 * p-lang.h (is_pascal_string_type): Update.
9640 * solib-frv.c (find_canonical_descriptor_in_load_object): Change type
9641 of name parameter from char * to const char *.
9642 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Ditto.
9643 * utils.c (fprintf_symbol_filtered): Ditto.
9644 * defs.h (fprintf_symbol_filtered): Update.
9645 * sparc-tdep.h (sparc_sol2_static_transform_name): Update.
9646 * stabsread.h (end_psymtab): Update.
9647 * stack.c (find_frame_funname): Change type of funname parameter
9648 from char ** to const char **.
9649 * stack.h (find_frame_funname): Update.
9650 * typeprint.c (type_print): Change type of varstring parameter
9651 from char * to const char *.
9652 * value.h (type_print): Update.
9653 * xcoffread.c (xcoff_start_psymtab): Change type of filename parameter
9654 from char * to const char *. All callers updated.
9655 (xcoff_end_psymtab): Change type of include_list parameter
9656 from char ** to const char **. All callers updated.
9657 (swap_sym): Similarly for name parameter. All callers updated.
9658 * coffread.c (patch_type): Add (char*) cast to xfree parameter.
9659 Use xstrdup.
9660 (process_coff_symbol): Use xstrdup.
9661 * stabsread.c (stabs_method_name_from_physname): Renamed from
9662 update_method_name_from_physname. Change result type from void
9663 to char *. All callers updated.
9664 (read_member_functions): In has_destructor case, store name in objfile
9665 obstack instead of malloc space. In !has_stub case, fix mem leak.
9666
9667 2012-02-06 Luca Pizzamiglio <luca.pizzamiglio@gmail.com>
9668
9669 * configure: Rebuild.
9670 * configure.ac: Put -L../bfd and -L../libiberty at the front of
9671 LDFLAGS.
9672
9673 2012-02-03 Kevin Buettner <kevinb@redhat.com>
9674
9675 * configure.tgt (rl78-*-elf): New target.
9676 * rl78-tdep.c: New file.
9677
9678 2012-02-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9679
9680 * remote.c (remote_rcmd): Use getpkt_sane to detect timeout
9681 and continue the loop. Add QUIT statement.
9682
9683 2012-02-03 Tom Tromey <tromey@redhat.com>
9684
9685 PR gdb/13596:
9686 * solib.h (gdb_bfd_lookup_symbol_from_symtab): Rename from
9687 bfd_lookup_symbol_from_symtab.
9688 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
9689 gdb_bfd_lookup_symbol_from_symtab.
9690
9691 2012-02-03 Joel Brobecker <brobecker@adacore.com>
9692
9693 * mi/mi-cmd-stack.c (list_args_or_locals): For argument symbols,
9694 use SYMBOL_LINKAGE_NAME to find the corresponding non-argument
9695 symbol. Add assertion that sym2 is never NULL.
9696
9697 2012-02-02 Doug Evans <dje@google.com>
9698
9699 * blockframe.c (find_pc_partial_function_gnu_ifunc): Change type of
9700 "name" parameter to const char ** from char **. All callers updated.
9701 (find_pc_partial_function): Ditto.
9702 (cache_pc_function_name): Change type to const char * from char *.
9703 * symtab.h ((find_pc_partial_function_gnu_ifunc): Update.
9704 (find_pc_partial_function): Update.
9705 * alpha-tdep.h (struct gdbarch_tdep, member pc_in_sigtramp): Change
9706 type of "name" parameter to const char * from char *.
9707 All uses updated.
9708 * arch-utils.c (generic_in_solib_return_trampoline): Change
9709 type of "name" parameter to const char * from char *.
9710 * arch-utils.h (generic_in_solib_return_trampoline): Update.
9711 * frv-linux-tdep.c (frv_linux_pc_in_sigtramp): Change
9712 type of "name" parameter to const char * from char *.
9713 * gdbarch.sh (in_solib_return_trampoline): Ditto.
9714 * gdbarch.c: Regenerate.
9715 * gdbarch.h: Regenerate.
9716 * hppa-hpux-tdep.c (hppa_hpux_in_solib_return_trampoline): Update.
9717 * rs6000-tdep.c (rs6000_in_solib_return_trampoline): Update.
9718 * m32r-linux-tdep.c (m32r_linux_pc_in_sigtramp): Change
9719 type of "name" parameter to const char * from char *.
9720 * skip.c (skip_function_pc): Ditto.
9721 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Ditto.
9722 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp): Update.
9723 * sparc64fbsd-tdep.c (sparc64fbsd_pc_in_sigtramp): Ditto.
9724 * sparc64nbsd-tdep.c (sparc64nbsd_pc_in_sigtramp): Ditto.
9725 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Ditto.
9726 * sparcnbsd-tdep.c (sparc32nbsd_pc_in_sigtramp): Ditto.
9727 * sparcobsd-tdep.c (sparc32obsd_pc_in_sigtramp): Ditto.
9728 * nbsd-tdep.c (nbsd_pc_in_sigtramp): Similary for "func_name".
9729 * nbsd-tdep.h (nbsd_pc_in_sigtramp): Update.
9730
9731 2012-02-02 Pedro Alves <palves@redhat.com>
9732
9733 * remote.c (remote_get_min_fast_tracepoint_insn_len): Return 0 if
9734 the current inferior has no execution. Make sure the current
9735 remote process matches gdb's current inferior.
9736
9737 2012-02-02 Tom Tromey <tromey@redhat.com>
9738
9739 PR gdb/13405:
9740 * tui/tui-win.c (parse_scrolling_args): Don't write to possibly
9741 read-only memory.
9742
9743 2012-02-02 Tom Tromey <tromey@redhat.com>
9744
9745 PR gdb/9307:
9746 * symtab.c (lookup_language_this): Set block_found.
9747
9748 2012-02-01 Tom Tromey <tromey@redhat.com>
9749
9750 PR gdb/13431:
9751 * jit.c (struct jit_inferior_data): Rewrite.
9752 (struct jit_objfile_data): New.
9753 (get_jit_objfile_data): New function.
9754 (add_objfile_entry): Update.
9755 (jit_read_descriptor): Return int. Replace descriptor_addr
9756 argument with inf_data. Update. Don't call error.
9757 (jit_breakpoint_re_set_internal): Reorder logic. Update. Look up
9758 descriptor here.
9759 (jit_inferior_init): Don't look up descriptor. Don't call error.
9760 (jit_reset_inferior_data_and_breakpoints)
9761 (jit_inferior_created_observer): Remove.
9762 (jit_inferior_exit_hook): Update.
9763 (jit_executable_changed_observer): Remove.
9764 (jit_event_handler): Update.
9765 (free_objfile_data): Reset inferior data if needed.
9766 (_initialize_jit): Update.
9767
9768 2012-02-01 Tom Tromey <tromey@redhat.com>
9769
9770 * jit.c (bfd_open_from_target_memory): Move higher in file.
9771
9772 2012-02-01 Tristan Gingold <gingold@adacore.com>
9773
9774 * libunwind-frame.c (libunwind_load): Display message if dlopen
9775 failed.
9776
9777 2012-02-01 Gary Benson <gbenson@redhat.com>
9778
9779 * symtab.h (symbol_found_callback_ftype): New typedef.
9780 (iterate_over_symbols): Use the above.
9781 * symtab.c (iterate_over_symbols): Likewise.
9782 * language.h (language_defn->la_iterate_over_symbols): Likewise.
9783 * ada-lang.c (ada_iterate_over_symbols): Likewise.
9784 * linespec.c (iterate_over_all_matching_symtabs): Likewise.
9785 (iterate_name_matcher): Document return values.
9786 (collect_one_symbol): Likewise.
9787 (collect_function_symbols): Likewise.
9788 (collect_symbols): Likewise.
9789
9790 2012-02-01 Tom Tromey <tromey@redhat.com>
9791
9792 * ada-lang.c (resolve_subexp): Update.
9793 (ada_lookup_symbol_list): Add 'full_search' argument.
9794 (ada_iterate_over_symbols): Pass 0 as full_search argument to
9795 ada_lookup_symbol_list.
9796 (ada_lookup_encoded_symbol): Update.
9797 (get_var_value): Update.
9798 * ada-exp.y (block_lookup): Update.
9799 (write_var_or_type): Update.
9800 (write_name_assoc): Update.
9801 * ada-lang.h (ada_lookup_symbol_list): Update.
9802
9803 2012-01-31 Tom Tromey <tromey@redhat.com>
9804
9805 * language.h (struct language_defn) <la_iterate_over_symbols>: Fix
9806 comment.
9807
9808 2012-01-31 Doug Evans <dje@google.com>
9809
9810 * symtab.h: Remove outdated comment.
9811 (SYMBOL_MATCHES_NATURAL_NAME): Delete.
9812
9813 2012-02-01 Josh Matthews <josh@joshmatthews.net> (tiny change)
9814
9815 Fix build error in Darwin port.
9816 * i386-darwin-nat.c: Include i386-nat.h.
9817
9818 2012-01-30 Tom Tromey <tromey@redhat.com>
9819
9820 PR breakpoints/13568:
9821 * dwarf2read.c (dwarf_decode_macro_bytes): Add 'include_hash'
9822 argument. Check for recursive includes.
9823 (dwarf_decode_macros): Create an include hash.
9824
9825 2012-01-30 Michael Eager <eager@eagercon.com>
9826
9827 * configure.tgt (powerpc-*-linux*): Add glibc-tdep.o.
9828 * ppc-linux-tdep.c: Include glibc-tdep.h.
9829 (powerpc32_plt_stub, powerpc32_plt_stub_so): Add PLT stub templates.
9830 (powerpc_linux_in_plt_stub): New function.
9831 (powerpc_linux_in_dynsym_resolve_code): New function.
9832 (ppc_skip_trampoline_code): New function.
9833 (ppc_linux_init_abi): Use PPC specific functions rather than generic.
9834 Use glibc_skip_solib_resolver.
9835
9836 2012-01-28 Jan Kratochvil <jan.kratochvil@redhat.com>
9837
9838 Code cleanup: Make 1440 bytes of data segment read-only.
9839 * arch-utils.c (endian_enum): Make it const char *const [].
9840 * arm-tdep.c (fp_model_strings, arm_abi_strings, arm_mode_strings):
9841 Likewise.
9842 * breakpoint.c (always_inserted_enums): Likewise.
9843 * cli/cli-cmds.c (script_ext_enums): Likewise.
9844 * cli/cli-decode.c (add_setshow_enum_cmd, complete_on_enum): Make the
9845 enumlist parameter const char *const *.
9846 * cli/cli-decode.h (struct cmd_list_element): Make the enums field
9847 const char *const *.
9848 * command.h (complete_on_enum, add_setshow_enum_cmd): Make the enumlist
9849 parameter const char *const *.
9850 * cris-tdep.c (cris_modes): Make it const char *const [].
9851 * filesystem.c (target_file_system_kinds): Likewise.
9852 * i386-tdep.c (valid_flavors, valid_conventions): Likewise.
9853 * infrun.c (follow_fork_mode_kind_names, follow_exec_mode_names)
9854 (can_use_displaced_stepping_enum, scheduler_enums)
9855 (exec_direction_names): Likewise.
9856 * language.c (_initialize_language): Make the type_or_range_names and
9857 case_sensitive_names variables const char *const [].
9858 * mips-tdep.c (mips_abi_strings): Make it const char *const [].
9859 * python/python.c (python_excp_enums): Likewise.
9860 * remote.c (interrupt_sequence_modes): Likewise.
9861 * rs6000-tdep.c (powerpc_vector_strings): Likewise.
9862 * serial.c (logbase_enums): Likewise.
9863 * sh-tdep.c (sh_cc_enum): Likewise.
9864 * stack.c (print_frame_arguments_choices, print_entry_values_choices):
9865 Likewise.
9866 * symtab.c (multiple_symbols_modes): Likewise.
9867 * tui/tui-win.c (tui_border_kind_enums, tui_border_mode_enums):
9868 Likewise.
9869 * utils.c (internal_problem_modes): Likewise.
9870
9871 2012-01-27 Jan Kratochvil <jan.kratochvil@redhat.com>
9872
9873 Fix the 2012-01-26 regression by la_get_symbol_name_match_p.
9874 * linespec.c (iterate_name_matcher): Negate the SYMBOL_NAME_MATCH_P
9875 result.
9876
9877 2012-01-27 Doug Evans <dje@google.com>
9878
9879 * configure.ac (with_python): Fix absolute path handling for win32.
9880 * configure: Regenerate.
9881
9882 2012-01-26 Doug Evans <dje@google.com>
9883
9884 * symtab.c: Whitespace cleanup, no code changes.
9885
9886 * symtab.c (lookup_symbol_in_language): Improve comment.
9887 (lookup_symbol_aux): Fix comment.
9888
9889 * psymtab.c (add_psymbol_to_list): Result is now "void".
9890 * psympriv.h (add_psymbol_to_list): Update.
9891
9892 * dwarf2read.c (add_partial_symbol): Delete local psym, unused.
9893
9894 2012-01-26 Jan Kratochvil <jan.kratochvil@redhat.com>
9895
9896 Do not open script filenames twice.
9897 * cli/cli-cmds.c (source_script_from_stream): Pass to
9898 source_python_script also STREAM.
9899 * python/py-auto-load.c (source_section_scripts): Pass to
9900 source_python_script_for_objfile also STREAM.
9901 (auto_load_objfile_script): Pass to source_python_script_for_objfile
9902 also INPUT.
9903 * python/python-internal.h (source_python_script_for_objfile): New
9904 parameter file, rename parameter file to filename.
9905 * python/python.c (python_run_simple_file): Call PyRun_SimpleFile
9906 instead if !_WIN32. Update the function comment.
9907 (source_python_script, source_python_script_for_objfile)
9908 (source_python_script): New parameter file, rename parameter file to
9909 filename. Pass FILENAME to python_run_simple_file.
9910 * python/python.h (source_python_script): New parameter file, rename
9911 parameter file to filename.
9912
9913 2012-01-26 Pedro Alves <palves@redhat.com>
9914
9915 * corelow.c (core_has_fake_pid): Delete.
9916 (core_close): Delete references to `core_has_fake_pid'.
9917 (add_to_thread_list): Adjust to mark the inferior's pid as fake.
9918 (core_open): Delete references to `core_has_fake_pid'.
9919 (core_pid_to_str): Adjust to check inferior->fake_pid_p instead of
9920 the removed global.
9921
9922 2012-01-26 Joel Brobecker <brobecker@adacore.com>
9923
9924 * symfile.h (struct quick_symbol_functions) [expand_symtabs_matching]:
9925 Remove language parameter from name_matcher. Adjust the comment.
9926 * symtab.c (search_symbols_name_matches, expand_partial_symbol_name):
9927 Remove language parameter.
9928 * ada-lang.c (ada_expand_partial_symbol_name): Likewise.
9929 * linespec.c (iterate_name_matcher): Likewise.
9930 * dwarf2read.c (dw2_expand_symtabs_matching): Adjust type of
9931 name_matcher. Adjust call accordingly.
9932 * psymtab.c (expand_symtabs_matching_via_partial): Likewise.
9933 (maintenance_check_symtabs): Adjust type of parameter "fun".
9934 * psymtab.h (maintenance_check_symtabs): Likewise.
9935
9936 2012-01-26 Joel Brobecker <brobecker@adacore.com>
9937
9938 * language.h (symbol_name_match_p_ftype): New typedef.
9939 (struct language_defn): Replace field la_symbol_name_compare
9940 by la_get_symbol_name_match_p.
9941 * ada-lang.c (ada_get_symbol_name_match_p): New function.
9942 (ada_language_defn): Use it.
9943 * linespec.c (struct symbol_matcher_data): New type.
9944 (iterate_name_matcher): Rewrite.
9945 (iterate_over_all_matching_symtabs): Pass a pointer to
9946 a symbol_matcher_data struct to expand_symtabs_matching
9947 instead of just the lookup name.
9948 * c-lang.c, d-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
9949 opencl-lang.c, p-lang.c, language.c: Delete field
9950 la_symbol_name_compare, and replace by NULL for new field
9951 la_get_symbol_name_match_p.
9952 * symfile.h (struct quick_symbol_functions): Update comment.
9953
9954 2012-01-25 Tom Tromey <tromey@redhat.com>
9955
9956 * breakpoint.c (bpstat_stop_status): Check 'breakpoint_at' before
9957 dereferencing.
9958
9959 2012-01-24 Tom Tromey <tromey@redhat.com>
9960
9961 PR symtab/12406:
9962 * solib.c (update_solib_list): Update the program space's
9963 added_solibs and deleted_solibs fields.
9964 * progspace.h (struct program_space) <added_solibs,
9965 deleted_solibs>: New fields.
9966 (clear_program_space_solib_cache): Declare.
9967 * progspace.c (release_program_space): Call
9968 clear_program_space_solib_cache.
9969 (clear_program_space_solib_cache): New function.
9970 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>: Call
9971 bpstat_stop_status. Use handle_solib_event.
9972 * breakpoint.c: Include gdb_regex.h.
9973 (print_solib_event): New function.
9974 (bpstat_print): Use print_solib_event.
9975 (bpstat_stop_status): Add special case for bp_shlib_event.
9976 (handle_solib_event): New function.
9977 (bpstat_what): Use handle_solib_event.
9978 (struct solib_catchpoint): New.
9979 (dtor_catch_solib, insert_catch_solib, remove_catch_solib)
9980 (breakpoint_hit_catch_solib, check_status_catch_solib)
9981 (print_it_catch_solib, print_one_catch_solib)
9982 (print_mention_catch_solib, print_recreate_catch_solib): New
9983 functions.
9984 (catch_solib_breakpoint_ops): New global.
9985 (catch_load_or_unload, catch_load_command_1)
9986 (catch_unload_command_1): New functions.
9987 (internal_bkpt_check_status): Add special case for
9988 bp_shlib_event.
9989 (internal_bkpt_print_it): Use print_solib_event.
9990 (initialize_breakpoint_ops): Initialize
9991 catch_solib_breakpoint_ops.
9992 (_initialize_breakpoint): Register "catch load" and "catch
9993 unload".
9994 * breakpoint.h (handle_solib_event): Declare.
9995 * NEWS: Add entry for "catch load" and "catch unload".
9996
9997 2012-01-24 Tom Tromey <tromey@redhat.com>
9998
9999 * ada-lang.c: Include gdb_vecs.h.
10000 * charset.c: Include gdb_vecs.h.
10001 * tracepoint.h: Include gdb_vecs.h.
10002 * gdb_vecs.h: New file.
10003
10004 2012-01-24 Pedro Alves <pedro@codesourcery.com>
10005
10006 * breakpoint.c (breakpoint_hit_catch_fork)
10007 (breakpoint_hit_catch_vfork, breakpoint_hit_catch_syscall)
10008 (breakpoint_hit_catch_exec): Make use of the `ws' argument.
10009 * infrun.c (inferior_has_forked, inferior_has_vforked)
10010 (inferior_has_execd, inferior_has_called_syscall): Delete.
10011 (handle_syscall_event): Get syscall_number from the execution
10012 control state's wait status.
10013 (wait_for_inferior): Don't clear syscall_number.
10014
10015 2012-01-24 Pedro Alves <palves@redhat.com>
10016
10017 * breakpoint.c (bpstat_check_location, bpstat_stop_status,
10018 pc_at_non_inline_function): Add `ws' parameter, and pass it down.
10019 (breakpoint_hit_catch_fork, breakpoint_hit_catch_vfork)
10020 (breakpoint_hit_catch_syscall, breakpoint_hit_catch_exec): Add
10021 `ws' parameter.
10022 (breakpoint_hit_ranged_breakpoint): Add `ws' parameter. Return
10023 false for events other than TARGET_SIGNAL_TRAP.
10024 (breakpoint_hit_watchpoint, base_breakpoint_breakpoint_hit):
10025 Add `ws' parameter.
10026 (bkpt_breakpoint_hit): Add `ws' parameter. Return false for
10027 events other than TARGET_SIGNAL_TRAP.
10028 (tracepoint_breakpoint_hit): Add `ws' parameter.
10029 * breakpoint.h (struct breakpoint_ops) <breakpoint_hit>: Add `ws'
10030 parameter.
10031 (bpstat_stop_status): Same.
10032 (pc_at_non_inline_function): Same.
10033 * infrun.c (handle_syscall_event, handle_inferior_event): Adjust
10034 to pass the current event's waitstatus to bpstat_stop_status
10035 and pc_at_non_inline_function.
10036
10037 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
10038
10039 Code cleanup.
10040 * cli/cli-cmds.c (source_script_from_stream): Never fclose STREAM.
10041 Update the function comment for it.
10042 (source_script_with_search): Call make_cleanup_fclose for STREAM.
10043 * cli/cli-script.c (script_from_file): Do not call make_cleanup_fclose
10044 for STREAM.
10045
10046 2012-01-24 Pedro Alves <palves@redhat.com>
10047
10048 * breakpoint.c (bpstat_stop_status): Moving clearing print_it
10049 outside `bs->stop' block.
10050 (bpstat_what): Rework bp_shlib_event handling.
10051 (internal_bkpt_check_status): If the breakpoint is a
10052 bp_shlib_event, then set bs->stop and bs->print if
10053 stop_on_solib_events is set.
10054
10055 2012-01-24 Gary Benson <gbenson@redhat.com>
10056
10057 Delete #if 0'd out code.
10058 * stack.c (print_frame_label_vars): Remove.
10059 (catch_info): Likewise.
10060 (_initialize_stack): Remove "info catch" command.
10061 * NEWS: Mention the above.
10062
10063 2012-01-24 Pedro Alves <palves@redhat.com>
10064
10065 * remote.c (remote_add_inferior): New `fake_pid_p' parameter. Use
10066 it.
10067 (remote_notice_new_inferior): If the remote end doesn't support
10068 the multiprocess extensions, then the PID is fake.
10069 (add_current_inferior_and_thread): New.
10070 (remote_start_remote): Use it.
10071 (extended_remote_attach_1): Adjust.
10072 (extended_remote_create_inferior_1): Use
10073 add_current_inferior_and_thread.
10074
10075 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
10076
10077 Fix watchpoints to be specific for each inferior.
10078 * breakpoint.c (watchpoint_in_thread_scope): Verify also
10079 current_program_space.
10080 * i386-nat.c (i386_inferior_data_cleanup): New.
10081 (i386_inferior_data_get): Replace variable inf_data_local by an
10082 inferior_data call.
10083 (i386_use_watchpoints): Initialize i386_inferior_data.
10084 * linux-nat.c (linux_nat_iterate_watchpoint_lwps): Use INFERIOR_PTID
10085 specific iterate_over_lwps.
10086
10087 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
10088
10089 Fix watchpoints across inferior fork.
10090 * amd64-linux-nat.c (update_debug_registers_callback): Update the
10091 comment for linux_nat_iterate_watchpoint_lwps.
10092 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
10093 linux_nat_iterate_watchpoint_lwps.
10094 (amd64_linux_prepare_to_resume): New comment on Linux kernel.
10095 * i386-linux-nat.c (update_debug_registers_callback): Update the
10096 comment for linux_nat_iterate_watchpoint_lwps.
10097 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
10098 linux_nat_iterate_watchpoint_lwps.
10099 (i386_linux_prepare_to_resume): New comment on Linux kernel.
10100 * i386-nat.c: Include inferior.h.
10101 (dr_mirror): Remove.
10102 (i386_inferior_data, struct i386_inferior_data)
10103 (i386_inferior_data_get): New.
10104 (i386_debug_reg_state): Use i386_inferior_data_get.
10105 (i386_cleanup_dregs, i386_update_inferior_debug_regs)
10106 (i386_insert_watchpoint, i386_remove_watchpoint)
10107 (i386_stopped_data_address, i386_insert_hw_breakpoint)
10108 (i386_remove_hw_breakpoint): New variable state, use
10109 i386_debug_reg_state instead of DR_MIRROR.
10110 * linux-nat.c (delete_lwp): New declaration.
10111 (num_lwps): Move here from downwards.
10112 (delete_lwp_cleanup): New.
10113 (linux_child_follow_fork): Create new child_lp, call
10114 linux_nat_new_thread and linux_nat_prepare_to_resume before calling
10115 PTRACE_DETACH.
10116 (num_lwps): Move upwards.
10117 (linux_nat_iterate_watchpoint_lwps): New.
10118 * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): New.
10119 (linux_nat_iterate_watchpoint_lwps_ftype): New declaration.
10120
10121 2012-01-24 Joel Brobecker <brobecker@adacore.com>
10122
10123 GDB 7.4 released.
10124
10125 2012-01-23 Pedro Alves <palves@redhat.com>
10126
10127 * top.c (caution): Rename to ...
10128 (confirm): ... this.
10129 (show_caution): Rename to ...
10130 (show_confirm): ... this.
10131 (quit_cover): Adjust.
10132 (init_main): Adjust.
10133 * top.h (caution): Rename to ...
10134 (confirm): ... this.
10135 * utils.c (internal_vproblem, defaulted_query): Adjust.
10136
10137 2012-01-23 Pedro Alves <palves@redhat.com>
10138
10139 * top.c (caution): Update comment.
10140 (execute_command): Don't consider the current value of `caution'.
10141
10142 2012-01-23 Jan Kratochvil <jan.kratochvil@redhat.com>
10143
10144 * cli/cli-cmds.c (find_and_open_script): Handle failure of fdopen.
10145
10146 2012-01-23 Ulrich Weigand <ulrich.weigand@linaro.org>
10147
10148 * inf-child.c: Include "gdb_stat.h" instead of <sys/stat.h>.
10149 * linux-tdep.c (linux_info_proc): Avoid ARI coding style warning.
10150 * target.c (target_fileio_pwrite): Remove buffer address from
10151 debug output.
10152 (target_fileio_pread): Likewise.
10153
10154 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
10155
10156 * NEWS: Document remote "info proc" and "generate-core-file".
10157
10158 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
10159
10160 * gdbarch.sh (find_memory_regions): New callback.
10161 * gdbarch.c, gdbarch.h: Regenerate.
10162
10163 * gcore.c (gcore_memory_sections): Try gdbarch find_memory_regions
10164 callback before falling back to target method.
10165
10166 * linux-nat.c (read_mapping, linux_nat_find_memory_regions): Remove.
10167 (linux_target_install_ops): No longer install it.
10168
10169 * linux-tdep.c (linux_find_memory_regions): New function.
10170 (linux_init_abi): Install it.
10171
10172 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
10173
10174 * gdbarch.sh (make_corefile_notes): New architecture callback.
10175 * gdbarch.c: Regenerate.
10176 * gdbarch.h: Likewise.
10177
10178 * gcore.c (write_gcore_file): Try gdbarch_make_corefile_notes
10179 before target_make_corefile_notes. If NULL is returned, the
10180 target does not support core file generation.
10181
10182 * linux-nat.c: Include "linux-tdep.h".
10183 (find_signalled_thread, find_stop_signal): Remove.
10184 (linux_nat_do_thread_registers): Likewise.
10185 (struct linux_nat_corefile_thread_data): Likewise.
10186 (linux_nat_corefile_thread_callback): Likewise.
10187 (iterate_over_spus): Likewise.
10188 (struct linux_spu_corefile_data): Likewise.
10189 (linux_spu_corefile_callback): Likewise.
10190 (linux_spu_make_corefile_notes): Likewise.
10191 (linux_nat_collect_thread_registers): New function.
10192 (linux_nat_make_corefile_notes): Replace contents by call to
10193 linux_make_corefile_notes passing linux_nat_collect_thread_registers
10194 as native-only callback.
10195
10196 * linux-tdep.h: Include "bfd.h".
10197 (struct regcache): Add forward declaration.
10198 (linux_collect_thread_registers_ftype): New typedef.
10199 (linux_make_corefile_notes): Add prototype.
10200 * linux-tdep.c: Include "gdbthread.h", "gdbcore.h", "regcache.h",
10201 "regset.h", and "elf-bfd.h".
10202 (find_signalled_thread, find_stop_signal): New functions.
10203 (linux_spu_make_corefile_notes): Likewise.
10204 (linux_collect_thread_registers): Likewise.
10205 (struct linux_corefile_thread_data): New data structure.
10206 (linux_corefile_thread_callback): New funcion.
10207 (linux_make_corefile_notes): Likewise.
10208 (linux_make_corefile_notes_1): Likewise.
10209 (linux_init_abi): Install it.
10210
10211 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
10212
10213 * gdbarch.sh (info_proc): New callback.
10214 * gdbarch.c, gdbarch.h: Regenerate.
10215
10216 * infcmd.c (info_proc_cmd_1): Try gdbarch info_proc callback
10217 before falling back to the target info_proc callback.
10218
10219 * linux-nat.c: Do not include "cli/cli-utils.h".
10220 (linux_nat_info_proc): Remove.
10221 (linux_target_install_ops): No longer install it.
10222
10223 * linux-tdep.c: Include "cli/cli-utils.h" and <ctype.h>.
10224 (read_mapping): New function.
10225 (linux_info_proc): Likewise.
10226 (linux_init_abi): Install it.
10227
10228 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
10229
10230 * defs.h (enum info_proc_what): Moved here from linux-nat.c
10231 * infcmd.c: (info_proc_cmd_1): New function.
10232 (info_proc_cmd): New function, moved here from equivalent routine
10233 orignally in linux-nat.c.
10234 (info_proc_cmd_mappings): Likewise.
10235 (info_proc_cmd_stat): Likewise.
10236 (info_proc_cmd_status): Likewise.
10237 (info_proc_cmd_cwd): Likewise.
10238 (info_proc_cmd_cmdline): Likewise.
10239 (info_proc_cmd_exe): Likewise.
10240 (info_proc_cmd_all): Likewise.
10241 (_initialize_infcmd): Install "info proc" command and subcommands.
10242
10243 * target.h (struct target_ops): Add to_info_proc.
10244 (target_info_proc): Add prototype.
10245 * target.c (target_info_proc): New function.
10246
10247 * procfs.c (procfs_info_proc): Add prototype.
10248 (info_proc_cmd): Rename into ...
10249 (procfs_info_proc): ... this. Update argument types as appropriate
10250 for a to_info_proc implementation. Handle "what" argument.
10251 (procfs_target): Install procfs_info_proc.
10252 (_initialize_procfs): No longer install "info proc" command.
10253
10254 * linux-nat.c: (enum info_proc_what): Remove.
10255 (linux_nat_info_proc_cmd_1): Rename into ...
10256 (linux_nat_info_proc): ... this. Update argument types as appropriate
10257 for a to_info_proc implementation.
10258 (linux_nat_info_proc_cmd): Remove.
10259 (linux_nat_info_proc_cmd_mappings): Likewise.
10260 (linux_nat_info_proc_cmd_stat): Likewise.
10261 (linux_nat_info_proc_cmd_status): Likewise.
10262 (linux_nat_info_proc_cmd_cwd): Likewise.
10263 (linux_nat_info_proc_cmd_cmdline): Likewise.
10264 (linux_nat_info_proc_cmd_exe): Likewise.
10265 (linux_nat_info_proc_cmd_all): Likewise.
10266 (linux_target_install_ops): Install linux_nat_info_proc.
10267 (_initialize_linux_nat): No longer install "info proc" command
10268 and subcommands.
10269
10270 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
10271
10272 * configure.ac [AC_CHECK_FUNCS]: Check for readlink.
10273 * config.in, configure: Regenerate.
10274
10275 * target.h (struct target_ops): Add to_fileio_readlink.
10276 (target_fileio_readlink): Add prototype.
10277 * target.c (target_fileio_readlink): New function.
10278
10279 * inf-child.c: Conditionally include <sys/param.h>.
10280 (inf_child_fileio_readlink): New function.
10281 (inf_child_target): Install it.
10282
10283 * remote.c (PACKET_vFile_readlink): New enum value.
10284 (remote_hostio_readlink): New function.
10285 (init_remote_ops): Install it.
10286 (_initialize_remote): Handle vFile:readlink packet type.
10287
10288 2012-01-20 Pedro Alves <palves@redhat.com>
10289 Ulrich Weigand <ulrich.weigand@linaro.org>
10290
10291 * configure.ac [AC_CHECK_FUNCS]: Check for pread and pwrite.
10292 * config.in, configure: Regenerate.
10293
10294 * target.h (struct target_ops): Add to_fileio_open, to_fileio_pwrite,
10295 to_fileio_pread, to_fileio_close, to_fileio_unlink.
10296 (target_fileio_open): Add prototype.
10297 (target_fileio_pwrite): Likewise.
10298 (target_fileio_pread): Likewise.
10299 (target_fileio_close): Likewise.
10300 (target_fileio_unlink): Likewise.
10301 (target_fileio_read_alloc): Likewise.
10302 (target_fileio_read_stralloc): Likewise.
10303
10304 * target.c: Include "gdb/fileio.h".
10305 (target_read_stralloc): Accept trailing, but not embedded NUL bytes.
10306 (default_fileio_target): New function.
10307 (target_fileio_open): Likewise.
10308 (target_fileio_pwrite): Likewise.
10309 (target_fileio_pread): Likewise.
10310 (target_fileio_close): Likewise.
10311 (target_fileio_unlink): Likewise.
10312 (target_fileio_close_cleanup): Likewise.
10313 (target_fileio_read_alloc_1): Likewise.
10314 (target_fileio_read_alloc): Likewise.
10315 (target_fileio_read_stralloc): Likewise.
10316
10317 * inf-child.c: Include "gdb/fileio.h", <sys/types.h>, <sys/stat.h>,
10318 <fcntl.h>, and <unistd.h>.
10319 (inf_child_fileio_open_flags_to_host): New function.
10320 (inf_child_errno_to_fileio_error): Likewise.
10321 (inf_child_fileio_open): Likewise.
10322 (inf_child_fileio_pwrite): Likewise.
10323 (inf_child_fileio_pread): Likewise.
10324 (inf_child_fileio_close): Likewise.
10325 (inf_child_fileio_unlink): Likewise.
10326 (inf_child_target): Install to_fileio routines.
10327
10328 * remote.c (init_remote_ops): Install to_fileio routines.
10329
10330 2012-01-20 Pedro Alves <palves@redhat.com>
10331 Ulrich Weigand <ulrich.weigand@linaro.org>
10332
10333 * remote.c (remote_multi_process_p): Only check for multi-process
10334 protocol feature, do not check for extended protocol.
10335 (remote_supports_multi_process): Check for extended protocol here.
10336 (set_general_process): Likewise.
10337 (extended_remote_kill): Likewise.
10338 (remote_pid_to_str): Likewise.
10339 (remote_query_supported): Always query multiprocess mode.
10340
10341 2012-01-20 Pedro Alves <palves@redhat.com>
10342 Ulrich Weigand <ulrich.weigand@linaro.org>
10343
10344 * inferior.h (struct inferior): Add fake_pid_p.
10345 * inferior.c (exit_inferior_1): Clear fake_pid_p.
10346 * remote.c (remote_start_remote): Set fake_pid_p if we have to use
10347 magic_null_ptid since the remote side doesn't provide a real PID.
10348
10349 2012-01-19 Tom Tromey <tromey@redhat.com>
10350
10351 * NEWS: Combine the two Python sections.
10352
10353 2012-01-19 Jan Kratochvil <jan.kratochvil@redhat.com>
10354
10355 * target.h (target_close): Update comment on the target's unpush state.
10356
10357 2012-01-19 Pedro Alves <palves@redhat.com>
10358
10359 * linux-nat.c (linux_nat_close): Call linux_nat_is_async_p and
10360 linux_nat_async directly instead of going through the target
10361 vector.
10362 * target.c (unpush_target): Close target after unpushing it, not
10363 before.
10364
10365 2012-01-19 Gary Benson <gbenson@redhat.com>
10366
10367 * mdebugread.c (sort_blocks): Replace integer constants with ones
10368 derived from FIRST_LOCAL_BLOCK.
10369
10370 2012-01-18 Paul Pluzhnikov <ppluzhnikov@google.com>
10371 Jan Kratochvil <jan.kratochvil@redhat.com>
10372
10373 PR gdb/9538
10374 * symfile.c (find_separate_debug_file): New function.
10375 (terminate_after_last_dir_separator): Likewise.
10376 (find_separate_debug_file_by_debuglink): Also try realpath.
10377 * configure.ac (AC_CHECK_FUNCS): Add lstat.
10378 * configure: Regenerate.
10379 * config.in: Regenerate.
10380
10381 2012-01-18 Doug Evans <dje@google.com>
10382
10383 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): Delete.
10384 (main.o): Remove rule.
10385 * configure.ac (BINDIR): Define with AC_DEFINE_DIR.
10386 (--with-sysroot): Rewrite.
10387 * configure: Regenerate.
10388 * config.in: Regenerate.
10389
10390 2012-01-18 Sergio Durigan Junior <sergiodj@redhat.com>
10391
10392 * parse.c (initialize_expout): New function.
10393 (reallocate_expout): Likewise.
10394 (parse_exp_in_context): Use `initialize_expout' and
10395 `reallocate_expout' when appropriate.
10396
10397 2012-01-18 Pedro Alves <palves@redhat.com>
10398
10399 * record.c (struct record_breakpoint, record_breakpoint_p)
10400 (record_breakpoints): New.
10401 (record_insert_breakpoint, record_remove_breakpoint): Manage
10402 record breakpoints list. Only remove breakpoints from the
10403 inferior if they had been inserted there in the first place.
10404
10405 2012-01-17 Doug Evans <dje@google.com>
10406
10407 * linespec.c (decode_line_internal): Don't call symtabs_from_filename
10408 if we know we don't have a file name to look for.
10409
10410 2012-01-17 Pedro Alves <palves@redhat.com>
10411
10412 * dwarf2-frame.c (dwarf2_frame_cfa): Throw NOT_AVAILABLE_ERROR, if
10413 the frame's stop reason is UNWIND_UNAVAILABLE.
10414
10415 2012-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
10416
10417 Fix compilation error.
10418 * m2-exp.y (yyerror): Use ANSI C prototype.
10419
10420 2012-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
10421
10422 * f-exp.y (parse_number): Convert prototype from K&R to ANSI C.
10423 (growbuf_by_size): Likewise.
10424 (yyerror): Likewise.
10425 * m2-exp.y (make_qualname): Remove function (was #if 0'ed).
10426 (modblock): Remove variable (was #if 0'ed).
10427 (parse_number): Convert prototype from K&R to ANSI C.
10428 (yyerror): Likewise.
10429 * objc-exp.y (parse_number): Likewise.
10430 (yyerror): Likewise.
10431 (yylex): Remove #if 0'ed code.
10432 * p-exp.y (uptok): Convert prototype from K&R to ANSI C.
10433 (yyerror): Likewise.
10434
10435 2012-01-16 Tom Tromey <tromey@redhat.com>
10436
10437 * NEWS: Add item.
10438 * symtab.h (compare_filenames_for_search): Declare.
10439 * symtab.c (compare_filenames_for_search): New function.
10440 (iterate_over_some_symtabs): Use it.
10441 * symfile.h (struct quick_symbol_functions)
10442 <map_symtabs_matching_filename>: Change spec.
10443 * psymtab.c (partial_map_symtabs_matching_filename): Use
10444 compare_filenames_for_search. Update for new spec.
10445 * dwarf2read.c (dw2_map_symtabs_matching_filename): Use
10446 compare_filenames_for_search. Update for new spec.
10447 * breakpoint.c (clear_command): Use compare_filenames_for_search.
10448
10449 2012-01-16 Tom Tromey <tromey@redhat.com>
10450
10451 PR python/13281:
10452 * gdbtypes.h (TYPE_FLAG_ENUM): New macro.
10453 (struct main_type) <flag_flag_enum>: New field.
10454 * dwarf2read.c (process_enumeration_scope): Detect "flag" enums.
10455 * NEWS: Add entries.
10456 * c-valprint.c (c_val_print) <TYPE_CODE_ENUM>: Handle "flag"
10457 enums.
10458 * python/lib/gdb/printing.py (_EnumInstance): New class.
10459 (FlagEnumerationPrinter): Likewise.
10460
10461 2012-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
10462
10463 * breakpoint.c (create_sals_from_address_default): New function.
10464 (create_breakpoints_sal_default): Likewise.
10465 (decode_linespec_default): Likewise.
10466 (is_marker_spec): Removed.
10467 (strace_marker_p): New function.
10468 (init_breakpoint_sal): Using `strace_marker_p' instead of
10469 `is_marker_spec'.
10470 (create_breakpoint): Call method `create_sals_from_address' from
10471 breakpoint_ops, replacing code that created SALs conditionally
10472 on the type of the breakpoint. Call method `create_breakpoints_sal',
10473 replacing code that created breakpoints conditionally on the type
10474 wanted.
10475 (base_breakpoint_create_sals_from_address): New function.
10476 (base_breakpoint_create_breakpoints_sal): Likewise.
10477 (base_breakpoint_decode_linespec): Likewise.
10478 (base_breakpoint_ops): Add methods
10479 `base_breakpoint_create_sals_from_address',
10480 `base_breakpoint_create_breakpoints_sal' and
10481 `base_breakpoint_decode_linespec'.
10482 (bkpt_create_sals_from_address): New function.
10483 (bkpt_create_breakpoints_sal): Likewise.
10484 (bkpt_decode_linespec): Likewise.
10485 (tracepoint_create_sals_from_address): Likewise.
10486 (tracepoint_create_breakpoints_sal): Likewise.
10487 (tracepoint_decode_linespec): Likewise.
10488 (strace_marker_create_sals_from_address): Likewise.
10489 (strace_marker_create_breakpoints_sal): Likewise.
10490 (strace_marker_decode_linespec): Likewise.
10491 (strace_marker_breakpoint_ops): New variable.
10492 (addr_string_to_sals): Remove `marker_spec'. Call method
10493 `decode_linespec' from breakpoint_ops, replacing code that decoded
10494 an address string into a SAL. Use `strace_marker_p' instead of
10495 `marker_spec'.
10496 (strace_command): Decide whether we are dealing with a static
10497 tracepoint with marker or not. Use the appropriate breakpoint_ops.
10498 (initialize_breakpoint_ops): Initialize new fields of breakpoint_ops.
10499 * breakpoint.h (linespec_result, linespec_sals): New forward
10500 declarations.
10501 (breakpoint_ops) <create_sals_from_address>,
10502 <create_breakpoints_sal>, <decode_linespec>: New methods.
10503
10504 2012-01-14 Doug Evans <dje@google.com>
10505
10506 * NEWS: Update text for "maint set python print-stack".
10507 It is deprecated in gdb 7.4 and deleted in 7.5.
10508
10509 2012-01-13 Eli Zaretskii <eliz@gnu.org>
10510
10511 * gdb_curses.h (MOUSE_MOVED) [__MINGW32__]: Undefine before
10512 including curses.h.
10513
10514 2012-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
10515
10516 * configure: Regenerate.
10517 * config.in: Regenerate.
10518
10519 2012-01-12 Keith Seitz <keiths@redhat.com>
10520
10521 PR mi/10586
10522 * varobj.c (ANONYMOUS_STRUCT_NAME): Define.
10523 (ANONYMOUS_UNION_NAME): Define.
10524 (is_path_expr_parent): New function.
10525 (get_path_expr_parent): New function.
10526 (is_anonymous_child): New function.
10527 (create_child_with_value): If the child is anonymous and without
10528 a name, assign an object name to it.
10529 (c_describe_child): Use get_path_expr_parent to determine
10530 the parent expression.
10531 If there field represents an anonymous struct or union and
10532 has no name, set an appropriate display name and expression.
10533 (cplus_describe_child): Likewise.
10534
10535 2012-01-12 Pedro Alves <palves@redhat.com>
10536
10537 * i386-tdep.c (i386_frame_cache_1): Also mark the frame base as
10538 available when %ebp is found to be zero (outermost).
10539
10540 2012-01-11 Andreas Tobler <andreast@fgznet.ch>
10541
10542 * common/gdb_assert.h (gdb_static_assert): Rename static_assert to
10543 an internal gdb_static_assert.
10544 * mi/mi-common.c: Rename static_assert to gdb_static_assert.
10545
10546 2012-01-11 Tom Tromey <tromey@redhat.com>
10547
10548 PR gdb/9598:
10549 * breakpoint.c (_initialize_breakpoint): Fix help for "catch
10550 catch" and "catch throw".
10551
10552 2012-01-11 Paul Hilfinger <hilfingr@adacore.com>
10553
10554 * blockframe.c (block_innermost_frame): Start search from selected
10555 frame, if present, or otherwise the current frame.
10556
10557 * c-exp.y (variable): Update innermost_block for
10558 'block COLONCOLON NAME' clause.
10559 * m2-exp.y (variable): Ditto.
10560 * objc-exp.y (variable): Ditto.
10561
10562 2012-01-10 Tom Tromey <tromey@redhat.com>
10563
10564 PR python/13199:
10565 * python/python.c (finish_python_initialization): Set sys.argv.
10566
10567 2012-01-10 Doug Evans <dje@google.com>
10568
10569 * dwarf2read.c (dwarf_decode_lines): Remove arg "abfd". New arg
10570 "want_line_info". All callers updated.
10571 (dwarf_decode_lines_1): New function.
10572 (handle_DW_AT_stmt_list): Add function comment.
10573 New arg "want_line_info". All callers updated.
10574 (read_file_scope,read_type_unit_scope): Move comment from
10575 handle_DW_AT_stmt_list to here.
10576
10577 2012-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
10578
10579 Fix regression after libiberty/ update for GCC PR 6057 and others.
10580 * c-exp.y (operator) <OPERATOR DELETE>
10581 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
10582 * cp-name-parser.y (fill_comp, make_operator, make_dtor)
10583 (make_builtin_type, make_name): New variable i, add gdb_assert.
10584 (operator) <OPERATOR NEW>: Update ARGS to 3.
10585 (operator) <OPERATOR DELETE>: Add trailing space.
10586 (operator) <OPERATOR NEW '[' ']'>: Update ARGS to 3.
10587 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
10588 * cp-support.c (cp_canonicalize_string): Check NULL from
10589 cp_comp_to_string, call warning and return.
10590
10591 2012-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
10592
10593 Fix duplicate .o files after omitting libbfd.a.
10594 * Makefile.in (ALL_TARGET_OBS): Remove corelow.o.
10595 (SFILES): Add corelow.c.
10596 (COMMON_OBS): Add corelow.o.
10597 (ALLDEPFILES): Remove corelow.c.
10598 * config/alpha/alpha-linux.mh (NATDEPFILES): Remove corelow.o.
10599 * config/alpha/alpha-osf3.mh: Likewise.
10600 * config/alpha/fbsd.mh: Likewise.
10601 * config/arm/nbsdaout.mh: Likewise.
10602 * config/arm/nbsdelf.mh: Likewise.
10603 * config/i386/i386gnu.mh: Likewise.
10604 * config/ia64/hpux.mh: Likewise.
10605 * config/ia64/linux.mh: Likewise.
10606 * config/m32r/linux.mh: Likewise.
10607 * config/m68k/linux.mh: Likewise.
10608 * config/mips/irix5.mh: Likewise.
10609 * config/mips/irix6.mh: Likewise.
10610 * config/pa/hpux.mh: Likewise.
10611 * config/pa/linux.mh: Likewise.
10612 * config/powerpc/aix.mh: Likewise.
10613 * config/sparc/linux.mh: Likewise.
10614 * config/sparc/linux64.mh: Likewise.
10615 * config/sparc/sol2.mh: Likewise.
10616 * config/vax/vax.mh: Likewise.
10617 * configure.tgt (alpha*-*-freebsd* alpha*-*-kfreebsd*-gnu)
10618 (alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu, alpha*-*-openbsd*)
10619 (am33_2.0*-*-linux*, arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-linux*)
10620 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-netbsd*)
10621 (hppa*-*-openbsd*, i[34567]86-*-dicos*, i[34567]86-*-freebsd*)
10622 (i[34567]86-*-kfreebsd*-gnu, i[34567]86-*-netbsd*)
10623 (i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*, i[34567]86-*-nto*)
10624 (i[34567]86-*-solaris2.1[0-9]*, x86_64-*-solaris2.1[0-9]*)
10625 (i[34567]86-*-solaris*, i[34567]86-*-linux*, i[34567]86-*-cygwin*)
10626 (i[34567]86-*-mingw32*, m68*-*-netbsd*, m68*-*-knetbsd*-gnu)
10627 (m68*-*-openbsd*, m88*-*-openbsd*, microblaze*-linux-*)
10628 (microblaze*-*-linux*, mips*-*-linux*, mips*-*-netbsd*)
10629 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
10630 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-linux*)
10631 (powerpc64-*-linux*, s390*-*-*, score-*-*, sh*-*-linux*)
10632 (sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
10633 (sparc*-*-freebsd*, sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*)
10634 (sparc-*-knetbsd*-gnu, sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu)
10635 (sparc-*-openbsd*, sparc64-*-openbsd*, tic6x-*-*linux, vax-*-netbsd*)
10636 (vax-*-knetbsd*-gnu, vax-*-openbsd*, x86_64-*-dicos*, x86_64-*-linux*)
10637 (x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu, x86_64-*-netbsd*)
10638 (x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*, xtensa*-*-linux*): Remove
10639 corelow.o from gdb_target_obs.
10640 * corefile.c (core_target): Update the comment on NULL value.
10641 (core_file_command): Replace error by gdb_assert on CORE_TARGET.
10642 * corelow.c (sniff_core_bfd): Call error instead of warning on zero
10643 MATCHES. Drop YUMMY set on NULL.
10644 (core_close): Do not call exit_inferior_silent on zero PID. Do not
10645 reclaim CORE_DATA if it is already NULL.
10646
10647 2012-01-09 Doug Evans <dje@google.com>
10648
10649 * gdbtypes.c (safe_parse_type): Initialize type to keep gcc happy.
10650 * varobj.c (varobj_set_value): Initialize val,value to keep gcc happy.
10651
10652 2012-01-09 Keith Seitz <keiths@redhat.com>
10653
10654 * breakpoint.c (wrapper.h): Don't include.
10655
10656 2012-01-09 Keith Seitz <keiths@redhat.com>
10657
10658 * Makefile.in (SFILES): Remove wrapper.c.
10659 (HFILES_NO_SRCDIR): Remove wrapper.h.
10660 (COMMON_OBS): Remove wrapper.o.
10661 * cli/cli-interp.c: Don't inlude wrapper.h.
10662 * corelow.c: Likewise.
10663 (core_open): Replace gdb_target_find_new_threads with
10664 TRY_CATCH around target_find_new_threads.
10665 * eval.c (fetch_subexp_value): Likewise for value_fetch_lazy.
10666 * gdbtypes.c (safe_parse_type): Likewise for parse_and_eval_type.
10667 * varobj.c (varobj_create): Likewise for parse_exp_1 and
10668 evaluate_expression.
10669 (varobj_set_value): Likewise for evaluate_expression and
10670 value_assign.
10671 (install_new_variable): Likewise for value_fetch_lazy.
10672 (adjust_value_for_child_access): Likewise for value_ind.
10673 (c_describe_child): Likewise for value_subscript and
10674 value_ind.
10675 (c_value_of_root): Likewise for evaluate_expression.
10676 * wrapper.c: Remove.
10677 * wrapper.h: Remove.
10678
10679 2012-01-09 Doug Evans <dje@google.com>
10680
10681 * dwarf2read.c (read_and_check_comp_unit_head): Renamed from
10682 partial_read_comp_unit_head. Replace "buffer", "buffer_size" and
10683 "abfd" args with "section". All callers updated.
10684 Error checking code moved ...
10685 (error_check_comp_unit_head): ... here. New function.
10686 (read_and_check_type_unit_head): Renamed from read_type_unit_head.
10687 Delete arg "abfd". New arg "type_offset". All callers updated.
10688 (create_debug_types_hash_table): Simplify by using
10689 read_and_check_type_unit_head.
10690
10691 * parser-defs.h (namecopy): Delete.
10692 * parse.c (namecopy, namecopy_size): Move into copy_name.
10693
10694 2012-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
10695
10696 Partially fix duplicate .o files after omitting libbfd.a.
10697 * config/alpha/alpha-osf3.mh (NATDEPFILES): Remove solib.o.
10698 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
10699 * config/i386/obsdaout.mh (NATDEPFILES): Remove solib.o.
10700 * config/m68k/nbsdaout.mh (NATDEPFILES): Remove solib.o.
10701 * config/m68k/obsd.mh (NATDEPFILES): Remove solib.o.
10702 * config/powerpc/aix.mh (NATDEPFILES): Remove xcoffread.o.
10703 * config/vax/nbsdaout.mh (NATDEPFILES): Remove solib.o.
10704
10705 2012-01-09 Pedro Alves <palves@redhat.com>
10706
10707 * MAINTAINERS: Update my email address.
10708
10709 2012-01-08 Doug Evans <dje@google.com>
10710
10711 * dwarf2read.c (dwarf2_per_objfile): Rename n_type_comp_units to
10712 n_type_units. Rename type_comp_units to all_type_units.
10713 All uses updated.
10714 (add_signatured_type_cu_to_table): Renamed from
10715 add_signatured_type_cu_to_list. All callers updated.
10716
10717 * gdbtypes.h (struct cplus_struct_type): Delete member
10718 nfn_fields_total. All uses removed.
10719
10720 2012-01-06 Doug Evans <dje@google.com>
10721
10722 * dwarf2read.c: Move FIXME from dwarf2_build_psymtabs_hard
10723 to top of file.
10724 (dwarf2_find_comp_unit): Delete.
10725 (process_psymtab_comp_unit): Make result "void".
10726 Delete args buffer, info_ptr, buffer_size, and replace with
10727 "section". All callers updated.
10728 (dwarf2_build_psymtabs_hard): Simplify.
10729
10730 2012-01-06 Sergio Durigan Junior <sergiodj@redhat.com>
10731 Thiago Jung Bauermann <bauerman@br.ibm.com>
10732
10733 * ada-lang.c (ada_exception_name_addr): Add `volatile' keyword
10734 before `struct gdb_exception'.
10735 * breakpoint.c (update_global_location_list_nothrow)
10736 (update_breakpoint_locations, enable_breakpoint_disp): Likewise.
10737 * cp-abi.c (value_rtti_type): Likewise.
10738 * cp-support.c (cp_validate_operator): Likewise.
10739 * infrun.c (insert_exception_resume_breakpoint)
10740 (check_exception_resume, keep_going): Likewise.
10741 * mi-interp.c (mi_breakpoint_created)
10742 (mi_breakpoint_modified): Likewise.
10743 * rs6000-aix-tdep.c (rs6000_convert_from_func_ptr_addr): Likewise.
10744 * solib-ia64-hpux.c (ia64_hpux_at_dld_breakpoint_p)
10745 (ia64_hpux_handle_dld_breakpoint_1): Likewise.
10746
10747 2012-01-05 Doug Evans <dje@google.com>
10748
10749 * dwarf2read.c (statement_prologue): Delete, unused.
10750
10751 * dwarf2read.c (dwarf2_per_cu_addr_size): Make result type an int.
10752 * dwarf2loc.h (dwarf2_per_cu_addr_size): Update.
10753
10754 * dwarf2read.c (comp_unit_header): Delete, unused.
10755
10756 2012-01-05 Ulrich Weigand <uweigand@de.ibm.com>
10757
10758 * configure.tgt [s390*-*-*] (gdb_target_obs): Add corelow.o.
10759 * config/s390/s390.mh (NATDEPFILES): Remove corelow.o.
10760
10761 2012-01-05 Khoo Yit Phang <khooyp@cs.umd.edu>
10762
10763 * infrun.c (normal_stop): Don't skip calling the normal_stop
10764 observers if the thread was doing a multi-step, but stopped for
10765 some reason other than stepping.
10766
10767 2012-01-05 Pedro Alves <alves.ped@gmail.com>
10768
10769 * cli/cli-decode.h: Add comments.
10770 (CMD_LIST_AMBIGUOUS): Moved to command.h
10771 (add_cmd, add_alias_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
10772 (set_cmd_cfunc, set_cmd_sfunc, set_cmd_completer, cmd_cfunc_eq)
10773 (set_cmd_context, get_cmd_context, lookup_cmd, lookup_cmd_1)
10774 (deprecate_cmd, deprecated_cmd_warning, lookup_cmd_composition)
10775 (add_com, add_com_alias, add_info, add_info_alias)
10776 (complete_on_cmdlist, complete_on_enum, help_list): Remove
10777 declarations.
10778 * command.h: Add and adjust comments.
10779 (CMD_LIST_AMBIGUOUS): Moved here.
10780 (help_cmd, help_cmd_list): Delete declarations.
10781
10782 2012-01-04 Doug Evans <dje@google.com>
10783
10784 * dwarf2read.c (dwarf2_read_abbrevs): Delete arg "abfd".
10785 All callers updated.
10786 (load_full_type_unit): Renamed from read_signatured_type_at_offset.
10787 Replace all arguments with "per_cu". All callers updated.
10788
10789 * dwarf2read.c (dwarf2_per_cu_data): Remove outdated comment.
10790
10791 * dwarf2read.c (init_one_comp_unit): Delete arg "objfile".
10792 New arg "per_cu". All callers updated.
10793
10794 Delete #if 0'd out code.
10795 * language.c (binop_result_type): Delete.
10796 (simple_type, ordered_type, same_type, integral_type): Delete.
10797 (numeric_type, character_type, string_type, boolean_type): Delete.
10798 (float_type, structured_type): Delete.
10799 * language.h: Update.
10800
10801 2012-01-04 Tom Tromey <tromey@redhat.com>
10802
10803 * python/py-value.c (valpy_binop): Initialize 'res_val'.
10804
10805 2012-01-04 Joel Brobecker <brobecker@adacore.com>
10806
10807 * corefile.c (close_exec_file): Delete.
10808 (reopen_exec_file): Remove commented out code that seems related
10809 to close_exec_file, which is being deleted here.
10810 * inferior.h (close_exec_file): Delete.
10811 * fork-child.c (fork_inferior): Remove call to fork_inferior.
10812
10813 2012-01-04 Joel Brobecker <brobecker@adacore.com>
10814
10815 * ada-lang.c: #include "cli/cli-utils.h".
10816 (get_selections): Use skip_spaces.
10817 (ada_get_next_arg): Use skip_spaces and skip_to_space.
10818 (catch_ada_exception_command_split): Use skip_spaces.
10819 (ada_decode_assert_location): Likewise.
10820
10821 2012-01-04 Joel Brobecker <brobecker@adacore.com>
10822
10823 * linespec.c (decode_line_internal): Check for C++ or Java
10824 compound constructs only if the current language is C, C++
10825 or Java.
10826
10827 2012-01-04 Jan Kratochvil <jan.kratochvil@redhat.com>
10828
10829 Revert:
10830 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10831 Joel Brobecker <brobecker@adacore.com>
10832 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
10833 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
10834 3 times.
10835 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
10836 fall through into AT_ENTRY_POINT.
10837 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
10838 DUMMY_ADDR with it.
10839 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
10840 PPC_INSN_SIZE skip to 3 times.
10841
10842 2012-01-04 Joel Brobecker <brobecker@adacore.com>
10843
10844 * linespec.c (add_minsym): Preserve function descriptors.
10845
10846 2012-01-04 Ulrich Weigand <uweigand@de.ibm.com>
10847
10848 * breakpoint.c (all_locations_are_pending): Consider locations
10849 in program spaces executing during startup pending as well.
10850
10851 2012-01-04 Joel Brobecker <brobecker@adacore.com>
10852
10853 Copyright year update in most files of the GDB Project.
10854
10855 2012-01-04 Joel Brobecker <brobecker@adacore.com>
10856
10857 * copyright.sh: Delete.
10858 * copyright.py: Rewrite.
10859
10860 2012-01-04 Joel Brobecker <brobecker@adacore.com>
10861
10862 * gnulib/extra/update-copyright: New file, imported from gnulib.
10863
10864 2012-01-04 Joel Brobecker <brobecker@adacore.com>
10865
10866 * README (Copyright and License Notices): New section.
10867
10868 2012-01-03 Tom Tromey <tromey@redhat.com>
10869
10870 PR python/12533:
10871 * python/py-value.c (valpy_dereference, valpy_get_address
10872 valpy_get_dynamic_type, valpy_lazy_string, valpy_do_cast)
10873 (valpy_getitem, valpy_call, valpy_binop, valpy_negative)
10874 (valpy_absolute, valpy_richcompare): Free intermediate values.
10875
10876 2011-01-03 Joel Brobecker <brobecker@adacore.com>
10877
10878 * ada-lang.c: Reformat the copyright notice.
10879
10880 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10881
10882 * Makefile.in (ALL_TARGET_OBS): Remove solib-target.o.
10883 * configure.tgt (arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-symbianelf*)
10884 (i[34567]86-*-dicos*, i[34567]86-*-cygwin*, i[34567]86-*-mingw32*)
10885 (x86_64-*-dicos*, x86_64-*-mingw*): Remove solib-target.o.
10886 Revert this part of:
10887 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10888 Build gdb directly from *.o files not using libgdb.a.
10889 * Makefile.in (COMMON_OBS): Remove solib-target.o.
10890
10891 2012-01-02 Joel Brobecker <brobecker@adacore.com>
10892
10893 * gdb/common/gdb_thread_db.h, gdb/dbxread.c, gdb/environ.c,
10894 gdb/gcore.h, gdb/rs6000-tdep.h, gdb/s390-nat.c, gdb/tic6x-tdep.c:
10895 Reformat the copyright header.
10896
10897 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10898
10899 Revert this part of:
10900 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10901 Remove the gdbtui binary.
10902 * gdb.c (main): Remove args.interpreter_p initialization.
10903 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
10904 * main.h (struct captured_main_args): Remove interpreter_p.
10905
10906 2012-01-02 Joel Brobecker <brobecker@adacore.com>
10907
10908 * config/djgpp/fnchange.lst: Add entry for ChangeLog-2011.
10909
10910 2012-01-02 Joel Brobecker <brobecker@adacore.com>
10911
10912 * top.c (print_gdb_version): Update copyright year.
10913
10914 2012-01-02 Yao Qi <yao@codesourcery.com>
10915
10916 * inf-ptrace.c (inf_ptrace_xfer_partial): Reindent.
10917
10918 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10919 Joel Brobecker <brobecker@adacore.com>
10920
10921 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
10922 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
10923 3 times.
10924 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
10925 fall through into AT_ENTRY_POINT.
10926 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
10927 DUMMY_ADDR with it.
10928 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
10929 PPC_INSN_SIZE skip to 3 times.
10930
10931 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10932
10933 * amd64-linux-nat.c (update_debug_registers_callback): New comment on
10934 the return value.
10935 * i386-linux-nat.c (update_debug_registers_callback): Likewise.
10936
10937 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10938
10939 Build gdb directly from *.o files not using libgdb.a.
10940 * Makefile.in (SUBDIR_TUI_OBS): Remove duplicate tui.o.
10941 (COMMON_OBS): Remove solib-target.o.
10942 (LIBGDB_OBS, libgdb.a): Move it before the gdb$(EXEEXT) rule.
10943 (gdb$(EXEEXT)): Replace libgdb.a with $(LIBGDB_OBS).
10944 (LIBGDB_OBS, libgdb.a): Move it above.
10945 * configure.tgt (alpha*-*-linux*, alpha*-*-freebsd*)
10946 (alpha*-*-kfreebsd*-gnu, alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu)
10947 (alpha*-*-openbsd*, am33_2.0*-*-linux*, arm*-wince-pe)
10948 (arm*-*-mingw32ce*, arm*-*-linux*, arm*-*-netbsd*, arm*-*-knetbsd*-gnu)
10949 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-linux*)
10950 (hppa*-*-netbsd*, hppa*-*-openbsd*, i[34567]86-*-darwin*)
10951 (i[34567]86-*-dicos*, i[34567]86-*-freebsd*, i[34567]86-*-kfreebsd*-gnu)
10952 (i[34567]86-*-netbsd*, i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*)
10953 (i[34567]86-*-nto*, i[34567]86-*-solaris2.1[0-9]*)
10954 (x86_64-*-solaris2.1[0-9]*, i[34567]86-*-solaris*, i[34567]86-*-linux*)
10955 (i[34567]86-*-gnu*, ia64-*-linux*, m32r*-*-linux*, m68*-*-linux*)
10956 (m68*-*-netbsd*, m68*-*-knetbsd*-gnu, m68*-*-openbsd*)
10957 (microblaze*-linux-*, microblaze*-*-linux*, mips*-sgi-irix5*)
10958 (mips*-sgi-irix6*, mips*-*-linux*, mips*-*-netbsd*)
10959 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
10960 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-aix*, rs6000-*-*)
10961 (powerpc-*-linux*, powerpc64-*-linux*, powerpc*-*-*, s390*-*-*)
10962 (sh*-*-linux*, sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
10963 (sparc-*-linux*, sparc64-*-linux*, sparc*-*-freebsd*)
10964 (sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*, sparc-*-knetbsd*-gnu)
10965 (sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu, sparc-*-openbsd*)
10966 (sparc64-*-openbsd*, sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*)
10967 (sparc-*-solaris2*, sparcv9-*-solaris2*, sparc64-*-solaris2*)
10968 (vax-*-netbsd*, vax-*-knetbsd*-gnu, x86_64-*-darwin*, x86_64-*-dicos*)
10969 (x86_64-*-linux*, x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu)
10970 (x86_64-*-netbsd*, x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*)
10971 (xtensa*-*-linux*, xtensa*): Remove solib.o from gdb_target_obs.
10972
10973 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10974
10975 Remove the gdbtui binary.
10976 * .gitignore (/gdbtui): Remove.
10977 * Makefile.in (TUI): Remove.
10978 (SUBDIR_TUI_OBS): Remove tui-main.o.
10979 (SUBDIR_TUI_SRCS): Remove tui/tui-main.c.
10980 (all-tui, install-tui, uninstall-tui, $(TUI)$(EXEEXT), clean-tui)
10981 (tui-main.o): Remove.
10982 (all_object_files): Remove tui-main.o.
10983 * NEWS: New note for the gdbtui removal.
10984 * configure: Rebuilt.
10985 * configure.ac: No longer add all-tui, clean-tui, install-tui and
10986 uninstall-tui to CONFIG_ALL, CONFIG_CLEAN, CONFIG_INSTALL and
10987 CONFIG_UNINSTALL respectively.
10988 * gdb.c (main): Remove args.interpreter_p initialization.
10989 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
10990 * main.h (struct captured_main_args): Remove interpreter_p.
10991 * tui/tui-main.c: Remove.
10992
10993 2012-01-01 Doug Evans <dje@google.com>
10994
10995 * dwarf2read.c (dwarf2_compute_name): Simplify objfile references.
10996 (dwarf2_physname, read_import_statement): Ditto.
10997 (read_call_site_scope, dwarf2_record_block_ranges): Ditto.
10998 (process_structure_scope read_subroutine_type): Ditto.
10999 (read_typedef, load_partial_dies, read_partial_die): Ditto.
11000 (find_partial_die, dwarf_decode_lines, lookup_die_type): Ditto.
11001 (dwarf2_fetch_die_location_block): Ditto.
11002 (dwarf_decode_macros, dwarf2_symbol_mark_computed): Ditto.
11003
11004 * dwarf2read.c (read_signatured_type): Delete `objfile' arg.
11005 All callers updated.
11006 (load_full_comp_unit, queue_comp_unit, process_queue): Ditto.
11007 (dw2_do_instantiate_symtab, dw2_instantiate_symtab): Ditto.
11008 (process_psymtab_comp_unit, load_partial_comp_unit): Ditto.
11009
11010 * dwarf2read.c (load_cu): Move assert to more useful location.
11011
11012 * dwarf2read.c (free_heap_comp_unit): Renamed from free_one_comp_unit.
11013 All callers updated.
11014
11015 * dwarf2read.c (dwarf2_per_objfile): Add comment.
11016 (dwarf2_elf_names): Minor reformat.
11017 (dwarf2_per_cu_data): Tweak comment.
11018 (dwarf2_read_section): Fix comment.
11019 (create_all_comp_units): Fix comment.
11020 (load_full_comp_unit): Fix comment.
11021 (process_full_comp_unit): Fix comment.
11022 (read_signatured_type): Fix comment.
11023
11024 For older changes see ChangeLog-2011.
11025 \f
11026 Local Variables:
11027 mode: change-log
11028 left-margin: 8
11029 fill-column: 74
11030 version-control: never
11031 coding: utf-8
11032 End:
This page took 0.260318 seconds and 5 git commands to generate.