[Ada] Skip unwind-seh.c when searching first "user" frame
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2012-10-24 Joel Brobecker <brobecker@adacore.com>
2
3 * ada-lang.h (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Add entry for
4 "unwind-seh.c".
5
6 2012-10-24 Joel Brobecker <brobecker@adacore.com>
7
8 * ada-lang.c (ada_template_to_fixed_record_type_1): Do not
9 strip typedef layer when computing the fixed type's field type,
10 only when computing its size.
11
12 2012-10-24 Mark Kettenis <kettenis@gnu.org>
13
14 PR gdb/12783
15 * i386-tdep.c (i386_return_value): Handle complex double and long
16 double.
17
18 2012-10-24 Joel Brobecker <brobecker@adacore.com>
19
20 * windows-nat.c (windows_create_inferior) [!__CYGWIN__]:
21 New local variable args_len.
22 Quote the name of the executable when computing the command line.
23
24 2012-10-23 Mark Kettenis <kettenis@gnu.org>
25
26 PR gdb/12796
27 PR gdb/12798
28 PR gdb/12800
29 * amd64-tdep.h (enum amd64_regnum): Add AMD64_ST1_REGNUM and
30 AMD64_FTAG_REGNUM.
31 * amd64-tdep.c (amd64_classify): Classify complex types.
32 (amd64_return_value): Handle the COMPLEX_X87 class.
33
34 2012-10-23 Joel Brobecker <brobecker@adacore.com>
35
36 * rs6000-aix-tdep.c (rs6000_aix_auto_wide_charset): New function.
37 (rs6000_aix_init_osabi): Set auto_wide_charset gdbarch method.
38
39 2012-10-23 Joel Brobecker <brobecker@adacore.com>
40
41 * amd64-windows-tdep.c (amd64_windows_auto_wide_charset): New
42 function.
43 (amd64_windows_init_abi): Set auto_wide_charset gdbarch method
44 to amd64_windows_auto_wide_charset.
45
46 2012-10-23 Yao Qi <yao@codesourcery.com>
47
48 * event-top.c (mark_async_signal_handler_wrapper): Remove.
49 * event-top.h: Remove its declaration.
50 (async_request_quit): Call mark_async_signal_handler instead of
51 mark_async_signal_handler_wrapper.
52 (async_do_nothing, async_disconnect): Likewise.
53 (async_stop_sig): Likewise.
54 * remote.c (handle_remote_sigint): Likewise.
55 (handle_remote_sigint_twice): Likewise.
56
57 2012-10-23 Yao Qi <yao@codesourcery.com>
58
59 * event-top.c (sigint_token, sighup_token): Replace 'void *'
60 with 'static struct async_signal_handler *'.
61 (sighup_token, sigquit_token, sigstp_token): Likewise.
62
63 2012-10-22 Ali Anwar <ali_anwar@codesourcery.com>
64
65 * gdbarch.sh (function_list): Use 'pstring' when printing
66 a variable which could return NULL.
67 * gdbarch.c: Regenerate.
68
69 2012-10-10 Joel Brobecker <brobecker@adacore.com>
70 Tom Tromey <tromey@redhat.com>
71
72 * rs6000-aix-tdep.c (rs6000_aix_osabi_sniffer): Replace
73 inneffective if condition by gdb assertion. Add function
74 description comment.
75
76 2012-10-19 Joel Brobecker <brobecker@adacore.com>
77
78 * parser-defs.h (struct exp_descriptor): Document constraint
79 on return value for "op_name" callbacks.
80
81 2012-10-18 Tom Tromey <tromey@redhat.com>
82
83 * tracepoint.c (print_one_static_tracepoint_marker): Constify.
84 * symtab.c (iterate_over_some_symtabs): Constify.
85 * source.h (symtab_to_fullname): Return 'const char *'.
86 * source.c (symtab_to_fullname): Return 'const char *'.
87 * python/py-symtab.c (stpy_fullname): Constify.
88 * cli/cli-cmds.c (edit_command): Constify.
89 * breakpoint.c (print_breakpoint_location)
90 (update_static_tracepoint): Constify.
91
92 2012-10-18 Tom Tromey <tromey@redhat.com>
93
94 * breakpoint.c (compare_breakpoints): Fix comparison.
95
96 2012-10-18 Tom Tromey <tromey@redhat.com>
97
98 * valprint.c (generic_emit_char, generic_printstr): Pass size of
99 gdb_wchar_t to convert_between_encodings.
100
101 2012-10-17 Yao Qi <yao@codesourcery.com>
102
103 * breakpoint.c (invalidate_bp_value_on_memory_change): Add one
104 more parameter 'inferior'.
105 * corefile.c (write_memory_with_notification): Caller update.
106
107 * mi/mi-cmd-var.c: Include "mi-main.h".
108 (mi_cmd_var_assign): Set mi_suppress_notification.data_write_memory
109 to 1 and restore it later.
110 * mi/mi-cmds.c (mi_cmd mi_cmds): Update for "data-write-memory"
111 and "data-write-memory-bytes.
112 * mi/mi-interp.c: Include objfiles.h.
113 (mi_interpreter_init): Call observer_attach_memory_changed.
114 (mi_memory_changed): New.
115 * mi/mi-main.h (struct mi_suppress_notification) <memory>:
116 New field.
117
118 * NEWS: Mention new MI notification "memory-changed".
119
120 2012-10-16 Jan Kratochvil <jan.kratochvil@redhat.com>
121
122 * dwarf2loc.c (dwarf_expr_reg_to_entry_parameter): Remove comment.
123
124 2012-10-15 Doug Evans <dje@google.com>
125
126 New option -nh: inhibit loading of ~/.gdbinit.
127 * NEWS: Mention -nh.
128 * main.c (captured_main): Recognize and process -nh.
129 (print_gdb_help): Mention -nh.
130 * gdb.1: Mention -nh. Remove erroneous docs on -nx behavior.
131
132 2012-10-15 H.J. Lu <hongjiu.lu@intel.com>
133
134 PR backtrace/14646
135 PR gdb/14647
136 * i386-tdep.h (gdbarch_tdep): Remove sp_regnum_from_eax and
137 pc_regnum_from_eax.
138 * i386-tdep.c (i386_gdbarch_init): Don't use sp_regnum_from_eax
139 nor pc_regnum_from_eax.
140 * amd64-tdep.c (amd64_x32_init_abi): Don't set sp_regnum_from_eax
141 nor pc_regnum_from_eax.
142
143 2012-10-15 Jan Kratochvil <jan.kratochvil@redhat.com>
144
145 Fix entry values resolving in inlined frames.
146 * dwarf2loc.c (dwarf_expr_reg_to_entry_parameter): Move func_addr,
147 gdbarch and caller_frame initialization later. Skip INLINE_FRAME
148 entries of FRAME.
149
150 2012-10-15 Joel Brobecker <brobecker@adacore.com>
151
152 * configure.ac: Build with -DMS_WIN64 if building with Python
153 enabled using GCC on amd64-windows.
154 * configure: Regenerate.
155
156 2012-10-15 Tom Tromey <tromey@redhat.com>
157
158 PR python/14635:
159 * python/py-symtab.c (del_objfile_sal): Set 'symtab' field
160 to Py_None.
161
162 2012-10-15 Tom Tromey <tromey@redhat.com>
163
164 PR python/14634:
165 * python/py-symbol.c (sympy_dealloc): Check for NULL symbol.
166
167 2012-10-11 Andrew Burgess <aburgess@broadcom.com>
168
169 * remote-sim.c (gdbsim_create_inferior): Call init_thread_list to
170 reset thread numbering back to 1.
171
172 2012-10-11 Doug Evans <dje@google.com>
173
174 PR breakpoints/14643.
175 * linespec.c (struct ls_parser): New member keyword_ok.
176 (linespec_lexer_lex_string): Add comment.
177 (linespec_lexer_lex_one): Ignore keywords if it's the wrong place
178 for one.
179 (parse_linespec): Set keyword_ok.
180
181 2012-10-10 Doug Evans <dje@google.com>
182
183 * dwarf2read.c (process_psymtab_comp_unit_reader): Remove duplicate
184 "0x" prefix on address in log message.
185
186 * dwarf2read.c (read_1_byte): Add const to buf parameter.
187 (read_1_signed_byte, read_2_bytes, read_2_signed_bytes): Ditto.
188 (read_4_bytes, read_4_signed_bytes, read_8_bytes): Ditto.
189 (lookup_dwo_file): Add const to dwo_name parameter.
190 (lookup_dwo_comp_unit, lookup_dwo_type_unit): Ditto.
191
192 2012-10-06 Jan Kratochvil <jan.kratochvil@redhat.com>
193
194 Fix crash during stepping on ppc32.
195 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code): Test NULL
196 SYM.
197
198 2012-10-03 Doug Evans <dje@google.com>
199
200 PR symtab/14601
201 * buildsym.c (buildsym_init): Reset using_directives to NULL.
202
203 2012-10-02 Andrew Burgess <aburgess@broadcom.com>
204
205 * remote-sim.c (dump_mem): Always dump buffer contents, zero fill
206 output and use uint32_t not long to ensure 4 byte size.
207
208 2012-10-02 Joel Brobecker <brobecker@adacore.com>
209
210 * rs6000-nat.c (add_vmap): Set "last" to "next" after having
211 unref'ed it.
212
213 2012-10-01 Andrew Burgess <aburgess@broadcom.com>
214
215 * target.c (simple_search_memory): Include access length in
216 warning message.
217
218 2012-09-28 Nathan Miller <nathanm2@us.ibm.com>
219 Edjunior Machado <emachado@linux.vnet.ibm.com>
220
221 PR gdb/13989
222 * solib.c (solib_find): Prevent GDB from loading native libraries when
223 debugging a cross-target corefile.
224
225 2012-09-28 selven <pcthegreat@gmail.com>
226
227 Make definition match declaration.
228
229 * regcache.c (regcache_register_status): Change return type to
230 enum register_status.
231
232 2012-09-28 Yao Qi <yao@codesourcery.com>
233
234 * mi/mi-main.c (mi_cmd_data_write_memory): Call
235 write_memory_with_notification instead of write_memory.
236 (mi_cmd_data_write_memory_bytes): Call write_memory_with_notification
237 instead of target_write_memory.
238
239 2012-09-28 Yao Qi <yao@codesourcery.com>
240
241 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Emit error
242 when the length of content is not an even number.
243
244 2012-09-27 Tom Tromey <tromey@redhat.com>
245
246 Fix https://bugzilla.redhat.com/show_bug.cgi?id=849357
247 * cp-valprint.c (cp_print_value_fields): Use get_vptr_fieldno.
248
249 2012-09-27 Joel Brobecker <brobecker@adacore.com>
250
251 * sol-thread.c (sol_thread_fetch_registers)
252 (sol_thread_store_registers): Delete commented out code.
253
254 2012-09-27 Joel Brobecker <brobecker@adacore.com>
255
256 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
257 Move these functions to sparc-sol-thread.c.
258 * sparc-sol-thread.c: New file.
259 * configure.ac: Add sparc-sol-thread.o to CONFIG_OBS and
260 sparc-sol-thread.c to CONFIG_SRCS for sparc-solaris native
261 configurations.
262 * configure: Regenerate.
263
264 2012-09-27 Joel Brobecker <brobecker@adacore.com>
265
266 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
267 Remove commented-out code.
268
269 2012-09-27 Joel Brobecker <brobecker@adacore.com>
270
271 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
272 Enable this code for sparc hosts only.
273
274 2012-09-27 Joel Brobecker <brobecker@adacore.com>
275
276 * procfs.h (procfs_find_LDT_entry): Add declaration.
277 * sol-thread.c (ps_lgetLDT): Delete local declaration of
278 function procfs_find_LDT_entry.
279
280 2012-09-27 Joel Brobecker <brobecker@adacore.com>
281
282 * procfs.c (proc_get_LDT_entry): Make static.
283
284 2012-09-27 Joel Brobecker <brobecker@adacore.com>
285
286 * procfs.c (proc_find_memory_regions): Fix declaration.
287
288 2012-09-27 Siddhesh Poyarekar <siddhesh@redhat.com>
289
290 * amd64-tdep.c (amd64_return_value): Revert previous change
291 that used TYPE_LENGTH directly.
292 * bfin-tdep.c (bfin_extract_return_value): Likewise.
293 (bfin_store_return_value): Likewise.
294 * cris-tdep.c (cris_store_return_value): Likewise.
295 (cris_extract_return_value): Likewise.
296 * h8300-tdep.c (h8300_extract_return_value): Likewise.
297 * hppa-tdep.c (hppa64_return_value): Likewise.
298 * lm32-tdep.c (lm32_store_return_value): Likewise.
299 * microblaze-tdep.c (microblaze_store_return_value): Likewise.
300 * spu-tdep.c (spu_value_from_register): Likewise.
301 * vax-tdep.c (vax_return_value): Likewise.
302
303 2012-09-27 Siddhesh Poyarekar <siddhesh@redhat.com>
304
305 * gdbtypes.c (lookup_array_range_type): Expand parameters
306 LOW_BOUND and HIGH_BOUND to LONGEST.
307 (lookup_string_range_type): Likewise.
308 * gdbtypes.h (lookup_array_range_type): Likewise.
309 (lookup_string_range_type): Likewise.
310 * valops.c (value_cstring): Expand parameter LEN to ssize_t.
311 Expand HIGHBOUND to ssize_t.
312 (value_string): Likewise.
313 * value.h (value_cstring): Expand parameter LEN to ssize_t.
314 (value_string): Likewise.
315
316 2012-09-27 Yao Qi <yao@codesourcery.com>
317
318 PR breakpoints/13898
319 * breakpoint.h (tracepoint_breakpoint_ops): Forward declaration.
320 * mi/mi-cmd-break.c (mi_cmd_break_insert): Set breakpoint_ops
321 per breakpoint type.
322
323 2012-09-26 Pierre Muller <muller@ics.u-strasbg.fr>
324
325 * procfs.c: Add gdb_bfd header.
326 * rs6000-nat.c: Likewise.
327 * solib-pa64.c: Likewise.
328 * spu-linux-nat.c: Likewise.
329 * windows-nat.c: Likewise.
330
331 2012-09-26 Tom Tromey <tromey@redhat.com>
332
333 * f-lang.h (BLANK_COMMON_NAME_LOCAL): Remove.
334
335 2012-09-26 Tom Tromey <tromey@redhat.com>
336
337 * dwarf2read.c (mark_common_block_symbol_computed): New function.
338 (read_common_block): Handle child DIEs with
339 DW_AT_data_member_location.
340 (new_symbol_full): Add special case for common blocks.
341
342 2012-09-26 Jan Kratochvil <jan.kratochvil@redhat.com>
343 Tom Tromey <tromey@redhat.com>
344
345 * dwarf2read.c (read_common_block): Rewrite.
346 (new_symbol_full): Handle DW_TAG_common_block.
347 * f-lang.c (head_common_list, find_common_for_function):
348 Remove.
349 * f-lang.h (struct common_entry, struct saved_f77_common,
350 SAVED_F77_COMMON, SAVED_F77_COMMON_PTR, COMMON_ENTRY,
351 COMMON_ENTRY_PTR, head_common_list, find_common_for_function,
352 BLANK_COMMON_NAME_LOCAL): Remove.
353 (struct common_block): New.
354 * f-valprint.c (list_all_visible_commons): Remove.
355 (info_common_command_for_block): New function.
356 (info_common_command): Use it.
357 * stack.c (iterate_over_block_locals): Special case for
358 COMMON_BLOCK_DOMAIN.
359 * symtab.h (enum domain_enum_tag) <COMMON_BLOCK_DOMAIN>: New
360 constant.
361 (struct general_symbol_info) <value.common_block>: New field.
362 (SYMBOL_VALUE_COMMON_BLOCK): New define.
363
364 2012-09-26 Jan Kratochvil <jan.kratochvil@redhat.com>
365 Tom Tromey <tromey@redhat.com>
366
367 * f-lang.c (allocate_saved_bf_node,
368 allocate_saved_function_node, allocate_saved_f77_common_node,
369 allocate_common_entry_node, tail_common_list, current_common,
370 saved_bf_list, saved_bf_list_end, current_head_bf_list,
371 tmp_bf_ptr, add_common_block, add_common_entry,
372 find_first_common_named, patch_common_entries,
373 patch_all_commons_by_name, ADD_BF_SYMNUM, clear_bf_list,
374 global_remote_debug, get_bf_for_fcn, saved_function_list,
375 saved_function_list_end, clear_function_list, struct saved_fcn,
376 struct saved_bf_symnum, SAVED_FUNCTION, SAVED_FUNCTION_PTR,
377 SAVED_BF, SAVED_BF_PTR): Remove.
378 * f-lang.h (tail_common_list, current_common,
379 UNINITIALIZED_SECNUM, COMMON_NEEDS_PATCHING,
380 BLANK_COMMON_NAME_ORIGINAL, BLANK_COMMON_NAME_MF77,
381 DEFAULT_UPPER_BOUND, DEFAULT_LOWER_BOUND, real_main_name,
382 real_main_c_value): Remove.
383 * f-valprint.c (there_is_a_visible_common_named): Remove.
384
385 2012-09-26 Andrew Burgess <aburgess@broadcom.com>
386
387 * breakpoint.c (update_global_location_list): Ignore previous
388 duplicate status of a breakpoint when starting a new scan for
389 duplicate breakpoints.
390
391 2012-09-26 Karthik Bhat <kv.bhat@samsung.com>
392 PR breakpoints/14419
393 * arm-tdep.c (arm_skip_prologue): Extending producer check to
394 support LLVM compiler.
395
396 2012-09-26 Siddhesh Poyarekar <siddhesh@redhat.com>
397
398 * amd64-tdep.c (amd64_return_value): Use TYPE_LENGTH directly.
399 * bfin-tdep.c (bfin_extract_return_value): Likewise.
400 (bfin_store_return_value): Likewise.
401 * cris-tdep.c (cris_store_return_value): Likewise.
402 (cris_extract_return_value): Likewise.
403 * h8300-tdep.c (h8300_extract_return_value): Likewise.
404 * hppa-tdep.c (hppa64_return_value): Likewise.
405 * lm32-tdep.c (lm32_store_return_value): Likewise.
406 * microblaze-tdep.c (microblaze_store_return_value): Likewise.
407 * spu-tdep.c (spu_value_from_register): Likewise.
408 * vax-tdep.c (vax_return_value): Likewise.
409
410 2012-09-26 Siddhesh Poyarekar <siddhesh@redhat.com>
411
412 * breakpoint.c (invalidate_bp_value_on_memory_change): Expand
413 parameter LEN to ssize_t.
414
415 2012-09-25 Siddhesh Poyarekar <siddhesh@redhat.com>
416
417 * ada-valprint.c (ada_val_print_1): Eliminate single-use
418 variable LEN.
419 * alpha-tdep.c (alpha_extract_return_value): Use TYPE_LENGTH
420 directly.
421 (alpha_store_return_value): Likewise.
422 * amd64-tdep.c (amd64_classify_aggregate): Likewise.
423 (amd64_push_arguments): Likewise.
424 * ax-gdb.c (gen_trace_static_fields): Likewise.
425 (gen_traced_pop): Likewise.
426 * bfin-tdep.c (bfin_push_dummy_call): Likewise.
427 * breakpoint.c (update_watchpoint): Likewise.
428 * findcmd.c (parse_find_args): Use local variable for type
429 instead of length.
430 * findvar.c (default_read_var_value): Use TYPE_LENGTH directly.
431 * h8300-tdep.c (h8300h_extract_return_value): Likewise.
432 (h8300_store_return_value): Likewise.
433 * i386-darwin-tdep.c (i386_darwin_push_dummy_call): Likewise.
434 Use i386_darwin_arg_type_alignment directly.
435 * infcall.c (call_function_by_hand): Use TYPE_LENGTH directly.
436 * lm32-tdep.c (lm32_push_dummy_call): Likewise.
437 * m68hc11-tdep.c (m68hc11_push_dummy_call): Likewise.
438 (m68hc11_extract_return_value): Likewise.
439 * mep-tdep.c (mep_push_dummy_call): Likewise.
440 * printcmd.c (float_type_from_length): Likewise.
441 * s390-tdep.c (s390_value_from_register): Likewise.
442 * stack.c (read_frame_arg): Likewise.
443 * tracepoint.c (encode_actions_1): Likewise.
444 * valops.c (value_fetch_lazy): Use local variable for type
445 instead of length. Use TYPE_LENGTH directly.
446 * value.c (value_contents_equal): Use TYPE_LENGTH directly.
447
448 2012-09-25 Joel Brobecker <brobecker@adacore.com>
449
450 * symtab.c (skip_prologue_sal): Fix typo in comment.
451
452 2012-09-25 Joel Brobecker <brobecker@adacore.com>
453
454 * linespec.c (create_sals_line_offset): Fix typo in comment.
455
456 2012-09-25 Siddhesh Poyarekar <siddhesh@redhat.com>
457
458 * c-typeprint.c (c_type_print_varspec_suffix): Remove cast and
459 use plongest to print the array size.
460
461 2012-09-24 Siddhesh Poyarekar <siddhesh@redhat.com>
462
463 * m2-typeprint.c (m2_enum): Expand LASTVAL to LONGEST.
464 * p-valprint.c (pascal_type_print_base): Likewise.
465
466 2012-09-22 Yao Qi <yao@codesourcery.com>
467
468 * remote.c (remote_get_trace_status): Remove setting default
469 values of fields of 'ts'.
470
471 2012-09-21 Jan Kratochvil <jan.kratochvil@redhat.com>
472
473 Fix internal error on canonicalization of clang types.
474 * cp-name-parser.y (operator): New comment at make_operator call for
475 new, delete, new[] and delete[].
476 (exp): Use "sizeof ". Add new comment at make_operator call.
477
478 2012-09-21 Jan Kratochvil <jan.kratochvil@redhat.com>
479
480 Fix disassemble without parameters in tailcall frame.
481 * cli/cli-cmds.c (disassemble_current_function): Use
482 get_frame_address_in_block.
483
484 2012-09-21 Tom Tromey <tromey@redhat.com>
485
486 * c-typeprint.c (c_type_print_base) <TYPE_CODE_STRUCT,
487 TYPE_CODE_UNION>: Unify, removing a goto.
488
489 2012-09-21 Tom Tromey <tromey@redhat.com>
490
491 * c-typeprint.c (cp_type_print_derivation_info): Fix comment.
492
493 2012-09-21 Andrew Burgess <aburgess@broadcom.com>
494
495 * findvar.c (read_frame_register_value): Mark the result value as
496 optimized out if any of the input registers have been optimized out.
497
498 2012-09-21 Andreas Schwab <schwab@linux-m68k.org>
499
500 * python/python.c (finalize_python): Only define if HAVE_PYTHON.
501
502 2012-09-21 Siddhesh Poyarekar <siddhesh@redhat.com>
503
504 * eval.c (evaluate_subexp_standard): Eliminate single-use
505 variable LOWER.
506
507 2012-09-21 Yao Qi <yao@codesourcery.com>
508
509 * mi/mi-interp.c: Declare mi_record_changed.
510 (mi_interpreter_init): Call observer_attach_record_changed.
511 (mi_record_changed): New.
512 * record.c (record_open): Call observer_notify_record_changed.
513 (cmd_record_stop): Call observer_notify_record_changed.
514 * NEWS: Mention it.
515
516 2012-09-20 Tom Tromey <tromey@redhat.com>
517
518 * NEWS: Update.
519 * python/python.c (finalize_python): New function.
520 (_initialize_python): Make a final cleanup.
521
522 2012-09-19 Doug Evans <dje@google.com>
523
524 * buildsym.h (param_symbols): Delete, unused.
525 (context_stack): Delete member "params", unused.
526 * buildsym.c (push_context): Update.
527 * dwarf2read.c (read_func_scope): Update.
528
529 2012-09-19 Thomas Schwinge <thomas@codesourcery.com>
530
531 * sh-tdep.c (sh_register_convert_to_virtual)
532 (sh_register_convert_to_raw): Add a gdbarch parameter. Update
533 all callers. Just do a memcpy if not the little-endian case.
534
535 * h8300-tdep.c (h8300_gdbarch_init): Invoke
536 set_gdbarch_double_format and set_gdbarch_long_double_format.
537 * m68hc11-tdep.c (m68hc11_gdbarch_init): Invoke
538 set_gdbarch_double_format.
539 * sh-tdep.c (sh_gdbarch_init): Likewise.
540
541 * NEWS: Document the removal of SH's 'regs' command.
542 * sh-tdep.c (_initialize_sh_tdep): Remove the deprecated 'regs'
543 command.
544
545 2012-09-18 Sergio Durigan Junior <sergiodj@redhat.com>
546
547 * infcmd.c (_initialize_infcmd): Register `j' as an alias for
548 `jump'.
549
550 2012-09-18 Joel Brobecker <brobecker@adacore.com>
551
552 * linespec.c (iterate_over_all_matching_symtabs): Use the correct
553 language when iterating over symbols.
554
555 2012-09-18 Yao Qi <yao@codesourcery.com>
556
557 * mi/mi-interp.c: Declare mi_tsv_created and mi_tsv_deleted.
558 (mi_interpreter_init): Call observer_attach_tsv_created and
559 observer_attach_tsv_deleted.
560 (mi_tsv_created, mi_tsv_deleted): New.
561 * tracepoint.c (delete_trace_state_variable): Call
562 observer_notify_tsv_deleted.
563 (trace_variable_command): Call observer_notify_tsv_created.
564 (delete_trace_variable_command): Call
565 observer_notify_tsv_deleted.
566 (create_tsv_from_upload): Call observer_notify_tsv_created.
567 * NEWS: Mention it.
568
569 2012-09-18 Yao Qi <yao@codesourcery.com>
570
571 * tracepoint.c (tfind_1): Call observer_notify_traceframe_changed
572 if traceframe changed.
573 * mi/mi-cmds.c (mi_cmd mi_cmds): Adjust for command
574 "trace-find".
575 * mi/mi-interp.c: Declare 'mi_traceframe_changed'.
576 (mi_interpreter_init): Hook mi_traceframe_changed to observer
577 'traceframe_changed'.
578 (mi_traceframe_changed): New.
579 * mi/mi-main.h (struct mi_suppress_notification) <traceframe>:
580 New field.
581 * NEWS: Mention the new MI notification.
582
583 2012-09-17 Mike Wrighton <wrighton@codesourcery.com>
584
585 * MAINTAINERS (Write After Approval): Add "Mike Wrighton".
586
587 2012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
588
589 * common/linux-ptrace.c: Change __i386__ to __i386__ || __x86_64__.
590 (linux_ptrace_test_ret_to_nx): Extend comment for x86_64. Change
591 __i386__ to __i386__ || __x86_64__. Extend code also for __x86_64__.
592 Extend code also for PaX support. Convert all gdb_assert to warning
593 calls.
594
595 2012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
596
597 Implement auto-load user conveniences suggested by Doug Evans.
598 * auto-load.c: Include top.h.
599 (file_is_auto_load_safe): New variable advice_printed. Print advice.
600 (_initialize_auto_load): New variable scripts_directory_help. Mention
601 GDBPY_AUTO_FILE_NAME and GDB_AUTO_FILE_NAME for set auto-load
602 scripts-directory. Document in online help one can use also files for
603 set auto-load safe-path.
604 * python/py-auto-load.c: (GDBPY_AUTO_FILE_NAME): Move it from here ...
605 * python/python.h (GDBPY_AUTO_FILE_NAME): ... to here.
606
607 2012-09-17 Siddhesh Poyarekar <siddhesh@redhat.com>
608
609 * tic6x-tdep.c (tic6x_push_dummy_call): Remove unused definition
610 of LEN.
611
612 2012-09-17 Siddhesh Poyarekar <siddhesh@redhat.com>
613
614 * m2-valprint.c (m2_print_array_contents): Eliminate variable
615 ELTLEN and use TYPE_LENGTH directly.
616 (m2_val_print): Likewise.
617 * m68k-tdep.c (m68k_svr4_extract_return_value): Eliminate
618 variable LEN and use TYPE_LENGTH directly.
619 (m68k_svr4_store_return_value): Likewise.
620 * mips-tdep.c (mips_o32_push_dummy_call): Eliminate variable
621 ARGLEN and use TYPE_LENGTH directly.
622 (mips_o64_push_dummy_call): Likewise.
623 * s390-tdep (s390_function_arg_pass_by_reference): Eliminate
624 variable LENGTH and use TYPE_LENGTH directly.
625 (s390_function_arg_float): Likewise.
626 (s390_function_arg_integer): Likewise.
627 (s390_push_dummy_call): Likewise.
628 (s390_return_value_convention): Likewise.
629 * spu-tdep.c (spu_push_dummy_call): Eliminate LEN and use
630 TYPE_LENGTH directly.
631
632 2012-09-17 Yao Qi <yao@codesourcery.com>
633
634 * cli/cli-decode.c (add_setshow_zuinteger_unlimited_cmd): New.
635 Update comment to add_setshow_integer_cmd.
636 * cli/cli-setshow.c (do_set_command): Handle case
637 'var_zuinteger_unlimited'.
638 (do_show_command): Likewise.
639 * cli/cli-cmds.c (init_cmds): Call add_setshow_zuinteger_unlimited_cmd
640 for command 'remotetimeout'.
641 * command.h (enum var_types): New zuinteger_unlimited. Update comment
642 to var_integer.
643 * source.c (_initialize_source): Call add_setshow_zuinteger_unlimited_cmd
644 for command 'set listsize'.
645
646 2012-09-17 Siddhesh Poyarekar <siddhesh@redhat.com>
647
648 * infrun.c (restore_infcall_suspend_state): Eliminate single-use
649 variable LEN.
650
651 2012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
652
653 PR 14119
654 * frame.c (skip_inlined_frames): Skip also TAILCALL_FRAME frames.
655 (frame_pop): Drop also TAILCALL_FRAME frames.
656 * infcmd.c (finish_command): Ignore also TAILCALL_FRAME frames.
657
658 2012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
659 Pedro Alves <palves@redhat.com>
660
661 PR 14548
662 * infrun.c (handle_inferior_event): Do not reverse-continue back to the
663 function start if we are already at function start. Both for
664 reverse-next and for reverse-step into function without line number
665 info.
666
667 2012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
668
669 Code cleanup - rename 'inline' depth to 'artificial' depth.
670 * breakpoint.c (set_momentary_breakpoint): Rename at a caller to
671 frame_id_artificial_p, extend the comment.
672 * dwarf2-frame-tailcall.c (tailcall_frame_this_id): Rename at a user.
673 * frame.c (fprint_frame_id): Rename at a user, change debug output
674 text to "artificial=".
675 (skip_inlined_frames): Rename to ...
676 (skip_artificial_frames): ... here. Extend the comment.
677 (get_stack_frame_id, frame_unwind_caller_id): Rename at a caller.
678 (frame_id_inlined_p): Rename to ...
679 (frame_id_artificial_p): ... here. Rename at a user.
680 (frame_id_eq, frame_id_inner, frame_unwind_caller_pc)
681 (frame_unwind_caller_pc_if_available, frame_unwind_caller_arch): Rename
682 at a user.
683 * frame.h (struct frame_id): Rename inline_depth to artificial_depth.
684 Extend the comment.
685 (frame_id_inlined_p): Rename to ...
686 (frame_id_artificial_p): ... here.
687 * inline-frame.c (inline_frame_this_id): Rename at a user.
688
689 2012-09-14 Andrew Burgess <aburgess@broadcom.com>
690
691 * c-typeprint.c (c_type_print_varspec_suffix): Display the size of
692 vector variables using vector_size syntax rather than array
693 syntax.
694
695 2012-09-14 Siddhesh Poyarekar <siddhesh@redhat.com>
696
697 * valarith.c (value_concat): Replace unsafe ALLOCA with
698 XMALLOC/XFREE.
699
700 2012-09-14 Pedro Alves <palves@redhat.com>
701
702 * gdb.1 (SEE ALSO): Expand pointer to GDB's Texinfo manual.
703
704 2012-09-14 Khoo Yit Phang <khooyp@cs.umd.edu>
705
706 Point contrib/cc-with-tweaks.sh to the build-local data-directory.
707 * contrib/cc-with-tweaks.sh (GDB): Add -data-directory
708 data-directory as appropriate.
709
710 2012-09-14 Siddhesh Poyarekar <siddhesh@redhat.com>
711
712 * printcmd.c (ui_printf): Eliminate single-use variable
713 PARAM_LEN.
714
715 2012-09-14 Yao Qi <yao@codesourcery.com>
716 Pedro Alves <palves@redhat.com>
717
718 * valops.c (value_assign): Move observer_notify_target_changed
719 below to replace reinit_frame_cache.
720
721 2012-09-13 Khoo Yit Phang <khooyp@cs.umd.edu>
722
723 Refactor Python "gdb" module into a proper Python package, by
724 introducing a new "_gdb" module for code implemented in C, and
725 using reload/__import__ instead of exec.
726 * python/lib/gdb/__init__.py: Import * from _gdb.
727 (GdbOutputFile, sys.stdout, GdbOutputErrorFile, sys.stderr,
728 prompt_hook, sys.argv): Moved from finish_python_initialization.
729 (pretty_printers, PYTHONDIR): Moved from _initialize_python.
730 (packages, auto_load_packages): New list and function replacing
731 module_dict and auto-loading code, using __file__ instead of
732 gdb.PYTHONDIR and reload/__import__ instead of exec.
733 (GdbSetPythonDirectory): Replacing function of the same name
734 from finish_python_initialization, using reload/__import__ instead
735 of exec, as well as call auto_load_packages.
736 * python/py-prettyprint.c (find_pretty_printer_from_gdb): Check
737 gdb_python_module and not gdb_module.
738 * python/python-internal.h (gdb_python_module): Declare.
739 * python/python.c (gdb_python_module): New global.
740 (before_prompt_hook): Check gdb_python_module and not gdb_module.
741 (_initialize_python): Rename gdb module to _gdb.
742 Move gdb.PYTHONDIR and gdb.pretty_printer to lib/gdb/__init__.py.
743 (finish_python_initialization): Move Python code to
744 lib/gdb/__init__.py; instead, set up sys.path and import gdb into
745 __main__.
746
747 2012-09-13 Pedro Alves <palves@redhat.com>
748
749 * Makefile.in (COMMON_OBS): Add registry.o.
750 * registry.c: New file.
751 * registry.h (struct registry_container): Declare.
752 (registry_data_callback): New typedef.
753 (struct registry_data, struct registry_data_registration, struct
754 registry_data_registry): New type.
755 (register_data_with_cleanup, registry_alloc_data)
756 (registry_callback_adaptor, registry_clear_data)
757 (registry_container_free_data, registry_set_data, registry_data):
758 Declare.
759 (DEFINE_REGISTRY): Refactor structures and functions as shims over
760 the new common structures and functions.
761 (DECLARE_REGISTRY): Declare struct TAG ## _data. Use the tagged
762 callback typedefs.
763
764 2012-09-12 Mike Wrighton <wrighton@codesourcery.com>
765
766 * remote.c (remote_insert_hw_breakpoint): Throw exception if
767 there is an error inserting hardware breakpoints and use the
768 error message from the target.
769
770 * breakpoint.c (insert_bp_location, insert_breakpoint_locations):
771 Catch this exception and print the error message contained within. Do not
772 print the default hardware error breakpoint message in this case.
773
774 2012-09-12 Doug Evans <dje@google.com>
775
776 * dwarf2read.c (dwarf2_read_addr_index): Fix handling the case where
777 cu == NULL.
778
779 2012-09-11 Doug Evans <dje@google.com>
780
781 * dwarf2read.c (dw2_do_expand_symtabs_matching): Don't examine
782 .gdb_index symbol attributes if there are none.
783
784 2012-09-11 Joel Brobecker <brobecker@adacore.com>
785
786 * symtab.h (struct minimal_symbol) [has_size]: New field.
787 (MSYMBOL_SIZE): Adjust to forbid macro from being used as lvalue.
788 (SET_MSYMBOL_SIZE, MSYMBOL_HAS_SIZE): New macros.
789 * printcmd.c (build_address_symbolic): Only filter out zero-sized
790 minimal symbols if the symbol's size is actually known.
791 * minsyms.c (prim_record_minimal_symbol_full): Adjust setting
792 of msymbol's size field. Add comment.
793 * elfread.c (elf_symtab_read, elf_rel_plt_read): Use
794 SET_MSYMBOL_SIZE to set the minimal symbol size.
795
796 2012-09-11 Joel Brobecker <brobecker@adacore.com>
797
798 * minsyms.c (install_minimal_symbols): Use memset to fill entire
799 minimal_symbol struct object, rather than setting some of its
800 fields one by one.
801
802 2012-09-11 Andrew Burgess <aburgess@broadcom.com>
803
804 * c-typeprint.c (c_type_print_varspec_prefix): Pass through the
805 passed_a_ptr flag when displaying typedef types.
806
807 2012-09-10 Joel Brobecker <brobecker@adacore.com>
808
809 * ada-lang.c (coerce_unspec_val_to_type): Make sure that
810 the optimized_out flag is preserved.
811
812 2012-09-10 Anthony Green <green@moxielogic.com>
813
814 * moxie-tdep.c (moxie_analyze_prologue): Update for function
815 prologue changes in GCC.
816
817 2012-09-10 Keith Seitz <keiths@redhat.com>
818
819 PR gdb/13483
820 * gdbtypes.h (BOOL_PTR_CONVERSION_BADNESS): Rename to ...
821 (BOOL_CONVERSION_BADNESS): ... this.
822 * gdbtypes.c (BOOL_PTR_CONVERSION_BADNESS): Likewise.
823 (rank_one_type): Allow all boolean conversions
824 permitted by the standard.
825
826 2012-09-06 Tom Tromey <tromey@redhat.com>
827
828 * python/py-newobjfileevent.c (create_new_objfile_event_object):
829 Don't decref py_objfile.
830
831 2012-09-02 Khoo Yit Phang <khooyp@cs.umd.edu>
832
833 Do not enable -lmcheck by default when Python is enabled with
834 threading support.
835 * configure.ac: (python_has_threads) New variable, by testing
836 if WITH_THREAD is defined in Python.h.
837 Move --enable-lmcheck after --with-python.
838 Do not enable -lmcheck by default if python_has_threads=yes.
839 Warn if --enable-lmcheck and python_has_threads=yes.
840 * configure: Regenerate.
841
842 2012-08-31 Yao Qi <yao@codesourcery.com>
843
844 * mi/mi-cmds.c (mi_cmds): New macros DEF_MI_CMD_CLI
845 DEF_MI_CMD_MI DEF_MI_CMD_CLI_1 and DEF_MI_CMD_CLI_1.
846 Update some commands.
847 * mi/mi-cmds.h (struct mi_cmd) <suppress_notification>: New field.
848 * mi/mi-main.c (mi_cmd_execute): Set '*parse->cmd->suppress_notification'
849 to 1.
850
851 2012-08-31 Yao Qi <yao@codesourcery.com>
852
853 * mi/mi-cmds.c (mi_cmds): Add 'static'.
854
855 2012-08-30 Khoo Yit Phang <khooyp@cs.umd.edu>
856
857 * MAINTAINERS (Write After Approval): Add "Khoo Yit Phang".
858
859 2012-08-29 Doug Evans <dje@google.com>
860
861 * main.c (print_gdb_help): Remove reference to
862 --use-deprecated-index-sections.
863
864 2012-08-28 Yao Qi <yao@codesourcery.com>
865
866 * cli/cli-cmds.c (max_user_call_depth): Add 'unsigned'.
867 (init_cmds): Call add_setshow_uinteger_cmd for command
868 'max-user-call-depth'.
869 * cli/cli-script.c (execute_user_command): Add 'unsigned' to the
870 declaration of 'max_user_call_depth'.
871 * frame.c (backtrace_limit): Add 'unsigned'.
872 (_initialize_frame): Call add_setshow_uinteger_cmd for command
873 'limit'.
874 * remote.c (remoteaddresssize): Add 'unsigned'.
875 (remote_address_masked): Change local var 'address_size' to
876 'unsigned'.
877 (_initialize_remote): Call add_setshow_uinteger_cmd for
878 'remoteaddresssize'.
879 * top.c (history_size): Add 'unsigned'.
880 (show_commands): Change local variables to 'unsigned'.
881 (set_history_size_command): Don't check history_size is negative.
882 Adjust the condition to call unstifle_history and set history_size
883 to UNIT_MAX.
884
885 2012-08-28 Pedro Alves <palves@redhat.com>
886
887 PR gdb/14428
888
889 * infcmd.c (default_print_one_register_info): New, factored out
890 from default_print_registers_info.
891 (default_print_registers_info): Use it. Mark value unavailable if
892 necessary.
893 (registers_info): Print user registers with
894 default_print_one_register_info.
895
896 2010-08-27 H.J. Lu <hongjiu.lu@intel.com>
897
898 PR tui/14486
899 * tui/tui-source.c (tui_source_is_displayed): Check if TUI_SRC_WIN
900 is not NULL before referencing it.
901
902 2012-08-27 Jan Kratochvil <jan.kratochvil@redhat.com>
903
904 * breakpoint.c (parse_breakpoint_sals) <(*address) == NULL>: New
905 variable pc. Call find_pc_line instead of find_pc_overlay, restore
906 original PC for it.
907
908 2012-08-27 Eli Zaretskii <eliz@gnu.org>
909 Jan Kratochvil <jan.kratochvil@redhat.com>
910
911 * auto-load.c (auto_load_objfile_script): Rename to ...
912 (auto_load_objfile_script_1): ... here, change variable realname to
913 parameter realname, document it, add return value, add variable retval.
914 (auto_load_objfile_script): New function.
915
916 2012-08-27 Jan Kratochvil <jan.kratochvil@redhat.com>
917
918 * cli/cli-decode.c (print_doc_line): Keep skipping '.' and ',' not
919 followed by a whitespace.
920
921 2012-08-27 Jan Kratochvil <jan.kratochvil@redhat.com>
922
923 PR gdb/14494.
924 * dwarf2read.c (dwarf2_locate_sections): Move variable aflag here.
925 Move the SEC_HAS_CONTENTS check here - for any NAMES use.
926 (dwarf2_locate_sections) <eh_frame>: Move the variable and check from
927 here.
928
929 2012-08-27 Wei-cheng Wang <cole945@gmail.com>
930
931 * memattr.c (create_mem_region): Fix memory region overlapping
932 checking.
933
934 2012-08-24 Siddhesh Poyarekar <siddhesh@redhat.com>
935
936 * h8300-tdep.c (h8300_push_dummy_call): Replace unsafe alloca
937 with xmalloc/cleanup.
938 * mt-tdep.c (mt_push_dummy_call): Likewise.
939 * tilegx-tdep.c (tilegx_push_dummy_call): Likewise.
940 * xstormy16-tdep.c (xstormy16_push_dummy_call): Likewise.
941
942 2012-08-24 Yao Qi <yao@codesourcery.com>
943
944 * jv-exp.y (push_expression_name): Add "." at the end of error
945 message.
946
947 2012-08-23 Khoo Yit Phang <khooyp@cs.umd.edu>
948
949 Document how to return from "python-interactive" to GDB.
950 * python/python.c (_initialize_python): Update documentation.
951
952 2012-08-23 Pedro Alves <palves@redhat.com>
953
954 * infrun.c (_initialize_infrun) <handle command help text>:
955 Mention that multiple signals are supported.
956
957 2012-08-23 Pedro Alves <palves@redhat.com>
958
959 * infcmd.c (_initialize_infcmd) <signal command>: Fix typo in help
960 string.
961
962 2012-08-23 Yao Qi <yao@codesourcery.com>
963
964 * tracepoint.c (disconnect_tracing): Call set_tracepoint_num.
965 (tfind_1): Don't call registers_changed, set_traceframe_num,
966 and clear_traceframe_info.
967 Call set_current_traceframe.
968 (set_current_traceframe): call set_traceframe_num.
969
970 2012-08-22 Sergio Durigan Junior <sergiodj@redhat.com>
971
972 * remote-sim.c (_initialize_remote_sim): Pass NULL argument to
973 `register_inferior_data_with_cleanup', fixing regression on PowerPC64.
974
975 2012-08-22 Khoo Yit Phang <khooyp@cs.umd.edu>
976
977 Enable readline in Python in a GDB-specific way and block the
978 standard Python readline module to prevent conflicts with GDB.
979 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-gdb-readline.o.
980 (SUBDIR_PYTHON_SRCS): Add python/py-gdb-readline.c.
981 (py-gdb-readline.o): Add rule to compile python/py-gdb-readline.c.
982 * python/py-gdb-readline.c: New file.
983 * python/python-internal.h (gdbpy_initialize_gdb_readline): New
984 prototype.
985 * python/python.c (_initialize_python): Call
986 gdbpy_initialize_gdb_readline.
987
988 2012-08-22 Keith Seitz <keiths@redhat.com>
989
990 * defs.h: Include build-gnulib/config.h
991
992 2012-08-22 Joseph Myers <joseph@codesourcery.com>
993
994 * arm-tdep.c (thumb_get_next_pc_raw): Mask off low bits for bx pc
995 and blx pc.
996
997 2012-08-22 Khoo Yit Phang <khooyp@cs.umd.edu>
998
999 Add a new "python-interactive" command that starts a standard
1000 Python interactive prompt with "pi" as alias, and add "py" as
1001 an alias to "python".
1002 * NEWS: Mention the new commands.
1003 * python/python.c (eval_python_command): New function.
1004 (python_interactive_command): For "python-interactive" with
1005 arguments, call eval_python_command. For "python-interactive"
1006 without arguments, call PyRun_InteractiveLoop.
1007 (_initialize_python): Add "python-interactive" command with
1008 "pi" as alias, and add "py" as an alias to "python".
1009
1010 2012-08-22 Tom Tromey <tromey@redhat.com>
1011
1012 * defs.h (quit_flag): Don't declare.
1013 (clear_quit_flag, check_quit_flag, set_quit_flag): Declare.
1014 (QUIT): Use new functions.
1015 * event-top.c (command_handler): Use clear_quit_flag.
1016 (handle_sigint): Use set_quit_flag.
1017 (async_request_quit): Use check_quit_flag. Don't check
1018 immediate_quit.
1019 * exceptions.c (throw_exception): Use clear_quit_flag.
1020 * main.c (captured_main): Use clear_quit_flag.
1021 * python/python.c (clear_quit_flag, set_quit_flag)
1022 (check_quit_flag): New functions.
1023 * remote-sim.c (gdb_os_poll_quit): Use check_quit_flag,
1024 clear_quit_flag.
1025 * remote.c (remote_wait_as): Use check_quit_flag,
1026 clear_quit_flag.
1027 (remote_start_remote): Call QUIT.
1028 * symfile.c (load_progress): Use check_quit_flag.
1029 * top.c (command_loop): Use clear_quit_flag.
1030 (command_line_input): Call QUIT.
1031 * utils.c (quit_flag): Conditionally define.
1032 (clear_quit_flag, check_quit_flag, set_quit_flag): New
1033 functions.
1034 (prompt_for_continue): Call QUIT. Use quit, not
1035 async_request_quit.
1036 * remote-mips.c (mips_expect_timeout): Call QUIT.
1037 * monitor.c (monitor_expect): Call QUIT.
1038
1039 2012-08-22 Tom Tromey <tromey@redhat.com>
1040
1041 * event-top.c (sigwinch_token, handle_sigwinch): Remove.
1042 (async_init_signals): Update.
1043 * utils.c (init_page_info): Don't use SIGWINCH_HANDLER.
1044 (SIGWINCH_HANDLER_BODY): Remove.
1045
1046 2012-08-22 Tom Tromey <tromey@redhat.com>
1047
1048 * jit.c (jit_object_close_impl): Don't malloc the objfile
1049 name.
1050 * objfiles.c (allocate_objfile): Don't malloc the objfile
1051 name.
1052 (free_objfile): Don't free the objfile name.
1053 * objfiles.h (struct objfile) <name>: Update comment.
1054 * symfile.c (reread_symbols): Fix reference counting. Don't
1055 malloc objfile name.
1056
1057 2012-08-22 Tom Tromey <tromey@redhat.com>
1058
1059 * windows-nat.c (windows_make_so): Use gdb_bfd_open.
1060 * symfile.c (bfd_open_maybe_remote): Use gdb_bfd_open.
1061 (symfile_bfd_open): Likewise.
1062 (generic_load): Likewise.
1063 * solib.c (solib_bfd_fopen): Use gdb_bfd_open.
1064 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
1065 gdb_bfd_open.
1066 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
1067 Use gdb_bfd_open.
1068 * rs6000-nat.c (add_vmap): Use gdb_bfd_open.
1069 * remote-mips.c (mips_load_srec): Use gdb_bfd_open.
1070 (pmon_load_fast): Likewise.
1071 * remote-m32r-sdi.c (m32r_load): Use gdb_bfd_open.
1072 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_open.
1073 * machoread.c (macho_symfile_read_all_oso): Use gdb_bfd_open.
1074 (macho_check_dsym): Likewise.
1075 * m32r-rom.c (m32r_load): Use gdb_bfd_open.
1076 (m32r_upload_command): Likewise.
1077 * gdb_bfd.h (gdb_bfd_cache): Declare.
1078 * gdb_bfd.c (struct gdb_bfd_data): New.
1079 (gdb_bfd_cache): New global.
1080 (struct gdb_bfd_cache_search): New.
1081 (hash_bfd): New function.
1082 (eq_bfd): Likewise.
1083 (gdb_bfd_open): Likewise.
1084 (gdb_bfd_ref): Allocate a gdb_bfd_data and attach to the BFD.
1085 (gdb_bfd_unref): Remove closed BFD from cache. Update for
1086 gdb_bfd_data.
1087 * exec.c (exec_file_attach): Use gdb_bfd_open.
1088 * dsrec.c (load_srec): Use gdb_bfd_open.
1089
1090 2012-08-22 Tom Tromey <tromey@redhat.com>
1091
1092 * dwarf2read.c (macro_start_file): Update.
1093 * objfiles.c (get_objfile_bfd_data): Initialize macro_cache.
1094 (free_objfile_per_bfd_storage): Destroy macro_cache.
1095 (allocate_objfile, free_objfile): Update.
1096 * objfiles.h (struct objfile_per_bfd_storage) <macro_cache>:
1097 New field.
1098 (struct objfile) <macro_cache>: Remove.
1099 * symfile.c (reread_symbols): Update.
1100 * symmisc.c (print_symbol_bcache_statistics): Update.
1101 (print_objfile_statistics): Update.
1102
1103 2012-08-22 Tom Tromey <tromey@redhat.com>
1104
1105 * elfread.c (elf_symtab_read): Update.
1106 * objfiles.c (objfiles_bfd_data): New global.
1107 (get_objfile_bfd_data, free_objfile_per_bfd_storage)
1108 (objfile_bfd_data_free, set_objfile_per_bfd): New functions.
1109 (allocate_objfile, free_objfile): Update.
1110 (_initialize_objfiles): Initialize objfiles_bfd_data.
1111 * objfiles.h (struct objfile_per_bfd_storage): New.
1112 (struct objfile) <per_bfd>: New field.
1113 <filename_cache>: Remove.
1114 (set_objfile_per_bfd): Declare.
1115 * symfile.c (reread_symbols): Update. Call
1116 set_objfile_per_bfd.
1117 (allocate_symtab): Update.
1118 * symmisc.c (print_symbol_bcache_statistics): Update.
1119 (print_objfile_statistics): Print the size of the BFD obstack.
1120
1121 2012-08-22 Tom Tromey <tromey@redhat.com>
1122
1123 * gdb_bfd.h: Include registry.h. Use DECLARE_REGISTRY.
1124 * gdb_bfd.c: Use DEFINE_REGISTRY.
1125 (struct gdb_bfd_data): Add REGISTRY_FIELDS.
1126 (gdb_bfd_ref): Call bfd_alloc_data.
1127 (gdb_bfd_unref): Call bfd_free_data.
1128
1129 2012-08-22 Tom Tromey <tromey@redhat.com>
1130
1131 * registry.h (struct registry_fields): New.
1132 (REGISTRY_FIELDS): Redefine.
1133 (REGISTRY_ACCESS_FIELD): New macro.
1134 (DEFINE_REGISTRY): Add ACCESS argument. Update defined
1135 functions.
1136
1137 2012-08-22 Tom Tromey <tromey@redhat.com>
1138
1139 * auto-load.c (_initialize_auto_load): Update.
1140 * solib-svr4.c (_initialize_svr4_solib): Update
1141 * solib-dsbt.c (_initialize_dsbt_solib): Update.
1142 * solib-darwin.c (_initialize_darwin_solib): Update.
1143 * registry.h: New file.
1144 * python/py-progspace.c (gdbpy_initialize_pspace): Update.
1145 * python/py-inferior.c (gdbpy_initialize_inferior): Update.
1146 * progspace.h: Include registry.h. Use DECLARE_REGISTRY.
1147 (register_program_space_data_with_cleanup)
1148 (register_program_space_data, program_space_alloc_data)
1149 (clear_program_space_data, set_program_space_data)
1150 (program_space_data): Don't declare.
1151 * progspace.c: Use DEFINE_REGISTRY.
1152 (struct program_space_data, struct
1153 program_space_data_registration, struct
1154 program_space_data_registry, program_space_data_registry)
1155 (register_program_space_data_with_cleanup)
1156 (register_program_space_data, program_space_alloc_data)
1157 (program_space_free_data, clear_program_space_data)
1158 (set_program_space_data, program_space_data): Remove.
1159 * objfiles.h: Include registry.h. Use DECLARE_REGISTRY.
1160 (struct objfile) <data, num_data>: Replace with REGISTRY_FIELDS.
1161 (register_objfile_data_with_cleanup, register_objfile_data)
1162 (clear_objfile_data, set_objfile_data, objfile_data): Don't
1163 declare.
1164 * objfiles.c: Use DEFINE_REGISTRY.
1165 (struct objfile_data, struct objfile_data_registration, struct
1166 objfile_data_registry, objfile_data_registry)
1167 (register_objfile_data_with_cleanup, register_objfile_data)
1168 (objfile_alloc_data, objfile_free_data, clear_objfile_data)
1169 (set_objfile_data, objfile_data): Remove.
1170 (_initialize_objfiles): Update.
1171 * jit.c (_initialize_jit): Update.
1172 * inflow.c (_initialize_inflow): Update.
1173 * inferior.h: Include registry.h. Use DECLARE_REGISTRY.
1174 (struct inferior) <data, num_data>: Replace with REGISTRY_FIELDS.
1175 (register_inferior_data_with_cleanup, register_inferior_data)
1176 (clear_inferior_data, set_inferior_data, inferior_data): Don't
1177 declare.
1178 * inferior.c: Use DEFINE_REGISTRY.
1179 (struct inferior_data, struct inferior_data_registration, struct
1180 inferior_data_registry, inferior_data_registry)
1181 (register_inferior_data_with_cleanup, register_inferior_data)
1182 (inferior_alloc_data, inferior_free_data clear_inferior_data)
1183 (set_inferior_data, inferior_data): Remove.
1184 * auxv.c (_initialize_auxv): Update.
1185 * ada-lang.c (_initialize_ada_language): Update.
1186 * breakpoint.c (_initialize_breakpoint): Update.
1187 * i386-nat.c (i386_use_watchpoints): Update.
1188
1189 2012-08-22 Tom Tromey <tromey@redhat.com>
1190
1191 * exec.c (exec_close, exec_file_attach): Update.
1192 (add_to_section_table): Initialize 'key' field.
1193 (add_target_sections, remove_target_sections): Add 'key' argument.
1194 * exec.h (add_target_sections, remove_target_sections): Add
1195 'key' argument.
1196 * solib.c (solib_map_sections, update_solib_list, clear_solib)
1197 (reload_shared_libraries_1): Update.
1198 * target.h (struct target_section) <key>: New field.
1199
1200 2012-08-22 Tom Tromey <tromey@redhat.com>
1201
1202 * cli/cli-cmds.c (filter_sals): Handle nelts == 0 case.
1203
1204 2012-08-21 Pierre Muller <muller@ics.u-strasbg.fr>
1205
1206 * symfile.c (allocate_symtab): Use host_address_to_string
1207 function instead of cast of pointer to long which is not
1208 compatible with x86_64-w64-mingw32 build.
1209
1210 2012-08-19 Andrew Pinski <apinski@cavium.com>
1211
1212 * mips-tdep.c (is_octeon): New function.
1213 (is_octeon_bbit_op): New function.
1214 (mips32_next_pc): Handle Octeon's bbit instructions.
1215 (mips32_instruction_has_delay_slot): Likewise.
1216
1217 2012-08-19 Andrew Pinski <apinski@cavium.com>
1218
1219 * mips-tdep.c (mips32_next_pc): Fix line spacing of the comment
1220 before the function.
1221
1222 2012-08-19 Andrew Pinski <apinski@cavium.com>
1223
1224 * mips-tdep.c (mips32_next_pc): Consolidate calls to itype_op.
1225
1226 2012-08-19 Keith Seitz <keiths@redhat.com>
1227
1228 PR c++/14365
1229 * c-typeprint.c (c_type_print_varspec_prefix): Pass
1230 -1 for SHOW to c_type_print_base for METHODPTR and MEMBERPTR.
1231
1232 2012-08-18 Eli Zaretskii <eliz@gnu.org>
1233
1234 * Makefile.in (HFILES_NO_SRCDIR): Fix a typo: golang.h -> go-lang.h.
1235 The typo broke "make TAGS".
1236
1237 2012-08-17 Joel Brobecker <brobecker@adacore.com>
1238
1239 GDB 7.5 released.
1240
1241 2012-08-17 Keith Seitz <keiths@redhat.com>
1242
1243 PR c++/13356
1244 * gdbtypes.c (strict_type_checking): New variable.
1245 (show_strict_type_checking): New function.
1246 (rank_one_type): Return NS_POINTER_INTEGER_CONVERSION_BADNESS
1247 if strict type checking is disabled.
1248 (_initialize_gdbtypes): Add "check type" subcommand.
1249 * gdbtypes.h (NS_INTEGER_POINTER_CONVERSION_BADNESS): New struct.
1250
1251 2012-08-17 Keith Seitz <keiths@redhat.com>
1252
1253 * language.h (type_mode): Remove.
1254 (type_check): Remove.
1255 (struct language_defn): Remove la_type_check.
1256 (STRICT_TYPE): Remove unused macro.
1257 (type_error): Remove.
1258 * language.c (set_type_range_case): Renamed to ...
1259 (set_range_case): ... this. Update all callers.
1260 Remove type_mode/type_check.
1261 (type_mode): Remove.
1262 (type_check): Remove.
1263 (show_type_command): Remove.
1264 (set_type_command): Remove.
1265 (language_info): Remove type checking output.
1266 (type_error): Remove unused function.
1267 (range_error): Update comment.
1268 (unknown_language_defn): Remove la_type_check.
1269 (auto_language_defn): Likewise.
1270 (local_language_defn): Likewise.
1271 (_initialize_language): Remove "check type" subcommand.
1272 * ada-lang.c (ada_language_defn): Remove la_type_check.
1273 * c-lang.c (c_language_defn): Likewise.
1274 (cplus_language_defn): Likewise.
1275 (asm_language_defn): Likewise.
1276 (minimal_language_defn): Likewise.
1277 * d-lang.c (d_language_defn): Likewise.
1278 * f-lang.c (f_language_defn): Likewise.
1279 * go-lang.c (go_language_defn): Likewise.
1280 * jv-lang.c (java_language_defn): Likewise.
1281 * m2-lang.c (m2_language_defn): Likewise.
1282 * objc-lang.c (objc_language_defn): Likewise.
1283 * opencl-lang.c (opencl_language_defn): Likewise.
1284 * p-lang.c (pascal_language_defn): Likewise.
1285
1286 2012-08-16 Mike Frysinger <vapier@gentoo.org>
1287
1288 * infcmd.c (_initialize_infcmd): Remove trailing ) in next help text.
1289
1290 2012-08-16 Joel Brobecker <brobecker@adacore.com>
1291
1292 * ia64-hpux-nat.c (ia64_hpux_get_register_from_save_state_t):
1293 New function.
1294 (ia64_hpux_xfer_memory): Check if inferior_ptid is known before
1295 using the regache. Use ia64_hpux_get_register_from_save_state_t
1296 to access the bsp and bspstore registers if not.
1297
1298 2012-08-16 Joel Brobecker <brobecker@adacore.com>
1299
1300 * breakpoint.h (detach_breakpoints): pid parameter is now a ptid.
1301 * breakpoint.c (detach_breakpoints): Change pid parameter into
1302 a ptid. Adjust code accordingly.
1303 * infrun.c (handle_inferior_event): Delete variable child_pid.
1304 Update call to detach_breakpoints to pass the child ptid for
1305 fork events.
1306 * linux-nat.c (linux_nat_iterate_watchpoint_lwps): Remove
1307 assert that inferior_ptid's lwp is zero.
1308 (linux_handle_extended_wait): Update call to detach_breakpoints.
1309 * inf-ttrace.c (inf_ttrace_follow_fork): Update call to
1310 detach_breakpoints.
1311
1312 2012-08-16 Joel Brobecker <brobecker@adacore.com>
1313
1314 * inf-ttrace.c (inf_ttrace_follow_fork): When following the
1315 parent, only call detach_breakpoints if tts.tts_event ==
1316 TTEVT_VFORK.
1317
1318 2012-08-16 Joel Brobecker <brobecker@adacore.com>
1319
1320 * dwarf2-frame.c (dwarf2_frame_cache): Use
1321 get_frame_address_in_block instead of get_frame_pc as
1322 the bound for executing the frame's FDE.
1323
1324 2012-08-16 Yao Qi <yao@codesourcery.com>
1325
1326 * gdbtypes.h (enum type_code): Define TYPE_CODE_BITSTRING -1.
1327 * arm-tdep.c (arm_type_align): Remove code handling TYPE_CODE_BITSTRING.
1328 * c-typeprint.c (c_type_print_varspec_prefix): Likewise.
1329 (c_type_print_varspec_suffix): Likewise.
1330 * eval.c (evaluate_subexp_standard): Likewise.
1331 * f-typeprint.c (f_type_print_varspec_prefix): Likewise.
1332 (f_type_print_varspec_suffix): Likewise.
1333 * gdbtypes.c (is_scalar_type): Likewise.
1334 (recursive_dump_type): Likewise.
1335 * infcall.c (value_arg_coerce): Likewise.
1336 * m2-valprint.c (m2_val_print): Likewise.
1337 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
1338 (pascal_type_print_varspec_suffix): Likewise.
1339 (pascal_type_print_base): Likewise.
1340 * p-valprint.c (pascal_val_print): Likewise.
1341 (pascal_val_print): Likewise.
1342 * valops.c (value_slice): Likewise.
1343 * valprint.c (scalar_type_p): Likewise.
1344 * valarith.c (value_bitstring_subscript): Remove.
1345 (value_concat): Remove code handling TYPE_CODE_BITSTRING.
1346 Remove comment on TYPE_CODE_BITSTRING.
1347
1348 * stabsread.c (read_type): Don't set TYPE_CODE (type) to
1349 TYPE_CODE_BITSTRING.
1350
1351 * python/py-type.c (pyty_codes): Move ENTRY (TYPE_CODE_BITSTRING) to
1352 slot 0.
1353
1354 2012-08-16 Yao Qi <yao@codesourcery.com>
1355
1356 * tracepoint.c (trace_find_none_command): Remove.
1357 (_initialize_tracepoint): Call add_alias_cmd for "tfind none".
1358
1359 2012-08-16 Yao Qi <yao@codesourcery.com>
1360
1361 * remote.c (handle_notification): Remove parameter 'length'.
1362 (putpkt_binary, getpkt_or_notif_sane_1): Caller update.
1363
1364 2012-08-15 Keith Seitz <keiths@redhat.com>
1365
1366 * gdbtypes.c (opaque_type_resolution): Make static.
1367 Add missing comment.
1368 (overload_debug): Add missing comment.
1369 (show_opaque_type_resolution): Likewise.
1370 (show_overload_debug): Likewise.
1371 (print_bit_vector): Remove unnecessary forward declaration.
1372 (print_arg_types): Likewise.
1373 (dump_fn_fieldlists): Likewise.
1374 (print_cplus_stuff): Likewise.
1375
1376 2012-08-15 Tom Tromey <tromey@redhat.com>
1377
1378 * gdb_bfd.c (struct gdb_bfd_data) <archive_bfd>: New field.
1379 (gdb_bfd_ref): Initialize new field.
1380 (gdb_bfd_unref): Unref the archive BFD.
1381 (gdb_bfd_openr_next_archived_file): Acquire a reference to the
1382 parent archive.
1383
1384 2012-08-15 Tom Tromey <tromey@redhat.com>
1385
1386 PR python/14387:
1387 * python/py-bpevent.c (create_breakpoint_event_object): Update
1388 comment.
1389 * python/py-event.c (evpy_add_attribute): Update comment.
1390 * python/py-exitedevent.c (create_exited_event_object): Fix
1391 reference counting and error handling.
1392 * python/py-newobjfileevent.c (create_new_objfile_event_object):
1393 Fix reference counting.
1394 * python/py-signalevent.c (create_signal_event_object): Fix
1395 reference counting and error handling.
1396 * python/py-stopevent.c (emit_stop_event): Fix reference
1397 counting.
1398 * python/py-threadevent.c (get_event_thread): Return a
1399 borrowed reference.
1400 * python/py-type.c (convert_field): Fix reference counting.
1401
1402 2012-08-15 Tom Tromey <tromey@redhat.com>
1403
1404 * dwarf2read.c (dwarf_decode_macro_bytes)
1405 <DW_MACRO_GNU_transparent_include>: Use pointer to included data
1406 as hash key.
1407
1408 2012-08-14 Mike Frysinger <vapier@gentoo.org>
1409
1410 * infcmd.c (_initialize_infcmd): Update help text for the signal,
1411 stepi, nexti, finish, next, step, jump, and continue commands.
1412 * infrun.c (_initialize_infrun): Update help text for the handle
1413 command.
1414
1415 2012-08-14 Doug Evans <dje@google.com>
1416
1417 * gdbtypes.c (struct extra): Delete, unused.
1418
1419 * gdbtypes.c: Whitespace cleanup.
1420 (address_space_name_to_int): Remove "extern" from definition.
1421 (_initialize_gdbtypes): Declare with initialize_file_ftype.
1422
1423 * gdbtypes.c (make_pointer_type): Remove redundant setting of
1424 TYPE_POINTER_TYPE (type).
1425
1426 2012-08-14 Gary Benson <gbenson@redhat.com>
1427
1428 * solib-svr4.c (svr4_free_library_list): Use free_so.
1429
1430 2012-08-13 Mike Frysinger <vapier@gentoo.org>
1431
1432 * .gitignore: Add go-exp.c.
1433
1434 2012-08-13 Doug Evans <dje@google.com>
1435
1436 * value.c (show_convenience): Tweak comment.
1437 (_initialize_values): Mention convenience functions in the help text
1438 for "show convenience".
1439
1440 2012-08-13 Yao Qi <yao@codesourcery.com>
1441
1442 * std-operator.def: Remove TERNOP_SLICE_COUNT.
1443 * breakpoint.c (watchpoint_exp_is_const): Remove handling to
1444 TERNOP_SLICE_COUNT.
1445 * eval.c (evaluate_subexp_standard): Likewise.
1446 * expprint.c (print_subexp_standard): Likewise.
1447 (dump_subexp_body_standard): Likewise.
1448 * parse.c (operator_length_standard): Likewise.
1449
1450 2012-08-13 Yao Qi <yao@codesourcery.com>
1451
1452 * std-operator.def: Remove OP_BITSTRING.
1453 * breakpoint.c (watchpoint_exp_is_const): Update.
1454 * eval.c (evaluate_subexp_standard): Remove handling to
1455 OP_BITSTRING.
1456 * expprint.c (print_subexp_standard): Likewise.
1457 (dump_subexp_body_standard): Likewise.
1458 * parse.c (operator_length_standard): Likewise.
1459 * valops.c (value_bitstring): Remove.
1460 * value.h: Remove the declaration of 'value_bitstring'.
1461
1462 2012-08-10 Sergio Durigan Junior <sergiodj@redhat.com>
1463
1464 * linespec.c (find_methods): Remove unused variables `i1' and
1465 `name_len'.
1466 (decode_line_full): Likewise for `arg_start'.
1467
1468 2012-08-10 Sergio Durigan Junior <sergiodj@redhat.com>
1469
1470 * gdb_bfd.c (gdb_bfd_unref): Remove unused variable `slot'.
1471 (zlib_decompress_section): Likewise for `section_data'.
1472 (gdb_bfd_map_section): Likewise for `buf' and `retbuf'.
1473
1474 2012-08-10 Doug Evans <dje@google.com>
1475
1476 Add $_memeq, $_regex, $_streq, $_strlen convenience functions.
1477 * NEWS: Document them.
1478 * data-directory/Makefile.in (PYTHON_FILES): Add function/__init__.py,
1479 function/strfns.py.
1480 * python/py-type.c (typy_array_1): New function.
1481 (typy_array): Call it.
1482 (typy_vector): New function.
1483 (type_object_methods): Add "vector".
1484 * python/lib/gdb/function/__init__.py: New file.
1485 * python/lib/gdb/function/strfns.py: New file.
1486
1487 2012-08-10 Siddhesh Poyarekar <siddhesh@redhat.com>
1488
1489 * python/py-type.c (convert_field): Use gdb_py_long_from_longest
1490 for TYPE_FIELD_BITPOS.
1491 (typy_get_sizeof): Likewise for TYPE_LENGTH.
1492
1493 2012-08-10 Mike Frysinger <vapier@gentoo.org>
1494
1495 PR cli/10436:
1496 * common/vec.h (VEC_merge): Define.
1497 (DEF_VEC_ALLOC_FUNC_I): Add a merge helper.
1498 (DEF_VEC_ALLOC_FUNC_P): Likewise.
1499 (DEF_VEC_ALLOC_FUNC_O): Likewise.
1500 * completer.c: Include gdb_signals.h.
1501 (signal_completer): Define.
1502 * completer.h (signal_completer): Add prototype.
1503 * infcmd.c (_initialize_infcmd): Assign the command
1504 completer for "signal" to handle_completer.
1505 * infrun.c: Include completer.h.
1506 (handle_completer): Define.
1507 (_initialize_infrun): Declare a new local variable c. Store the
1508 result of add_com("handle") to it. Assign the command
1509 completer for "handle" to handle_completer.
1510
1511 2012-08-09 Yao Qi <yao@codesourcery.com>
1512
1513 * cli/cli-decode.c (set_cmd_prefix): New.
1514 (lookup_cmd_for_prefixlist): New.
1515 (add_prefix_cmd): Call set_cmd_prefix and update field 'prefix'
1516 of each cmd_list_element in *prefixlist.
1517 (add_setshow_cmd_full): set_cmd_prefix.
1518 (add_alias_cmd): Likewise.
1519 * cli/cli-decode.h (struct cmd_list_element) <prefix>: New field.
1520 Declare 'auto_boolean_enums'.
1521 * cli/cli-setshow.c: Include "observer.h".
1522 (notify_command_param_changed_p): New.
1523 (add_setshow_auto_boolean_cmd): Move auto_boolean_enums out.
1524 Remove 'static'.
1525 (do_setshow_command): Split it to ...
1526 (do_set_command, do_show_command): ... them. New.
1527 (do_set_command): Call observer_notify_command_param_changed if
1528 notify_command_param_changed_p returns true.
1529 (cmd_show_list): Caller update.
1530 * auto-load.c (set_auto_load_cmd): Likewise.
1531 * remote.c (show_remote_cmd): Likewise.
1532 * cli/cli-setshow.h: Update declarations.
1533 * top.c (execute_command): Call do_set_command and do_show_command.
1534
1535 * NEWS: Mention new MI notification.
1536 * mi/mi-interp.c: Declare mi_command_param_changed.
1537 (mi_interpreter_init): Attach mi_command_param_changed to
1538 observer command_param_changed.
1539 (mi_command_param_changed): New.
1540 Remove mi_suppress_breakpoint_notifications.
1541 Define global variable mi_suppress_notification.
1542 (mi_breakpoint_created): Update.
1543 (mi_breakpoint_deleted): Likewise.
1544 (mi_breakpoint_modified): Likewise.
1545 * mi/mi-main.c (mi_cmd_execute): Likewise. Check command
1546 'gdb-set' and set mi_suppress_notification.
1547 * mi/mi-main.h: (mi_suppress_notification): New struct.
1548
1549 2012-08-09 Andreas Tobler <andreast@fgznet.ch>
1550 Jan Kratochvil <jan.kratochvil@redhat.com>
1551
1552 * fbsd-nat.h (fbsd_find_memory_regions): Use find_memory_region_ftype.
1553
1554 2012-08-09 Yao Qi <yao@codesourcery.com>
1555
1556 * cli/cli-cmds.c (enablebreaklist): Move it to breakpoint.c.
1557 (skiplist): Move it to skip.c.
1558 (init_cmd_lists): Remove code setting enablebreaklist and
1559 skiplist to NULL.
1560 * breakpoint.c (enablebreaklist): Moved from cli/cli-cmds.c.
1561 * cli/cli-cmds.h: Remove declaration of enablebreaklist and
1562 skiplist.
1563 * gdbcmd.h: Likewise.
1564 * skip.c (_initialize_step_skip): Move 'skiplist' from
1565 cli/cli-cmds.c.
1566
1567 2012-08-09 Yao Qi <yao@codesourcery.com>
1568
1569 * cli/cli-dump.c: Add 'static' to some cmd_list_element variables.
1570 * gnu-nat.c, symfile.c: Likewise.
1571
1572 2012-08-08 Aaron Gamble <agamble@google.com>
1573
1574 * utils.c (prompt_for_continue_wait_time): New static global.
1575 (make_command_stats_cleanup): Initialize it.
1576 (report_command_stats): Subtract time waiting for user.
1577 (prompt_for_continue): Track time waiting for user.
1578 (defaulted_query): Track time waiting for user.
1579
1580 2012-08-08 Doug Evans <dje@google.com>
1581
1582 * eval.c (evaluate_subexp_standard): Fix thinko in handling
1583 UNOP_MEMVAL_TYPE.
1584 * expprint.c (print_subexp_standard, case OP_TYPE): New.
1585 (print_subexp_standard, case UNOP_CAST_TYPE): Don't increment pos.
1586 (print_subexp_standard, case UNOP_DYNAMIC_CAST): Ditto.
1587 (print_subexp_standard, case UNOP_REINTERPRET_CAST): Ditto.
1588 (print_subexp_standard, case UNOP_MEMVAL_TYPE): Ditto.
1589 (dump_subexp_body_standard, case UNOP_DYNAMIC_CAST): Don't increment
1590 elt.
1591 (dump_subexp_body_standard, case UNOP_REINTERPRET_CAST): Ditto.
1592 (dump_subexp_body_standard, case UNOP_CAST_TYPE): Ditto.
1593 (dump_subexp_body_standard, case UNOP_MEMVAL_TYPE): Ditto.
1594 (dump_prefix_expression): Handle OP_TYPE.
1595
1596 2012-08-08 Keith Seitz <keiths@redhat.com>
1597
1598 * breakpoint.c (parse_breakpoint_sals): Remove unused variable
1599 addr_start.
1600
1601 2012-08-08 Doug Evans <dje@google.com>
1602
1603 * linux-thread-db.c: #include "gdb_vecs.h".
1604 (try_thread_db_load_from_pdir_1): New arg "subdir". All callers
1605 updated.
1606 (try_thread_db_load_from_pdir): New arg "subdir". All callers updated.
1607 (thread_db_load_search): Use a vector to iterate over path elements.
1608 Handle text appearing after "$pdir".
1609
1610 * gdb_string.h: Moved to ...
1611 * common/gdb_string.h: ... here.
1612 * common/vec.h: Remove #ifndef GDBSERVER conditional inclusion of
1613 gdb_string.h and gdb_assert.h.
1614
1615 2012-08-08 Yao Qi <yao@codesourcery.com>
1616
1617 * tic6x-tdep.c (tic6x_register_to_value): Remove.
1618 (tic6x_value_to_register): Likewise.
1619 (tic6x_gdbarch_init): Don't call set_gdbarch_register_to_value
1620 and set_gdbarch_value_to_register.
1621
1622 2012-08-07 Jan Kratochvil <jan.kratochvil@redhat.com>
1623 Jean-Marc Saffroy <saffroy@gmail.com>
1624
1625 PR 11804
1626 * defs.h (find_memory_region_ftype): New comment. New arg modified.
1627 * fbsd-nat.c (fbsd_find_memory_regions): Add the passed modified value.
1628 * gcore.c (gcore_create_callback): New function comment. Add modified
1629 parameter. Only write modified regions. Set SEC_READONLY exactly
1630 according to MODIFIED.
1631 (objfile_find_memory_regions): Ignore separate debug info files. Ass
1632 the passed modified value to FUNC.
1633 * gnu-nat.c (gnu_find_memory_regions): Add the passed modified value.
1634 * linux-tdep.c (linux_find_memory_regions): Try to reads smaps file
1635 first. New variables modified and has_anonymous. Parse the lines of
1636 smaps file. Add the passed MODIFIED value to FUNC.
1637 * procfs.c (find_memory_regions_callback): Add the passed modified
1638 value.
1639
1640 2012-08-06 Tom Tromey <tromey@redhat.com>
1641
1642 * dwarf2-frame.c (clear_pointer_cleanup): New function.
1643 (dwarf2_frame_cache): Use it.
1644 * frame-unwind.h (frame_sniffer_ftype): Document prologue
1645 cache initialization constraint.
1646
1647 2012-08-06 Tom Tromey <tromey@redhat.com>
1648
1649 PR python/14386:
1650 * varobj.c (update_dynamic_varobj_children): Don't call
1651 PyIter_Check.
1652
1653 2012-08-06 Tom Tromey <tromey@redhat.com>
1654
1655 PR cli/14392:
1656 * cli/cli-cmds.c (list_command): Filter 'sals_end'.
1657
1658 2012-08-06 Nathaniel Flath <flat0103@gmail.com>
1659
1660 * NEWS: New entry for 'cd' default parameters.
1661 * cli/cli-cmds.c (cd_command): Replace error_no_arg by DIR assignment.
1662
1663 2012-08-03 Tom Tromey <tromey@redhat.com>
1664
1665 * dwarf2-frame.c (dwarf2_frame_cache): Call do_cleanups before
1666 return.
1667
1668 2012-08-02 Ulrich Weigand <ulrich.weigand@linaro.org>
1669
1670 * inf-child.c (inf_child_fileio_pwrite): If pwrite fails, fall back
1671 to attempting lseek/write.
1672 (inf_child_fileio_pread): Likewise for pread.
1673
1674 2012-08-02 Yao Qi <yao@codesourcery.com>
1675
1676 * dwarf2loc.c (entry_values_debug): Add 'unsigned'.
1677 (_initialize_dwarf2loc): Call add_setshow_zuinteger_cmd instead of
1678 add_setshow_zinteger_cmd.
1679 * dwarf2loc.h: Update the declaration of 'entry_values_debug'.
1680 * dwarf2read.c (dwarf2_die_debug): Add 'unsigned'.
1681 (_initialize_dwarf2_read): Call add_setshow_zuinteger_cmd
1682 instead of add_setshow_zinteger_cmd.
1683 * darwin-nat.c (dwarwin_debug_flag): Add 'unsigned'.
1684 (_initialize_darwin_inferior): Call add_setshow_zuinteger_cmd
1685 instead of add_setshow_zinteger_cmd.
1686 * frame.c (frame_debug): Add 'unsigned'.
1687 (_intialize_frame): Call add_setshow_zuinteger_cmd instead of
1688 add_setshow_zinteger_cmd.
1689 * frame.h: Update the declaration of 'frame_debug'.
1690 * gdbtypes.c (overload_debug): Add 'unsigned'.
1691 (_initialize_gdbtypes): Call add_setshow_zuinteger_cmd instead of
1692 add_setshow_zinteger_cmd.
1693 * inferior.h: Update declaration of 'debug_infrun'.
1694 * infrun.c (debug_infrun): Add 'unsigned'.
1695 (_initialize_infrun): Call add_setshow_zuinteger_cmd instead of
1696 add_setshow_zinteger_cmd.
1697 * jit.c (jit_debug): Add 'unsigned'.
1698 (_initialize_jit): Call add_setshow_zuinteger_cmd instead of
1699 add_setshow_zinteger_cmd.
1700 * linux-nat.c (debug_linux_nat): Add 'unsigned'.
1701 (_initialize_linux_nat): Call add_setshow_zuinteger_cmd
1702 instead of add_setshow_zinteger_cmd.
1703 * linux-thread-db.c (libthread_db_debug): Add 'unsigned'.
1704 (_initialize_thread_db): Call add_setshow_zuinteger_cmd instead of
1705 add_setshow_zinteger_cmd.
1706 * machoread.c (mach_o_debug_level): Add 'unsigned'.
1707 (_initialize_machoread): Call add_setshow_zuinteger_cmd
1708 instead of add_setshow_zinteger_cmd.
1709 * mi/mi-cmd-var.c: Update the declaration of 'varobjdebug'.
1710 * microblaze-tdep.c (microblaze_debug_flag): Add 'unsigned'.
1711 (_initialize_microblaze_tdep): Call add_setshow_zuinteger_cmd
1712 intead of add_setshow_zinteger_cmd.
1713 * mips-tdep.c (mips_debug): Add 'unsigned'.
1714 (_initialize_mips_tdep): Call add_setshow_zuinteger_cmd
1715 instead of add_setshow_zinteger_cmd.
1716 * monitor.c (monitor_debug): Add 'unsigned'.
1717 (_initialize_remote_monitors): Call add_setshow_zuinteger_cmd instead of
1718 add_setshow_zinteger_cmd.
1719 * observer.c (observer_debug): Add 'unsigned'.
1720 (_initialize_observer): Call add_setshow_zuinteger_cmd instead of
1721 add_setshow_zinteger_cmd.
1722 * parse.c (expressiondebug): Add 'unsigned'.
1723 (_initialize_parse): Call add_setshow_zuinteger_cmd instead of
1724 add_setshow_zinteger_cmd.
1725 * record.c (record_debug): Add 'unsigned'.
1726 (_initialize_record): Call add_setshow_zuinteger_cmd instead of
1727 add_setshow_zinteger_cmd.
1728 * record.h: Update the declaration of 'record_debug'.
1729 * stap-probe.c (stap_expression_debug): Add 'unsigned'.
1730 (_initialize_stap_probe): Call add_setshow_zuinteger_cmd instead of
1731 add_setshow_zinteger_cmd.
1732 * serial.c (global_serial_debug_p): Add 'unsigned'.
1733 (_initialize_serial): Call add_setshow_zuinteger_cmd instead of
1734 add_setshow_zinteger_cmd.
1735 * solib-dsbt.c (solib_dsbt_debug): Add 'unsigned'.
1736 (_initialize_dsbt_solib): Call add_setshow_zuinteger_cmd instead of
1737 add_setshow_zinteger_cmd.
1738 * solib-frv.c (solib_frv_debug): Add 'unsigned'.
1739 (_initialize_frv_solib): Call add_setshow_zuinteger_cmd instead of
1740 add_setshow_zinteger_cmd.
1741 * target.c (targetdebug): Add 'unsigned'.
1742 (initialize_targets): Call add_setshow_zuinteger_cmd instead of
1743 add_setshow_zinteger_cmd.
1744 * valops.c (overload_debug): Add 'unsigned'.
1745 * varobj.c (varobjdebug): Add 'unsigned'.
1746 (_initialize_varobj): Call add_setshow_zuinteger_cmd instead of
1747 add_setshow_zinteger_cmd.
1748 * xtensa-tdep.c (xtensa_debug_level): Add 'unsigned'.
1749 (_initialize_xtensa_tdep): Call add_setshow_zuinteger_cmd
1750 instead of add_setshow_zinteger_cmd.
1751
1752 * arch-utils.h: Remove the declaration of 'gdbarch_debug'.
1753 * gdbarch.sh (gdbarch_debug): Add 'unsigned'.
1754 (extern void _initialize_gdbarch): Call add_setshow_zuinteger_cmd
1755 instead of add_setshow_zinteger_cmd.
1756 * gdbarch.c, gdbarch.h: Re-generated.
1757
1758 2012-08-02 Yao Qi <yao@codesourcery.com>
1759
1760 * nto-tdep.c: Don't include cli/cli-decode.h and
1761 cli/cli-cmds.h.
1762 (_initialize_nto_tdep): Remove.
1763 * nto-tdep.h (struct nto_target_ops) <internal_debugging>:
1764 Remove field.
1765 Remove macro nto_internal_debugging.
1766
1767 2012-08-01 Richard Henderson <rth@redhat.com>
1768
1769 * configure.tgt (m32c-*-*) [gdb_target_obs]: Remove prologue-value.o.
1770 (mep-*-*) [gdb_target_obs]: Likewise.
1771
1772 2012-07-31 Andreas Schwab <schwab@linux-m68k.org>
1773
1774 * ppc-linux-tdep.c (ppc_linux_init_abi): Register
1775 linux_get_siginfo_type.
1776
1777 2012-07-31 Jan Kratochvil <jan.kratochvil@redhat.com>
1778
1779 * infcall.c (call_function_by_hand): Move BP_ADDR comment to
1780 AT_ENTRY_POINT.
1781 (call_function_by_hand) <ON_STACK>: Call write_memory with
1782 gdbarch_breakpoint_from_pc, if possible.
1783 (call_function_by_hand) <AT_ENTRY_POINT>: The BP_ADDR comment is moved
1784 here.
1785
1786 2012-07-31 Yao Qi <yao@codesourcery.com>
1787
1788 * tracepoint.c: Add 'static' for some variables.
1789
1790 2012-07-31 Yao Qi <yao@codesourcery.com>
1791
1792 * go32-nat.c: Declare _initialize_go32_nat.
1793 * ser-go32.c: Declare _initialize_ser_dos.
1794 * top.c (do_chdir_cleanup): Add 'static'.
1795
1796 2012-07-30 Keith Seitz <keiths@redhat.com>
1797
1798 * linespec.c (linespec_lex_number): A number followed
1799 by quotes is a valid number, too.
1800
1801 2012-07-30 Tom Tromey <tromey@redhat.com>
1802
1803 * remote-sim.c (gdb_os_poll_quit): Don't check immediate_quit.
1804
1805 2012-07-30 Ulrich Weigand <ulrich.weigand@linaro.org>
1806
1807 * arm-linux-nat.c (arm_linux_hw_breakpoint_initialize): Do not
1808 attempt to 4-byte-align HW breakpoint addresses for Thumb.
1809
1810 2012-07-30 Andrew Burgess <aburgess@broadcom.com>
1811
1812 * varobj.c (varobj_invalidate_iter): All varobj must be marked as
1813 invalid or reevaluated to prevent prevent references to possibly
1814 delete'd type objects being left in the varobj.
1815
1816 2012-07-27 Tom Tromey <tromey@redhat.com>
1817 Jan Kratochvil <jan.kratochvil@redhat.com>
1818
1819 * copying.awk: Print buffer-read-only and vi ro markers.
1820 * copying.c: Rebuild.
1821 * gdbarch.sh (copyright): Print buffer-read-only and vi ro markers.
1822 * gdbarch.c, gdbarch.h: Rebuild.
1823 * target-descriptions.c (maint_print_c_tdesc_cmd): Print
1824 buffer-read-only and vi ro markers.
1825 * features/arm-with-iwmmxt.c: Rebuild.
1826 * features/arm-with-m-fpa-layout.c: Rebuild.
1827 * features/arm-with-m-vfp-d16.c: Rebuild.
1828 * features/arm-with-m.c: Rebuild.
1829 * features/arm-with-neon.c: Rebuild.
1830 * features/arm-with-vfpv2.c: Rebuild.
1831 * features/arm-with-vfpv3.c: Rebuild.
1832 * features/i386/amd64-avx-linux.c: Rebuild.
1833 * features/i386/amd64-avx.c: Rebuild.
1834 * features/i386/amd64-linux.c: Rebuild.
1835 * features/i386/amd64.c: Rebuild.
1836 * features/i386/i386-avx-linux.c: Rebuild.
1837 * features/i386/i386-avx.c: Rebuild.
1838 * features/i386/i386-linux.c: Rebuild.
1839 * features/i386/i386-mmx-linux.c: Rebuild.
1840 * features/i386/i386-mmx.c: Rebuild.
1841 * features/i386/i386.c: Rebuild.
1842 * features/i386/x32-avx-linux.c: Rebuild.
1843 * features/i386/x32-avx.c: Rebuild.
1844 * features/i386/x32-linux.c: Rebuild.
1845 * features/i386/x32.c: Rebuild.
1846 * features/mips-dsp-linux.c: Rebuild.
1847 * features/mips-linux.c: Rebuild.
1848 * features/mips64-dsp-linux.c: Rebuild.
1849 * features/mips64-linux.c: Rebuild.
1850 * features/rs6000/powerpc-32.c: Rebuild.
1851 * features/rs6000/powerpc-32l.c: Rebuild.
1852 * features/rs6000/powerpc-403.c: Rebuild.
1853 * features/rs6000/powerpc-403gc.c: Rebuild.
1854 * features/rs6000/powerpc-405.c: Rebuild.
1855 * features/rs6000/powerpc-505.c: Rebuild.
1856 * features/rs6000/powerpc-601.c: Rebuild.
1857 * features/rs6000/powerpc-602.c: Rebuild.
1858 * features/rs6000/powerpc-603.c: Rebuild.
1859 * features/rs6000/powerpc-604.c: Rebuild.
1860 * features/rs6000/powerpc-64.c: Rebuild.
1861 * features/rs6000/powerpc-64l.c: Rebuild.
1862 * features/rs6000/powerpc-7400.c: Rebuild.
1863 * features/rs6000/powerpc-750.c: Rebuild.
1864 * features/rs6000/powerpc-860.c: Rebuild.
1865 * features/rs6000/powerpc-altivec32.c: Rebuild.
1866 * features/rs6000/powerpc-altivec32l.c: Rebuild.
1867 * features/rs6000/powerpc-altivec64.c: Rebuild.
1868 * features/rs6000/powerpc-altivec64l.c: Rebuild.
1869 * features/rs6000/powerpc-cell32l.c: Rebuild.
1870 * features/rs6000/powerpc-cell64l.c: Rebuild.
1871 * features/rs6000/powerpc-e500.c: Rebuild.
1872 * features/rs6000/powerpc-e500l.c: Rebuild.
1873 * features/rs6000/powerpc-isa205-32l.c: Rebuild.
1874 * features/rs6000/powerpc-isa205-64l.c: Rebuild.
1875 * features/rs6000/powerpc-isa205-altivec32l.c: Rebuild.
1876 * features/rs6000/powerpc-isa205-altivec64l.c: Rebuild.
1877 * features/rs6000/powerpc-isa205-vsx32l.c: Rebuild.
1878 * features/rs6000/powerpc-isa205-vsx64l.c: Rebuild.
1879 * features/rs6000/powerpc-vsx32.c: Rebuild.
1880 * features/rs6000/powerpc-vsx32l.c: Rebuild.
1881 * features/rs6000/powerpc-vsx64.c: Rebuild.
1882 * features/rs6000/powerpc-vsx64l.c: Rebuild.
1883 * features/rs6000/rs6000.c: Rebuild.
1884 * features/s390-linux32.c: Rebuild.
1885 * features/s390-linux32v1.c: Rebuild.
1886 * features/s390-linux32v2.c: Rebuild.
1887 * features/s390-linux64.c: Rebuild.
1888 * features/s390-linux64v1.c: Rebuild.
1889 * features/s390-linux64v2.c: Rebuild.
1890 * features/s390x-linux64.c: Rebuild.
1891 * features/s390x-linux64v1.c: Rebuild.
1892 * features/s390x-linux64v2.c: Rebuild.
1893 * features/tic6x-c62x-linux.c: Rebuild.
1894 * features/tic6x-c62x.c: Rebuild.
1895 * features/tic6x-c64x-linux.c: Rebuild.
1896 * features/tic6x-c64x.c: Rebuild.
1897 * features/tic6x-c64xp-linux.c: Rebuild.
1898 * features/tic6x-c64xp.c: Rebuild.
1899
1900 2012-07-27 Tom Tromey <tromey@redhat.com>
1901
1902 * c-exp.y (classify_name): Avoid assignment in condition.
1903
1904 2012-07-27 Roland Schwingel <roland.schwingel@onevision.com>
1905
1906 * amd64-windows-tdep.c: Include "frame.h".
1907 (amd64_windows_skip_trampoline_code): New function.
1908 (amd64_windows_init_abi): Add trampoline registration.
1909
1910 2012-07-27 Yao Qi <yao@codesourcery.com>
1911
1912 * tracepoint.c (cur_traceframe_number): Remove.
1913 (set_tfile_traceframe): Remove.
1914 (tfile_trace_find, tfile_fetch_registers): Update callers.
1915 (tfile_xfer_partial, tfile_get_trace_state_variable_value): Likewise.
1916 (tfile_open, tfile_trace_find): Likewise.
1917
1918 2012-07-27 Yao Qi <yao@codesourcery.com>
1919
1920 * thread.c (switch_to_thread): Don't call registers_changed.
1921
1922 2012-07-26 Tom Tromey <tromey@redhat.com>
1923
1924 * Makefile.in (SFILES): Remove objc-exp.y.
1925 (YYFILES): Remove objc-exp.c.
1926 (YYOBJ): Remove objc-exp.o.
1927 (local-maintainer-clean): Don't mention objc-exp.c.
1928 * c-exp.y: Include objc-lang.h.
1929 (%union) <class>: New field.
1930 (NSSTRING, SELECTOR, CLASSNAME, OBJC_LBRAC): New tokens.
1931 (exp): Clone subscript production for OBJC_LBRAC. Add various
1932 Objective C productions.
1933 (msglist, msgarglist, msgarg): New productions.
1934 (array_mod, func_mod, operator): Clone productions for
1935 OBJC_LBRAC.
1936 (parse_string_or_char): Handle '@' strings.
1937 (lex_one_token): Return OBJC_LBRAC. Recognize @selector.
1938 (classify_name): Check la_name_of_this. Recognize ObjC class
1939 names.
1940 * objc-exp.y: Remove.
1941 * objc-lang.c (objc_language_defn): Use c_parse, c_error.
1942 * objc-lang.h (objc_parse, objc_error): Don't declare.
1943
1944 2012-07-26 Markus Metzger <markus.t.metzger@intel.com>
1945
1946 * python/py-inferior.c (infpy_threads): Call update_thread_list ().
1947
1948 2012-07-26 Jan Kratochvil <jan.kratochvil@redhat.com>
1949
1950 * auto-load.c (auto_load_info_scripts): Remove immediate_quit increment
1951 and decrement.
1952
1953 2012-07-26 Tom Tromey <tromey@redhat.com>
1954
1955 * copying.c: Rebuild.
1956 * copying.awk: Don't use immediate_quit. Use 'no_set_class', not
1957 'no_class'.
1958
1959 2012-07-26 Tom Tromey <tromey@redhat.com>
1960
1961 * symmisc.c (print_symbol_bcache_statistics): Use QUIT, not
1962 immediate_quit.
1963 (print_objfile_statistics): Likewise.
1964 (maintenance_print_symbols): Likewise.
1965 (maintenance_print_msymbols): Likewise.
1966 (maintenance_print_objfiles): Likewise.
1967 * psymtab.c (print_partial_symbols): Call QUIT.
1968 (maintenance_print_psymbols): Likewise. Don't modify
1969 immediate_quit.
1970 * copying.c (show_copying_command): Don't modify immediate_quit.
1971 (show_warranty_command): Likewise.
1972 * cli/cli-cmds.c (show_version): Don't modify immediate_quit.
1973
1974 2012-07-26 Keith Seitz <keiths@redhat.com>
1975
1976 * linespec.c (linespec_lexer_lex_number): The input
1977 is also a valid number if the next character is a comma
1978 or colon.
1979
1980 2012-07-26 Joel Brobecker <brobecker@adacore.com>
1981
1982 * NEWS: Document new --enable-libmcheck/--disable-libmcheck
1983 configure options.
1984
1985 2012-07-26 Tristan Gingold <gingold@adacore.com>
1986
1987 * machoread.c: Include gdb_bfd.h.
1988
1989 2012-07-26 Tristan Gingold <gingold@adacore.com>
1990
1991 * dwarf2loc.c (locexpr_describe_location_piece): Use uint64_t for
1992 offset.
1993
1994 2012-07-26 Siddhesh Poyarekar <siddhesh@redhat.com>
1995
1996 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Expand parameter
1997 SIZE to size_t.
1998 (dwarf2_evaluate_loc_desc): Likewise.
1999 (dwarf2_loc_desc_needs_frame): Likewise.
2000 (locexpr_describe_location_1): Likewise.
2001 * dwarf2loc.h (struct dwarf2_locexpr_baton): Make SIZE as
2002 size_t.
2003 (struct dwarf2_loclist_baton): Likewise.
2004 * dwarf2read.c (struct dwarf_block): Likewise.
2005 (dump_die_shallow): Use pulongest to print dwarf_block.size.
2006 (decode_locdesc): Expand SIZE and I to size_t.
2007
2008 2012-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
2009
2010 * contrib/cc-with-tweaks.sh: Put into comment path gdb/contrib/.
2011
2012 2012-07-25 Joel Brobecker <brobecker@adacore.com>
2013
2014 * doublest.c (convert_doublest_to_floatformat): If the exponent
2015 is too small, treat the value as zero. If the exponent is too
2016 large, treat the value as infinity.
2017
2018 2012-07-25 Joel Brobecker <brobecker@adacore.com>
2019
2020 * configure.ac: Add --enable-lmcheck configure option.
2021 * configure: Regenerate.
2022
2023 2012-07-25 Tom Tromey <tromey@redhat.com>
2024
2025 * NEWS: Mention maint info bfds.
2026 * gdb_bfd.c (all_bfds): New global.
2027 (gdb_bfd_ref, gdb_bfd_unref): Update all_bfds.
2028 (print_one_bfd, maintenance_info_bfds, _initialize_gdb_bfd):
2029 New functions.
2030
2031 2012-07-25 Ralf Corsépius <ralf.corsepius@rtems.org>
2032
2033 * configure.tgt: Add v850*-*-rtems*.
2034
2035 2012-07-25 Tom Tromey <tromey@redhat.com>
2036
2037 * macrotab.c (macro_bcache_str): Remove cast.
2038
2039 2012-07-25 Hui Zhu <hui_zhu@mentor.com>
2040
2041 * linespec.c (linespec_lexer_lex_number): Update comments,
2042 change the return and add check to make sure the input is
2043 the decimal numbers.
2044 (linespec_lexer_lex_one): If linespec_lexer_lex_number return
2045 false, call linespec_lexer_lex_string.
2046
2047 2012-07-24 Tom Tromey <tromey@redhat.com>
2048
2049 * symfile.c (symbol_file_add): Don't open BFD twice.
2050
2051 2012-07-24 Marc Khouzam <marc.khouzam@ericsson.com>
2052
2053 * breakpoint.c (create_breakpoint): Store condition for pending
2054 breakpoints.
2055
2056 2012-07-24 Andreas Schwab <schwab@linux-m68k.org>
2057
2058 * m68k-tdep.c (m68k_reg_struct_return_p): Accept complex types.
2059 (m68k_return_value): Handle complex types like structures.
2060 (m68k_svr4_return_value): Likewise.
2061
2062 2012-07-24 Marcus Shawcroft <marcus.shawcroft@arm.com>
2063
2064 * gdb_bfd.c (zlib_decompress_section) <!HAVE_ZLIB_H>: Adjust
2065 parameters to bfd_get_section_name.
2066
2067 2012-07-24 Yao Qi <yao@codesourcery.com>
2068
2069 * cli/cli-setshow.c: Handle case 'var_uinteger'
2070 and 'var_zuninteger' together. Handle case 'var_integer' and
2071 'var_zinteger' together.
2072
2073 2012-07-23 Keith Seitz <keiths@redhat.com>
2074
2075 * linespec.c (convert_linespec_to_sal): Don't add
2076 any symbols to the result vector if symbol_to_sal
2077 returns zero.
2078
2079 2012-07-23 Keith Seitz <keiths@redhat.com>
2080
2081 * linespec.c (decode_objc): Record the function name
2082 in the linespec.
2083
2084 2012-07-23 Tom Tromey <tromey@redhat.com>
2085
2086 * rs6000-nat.c (add_vmap): Rewrite archive loop. Fix reference
2087 counting.
2088 * exec.c (exec_close_1): Unconditionally release vmap's BFD.
2089 (map_vmap): Acquire a reference to the BFD.
2090
2091 2012-07-23 Siddhesh Poyarekar <siddhesh@redhat.com>
2092
2093 * p-valprint.c (pascal_object_print_value): Replace potentially
2094 unsafe alloca with xmalloc/xfree.
2095 * valops.c (search_struct_method): Likewise.
2096
2097 2012-07-23 Tom Tromey <tromey@redhat.com>
2098
2099 * solib-svr4.c (enable_break): Update.
2100 * bfd-target.h (target_bfd_reopen): Update documentation.
2101
2102 2012-07-23 Tom Tromey <tromey@redhat.com>
2103
2104 * symfile.c (separate_debug_file_exists): Update.
2105 (gdb_bfd_open_maybe_remote): Rename from bfd_open_maybe_remote.
2106 (reread_symbols): Update.
2107 * elfread.c (build_id_verify): Update.
2108 * symfile.h (gdb_bfd_open_maybe_remote): Rename from
2109 bfd_open_maybe_remote.
2110
2111 2012-07-23 Tom Tromey <tromey@redhat.com>
2112
2113 * gdb_bfd.c (gdb_bfd_ref, gdb_bfd_unref): Fix comment.
2114
2115 2012-07-23 Tom Tromey <tromey@redhat.com>
2116
2117 * coffread.c (coff_symfile_read): Make a cleanup for 'debugfile'
2118 and 'abfd'.
2119 * elfread.c (elf_symfile_read): Make a cleanup for 'debugfile'
2120 and 'abfd'.
2121 * jit.c (jit_bfd_try_read_symtab): Make a cleanup for 'nbfd'.
2122 * machoread.c (macho_add_oso_symfile): Make a cleanup for
2123 'abfd'.
2124 (macho_symfile_read): Make a cleanup for 'dsym_bfd'.
2125 * objfiles.c (allocate_objfile): Acquire a new reference.
2126 * rs6000-nat.c (add_vmap): Don't acquire a BFD reference.
2127 * solib.c (solib_read_symbols): Don't acquire a BFD reference.
2128 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Make
2129 a cleanup for 'nbfd'.
2130 * symfile-mem.c (symbol_file_add_from_memory): Make a cleanup
2131 for 'nbfd'.
2132 * symfile.c (symbol_file_add_with_addrs_or_offsets): Don't
2133 make a cleanup for 'abfd'.
2134 (symbol_file_add): Make a BFD cleanup.
2135
2136 2012-07-23 Tom Tromey <tromey@redhat.com>
2137
2138 * cli/cli-dump.c (bfd_openr_with_cleanup): Use gdb_bfd_openr.
2139 (bfd_openw_with_cleanup): Use gdb_bfd_openw.
2140 * corelow.c (core_open): Use gdb_bfd_fopen.
2141 * dsrec.c (load_srec): Use gdb_bfd_openr.
2142 * exec.c (exec_file_attach): Use gdb_bfd_fopen.
2143 * gcore.c (gcore_memory_sections): Use gdb_bfd_openw.
2144 * gdb_bfd.c (gdb_bfd_fopen, gdb_bfd_openr, gdb_bfd_openw)
2145 (gdb_bfd_openr_iovec, gdb_bfd_openr_next_archived_file)
2146 (gdb_bfd_fdopenr): New functions.
2147 * gdb_bfd.h (gdb_bfd_fopen, gdb_bfd_openr, gdb_bfd_openw)
2148 (gdb_bfd_openr_iovec, gdb_bfd_openr_next_archived_file)
2149 (gdb_bfd_fdopenr): Declare.
2150 * jit.c (bfd_open_from_target_memory): Use gdb_bfd_openr_iovec.
2151 * m32-rom.c (m32r_load, m32r_upload_command): Use gdb_bfd_openr.
2152 * machoread.c (macho_symfile_read_all_oso): Use gdb_bfd_openr,
2153 gdb_bfd_openr_next_archived_file.
2154 (macho_check_dsym): Use gdb_bfd_openr.
2155 (macho_add_oso_symfile): Don't call gdb_bfd_stash_filename.
2156 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_fdopenr.
2157 * remote-m32r-sdi.c (m32r_load): Use gdb_bfd_openr.
2158 * remote-mips.c (mips_load_srec, pmon_load_fast): Use
2159 gdb_bfd_openr.
2160 * remote.c (remote_bfd_open): Use gdb_bfd_openr_iovec.
2161 * rs6000-nat.c (add_vmap): Use gdb_bfd_openr, gdb_bfd_fdopenr,
2162 gdb_bfd_openr_next_archived_file.
2163 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
2164 Use gdb_bfd_openr.
2165 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
2166 gdb_bfd_openr.
2167 * solib-spu.c (spu_bfd_fopen): Use gdb_bfd_openr_iovec.
2168 * solib.c (solib_bfd_fopen): Use gdb_bfd_fopen.
2169 * spu-linux-nat.c (spu_bfd_open): Use gdb_bfd_openr_iovec.
2170 * symfile.c (bfd_open_maybe_remote): Use gdb_bfd_openr.
2171 (symfile_bfd_open): Use gdb_bfd_fopen.
2172 (generic_load): Use gdb_bfd_openr.
2173 * windows-nat.c (windows_make_so): Use gdb_bfd_openr.
2174
2175 2012-07-23 Tom Tromey <tromey@redhat.com>
2176
2177 * bfd-target.c (target_bfd_reopen): Update.
2178 * cli/cli-dump.c (bfd_openr_with_cleanup)
2179 (bfd_openw_with_cleanup): Update.
2180 * corelow.c (core_open): Update.
2181 * dsrec.c (load_srec): Update.
2182 * exec.c (exec_file_attach): Update.
2183 * gcore.c (create_gcore_bfd): Update.
2184 * gdb_bfd.c (gdb_bfd_ref): Return void.
2185 (gdb_bfd_open): Update.
2186 * gdb_bfd.h (gdb_bfd_ref): Return void.
2187 Update comments.
2188 * jit.c (jit_bfd_try_read_symtab): Update.
2189 * m32r-rom.c (m32r_load, m32r_upload_command): Update.
2190 * machoread.c (macho_symfile_read_all_oso): Update.
2191 (macho_check_dsym): Update.
2192 * procfs.c (insert_dbx_link_bpt_in_file): Update.
2193 * remote-m32r-sdi.c (m32r_load): Update.
2194 * remote-mips.c (mips_load_srec, pmon_load_fast): Update.
2195 * rs6000-nat.c (add_vmap): Update.
2196 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
2197 Update.
2198 * solib-pa64.c (pa64_solib_create_inferior_hook): Update.
2199 * solib-spu.c (spu_bfd_open): Update.
2200 * solib.c (solib_bfd_fopen, solib_read_symbols): Update.
2201 * spu-linux-nat.c (spu_bfd_open): Update.
2202 * symfile.c (bfd_open_maybe_remote, symfile_bfd_open)
2203 (generic_load): Update.
2204 * windows-nat.c (windows_make_so): Update.
2205
2206 2012-07-22 Siddhesh Poyarekar <siddhesh@redhat.com>
2207
2208 * sh-tdep.c (sh_treat_as_flt_p): Remove unused variable LEN.
2209
2210 2012-07-20 Jeff Kenton <jkenton@tilera.com>
2211
2212 * tilegx-linux-tdep.c (tilegx_linux_sigframe_init): Fix
2213 SIGTRAMP_FRAME unwinding.
2214
2215 2012-07-20 Doug Evans <dje@google.com>
2216
2217 * NEWS: Document new options "set/show use-deprecated-index-sections",
2218 and delete reference to --use-deprecated-index-sections.
2219 * symfile.h (use_deprecated_index_sections): Delete.
2220 * dwarf2read.c (use_deprecated_index_sections): Make static.
2221 (read_index_from_section): Update wording of how to load
2222 deprecated index sections.
2223 (_initialize_dwarf2_read): New options
2224 "set/show use-deprecated-index-sections".
2225 * main.c (captured_main): Delete --use-deprecated-index-sections.
2226
2227 2012-07-20 Pedro Alves <palves@redhat.com>
2228
2229 PR threads/11692
2230 PR gdb/12203
2231
2232 * infrun.c (handle_inferior_event) <new thread>: Don't special
2233 case minus_one_ptid.
2234 <TARGET_WAITKIND_SPURIOUS>: Ditto.
2235 * linux-thread-db.c (thread_get_info_callback): Don't return early
2236 if the thread is zombie.
2237 (thread_from_lwp): Change return type to void. Rewrite stale
2238 comment.
2239 (attach_thread): Don't return early if the thread is zombie,
2240 instead set its "dying" flag.
2241 (thread_db_wait): Don't return TARGET_WAITKIND_SPURIOUS anymore.
2242 (find_new_threads_callback): Don't return early if the thread is
2243 zombie.
2244
2245 2012-07-20 Pedro Alves <palves@redhat.com>
2246
2247 * linux-nat.c (linux_nat_wait): Dump the passed in target options.
2248 * target.c (target_wait): Likewise.
2249 (str_comma_list_concat_elem, do_option, target_options_to_string):
2250 New functions.
2251 * target.h (target_options_to_string): Declare.
2252
2253 2012-07-20 Jan Kratochvil <jan.kratochvil@redhat.com>
2254 Tom Tromey <tromey@redhat.com>
2255
2256 * dwarf2read.c (dwarf_decode_macros)
2257 <DW_MACRO_GNU_define_indirect_alt, DW_MACRO_GNU_undef_indirect_alt,
2258 DW_MACRO_GNU_transparent_include_alt>: New cases.
2259 (dwarf_decode_macro_bytes) <DW_MACRO_GNU_define_indirect,
2260 DW_MACRO_GNU_undef_indirect>: Examine 'section_is_dwz'.
2261
2262 2012-07-20 Tom Tromey <tromey@redhat.com>
2263
2264 * dwarf2read.c (try_open_dwo_file): Don't call
2265 gdb_bfd_stash_filename.
2266
2267 2012-07-20 Pedro Alves <palves@redhat.com>
2268
2269 * i386-tdep.c (i386_record_modrm, i386_record_lea_modrm_addr)
2270 (i386_record_lea_modrm, i386_record_push, i386_record_floats)
2271 (i386_process_record): Tweak description comments.
2272
2273 2012-07-20 Pedro Alves <palves@redhat.com>
2274
2275 * i386-tdep.c (i386_record_modrm, i386_record_lea_modrm_addr)
2276 (i386_process_record): Use record_read_memory.
2277 * record.c (record_read_memory): New function.
2278 (record_arch_list_add_mem, record_exec_insn): Use
2279 record_read_memory.
2280 * record.h (record_read_memory): Declare.
2281
2282 2012-07-20 Yao Qi <yao@codesourcery.com>
2283
2284 * cli/cli-setshow.c (do_setshow_command): Don't check pointer is
2285 NULL for xfree.
2286
2287 2012-07-19 Pedro Alves <palves@redhat.com>
2288
2289 * record.c (record_resume): Ask the target beneath to report all
2290 signals.
2291
2292 2012-07-19 Doug Evans <dje@google.com>
2293
2294 * dwarf2read.c (dwarf2_ranges_read): Ignore ranges starting at zero if
2295 there's no section at address zero.
2296 (dwarf2_record_block_ranges): Ditto.
2297
2298 2012-07-19 Yao Qi <yao@codesourcery.com>
2299
2300 * command.h, remote.c: Fix a typo in comment.
2301
2302 2012-07-19 Tom Tromey <tromey@redhat.com>
2303
2304 PR exp/13206:
2305 * ax-gdb.c (gen_expr) <OP_TYPEOF, OP_DECLTYPE>: New cases.
2306 * breakpoint.c (watchpoint_exp_is_const) <OP_TYPEOF,
2307 OP_DECLTYPE>: New cases.
2308 * c-exp.y (TYPEOF, DECLTYPE): New tokens.
2309 (type_exp): Add new productions.
2310 (ident_tokens): Add __typeof__, typeof, __typeof, __decltype,
2311 and decltype.
2312 * eval.c (evaluate_subexp_standard) <OP_TYPEOF, OP_DECLTYPE>:
2313 New case.
2314 * expprint.c (dump_subexp_body_standard) <OP_TYPEOF,
2315 OP_DECLTYPE>: New case.
2316 * parse.c (operator_length_standard) <OP_TYPEOF, OP_DECLTYPE>:
2317 New case.
2318 * std-operator.def (OP_TYPEOF, OP_DECLTYPE): New constants.
2319 * varobj.c (varobj_create): Handle OP_TYPEOF, OP_DECLTYPE.
2320
2321 2012-07-19 Tom Tromey <tromey@redhat.com>
2322
2323 * c-exp.y (enum token_flags): New.
2324 (struct token) <cxx_only>: Remove.
2325 <flags>: New field.
2326 (tokentab3, tokentab2, ident_tokens): Update.
2327 (lex_one_token): Update. Handle FLAG_SHADOW.
2328
2329 2012-07-19 Tom Tromey <tromey@redhat.com>
2330
2331 * ax-gdb.c (gen_expr): Handle UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE.
2332 * breakpoint.c (watchpoint_exp_is_const): Handle UNOP_CAST_TYPE,
2333 UNOP_REINTERPRET_CAST, UNOP_DYNAMIC_CAST.
2334 * c-exp.y (exp): Emit UNOP_MEMVAL_TYPE, UNOP_CAST_TYPE. Update
2335 for changes to UNOP_REINTERPRET_CAST, UNOP_DYNAMIC_CAST. Use
2336 type_exp production where appropriate.
2337 * eval.c (evaluate_subexp_standard) <UNOP_CAST_TYPE>: New case.
2338 <UNOP_DYNAMIC_CAST, UNOP_REINTERPRET_CAST>: Update.
2339 <UNOP_MEMVAL_TYPE>: New case.
2340 (evaluate_subexp_for_address) <UNOP_MEMVAL_TYPE>: New case.
2341 (evaluate_subexp_for_sizeof) <UNOP_MEMVAL_TYPE>: New case.
2342 * expprint.c (print_subexp_standard) <UNOP_CAST_TYPE>: New case.
2343 <UNOP_MEMVAL_TYPE>: New case.
2344 (dump_subexp_body_standard) <UNOP_DYNAMIC_CAST,
2345 UNOP_REINTERPRET_CAST>: Update.
2346 <UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE>: New cases.
2347 * parse.c (operator_length_standard) <UNOP_DYNAMIC_CAST,
2348 UNOP_REINTERPRET_CAST>: Update.
2349 <UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE>: New cases.
2350 * stack.c (return_command): Also check for UNOP_CAST_TYPE.
2351 * std-operator.def (UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE): New
2352 constants.
2353
2354 2012-07-19 Yao Qi <yao@codesourcery.com>
2355 Jan Kratochvil <jan.kratochvil@redhat.com>
2356
2357 * cli/cli-setshow.c (do_setshow_command): Handle case 'var_filename'
2358 and case 'var_optional_filename' together.
2359 * infcmd.c (_initialize_infcmd): Call add_setshow_string_noescape_cmd
2360 instead of add_setshow_optional_filename_cmd for setshow command
2361 'args'. Set completer for 'set args'.
2362
2363 2012-07-18 Doug Evans <dje@google.com>
2364
2365 * common/gdb_vecs.h: Moved here from ./gdb_vecs.h.
2366 * common/gdb_vecs.c: New file, contents from utils.c.
2367 * common/host-defs.h: New file, contents from defs.h.
2368 * utils.h: New file, contents from defs.h.
2369 * defs.h: Move all declarations of objects defined in utils.c
2370 to utils.h (except QUIT() and related).
2371 #include "utils.h", "host-defs.h".
2372 * probe.h (probe_p): Move here from gdb_vecs.h.
2373 * symfile.c: #include "probe.h" instead of "gdb_vecs.h".
2374 * utils.c (free_char_ptr_vec): Moved to common/gdb_vecs.c.
2375 (dirnames_to_char_ptr_vec_append, dirnames_to_char_ptr_vec): Ditto.
2376 * Makefile.in (SFILES): Add common/gdb_vecs.c.
2377 (HFILES_NO_SRCDIR): Add common/gdb_vecs.h, common/host-defs.h, utils.h.
2378 (COMMON_OBS): Add gdb_vecs.o.
2379 (gdb_vecs.o): New rule.
2380
2381 2012-07-18 Keith Seitz <keiths@redhat.com>
2382
2383 * linespec.c (add_sal_to_sals): Add LITERAL_CANONICAL
2384 parameter. If non-zero, use SYMNAME as the canonical name
2385 for the SaL.
2386 Update all callers.
2387 (convert_linespec_to_sals): Use add_sal_to_sals for
2388 expressions, too.
2389 (decode_line_full): No need to "fill in missing canonical names"
2390 anymore. Simply make cleanups for the allocated names.
2391
2392 2012-07-18 Keith Seitz <keiths@redhat.com>
2393
2394 * linespec.c (struct linespec): Constify expression,
2395 source_filename, function_name, and label_name.
2396 (symbol_not_found_error): Make all parameters const.
2397 (linespec_parser_delete): No need to check for NULL
2398 when using xfree. Cast const char * to char * for xfree.
2399
2400 2012-07-18 Keith Seitz <keiths@redhat.com>
2401
2402 * breakpoint.c (invalid_thread_id_error): New function.
2403 (find_condition_and_thread): Use invalid_thread_id_error.
2404 (watch_command_1): Likewise.
2405
2406 2012-07-18 Tom Tromey <tromey@redhat.com>
2407
2408 * cc-with-index.sh, cc-with-dwz.sh: Remove.
2409 * contrib/cc-with-tweaks.sh: New file.
2410
2411 2012-07-18 Tom Tromey <tromey@redhat.com>
2412
2413 * dwarf2read.c (struct dwz_file) <gdb_index>: New field.
2414 (locate_dwz_sections): Recognize .gdb_index.
2415 (create_cus_from_index_list): New function.
2416 (create_cus_from_index): Use it. Handle .dwz data.
2417 (read_index_from_section): New function, extracted from
2418 dwarf2_read_index.
2419 (dwarf2_read_index): Use it. Read .gdb_index from dwz file,
2420 if needed.
2421
2422 2012-07-18 Tom Tromey <tromey@redhat.com>
2423
2424 * dwarf2read.c (struct dwarf2_per_objfile) <dwz_file>: New field.
2425 (struct dwarf2_per_cu_data) <length>: No longer bitfield.
2426 <is_dwz>: New field.
2427 (struct dwz_file): New.
2428 (struct partial_die_info) <is_dwz, spec_is_dwz>: New fields.
2429 (locate_dwz_sections, dwarf2_get_dwz_file)
2430 (get_abbrev_section_for_cu): New functions.
2431 (error_check_comp_unit_head, read_and_check_comp_unit_head)
2432 (read_and_check_type_unit_head): Add abbrev_section argument.
2433 (create_debug_types_hash_table): Update.
2434 (init_cutu_and_read_dies): Use proper abbrev section.
2435 (init_cutu_and_read_dies_no_follow): Likewise.
2436 (set_partial_user): Do nothing if PST==NULL.
2437 (read_comp_units_from_section): New function.
2438 (create_all_comp_units): Use it.
2439 (scan_partial_symbols, partial_die_parent_scope): Update.
2440 (skip_one_die): Handle DW_FORM_GNU_ref_alt, DW_FORM_GNU_strp_alt.
2441 (process_imported_unit_die, read_partial_die): Handle .dwz files.
2442 (find_partial_die): Add offset_in_dwz argument. Update.
2443 (guess_partial_die_structure_name, fixup_partial_die): Update.
2444 (read_attribute_value): Handle DW_FORM_GNU_ref_alt,
2445 DW_FORM_GNU_strp_alt.
2446 (read_indirect_string_from_dwz): New function.
2447 (dwarf2_const_value_attr): Handle DW_FORM_GNU_strp_alt.
2448 (dump_die_shallow): Handle DW_FORM_GNU_ref_alt, DW_FORM_GNU_strp_alt.
2449 (is_ref_attr): Handle DW_FORM_GNU_ref_alt.
2450 (follow_die_offset): Add offset_in_dwz argument.
2451 (follow_die_ref, dwarf2_fetch_die_location_block): Update.
2452 (skip_form_bytes): Handle DW_FORM_GNU_strp_alt.
2453 (dwarf_decode_macro_bytes): Add section_is_dwz argument.
2454 Handle new macro forms.
2455 (dwarf_decode_macros): Update.
2456 (dwarf2_find_containing_comp_unit): Add offset_in_dwz argument.
2457 (dwarf2_per_objfile_free): Unref dwz_bfd, if it exists
2458 (lookup_die_type): Handle DW_FORM_GNU_ref_alt.
2459 (create_debug_types_hash_table): Use correct abbrev section.
2460 (get_debug_line_section): New function.
2461 (dwarf_decode_line_header, dwarf_decode_lines_1): Use it.
2462 (process_full_comp_unit): Pass 'required' argument to
2463 end_symtab_get_static_block.
2464 * buildsym.h (end_symtab_get_static_block): Update.
2465 * buildsym.c (end_symtab_get_static_block): Add 'required'
2466 argument.
2467 (end_symtab, end_expandable_symtab): Update.
2468
2469 2012-07-18 Tom Tromey <tromey@redhat.com>
2470
2471 * dwarf2read.c: Don't include zlib.h or sys/mman.h.
2472 (pagesize): Remove.
2473 (struct dwarf2_section_info) <map_addr, map_len>: Remove.
2474 (zlib_decompress_section): Remove.
2475 (dwarf2_read_section): Use gdb_bfd_map_section.
2476 (munmap_section_buffer): Remove.
2477 (free_dwo_file, dwarf2_per_objfile_free): Don't use
2478 munmap_section_buffer.
2479 * gdb_bfd.c: Include zlib.h, sys/mman.h.
2480 (struct gdb_bfd_section_data): New.
2481 (free_one_bfd_section): New function.
2482 (gdb_bfd_close_or_warn): Use free_one_bfd_section.
2483 (get_section_descriptor, zlib_decompress_section)
2484 (gdb_bfd_map_section): New functions.
2485 * gdb_bfd.h (gdb_bfd_map_section): Declare.
2486
2487 2012-07-18 Tom Tromey <tromey@redhat.com>
2488
2489 * dwarf2read.c (try_open_dwo_file): use gdb_bfd_open.
2490
2491 2012-07-18 Tom Tromey <tromey@redhat.com>
2492
2493 * gdb_bfd.c (struct gdb_bfd_data): New.
2494 (gdb_bfd_cache): New global.
2495 (struct gdb_bfd_cache_search): New.
2496 (hash_bfd, eq_bfd, gdb_bfd_open): New functions.
2497 (gdb_bfd_ref, gdb_bfd_unref): Use gdb_bfd_data.
2498 * gdb_bfd.h (gdb_bfd_open): Declare.
2499
2500 2012-07-18 Tom Tromey <tromey@redhat.com>
2501
2502 * utils.c (make_cleanup_bfd_unref): Rename from
2503 make_cleanup_bfd_close.
2504 * defs.h (make_cleanup_bfd_unref): Rename from
2505 make_cleanup_bfd_close.
2506 * cli/cli-dump.c (bfd_openr_with_cleanup): Update.
2507 (bfd_openw_with_cleanup): Update.
2508 * corelow.c (core_open): Update.
2509 * dsrec.c (load_srec): Update.
2510 * m32r-rom.c (m32r_load, m32r_upload_command): Update.
2511 * remote-m32r-sdi.c (m32r_load): Update.
2512 * remote-mips.c (mips_load_srec): Update.
2513 (pmon_load_fast): Update.
2514 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
2515 Update.
2516 (darwin_bfd_open): Update.
2517 * solib.c (solib_bfd_fopen): Update.
2518 * symfile-mem.c (symbol_file_add_from_memory): Update.
2519 * symfile.c (symbol_file_add_with_addrs_or_offsets): Update.
2520 (symfile_bfd_open): Update.
2521 (generic_load): Update.
2522
2523 2012-07-18 Tom Tromey <tromey@redhat.com>
2524
2525 * remote-mips.c (mips_load_srec): Use make_cleanup_bfd_close.
2526 (pmon_load_fast): Likewise.
2527 * m32r-rom.c (m32r_load): Use make_cleanup_bfd_close.
2528 (m32r_upload_command): Likewise.
2529 * dsrec.c (load_srec): Use make_cleanup_bfd_close.
2530 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
2531 Use make_cleanup_bfd_close.
2532
2533 2012-07-18 Tom Tromey <tromey@redhat.com>
2534
2535 * symfile.c (symfile_bfd_open): Don't copy name. Call
2536 gdb_bfd_stash_filename.
2537 (load_command): Open the new BFD before freeing the old.
2538 (bfd_open_maybe_remote): Call gdb_bfd_stash_filename.
2539 * symfile-mem.c (symbol_file_add_from_memory): Don't copy name.
2540 Call gdb_bfd_stash_filename.
2541 * spu-linux-nat.c (spu_bfd_open): Don't copy name.
2542 * solib-spu.c (spu_bfd_fopen): Don't copy name. Call
2543 gdb_bfd_stash_filename.
2544 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
2545 Free found_pathname.
2546 * rs6000-nat.c (add_vmap): Don't copy filename. Call
2547 gdb_bfd_stash_filename.
2548 * remote.c (remote_bfd_open): Call gdb_bfd_stash_filename.
2549 * machoread.c (macho_add_oso_symfile): Call
2550 gdb_bfd_stash_filename.
2551 (macho_symfile_read_all_oso): Arrange to free archive_name. Call
2552 gdb_bfd_stash_filename.
2553 (macho_check_dsym): Don't copy filename. Call
2554 gdb_bfd_stash_filename.
2555 * jit.c (bfd_open_from_target_memory): Don't copy the filename.
2556 * gdb_bfd.c (gdb_bfd_stash_filename): New function.
2557 * gdb_bfd.h (gdb_bfd_stash_filename): Declare.
2558 * gcore.c (create_gcore_bfd): Call gdb_bfd_stash_filename.
2559 * exec.c (exec_close): Don't free the BFD's filename.
2560 (exec_file_attach): Don't copy the filename. Call
2561 gdb_bfd_stash_filename.
2562 * corelow.c (core_close): Don't free the BFD's filename.
2563 (core_open): Call gdb_bfd_stash_filename.
2564 * corefile.c (reopen_exec_file): Remove #if 0 code.
2565 * solib.c (solib_bfd_fopen): Call gdb_bfd_stash_filename. Free
2566 pathname.
2567 * dwarf2read.c (try_open_dwo_file): Call gdb_bfd_stash_filename.
2568
2569 2012-07-18 Tom Tromey <tromey@redhat.com>
2570
2571 * dwarf2read.c (try_open_dwo_file): Use gdb_bfd_ref and
2572 gdb_bfd_unref.
2573 (free_dwo_file): Use gdb_bfd_unref.
2574 * cli/cli-dump.c: Include gdb_bfd.h.
2575 (bfd_openw_with_cleanup): Use gdb_bfd_ref.
2576 (bfd_openr_with_cleanup): Likewise.
2577 * windows-nat.c (windows_make_so): Use gdb_bfd_ref,
2578 gdb_bfd_unref.
2579 * utils.c: Include gdb_bfd.h.
2580 (do_bfd_close_cleanup): Use gdb_bfd_unref.
2581 * symfile.c: Include gdb_bfd.h.
2582 (separate_debug_file_exists): Use gdb_bfd_unref.
2583 (bfd_open_maybe_remote): Use gdb_bfd_ref.
2584 (symfile_bfd_open): Use gdb_bfd_ref, gdb_bfd_unref.
2585 (generic_load): Use gdb_bfd_ref.
2586 (reread_symbols): Use gdb_bfd_unref.
2587 * symfile-mem.c: Include gdb_bfd.h.
2588 (symbol_file_add_from_memory): Use make_cleanup_bfd_close.
2589 * spu-linux-nat.c (spu_bfd_open): Use gdb_bfd_ref, gdb_bfd_unref.
2590 * solib.c: Include gdb_bfd.h.
2591 (solib_bfd_fopen): Use gdb_bfd_ref.
2592 (solib_bfd_open): Use gdb_bfd_unref.
2593 (free_so_symbols): Use gdb_bfd_unref.
2594 (reload_shared_libraries_1): Use gdb_bfd_unref.
2595 * solib-spu.c: Include gdb_bfd.h.
2596 (spu_bfd_fopen): Use gdb_bfd_ref, gdb_bfd_unref.
2597 * solib-pa64.c (pa64_solib_create_inferior_hook): Use gdb_bfd_ref,
2598 gdb_bfd_unref.
2599 * solib-frv.c: Include gdb_bfd.h.
2600 (enable_break2): Use gdb_bfd_unref.
2601 * solib-dsbt.c: Include gdb_bfd.h.
2602 (enable_break2): Use gdb_bfd_unref.
2603 * solib-darwin.c: Include gdb_bfd.h.
2604 (darwin_solib_get_all_image_info_addr_at_init): Use gdb_bfd_ref,
2605 gdb_bfd_unref.
2606 (darwin_bfd_open): Use gdb_bfd_unref.
2607 * rs6000-nat.c (add_vmap): Use gdb_bfd_ref, gdb_bfd_unref.
2608 * remote-mips.c: Include gdb_bfd.h.
2609 (mips_load_srec): Use gdb_bfd_ref.
2610 (pmon_load_fast): Use gdb_bfd_ref.
2611 * remote-m32r-sdi.c: Include gdb_bfd.h.
2612 (m32r_load): Use gdb_bfd_ref.
2613 * record.c: Include gdb_bfd.h.
2614 (record_save_cleanups): Use gdb_bfd_unref.
2615 (cmd_record_save): Use gdb_bfd_unref.
2616 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_ref,
2617 gdb_bfd_unref.
2618 * objfiles.h (gdb_bfd_close_or_warn): Remove.
2619 (gdb_bfd_ref, gdb_bfd_unref): Move to gdb_bfd.h.
2620 * objfiles.c: Include gdb_bfd.h.
2621 (free_objfile): Use gdb_bfd_unref.
2622 (gdb_bfd_close_or_warn, gdb_bfd_ref, gdb_bfd_unref): Move to
2623 gdb_bfd.c.
2624 * machoread.c (macho_add_oso_symfile): Use gdb_bfd_unref.
2625 (macho_symfile_read_all_oso): Use gdb_bfd_ref, gdb_bfd_unref.
2626 (macho_check_dsym): Likewise.
2627 * m32r-rom.c: Include gdb_bfd.h.
2628 (m32r_load): Use gdb_bfd_ref.
2629 (m32r_upload_command): Use gdb_bfd_ref.
2630 * jit.c: Include gdb_bfd.h.
2631 (jit_bfd_try_read_symtab): Use gdb_bfd_ref, gdb_bfd_unref.
2632 * gdb_bfd.h: New file.
2633 * gdb_bfd.c: New file.
2634 * gcore.c: Include gdb_bfd.h.
2635 (create_gcore_bfd): Use gdb_bfd_ref.
2636 (do_bfd_delete_cleanup): Use gdb_bfd_unref.
2637 (gcore_command): Use gdb_bfd_unref.
2638 * exec.c: Include gdb_bfd.h.
2639 (exec_close): Use gdb_bfd_unref.
2640 (exec_close_1): Use gdb_bfd_unref.
2641 (exec_file_attach): Use gdb_bfd_ref.
2642 * elfread.c: Include gdb_bfd.h.
2643 (build_id_verify): Use gdb_bfd_unref.
2644 * dsrec.c: Include gdb_bfd.h.
2645 (load_srec): Use gdb_bfd_ref.
2646 * corelow.c: Include gdb_bfd.h.
2647 (core_close): Use gdb_bfd_unref.
2648 (core_open): Use gdb_bfd_ref.
2649 * bfd-target.c: Include gdb_bfd.h.
2650 (target_bfd_xclose): Use gdb_bfd_unref.
2651 (target_bfd_reopen): Use gdb_bfd_ref.
2652 * Makefile.in (SFILES): Add gdb_bfd.c.
2653 (HFILES_NO_SRCDIR): Add gdb_bfd.h.
2654 (COMMON_OBS): Add gdb_bfd.o.
2655
2656 2012-07-18 Keith Seitz <keiths@redhat.com>
2657
2658 * breakpoint.c (find_condition_and_thread): Initialize
2659 TASK and REST.
2660 (create_breakpiont): find_condition_and_thread will now
2661 initialize COND_STRING, THREAD, and REST (and TASK).
2662 (addr_string_to_sals): Likewise.
2663
2664 2012-07-18 Pedro Alves <palves@redhat.com>
2665
2666 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_NO_HISTORY>:
2667 Pull the single step breakpoints out of the target.
2668
2669 2012-07-18 Sergio Durigan Junior <sergiodj@redhat.com>
2670
2671 * probe.c (probe_safe_evaluate_at_pc): Rename variable `n_probes'.
2672 * stap-probe.c (compile_probe_arg): Likewise.
2673
2674 2012-07-18 Sergio Durigan Junior <sergiodj@redhat.com>
2675
2676 * elfread.c (elf_get_probe_argument_count): Remove `objfile' argument.
2677 (elf_compile_to_ax): Likewise.
2678 * infrun.c (insert_exception_resume_from_probe): Likewise.
2679 (check_exception_resume): Remove `objfile' variable.
2680 * probe.c (find_probe_by_pc): Remove `objfile' argument.
2681 (struct probe_and_objfile, probe_and_objfile_s): Delete.
2682 (collect_probes): Adjust return value to `VEC (probe_p) *'.
2683 (compare_entries): Rename to...
2684 (compare_probes): ...this. Adjust function to work with
2685 `struct probe *'. Rename variables `ea' and `eb' to `pa' and `pb'
2686 respectively.
2687 (gen_ui_out_table_header_info): Adjust `probes' argument to be
2688 `VEC (probe_p) *'.
2689 (print_ui_out_info): Adjust argument to be `struct probe *'.
2690 (info_probes_for_ops): Adjust internal computations to use
2691 `VEC (probe_p) *'.
2692 (probe_safe_evaluate_at_pc): Refactor to not pass `objfile' anymore.
2693 * probe.h (struct probe_ops) <get_probe_argument_count, compile_to_ax,
2694 gen_info_probes_table_values>: Remove `objfile' argument.
2695 (struct probe) <objfile>: New field.
2696 (find_probe_by_pc): Remove `objfile' argument.
2697 * stap-probe.c (stap_parse_probe_arguments): Likewise.
2698 (stap_get_probe_argument_count): Likewise.
2699 (stap_get_arg): Likewise.
2700 (stap_evaluate_probe_argument): Likewise.
2701 (stap_compile_to_ax): Likewise.
2702 (compile_probe_arg): Refactor not to pass `objfile' anymore.
2703 (handle_stap_probe): Fill `objfile' field from `struct probe'.
2704 (stap_gen_info_probes_table_header): Remove `objfile' argument.
2705 * symfile.h (struct sym_probe_fns) <sym_evaluate_probe_argument,
2706 sym_compile_to_ax>: Likewise.
2707
2708 2012-07-18 Terry Guo <terry.guo@arm.com>
2709
2710 PR 14329
2711 * defs.h (GDB_MI_MSG_WIDTH): New.
2712 * ser_base (ser_base_read_error_fd): New function.
2713 (do_ser_base_readchar): Poll error file descriptor as well as
2714 standard output.
2715 (generic_readchar): Refactor error handling.
2716
2717 2012-07-18 Joel Brobecker <brobecker@adacore.com>
2718
2719 * NEWS: Create a new section for the next release branch.
2720 Rename the section of the current branch, now that it has
2721 been cut.
2722
2723 2012-07-18 Joel Brobecker <brobecker@adacore.com>
2724
2725 GDB 7.5 branch created (branch timestamp: 2012-07-18 03:22 UTC)
2726 * version.in: Bump version to 7.5.50.20120718-cvs.
2727
2728 2012-07-17 Keith Seitz <keiths@redhat.com>
2729
2730 * linespec.c (linespec_parse_line_offset): Make parameter
2731 const.
2732
2733 2012-07-16 Jan Kratochvil <jan.kratochvil@redhat.com>
2734
2735 PR 11914
2736 * f-valprint.c (info_common_command): New variable frame_id.
2737 Reinitialize FI form FRAME_ID after each print_variable_and_value.
2738 * printcmd.c (print_variable_and_value): Extend function comment.
2739 Add comment for invalidated FRAME.
2740 * stack.c (backtrace_command_1): New variable frame_id. Reinitialize
2741 FI form FRAME_ID after each print_frame_local_vars.
2742 (struct print_variable_and_value_data): Change frame to frame_id.
2743 (do_print_variable_and_value): New variable frame, initialize it from
2744 p->frame_id. Add comment for invalidated FRAME.
2745 (print_frame_local_vars, print_frame_arg_vars): New function comment.
2746 Update CB_DATA.FRAME to CB_DATA.FRAME_ID initialization. Add comment
2747 for invalidated FRAME.
2748
2749 2012-07-16 Marc Khouzam <marc.khouzam@ericsson.com>
2750 Pedro Alves <palves@redhat.com>
2751
2752 * linux-nat.c (linux_nat_detach): Don't unregister from the event
2753 loop.
2754
2755 2012-07-16 Tom Tromey <tromey@redhat.com>
2756
2757 * jv-typeprint.c (c_type_print_varspec_suffix): Don't declare.
2758
2759 2012-07-15 Doug Evans <dje@google.com>
2760
2761 * dwarf2read.c (stmt_list_hash): New struct.
2762 (type_unit_group): Embed "per_cu" member, remove pointer.
2763 New union member "t", move member "tus" into it, all uses updated.
2764 New member "hash", replaces member "line_offset, all uses updated.
2765 (quick_file_names): Replace member "offset" with "hash", all uses
2766 updated.
2767 (hash_stmt_list_entry, eq_stmt_list_entry): New functions.
2768 (hash_file_name_entry, eq_file_name_entry): Call them.
2769 (hash_type_unit_group, eq_type_unit_group): Ditto.
2770 (dw2_get_cu, dw2_get_primary_cu): Replace assert with a better one.
2771 (dw2_get_file_names_reader): Fix file name table calculation for TUs.
2772 (dw2_get_file_names): Update.
2773 (create_type_unit_group): Replace "per_cu" arg with "cu".
2774 All callers updated. Fix "quick" (.gdb_index) handling.
2775 (get_type_unit_group): Replace "per_cu" arg with "cu".
2776 All callers updated.
2777 (build_type_unit_groups): Don't reset tu_stats.
2778
2779 * symtab.c (filename_seen_cache): Delete members "tab_alloc_size",
2780 "tab_cur_size". Change member "tab" to be a htab_t.
2781 (create_filename_seen_cache): Update.
2782 (clear_filename_seen_cache, delete_filename_seen_cache): Update.
2783 (filename_seen): Update.
2784
2785 2012-07-13 Doug Evans <dje@google.com>
2786
2787 * symtab.c (filename_seen): Update comment.
2788
2789 2012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2790 Doug Evans <dje@google.com>
2791
2792 * buildsym.c (end_symtab_1): Split it to ...
2793 (end_symtab_get_static_block): ... this ...
2794 (end_symtab_from_static_block): ... and this function.
2795 (end_symtab, end_expandable_symtab): Call them.
2796 * buildsym.h (end_symtab_get_static_block)
2797 (end_symtab_from_static_block): New declarations.
2798 * dwarf2read.c (process_full_comp_unit): New variable static_block.
2799 Set its valid CU ranges.
2800
2801 2012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2802
2803 * dwarf2loc.c (disassemble_dwarf_expression): Handle
2804 DW_OP_GNU_parameter_ref.
2805
2806 2012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2807
2808 * dwarf2read.c (read_call_site_scope): Do not gdb_assert for invalid
2809 read-in CALL_SITE_PARAMETER_PARAM_OFFSET.
2810
2811 2012-07-13 Doug Evans <dje@google.com>
2812
2813 * symtab.c (output_source_filename): Delete unnecessary forward decl.
2814 (filename_seen_cache): New struct.
2815 (INITIAL_FILENAME_SEEN_CACHE_SIZE): New macro.
2816 (create_filename_seen_cache): New function.
2817 (clear_filename_seen_cache, delete_filename_seen_cache): New functions.
2818 (filename_seen): Delete arg "first". New arg "cache". All callers
2819 updated.
2820 (output_source_filename_data): New struct.
2821 (output_source_filename): Delete arg "first". New arg "data".
2822 All callers updated.
2823 (sources_info): Delete local "first". New locals "data", "cleanups".
2824 Rewrite to use filename_seen_cache.
2825 (add_partial_filename_data): Delete member "first". New member
2826 "filename_seen_cache". All uses updated.
2827 (make_source_files_completion_list): Rewrite to use
2828 filename_seen_cache.
2829
2830 2012-07-12 Doug Evans <dje@google.com>
2831
2832 * psymtab.c (map_symbol_filenames_psymtab): Skip shared psymtabs.
2833
2834 2012-07-10 Doug Evans <dje@google.com>
2835
2836 PR gdb/13498
2837 * dwarf2read.c (dwarf2_per_objfile): New members n_type_unit_groups,
2838 all_type_unit_groups, type_unit_groups, tu_stats.
2839 (dwarf2_per_cu_data): Move "imported_symtabs" into new union "s".
2840 All uses updated. Add type_unit_group to union "s".
2841 (type_unit_group): New struct.
2842 (IS_TYPE_UNIT_GROUP): New macro.
2843 (abbrev_table): Delete unused member "section".
2844 (dw2_do_instantiate_symtab): Early exit if type_unit_group.
2845 (dw2_get_cu): Assert not used with type_unit_group.
2846 (dw2_get_primary_cu): New function.
2847 (dw2_build_type_unit_groups_reader): New function.
2848 (dw2_build_type_unit_groups): New function.
2849 (dw2_get_file_names): Assert not called on type units.
2850 (dw2_map_symtabs_matching_filename): Call dw2_build_type_unit_groups.
2851 Redo loop to iterate over type unit groups instead of type units.
2852 (dw2_expand_symtabs_matching, dw2_map_symbol_filenames): Ditto.
2853 (read_abbrev_offset): New function.
2854 (init_cutu_and_read_dies): New arg "abbrev_table". All callers
2855 updated.
2856 (create_partial_symtab): New function.
2857 (process_psymtab_comp_unit_reader): Assert not used with type units.
2858 Call create_partial_symtab.
2859 (process_psymtab_type_unit): Delete.
2860 (hash_type_unit_group, eq_type_unit_group): New functions.
2861 (allocate_type_unit_groups_table): New function.
2862 (NO_STMT_LIST_TYPE_UNIT_PSYMTAB): New macro.
2863 (NO_STMT_LIST_TYPE_UNIT_PSYMTAB_SIZE): New macro.
2864 (create_type_unit_group, get_type_unit_group): New functions.
2865 (tu_abbrev_offset): New struct.
2866 (sort_tu_by_abbrev_offset): New function.
2867 (add_type_unit_group_to_table): New function.
2868 (build_type_unit_groups): New function.
2869 (build_type_psymtabs_reader): New function.
2870 (build_type_psymtab_dependencies): New function.
2871 (build_type_psymtabs): Rewrite.
2872 (scan_partial_symbols): Flag an error if a DW_TAG_imported_unit
2873 is seen in a type unit.
2874 (process_queue): Move symtab expansion debugging printfs here.
2875 Call process_full_type_unit for type units.
2876 (compute_symtab_includes): Assert not called for type units.
2877 (process_cu_includes): Don't call compute_symtab_includes for
2878 type units.
2879 (process_full_type_unit): New function.
2880 (process_imported_unit_die): Flag an error if called for type units.
2881 (handle_DW_AT_stmt_list): Delete arg "want_line_info". All callers
2882 updated. Assert not called for type units.
2883 (read_file_scope): Call dwarf2_start_symtab.
2884 (setup_type_unit_groups): New function.
2885 (read_type_unit_scope): Rewrite.
2886 (abbrev_table_read_table): Initialize abbrev_table->offset.
2887 (abbrev_table_free_cleanup): New function.
2888 (dwarf2_start_symtab): New function.
2889 (load_full_type_unit): Assert not called for type unit groups.
2890 * buildsym.c (finish_block_internal): New arg "expandable".
2891 All callers updated.
2892 (start_symtab): Move most contents to ...
2893 (restart_symtab): ... here. New function.
2894 (reset_symtab_globals): New function.
2895 (end_symtab_1): Renamed from end_symtab. New arg "expandable".
2896 Call reset_symtab_globals.
2897 (end_symtab, end_expandable_symtab): New functions.
2898 (set_missing_symtab, augment_type_symtab): New functions.
2899 * buildsym.h (end_expandable_symtab): Declare.
2900 (augment_type_symtab, restart_symtab): Declare.
2901 * psympriv.h (struct partial_symtab): New member "anonymous".
2902 * psymtab.c (partial_map_symtabs_matching_filename): Ignore
2903 anonymous psymtabs.
2904 (read_psymtabs_with_filename): Ditto.
2905 (map_symbol_filenames_psymtab, psymtab_to_fullname): Ditto.
2906 (expand_symtabs_matching_via_partial): Ditto.
2907 (dump_psymtab): Update.
2908 * dictionary.c (dict_add_pending): New function.
2909 * dictionary.h (dict_add_pending): Declare.
2910
2911 2012-07-09 Doug Evans <dje@google.com>
2912
2913 * buildsym.c (start_subfile): Remove unnecessary check for
2914 name == NULL.
2915
2916 * psymtab.c (allocate_psymtab): Use host_address_to_string.
2917
2918 * dwarf2read.c (load_full_type_unit): Simplify.
2919
2920 * dwarf2read.c (dwarf2_per_objfile): Change type of all_type_units
2921 to struct signatured_type **. All uses updated.
2922
2923 * dwarf2read.c (dwarf2_attr_no_follow): Delete unused arg "cu".
2924 All callers updated.
2925
2926 2012-07-09 Tom Tromey <tromey@redhat.com>
2927
2928 * c-exp.y (check_parameter_typelist): New function.
2929 (parameter_typelist): Call it.
2930 * eval.c (make_params): Handle '(void)' case.
2931 * gdbtypes.c (lookup_function_type_with_arguments): Handle
2932 '(void)' case.
2933
2934 2012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
2935
2936 * common/linux-ptrace.c: Include gdb_assert.h.
2937 <__i386__> (linux_ptrace_test_ret_to_nx_instr): New declaration.
2938 <__i386__>: Include sys/reg.h, sys/mman.h, signal.h, sys/wait.h and
2939 stdint.h.
2940 (linux_ptrace_test_ret_to_nx, linux_ptrace_init_warnings): New
2941 functions.
2942 * common/linux-ptrace.h (linux_ptrace_init_warnings): New declarations.
2943 * linux-nat.c (linux_child_post_attach)
2944 (linux_child_post_startup_inferior): Call linux_ptrace_init_warnings.
2945
2946 2012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
2947
2948 * linux-thread-db.c (thread_db_find_new_threads_silently): Do not apply
2949 nptl <2.7 bug workaround for core files.
2950
2951 2012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
2952
2953 * linux-nat.c (resume_lwp, linux_nat_resume): Remove LP->SIGINFO
2954 clearing.
2955 (save_siginfo): Remove.
2956 (stop_wait_callback, linux_nat_filter_event): Remove the save_siginfo
2957 call.
2958 (resume_stopped_resumed_lwps): Remove LP->SIGINFO clearing.
2959 (linux_nat_get_siginfo): Use PTRACE_GETSIGINFO.
2960 * linux-nat.h (struct lwp_info): Remove field siginfo.
2961
2962 2012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
2963
2964 Code cleanup for the next patch.
2965 * arm-linux-nat.c (arm_linux_stopped_data_address): Change variable
2966 siginfo_p to siginfo, update its users incl. the linux_nat_get_siginfo
2967 call for it.
2968 * ia64-linux-nat.c (ia64_linux_stopped_data_address): Likewise.
2969 (ia64_linux_stopped_data_address):
2970 * linux-nat.c (linux_nat_get_siginfo): Add parameter siginfo, change
2971 the return value.
2972 * linux-nat.h (linux_nat_get_siginfo): Likewise.
2973 * ppc-linux-nat.c (ppc_linux_stopped_data_address): Change variable
2974 siginfo_p to siginfo, update its users incl. the linux_nat_get_siginfo
2975 call for it.
2976
2977 2012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
2978
2979 PR 14321
2980 * findcmd.c (parse_find_args): New variable pattern_buf_size_need.
2981 Increase buffer sizes to 2x we need, not just 2x of the previous size.
2982
2983 2012-07-06 Tom Tromey <tromey@redhat.com>
2984
2985 * c-exp.y (DOTDOTDOT): New token.
2986 (func_mod, exp): Use parameter_typelist.
2987 (parameter_typelist): New production.
2988 (tokentab3): Add "..." token.
2989 * eval.c (make_params): Handle varargs.
2990 * gdbtypes.c (lookup_function_type_with_arguments): Handle
2991 varargs.
2992
2993 2012-07-06 Tom Tromey <tromey@redhat.com>
2994
2995 PR exp/9608:
2996 * c-exp.y (%union) <tvec>: Change type.
2997 (func_mod): Now uses <tvec> type.
2998 (exp): Update for tvec change.
2999 (direct_abs_decl): Push the typelist.
3000 (func_mod): Return a typelist.
3001 (nonempty_typelist): Update for tvec change.
3002 * gdbtypes.c (lookup_function_type_with_arguments): New function.
3003 * gdbtypes.h (lookup_function_type_with_arguments): Declare.
3004 * parse.c (pop_type_list): New function.
3005 (push_typelist): New function.
3006 (follow_types): Handle tp_function_with_arguments.
3007 * parser-defs.h (type_ptr): New typedef. Define a VEC.
3008 (enum type_pieces) <tp_function_with_arguments>: New constant.
3009 (union type_stack_elt) <typelist_val>: New field.
3010 (push_typelist): Declare.
3011
3012 2012-07-06 Tom Tromey <tromey@redhat.com>
3013
3014 * c-exp.y (%union) <type_stack>: New field.
3015 (abs_decl, direct_abs_decl): Use <type_stack> type. Update.
3016 (ptr_operator_ts): New production.
3017 (ptype): Update.
3018 * parse.c (type_stack_reserve): New function.
3019 (check_type_stack_depth): Use it.
3020 (pop_type_stack, append_type_stack, push_type_stack)
3021 (get_type_stack, type_stack_cleanup): New functions.
3022 (follow_types): Handle tp_type_stack.
3023 (_initialize_parse): Simplify initialization.
3024 * parser-defs.h (enum type_pieces) <tp_type_stack>: New
3025 constant.
3026 (union type_stack_elt) <stack_val>: New field.
3027 (get_type_stack, append_type_stack, push_type_stack)
3028 (type_stack_cleanup): Declare.
3029
3030 2012-07-06 Tom Tromey <tromey@redhat.com>
3031
3032 * parser-defs.h (type_stack, type_stack_size, type_stack_depth):
3033 Remove.
3034 (struct type_stack): New.
3035 * parse.c (type_stack, type_stack_size, type_stack_depth):
3036 Remove.
3037 (type_stack): New global.
3038 (parse_exp_in_context, check_type_stack_depth)
3039 (insert_into_type_stack, insert_type, push_type, push_type_int)
3040 (insert_type_address_space, pop_type, pop_type_int)
3041 (_initialize_parse): Update.
3042
3043 2012-07-06 Tom Tromey <tromey@redhat.com>
3044
3045 * c-exp.y (func_mod, direct_abs_decl, abs_decl, ptr_operator):
3046 Remove %type.
3047
3048 2012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
3049
3050 * c-lang.c (c_printstr): Remove ununsed variable WIDTH.
3051
3052 2012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
3053 Jan Kratochvil <jan.kratochvil@redhat.com>
3054
3055 * cp-valprint.c (cp_print_value): Replace potentially unsafe
3056 alloca with xmalloc/xfree.
3057
3058 2012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
3059
3060 * MAINTAINERS (Write After Approval): Add myself to the list.
3061
3062 2012-07-05 Doug Evans <dje@google.com>
3063
3064 * dwarf2read.c (dw2_expand_symtabs_matching): Fix typo.
3065
3066 2012-07-05 Hui Zhu <hui_zhu@mentor.com>
3067
3068 * ax-gdb.c (cli/cli-utils.h): New include.
3069 (linespec.h): Ditto.
3070 (agent_eval_command_one): New function.
3071 (agent_command_1): Ditto.
3072 (agent_command): Call function agent_command_1.
3073 (agent_eval_command): Ditto.
3074 (_initialize_ax_gdb): Change help for "maint agent"
3075 and "maint agent-eval".
3076
3077 2012-07-05 Hui Zhu <hui_zhu@mentor.com>
3078
3079 * breakpoint.c (check_for_argument): Move to file cli/cli-utils.c.
3080 * cli/cli-utils.c (check_for_argument): New function.
3081 * cli/cli-utils.h (check_for_argument): Ditto.
3082
3083 2012-07-04 H.J. Lu <hongjiu.lu@intel.com>
3084
3085 * NEWS: Mention x32 ABI support.
3086
3087 2012-07-04 H.J. Lu <hongjiu.lu@intel.com>
3088
3089 * amd64-tdep.c (amd64_x32_init_abi): Set sp_regnum_from_eax to
3090 AMD64_RSP_REGNUM and pc_regnum_from_eax to AMD64_RIP_REGNUM.
3091
3092 * i386-tdep.c (i386_gdbarch_init): Initialize sp_regnum_from_eax
3093 and pc_regnum_from_eax to -1. Update SP regnum from
3094 sp_regnum_from_eax and PC regnum from pc_regnum_from_eax if
3095 needed.
3096
3097 * i386-tdep.h (gdbarch_tdep): Add sp_regnum_from_eax and
3098 pc_regnum_from_eax.
3099
3100 2012-07-03 Jan Kratochvil <jan.kratochvil@redhat.com>
3101
3102 Fix 'warning: parameter has incomplete type' with gcc-3.4.6.
3103 * dwarf2expr.h: Include gdbtypes.h.
3104 (enum call_site_parameter_kind, union call_site_parameter_u): Remove
3105 these forward declarations.
3106 (cu_offset, sect_offset): Move these ...
3107 * gdbtypes.h: Remove include dwarf2expr.h.
3108 (cu_offset, sect_offset): ... here.
3109
3110 2012-07-03 H.J. Lu <hongjiu.lu@intel.com>
3111
3112 * amd64-linux-tdep.c (linux_sigtramp_code): Renamed to ...
3113 (amd64_linux_sigtramp_code): This.
3114 (amd64_x32_linux_sigtramp_code): New.
3115 (LINUX_SIGTRAMP_LEN): Updated.
3116 (amd64_linux_sigtramp_start): Check x32 sigtramp.
3117
3118 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3119
3120 * linux-thread-db.c (thread_db_new_objfile): Fix comment typos.
3121
3122 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3123
3124 * config.in: Regenerate.
3125 * configure: Regenerate.
3126 * configure.ac: Remove check for gnu/libc-version.h.
3127 * linux-thread-db.c <HAVE_GNU_LIBC_VERSION_H>: Remove include of
3128 gnu/libc-version.h.
3129 (enable_thread_event_reporting) <HAVE_GNU_LIBC_VERSION_H>: Remove
3130 variables libc_version, libc_major and libc_minor. Replace sscanf by
3131 inferior_has_bug. Extend the comment.
3132
3133 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3134
3135 * linux-thread-db.c (inferior_has_bug): New function.
3136 (thread_db_find_new_threads_silently): Return boolean as checked by
3137 inferior_has_bug, describe it in the comments.
3138 (try_thread_db_load_1): Move call to thread_db_find_new_threads_silently
3139 earlier. Abort the initialization if it returned non-zero.
3140 (thread_db_new_objfile): Exclude debug files.
3141 (thread_db_find_new_threads_2): Preinitialize ERR. Check errors also
3142 if UNTIL_NO_NEW,
3143
3144 2012-07-02 Doug Evans <dje@google.com>
3145
3146 * dwarf2read.c (maybe_queue_comp_unit): Move definition next to others
3147 related to queue management.
3148
3149 * dwarf2read.c (create_debug_types_hash_table): Use "debug dwarf2-read"
3150 instead of "debug dwarf2-die" in debugging printfs.
3151 (create_debug_info_hash_table_reader): Ditto.
3152 (create_debug_info_hash_table): Ditto.
3153 (init_dwo_file): Ditto.
3154 (init_cutu_and_read_dies): Add debugging printf.
3155 (init_cutu_and_read_dies_no_follow): Ditto.
3156 (process_psymtab_comp_unit_reader): Ditto.
3157
3158 2012-07-02 Stan Shebs <stan@codesourcery.com>
3159
3160 Add target-side support for dynamic printf.
3161 * NEWS: Mention the additional style.
3162 * breakpoint.h (struct bp_target_info): New fields tcommands, persist.
3163 (struct bp_location): New field cmd_bytecode.
3164 * breakpoint.c: Include format.h.
3165 (disconnected_dprintf): New global.
3166 (parse_cmd_to_aexpr): New function.
3167 (build_target_command_list): New function.
3168 (insert_bp_location): Call it.
3169 (remove_breakpoints_pid): Skip dprintf breakpoints.
3170 (print_one_breakpoint_location): Ditto.
3171 (dprintf_style_agent): New global.
3172 (dprintf_style_enums): Add dprintf_style_agent.
3173 (update_dprintf_command_list): Add agent case.
3174 (agent_printf_command): New function.
3175 (_initialize_breakpoint): Add new commands.
3176 * common/ax.def (printf): New bytecode.
3177 * ax.h (ax_string): Declare.
3178 * ax-gdb.h (gen_printf): Declare.
3179 * ax-gdb.c: Include cli-utils.h, format.h.
3180 (gen_printf): New function.
3181 (maint_agent_print_command): New function.
3182 (_initialize_ax_gdb): Add maint agent-printf command.
3183 * ax-general.c (ax_string): New function.
3184 (ax_print): Add printf disassembly.
3185 * Makefile.in (SFILES): Add format.c
3186 (COMMON_OBS): Add format.o.
3187 * common/format.h: New file.
3188 * common/format.c: New file.
3189 * printcmd.c: Include format.h.
3190 (ui_printf): Call parse_format_string.
3191 * remote.c (remote_state): New field breakpoint_commands.
3192 (PACKET_BreakpointCommands): New enum.
3193 (remote_breakpoint_commands_feature): New function.
3194 (remote_protocol_features): Add new BreakpointCommands entry.
3195 (remote_can_run_breakpoint_commands): New function.
3196 (remote_add_target_side_commands): New function.
3197 (remote_insert_breakpoint): Call it.
3198 (remote_insert_hw_breakpoint): Ditto.
3199 (_initialize_remote): Add new packet configuration for
3200 target-side breakpoint commands.
3201 * target.h (struct target_ops): New field
3202 to_can_run_breakpoint_commands.
3203 (target_can_run_breakpoint_commands): New macro.
3204 * target.c (update_current_target): Handle
3205 to_can_run_breakpoint_commands.
3206
3207 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3208
3209 Execute -ix and -iex only after system and user gdbinit files.
3210 * main.c (captured_main): Move CMDARG_INIT_FILE and CMDARG_INIT_COMMAND
3211 processing down after gdbinit files.
3212
3213 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3214
3215 Add fnmatch-gnu module.
3216 * gnulib/Makefile.in (aclocal_m4_deps): Add new files and remove one.
3217 * gnulib/configure.ac (AC_INIT): Use now import/memmem.c.
3218 * gnulib/aclocal.m4: Regenerate.
3219 * gnulib/config.in: Regenerate.
3220 * gnulib/configure: Regenerate.
3221 * gnulib/import/dummy.c: Remove.
3222 * gnulib/import/Makefile.am: Regenerate.
3223 * gnulib/import/Makefile.in: Likewise.
3224 * gnulib/import/m4/gnulib-cache.m4: Likewise.
3225 * gnulib/import/m4/gnulib-comp.m4: Likewise.
3226 * gnulib/import/alloca.c: New file.
3227 * gnulib/import/alloca.in.h: Likewise.
3228 * gnulib/import/config.charset: Likewise.
3229 * gnulib/import/fnmatch.c: Likewise.
3230 * gnulib/import/fnmatch.in.h: Likewise.
3231 * gnulib/import/fnmatch_loop.c: Likewise.
3232 * gnulib/import/localcharset.c: Likewise.
3233 * gnulib/import/localcharset.h: Likewise.
3234 * gnulib/import/m4/alloca.m4: Likewise.
3235 * gnulib/import/m4/codeset.m4: Likewise.
3236 * gnulib/import/m4/configmake.m4: Likewise.
3237 * gnulib/import/m4/fcntl-o.m4: Likewise.
3238 * gnulib/import/m4/fnmatch.m4: Likewise.
3239 * gnulib/import/m4/glibc21.m4: Likewise.
3240 * gnulib/import/m4/localcharset.m4: Likewise.
3241 * gnulib/import/m4/locale-fr.m4: Likewise.
3242 * gnulib/import/m4/locale-ja.m4: Likewise.
3243 * gnulib/import/m4/locale-zh.m4: Likewise.
3244 * gnulib/import/m4/mbrtowc.m4: Likewise.
3245 * gnulib/import/m4/mbsinit.m4: Likewise.
3246 * gnulib/import/m4/mbsrtowcs.m4: Likewise.
3247 * gnulib/import/m4/mbstate_t.m4: Likewise.
3248 * gnulib/import/m4/stdbool.m4: Likewise.
3249 * gnulib/import/m4/wchar_h.m4: Likewise.
3250 * gnulib/import/m4/wctype_h.m4: Likewise.
3251 * gnulib/import/m4/wint_t.m4: Likewise.
3252 * gnulib/import/mbrtowc.c: Likewise.
3253 * gnulib/import/mbsinit.c: Likewise.
3254 * gnulib/import/mbsrtowcs-impl.h: Likewise.
3255 * gnulib/import/mbsrtowcs-state.c: Likewise.
3256 * gnulib/import/mbsrtowcs.c: Likewise.
3257 * gnulib/import/ref-add.sin: Likewise.
3258 * gnulib/import/ref-del.sin: Likewise.
3259 * gnulib/import/stdbool.in.h: Likewise.
3260 * gnulib/import/streq.h: Likewise.
3261 * gnulib/import/strnlen1.c: Likewise.
3262 * gnulib/import/strnlen1.h: Likewise.
3263 * gnulib/import/verify.h: Likewise.
3264 * gnulib/import/wchar.in.h: Likewise.
3265 * gnulib/import/wctype.in.h: Likewise.
3266
3267 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3268
3269 Support shell wildcards for 'set auto-load safe-path'.
3270 * auto-load.c: Include fnmatch.h.
3271 (filename_is_in_dir): Rename to ...
3272 (filename_is_in_pattern_1, filename_is_in_pattern): ... here and split
3273 it. Update function comment. Rename dir_len to pattern_len. New
3274 variables filename_len, pattern and filename. Add more DEBUG_AUTO_LOAD
3275 messages. Use gdb_filename_fnmatch.
3276 (filename_is_in_auto_load_safe_path_vec): Rename variable dir to
3277 pattern.
3278 (_initialize_auto_load): Extend the "set auto-load safe-path" help text.
3279 * defs.h (gdb_filename_fnmatch): New declaration.
3280 * utils.c: Include fnmatch.h.
3281 (gdb_filename_fnmatch): New function.
3282
3283 2012-07-02 Sergio Durigan Junior <sergiodj@redhat.com>
3284
3285 * breakpoint.c (BREAK_ARGS_HELP): Include help message for the new
3286 `-probe' and `-probe-stap' options.
3287
3288 2012-07-01 Yao Qi <yao@codesourcery.com>
3289
3290 * breakpoint.c: Removed always_inserted_auto, always_inserted_on,
3291 always_inserted_off, and always_inserted_enums.
3292 Change always_inserted_mode's type to 'enum auto_boolean'.
3293 (show_always_inserted_mode, breakpoint_always_inserted_mode): Update
3294 callers.
3295 (_initialize_breakpoint): Call add_setshow_auto_boolean_cmd instead
3296 of add_setshow_enum_cmd.
3297 * infrun.c: Remove can_use_displaced_stepping_auto,
3298 can_use_displaced_stepping_on, can_use_displaced_stepping_off, and
3299 can_use_displaced_stepping_enum.
3300 Change can_use_displaced_stepping's type to 'enum auto_boolean'.
3301 (show_can_use_displaced_stepping, use_displaced_stepping): Update callers.
3302 (_initialize_infrun): Call add_setshow_auto_boolean_cmd instead of
3303 add_setshow_enum_cmd.
3304
3305 2012-06-30 Doug Evans <dje@google.com>
3306
3307 * dwarf2read.c (signatured_type): Make "per_cu" member first.
3308 (init_cutu_and_read_dies): Handle rereading a DWO CU while it's
3309 currently being read. Propagate DW_AT_comp_dir to DWO DIE.
3310
3311 2012-06-29 Doug Evans <dje@google.com>
3312
3313 * linespec.c: #include "stack.h".
3314 (decode_line_with_current_source): Moved here from symtab.c and
3315 renamed from decode_line_spec. All callers updated.
3316 (decode_line_with_last_displayed): Moved here from breakpoint.c and
3317 renamed from decode_line_spec_1. All callers updated.
3318 * linespec.h (decode_line_with_current_source): Move declaration here
3319 from symtab.h and renamed from decode_line_spec.
3320 (decode_line_with_last_displayed): Move declaration here from symtab.h
3321 and renamed from decode_line_spec_1.
3322 * macrocmd.c: #include "linespec.h".
3323 * symtab.c: Remove #include "linespec.h".
3324
3325 2012-06-28 Doug Evans <dje@google.com>
3326
3327 * dwarf2read.c (get_cu_length): New function.
3328 (offset_in_cu_p, error_check_comp_unit_head): Call it.
3329 (create_debug_types_hash_table): Ditto.
3330 (init_cutu_and_read_dies): Ditto.
3331 (init_cutu_and_read_dies_no_follow): Ditto.
3332
3333 * dwarf2read.c (dwarf2_find_base_address): Move definition.
3334
3335 * dwarf2read.c (ABBREV_HASH_SIZE): Remove enclosing #ifndef/#endif.
3336 (struct abbrev_table): Define.
3337 (dwarf2_cu): Replace members dwarf2_abbrevs, abbrev_obstack with
3338 abbrev_table.
3339 (init_cutu_and_read_dies): Update.
3340 (abbrev_table_alloc_abbrev): New function. Replaces
3341 dwarf_alloc_abbrev. All callers updated.
3342 (abbrev_table_add_abbrev): New function.
3343 (abbrev_table_lookup_abbrev): New function. Replaces
3344 dwarf2_lookup_abbrev. All callers updated.
3345 (abbrev_table_read_table): New function. Contents moved here from
3346 dwarf2_read_abbrevs.
3347 (dwarf2_read_abbrevs): Call it.
3348 (abbrev_table_free): New function.
3349 (dwarf2_free_abbrev_table): Call it.
3350
3351 2012-06-28 Stan Shebs <stan@codesourcery.com>
3352
3353 * osdata.c (info_osdata_command): Filter out "Title" columns
3354 from non-MI uses.
3355 * common/linux-osdata.c (struct osdata_type): Add title field.
3356 (osdata_table): Add titles to each entry.
3357 (linux_command_xfer_osdata): Add a column for title data.
3358
3359 2012-06-28 Stan Shebs <stan@codesourcery.com>
3360
3361 Make logging work for MI.
3362 * NEWS: Mention it.
3363 * interps.h (interp_set_logging_ftype): New typedef.
3364 (struct interp_procs): New field set_logging_proc.
3365 (current_interp_set_logging): Declare.
3366 * interps.c (current_interp_set_logging): New function.
3367 * cli/cli-logging.c: Include interps.h.
3368 (set_logging_redirect): Call current_interp_set_logging.
3369 (pop_output_files): Ditto.
3370 (handle_redirections): Ditto, plus skip ui-out redirect if MI.
3371 * mi/mi-console.h (mi_console_set_raw): Declare.
3372 * mi/mi-console.c (mi_console_set_raw): New function.
3373 * mi/mi-interp.c (saved_raw_stdout): New global.
3374 (mi_set_logging): New function.
3375 (_initialize_mi_interp): Add it to interp procs.
3376
3377 2012-06-28 Doug Evans <dje@google.com>
3378
3379 * symtab.c (lookup_symbol_aux_objfile): Use
3380 ALL_OBJFILE_PRIMARY_SYMTABS.
3381
3382 * gdbtypes.c (lookup_typename): Rename local variable "tmp" to "type".
3383
3384 2012-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3385
3386 * common/buffer.c: Include inttypes.h and stdint.h.
3387 (buffer_xml_printf): Use PRId64, PRIu64, PRIx64 and PRIo64.
3388
3389 2012-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3390 Pedro Alves <palves@redhat.com>
3391
3392 * gdbthread.h (ALL_THREADS): New macro.
3393 (thread_list): Declare.
3394 * infrun.c (handle_inferior_event) <spurious signal>: Don't keep
3395 going, but instead fall through to the stepping handling.
3396 * linux-nat.c (resume_lwp): New parameter 'signo'. Resume with
3397 the passed in signal. Adjust debug output.
3398 (resume_callback): Rename to ...
3399 (linux_nat_resume_callback): ... this. Pass the thread's last
3400 stop signal, if in "pass" state.
3401 (linux_nat_resume): Adjust to rename.
3402 (stop_wait_callback): New assertion. Don't respawn signals;
3403 instead let the LWP remain with SIGNALLED set.
3404 (linux_nat_wait_1): Remove flushing of pending SIGSTOPs.
3405 * remote.c (append_pending_thread_resumptions): New.
3406 (remote_vcont_resume): Call it.
3407 * target.h (target_resume): Extend comment.
3408
3409 2012-06-28 Iain Sandoe <iain@codesourcery.com>
3410
3411 * auxv.c (fprint_target_auxv): Handle extended cache data tags.
3412
3413 2012-06-27 Doug Evans <dje@google.com>
3414
3415 * dwarf2read.c (dwarf2_cu): Add ranges_base.
3416 Delete have_addr_base, unused. All uses updated.
3417 (init_cutu_and_read_dies): Process DW_AT_GNU_ranges_base.
3418 (dwarf2_get_pc_bounds): Add ranges_base.
3419 (dwarf2_record_block_ranges): Ditto.
3420
3421 2012-06-27 Tom Tromey <tromey@redhat.com>
3422
3423 PR macros/7961:
3424 * varobj.c (varobj_create): Update.
3425 (varobj_set_value): Update.
3426 * tracepoint.c (validate_actionline): Update.
3427 (encode_actions_1): Update.
3428 * parse.c (parse_exp_1): Add 'pc' argument.
3429 (parse_exp_in_context): Add 'pc' argument. Change how
3430 expression_context_pc is set.
3431 (parse_expression): Update.
3432 (parse_field_expression): Update.
3433 * expression.h (parse_exp_1): Update.
3434 * eval.c (parse_to_comma_and_eval): Update.
3435 * breakpoint.c (set_breakpoint_condition): Update.
3436 (update_watchpoint): Update.
3437 (init_breakpoint_sal): Update
3438 (find_condition_and_thread): Update.
3439 (watch_command_1): Update.
3440 (update_breakpoint_locations): Update.
3441 * ada-lang.c (ada_read_renaming_var_value): Update.
3442 (create_excep_cond_exprs): Update.
3443
3444 2012-06-27 Doug Evans <dje@google.com>
3445
3446 * dwarf2read.c (per_cu_header_read_in): Simplify, and handle
3447 type units.
3448
3449 2012-06-26 Doug Evans <dje@google.com>
3450
3451 * dwarf2read.c (read_and_check_comp_unit_head): Delete unnecessary
3452 prototype.
3453 (error_check_comp_unit_head): New arg abbrev_section. All callers
3454 updated.
3455 (read_and_check_comp_unit_head): Ditto.
3456 (read_and_check_type_unit_head): Ditto.
3457
3458 2012-06-26 Siva Chandra Reddy <sivachandra@google.com>
3459
3460 New attribute 'last' for gdb.Symtab_and_line.
3461 * NEWS (Python Scripting): Add entry about the new attribute.
3462 * python/py-symtab.c (salpy_get_last): New function which
3463 implements the get method for the 'last' attribute of
3464 gdb.Symtab_and_line.
3465 (sal_object_getset): Add entry for the 'last' attribute.
3466
3467 2012-06-26 Doug Evans <dje@google.com>
3468
3469 * dwarf2read.c (dwo_section_names): Add macinfo_dwo, macro_dwo.
3470 (dwo_sections): Add macinfo, macro.
3471 (dwarf2_locate_dwo_sections): Watch for macro sections.
3472 (dwarf_decode_macros): Remove args lh, abfd, section, section_name.
3473 All callers updated. Handle DWO files.
3474
3475 * NEWS: Mention new options "set debug dwarf2-read" and
3476 "set debug symtab-create".
3477 * dwarf2read.c (dwarf2_read_debug): New static global.
3478 (dwarf2_build_psymtabs_hard): Add debugging printfs.
3479 (process_queue): Ditto.
3480 (process_full_comp_unit): Ditto.
3481 (_initialize_dwarf2_read): Add new option "set debug dwarf2-read".
3482 * elfread.c (elf_symfile_read): Add debugging printf.
3483 * minsyms.c (install_minimal_symbols): Ditto.
3484 * psymtab.c (allocate_psymtab): Ditto.
3485 * symfile.c (allocate_symtab): Ditto.
3486 * symtab.c (symtab_create_debug): New global.
3487 (_initialize_symtab): Add new option "set debug symtab-create".
3488 * symtab.h (symtab_create_debug): Declare.
3489
3490 * dwarf2read.c (lookup_dwo_comp_unit): Enhance comment.
3491 (lookup_dwo_type_unit): Ditto.
3492
3493 2012-06-26 Roland McGrath <roland@hack.frob.com>
3494 H.J. Lu <hongjiu.lu@intel.com>
3495
3496 * amd64-linux-nat.c: Include <sys/user.h>.
3497 (ps_get_thread_area): Use PTRACE_PEEKUSER to get fs_base/gs_base
3498 if HAVE_STRUCT_USER_REGS_STRUCT_FS_BASE or
3499 HAVE_STRUCT_USER_REGS_STRUCT_GS_BASE is defined.
3500
3501 * configure.ac: Check if the fs_base and gs_base members of
3502 `struct user_regs_struct' exist.
3503 * config.in: Regenerated.
3504 * configure: Likewise.
3505
3506 2012-06-25 Michael Eager <eager@eagercon.com>
3507
3508 PR python/14291
3509 * python/python.c (gdbpy_write): Check for interrupted output.
3510
3511 2012-06-25 Greta Yorsh <greta.yorsh@arm.com>
3512
3513 * arm-tdep.c (arm_in_function_epilogue_p): Recognize POP with a single
3514 register as a stack alignment in ARM mode.
3515
3516 2012-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3517
3518 Update gnulib to GIT commit a39f53ccb70a613e647e1019fb4c63645220267e.
3519 * gnulib/config.in: Regenerate.
3520 * gnulib/configure: Likewise.
3521 * gnulib/import/m4/extensions.m4: Update it.
3522 * gnulib/import/m4/gnulib-common.m4: Likewise.
3523 * gnulib/import/m4/memmem.m4: Likewise.
3524 * gnulib/import/m4/mmap-anon.m4: Likewise.
3525 * gnulib/import/m4/multiarch.m4: Likewise.
3526 * gnulib/import/stdint.in.h: Likewise.
3527
3528 2012-06-24 Yao Qi <yao@codesourcery.com>
3529
3530 * corefile.c (write_memory_with_notification): New.
3531 * gdbcore.h: Declare write_memory_with_notification.
3532 * ada-lang.c (ada_value_assign): Replace 'write_memory' and
3533 'observer_notify_memory_changed' with 'write_memory_with_notification'.
3534 * valops.c (value_assign): Likewise.
3535 * python/py-inferior.c (infpy_write_memory): Call
3536 'write_memory_with_notification'.
3537
3538 2012-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3539
3540 * cc-with-index.sh: Use also -ex "set auto-load no".
3541
3542 2012-06-23 Doug Evans <dje@google.com>
3543
3544 PR 14125
3545 * NEWS: Document additions to .gdb_index.
3546 * dwarf2read.c: #include "gdb/gdb-index.h".
3547 (DW2_GDB_INDEX_SYMBOL_STATIC_SET_VALUE): New macro.
3548 (DW2_GDB_INDEX_SYMBOL_KIND_SET_VALUE): New macro.
3549 (DW2_GDB_INDEX_CU_SET_VALUE): New macro.
3550 (dwarf2_read_index): Recognize version 7.
3551 (dw2_do_expand_symtabs_matching): New args want_specific_block,
3552 block_kind, domain): All callers updated.
3553 (dw2_find_symbol_file): Handle new index CU values.
3554 (dw2_expand_symtabs_matching): Match symbol kind if requested.
3555 (add_index_entry): New args is_static, kind. All callers updated.
3556 (offset_type_compare, uniquify_cu_indices): New functions
3557 (symbol_kind): New function.
3558 (write_psymtabs_to_index): Remove duplicate CU values.
3559 (write_psymtabs_to_index): Write .gdb_index version 7.
3560
3561 2012-06-22 Joel Brobecker <brobecker@adacore.com>
3562
3563 * configure.ac (build_warnings): Add -Wdeclaration-after-statement.
3564 * configure: Regenerate.
3565
3566 2012-06-20 Yao Qi <yao@codesourcery.com>
3567
3568 * python/py-inferior.c: Update comments of infpy_read_memory
3569 and infpy_write_memory.
3570
3571 2012-06-19 Tom Tromey <tromey@redhat.com>
3572
3573 PR exp/9514:
3574 * parser-defs.h (insert_type, insert_type_address_space): Declare.
3575 (push_type_address_space): Remove.
3576 * parse.c (insert_into_type_stack): New function.
3577 (insert_type): Likewise.
3578 (insert_type_address_space): Rename from push_type_address_space.
3579 Insert tp_space_identifier.
3580 * c-exp.y (ptr_operator): New production.
3581 (abs_decl): Use ptr_operator.
3582 (space_identifier): Call insert_type_address_space.
3583 (ptype): Don't use const_or_volatile_or_space_identifier.
3584 (const_or_volatile_noopt): Call insert_type.
3585 (conversion_type_id, conversion_declarator): New productions.
3586 (operator): Use conversion_type_id.
3587
3588 2012-06-18 Doug Evans <dje@google.com>
3589
3590 * symtab.h (minimal_symbol): New member created_by_gdb.
3591 * elfread.c (elf_symtab_read): Set created_by_gdb for @plt minsym
3592 created by gdb.
3593 * symtab.c (lookup_symbol_in_objfile_from_linkage_name): New function.
3594 (search_symbols): Call it instead of lookup_symbol.
3595 Skip symbols created by gdb. Only scan minsyms if nfiles == 0.
3596
3597 * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_const_index.
3598 Adjust address for DW_OP_GNU_addr_index.
3599 * dwarf2expr.h (dwarf_expr_context): Update comment.
3600 * dwarf2loc.c (locexpr_describe_location_piece): New arg per_cu,
3601 all callers updated. Handle TLS vars described with
3602 DW_OP_GNU_const_index.
3603 (disassemble_dwarf_expression): Handle DW_OP_GNU_addr_index
3604 and DW_OP_GNU_const_index.
3605 * dwarf2read.c (decode_locdesc): Handle DW_OP_GNU_addr_index.
3606
3607 * block.c (find_block_in_blockvector): Make explicit the fact that we
3608 ignore GLOBAL_BLOCK.
3609
3610 2012-06-18 Tom Tromey <tromey@redhat.com>
3611
3612 * c-exp.y (operator): Remove trailing space after "delete" and
3613 "delete[]".
3614
3615 2012-06-18 Mark Kettenis <kettenis@gnu.org>
3616 Jan Kratochvil <jan.kratochvil@redhat.com>
3617
3618 Switch i386 and derived targets to ON_STACK.
3619 * amd64-dicos-tdep.c (amd64_dicos_push_dummy_code): Remove.
3620 (amd64_dicos_init_abi): Remove its installment.
3621 * dicos-tdep.c (dicos_init_abi): Remove the
3622 set_gdbarch_call_dummy_location call. Update the comment here.
3623 * i386-dicos-tdep.c (i386_dicos_push_dummy_code): Remove.
3624 (i386_dicos_init_abi): Remove its installment.
3625 * i386-tdep.c (i386_push_dummy_code): New function.
3626 (i386_gdbarch_init): Call set_gdbarch_call_dummy_location, install
3627 i386_push_dummy_code.
3628
3629 2012-06-18 Jan Kratochvil <jan.kratochvil@redhat.com>
3630
3631 Remove stale dummy frames.
3632 * breakpoint.c: Include dummy-frame.h.
3633 (longjmp_breakpoint_ops): New variable.
3634 (update_breakpoints_after_exec, breakpoint_init_inferior): Delete also
3635 bp_longjmp_call_dummy.
3636 (bpstat_what, bptype_string, print_one_breakpoint_location)
3637 (init_bp_location): Support bp_longjmp_call_dummy.
3638 (set_longjmp_breakpoint): Use longjmp_breakpoint_ops. Comment why.
3639 (set_longjmp_breakpoint_for_call_dummy)
3640 (check_longjmp_breakpoint_for_call_dummy, longjmp_bkpt_dtor): New
3641 functions.
3642 (initialize_breakpoint_ops): Initialize longjmp_breakpoint_ops.
3643 * breakpoint.h (enum bptype): New item bp_longjmp_call_dummy. Delete
3644 FIXME comment and extend the other comment for bp_call_dummy.
3645 (set_longjmp_breakpoint_for_call_dummy)
3646 (check_longjmp_breakpoint_for_call_dummy): New declarations.
3647 * dummy-frame.c: Include gdbthread.h.
3648 (pop_dummy_frame_bpt): New function.
3649 (pop_dummy_frame): Call pop_dummy_frame_bpt.
3650 (dummy_frame_discard): New function.
3651 (cleanup_dummy_frames): Update the comment about longjmps.
3652 * dummy-frame.h (dummy_frame_discard): New declaration.
3653 * gdbthread.h (struct thread_info): Extend initiating_frame comment.
3654 * infcall.c (call_function_by_hand): New variable longjmp_b. Call
3655 set_longjmp_breakpoint_for_call_dummy. Chain its breakpoints with BPT.
3656 * infrun.c (handle_inferior_event) <BPSTAT_WHAT_CLEAR_LONGJMP_RESUME>:
3657 Add case 4 comment. Call check_longjmp_breakpoint_for_call_dummy and
3658 keep_going if IS_LONGJMP and there is no other reason to stop.
3659
3660 2012-06-18 Greta Yorsh <Greta.Yorsh@arm.com>
3661
3662 * remote-sim.c (sim_command_completer): Initialize
3663 variable 'result'.
3664
3665 2012-06-17 Jan Kratochvil <jan.kratochvil@redhat.com>
3666
3667 * dwarf2expr.c (execute_stack_op): Support DW_OP_GNU_parameter_ref.
3668 * dwarf2loc.c (call_site_parameter_matches): Support
3669 CALL_SITE_PARAMETER_PARAM_OFFSET.
3670 (needs_dwarf_reg_entry_value): Push stub value.
3671 * dwarf2read.c (read_call_site_scope): New variable origin. Support
3672 CALL_SITE_PARAMETER_PARAM_OFFSET and its DW_AT_abstract_origin.
3673 * gdbtypes.h (enum call_site_parameter_kind): New item
3674 CALL_SITE_PARAMETER_PARAM_OFFSET.
3675 (struct call_site.parameter.u): New field param_offset.
3676
3677 2012-06-17 Jan Kratochvil <jan.kratochvil@redhat.com>
3678
3679 Code cleanup: Generalize call_site.parameter key.
3680 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_entry_value>: Remove
3681 variable dwarf_reg. New variable kind_u. Update parameters to
3682 push_dwarf_reg_entry_value.
3683 (ctx_no_push_dwarf_reg_entry_value): Update parameters.
3684 * dwarf2expr.h (enum call_site_parameter_kind)
3685 (union call_site_parameter_u): Forward declarations.
3686 (struct dwarf_expr_context_funcs): Update parameters and their
3687 description for push_dwarf_reg_entry_value.
3688 (ctx_no_push_dwarf_reg_entry_value): Update parameters.
3689 * dwarf2loc.c (call_site_parameter_matches): New function.
3690 (dwarf_expr_reg_to_entry_parameter): Update parameters and their
3691 description. Use call_site_parameter_matches.
3692 (dwarf_expr_push_dwarf_reg_entry_value, value_of_dwarf_reg_entry):
3693 Update parameters and their description.
3694 (value_of_dwarf_block_entry): Remove variables dwarf_reg and fb_offset.
3695 New variable kind_u. Adjust the caller for updated parameters.
3696 (needs_dwarf_reg_entry_value): Update parameters.
3697 * dwarf2read.c (read_call_site_scope): New variable loc. Use it
3698 instead of attr. Update for the changed fields of struct
3699 call_site_parameter.
3700 * gdbtypes.h: Include dwarf2expr.h.
3701 (enum call_site_parameter_kind): New.
3702 (struct call_site.parameter): New field kind. Wrap dwarf_reg and
3703 fb_offset into new union u.
3704
3705 2012-06-16 H.J. Lu <hongjiu.lu@intel.com>
3706
3707 * amd64-tdep.c (amd64_x32_analyze_stack_align): New function.
3708 (amd64_analyze_prologue): Call amd64_x32_analyze_stack_align
3709 for x32.
3710
3711 2012-06-16 H.J. Lu <hongjiu.lu@intel.com>
3712
3713 * amd64-linux-nat.c (compat_x32_clock_t): New.
3714 (compat_x32_siginfo_t): Likewise.
3715 (compat_x32_siginfo_from_siginfo): Likewise.
3716 (siginfo_from_compat_x32_siginfo): Likewise.
3717 (amd64_linux_siginfo_fixup): Call compat_x32_siginfo_from_siginfo
3718 and siginfo_from_compat_x32_siginfo for x32.
3719
3720 2012-06-15 Hui Zhu <hui_zhu@mentor.com>
3721
3722 * tracepoint.c (tfile_xfer_partial): Add a lseek.
3723
3724 2012-06-15 H.J. Lu <hongjiu.lu@intel.com>
3725
3726 * amd64-linux-nat.c (ps_get_thread_area): Check bits_per_word
3727 instead of gdbarch_ptr_bit.
3728 * amd64-nat.c (amd64_native_gregset_reg_offset): Likewise.
3729 (amd64_supply_native_gregset): Likewise.
3730 (amd64_collect_native_gregset): Likewise.
3731 * amd64-tdep.c (amd64_supply_fxsave): Likewise.
3732 (amd64_supply_xsave): Likewise.
3733 (amd64_collect_fxsave): Likewise.
3734 (amd64_collect_xsave): Likewise.
3735
3736 2012-06-15 H.J. Lu <hongjiu.lu@intel.com>
3737
3738 * amd64-linux-nat.c (AMD64_LINUX_X32_DS): New.
3739 (amd64_linux_read_description): Check DS segment register for
3740 x32 process.
3741
3742 2012-06-15 Tom Tromey <tromey@redhat.com>
3743
3744 * dwarf2read.c (dw2_find_symbol_file): Unconditionally use
3745 init_cutu_and_read_dies.
3746
3747 2012-06-15 Iain Sandoe <iain@codesourcery.com>
3748
3749 * MAINTAINERS (Write After Approval): Add myself to the list.
3750
3751 2012-06-15 Tom Tromey <tromey@redhat.com>
3752
3753 * valops.c (value_find_oload_method_list): Now static.
3754 * value.h (value_find_oload_method_list): Don't declare.
3755
3756 2012-06-15 Tom Tromey <tromey@redhat.com>
3757
3758 * valops.c (find_overload_match): Use value_ind.
3759
3760 2012-06-15 Maciej W. Rozycki <macro@codesourcery.com>
3761
3762 * infrun.c (handle_inferior_event): Correct indentation.
3763
3764 2012-06-14 Doug Evans <dje@google.com>
3765
3766 * dwarf2loc.c (debug_loc_kind): Add DEBUG_LOC_START_LENGTH.
3767 (DEBUG_LOC_START_END): Renamed from DEBUG_LOC_NORMAL.
3768 All uses updated.
3769 (decode_debug_loc_dwo_addresses): New arg "byte_order". All callers
3770 updated. Handle DEBUG_LOC_START_LENGTH.
3771 (dwarf2_find_location_expression): Handle DEBUG_LOC_START_LENGTH.
3772 (loclist_describe_location): Ditto.
3773
3774 2012-06-14 Maciej W. Rozycki <macro@codesourcery.com>
3775
3776 PR backtrace/13866
3777 * infrun.c (handle_inferior_event): Re-fetch frame and gdbarch
3778 after hiding inline functions.
3779
3780 2012-06-13 Joel Brobecker <brobecker@adacore.com>
3781
3782 * inf-ttrace.c (_initialize_hppa_hpux_nat): Rename into
3783 _initialize_inf_ttrace.
3784
3785 2012-06-13 Joel Brobecker <brobecker@adacore.com>
3786
3787 * ia64-hpux-nat.c (_initialize_ia64_hpux_nat): Renames
3788 _initialize_hppa_hpux_nat.
3789
3790 2012-06-13 Joel Brobecker <brobecker@adacore.com>
3791
3792 * remote-sim.c (sim_command_completer): Change type of return
3793 value to "VEC (char_ptr) *". Adjust implementation accordingly.
3794
3795 2012-06-13 Mark Kettenis <kettenis@gnu.org>
3796 Jan Kratochvil <jan.kratochvil@redhat.com>
3797
3798 PR tdep/14222
3799 * i386-tdep.c (i386_push_dummy_call): Unconditionally align the
3800 stack on a 16-byte boundary.
3801
3802 2012-06-13 Kaushik Srenevasan <kaushik@twitter.com>
3803
3804 * jit.c (finalize_symtab): Set function's return type to 'void' by
3805 default.
3806
3807 2012-06-13 Mark Kettenis <kettenis@gnu.org>
3808 H.J. Lu <hongjiu.lu@intel.com>
3809
3810 * amd64-linux-tdep.c (amd64_linux_init_abi_common): New function.
3811 Move bits common to both the classic LP64 and the new x32 ILP32
3812 ABI here.
3813 (amd64_linux_init_abi): Call amd64_linux_init_abi_common.
3814 (amd64_x32_linux_init_abi): New function.
3815 (_initialize_amd64_linux_tdep): Register osabi for bfd_mach_x64_32
3816 subtype.
3817
3818 * i386-tdep.h (i386_pseudo_register_name): New prototype.
3819 * i386-tdep.c (i386_pseudo_register_name): Make public.
3820 * amd64-tdep.h (amd64_x32_init_abi): New prototype.
3821 * amd64-tdep.c (amd64_dword_names): Add "eip".
3822 (amd64_x32_pseudo_register_type): New function
3823 (amd64_x32_init_abi): New function.
3824
3825 2012-06-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3826
3827 PR build/14003
3828 * inferior.h (struct inferior_suspend_state): Comment out.
3829 (struct inferior): Comment out the field suspend.
3830 * infrun.c (struct infcall_suspend_state): Comment out the field
3831 inferior_suspend.
3832 (save_infcall_suspend_state, restore_infcall_suspend_state): Comment
3833 out its assignment.
3834
3835 2012-06-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3836
3837 PR c++/14177 - Fix parsing TYPENAME:: in parentheses.
3838 * c-exp.y (classify_inner_name): Remove caller assumptions in the
3839 function comment. Return ERROR for unresolved cases. Implement
3840 returning proper NAME.
3841 (yylex): Accept also NAME from classify_inner_name.
3842 * cp-namespace.c (cp_lookup_nested_type): Rename to ...
3843 (cp_lookup_nested_symbol): ... here. Return any found symbol, not just
3844 LOC_TYPEDEF type.
3845 * cp-support.h (cp_lookup_nested_type): Update its declaration.
3846
3847 2012-06-13 Tom Tromey <tromey@redhat.com>
3848
3849 * breakpoint.c (condition_completer): New function.
3850 (_initialize_breakpoint): Use it.
3851 * value.c (complete_internalvar): New function.
3852 * value.h (complete_internalvar): Declare.
3853
3854 2012-06-13 Tom Tromey <tromey@redhat.com>
3855
3856 * ada-lang.c (ada_make_symbol_completion_list): Return a VEC.
3857 * breakpoint.c (catch_syscall_completer): Return a VEC.
3858 * cli/cli-cmds.c (complete_command): Update.
3859 * cli/cli-decode.c (complete_on_cmdlist): Return a VEC.
3860 (complete_on_enum): Likewise.
3861 * command.h: Include gdb_vecs.h.
3862 (completer_ftype): Change return type.
3863 (complete_on_cmdlist, complete_on_enum): Likewise.
3864 * completer.c (noop_completer, filename_completer)
3865 (location_completer): Return a VEC.
3866 (add_struct_fields): Remove 'nextp' argument. Change 'output'
3867 to a VEC.
3868 (expression_completer, complete_line_internal, complete_line)
3869 (command_completer): Return a VEC.
3870 (gdb_completion_word_break_characters, line_completion_function):
3871 Update.
3872 * completer.h: Include gdb_vecs.h.
3873 (complete_line, noop_completer, filename_completer)
3874 (expression_completer, location_completer, command_completer):
3875 Update.
3876 * f-lang.c (f_word_break_characters): Return a VEC.
3877 * interps.c (interpreter_completer): Return a VEC.
3878 * language.h (struct language_defn)
3879 <la_make_symbol_completion_list>: Return a VEC.
3880 * python/py-cmd.c (cmdpy_completer): Return a VEC.
3881 * symtab.c (free_completion_list): Take a VEC.
3882 (return_val_size, return_val_index): Remove.
3883 (return_val): Now a VEC.
3884 (completion_list_add_name): Update.
3885 (default_make_symbol_completion_list_break_on)
3886 (default_make_symbol_completion_list, make_symbol_completion_list)
3887 (make_symbol_completion_list_fn, make_file_symbol_completion_list):
3888 Return a VEC.
3889 (add_filename_to_list): Update.
3890 (struct add_partial_filename_data) <list_used, list_alloced>: Remove.
3891 <list>: Now a VEC.
3892 (maybe_add_partial_symtab_filename): Update.
3893 (make_source_files_completion_list): Return a VEC.
3894 * symtab.h (default_make_symbol_completion_list_break_on)
3895 (default_make_symbol_completion_list, make_symbol_completion_list)
3896 (make_symbol_completion_list_fn, make_file_symbol_completion_list)
3897 (make_source_files_completion_list): Update.
3898
3899 2012-06-13 Tom Tromey <tromey@redhat.com>
3900
3901 * breakpoint.c (add_catch_command): Use completer_ftype.
3902 * breakpoint.h: Include command.h.
3903 (add_catch_command): Use completer_ftype.
3904 * cli/cli-decode.c (set_cmd_completer): Use completer_ftype.
3905 * cli/cli-decode.h (struct cmd_list_element) <completer>:
3906 Use completer_ftype.
3907 * command.h (completer_ftype): New typedef.
3908 (set_cmd_completer): Use it.
3909 * python/py-cmd.c (struct cmdpy_completer) <completer>: Use
3910 completer_ftype.
3911
3912 2012-06-13 Pedro Alves <palves@redhat.com>
3913
3914 Partial revert of previous change.
3915
3916 * serial.c (scb_base): New global.
3917 (serial_for_fd): New.
3918 (serial_open, serial_fdopen_ops): Link new serial in open serials
3919 chain.
3920 (do_serial_close): Unlink serial from the open serials chain.
3921
3922 2012-06-12 Pedro Alves <palves@redhat.com>
3923
3924 * infrun.c (infrun_thread_stop_requested_callback): Don't switch
3925 threads here.
3926 (prepare_for_detach): No longer context switch here in non-stop
3927 mode.
3928 (fetch_inferior_event): Ditto.
3929 (handle_inferior_event) <STOP_QUIETLY || NO_STOP_QUIETLY>: Switch
3930 to the event thread before removing breakpoints. Switch to the
3931 event thread before inserting breakpoints and resuming.
3932 (handle_inferior_event) <TARGET_WAITKIND_SPURIOUS>: Switch to the
3933 event thread before resuming.
3934 (handle_inferior_event) <stepping_past_singlestep_breakpoint>:
3935 Switch to the event thread before removing breakpoints.
3936
3937 2012-06-12 Eli Zaretskii <eliz@gnu.org>
3938
3939 * infcmd.c (construct_inferior_arguments) [__MINGW32__]: Quote
3940 special characters correctly for the Windows shells. See
3941 http://sourceware.org/ml/gdb/2012-06/msg00047.html for the bug
3942 report.
3943 [!__MINGW32__]: Remove extra double quote character from special
3944 characters.
3945
3946 2012-06-11 Stan Shebs <stan@codesourcery.com>
3947
3948 * ui-out.h: Remove #if 0 declarations.
3949 * ui-out.c: Remove #if 0 functions.
3950
3951 2012-06-11 Pedro Alves <palves@redhat.com>
3952
3953 * ser-base.c (run_async_handler_and_reschedule): New.
3954 (fd_event, push_event): Use it.
3955 * serial.c (serial_open, serial_fdopen_ops): Set the initial
3956 reference count to 1.
3957 (do_serial_close): Set the bufp field to NULL. Use serial_unref
3958 instead of xfree.
3959 (serial_is_open, serial_ref, serial_unref): New.
3960 * serial.h (serial_open): Adjust comment.
3961 (serial_is_open): Declare.
3962 (serial_close): Adjust comment.
3963 (serial_ref, serial_unref) Declare.
3964 (struct serial): New field 'refcnt'.
3965
3966 2012-06-11 Pedro Alves <palves@redhat.com>
3967
3968 Remove #if 0'd "connect" command, and unnecessary associated
3969 refcounting and serial reuse bits.
3970
3971 * serial.h (struct serial): Remove fields 'next' and 'refcnt'.
3972 * serial.c (last_serial_opened): Delete.
3973 (scb_base): Delete.
3974 (serial_open): Adjust.
3975 (serial_for_fd): Delete.
3976 (serial_fdopen_ops, do_serial_close): Adjust.
3977 (serial_fdopen_ops): Adjust.
3978
3979 2012-06-11 Pedro Alves <palves@redhat.com>
3980
3981 * serial.c (do_serial_close): Remove early return when SCB is
3982 null.
3983
3984 2012-06-11 Tom Tromey <tromey@redhat.com>
3985
3986 * dwarf2read.c (dw2_get_file_names_reader): Ignore partial units.
3987
3988 2012-06-11 Jan Kratochvil <jan.kratochvil@redhat.com>
3989
3990 Fix regression by the "ambiguous linespec" series.
3991 * breakpoint.c (parse_breakpoint_sals): New variable cursal. Use
3992 get_last_displayed_symtab and get_last_displayed_line and depending
3993 on CURSAL.
3994
3995 2012-06-11 Tom Tromey <tromey@redhat.com>
3996
3997 * dwarf2read.c (dw2_get_primary_filename_reader): New function.
3998 (dw2_find_symbol_file): Use it.
3999
4000 2012-06-11 Michael Eager <eager@eagercon.com>
4001
4002 * mips-linux-tdep.c (mips_gdb_signal_from_target): New
4003 * mips-linux-tdep.h (mips_signals): New
4004
4005 2012-06-11 Tom Tromey <tromey@redhat.com>
4006
4007 * infrun.c (handle_inferior_event)
4008 <BPSTAT_WHAT_SET_LONGJMP_RESUME>: Don't delete the step-resume
4009 breakpoint.
4010 <BPSTAT_WHAT_CLEAR_LONGJMP_RESUME>: Remove longjmp logic; use
4011 exception logic in all cases. Update comments.
4012 (insert_longjmp_resume_breakpoint): Set the exception resume
4013 breakpoint.
4014
4015 2012-06-11 Maciej W. Rozycki <macro@codesourcery.com>
4016
4017 * mips-tdep.c (mips_push_dummy_code): Handle microMIPS code.
4018
4019 2012-06-09 Siva Chandra Reddy <sivachandra@google.com>
4020
4021 * valarith.c (binop_types_user_defined_p): Fix a typo.
4022
4023 2012-06-08 Yao Qi <yao@codesourcery.com>
4024 Chung-Lin Tang <cltang@codesourcery.com>
4025
4026 * arch-utils.c (default_return_in_first_hidden_param_p): New.
4027 * arch-utils.h: Declare.
4028 * gdbarch.sh: Add return_in_first_hidden_param_p.
4029 * gdbarch.c, gdbarch.h: Regenerated.
4030 * infcall.c (call_function_by_hand): Call
4031 gdbarch_return_in_first_hidden_param_p instead of
4032 language_pass_by_reference.
4033
4034 * m68k-tdep.c (m68k_return_in_first_hidden_param_p): New.
4035 (m68k_gdbarch_init): Install m68k_return_in_first_hidden_param_p.
4036 * sh-tdep.c (sh_return_in_first_hidden_param_p): New.
4037 (sh_gdbarch_init): Install sh_return_in_first_hidden_param_p.
4038 * tic6x-tdep.c (tic6x_push_dummy_call): Remove local variable
4039 `cplus_return_struct_by_reference'.
4040 (tic6x_return_value): Handle language cplusplus.
4041 (tic6x_return_in_first_hidden_param_p): New.
4042 (tic6x_gdbarch_init): Install tic6x_return_in_first_hidden_param_p.
4043
4044 2012-06-07 Doug Evans <dje@google.com>
4045
4046 * dwarf2read.c (dwarf2_cu): Add comment.
4047
4048 2012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
4049
4050 * mips-tdep.c (mips_pseudo_register_type): Remove tdep local
4051 variable.
4052 (mips_eabi_push_dummy_call): Likewise.
4053 (mips_n32n64_push_dummy_call): Likewise.
4054 (mips_o32_push_dummy_call): Likewise.
4055 (mips_o64_push_dummy_call): Likewise.
4056
4057 2012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
4058
4059 * mips-tdep.c (mips_convert_register_p): Correct coding style.
4060
4061 2012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
4062
4063 * mips-tdep.c (mips_pseudo_register_type): Use
4064 mips_float_register_p.
4065
4066 2012-06-06 Pedro Alves <palves@redhat.com>
4067
4068 * infrun.c (handle_inferior_event): Remove calls to
4069 reinit_frame_cache that follow a context_switch call.
4070
4071 2012-06-06 Pedro Alves <palves@redhat.com>
4072
4073 * infrun.c (handle_inferior_event) <deferred_step_ptid>: Use
4074 context_switch and remove stale comment.
4075
4076 2012-06-06 Pedro Alves <palves@redhat.com>
4077
4078 * infrun.c (struct execution_control_state): Remove
4079 `new_thread_event' field.
4080 (handle_inferior_event): Simplify new threads handling; don't
4081 resume the inferior if we find a new thread.
4082
4083 2012-06-06 Thomas Schwinge <thomas@codesourcery.com>
4084
4085 * NEWS: Document the deprecation of SH's 'regs' command.
4086 * inferior.h (all_registers_info): Add function declaration.
4087 * sh-tdep.c (sh_show_regs): Remove variable.
4088 (sh_generic_show_regs, sh3_show_regs, sh2e_show_regs, sh2a_show_regs)
4089 (sh2a_nofpu_show_regs, sh3e_show_regs, sh3_dsp_show_regs)
4090 (sh4_show_regs, sh4_nofpu_show_regs, sh_dsp_show_regs)
4091 (sh_show_regs_command): Remove functions.
4092 (sh_gdbarch_init): Don't set sh_show_regs.
4093 (_initialize_sh_tdep): Make the 'regs' command an deprecated alias to
4094 'info all-registers'.
4095 * sh64-tdep.c (sh64_show_media_regs, sh64_show_compact_regs)
4096 (sh64_show_regs): Remove functions.
4097 * sh64-tdep.h (sh64_show_regs): Remove function declaration.
4098
4099 2012-06-06 Jan Kratochvil <jan.kratochvil@redhat.com>
4100
4101 * configure.ac: Move development=true below AC_INIT.
4102 * configure: Regenerate.
4103
4104 2012-06-05 Stan Shebs <stan@codesourcery.com>
4105
4106 * mi/mi-interp.c (mi_interpreter_init): Set raw_stdout from
4107 gdb_stdout.
4108
4109 2012-06-05 Siddhesh Poyarekar <siddhesh@redhat.com>
4110
4111 * corefile.c (read_memory, read_stack, write_memory): Accept LEN
4112 argument as ssize_t.
4113 * gdbcore.h (read_memory, read_stack, write_memory): Likewise.
4114 * remote.c (remote_write_bytes_aux, remote_write_bytes): Likewise.
4115 * target.c (target_read_stack, target_write_memory)
4116 (target_write_raw_memory): Likewise.
4117 * target.h (target_read_stack, target_write_memory)
4118 (target_write_raw_memory): Likewise.
4119
4120 2012-06-05 Jan Kratochvil <jan.kratochvil@redhat.com>
4121
4122 * symfile-mem.c: Change gdb_static_assert to ssize_t.
4123 (target_read_memory_bfd): Cast gdb_assert LEN to ssize_t.
4124 * target.c (target_read_memory): Change LEN to ssize_t.
4125 * target.h (target_read_memory): Change LEN to ssize_t.
4126
4127 2012-06-05 Pedro Alves <palves@redhat.com>
4128
4129 PR backtrace/13866
4130
4131 * breakpoint.c (until_break_command): Only fetch the selected
4132 frame after decode_line_1.
4133
4134 2012-06-05 Joakim Tjernlund <Joakim.Tjernlund@transmode.se>
4135
4136 * solib-svr4.c (enable_break): Don't fallback to setting the solib
4137 event breakpoint at _start, __start or main if a program
4138 interpreter is not found.
4139
4140 2012-06-05 Joel Brobecker <brobecker@adacore.com>
4141
4142 * windows-tdep.h (windows_iterate_over_objfiles_in_search_order):
4143 Add declaration.
4144 * windows-tdep.c: #include "objfiles.h".
4145 (windows_iterate_over_objfiles_in_search_order): New function.
4146 * amd64-windows-tdep.c (amd64_windows_init_abi): Set
4147 iterate_over_objfiles_in_search_order gdbarch method to
4148 windows_iterate_over_objfiles_in_search_order.
4149 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Likewise.
4150
4151 2012-06-05 Joel Brobecker <brobecker@adacore.com>
4152
4153 * gdbarch.sh: Add generation of
4154 "iterate_over_objfiles_in_search_order_cb_ftype" typedef in
4155 gdbarch.h. Add include of "objfiles.h" in gdbarch.c.
4156 (iterate_over_objfiles_in_search_order): New gdbarch method.
4157 * gdbarch.h, gdbarch.c: Regenerate.
4158 * objfiles.h (default_iterate_over_objfiles_in_search_order):
4159 Add declaration.
4160 * objfiles.c (default_iterate_over_objfiles_in_search_order):
4161 New function.
4162 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
4163 out of lookup_symbol_aux_symtabs.
4164 (lookup_symbol_aux_symtabs): Replace extracted-out code by
4165 call to lookup_symbol_aux_objfile.
4166 (struct global_sym_lookup_data): New type.
4167 (lookup_symbol_global_iterator_cb): New function.
4168 (lookup_symbol_global): Search for symbol using
4169 gdbarch_iterate_over_objfiles_in_search_order and
4170 lookup_symbol_global_iterator_cb.
4171 * findvar.c (struct minsym_lookup_data): New type.
4172 (minsym_lookup_iterator_cb): New function.
4173 (default_read_var_value) [case LOC_UNRESOLVED]: Resolve the
4174 symbol's address via gdbarch_iterate_over_objfiles_in_search_order
4175 and minsym_lookup_iterator_cb.
4176
4177 2012-06-05 Joel Brobecker <brobecker@adacore.com>
4178
4179 Revert the following patch:
4180 * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
4181 try locating the symbol in the symbol's own objfile first, before
4182 extending the search to all objfiles.
4183 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
4184 out of lookup_symbol_aux_symtabs.
4185 (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
4186 Replace extracted-out code by call to lookup_symbol_aux_objfile.
4187 Do not search EXCLUDE_OBJFILE.
4188 (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
4189 (lookup_symbol_global): Search for matches in the block's objfile
4190 first, before searching all other objfiles.
4191
4192 2012-06-05 Joel Brobecker <brobecker@adacore.com>
4193
4194 * breakpoint.c (find_condition_and_thread): Stop parsing
4195 as soon as the first invalid keyword is found.
4196
4197 2012-06-05 Joel Brobecker <brobecker@adacore.com>
4198
4199 * copyright.py (EXCLUDE_LIST): Add 'gdb/CONTRIBUTE' to list.
4200
4201 2012-06-05 Joel Brobecker <brobecker@adacore.com>
4202
4203 * config/djgpp/djcheck.sh: Add copyright header.
4204
4205 2012-06-05 Joel Brobecker <brobecker@adacore.com>
4206
4207 * copyright.py (update_files, main): Fix path to update-copyright
4208 script.
4209
4210 2012-06-05 Joel Brobecker <brobecker@adacore.com>
4211
4212 * copyright.py (MULTIPLE_COPYRIGHT_HEADERS): New constant.
4213 (main): Add MULTIPLE_COPYRIGHT_HEADERS to the list of files
4214 for which a reminder to update by hand is printed.
4215
4216 2012-06-04 Doug Evans <dje@google.com>
4217
4218 * buildsym.c (make_blockvector): Add comment.
4219
4220 2012-06-04 Pedro Alves <palves@redhat.com>
4221
4222 * arch-utils.c (default_gdb_signal_from_target): Delete.
4223 * arch-utils.h (default_gdb_signal_from_target): Delete.
4224 * corelow.c (core_open) <signal mapping>: Extended comment. Check
4225 gdbarch_gdb_signal_from_target_p.
4226 * gdbarch.sh (gdb_signal_from_target): Make it an M method (with
4227 predicate).
4228 * gdbarch.h: Regenerate.
4229 * gdbarch.c: Regenerate.
4230
4231 2012-06-04 Pedro Alves <palves@redhat.com>
4232
4233 * gdbarch.sh (gdb_signal_from_target): Mention that the
4234 implementation of the method must be host independent.
4235 * gdbarch.h: Regenerate.
4236
4237 2012-06-04 Jan Kratochvil <jan.kratochvil@redhat.com>
4238
4239 * symfile-mem.c: 3 new gdb_static_assert for target_read_memory_bfd
4240 parameters.
4241 (target_read_memory_bfd): New function.
4242 (symbol_file_add_from_memory): Use it.
4243
4244 2012-06-03 Doug Evans <dje@google.com>
4245
4246 * symtab.c (lookup_global_symbol_from_objfile): Only scan blockvector
4247 of primary symtab.
4248 (basic_lookup_transparent_type): Ditto.
4249
4250 * objfiles.h (ALL_OBJFILE_PRIMARY_SYMTABS): New macro.
4251 (ALL_PRIMARY_SYMTABS): Use it.
4252 (ALL_PSPACE_PRIMARY_SYMTABS): Ditto.
4253 * dwarf2read.c (dw2_find_symbol_file): Ditto.
4254 * linespec.c (iterate_over_all_matching_symtabs): Ditto.
4255 * symtab.c (lookup_symbol_aux_objfile): Ditto.
4256 (basic_lookup_transparent_type): Ditto.
4257
4258 2012-06-02 Sergio Durigan Junior <sergiodj@redhat.com>
4259
4260 * symtab.c (symbol_demangled_name): New variable `dem_name'. Use
4261 it to optimize resolution of demangled name.
4262
4263 2012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4264
4265 * configure.ac (development): Define new variable.
4266 Call AC_CHECK_LIB for mcheck if $development.
4267 (ERROR_ON_WARNING): Enable it by default only if $development.
4268 * config.in: Regenerate.
4269 * configure: Regenerate.
4270
4271 2012-06-01 Siddhesh Poyarekar <siddhesh@redhat.com>
4272
4273 * target.c (target_read_memory): Make LEN argument as size_t.
4274 * target.h (target_read_memory): Likewise.
4275
4276 2012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4277
4278 * tilegx-linux-tdep.c (tilegx_l): Use ULL for 64-bit values.
4279
4280 2012-05-31 Edjunior Machado <emachado@linux.vnet.ibm.com>
4281
4282 * ppc-linux-nat.c (have_ptrace_booke_interface): Disable ptrace
4283 BookE interface for PowerPC server processors if not available
4284 in the Linux Kernel.
4285
4286 2012-05-31 Keith Seitz <keiths@redhat.com>
4287
4288 * linespec.c (decode_objc): Add cleanup to free
4289 INFO.FILE_SYMTABS.
4290 (find_linespec_symbols): Add cleanup to free CLASSES.
4291 * symfile.c (find_separate_debug_file_by_debuglink): Add
4292 cleanup to free DEBUGLINK.
4293 * ui-out.c (clear_header_list): No need to check if
4294 HEADER_NEXT.COLHDR is NULL.
4295 Free HEADER_NEXT.COL_NAME.
4296
4297 2012-05-31 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
4298
4299 * ada-lang.c (standard_lookup): Prevent uninitialized variable
4300 warning.
4301
4302 2012-05-30 Jeff Kenton <jkenton@tilera.com>
4303
4304 * configure.host (gdb_host_cpu): Handle tilegx*.
4305 (gdb_host): Handle tilegx-*-linux*.
4306 * tilegx-linux-nat.c: New file.
4307 * config/tilegx/linux.mh: New file.
4308
4309 2012-05-30 Jeff Kenton <jkenton@tilera.com>
4310
4311 * Makefile.in (ALL_TARGET_OBJS): Add tilegx-tdep.o and
4312 tilegx-linux-tdep.o.
4313 (ALLDEPFILES): Add tilegx-linux-nat.c, tilegx-tdep.c and
4314 tilegx-linux-tdep.c.
4315 * configure.tgt: Handle tilegx-*-linux*.
4316 * tilegx-tdep.h: New file.
4317 * tilegx-tdep.c: New file.
4318 * tilegx-linux-tdep.c: New file.
4319 * regformats/reg-tilegx.dat: New file.
4320
4321 2012-05-30 Edjunior Machado <emachado@linux.vnet.ibm.com>
4322
4323 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): fix
4324 accounting of hw watchpoints on ppc.
4325
4326 2012-05-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
4327
4328 * source.c (openp): Expand tilde in path entries.
4329
4330 2012-05-29 Doug Evans <dje@google.com>
4331
4332 * buildsym.c (block_compar): Fix comment.
4333 (end_symtab): Fix and clarify some comments.
4334
4335 * stabsread.h (cleanup_undefined_stabs_types): Renamed from
4336 cleanup_undefined_types.
4337 * stabsread.c (cleanup_undefined_stabs_types): Ditto.
4338 All callers updated.
4339
4340 2012-05-29 Tom Tromey <tromey@redhat.com>
4341
4342 * symfile.c (symfile_bfd_open): Don't close desc if bfd_fopen
4343 fails.
4344 * solib.c (solib_bfd_fopen): Don't close fd if bfd_fopen fails.
4345 * exec.c (exec_file_attach): Don't close scratch_chan if bfd_fopen
4346 fails.
4347 * dwarf2read.c (try_open_dwo_file): Don't close fd if bfd_fopen
4348 fails.
4349
4350 2012-05-29 Tristan Gingold <gingold@adacore.com>
4351
4352 * solib-darwin.c (dyld_all_image_addr, dyld_all_image): Move into...
4353 (struct darwin_info): ... New struct.
4354 (solib_darwin_pspace_data): New variable.
4355 (darwin_pspace_data_cleanup): New function.
4356 (get_darwin_info): Likewise.
4357 (darwin_dyld_version_ok, darwin_load_image_infos)
4358 (darwin_solib_get_all_image_info_addr_at_init)
4359 (darwin_solib_read_all_image_info_addr): Add info argument.
4360 Adjust code.
4361 (darwin_current_sos): Use per pspace structure.
4362 (darwin_solib_create_inferior_hook): Likewise.
4363 (darwin_clear_solib): Likewise.
4364 (_initialize_darwin_solib): Initialize solib_darwin_pspace_data.
4365
4366 2012-05-28 Pedro Alves <palves@redhat.com>
4367
4368 * infrun.c (wait_for_inferior): Move ecss and ecs locals to the
4369 block that uses them. Clear ecss before handling each event.
4370
4371 2012-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4372
4373 * solib-svr4.c (svr4_current_sos): New comment on
4374 svr4_current_sos_via_xfer_libraries fall back.
4375
4376 2012-05-24 Jan Kratochvil <jan.kratochvil@redhat.com>
4377
4378 * psymtab.c (lookup_symbol_aux_psymtabs): New variable stab_best. Use
4379 it as a fallback for TYPE_IS_OPAQUE.
4380 * symfile.h (struct quick_symbol_functions): Mention TYPE_OPAQUE
4381 symbols for lookup_symbol.
4382
4383 2012-05-24 John Steele Scott <toojays@toojays.net>
4384
4385 PR symtab/13277: Resolving opaque structures in ICC generated binaries.
4386 * dwarf2read.c (struct dwarf2_cu) <producer_is_icc>: New field.
4387 (producer_is_gxx_lt_4_6): Move the checking and caching to...
4388 (check_producer): ... this new function, which also checks for ICC
4389 and caches the result.
4390 (producer_is_icc): New function.
4391 (read_structure_type): Don't set TYPE_STUB_SUPPORTED if the
4392 producer was ICC.
4393
4394 2012-05-24 Pedro Alves <palves@redhat.com>
4395
4396 PR gdb/7205
4397
4398 * arch-utils.c (default_gdb_signal_to_host): Rename to ...
4399 (default_gdb_signal_to_target): ... this. Add comment.
4400 (default_gdb_signal_from_host): Rename to ...
4401 (default_gdb_signal_from_target): ... this. Add comment.
4402 * arch-utils.h (default_gdb_signal_to_host): Rename to ...
4403 (default_gdb_signal_to_target): ... this.
4404 (default_gdb_signal_from_host): Rename to ...
4405 (default_gdb_signal_from_target): ... this.
4406 * corelow.c (core_open): Adjust to naming change. Replace comment.
4407 * gdbarch.sh (gdb_signal_from_host): Rename to ...
4408 (gdb_signal_from_target): ... this. Adjust to
4409 default_gdb_signal_from_host naming change. Extend comment.
4410 (gdb_signal_to_host): Rename to ...
4411 (gdb_signal_to_target): ... this. Adjust to
4412 default_gdb_signal_to_host naming change.
4413 * gdbarch.h, gdbarch.c: Renegerate.
4414
4415 2012-05-24 Pedro Alves <palves@redhat.com>
4416
4417 PR gdb/7205
4418
4419 Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
4420
4421 2012-05-24 Pedro Alves <palves@redhat.com>
4422
4423 PR gdb/7205
4424
4425 Replace target_signal with gdb_signal throughout.
4426
4427 2012-05-24 Pedro Alves <palves@redhat.com>
4428
4429 PR tui/14159
4430
4431 * tui/tui-hooks.c (tui_query_hook): Pre-compute the question
4432 string, instead of reusing the va_list argument.
4433
4434 2012-05-24 Tom Tromey <tromey@redhat.com>
4435
4436 * cp-support.h (cp_finalize_namespace, cp_initialize_namespace):
4437 Remove.
4438
4439 2012-05-23 Doug Evans <dje@google.com>
4440
4441 * symtab.c (search_symbols): Formatting fixes.
4442 (print_symbol_info): Formatting fixes.
4443
4444 * dwarf2-frame.c (execute_cfa_program): Update to handle long long ->
4445 int64_t change to leb128 API.
4446 (read_encoded_value, decode_frame_entry_1): Ditto.
4447 * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Ditto.
4448 (dwarf_block_to_dwarf_reg, dwarf_block_to_dwarf_reg_deref): Ditto.
4449 (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
4450 (execute_stack_op): Ditto.
4451 * dwarf2expr.h (gdb_read_uleb128, gdb_read_sleb128): Ditto.
4452 (safe_read_uleb128, safe_read_sleb128): Ditto.
4453 * dwarf2loc.c (decode_debug_loc_dwo_addresses): Ditto.
4454 (dwarf2_compile_expr_to_ax): Ditto.
4455 (locexpr_describe_location_piece): Ditto.
4456 (disassemble_dwarf_expression): Ditto.
4457 (locexpr_describe_location_1): Ditto.
4458
4459 2012-05-23 Stan Shebs <stan@codesourcery.com>
4460 Kwok Cheung Yeung <kcy@codesourcery.com>
4461
4462 * Makefile.in (SUBDIR_MI_OBS): Add mi-cmd-info.o.
4463 (SUBDIR_MI_SRCS): Add mi-cmd-info.c.
4464 (mi-cmd-info.o): New rule.
4465 * osdata.h (info_osdata_command): New declaration.
4466 * osdata.c (info_osdata_command): Change to non-static.
4467 * mi/mi-cmds.h (mi_cmd_info_os): New declaration.
4468 * mi/mi-cmds.c (mi_cmds): Add -info-os MI command.
4469 * mi/mi-cmd-info.c: New file.
4470
4471 2012-05-23 Doug Evans <dje@google.com>
4472
4473 * symtab.c (search_symbols): Pass NULL for file_matcher to
4474 expand_symtabs_matching if there are no files to match.
4475
4476 * gdbtypes.c (lookup_typename): Simplify.
4477
4478 2012-05-23 Pedro Alves <palves@redhat.com>
4479
4480 * arch-utils.h (default_target_signal_to_host): Delete.
4481 * arch-utils.c (default_target_signal_to_host): Delete.
4482 * gdbarch.sh (target_signal_to_host): Remove.
4483 * gdbarch.h, gdbarch.c: Regenerate.
4484
4485 2012-05-22 Doug Evans <dje@google.com>
4486
4487 * dwarf2-frame.c (struct dwarf2_cie): Make initial_instructions, end
4488 "const gdb_byte *".
4489 (struct dwarf2_fde): Make instructions, end "const gdb_byte *".
4490 (execute_cfa_program): Update to match API of leb128 functions.
4491 (read_1_byte, read_4_bytes, read_8_bytes): Make buf parameter
4492 "const gdb_byte *".
4493 (read_unsigned_leb128, read_signed_leb128): Delete.
4494 (read_initial_length): Change type of buf argument to
4495 "const gdb_byte *".
4496 (read_encoded_value): Update to match API of leb128 functions.
4497 (decode_frame_entry): Change result to "const gdb_byte *", and
4498 similarly for "start" parameter.
4499 (decode_frame_entry_1): Ditto. Use new leb128 reader functions.
4500 (dwarf2_build_frame_info): Change local frame_ptr to
4501 "const gdb_byte *".
4502 * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Replaces
4503 read_uleb128, read_sleb128. All callers updated.
4504 (safe_skip_leb128): New function.
4505 (dwarf_block_to_dwarf_reg): Update to match API of leb128 functions.
4506 Call gdb_read_uleb128, gdb_skip_leb128 instead of read_uleb128.
4507 (dwarf_block_to_dwarf_reg_deref): Update to match API of leb128
4508 functions. Call gdb_read_uleb128, gdb_read_sleb128 instead of
4509 read_uleb128, read_sleb128.
4510 (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
4511 (execute_stack_op): Update to match API of leb128 functions.
4512 * dwarf2expr.h: #include "leb128.h".
4513 (read_uleb128, read_sleb128): Delete.
4514 (gdb_read_uleb128, gdb_read_sleb128, gdb_skip_leb128): New functions.
4515 (safe_read_uleb128, safe_read_sleb128, safe_skip_leb128): Declare.
4516 * dwarf2loc.c (debug_loc_kind): New enum.
4517 (decode_debug_loc_addresses): New function.
4518 (decode_debug_loc_dwo_addresses): New function.
4519 (dwarf2_find_location_expression): Rewrite.
4520 (dwarf2_compile_expr_to_ax): Update to match API of leb128 functions.
4521 (locexpr_describe_location_piece): Ditto.
4522 (disassemble_dwarf_expression): Ditto.
4523 (locexpr_describe_location_1): Ditto.
4524 (loclist_describe_location): Rewrite.
4525 * dwarf2loc.h (dwarf2_loclist_baton): New member "from_dwo".
4526 * dwarf2read.c (die_reader_specs): New member "buffer_end".
4527 (dwarf2_section_buffer_overflow_complaint): Renamed from
4528 dwarf2_macros_too_long_complaint. All callers updated.
4529 (skip_leb128): Delete.
4530 (init_cu_die_reader): Initialize reader->buffer_end.
4531 (skip_one_die): Replace call to skip_leb128 with safe_skip_leb128.
4532 (skip_form_bytes): New arg buffer_end. All callers updated.
4533 Replace call to skip_leb128 with gdb_skip_leb128.
4534 (skip_unknown_opcode): New arg mac_end. All callers updated.
4535 (fill_in_loclist_baton): Initialize baton->from_dwo.
4536
4537 2012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
4538
4539 * mips-linux-nat.c (mips_linux_read_description): Use a more
4540 verbose error message.
4541
4542 2012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
4543
4544 * NEWS: Add MIPS/Linux DSP support.
4545 * mips-linux-tdep.c: Document post-2.6.12 o32 sigcontext layout.
4546 (SIGCONTEXT_DSPCTL): New macro.
4547 (SIGCONTEXT_HI1, SIGCONTEXT_LO1): Likewise.
4548 (SIGCONTEXT_HI2, SIGCONTEXT_LO2): Likewise.
4549 (SIGCONTEXT_HI3, SIGCONTEXT_LO3): Likewise.
4550 (N64_SIGCONTEXT_HI1, N64_SIGCONTEXT_HI2): Likewise.
4551 (N64_SIGCONTEXT_HI3): Likewise.
4552 (N64_SIGCONTEXT_LO1, N64_SIGCONTEXT_LO2): Likewise.
4553 (N64_SIGCONTEXT_LO3): Likewise.
4554 (N64_SIGCONTEXT_DSPCTL): Likewise.
4555 (N64_SIGCONTEXT_FPCSR): Clarify definition.
4556 (mips_linux_o32_sigframe_init): Handle DSP registers.
4557 (mips_linux_n32n64_sigframe_init): Likewise.
4558
4559 2012-05-22 Pierre Muller <muller@ics.u-strasbg.fr>
4560
4561 * common/buffer.c (buffer_grow): ARI fix: Remove unneeded
4562 call to abort.
4563
4564 2012-05-22 Pedro Alves <palves@redhat.com>
4565
4566 * target.h (store_waitstatus): Move declaration ...
4567 * inf-child.h (store_waitstatus): ... here.
4568 * target.c: Move inclusion of gdb_wait.h, and ...
4569 (store_waitstatus): ... this ...
4570 * inf-child.c: ... here.
4571 * linux-nat.c: Include inf-child.h.
4572 * rs6000-nat.c: Include inf-child.h.
4573 * spu-linux-nat.c: Include inf-child.h.
4574
4575 2012-05-22 Pierre Muller <muller@ics.u-strasbg.fr>
4576
4577 * tracepoint.c (start_tracing): Add missing i18n markup.
4578 (stop_tracing, set_trace_user): Ditto.
4579 (set_trace_notes, set_trace_stop_notes): Ditto.
4580
4581 2012-05-21 Tom Tromey <tromey@redhat.com>
4582
4583 PR c++/7173:
4584 * gnu-v3-abi.c (gnuv3_baseclass_offset): Return early for Java
4585 types.
4586 * value.h (value_cast_pointers): Update.
4587 * valops.c (value_cast_pointers): Add 'subclass_check' argument.
4588 (value_cast): Update.
4589 (update_search_result): New function.
4590 (do_search_struct_field): New, from search_struct_field. Check
4591 for ambiguous results.
4592 (search_struct_field): Rewrite.
4593 * infcall.c (value_arg_coerce): Update.
4594 * eval.c (evaluate_subexp_standard) <STRUCTOP_MEMBER>: Use
4595 value_cast_pointers.
4596 * ada-lang.c (ada_convert_actual): Update.
4597
4598 2012-05-21 Tom Tromey <tromey@redhat.com>
4599
4600 * macroexp.c (macro_stringify): Terminate the string.
4601
4602 2012-05-20 Jan Kratochvil <jan.kratochvil@redhat.com>
4603
4604 * NEWS (--with-auto-load-dir): Prepend $debugdir to the default path.
4605 Describe it.
4606 * auto-load.c (auto_load_expand_dir_vars): New function.
4607 (auto_load_safe_path_vec_update): Use it, remove the
4608 substitute_path_component call thanks to it.
4609 (auto_load_objfile_script): Remove the debug_file_directory processing.
4610 Use auto_load_expand_dir_vars, remove the substitute_path_component
4611 call thanks to it.
4612 * configure: Regenerate.
4613 * configure.ac (--with-auto-load-dir): Prepend $debugdir to the default
4614 path. Escape $ also for $debugdir.
4615 (--with_auto_load_safe_path): Escape $ also for $debugdir.
4616 * utils.c (substitute_path_component): Accept also DIRNAME_SEPARATOR.
4617
4618 2012-05-20 Doug Evans <dje@google.com>
4619
4620 * dwarf2read.c (recursively_find_pc_sect_symtab): Initialize "s"
4621 before use. Check for symtab->includes == NULL before scanning it.
4622
4623 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
4624
4625 * mips-tdep.c (mips_reg3_to_reg): Optimize storage.
4626
4627 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
4628
4629 * NEWS: Add microMIPS support and "set mips compression",
4630 "show mips compression" commands.
4631 * mips-tdep.h (mips_isa): New enum.
4632 (gdbarch_tdep): Add mips_isa.
4633 (mips_pc_is_mips16): Update prototype.
4634 (mips_pc_is_mips, mips_pc_is_micromips): New prototypes.
4635 * mips-tdep.c (mips_compression_mips16): New variable.
4636 (mips_compression_micromips): Likewise.
4637 (mips_compression_strings): Likewise.
4638 (mips_compression_string): Likewise.
4639 (is_mips16_isa, is_micromips_isa): New functions.
4640 (is_mips16_addr): Rename to...
4641 (is_compact_addr): ... this.
4642 (unmake_mips16_addr): Likewise to...
4643 (unmake_compact_addr): ... this.
4644 (make_mips16_addr): Likewise to...
4645 (make_compact_addr): ... this.
4646 (is_mips_addr, is_mips16_addr, is_micromips_addr): New
4647 functions.
4648 (mips_elf_make_msymbol_special): Handle microMIPS code.
4649 (msymbol_is_special): Rename to...
4650 (msymbol_is_mips16): ... this.
4651 (mips_make_symbol_special, mips_pc_is_mips16): Update
4652 accordingly.
4653 (msymbol_is_mips, msymbol_is_micromips): New functions.
4654 (mips16_to_32_reg): Rename to...
4655 (mips_reg3_to_reg): ... this.
4656 (mips_pc_is_mips, mips_pc_is_micromips): New functions.
4657 (mips_pc_isa): Likewise.
4658 (mips_read_pc, mips_unwind_pc, mips_write_pc): Handle microMIPS
4659 code.
4660 (mips_fetch_instruction): Pass return status instead of printing
4661 an error message if requested. Handle microMIPS code. Bail out
4662 on an invalid ISA.
4663 (micromips_op): New macro.
4664 (b0s4_imm, b0s5_imm, b0s5_reg, b0s7_imm, b0s10_imm): Likewise.
4665 (b1s9_imm, b2s3_cc, b4s2_regl, b5s5_op, b5s5_reg): Likewise.
4666 (b6s4_op, b7s3_reg): Likewise.
4667 (b0s6_op, b0s11_op, b0s12_imm, b0s16_imm, b0s26_imm): Likewise.
4668 (b6s10_ext, b11s5_reg, b12s4_op): Likewise.
4669 (mips_insn_size): New function.
4670 (mips32_next_pc): Update mips_fetch_instruction call.
4671 (micromips_relative_offset7): New function.
4672 (micromips_relative_offset10): Likewise.
4673 (micromips_relative_offset16): Likewise.
4674 (micromips_pc_insn_size): Likewise.
4675 (micromips_bc1_pc): Likewise.
4676 (micromips_next_pc): Likewise.
4677 (unpack_mips16): Update mips_fetch_instruction call.
4678 (extended_mips16_next_pc): Update according to change to
4679 mips16_to_32_reg.
4680 (mips_next_pc): Update mips_pc_is_mips16 call. Handle microMIPS
4681 code.
4682 (mips16_scan_prologue): Update mips_fetch_instruction call.
4683 Update according to change to mips16_to_32_reg.
4684 (mips_insn16_frame_sniffer): Update mips_pc_is_mips16 call.
4685 (mips_insn16_frame_base_sniffer): Likewise.
4686 (micromips_decode_imm9): New function.
4687 (micromips_scan_prologue): Likewise.
4688 (mips_micro_frame_cache): Likewise.
4689 (mips_micro_frame_this_id): Likewise.
4690 (mips_micro_frame_prev_register): Likewise.
4691 (mips_micro_frame_sniffer): Likewise.
4692 (mips_micro_frame_unwind): New variable.
4693 (mips_micro_frame_base_address): New function.
4694 (mips_micro_frame_base): New variable.
4695 (mips_micro_frame_base_sniffer): New function.
4696 (mips32_scan_prologue): Update mips_fetch_instruction call.
4697 (mips_insn32_frame_sniffer): Check for the standard MIPS ISA
4698 rather than for MIPS16.
4699 (mips_insn32_frame_base_sniffer): Likewise.
4700 (mips_addr_bits_remove): Handle microMIPS code.
4701 (deal_with_atomic_sequence): Rename to...
4702 (mips_deal_with_atomic_sequence): ... this. Update the type
4703 of the variable used to hold an instruction. Remove the ISA bit
4704 check. Update mips_fetch_instruction call.
4705 (micromips_deal_with_atomic_sequence): New function.
4706 (deal_with_atomic_sequence): Likewise.
4707 (mips_about_to_return): Handle microMIPS code. Update
4708 mips_fetch_instruction call.
4709 (heuristic_proc_start): Check for the standard MIPS ISA rather
4710 than for MIPS16. Update mips_pc_is_mips16 and
4711 mips_fetch_instruction calls. Handle microMIPS code.
4712 (mips_push_dummy_code): Handle microMIPS code.
4713 (mips_eabi_push_dummy_call): Likewise.
4714 (mips_o32_return_value): Update mips_pc_is_mips16 call.
4715 (mips_o64_push_dummy_call): Handle microMIPS code.
4716 (mips_o64_return_value): Update mips_pc_is_mips16 call.
4717 (is_delayed): Remove function.
4718 (mips_single_step_through_delay): Replace the call to is_delayed
4719 with mips32_instruction_has_delay_slot. Correct MIPS16 handling.
4720 Handle microMIPS code.
4721 (mips_skip_prologue): Update mips_pc_is_mips16 call. Handle
4722 microMIPS code.
4723 (mips32_in_function_epilogue_p): Update mips_fetch_instruction
4724 call.
4725 (micromips_in_function_epilogue_p): New function.
4726 (mips16_in_function_epilogue_p): Update mips_fetch_instruction
4727 call.
4728 (mips_in_function_epilogue_p): Update mips_pc_is_mips16 call.
4729 Handle microMIPS.
4730 (gdb_print_insn_mips): Likewise.
4731 (mips_breakpoint_from_pc): Likewise.
4732 (mips_remote_breakpoint_from_pc): New function.
4733 (mips32_instruction_has_delay_slot): Simplify making use of the
4734 updated mips_fetch_instruction interface.
4735 (micromips_instruction_has_delay_slot): New function.
4736 (mips16_instruction_has_delay_slot): Simplify making use of the
4737 updated mips_fetch_instruction interface.
4738 (mips_adjust_breakpoint_address): Check for the standard MIPS
4739 ISA rather than for MIPS16 ISA. Update for unmake_compact_addr
4740 calls. Handle microMIPS code.
4741 (mips_get_mips16_fn_stub_pc): Update mips_fetch_instruction call.
4742 (mips_skip_trampoline_code): Handle microMIPS code.
4743 (global_mips_compression): New function.
4744 (mips_gdbarch_init): Handle the compressed ISA setting from ELF
4745 file flags. Register the microMIPS remote breakpoint handler
4746 and heuristic frame unwinder.
4747 (show_mips_compression): New function.
4748 (_initialize_mips_tdep): Add the "set mips compression" and
4749 "show mips compression" commands.
4750
4751 2012-05-18 Sergio Durigan Junior <sergiodj@redhat.com>
4752
4753 * ada-lang.c:
4754 * ada-tasks.c:
4755 * ada-varobj.c:
4756 * amd64-darwin-tdep.c:
4757 * arm-symbian-tdep.c:
4758 * arm-tdep.c:
4759 * avr-tdep.c:
4760 * ax-gdb.c:
4761 * bfin-linux-tdep.c:
4762 * breakpoint.c:
4763 * c-valprint.c:
4764 * cli/cli-cmds.c:
4765 * coffread.c:
4766 * cp-support.c:
4767 * cris-tdep.c:
4768 * dwarf2-frame-tailcall.c:
4769 * dwarf2-frame.c:
4770 * dwarf2expr.c:
4771 * dwarf2loc.c:
4772 * dwarf2read.c:
4773 * elfread.c:
4774 * eval.c:
4775 * expprint.c:
4776 * f-valprint.c:
4777 * frv-tdep.c:
4778 * h8300-tdep.c:
4779 * hppa-hpux-tdep.c:
4780 * hppa-tdep.c:
4781 * hppanbsd-tdep.c:
4782 * i386-nto-tdep.c:
4783 * i386-tdep.c:
4784 * i387-tdep.c:
4785 * ia64-tdep.c:
4786 * jit.c:
4787 * linespec.c:
4788 * linux-tdep.c:
4789 * lm32-tdep.c:
4790 * m2-valprint.c:
4791 * m32c-tdep.c:
4792 * m32r-rom.c:
4793 * m32r-tdep.c:
4794 * m68k-tdep.c:
4795 * m68klinux-tdep.c:
4796 * mi/mi-main.c:
4797 * microblaze-tdep.c:
4798 * mips-linux-tdep.c:
4799 * mips-tdep.c:
4800 * mn10300-tdep.c:
4801 * p-valprint.c:
4802 * parse.c:
4803 * ppc-linux-tdep.c:
4804 * ppc-sysv-tdep.c:
4805 * printcmd.c:
4806 * python/py-finishbreakpoint.c:
4807 * python/py-inferior.c:
4808 * python/py-infthread.c:
4809 * python/py-type.c:
4810 * python/python.c:
4811 * remote-fileio.c:
4812 * remote-m32r-sdi.c:
4813 * remote-mips.c:
4814 * reverse.c:
4815 * rl78-tdep.c:
4816 * rs6000-aix-tdep.c:
4817 * rs6000-tdep.c:
4818 * s390-tdep.c:
4819 * score-tdep.c:
4820 * sh64-tdep.c:
4821 * skip.c:
4822 * solib-darwin.c:
4823 * solib-dsbt.c:
4824 * solib-frv.c:
4825 * sparc-tdep.c:
4826 * spu-multiarch.c:
4827 * spu-tdep.c:
4828 * stack.c:
4829 * symfile.c:
4830 * symtab.c:
4831 * tic6x-tdep.c:
4832 * tracepoint.c:
4833 * v850-tdep.c:
4834 * valarith.c:
4835 * valprint.c:
4836 * value.c:
4837 * xcoffread.c:
4838 * xtensa-tdep.c:
4839 * ada-lang.c:
4840 * ada-tasks.c:
4841 * ada-varobj.c:
4842 * amd64-darwin-tdep.c:
4843 * arm-symbian-tdep.c:
4844 * arm-tdep.c: Delete unused variables.
4845
4846 2012-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
4847
4848 Rename $ddir to $datadir.
4849 * NEWS (--with-auto-load-dir): Rename $ddir to $datadir.
4850 * auto-load.c (auto_load_safe_path_vec_update)
4851 (auto_load_gdb_datadir_changed, auto_load_objfile_script): Likewise.
4852 * configure: Regenerate.
4853 * configure.ac (--with-auto-load-dir, --with-auto-load-safe-path):
4854 Likewise. Remove the 'use $ddir' help string.
4855
4856 2012-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
4857
4858 * auto-load.c (show_auto_load_safe_path): Accept any combination of
4859 DIRNAME_SEPARATOR and IS_DIR_SEPARATOR for wild-match.
4860
4861 2012-05-18 Tom Tromey <tromey@redhat.com>
4862
4863 PR exp/13907:
4864 * valprint.h (struct value_print_options) <symbol_print>: New
4865 field.
4866 * valprint.c (user_print_options): Add default for symbol_print.
4867 (show_symbol_print): New function.
4868 (generic_val_print): Respect symbol_print.
4869 (_initialize_valprint): Add "print symbol" setting.
4870 * f-valprint.c (f_val_print): Respect symbol_print.
4871 * c-valprint.c (c_val_print): Respect symbol_print.
4872 * NEWS: Update.
4873 * printcmd.c (print_address_symbolic): Return int. Ignore some
4874 zero-size symbols.
4875 (print_address_demangle): Return int.
4876 * defs.h: (print_address_symbolic): Return int.
4877 * value.h (print_address_demangle): Return int.
4878
4879 2012-05-18 Tom Tromey <tromey@redhat.com>
4880
4881 * valprint.c (val_print_string): Don't print leading space.
4882 * p-valprint.c (pascal_val_print) <TYPE_CODE_PTR>: Optionally
4883 print space before string or vtbl.
4884 * m2-valprint.c (print_unpacked_pointer): Optionally print space
4885 before string.
4886 * jv-valprint.c (java_value_print): Print space before string.
4887 * go-valprint.c (print_go_string): Print space before string.
4888 * f-valprint.c (f_val_print) <TYPE_CODE_PTR>: Optionally print
4889 space before string.
4890 * c-valprint.c (c_val_print) <TYPE_CODE_PTR>: Optionally print
4891 space before string or vtbl.
4892 * auxv.c (fprint_target_auxv): Print space after address.
4893
4894 2012-05-18 Tom Tromey <tromey@redhat.com>
4895
4896 * printcmd.c (print_address_demangle): Remove special case for 0.
4897
4898 2012-05-18 Tom Tromey <tromey@redhat.com>
4899
4900 * printcmd.c (print_address_demangle): Add 'opts' argument.
4901 * p-valprint.c (pascal_val_print): Update.
4902 * jv-valprint.c (java_val_print): Update.
4903 * value.h: Update.
4904 * valprint.c (generic_val_print): Update.
4905 (print_function_pointer_address): Add 'options' argument. Remove
4906 'addressprint' argument. Update.
4907 * m2-valprint.c (print_unpacked_pointer): Update.
4908 * gnu-v3-abi.c (print_one_vtable): Update.
4909 (gnuv3_print_method_ptr): Update.
4910 * f-valprint.c (f_val_print): Update.
4911 * cp-valprint.c (cp_print_value_fields): Update.
4912 * valprint.h (print_function_pointer_address): Update.
4913 * c-valprint.c (c_val_print): Update.
4914
4915 2012-05-18 Tom Tromey <tromey@redhat.com>
4916
4917 * psymtab.c (find_pc_sect_symtab_from_partial): Return the symtab
4918 directly corresponding to the found psymtab.
4919 * dwarf2read.c (recursively_find_pc_sect_symtab): New function.
4920 (dw2_find_pc_sect_symtab): Use it.
4921 * block.h (blockvector_contains_pc): Declare.
4922 * block.c (find_block_in_blockvector): New function.
4923 (blockvector_for_pc_sect): Use it.
4924 (blockvector_contains_pc): New function.
4925
4926 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
4927
4928 * mips-tdep.h (mips_write_pc): New prototype.
4929 * mips-tdep.c (mips_write_pc): Make external, add description.
4930 * mips-linux-tdep.c (mips_linux_write_pc): Use mips_write_pc,
4931 add description.
4932
4933 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
4934
4935 * mips-tdep.c (mips_read_pc): Use gdbarch_pc_regnum instead of
4936 mips_regnum->pc.
4937 (mips_unwind_pc, mips_write_pc): Likewise.
4938 (mips_gdbarch_init): Remove a comment on gdbarch_pc_regnum and
4939 gdbarch_read_pc.
4940
4941 2012-05-17 Joel Brobecker <brobecker@adacore.com>
4942
4943 * procfs.c (procfs_find_new_threads, procfs_pid_to_str,
4944 proc_warn, proc_error, proc_get_status, proc_flags,
4945 proc_why, proc_what, proc_nsysarg, proc_sysargs,
4946 proc_set_run_on_last_close, proc_unset_run_on_last_close,
4947 proc_unset_inherit_on_fork, proc_set_async, proc_unset_async,
4948 proc_stop_process, proc_wait_for_stop, proc_run_process,
4949 proc_set_traced_signals, proc_set_traced_faults,
4950 proc_set_traced_sysentry, proc_set_traced_sysexit,
4951 proc_set_held_signals, proc_get_held_signals,
4952 proc_get_traced_signals, proc_get_traced_faults,
4953 proc_get_traced_sysentry, proc_get_traced_sysexit,
4954 proc_clear_current_fault, proc_set_current_signal,
4955 proc_clear_current_signal, proc_get_gregs, proc_get_fpregs,
4956 proc_set_gregs, proc_set_fpregs, proc_kill, proc_parent_pid,
4957 proc_get_nthreads, proc_get_nthreads, proc_get_nthreads,
4958 proc_get_current_thread, proc_get_current_thread,
4959 proc_get_current_thread, proc_update_threads,
4960 proc_update_threads, proc_update_threads, proc_update_threads,
4961 proc_iterate_over_threads, procfs_find_new_threads,
4962 procfs_pid_to_str): Make static. Remove advance declaration.
4963 (proc_cursig): Make static. Conditionalized defintion on
4964 PROCFS_DONT_PIOCSSIG_CURSIG being defined.
4965 (proc_syscall, proc_set_kill_on_last_close,
4966 proc_unset_kill_on_last_close, proc_set_inherit_on_fork,
4967 proc_get_pending_signals, proc_get_signal_actions,
4968 proc_trace_signal, proc_ignore_signal): Delete.
4969
4970 2012-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
4971
4972 * coffread.c (cs_section_address): Passing proper argument for
4973 `bfd_get_section_vma'.
4974 * dwarf2read.c (dwarf2_locate_sections): Likewise, for
4975 `bfd_get_section_flags'.
4976 * remote.c (remote_trace_set_readonly_regions): Likewise, for
4977 `bfd_get_section_vma'.
4978
4979 2012-05-16 Tom Tromey <tromey@redhat.com>
4980
4981 PR macros/13205:
4982 * macrotab.h: (macro_define_special): Declare.
4983 (enum macro_special_kind): New.
4984 (struct macro_definition) <argc, replacement>: Update comments.
4985 * macrotab.c (new_macro_definition): Unconditionally set 'argc'.
4986 (macro_define_object_internal): New function.
4987 (macro_define_object): Use it.
4988 (macro_define_special): New function.
4989 (fixup_definition): New function.
4990 (macro_lookup_definition, foreach_macro_in_scope)
4991 (foreach_macro): Use fixup_definition.
4992 * macroexp.h (macro_stringify): Declare.
4993 * macroexp.c (free_buffer_return_text): New function.
4994 (stringify): Constify "arg".
4995 (macro_stringify): New function.
4996 * dwarf2read.c (macro_start_file): Call macro_define_special.
4997
4998 2012-05-16 Maciej W. Rozycki <macro@codesourcery.com>
4999 Maciej W. Rozycki <macro@mips.com>
5000
5001 * breakpoint.h (bp_location): Add related_address member.
5002 * inferior.h (get_return_value): Take a pointer to struct value
5003 instead of struct type for the function requested.
5004 * value.h (using_struct_return): Likewise.
5005 * gdbarch.sh (return_value): Take a pointer to struct value
5006 instead of struct type for the function requested.
5007 * breakpoint.c (set_breakpoint_location_function): Initialize
5008 related_address for bp_gnu_ifunc_resolver breakpoints.
5009 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Pass the
5010 requested function's address to gdbarch_return_value.
5011 * eval.c (evaluate_subexp_standard): Pass the requested
5012 function's address to using_struct_return.
5013 * infcall.c (call_function_by_hand): Pass the requested
5014 function's address to using_struct_return and
5015 gdbarch_return_value.
5016 * infcmd.c (get_return_value): Take a pointer to struct value
5017 instead of struct type for the function requested.
5018 (print_return_value): Update accordingly.
5019 (finish_command_continuation): Likewise.
5020 * stack.c (return_command): Pass the requested function's
5021 address to using_struct_return and gdbarch_return_value.
5022 * value.c (using_struct_return): Take a pointer to struct value
5023 instead of struct type for the function requested. Pass the
5024 requested function's address to gdbarch_return_value.
5025 * python/py-finishbreakpoint.c (finish_breakpoint_object):
5026 New function_value member, replacing function_type.
5027 (bpfinishpy_dealloc): Update accordingly.
5028 (bpfinishpy_pre_stop_hook): Likewise.
5029 (bpfinishpy_init): Likewise. Record the requested function's
5030 address.
5031 * mips-tdep.c (mips_fval_reg): New enum.
5032 (mips_o32_push_dummy_call): For MIPS16 FP doubles do not swap
5033 words put in GP registers.
5034 (mips_o64_push_dummy_call): Update a comment.
5035 (mips_o32_return_value): Take a pointer to struct value instead
5036 of struct type for the function requested and use it to check if
5037 using the MIPS16 calling convention. Return the designated
5038 general purpose registers for floating-point values returned in
5039 MIPS16 mode.
5040 (mips_o64_return_value): Likewise.
5041 * ppc-tdep.h (ppc_sysv_abi_return_value): Update prototype.
5042 (ppc_sysv_abi_broken_return_value): Likewise.
5043 (ppc64_sysv_abi_return_value): Likewise.
5044 * alpha-tdep.c (alpha_return_value): Take a pointer to struct
5045 value instead of struct type for the function requested.
5046 * amd64-tdep.c (amd64_return_value): Likewise.
5047 * amd64-windows-tdep.c (amd64_windows_return_value): Likewise.
5048 * arm-tdep.c (arm_return_value): Likewise.
5049 * avr-tdep.c (avr_return_value): Likewise.
5050 * bfin-tdep.c (bfin_return_value): Likewise.
5051 * cris-tdep.c (cris_return_value): Likewise.
5052 * frv-tdep.c (frv_return_value): Likewise.
5053 * h8300-tdep.c (h8300_return_value): Likewise.
5054 (h8300h_return_value): Likewise.
5055 * hppa-tdep.c (hppa32_return_value): Likewise.
5056 (hppa64_return_value): Likewise.
5057 * i386-tdep.c (i386_return_value): Likewise.
5058 * ia64-tdep.c (ia64_return_value): Likewise.
5059 * iq2000-tdep.c (iq2000_return_value): Likewise.
5060 * lm32-tdep.c (lm32_return_value): Likewise.
5061 * m32c-tdep.c (m32c_return_value): Likewise.
5062 * m32r-tdep.c (m32r_return_value): Likewise.
5063 * m68hc11-tdep.c (m68hc11_return_value): Likewise.
5064 * m68k-tdep.c (m68k_return_value): Likewise.
5065 (m68k_svr4_return_value): Likewise.
5066 * m88k-tdep.c (m88k_return_value): Likewise.
5067 * mep-tdep.c (mep_return_value): Likewise.
5068 * microblaze-tdep.c (microblaze_return_value): Likewise.
5069 * mn10300-tdep.c (mn10300_return_value): Likewise.
5070 * moxie-tdep.c (moxie_return_value): Likewise.
5071 * mt-tdep.c (mt_return_value): Likewise.
5072 * ppc-linux-tdep.c (ppc_linux_return_value): Likewise.
5073 * ppc-sysv-tdep.c (ppc_sysv_abi_return_value): Likewise.
5074 (ppc_sysv_abi_broken_return_value): Likewise.
5075 (ppc64_sysv_abi_return_value): Likewise.
5076 * ppcnbsd-tdep.c (ppcnbsd_return_value): Likewise.
5077 * rl78-tdep.c (rl78_return_value): Likewise.
5078 * rs6000-aix-tdep.c (rs6000_return_value): Likewise.
5079 * rx-tdep.c (rx_return_value): Likewise.
5080 * s390-tdep.c (s390_return_value): Likewise.
5081 * score-tdep.c (score_return_value): Likewise.
5082 * sh-tdep.c (sh_return_value_nofpu): Likewise.
5083 (sh_return_value_fpu): Likewise.
5084 * sh64-tdep.c (sh64_return_value): Likewise.
5085 * sparc-tdep.c (sparc32_return_value): Likewise.
5086 * sparc64-tdep.c (sparc64_return_value): Likewise.
5087 * spu-tdep.c (spu_return_value): Likewise.
5088 * tic6x-tdep.c (tic6x_return_value): Likewise.
5089 * v850-tdep.c (v850_return_value): Likewise.
5090 * vax-tdep.c (vax_return_value): Likewise.
5091 * xstormy16-tdep.c (xstormy16_return_value): Likewise.
5092 * xtensa-tdep.c (xtensa_return_value): Likewise.
5093 * gdbarch.c: Regenerate.
5094 * gdbarch.h: Regenerate.
5095
5096 2012-05-15 Tom Tromey <tromey@redhat.com>
5097
5098 * python/python.c (gdbpy_find_pc_line): Use gdb_py_ulongest.
5099
5100 2012-05-15 Joel Brobecker <brobecker@adacore.com>
5101
5102 * breakpoint.c (init_breakpoint_sal): Add quotes around part
5103 of command in two error message.
5104
5105 2012-05-15 Joel Brobecker <brobecker@adacore.com>
5106
5107 * breakpoint.c (init_breakpoint_sal): Remove trailing spaces.
5108
5109 2012-05-15 Joel Brobecker <brobecker@adacore.com>
5110
5111 * breakpoint.c (find_condition_and_thread): Minor reformatting.
5112
5113 2012-05-15 Jan Kratochvil <jan.kratochvil@redhat.com>
5114
5115 * NEWS (show auto-load scripts-directory): Add forgotten command.
5116
5117 2012-05-15 Jan Kratochvil <jan.kratochvil@redhat.com>
5118
5119 * spu-tdep.c (spu_catch_start): Update create_breakpoint caller
5120 parameters.
5121
5122 2012-05-14 H.J. Lu <hongjiu.lu@intel.com>
5123
5124 * amd64-tdep.c: Include features/i386/x32.c and
5125 features/i386/x32-avx.c.
5126 (_initialize_amd64_tdep): Call initialize_tdesc_x32 and
5127 initialize_tdesc_x32_avx.
5128
5129 2012-05-14 Stan Shebs <stan@codesourcery.com>
5130
5131 Add dynamic printf.
5132 * breakpoint.h (enum bptype): New type bp_dprintf.
5133 (struct breakpoint): New field extra_string.
5134 (struct breakpoint_ops): Add arg to create_breakpoints_sal.
5135 (create_breakpoint): Add extra_string arg.
5136 * breakpoint.c (dprintf_breakpoint_ops): New.
5137 (is_breakpoint): Add bp_dprintf.
5138 (bpstat_what): Add dprintf case.
5139 (bptype_string): Ditto.
5140 (print_one_breakpoint_location): Ditto.
5141 (init_bp_location): Ditto.
5142 (bkpt_print_mention): Ditto.
5143 (dprintf_style_enums): New array.
5144 (dprintf_style): New global.
5145 (dprintf_function): New global.
5146 (dprintf_channel): New global.
5147 (update_dprintf_command_list): New function.
5148 (update_dprintf_commands): New function.
5149 (init_breakpoint_sal): Add extra_string argument, handle it.
5150 (create_breakpoint_sal): Add extra_string argument.
5151 (create_breakpoints_sal): Add extra_string argument, update callers.
5152 (find_condition_and_thread): Add extra argument.
5153 (create_breakpoint): Add extra_string argument, record it.
5154 (dprintf_command): New function.
5155 (break_command_1): Add arg to create_breakpoint call.
5156 (handle_gnu_v3_exceptions): Ditto.
5157 (trace_command): Ditto.
5158 (ftrace_command): Ditto.
5159 (strace_command): Ditto.
5160 (bkpt_print_mention): Add dprintf case.
5161 (create_breakpoint_sal_default): Add extra_string argument.
5162 (_initialize_breakpoint): Add new commands.
5163 * mi/mi-cmd-break.c (mi_cmd_break_insert): Add arg to call.
5164 * python/py-breakpoint.c (bppy_init): Ditto.
5165 * python/py-finishbreakpoint.c (bpfinishpy_init): Ditto.
5166
5167 2012-05-14 Maciej W. Rozycki <macro@codesourcery.com>
5168
5169 * mips-tdep.c (mips_push_dummy_code): Correct description typo.
5170
5171 2012-05-14 Siva Chandra Reddy <sivachandra@google.com>
5172
5173 * python/python.c (gdbpy_find_pc_line): Use ULONGEST instead of
5174 unsigned long long.
5175
5176 2012-05-13 Siva Chandra Reddy <sivachandra@google.com>
5177
5178 Add a new function gdb.find_pc_line to the Python API.
5179 * NEWS (Python Scripting): Add entry about the new function.
5180 * python/python.c (gdbpy_find_pc_line): New function which
5181 implements gdb.find_pc_line.
5182 (GdbMethods): Add entry for the new function.
5183
5184 2012-05-12 Pedro Alves <palves@redhat.com>
5185
5186 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Call
5187 initialize_tdesc_x32_linux and initialize_tdesc_x32_avx_linux.
5188
5189 2012-05-12 Eli Zaretskii <eliz@gnu.org>
5190
5191 * inferior.c: Include completer.h
5192 (initialize_inferiors): Set completer of add-inferior to
5193 filename_completer.
5194
5195 2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
5196
5197 * amd64-linux-tdep.c (amd64_linux_core_read_description): Check
5198 gdbarch_ptr_bit for x32 core dump.
5199
5200 2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
5201
5202 * amd64-linux-tdep.c: Include features/i386/x32-linux.c
5203 and features/i386/x32-avx-linux.c.
5204
5205 2012-05-11 Stan Shebs <stan@codesourcery.com>
5206 Kwok Cheung Yeung <kcy@codesourcery.com>
5207
5208 * NEWS: Describe new info os commands.
5209 * common/linux-osdata.c (PID_T, TIME_T): Define.
5210 (MAX_PID_T_STRLEN): New.
5211 (linux_common_core_of_thread): Add comment. Change to use PID_T and
5212 MAX_PID_T_STRLEN.
5213 (command_from_pid): Add comment. Change to use PID_T.
5214 (commandline_from_pid): Change to use PID_T.
5215 (user_from_pid): Add comment.
5216 (get_process_owner): Add comment. Change to use PID_T and
5217 MAX_PID_T_STRLEN.
5218 (get_number_of_cpu_cores): Add comment.
5219 (get_cores_used_by_process): Add comment. Change to use PID_T and
5220 MAX_PID_T_STRLEN.
5221 (linux_xfer_osdata_processes): Change to use PID_T and
5222 MAX_PID_T_STRLEN.
5223 (compare_processes): New function.
5224 (linux_xfer_osdata_processgroups): New function.
5225 (linux_xfer_osdata_threads): Change to use PID_T.
5226 (linux_xfer_osdata_fds): New function.
5227 (format_socket_state, print_sockets): New functions.
5228 (union socket_addr): New union.
5229 (linux_xfer_osdata_isockets): New function.
5230 (time_from_time_t, group_from_gid): New functions.
5231 (linux_xfer_osdata_shm): New function.
5232 (linux_xfer_osdata_sem): New function.
5233 (linux_xfer_osdata_msg): New function.
5234 (linux_xfer_osdata_modules): New function.
5235 (osdata_table): Add new entries.
5236 * common/buffer.c (buffer_xml_printf): Add support for long and
5237 long long format specifiers.
5238
5239 2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
5240
5241 * amd64-linux-tdep.h (tdesc_x32_linux): New.
5242 (tdesc_x32_avx_linux): Likewise.
5243
5244 2012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
5245
5246 Implement multi-component --with-auto-load-dir.
5247 * NEWS (set auto-load scripts-directory, --with-auto-load-dir): New
5248 entries.
5249 (--with-auto-load-safe-path): Update the default value description.
5250 * auto-load.c (auto_load_dir, set_auto_load_dir, show_auto_load_dir):
5251 New.
5252 (auto_load_objfile_script): Add DEBUG_AUTO_LOAD output. Remove
5253 GDB_DATADIR NULL check. Replace GDB_DATADIR/auto-load by
5254 AUTO_LOAD_DIR. Support $ddir and multiple components in it.
5255 (_initialize_auto_load): Initialize also auto_load_dir. Install new
5256 "set auto-load scripts-directory".
5257 * config.in: Regenerate.
5258 * configure: Regenerate.
5259 * configure.ac (--with-auto-load-dir): New configure option.
5260 (--auto-load-safe-path): Change the default to --with-auto-load-dir.
5261
5262 2012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
5263
5264 Provide $ddir substitution for --with-auto-load-safe-path.
5265 * NEWS (--with-auto-load-safe-path, --without-auto-load-safe-path): New
5266 entries.
5267 * auto-load.c: Include observer.h.
5268 (auto_load_safe_path_vec_update): Call substitute_path_component for
5269 each component. New variable ddir_subst.
5270 (auto_load_gdb_datadir_changed): New function.
5271 (set_auto_load_safe_path): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
5272 AUTO_LOAD_SAFE_PATH. New comment.
5273 (_initialize_auto_load): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
5274 AUTO_LOAD_SAFE_PATH. Install auto_load_gdb_datadir_changed.
5275 * config.in: Regenerate.
5276 * configure: Regenerate.
5277 * configure.ac (--auto-load-safe-path): Rename
5278 DEFAULT_AUTO_LOAD_SAFE_PATH to AUTO_LOAD_SAFE_PATH. Default to
5279 GDB_DATADIR/auto-load.
5280 * defs.h (substitute_path_component): New declaration.
5281 * top.c: Include observer.h.
5282 (set_gdb_datadir): New function.
5283 (init_main): Install it for "set data-directory".
5284 * utils.c (substitute_path_component): New function.
5285
5286 2012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
5287
5288 Make auto-load handle multiple components of DEBUG_FILE_DIRECTORY.
5289 * auto-load.c (auto_load_objfile_script): Remove check for NULL
5290 DEBUG_FILE_DIRECTORY. Handle multiple components of
5291 DEBUG_FILE_DIRECTORY.
5292
5293 2012-05-10 Tom Tromey <tromey@redhat.com>
5294
5295 * dwarf2read.c (recursively_write_psymbols): New function.
5296 (write_psymtabs_to_index): Use it.
5297
5298 * dwarf2read.c (struct dwarf2_queue_item) <pretend_language>: New
5299 field.
5300 (load_cu, dw2_do_instantiate_symtab, process_psymtab_comp_unit)
5301 (load_partial_comp_unit): Update.
5302 (queue_comp_unit): Add argument 'pretend_language'.
5303 (process_queue): Update.
5304 (psymtab_to_symtab_1): Skip dependencies that have a user.
5305 (load_partial_comp_unit_reader): Give meaning to the 'data'
5306 argument.
5307 (load_full_comp_unit): Add 'pretend_language' argument.
5308 (process_full_comp_unit): Add 'pretend_language' argument. Set
5309 language on CU.
5310 (process_imported_unit_die, read_file_scope, read_type_unit_scope):
5311 Update.
5312 (maybe_queue_comp_unit): Add 'pretend_language' argument.
5313 (follow_die_offset, follow_die_sig, read_signatured_type_reader):
5314 Update.
5315 (prepare_one_comp_unit): Add 'pretend_language' argument.
5316
5317 * dwarf2read.c: (dwarf2_per_cu_ptr): New typedef.
5318 (struct dwarf2_per_objfile) <just_read_cus>: New field.
5319 (struct dwarf2_per_cu_data) <imported_symtabs>: New field.
5320 (dw2_do_instantiate_symtab): Check whether symtab was read in
5321 before queueing.
5322 (dw2_instantiate_symtab): Add assertion. Call
5323 process_cu_includes.
5324 (process_psymtab_comp_unit): Compute 'dependencies' for psymtab.
5325 (partial_symtab_p): New typedef.
5326 (set_partial_user): New function.
5327 (dwarf2_build_psymtabs_hard): Use set_partial_user.
5328 (scan_partial_symbols): Add imported CU to imported_symtabs.
5329 (dwarf2_psymtab_to_symtab): Call process_cu_includes.
5330 (psymtab_to_symtab_1): Do nothing if psymtab is readin.
5331 (get_symtab, recursively_compute_inclusions)
5332 (compute_symtab_includes, process_cu_includes)
5333 (process_imported_unit_die): New functions.
5334 (process_die) <DW_TAG_imported_unit>: New case.
5335 (dwarf2_per_objfile_free): Free 'imported_symtabs'.
5336
5337 * dwarf2read.c (struct dwarf2_per_cu_data) <psymtab>: Update
5338 comment.
5339 (struct partial_die_info) <locdesc>: Remove.
5340 <d>: New field.
5341 (process_psymtab_comp_unit): Add 'read_partial' argument.
5342 Update.
5343 (process_type_comp_unit, dwarf2_build_psymtabs_hard): Update.
5344 (scan_partial_symbols): Handle DW_TAG_imported_unit.
5345 (add_partial_symbol): Update.
5346 (process_die): Handle DW_TAG_partial_unit.
5347 (read_file_scope): Update comment.
5348 (load_partial_dies): Handle DW_TAG_imported_unit.
5349 (read_partial_die): Handle DW_TAG_partial_unit, DW_AT_import.
5350 (determine_prefix, dwarf2_name): Handle DW_TAG_partial_unit.
5351
5352 2012-05-10 Tom Tromey <tromey@redhat.com>
5353
5354 * cc-with-dwz.sh: New file.
5355
5356 2012-05-10 Tom Tromey <tromey@redhat.com>
5357
5358 * symtab.h (struct symtab) <includes, user>: New fields.
5359 * block.h (struct block_iterator) <d, idx, which>: New fields.
5360 * block.c (initialize_block_iterator, find_iterator_symtab)
5361 (block_iterator_step, block_iter_name_step)
5362 (block_iter_match_step): New functions.
5363 (block_iterator_first, block_iterator_next)
5364 (block_iter_name_first, block_iter_name_next)
5365 (block_iter_match_first, block_iter_match_next): Rewrite.
5366 (get_block_symtab): New function.
5367
5368 2012-05-10 Tom Tromey <tromey@redhat.com>
5369
5370 * jv-lang.c (get_java_class_symtab): Use allocate_global_block,
5371 set_block_symtab.
5372 * jit.c (finalize_symtab): Use allocate_global_block,
5373 set_block_symtab.
5374 * buildsym.c (finish_block_internal): New function, from old
5375 finish_block.
5376 (finish_block): Rewrite.
5377 (end_symtab): Use finish_block_internal, set_block_symtab.
5378 * block.h (struct global_block): New.
5379 (allocate_global_block, set_block_symtab): Declare.
5380 * block.c (allocate_global_block, set_block_symtab): New
5381 functions.
5382
5383 2012-05-10 Tom Tromey <tromey@redhat.com>
5384
5385 * psymtab.c (partial_map_expand_apply): Add assertion.
5386 (partial_map_symtabs_matching_filename): Skip included psymtabs.
5387 (psymtab_to_symtab): Find unshared psymtab.
5388 (dump_psymtab): Print including psymtabs.
5389 (recursively_search_psymtabs): New function.
5390 (expand_symtabs_matching_via_partial): Use it.
5391 * psympriv.h (struct partial_symtab) <user, searched_flag>: New
5392 fields.
5393 (enum psymtab_search_status): New.
5394
5395 2012-05-10 Tom Tromey <tromey@redhat.com>
5396
5397 * tracepoint.c (scope_info): Update.
5398 * symtab.c (lookup_block_symbol, iterate_over_symbols)
5399 (find_pc_sect_symtab, search_symbols)
5400 (default_make_symbol_completion_list_break_on)
5401 (make_file_symbol_completion_list): Update.
5402 * symmisc.c (dump_symtab_1): Update.
5403 * stack.c (print_frame_args, iterate_over_block_locals)
5404 (print_frame_labels, iterate_over_block_arg_vars): Update.
5405 * python/py-block.c (block_object) <dict>: Remove.
5406 <block>: New field.
5407 <iter>: Change type.
5408 (blpy_iter): Update.
5409 (blpy_block_syms_iternext): Update.
5410 * psymtab.c (map_block): Use block iterators.
5411 * objfiles.c (objfile_relocate1): Use ALL_DICT_SYMBOLS.
5412 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
5413 * mdebugread.c (parse_symbol, mylookup_symbol): Update.
5414 * infrun.c (check_exception_resume): Update.
5415 * cp-support.c (make_symbol_overload_list_block): Update.
5416 * coffread.c (patch_opaque_types): Update.
5417 * buildsym.c (finish_block, end_symtab): Use ALL_DICT_SYMBOLS.
5418 * block.h (struct block_iterator): New.
5419 (block_iterator_first, block_iterator_next, block_iter_name_first)
5420 (block_iter_name_next, block_iter_match_first)
5421 (block_iter_match_next): Declare.
5422 (ALL_BLOCK_SYMBOLS): Redefine.
5423 * block.c (block_iterator_first, block_iterator_next)
5424 (block_iter_name_first, block_iter_name_next)
5425 (block_iter_match_first, block_iter_match_next): New functions.
5426 * ada-lang.c (ada_add_block_symbols)
5427 (ada_make_symbol_completion_list): Use block iterator.
5428
5429 2012-05-10 Tom Tromey <tromey@redhat.com>
5430
5431 * psymtab.c (PSYMTAB_TO_SYMTAB): Remove.
5432 (find_pc_sect_symtab_from_partial, lookup_symbol_aux_psymtabs)
5433 (lookup_partial_symbol, find_last_source_symtab_from_partial)
5434 (read_psymtabs_with_filename, map_matching_symbols_psymtab)
5435 (expand_symtabs_matching_via_partial, maintenance_check_symtabs):
5436 Update.
5437
5438 2012-05-10 Joel Brobecker <brobecker@adacore.com>
5439
5440 * config/djgpp/fnchange.lst: Add entries for print-file-var-lib1.c,
5441 print-file-var-lib2.c, print-file-var-main.c and
5442 print-file-var.exp (located in gdb/testsuite/gdb.base).
5443
5444 2012-05-10 Joel Brobecker <brobecker@adacore.com>
5445
5446 * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
5447 try locating the symbol in the symbol's own objfile first, before
5448 extending the search to all objfiles.
5449 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
5450 out of lookup_symbol_aux_symtabs.
5451 (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
5452 Replace extracted-out code by call to lookup_symbol_aux_objfile.
5453 Do not search EXCLUDE_OBJFILE.
5454 (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
5455 (lookup_symbol_global): Search for matches in the block's objfile
5456 first, before searching all other objfiles.
5457
5458 2012-05-10 Tristan Gingold <gingold@adacore.com>
5459
5460 * printcmd.c (set_command): Add pre/post inc/dec.
5461
5462 2012-05-09 Frank Ch. Eigler <fche@redhat.com>
5463
5464 * gdb.1: Document -ex option.
5465
5466 2012-05-09 Joel Brobecker <brobecker@adacore.com>
5467
5468 * infcall.c (call_function_by_hand): Remove AT_SYMBOL handling.
5469 * inferior.h (AT_SYMBOL): Delete.
5470
5471 2012-05-09 Joel Brobecker <brobecker@adacore.com>
5472
5473 * mips-tdep.c (mips_push_dummy_code): New function.
5474 (mips_gdbarch_init): Set the gdbarch call_dummy_location to
5475 ON_STACK and install mips_push_dummy_code as our gdbarch
5476 push_dummy_code routine.
5477
5478 2012-05-09 Pedro Alves <palves@redhat.com>
5479
5480 * target.c (set_maintenance_target_async_permitted): Rename to ...
5481 (set_target_async_command): ... this.
5482 (show_maintenance_target_async_permitted): Rename to ...
5483 (show_target_async_command): ... this.
5484 (initialize_targets): Adjust.
5485
5486 2012-05-08 Doug Evans <dje@google.com>
5487
5488 * go-exp.y (classify_name): Add missing assignment of fields of
5489 yylval.ssym.
5490
5491 2012-05-08 Eli Zaretskii <eliz@gnu.org>
5492
5493 Display the ">" prompt in interactive mode while reading canned
5494 commands, even when the current interpreter is MI.
5495
5496 * interps.c (interp_set_temp): New function.
5497
5498 * interps.h (interp_set_temp): Add prototype.
5499
5500 * cli/cli-script.c (restore_interp): New cleanup function.
5501 (read_command_lines): Temporarily override the current interpreter
5502 with CLI and arrange for restoring the original one.
5503
5504 2012-05-12 Joel Sherrill <joel.sherrill@oarcorp.com>
5505
5506 * microblaze-rom.c (_initialize_picobug_rom): Add prototype.
5507
5508 2012-05-07 Sergio Durigan Junior <sergiodj@redhat.com>
5509
5510 * probe.c (parse_probes): Move conditional to check for
5511 debuginfo files from here...
5512 * stap-probe.c (stap_get_probes): ... to here.
5513
5514 2012-05-07 Mark Kettenis <kettenis@gnu.org>
5515 H.J. Lu <hongjiu.lu@intel.com>
5516
5517 * amd64-tdep.c (amd64_analyze_prologue): Additionally check for
5518 `movl %esp, %ebp' for the X32 ABI.
5519
5520 2012-05-07 Tom Tromey <tromey@redhat.com>
5521
5522 * dwarf2read.c (dwarf_tag_name): Return const char *. Use
5523 get_DW_TAG_name.
5524 (dwarf_attr_name): Return const char *. Use get_DW_AT_name.
5525 (dwarf_form_name): Return const char *. Use get_DW_FORM_name.
5526 (dwarf_stack_op_name): Remove.
5527 (dwarf_cfi_name): Return const char *. Use get_DW_ATE_name.
5528 (decode_locdesc): Use get_DW_OP_name.
5529 * dwarf2loc.c (unimplemented): Use get_DW_OP_name.
5530 (dwarf2_compile_expr_to_ax): Likewise.
5531 (disassemble_dwarf_expression): Likewise.
5532 * dwarf2expr.h: (dwarf_stack_op_name): Remove.
5533
5534 2012-05-07 Chung-Lin Tang <cltang@codesourcery.com>
5535
5536 * sh-linux-tdep.c: Include trad-frame.h and tramp-frame.h.
5537 (sh_linux_sigtramp_cache): New function.
5538 (sh_linux_sigreturn_init): New function.
5539 (sh_linux_rt_sigreturn_init): New function.
5540 (SH_MOVW,SH_TRAP,SH_OR_R0_R0): New symbols for instruction
5541 patterns.
5542 (SH_NR_SIGRETURN,SH_NR_RT_SIGRETURN): New symbols for sigreturn
5543 syscall codes.
5544 (sh_linux_sigreturn_tramp_frame): New tramp_frame definition.
5545 (sh_linux_rt_sigreturn_tramp_frame): Likewise.
5546 (sh_linux_init_abi): Add init calls to register new tramp_frame
5547 definitions under 32-bit SH, update comments.
5548
5549 2012-05-07 Pedro Alves <palves@redhat.com>
5550
5551 PR gdb/10952
5552
5553 * amd64-linux-tdep.c: Include glibc-tdep.h.
5554 (amd64_linux_init_abi): Install glibc_skip_solib_resolver as
5555 gdbarch_skip_solib_resolver callback.
5556
5557 2012-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
5558
5559 * auto-load.c (set_auto_load_safe_path): Reset AUTO_LOAD_SAFE_PATH
5560 back to DEFAULT_AUTO_LOAD_SAFE_PATH if it is being set to "".
5561 (show_auto_load_safe_path): Check any-directory by comparison with "/".
5562 (add_auto_load_safe_path): Change the error message.
5563 (_initialize_auto_load): Change the "safe-path" help text.
5564 * configure: Regenerate
5565 * configure.ac (--without-auto-load-safe-path): Set
5566 WITH_AUTO_LOAD_SAFE_PATH to /.
5567
5568 2012-05-05 Sergio Durigan Junior <sergiodj@redhat.com>
5569
5570 * stap-probe.h: Do not include unecessary `probe.h'.
5571
5572 2012-05-05 Alan Modra <amodra@gmail.com>
5573
5574 * elfread.c (elf_symtab_read): Use bfd_abs_section_ptr and
5575 bfd_und_section_ptr.
5576 * machoread.c (macho_symtab_add_minsym): Use bfd_abs_section_ptr
5577 and bfd_com_section_ptr.
5578
5579 2012-05-04 Joel Brobecker <brobecker@adacore.com>
5580
5581 * MAINTAINERS (Past Maintainers): Add Chris Faylor.
5582
5583 2012-05-04 Joel Brobecker <brobecker@adacore.com>
5584
5585 * windows-nat.h (segment_register_p_ftype): New typedef.
5586 (windows_set_segment_register_p): Add declaration.
5587 * windows-nat.c (segment_register_p): New static global.
5588 (windows_set_segment_register_p): New function.
5589 (do_windows_fetch_inferior_registers): Add special handling
5590 for segment registers.
5591 * amd64-windows-nat.c: #include "amd64-tdep.h".
5592 (amd64_windows_segment_register_p): New function.
5593 (_initialize_amd64_windows_nat): Call windows_set_segment_register_p.
5594 * i386-windows-nat.c: #include "i386-tdep.h".
5595 (i386_windows_segment_register_p): New function.
5596 (_initialize_i386_windows_nat): Call windows_set_segment_register_p.
5597
5598 2012-05-04 Tristan Gingold <gingold@adacore.com>
5599
5600 * printcmd.c (set_command): Emit a warning if the expression is not
5601 an assignment.
5602
5603 2012-05-03 Joel Brobecker <brobecker@adacore.com>
5604
5605 * nto-procfs.c (procfs_find_new_threads, procfs_pid_to_str):
5606 Make static.
5607
5608 2012-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
5609
5610 * stap-probe.c (stap_is_operator): Change declaration.
5611 (stap_get_opcode): Change return value.
5612 (stap_parse_argument_1): Update calls to `stap_get_opcode' and
5613 `stap_parse_argument_1'.
5614
5615 2012-05-03 Pedro Alves <pedro@codesourcery.com>
5616
5617 * infrun.c (displaced_step_fixup): Add "displaced:" prefix to
5618 debug log.
5619
5620 2012-05-03 Siva Chandra Reddy <sivachandra@google.com>
5621
5622 Add two new methods global_block and static_block to gdb.Symtab
5623 objects.
5624 * NEWS (Python scripting): Add entry about the new methods.
5625 * python/py-symtab.c (stpy_global_block): New function which
5626 implements the gdb.Symtab.global_block() method.
5627 (stpy_static_block): New function which implements the
5628 gdb.Symtab.static_block() method.
5629 (symtab_object_methods): Add entries for the two new methods.
5630
5631 2012-05-03 Doug Evans <dje@google.com>
5632
5633 * dwarf2read.c (dw2_find_symbol_file): Don't crash if there are no
5634 files.
5635
5636 2012-05-03 Yao Qi <yao@codesourcery.com>
5637
5638 * i386-tdep.c (i386_fetch_pointer_argument): Remove extra
5639 space.
5640 (i386_process_record): Ditto.
5641
5642 2012-05-02 Joel Brobecker <brobecker@adacore.com>
5643
5644 * infcall.c (unwind_on_signal_p): Make static.
5645
5646 2012-05-02 Joel Brobecker <brobecker@adacore.com>
5647
5648 * sol-thread.c (solaris_pid_to_str): Make static.
5649 (_initialize_sol_thread): Add prototype.
5650
5651 2012-05-02 Joel Brobecker <brobecker@adacore.com>
5652
5653 * sol-thread.c (procfs_pid_to_str): Delete extern declaration.
5654
5655 2012-05-02 Christopher Faylor <me.cygwin2012@cgf.cx>
5656
5657 * MAINTAINERS: Remove myself.
5658
5659 2012-05-02 Jan Kratochvil <jan.kratochvil@redhat.com>
5660
5661 Fix --without-auto-load-safe-path for MS-Windows host platform.
5662 * auto-load.c (filename_is_in_dir): Return 1 for DIR_LEN 0.
5663
5664 2012-05-02 Eli Zaretskii <eliz@gnu.org>
5665
5666 * gdb_curses.h: Undefine KEY_EVENT before including curses
5667 headers. Move "#undef MOUSE_MOVED" before any curses header
5668 inclusion.
5669
5670 2012-05-02 Sergio Durigan Junior <sergiodj@gmail.com>
5671
5672 * features/i386/i386-mmx-linux.c: Regenerate.
5673 * features/rs6000/powerpc-32.c: Likewise.
5674 * features/rs6000/powerpc-32l.c: Likewise.
5675 * features/rs6000/powerpc-403.c: Likewise.
5676 * features/rs6000/powerpc-403gc.c: Likewise.
5677 * features/rs6000/powerpc-405.c: Likewise.
5678 * features/rs6000/powerpc-505.c: Likewise.
5679 * features/rs6000/powerpc-601.c: Likewise.
5680 * features/rs6000/powerpc-602.c: Likewise.
5681 * features/rs6000/powerpc-603.c: Likewise.
5682 * features/rs6000/powerpc-604.c: Likewise.
5683 * features/rs6000/powerpc-64.c: Likewise.
5684 * features/rs6000/powerpc-64l.c: Likewise.
5685 * features/rs6000/powerpc-750.c: Likewise.
5686 * features/rs6000/powerpc-860.c: Likewise.
5687 * features/rs6000/powerpc-e500.c: Likewise.
5688 * features/rs6000/powerpc-e500l.c: Likewise.
5689 * features/rs6000/powerpc-isa205-32l.c: Likewise.
5690 * features/rs6000/powerpc-isa205-64l.c: Likewise.
5691 * features/rs6000/rs6000.c: Likewise.
5692
5693 2012-05-02 Sergio Durigan Junior <sergiodj@gmail.com>
5694
5695 * i386-tdep.c (i386_stap_parse_special_token) <s>: Remove unused
5696 variable.
5697 * stap-probe.c (stap_parse_single_operand) <reg_suffix,
5698 reg_ind_suffix, reg_suffix_len, reg_ind_suffix_len>: Likewise.
5699 (stap_parse_argument) <e>: Likewise.
5700 (handle_stap_probe) <byte_order>: Likewise.
5701
5702 2012-04-30 Doug Evans <dje@google.com>
5703
5704 * dwarf2read.c (init_cutu_and_read_dies): Renamed from
5705 init_and_read_dies_worker. All callers updated.
5706 (init_cu_and_read_dies, init_tu_and_read_dies): Delete. All calls
5707 replaced with init_cutu_and_read_dies.
5708 (load_partial_comp_unit): Pass 1 for use_existing_cu.
5709 (find_partial_die): Remove FIXME. Don't free current CU.
5710
5711 2012-04-30 Sterling Augustine <saugustine@google.com>
5712
5713 * contrib: New directory.
5714 * contrib/test_pubnames_and_indexes.py: New file.
5715
5716 2012-04-30 Doug Evans <dje@google.com>
5717
5718 * dwarf2read.c (dwarf_decode_macros): New arg section_name.
5719 All callers updated.
5720 (init_cu_die_reader): Verify the section is non-empty.
5721 (dwarf_decode_line_header): Don't dereference section->asection
5722 until we know the section is present.
5723
5724 2012-04-29 Sergio Durigan Junior <sergiodj@redhat.com>
5725
5726 * tracepoint.c (start_tracing, stop_tracing): Checking for NULL
5727 probes.
5728
5729 2012-04-29 Yao Qi <yao@codesourcery.com>
5730
5731 * gdb-code-style.el: New hook gdb-markup-hook
5732 and gdb-comment-hook.
5733
5734 2012-04-28 Doug Evans <dje@google.com>
5735
5736 Initial support for Fission. http://gcc.gnu.org/wiki/DebugFission
5737 * symfile.c (default_symfile_relocate): Use sectp->owner instead of
5738 objfile->obfd.
5739 * symfile.h (dwarf2_debug_sections): New member addr.
5740 * dwarf2expr.c (execute_stack_op): New case DW_OP_GNU_addr_index.
5741 (ctx_no_get_addr_index): New function.
5742 * dwarf2expr.h (dwarf_expr_context_funcs): New member get_addr_index.
5743 (ctx_no_get_addr_index): Declare.
5744 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): Update.
5745 * dwarf2loc.c (dwarf_expr_get_addr_index): New function.
5746 (dwarf_expr_ctx_funcs): Update.
5747 (needs_get_addr_index): New function.
5748 (needs_frame_ctx_funcs): Update.
5749 * dwarf2loc.h (dwarf2_read_addr_index): Declare.
5750 * dwarf2read.c: #include "gdbcore.h".
5751 (dwarf2_per_objfile): New members addr, dwo_files.
5752 (dwarf2_elf_names): Add entry for addr.
5753 (struct dwo_section_names): New type.
5754 (dwo_section_names): New static global.
5755 (dwarf2_cu): New members dwo_unit, addr_base, have_addr_base.
5756 (dwarf2_per_cu_data): New member is_debug_types, all boolean uses of
5757 old debug_types_section member updated to use this.
5758 Rename member debug_types_section to info_or_types_section,
5759 all uses updated.
5760 (signatured_type): Rename member type_offset to type_offset_in_tu,
5761 all uses updated. New member type_offset_in_section.
5762 (struct dwo_sections): New type.
5763 (struct dwo_unit): New type.
5764 (struct dwo_file): New type.
5765 (die_reader_specs): New member dwo_file.
5766 (dwarf2_locate_sections): Watch for .debug_addr.
5767 (zlib_decompress_section): Use sectp->owner instead of objfile->obfd.
5768 (dwarf2_read_section): Get bfd of section from bfd's asection,
5769 instead of objfile.
5770 (create_cus_from_index): Initialize the_cu->info_or_types_section.
5771 (create_signatured_type_table_from_index): Initialize
5772 sig_type->info_or_types_section.
5773 (dw2_get_file_names): Statement lists for type units with DWO files
5774 live in the DWO file.
5775 (create_debug_types_hash_table): New function.
5776 (create_all_type_units): Rewrite.
5777 (init_cu_die_reader): New arg dwo_file, all callers updated.
5778 (init_and_read_dies_worker): Get section from
5779 this_cu->info_or_types_section. Set sig_type->type_offset_in_section.
5780 Watch for DW_AT_GNU_dwo_name and if present lookup the file and
5781 continue reading the CU/TU from there.
5782 (init_cutu_and_read_dies_no_follow): New arg dwo_file, all callers
5783 updated. Get section from this_cu->info_or_types_section.
5784 (create_all_comp_units): Initialize this_cu->info_or_types_section.
5785 (skip_one_die): New cases DW_FORM_GNU_addr_index,
5786 DW_FORM_GNU_str_index.
5787 (hash_dwo_file, eq_dwo_file): New functions.
5788 (allocate_dwo_file_hash_table): New function.
5789 (hash_dwo_unit, eq_dwo_unit): New functions.
5790 (allocate_dwo_unit_table): New function.
5791 (dwarf2_locate_dwo_sections): New function.
5792 (struct create_dwo_info_table_data): New type.
5793 (create_debug_info_hash_table_reader): New function.
5794 (create_debug_info_hash_table): New function.
5795 (try_open_dwo_file, open_dwo_file, init_dwo_file): New function.
5796 (lookup_dwo_file): New function.
5797 (lookup_dwo_comp_unit, lookup_dwo_type_unit): New functions.
5798 (free_dwo_file, free_dwo_file_cleanup): New functions.
5799 (free_dwo_file_from_slot, free_dwo_files): New functions.
5800 (dwarf2_get_pc_bounds): Handle DW_FORM_GNU_addr_index.
5801 (dwarf2_record_block_ranges): Ditto.
5802 (read_partial_die): Ditto.
5803 (process_enumeration_scope): Update to use type_offset_in_section.
5804 (read_full_die_1): New function.
5805 (read_full_die): Rewrite.
5806 (read_attribute_value): New cases DW_FORM_GNU_addr_index,
5807 DW_FORM_GNU_str_index.
5808 (read_addr_index_1, read_addr_index): New functions.
5809 (read_addr_index_from_leb128): New function.
5810 (struct dwarf2_read_addr_index_data): New type.
5811 (dwarf2_read_addr_index_reader): New function.
5812 (dwarf2_read_addr_index): New function.
5813 (read_str_index): New function.
5814 (leb128_size): New function.
5815 (dwarf_decode_line_header): Delete arg abfd, all callers updated.
5816 If processing a type unit from a DWO file, get the line section
5817 from the DWO file.
5818 (var_decode_location): Watch for DW_OP_GNU_addr_index.
5819 (dwarf2_const_value_attr): New cases DW_FORM_GNU_addr_index,
5820 DW_FORM_GNU_str_index.
5821 (lookup_die_type): Check whether section offset of type's die is
5822 known before looking it up. Remove assert. Condition can
5823 legimately happen for inter-cu type references.
5824 (dwarf_attr_name): Handle Fission attributes.
5825 (dwarf_form_name): Handle Fission forms.
5826 (dump_die_shallow): New cases DW_FORM_GNU_addr_index,
5827 DW_FORM_GNU_str_index.
5828 (follow_die_sig): Update to use type_offset_in_section.
5829 (decode_locdesc): New case DW_OP_GNU_addr_index.
5830 (skip_form_bytes): New cases DW_FORM_GNU_addr_index,
5831 DW_FORM_GNU_str_index.
5832 (cu_debug_loc_section): New function.
5833 (fill_in_loclist_baton, dwarf2_symbol_mark_computed): Call it.
5834 (dwarf2_per_objfile_free): Unmap .debug_addr section.
5835 Free DWO files if present.
5836 * xcoffread.c (dwarf2_xcoff_names): Add .debug_addr.
5837
5838 Refactor DIE reading.
5839 * dwarf2read.c (dwarf2_per_objfile): Replace members
5840 debug_info_type_hash and debug_types_type_hash with die_type_hash.
5841 (die_reader_specs): New member "die_section". Temporarily make
5842 member "buffer" non-const, pending constifying all info_ptr uses.
5843 (die_reader_func_ftype): New typedef.
5844 (dw2_get_file_names_reader): New function.
5845 (dw2_get_file_names): Rewrite.
5846 (read_and_check_type_unit_head): Rename arg type_offset to
5847 type_offset_in_tu.
5848 (create_all_type_units): Improve debugging message.
5849 Improve dummy type unit check.
5850 (init_cu_die_reader): New arg "section". All callers updated.
5851 (init_and_read_dies_worker): New function.
5852 (init_cu_and_read_dies, init_tu_and_read_dies): New functions.
5853 (init_cutu_and_read_dies_no_follow): New function.
5854 (init_cutu_and_read_dies_simple): New function.
5855 (process_psymtab_comp_unit_reader): New function.
5856 (process_psymtab_comp_unit): Delete args section,
5857 is_debug_types_section. Rewrite. All callers updated.
5858 (process_psymtab_type_unit): Renamed from process_type_comp_unit.
5859 All callers updated. Rewrite.
5860 (load_partial_comp_unit_reader): New function.
5861 (load_partial_comp_unit): Rewrite.
5862 (skip_children): New arg reader. Delete args buffer, cu.
5863 All callers updated.
5864 (skip_one_die): New arg reader. Delete args buffer, cu.
5865 All callers updated.
5866 (locate_pdi_sibling): New arg reader. Delete args buffer, abfd, cu.
5867 All callers updated.
5868 (load_full_comp_unit_reader): New function.
5869 (load_full_comp_unit): Rewrite.
5870 (read_comp_unit): Delete.
5871 (read_die_and_children_1): Delete, contents moved ...
5872 (read_die_and_children): ... here.
5873 (dwarf2_read_abbrevs): New arg abbrev_section. All callers updated.
5874 (load_partial_dies): New arg reader. Delete args abfd, buffer, cu.
5875 All callers updated.
5876 (read_partial_die): New arg reader. Delete args abfd, buffer, cu.
5877 All callers updated.
5878 (find_partial_die): Rewrite load_all_dies support.
5879 (read_attribute_value): New arg reader. Delete args abfd, cu.
5880 All callers updated.
5881 (read_attribute): New arg reader. Delete args abfd, cu.
5882 All callers updated.
5883 (load_full_type_unit): Add assert.
5884 (read_signatured_type_reader): New function.
5885 (read_signatured_type): Rewrite.
5886 (free_stack_comp_unit): Remove call to age_cached_comp_units.
5887 (free_one_cached_comp_unit): Change target_cu arg to target_per_cu.
5888 All callers updated. Set per_cu->cu = NULL after freeing it.
5889 (dwarf2_per_cu_offset_and_type): Renamed from dwarf2_offset_and_type.
5890 (per_cu_offset_and_type_hash): Renamed from offset_and_type_hash.
5891 (per_cu_offset_and_type_eq): Renamed from offset_and_type_eq.
5892 (set_die_type): Update.
5893 (get_die_type_at_offset): Update.
5894 (read_file_scope): Call prepare_one_comp_unit.
5895 (read_type_unit_scope): Ditto.
5896 (prepare_one_comp_unit): Set producer if present.
5897
5898 2012-04-28 Sergio Durigan Junior <sergiodj@redhat.com>
5899
5900 * probe.c (compile_rx_or_error): Silence ARI warning about missing
5901 gettext function on `error'.
5902
5903 2012-04-27 Doug Evans <dje@google.com>
5904
5905 * dwarf2read.c (dwarf2_read_index): Don't use index if symbol table
5906 is empty.
5907
5908 2012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
5909 Tom Tromey <tromey@redhat.com>
5910
5911 * breakpoint.c (struct breakpoint_objfile_data)
5912 <longjmp_searched>,<longjmp_probes>,<exception_searched>,
5913 <exception_probes>: New fields.
5914 (free_breakpoint_probes): New function.
5915 (create_longjmp_master_breakpoint): Prefer SystemTap probe over
5916 `_Unwind_DebugHook'.
5917 (create_exception_master_breakpoint): Likewise.
5918 (_initialize_breakpoint): Registering cleanup for SystemTap probes.
5919 * infrun.c: Including necessary header files for handling SystemTap
5920 probes.
5921 (handle_inferior_event): Handling longjmp breakpoint and exceptions
5922 via SystemTap probes.
5923 (check_exception_resume): Remove `func' argument. Handle exception
5924 unwinding breakpoint set via a SystemTap probe.
5925 (insert_exception_resume_from_probe): New function.
5926
5927 2012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
5928 Tom Tromey <tromey@redhat.com>
5929 Jan Kratochvil <jan.kratochvil@redhat.com>
5930
5931 * Makefile.in (SFILES): Add `probe' and `stap-probe'.
5932 (COMMON_OBS): Likewise.
5933 (HFILES_NO_SRCDIR): Add `probe'.
5934 * NEWS: Mention support for static and SystemTap probes.
5935 * amd64-tdep.c (amd64_init_abi): Initializing proper fields used by
5936 SystemTap probes' arguments parser.
5937 * arm-linux-tdep.c: Including headers needed to perform the parsing
5938 of SystemTap probes' arguments.
5939 (arm_stap_is_single_operand): New function.
5940 (arm_stap_parse_special_token): Likewise.
5941 (arm_linux_init_abi): Initializing proper fields used by SystemTap
5942 probes' arguments parser.
5943 * ax-gdb.c (require_rvalue): Removing static declaration.
5944 (gen_expr): Likewise.
5945 * ax-gdb.h (gen_expr): Declaring function.
5946 (require_rvalue): Likewise.
5947 * breakpoint.c: Include `gdb_regex.h' and `probe.h'.
5948 (bkpt_probe_breakpoint_ops): New variable.
5949 (momentary_breakpoint_from_master): Set the `probe' value.
5950 (add_location_to_breakpoint): Likewise.
5951 (break_command_1): Using proper breakpoint_ops according to the
5952 argument passed by the user in the command line.
5953 (bkpt_probe_insert_location): New function.
5954 (bkpt_probe_remove_location): Likewise.
5955 (bkpt_probe_create_sals_from_address): Likewise.
5956 (bkpt_probe_decode_linespec): Likewise.
5957 (tracepoint_probe_create_sals_from_address): Likewise.
5958 (tracepoint_probe_decode_linespec): Likewise.
5959 (tracepoint_probe_breakpoint_ops): New variable.
5960 (trace_command): Using proper breakpoint_ops according to the
5961 argument passed by the user in the command line.
5962 (initialize_breakpoint_ops): Initializing breakpoint_ops for
5963 static probes on breakpoints and tracepoints.
5964 * breakpoint.h (struct bp_location) <probe>: New field.
5965 * cli-utils.c (skip_spaces_const): New function.
5966 (extract_arg): Likewise.
5967 * cli-utils.h (skip_spaces_const): Likewise.
5968 (extract_arg): Likewise.
5969 * coffread.c (coff_sym_fns): Add `sym_probe_fns' value.
5970 * configure.ac: Append `stap-probe.o' to be generated when ELF
5971 support is present.
5972 * configure: Regenerate.
5973 * dbxread.c (aout_sym_fns): Add `sym_probe_fns' value.
5974 * elfread.c: Include `probe.h' and `arch-utils.h'.
5975 (probe_key): New variable.
5976 (elf_get_probes): New function.
5977 (elf_get_probe_argument_count): Likewise.
5978 (elf_evaluate_probe_argument): Likewise.
5979 (elf_compile_to_ax): Likewise.
5980 (elf_symfile_relocate_probe): Likewise.
5981 (stap_probe_key_free): Likewise.
5982 (elf_probe_fns): New variable.
5983 (elf_sym_fns): Add `sym_probe_fns' value.
5984 (elf_sym_fns_lazy_psyms): Likewise.
5985 (elf_sym_fns_gdb_index): Likewise.
5986 (_initialize_elfread): Initialize objfile cache for static
5987 probes.
5988 * gdb_vecs.h (struct probe): New forward declaration.
5989 (probe_p): New VEC declaration.
5990 * gdbarch.c: Regenerate.
5991 * gdbarch.h: Regenerate.
5992 * gdbarch.sh (stap_integer_prefix): New variable.
5993 (stap_integer_suffix): Likewise.
5994 (stap_register_prefix): Likewise.
5995 (stap_register_suffix): Likewise.
5996 (stap_register_indirection_prefix): Likewise.
5997 (stap_register_indirection_suffix): Likewise.
5998 (stap_gdb_register_prefix): Likewise.
5999 (stap_gdb_register_suffix): Likewise.
6000 (stap_is_single_operand): New function.
6001 (stap_parse_special_token): Likewise.
6002 (struct stap_parse_info): Forward declaration.
6003 * i386-tdep.c: Including headers needed to perform the parsing
6004 of SystemTap probes' arguments.
6005 (i386_stap_is_single_operand): New function.
6006 (i386_stap_parse_special_token): Likewise.
6007 (i386_elf_init_abi): Initializing proper fields used by SystemTap
6008 probes' arguments parser.
6009 * i386-tdep.h (i386_stap_is_single_operand): New function.
6010 (i386_stap_parse_special_token): Likewise.
6011 * machoread.c (macho_sym_fns): Add `sym_probe_fns' value.
6012 * mipsread.c (ecoff_sym_fns): Likewise.
6013 * objfiles.c (objfile_relocate1): Support relocation for static
6014 probes.
6015 * parse.c (prefixify_expression): Remove static declaration.
6016 (initialize_expout): Likewise.
6017 (reallocate_expout): Likewise.
6018 * parser-defs.h (initialize_expout): Declare function.
6019 (reallocate_expout): Likewise.
6020 (prefixify_expression): Likewise.
6021 * ppc-linux-tdep.c: Including headers needed to perform the parsing
6022 of SystemTap probes' arguments.
6023 (ppc_stap_is_single_operand): New function.
6024 (ppc_stap_parse_special_token): Likewise.
6025 (ppc_linux_init_abi): Initializing proper fields used by SystemTap
6026 probes' arguments parser.
6027 * probe.c: New file, for generic statically defined probe support.
6028 * probe.h: Likewise.
6029 * s390-tdep.c: Including headers needed to perform the parsing of
6030 SystemTap probes' arguments.
6031 (s390_stap_is_single_operand): New function.
6032 (s390_gdbarch_init): Initializing proper fields used by SystemTap
6033 probes' arguments parser.
6034 * somread.c (som_sym_fns): Add `sym_probe_fns' value.
6035 * stap-probe.c: New file, for SystemTap probe support.
6036 * stap-probe.h: Likewise.
6037 * symfile.h: Include `gdb_vecs.h'.
6038 (struct sym_probe_fns): New struct.
6039 (struct sym_fns) <sym_probe_fns>: New field.
6040 * symtab.c (init_sal): Initialize `probe' field.
6041 * symtab.h (struct probe): Forward declaration.
6042 (struct symtab_and_line) <probe>: New field.
6043 * tracepoint.c (start_tracing): Adjust semaphore on breakpoints
6044 locations.
6045 (stop_tracing): Likewise.
6046 * xcoffread.c (xcoff_sym_fns): Add `sym_probe_fns' value.
6047
6048 2012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
6049 Tom Tromey <tromey@redhat.com>
6050
6051 * ax-gdb.c (gen_expr): Clean up code to handle internal variables
6052 and to compile agent expressions.
6053 * infrun.c (siginfo_make_value): New argument `ignore'.
6054 (siginfo_funcs): New struct.
6055 (_initialize_infrun): New argument when calling
6056 `create_internalvar_type_lazy'.
6057 * thread.c (thread_id_make_value): New argument `ignore'.
6058 (thread_funcs): New struct.
6059 (_initialize_thread): New argument when calling
6060 `create_internalvar_type_lazy'.
6061 * tracepoint.c (sdata_make_value): New argument `ignore'.
6062 (sdata_funcs): New struct.
6063 (_initialize_tracepoint): New argument when calling
6064 `create_internalvar_type_lazy'.
6065 * value.c (make_value): New struct.
6066 (create_internalvar_type_lazy): New argument `data'.
6067 (compile_internalvar_to_ax): New function.
6068 (value_of_internalvar): Properly handling `make_value' case.
6069 (clear_internalvar): Likewise.
6070 (show_convenience): Adding `TRY_CATCH' block.
6071 * value.h (internalvar_make_value): Delete, replace by...
6072 (struct internalvar_funcs): ... this.
6073 (create_internalvar_type_lazy) <fun>: Delete argument.
6074 (create_internalvar_type_lazy) <funcs>, <data>: New arguments.
6075 (compile_internalvar_to_ax): New function.
6076 * windows-tdep.c (tlb_make_value): New argument `ignore'.
6077 (tlb_funcs): New struct.
6078 (_initialize_windows_tdep): New argument when calling
6079 `create_internalvar_type_lazy'.
6080
6081 2012-04-27 Mark Wielaard <mjw@redhat.com>
6082
6083 * dwarf2read.c (dwarf2_get_pc_bounds): Check DW_AT_high_pc form to
6084 see whether it is an address or a constant offset from DW_AT_low_pc.
6085 (dwarf2_record_block_ranges): Likewise.
6086 (read_partial_die): Likewise.
6087
6088 2012-04-26 Mark Wielaard <mjw@redhat.com>
6089
6090 * MAINTAINERS (Write After Approval): Add myself to the list.
6091
6092 2012-04-26 Maciej W. Rozycki <macro@codesourcery.com>
6093
6094 * proc-utils.h (proc_prettyprint_signalset): New prototype.
6095 (proc_prettyprint_signal): Likewise.
6096 (proc_prettyprint_faultset): Likewise.
6097 (proc_prettyprint_fault): Likewise.
6098 (proc_prettyprint_actionset): Likewise.
6099 (proc_prettyprint_flags): Move to new proc-flags.c section.
6100 (proc_prettyfprint_flags): New prototype.
6101 * procfs.c (proc_nsysarg, proc_sysargs): Add prototypes.
6102 (proc_syscall, proc_cursig): Likewise.
6103 (proc_set_kill_on_last_close): Likewise.
6104 (proc_unset_kill_on_last_close): Likewise.
6105 (proc_set_watchpoint): Make static.
6106 (proc_delete_dead_threads): Likewise.
6107 (procfs_set_watchpoint): Likewise.
6108 (_initialize_procfs): Add prototype.
6109 * proc-events.c: Include proc-utils.h.
6110 (init_syscall_table): Make static.
6111 * proc-api.c (_initialize_proc_api): Add prototype.
6112 * proc-flags.c: Include proc-utils.h.
6113
6114 2012-04-26 Maciej W. Rozycki <macro@codesourcery.com>
6115
6116 * configure.ac: Add AC_ARG_PROGRAM.
6117 * configure: Regenerate.
6118
6119 2012-04-26 Jan Kratochvil <jan.kratochvil@redhat.com>
6120
6121 Fix DW_AT_lower_bound defaults for DWARF-4+.
6122 * dwarf2read.c (read_subrange_type): Remove initialization of low and
6123 high. New variable low_default_is_valid. Implement DWARF-4+
6124 DW_AT_lower_bound defaults. Print complaint for DW_AT_lower_bound with
6125 no default by the DWARF standard.
6126
6127 2012-04-26 Maciej W. Rozycki <macro@mips.com>
6128 Maciej W. Rozycki <macro@codesourcery.com>
6129
6130 * infrun.c (handle_inferior_event): Move the check for return
6131 trampolines ahead of the check for function trampolines.
6132 * mips-tdep.h (MIPS_S2_REGNUM, MIPS_GP_REGNUM): New macros.
6133 * mips-tdep.c (mips_str_mips16_call_stub): New variable.
6134 (mips_str_mips16_ret_stub): Likewise.
6135 (mips_str_call_fp_stub): Likewise.
6136 (mips_str_call_stub): Likewise.
6137 (mips_str_fn_stub): Likewise.
6138 (mips_str_pic): Likewise.
6139 (mips_in_frame_stub): New function.
6140 (mips_unwind_pc): Return the return address rather than the PC
6141 if the PC of an intermediate frame is inside a call thunk.
6142 (mips_is_stub_suffix): New function.
6143 (mips_is_stub_mode): Likewise.
6144 (mips_get_mips16_fn_stub_pc): Likewise.
6145 (mips_skip_mips16_trampoline_code): Update to handle all the
6146 currently generated stub types. Don't recurse into __fn_stub
6147 thunks. Remove heuristics to handle stubs beyond etext/_etext.
6148 Use cooked register accesses.
6149 (mips_in_return_stub): Reintroduce function.
6150 (mips_skip_trampoline_code): Traverse trampolines recursively.
6151 (mips_gdbarch_init): Handle MIPS16 return trampolines.
6152
6153 2012-04-26 Joel Brobecker <brobecker@adacore.com>
6154
6155 GDB 7.4.1 released.
6156
6157 2012-04-26 Jonathan Larmour <jifl@eCosCentric.com>
6158
6159 * arm-tdep.h (VFP_REGISTER_SIZE): Define.
6160 * features/arm-with-m-vfp-d16.xml: New file. Describes
6161 Cortex-M with VFPv4-sp-d16 FPU register layout.
6162 * features/Makefile (WHICH): Add arm-with-m-vfp-d16.
6163 * features/arm-with-m-vfp-d16.c: New. Generated from above.
6164 * arm-tdep.c: Include arm-with-m-vfp-d16.c.
6165 (arm-register_g_packet_guesses): Add vfp-d16 guess.
6166 (_initialise_arm_tdep): Initialize arm-with-m-vfp-d16 tdesc.
6167
6168 2012-04-25 Doug Evans <dje@google.com>
6169
6170 * cli/cli-decode.c (print_doc_line): Use stream instead of
6171 current_uiout.
6172
6173 2012-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
6174
6175 * features/arm-with-iwmmxt.c: Regenerate.
6176 * features/arm-with-m-fpa-layout.c: Likewise.
6177 * features/arm-with-m.c: Likewise.
6178 * features/arm-with-neon.c: Likewise.
6179 * features/arm-with-vfpv2.c: Likewise.
6180 * features/arm-with-vfpv3.c: Likewise.
6181 * features/mips-dsp-linux.c: Likewise.
6182 * features/mips-linux.c: Likewise.
6183 * features/mips64-dsp-linux.c: Likewise.
6184 * features/mips64-linux.c: Likewise.
6185 * features/s390-linux32.c: Likewise.
6186 * features/s390-linux32v1.c: Likewise.
6187 * features/s390-linux32v2.c: Likewise.
6188 * features/s390-linux64.c: Likewise.
6189 * features/s390-linux64v1.c: Likewise.
6190 * features/s390-linux64v2.c: Likewise.
6191 * features/s390x-linux64.c: Likewise.
6192 * features/s390x-linux64v1.c: Likewise.
6193 * features/s390x-linux64v2.c: Likewise.
6194 * features/tic6x-c62x-linux.c: Likewise.
6195 * features/tic6x-c62x.c: Likewise.
6196 * features/tic6x-c64x-linux.c: Likewise.
6197 * features/tic6x-c64x.c: Likewise.
6198 * features/tic6x-c64xp-linux.c: Likewise.
6199 * features/tic6x-c64xp.c: Likewise.
6200 * target-descriptions.c: Only generate `field_type' and `type'
6201 variables when needed.
6202
6203 2012-04-25 Fredrik Hederstierna <fredrikh.hederstierna@securitas-direct.com>
6204
6205 * cli/cli-cmds.c (cd_command): Use memmove instead of strcpy.
6206
6207 2012-04-25 Doug Evans <dje@google.com>
6208
6209 Initial pass at Go language support.
6210 * NEWS: Mention Go.
6211 * Makefile.in (SFILES): Add go-exp.y, go-lang.c, go-typeprint.c,
6212 go-valprint.c.
6213 (COMMON_OBS): Add go-lang.o, go-val.print.o, go-typeprint.o.
6214 (YYFILES): Add go-exp.c.
6215 (YYOBJ): Add go-exp.o.
6216 (local-maintainer-clean): Delete go-exp.c.
6217 * defs.h (enum language): Add language_go.
6218 * dwarf2read.c: #include "go-lang.h".
6219 (fixup_go_packaging): New function.
6220 (process_full_comp_unit): Call it when processing Go CUs.
6221 (dwarf2_physname): Add Go support.
6222 (read_file_scope): Handle missing language spec for GNU Go.
6223 (set_cu_language): Handle DW_LANG_Go.
6224 * go-exp.y: New file.
6225 * go-lang.h: New file.
6226 * go-lang.c: New file.
6227 * go-typeprint.c: New file.
6228 * go-valprint.c: New file.
6229 * symtab.c: #include "go-lang.h".
6230 (symbol_set_language): Handle language_go.
6231 (symbol_find_demangled_name, symbol_set_names): Ditto.
6232 (symbol_natural_name, demangle_for_lookup, find_main_name): Ditto.
6233
6234 2012-04-24 Jim Meyering <meyering@redhat.com>
6235
6236 avoid a few strncpy-induced buffer overruns
6237 * procfs.c (procfs_make_note_section): Be sure to NUL-terminate
6238 fname and psargs before trying to concatenate.
6239 * tui/tui-stack.c (tui_get_function_from_frame): NUL-terminate
6240 "name" before applying strchr.
6241
6242 2012-04-25 Siva Chandra Reddy <sivachandra@google.com>
6243
6244 * CONTRIBUTE: Use unified diff instead of context diff when
6245 generating patches.
6246
6247 2012-04-24 Maciej W. Rozycki <macro@codesourcery.com>
6248
6249 * mips-tdep.c (mips_about_to_return): Remove dead MIPS16 support
6250 code. Handle JR.HB correctly.
6251
6252 2012-04-24 Maciej W. Rozycki <macro@codesourcery.com>
6253
6254 * mips-tdep.c
6255 (is_mips16_addr, unmake_mips16_addr, make_mips16_addr): Group
6256 with the other MIPS16 helpers.
6257
6258 2012-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
6259
6260 * observer.sh: Conditionally declare `args', thus cleaning up
6261 unused instances of this variable.
6262
6263 2012-04-24 Yao Qi <yao@codesourcery.com>
6264
6265 Revert this patch to allow breakpoint always-inserted
6266 in record target.
6267 2011-12-05 Pedro Alves <pedro@codesourcery.com>
6268 * breakpoint.c: Include record.h.
6269 (breakpoints_always_inserted_mode): Return false when the record
6270 target is in use.
6271
6272 * breakpoint.c (iterate_over_bp_locations): New.
6273 * breakpoint.h: Declare.
6274 New typedef walk_bp_location_callback.
6275 * record.c (record_open): Call record_init_record_breakpoints.
6276 (record_sync_record_breakpoints): New.
6277 (record_init_record_breakpoints): New.
6278 * NEWS: Mention supporting breakpoint always-inserted mode in
6279 record target.
6280
6281 2012-04-24 Marc Khouzam <marc.khouzam@ericsson.com>
6282
6283 * mi/mi-main.c (mi_cmd_execute): Choose a live thread not just
6284 any thread.
6285
6286 2012-04-24 Yao Qi <yao@codesourcery.com>
6287
6288 * breakpoint.c (ep_is_catchpoint): Renamed to ...
6289 (is_catchpoint): ... it.
6290 (print_one_breakpoint_location): Caller update.
6291 * breakpoint.h: Update declaration.
6292
6293 2012-04-23 David S. Miller <davem@davemloft.net>
6294
6295 * configure.tgt (sparc-*-linux*): Set build_gdbserver to yes.
6296
6297 2012-04-23 Tom Tromey <tromey@redhat.com>
6298
6299 * buildsym.c (add_free_pendings): Remove.
6300 * buildsym.h (add_free_pendings): Remove.
6301
6302 2012-04-23 Doug Evans <dje@google.com>
6303
6304 * dwarf2read.c (partial_die_full_name): Record DW_FORM_ref_addr in
6305 attr.u.unsnd instead of attr.u.addr.
6306 (read_attribute_value) Ditto for cases DW_FORM_ref_addr,
6307 DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4, DW_FORM_reg8,
6308 DW_FORM_ref_udata.
6309 (dump_die_shallow): Update cases DW_FORM_ref_addr,
6310 DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4. Add cases DW_FORM_ref8,
6311 DW_FORM_ref_udata.
6312 (dwarf2_get_ref_die_offset): Use DW_UNSND for reference attributes.
6313
6314 2012-04-23 Maciej W. Rozycki <macro@codesourcery.com>
6315
6316 * mips-tdep.c (mips_n32n64_return_value): Fix coding style.
6317 (mips_o32_return_value): Likewise.
6318 (mips_o64_return_value): Likewise.
6319
6320 2012-04-21 Paul Hilfinger <hilfinger@adacore.com>
6321
6322 * ada-lang.c (ada_evaluate_subexp): Add cases for
6323 TYPE_CODE_INTERNAL_FUNCTION and for TYPE_GNU_IFUNC, following
6324 their treatment in eval.c.
6325
6326 2012-04-21 David S. Miller <davem@davemloft.net>
6327
6328 * sparc-tdep.c (X_DISP10): Define.
6329 (sparc_analyze_control_transfer): Handle compare-and-branch.
6330
6331 2012-04-21 Jonathan Larmour <jifl@eCosCentric.com>
6332
6333 * features/Makefile (WHICH): Add arm-with-m and arm-with-m-fpa-layout.
6334 * arm-tdep.c (arm_register_g_packet_guesses): Fix comment.
6335
6336 2012-04-20 Nigel Stephens <nigel@mips.com>
6337 Maciej W. Rozycki <macro@codesourcery.com>
6338
6339 * mips-tdep.c (mips_float_register_p): New function.
6340 (mips_convert_register_float_case_p): Use mips_float_register_p.
6341 (mips_register_type): Likewise.
6342 (mips_print_register): Likewise.
6343 (print_gp_register_row): Likewise.
6344 (mips_print_registers_info): Likewise.
6345
6346 2012-04-20 Shun-Yen Lu <dark.asparagus@gmail.com>
6347
6348 * mips-tdep.c (mips_elf_make_msymbol_special): Fix identification
6349 of mips16 symbols.
6350
6351 2012-04-20 Andrew Pinski <apinski@cavium.com>
6352
6353 * MAINTAINERS (Write After Approval): Add myself to the list.
6354
6355 2012-04-20 Sergio Durigan Junior <sergiodj@redhat.com>
6356
6357 * MAINTAINERS: Update my e-mail address.
6358
6359 2012-04-20 Pedro Alves <palves@redhat.com>
6360
6361 * acx_configure_dir.m4 (ACX_CONFIGURE_DIR): Handle absolute
6362 $srcdir.
6363 * configure: Regenerate.
6364
6365 2012-04-20 Sergio Durigan Junior <sergiodj@redhat.com>
6366
6367 * cp-support.h: Include `gdb_vecs.h'. Delete `const_char_ptr' VEC
6368 declaration.
6369 * gdb_vecs.h: Declare `const_char_ptr' VEC.
6370
6371 2012-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
6372
6373 Fix compilation compatibility with python-2.4
6374 * python/py-type.c (convert_field): Cast ADDRSTRING for
6375 PyObject_SetAttrString as non-const. New comment.
6376
6377 2012-04-19 Tom Tromey <tromey@redhat.com>
6378
6379 * top.c (quit_target): Use all_cleanups.
6380 * main.c (captured_command_loop): Use all_cleanups.
6381 * exceptions.c (throw_exception): Use all_cleanups.
6382
6383 2012-04-19 Pedro Alves <palves@redhat.com>
6384
6385 * Makefile.in (GNULIB_BUILDDIR): New.
6386 (LIBGNU, INCGNU, GNULIB_H): Adjust.
6387 (SUBDIRS): Add $(GNULIB_BUILDDIR).
6388 (CLEANDIRS). Remove gnulib/import.
6389 (REQUIRED_SUBDIRS): Replace gnulib/import with $(GNULIB_BUILDDIR).
6390 (all-lib): Ditto.
6391 (distclean): Remove the $(GNULIB_BUILDDIR) directory.
6392 (gnulib/import/Makefile): Replace gnulib/import with
6393 $(GNULIB_BUILDDIR). Set CONFIG_FILES to just Makefile.
6394 (ACLOCAL_AMFLAGS): Remove '-I gnulib/import/m4'.
6395 (aclocal_m4_deps): Remove the gnulib dependencies. Add
6396 acx_configure_dir.m4.
6397 * acinclude.m4: Include acx_configure_dir.m4.
6398 * acx_configure_dir.m4: New file.
6399 * aclocal.m4: Regenerate.
6400 * configure.ac: Remove gl_EARLY, gl_INIT and AM_INIT_AUTOMAKE
6401 calls. Configure gnulib using ACX_CONFIGURE_DIR.
6402 (GNULIB): New variable.
6403 (GNULIB_STDINT_H): Adjust.
6404 (AC_OUTPUT): Don't output gnulib/Makefile.
6405 * gdb/defs.h: Include build-gnulib/config.h.
6406 * aclocal.m4: Regenerate.
6407 * config.in: Regenerate.
6408 * configure: Regenerate.
6409
6410 * gnulib/Makefile.in: New file.
6411 * gnulib/configure.ac: New file.
6412 * gnulib/aclocal.m4: New file.
6413 * gnulib/config.in: New file.
6414 * gnulib/configure: New file.
6415 * gnulib/: Re-run gnulib-tool to adjust.
6416
6417 2012-04-19 Doug Evans <dje@google.com>
6418
6419 * cleanups.h (struct cleanup): Move to cleanups.c.
6420 (make_cleanup_dtor_ftype): New typedef.
6421 (make_cleanup_dtor): Use it.
6422 (ALL_CLEANUPS): Replace with ...
6423 (all_cleanups): ... this. Declare. All uses updated.
6424 * cleanups.c: #include "gdb_assert.h".
6425 (sentinel_cleanup): New static global.
6426 (SENTINEL_CLEANUP): Define.
6427 (cleanup_chain, final_cleanup_chain): Initialize to SENTINEL_CLEANUP.
6428 (make_my_cleanup2): Assert result is non-NULL.
6429 (all_cleanups): New function.
6430 (save_my_cleanups): Initialize new chain to SENTINEL_CLEANUP instead
6431 of NULL.
6432
6433 2012-04-19 Pedro Alves <palves@redhat.com>
6434
6435 * Makefile.in (HFILES_NO_SRCDIR): Remove gnulib/wchar.in.h.
6436 Adjust paths to gnulib imported files.
6437
6438 2012-04-19 Pedro Alves <palves@redhat.com>
6439
6440 * gnulib/: Move whole directory ...
6441 * gnulib/import/: ... here, and re-rerun gnulib-tool to adjust.
6442 * Makefile.in (LIBGNU, INCGNU, GNULIB_H, CLEANDIRS)
6443 (REQUIRED_SUBDIRS, all-lib, gnulib/Makefile, ACLOCAL_AMFLAGS)
6444 (aclocal_m4_deps): Adjust.
6445 * aclocal.m4: Regenerate.
6446 * configure: Regenerate.
6447 * configure.ac: Adjust AC_OUTPUT output.
6448
6449 2012-04-19 Yao Qi <yao@codesourcery.com>
6450
6451 * Makefile.in (SFILES): Add common/vec.c and remove vec.c.
6452 (vec.o): New rule.
6453 * vec.c: Move it ...
6454 * common/vec.c: ... here.
6455 * vec.h: Move it ...
6456 * common/vec.h: ... here.
6457
6458 2012-04-19 Yao Qi <yao@codesourcery.com>
6459
6460 * gdb-code-style.el: New.
6461
6462 2012-04-18 Pedro Alves <palves@redhat.com>
6463
6464 Update gnulib from latest git.
6465 (639ea5ae15e39fe48d43e04864b2997301e4b969)
6466
6467 * gnulib/Makefile.am: Update.
6468 * gnulib/dummy.c: Update.
6469 * gnulib/extra/arg-nonnull.h: Update.
6470 * gnulib/extra/c++defs.h: Update.
6471 * gnulib/extra/update-copyright: Update.
6472 * gnulib/extra/warn-on-use.h: Update.
6473 * gnulib/inttypes.in.h: Update.
6474 * gnulib/m4/00gnulib.m4: Update.
6475 * gnulib/m4/extensions.m4: Update.
6476 * gnulib/m4/gnulib-cache.m4: Update.
6477 * gnulib/m4/gnulib-common.m4: Update.
6478 * gnulib/m4/gnulib-comp.m4: Update.
6479 * gnulib/m4/gnulib-tool.m4: Update.
6480 * gnulib/m4/include_next.m4: Update.
6481 * gnulib/m4/inttypes-pri.m4: Update.
6482 * gnulib/m4/inttypes.m4: Update.
6483 * gnulib/m4/longlong.m4: Update.
6484 * gnulib/m4/memchr.m4: Update.
6485 * gnulib/m4/memmem.m4: Update.
6486 * gnulib/m4/mmap-anon.m4: Update.
6487 * gnulib/m4/multiarch.m4: Update.
6488 * gnulib/m4/onceonly.m4: Update.
6489 * gnulib/m4/stddef_h.m4: Update.
6490 * gnulib/m4/stdint.m4: Update.
6491 * gnulib/m4/string_h.m4: Update.
6492 * gnulib/m4/warn-on-use.m4: Update.
6493 * gnulib/m4/wchar_h.m4: Update.
6494 * gnulib/m4/wchar_t.m4: Update.
6495 * gnulib/m4/wint_t.m4: Update.
6496 * gnulib/memchr.c: Update.
6497 * gnulib/memmem.c: Update.
6498 * gnulib/stddef.in.h: Update.
6499 * gnulib/stdint.in.h: Update.
6500 * gnulib/str-two-way.h: Update.
6501 * gnulib/string.in.h: Update.
6502 * gnulib/wchar.in.h: Update.
6503
6504 * gnulib/extra/arg-nonnull.h: Delete.
6505 * gnulib/extra/c++defs.h: Delete.
6506 * gnulib/extra/warn-on-use.h: Delete.
6507 * gnulib/m4/wchar_h.m4: Delete.
6508 * gnulib/m4/wint_t.m4: Delete.
6509 * gnulib/wchar.in.h: Delete.
6510
6511 * gnulib/extra/snippets/arg-nonnull.h: New.
6512 * gnulib/extra/snippets/c++defs.h: New.
6513 * gnulib/extra/snippets/warn-on-use.h: New.
6514
6515 * aclocal.m4: Regenerate.
6516 * config.in: Regenerate.
6517 * configure: Regenerate.
6518 * gnulib/Makefile.in: Regenerate.
6519
6520 2012-04-18 Pedro Alves <palves@redhat.com>
6521
6522 Reimport the update-copyright module from gnulib
6523 (250b80067c1e1d8faa0c42fb572f721975b929c5).
6524
6525 * configure: Regenerate.
6526 * gnulib/Makefile.am: Update.
6527 * gnulib/Makefile.in: Regenerate.
6528 * gnulib/extra/update-copyright: Update.
6529 * gnulib/m4/gnulib-cache.m4: Update.
6530 * gnulib/m4/gnulib-comp.m4: Update.
6531
6532 2012-04-18 Tristan Gingold <gingold@adacore.com>
6533
6534 * configure.ac (aix): Put -lpthread into libs.
6535 * configure: Regenerate.
6536
6537 2012-04-18 Tom Tromey <tromey@redhat.com>
6538
6539 * linespec.c (convert_linespec_to_sals): Don't use
6540 SYMBOL_OBJ_SECTION.
6541 (compare_msymbols): Arguments are minsym_and_objfile, not
6542 minimal_symbol*. Don't use SYMBOL_OBJ_SECTION.
6543
6544 2012-04-18 Pedro Alves <palves@redhat.com>
6545
6546 Revert gnulib/ part of:
6547 2011-01-01 Joel Brobecker <brobecker@adacore.com>
6548 Copyright year update in most files (performed by copyright.sh).
6549
6550 2012-04-18 Jan Kratochvil <jan.kratochvil@redhat.com>
6551
6552 Fix 64-bit constants on 32-bit hosts.
6553 * dwarf2read.c (read_unsigned_leb128): Change declaration return type
6554 from unsigned long to ULONGEST.
6555 (read_signed_leb128): Change declaration return type from long to
6556 LONGEST.
6557 (dwarf2_const_value_attr): Change declaration parameter value from long
6558 to LONGEST.
6559 (dwarf2_compute_name): Change variable value from long to LONGEST.
6560 (read_unsigned_leb128): Change return type, variable result and some
6561 casts from unsigned long to ULONGEST.
6562 (read_signed_leb128): Change return type, variable result and some
6563 casts from long to LONGEST.
6564 (dwarf2_const_value_data, dwarf2_const_value_attr): Change parameter
6565 value from long to LONGEST.
6566 (dwarf2_const_value): Change variable value from long to LONGEST.
6567 * symmisc.c (print_symbol): Change SYMBOL_VALUE format strings to use
6568 plongest and hex_string.
6569 * symtab.h (struct general_symbol_info): Change ivalue from long to
6570 LONGEST, remove the comment.
6571 * tracepoint.c (validate_actionline, collect_symbol, scope_info):
6572 Change SYMBOL_VALUE format strings to use plongest and hex_string.
6573
6574 2012-04-18 Siddhesh Poyarekar <siddhesh@redhat.com>
6575
6576 PR symtab/7259:
6577 * ada-exp.y (convert_char_literal): Use TYPE_FIELD_ENUMVAL.
6578 * ada-lang.c (ada_discrete_type_high_bound)
6579 (ada_discrete_type_low_bound): Fix function comment. Use
6580 TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
6581 (ada_identical_enum_types_p): Use TYPE_FIELD_ENUMVAL.
6582 (pos_atr, value_val_atr): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
6583 * ada-typeprint.c (print_enum_type): Change variable lastval to LONGEST.
6584 Use TYPE_FIELD_ENUMVAL.
6585 * ada-valprint.c (print_optional_low_bound, ada_print_scalar)
6586 (ada_val_print_1): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
6587 * c-typeprint.c (c_type_print_base): Move variable lastval to inner
6588 block, change it to LONGEST. Use TYPE_FIELD_ENUMVAL for
6589 TYPE_CODE_ENUM.
6590 * coffread.c (coff_read_enum_type): Use SET_FIELD_ENUMVAL.
6591 * dwarf2read.c (process_enumeration_scope): Likewise.
6592 * gdb-gdb.py (TypeFlagsPrinter): Use field.enumval instead of
6593 field.bitpos.
6594 (class StructMainTypePrettyPrinter): Support also
6595 FIELD_LOC_KIND_ENUMVAL.
6596 * gdbtypes.c (get_discrete_bounds): Use TYPE_FIELD_ENUMVAL for
6597 TYPE_CODE_ENUM.
6598 (recursive_dump_type): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
6599 (copy_type_recursive): Support also FIELD_LOC_KIND_ENUMVAL.
6600 * gdbtypes.h (enum field_loc_kind): New FIELD_LOC_KIND_ENUMVAL.
6601 (struct main_type.flds_bnds.fields.loc): Adjust bitpos comment. New
6602 field enumval.
6603 (struct main_type.flds_bnds.bields): Adjust loc_kind and bitsize to
6604 accommodate enumval.
6605 (struct call_site): Adjust loc_kind to accommodate enumval.
6606 (FIELD_ENUMVAL, FIELD_ENUMVAL_LVAL, SET_FIELD_ENUMVAL)
6607 (TYPE_FIELD_ENUMVAL): New macros.
6608 * m2-typeprint.c (m2_enum): Use TYPE_FIELD_ENUMVAL.
6609 * mdebugread.c (parse_symbol): Use TYPE_FIELD_ENUMVAL for
6610 TYPE_CODE_ENUM.
6611 * p-typeprint.c (pascal_type_print_base): Likewise.
6612 * python/lib/gdb/printing.py (class FlagEnumerationPrinter): Use
6613 enumval.
6614 * python/lib/gdb/types.py (make_enum_dict): Likewise.
6615 * python/py-type.c (convert_field): New variable addrstring. Use
6616 TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
6617 (check_types_equal): Support also FIELD_LOC_KIND_ENUMVAL.
6618 * stabsread.c (read_enum_type): Use SET_FIELD_ENUMVAL.
6619 * typepint.c (print_type_scalar): Use TYPE_FIELD_ENUMVAL for
6620 TYPE_CODE_ENUM.
6621 * valprint.c (generic_val_print): Likewise.
6622
6623 2012-04-17 Doug Evans <dje@google.com>
6624
6625 * dwarf2read.c (lookup_signatured_type): Return NULL instead of 0.
6626
6627 * dwarf2read.c: Whitespace fixes.
6628 (lookup_signatured_type): Tweak comment.
6629 (get_die_type_at_offset): Fix comment.
6630
6631 2012-04-17 Joel Brobecker <brobecker@adacore.com>
6632
6633 * xcoffread.c (xcoff_secnum_to_sections): New function.
6634 (secnum_to_section, secnum_to_bfd_section): Reimplement
6635 using xcoff_secnum_to_sections. Rename "secnum" parameter
6636 into "n_scnum".
6637 (RECORD_MINIMAL_SYMBOL): Delete.
6638 (record_minimal_symbol): New function.
6639 (scan_xcoff_symtab): Replace uses of RECORD_MINIMAL_SYMBOL
6640 by call to record_minimal_symbol and set misc_func_recorded
6641 to 1. Set last_csect_sec to the XCOFF section index instead
6642 of GDB's section_offset index. Update calls to
6643 prim_record_minimal_symbol_and_info to pass the BFD section
6644 as well.
6645
6646 2012-04-17 Joel Brobecker <brobecker@adacore.com>
6647
6648 * xcoffread.c (read_xcoff_symtab): Delete variables
6649 last_csect_val and last_csect_sec and associated code.
6650
6651 2012-04-17 Doug Evans <dje@google.com>
6652
6653 * cleanups.c (make_my_cleanup,make_my_cleanup2): Make static.
6654 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
6655 * cleanups.h (make_my_cleanup,make_my_cleanup2): Delete
6656 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Delete.
6657
6658 * cleanups.h: New file.
6659 * cleanups.c: New file.
6660 * Makefile.in (SFILES): Add cleanups.c.
6661 (HFILES_NO_SRCDIR): Add cleanups.h.
6662 (COMMON_OBS): Add cleanups.o.
6663 * defs.h (struct cleanup): Moved to cleanups.h.
6664 (do_cleanups,do_final_cleanups): Ditto.
6665 (discard_cleanups,discard_final_cleanups): Ditto
6666 (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
6667 (save_cleanups,save_final_cleanups): Ditto.
6668 (restore_cleanups,restore_final_cleanups): Ditto.
6669 (null_cleanup): Ditto.
6670 (make_my_cleanup,make_my_cleanup2): Ditto.
6671 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
6672 * utils.c (cleanup_chain,final_cleanup_chain): Moved to cleanups.c.
6673 (do_cleanups,do_final_cleanups): Ditto.
6674 (discard_cleanups,discard_final_cleanups): Ditto
6675 (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
6676 (save_cleanups,save_final_cleanups): Ditto.
6677 (restore_cleanups,restore_final_cleanups): Ditto.
6678 (null_cleanup): Ditto.
6679 (make_my_cleanup,make_my_cleanup2): Ditto.
6680 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
6681
6682 * utils.c (make_cleanup_freeargv): Use make_cleanup instead of
6683 make_my_cleanup.
6684 (make_cleanup_dyn_string_delete): Ditto.
6685 (make_cleanup_ui_file_delete): Ditto.
6686 (make_cleanup_ui_out_redirect_pop): Ditto.
6687 (make_cleanup_free_section_addr_info): Ditto.
6688 (make_cleanup_restore_integer): Ditto.
6689 (make_cleanup_unpush_target): Ditto.
6690 (make_cleanup_value_free_to_mark): Ditto.
6691 (make_cleanup_value_free): Ditto.
6692 (make_cleanup_free_so): Ditto.
6693
6694 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6695
6696 New option "set debug auto-load".
6697 * NEWS: New commands "set debug auto-load" and "show debug auto-load".
6698 * auto-load.c (debug_auto_load, show_debug_auto_load: New.
6699 (auto_load_safe_path_vec_update)
6700 (filename_is_in_auto_load_safe_path_vec): Call fprintf_unfiltered
6701 if DEBUG_AUTO_LOAD.
6702 (file_is_auto_load_safe): New parameters debug_fmt and ....
6703 Call fprintf_unfiltered if DEBUG_AUTO_LOAD.
6704 (source_gdb_script_for_objfile): Extend the file_is_auto_load_safe
6705 caller by explanatory string.
6706 (_initialize_auto_load): Register "set debug auto-load".
6707 * auto-load.h (file_is_auto_load_safe): New parameters debug_fmt
6708 and ....
6709 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
6710 (try_thread_db_load_from_dir): Extend the file_is_auto_load_safe caller
6711 by explanatory string.
6712 * main.c (captured_main): Likewise.
6713 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile)
6714 (source_section_scripts): Likewise.
6715
6716 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6717
6718 New option "set auto-load safe-path".
6719 * NEWS: New commands "set auto-load safe-path"
6720 and "show auto-load safe-path".
6721 * auto-load.c: Include gdb_vecs.h, readline/tilde.h and completer.h.
6722 (auto_load_safe_path, auto_load_safe_path_vec)
6723 (auto_load_safe_path_vec_update, set_auto_load_safe_path)
6724 (show_auto_load_safe_path, add_auto_load_safe_path, filename_is_in_dir)
6725 (filename_is_in_auto_load_safe_path_vec, file_is_auto_load_safe): New.
6726 (source_gdb_script_for_objfile): New variable is_safe. Call
6727 file_is_auto_load_safe. Return if it is not.
6728 (struct loaded_script): New field loaded.
6729 (maybe_add_script): Add parameter loaded. Initialize SLOT with it.
6730 (print_script): Use LOADED indicator instead of FULL_PATH. Change
6731 output "Missing" to "No".
6732 (_initialize_auto_load): New variable cmd. Initialize
6733 auto_load_safe_path. Register "set auto-load safe-path",
6734 "show auto-load safe-path" and "add-auto-load-safe-path".
6735 * auto-load.h (maybe_add_script): Add parameter loaded.
6736 (file_is_auto_load_safe): New declaration.
6737 * config.in: Regenerate.
6738 * configure: Regenerate.
6739 * configure.ac: New parameters --with-auto-load-safe-path
6740 and --without-auto-load-safe-path.
6741 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
6742 (try_thread_db_load_from_dir): Check file_is_auto_load_safe first.
6743 * main.c (captured_main): Check file_is_auto_load_safe for
6744 LOCAL_GDBINIT.
6745 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile): New
6746 variable is_safe. Call file_is_auto_load_safe. Return if it is not.
6747 (source_section_scripts): Call file_is_auto_load_safe. Return if it is
6748 not.
6749
6750 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6751
6752 auto-load: Implementation.
6753 * NEWS: New descriptions for "info auto-load",
6754 "info auto-load gdb-scripts", "info auto-load python-scripts",
6755 "info auto-load local-gdbinit" and "info auto-load libthread-db".
6756 Deprecate "info auto-load-scripts", "set auto-load-scripts on|off"
6757 and "show auto-load-scripts". New description for "set auto-load",
6758 "show auto-load", "set auto-load gdb-scripts",
6759 "show auto-load gdb-scripts", "set auto-load python-scripts",
6760 "show auto-load python-scripts", "set auto-load local-gdbinit",
6761 "show auto-load local-gdbinit", "set auto-load libthread-db" and
6762 "show auto-load libthread-db".
6763 * auto-load.c: Remove include python/python-internal.h. Add includes
6764 exceptions.h, cli/cli-script.h, gdbcmd.h, cli/cli-decode.h and
6765 cli/cli-setshow.h.
6766 (GDB_AUTO_FILE_NAME, source_gdb_script_for_objfile)
6767 (auto_load_gdb_scripts, show_auto_load_gdb_scripts): New.
6768 (gdbpy_global_auto_load): Rename to ...
6769 (global_auto_load): ... here.
6770 (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
6771 (auto_load_local_gdbinit_loaded, show_auto_load_local_gdbinit)
6772 (script_language_gdb, source_gdb_script_for_objfile): New.
6773 (struct loaded_script): New field language.
6774 (hash_loaded_script_entry, eq_loaded_script_entry): Calculate also
6775 LANGUAGE.
6776 (maybe_add_script): Add parameter language. Drop redundant
6777 entry.full_path initialization. Initialize entry.language and
6778 (*slot)->language.
6779 (auto_load_objfile_script): Change parameter suffix to language.
6780 Remove the call of maybe_add_script.
6781 Call language->source_script_for_objfile.
6782 (load_auto_scripts_for_objfile, struct collect_matching_scripts_data):
6783 New.
6784 (collect_matching_scripts): Adjust it for
6785 struct collect_matching_scripts_data.
6786 (auto_load_info_scripts_pattern_nl): New variable.
6787 (info_auto_load_scripts): Rename to ...
6788 (auto_load_info_scripts): ... here, add parameter language. Adjust it
6789 for struct collect_matching_scripts_data.
6790 (info_auto_load_gdb_scripts, info_auto_load_local_gdbinit)
6791 (set_auto_load_cmd, auto_load_set_cmdlist_get, show_auto_load_cmd)
6792 (auto_load_show_cmdlist_get, info_auto_load_cmd)
6793 (auto_load_info_cmdlist_get): New.
6794 (_initialize_auto_load): Move add_info of "auto-load-scripts" to
6795 python/py-auto-load.c. New installment for "set auto-load gdb-scripts",
6796 "info auto-load gdb-scripts", "set auto-load local-gdbinit" and
6797 "info auto-load local-gdbinit".
6798 * auto-load.h (struct script_language): New.
6799 (gdbpy_global_auto_load): Rename to ...
6800 (global_auto_load): ... here.
6801 (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
6802 (auto_load_local_gdbinit_loaded): New declarations.
6803 (maybe_add_script): New parameter language.
6804 (auto_load_objfile_script): Change parameter suffix to language.
6805 (load_auto_scripts_for_objfile, auto_load_info_scripts_pattern_nl)
6806 (auto_load_info_scripts, auto_load_set_cmdlist_get)
6807 (auto_load_show_cmdlist_get, auto_load_info_cmdlist_get): New
6808 declarations.
6809 * linux-thread-db.c: Include auto-load.h and ctype.h.
6810 (auto_load_thread_db, show_auto_load_thread_db): New.
6811 (struct thread_db_info): New field filename.
6812 (delete_thread_db_info): Call xfree for FILENAME.
6813 (try_thread_db_load): Initialize FILENAME.
6814 (try_thread_db_load_from_pdir, try_thread_db_load_from_dir): Return
6815 if !AUTO_LOAD_THREAD_DB.
6816 (info_auto_load_libthread_db_compare, info_auto_load_libthread_db): New.
6817 (_initialize_thread_db): Install auto_load_thread_db
6818 as "set auto-load libthread-db" and install info_auto_load_libthread_db
6819 as "info auto-load libthread-db".
6820 * main.c (captured_main): Rename gdbpy_global_auto_load to
6821 global_auto_load. Initialize AUTO_LOAD_LOCAL_GDBINIT_PATHNAME and
6822 AUTO_LOAD_LOCAL_GDBINIT_LOADED.
6823 (print_gdb_help): Extend the help for 'local init file'.
6824 * python/py-auto-load.c: Remove a comment about gdb scripts extension.
6825 (GDBPY_AUTO_SECTION_NAME): Extend the comment it is Python specific.
6826 (auto_load_scripts): Rename to ...
6827 (auto_load_python_scripts): ... here, update the comment.
6828 (gdbpy_load_auto_script_for_objfile): New declaration.
6829 (show_auto_load_python_scripts, script_language_python)
6830 (gdbpy_load_auto_script_for_objfile): New.
6831 (source_section_scripts): Refactor the code.
6832 (load_auto_scripts_for_objfile): Rename to ...
6833 (gdbpy_load_auto_scripts_for_objfile): ... here, update the
6834 auto_load_objfile_script caller, drop GDBPY_GLOBAL_AUTO_LOAD checking.
6835 (info_auto_load_python_scripts): New.
6836 (gdbpy_initialize_auto_load): New variables cmd and cmd_name.
6837 Rename "set auto-load-scripts" to "set auto-load python-scripts".
6838 Register "set auto-load-scripts" as its deprecated alias. Register
6839 "info auto-load python-scripts". Register "info auto-load-scripts" as
6840 its deprecated alias.
6841 (load_auto_scripts_for_objfile): Rename to ...
6842 (gdbpy_load_auto_scripts_for_objfile): ... here.
6843 * python/python.h (load_auto_scripts_for_objfile): Rename to ...
6844 (gdbpy_load_auto_scripts_for_objfile): ... here.
6845
6846 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6847
6848 auto-load: Move files.
6849 * Makefile.in (SFILES): Add auto-load.c.
6850 (HFILES_NO_SRCDIR): Add auto-load.h.
6851 (COMMON_OBS): Add auto-load.o.
6852 (distclean): Change .gdbinit for gdb-gdb.gdb.
6853 * auto-load.c: New file, with parts from python/py-auto-load.c.
6854 * auto-load.h: New file, with parts from python/python.h.
6855 * configure: Regenerate.
6856 * configure.ac (AC_OUTPUT): Change .gdbinit for gdb-gdb.gdb.
6857 * gdb-gdb.gdb.in: New file, renamed from gdbinit.in.
6858 * gdbinit.in: Remove file, rename it to gdb-gdb.gdb.in.
6859 * main.c: Include auto-load.h.
6860 * python/py-auto-load.c: Move include filenames.h, gdb_regex.h,
6861 command.h, observer.h and progspace.h to auto-load.c. Add include
6862 auto-load.h.
6863 (gdbpy_global_auto_load, struct auto_load_pspace_info)
6864 (struct loaded_script, auto_load_pspace_data)
6865 (auto_load_pspace_data_cleanup, get_auto_load_pspace_data)
6866 (hash_loaded_script_entry, eq_loaded_script_entry)
6867 (init_loaded_scripts_info, get_auto_load_pspace_data_for_loading)
6868 (maybe_add_script): Move to auto-load.c.
6869 (source_section_scripts): Change maybe_add_script parameters passing,
6870 use script_not_found_warning_print.
6871 (clear_section_scripts, auto_load_objfile_script)
6872 (auto_load_new_objfile, loaded_script_ptr)
6873 (DEF_VEC_P (loaded_script_ptr), collect_matching_scripts, print_script)
6874 (sort_scripts_by_name, info_auto_load_scripts): Move to auto-load.c.
6875 (gdbpy_initialize_auto_load): Move auto_load_pspace_data,
6876 auto_load_new_objfile and info_auto_load_scripts initizations to
6877 auto-load.c.
6878 * python/python.h (gdbpy_global_auto_load): Move to auto-load.h.
6879
6880 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6881
6882 Code cleanup.
6883 * charset.c (find_charset_names): Remove variables ix and elt.
6884 Use free_char_ptr_vec.
6885 * elfread.c (build_id_to_debug_filename): New variables debugdir_vec,
6886 back_to and ix. Use dirnames_to_char_ptr_vec. Remove variable
6887 debugdir_end. New variable debugdir_len.
6888 * gdb_vecs.h (free_char_ptr_vec, make_cleanup_free_char_ptr_vec)
6889 (dirnames_to_char_ptr_vec_append, dirnames_to_char_ptr_vec): New
6890 declarations.
6891 * progspace.c (clear_program_space_solib_cache): Remove variables ix
6892 and elt. Use free_char_ptr_vec.
6893 * source.c (add_path): Remove variables argv, arg and argv_index.
6894 New variables dir_vec, back_to, ix and name.
6895 Use dirnames_to_char_ptr_vec_append. Use freeargv instead of
6896 make_cleanup_freeargv. Remove variable separator. Simplify the code
6897 no longer expecting DIRNAME_SEPARATOR.
6898 (openp): Remove variable p, p1 and len. New variables dir_vec,
6899 back_to, ix and dir. Use dirnames_to_char_ptr_vec. Simplify the code
6900 no longer expecting DIRNAME_SEPARATOR.
6901 * symfile.c (find_separate_debug_file): New variables debugdir_vec,
6902 back_to and ix. Use dirnames_to_char_ptr_vec. Remove variable
6903 debugdir_end.
6904 * utils.c (free_char_ptr_vec, do_free_char_ptr_vec)
6905 (make_cleanup_free_char_ptr_vec, dirnames_to_char_ptr_vec_append)
6906 (dirnames_to_char_ptr_vec): New functions.
6907
6908 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6909
6910 Code cleanup.
6911 * source.c (add_path): Remove always true conditional 'p == 0' and
6912 unindent its code block.
6913
6914 2012-04-17 Pedro Alves <palves@redhat.com>
6915
6916 * gdbtypes.h (FIELD_BITPOS): Rename to ...
6917 (FIELD_BITPOS_LVAL): ... this.
6918 (FIELD_BITPOS): New.
6919 (SET_FIELD_BITPOS): Adjust to use FIELD_BITPOS_LVAL.
6920 * dwarf2read.c (dwarf2_add_field): Use SET_FIELD_BITPOS.
6921 * gdbtypes.c (append_composite_type_field_aligned): Adjust to use
6922 SET_FIELD_BITPOS.
6923 * gnu-v3-abi.c (build_gdb_vtable_type): Adjust to use
6924 SET_FIELD_BITPOS.
6925 * stabsread.c (read_cpp_abbrev, read_one_struct_field)
6926 (read_baseclasses): Adjust to use SET_FIELD_BITPOS.
6927 * target-descriptions.c (tdesc_gdb_type): Adjust to use
6928 SET_FIELD_BITPOS.
6929
6930 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6931
6932 Do not rely on FIELD_LOC_KIND_BITPOS being zero.
6933 * ada-lang.c (ada_template_to_fixed_record_type_1): Replace
6934 TYPE_FIELD_BITPOS used as lvalue by SET_FIELD_BITPOS.
6935 * gdbtypes.c (append_flags_type_flag): Likewise, twice.
6936 * jv-lang.c (java_link_class_type): Likewise, once.
6937 * stabsread.c (read_enum_type): Likewise.
6938
6939 2012-04-16 Yao Qi <yao@codesourcery.com>
6940
6941 * common/agent.c (agent_run_command): Add one more parameter `len'.
6942 Update callers.
6943 * common/agent.h: Update declaration.
6944 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
6945 Update.
6946 (linux_child_static_tracepoint_markers_by_strid): Ditto.
6947
6948 2012-04-14 Anton Gorenkov <xgsa@yandex.ru>
6949
6950 PR mi/13393
6951 * value.c (value_actual_type): New function.
6952 * value.h (value_actual_type): New declaration.
6953 * varobj.c (update_type_if_necessary): New function.
6954 (varobj_create): Call value_actual_type instead of
6955 value_type.
6956 (install_dynamic_child): distinct changed and type changed MI variable
6957 objects.
6958 (update_dynamic_varobj_children): Updated for install_dynamic_child
6959 change. All callers updated.
6960 (varobj_update): Support for MI variable object type change if
6961 the value changed and RTTI is used to determine the type.
6962 (create_child_with_value): Call value_actual_type instead of
6963 value_type.
6964 (adjust_value_for_child_access): Extended with a new parameter which
6965 specify whether the given value should be casted to enclosing type.
6966 All callers updated.
6967
6968 2012-04-14 Yao Qi <yao@codesourcery.com>
6969
6970 Import gnulib module inttypes from git
6971 (250b80067c1e1d8faa0c42fb572f721975b929c5)
6972 * Makefile.in (HFILES_NO_SRCDIR): Add gnulib/inttypes.in.h.
6973 (aclocal_m4_deps): Add gnulib/m4/inttypes.m4 and
6974 gnulib/m4/inttypes-pri.m4
6975 * aclocal.m4, config.in, configure: Regenerated.
6976 * gnulib/Makefile.am: Update.
6977 * gnulib/Makefile.in: Update.
6978 * gnulib/m4/gnulib-cache.m4: Update.
6979 * gnulib/m4/gnulib-comp.m4: Update.
6980 * gnulib/inttypes.in.h: New.
6981 * gnulib/m4/inttypes-pri.m4: New.
6982 * gnulib/m4/inttypes.m4: New.
6983
6984 2012-04-13 Luis Machado <lgustavo@codesourcery.com>
6985
6986 * infrun.c (resume): Update PC address to the real PC after
6987 preparing to do displaced stepping.
6988
6989 2012-04-12 Doug Evans <dje@google.com>
6990
6991 * dwarf2read.c (lookup_signatured_type): Remove arg "objfile", unused.
6992 All callers updated.
6993
6994 2012-04-12 Mark Kettenis <kettenis@gnu.org>
6995
6996 * i386bsd-nat.c (_initialize_i386bsd_nat): Add missing prototype.
6997
6998 2012-04-12 Doug Evans <dje@google.com>
6999
7000 * dwarf2read.c (create_all_type_units): Renamed from
7001 create_debug_types_hash_table. All callers updated.
7002
7003 * dwarf2read.c (create_signatured_type_table_from_index): Rename
7004 local type_sig to sig_type, type_offset to type_offset_in_tu.
7005 (hash_signatured_type): Renamed from hash_type_signature,
7006 all callers updated.
7007 (eq_signatured_type): Renamed from eq_type_signature,
7008 all callers updated.
7009 (create_debug_types_hash_table): Rename local type_sig to sig_type.
7010 (process_enumeration_scope): Ditto.
7011 (lookup_signatured_type_at_offset): Ditto.
7012 (load_full_type_unit, read_signatured_type): Ditto.
7013
7014 2012-04-12 Yao Qi <yao@codesourcery.com>
7015
7016 * remote.c (async_remote_interrupt): Correct function name in
7017 debug message.
7018 (async_remote_interrupt_twice): Ditto.
7019
7020 2012-04-11 Yuanhui Zhang <asmwarrior@gmail.com>
7021
7022 * source.c (find_and_open_source): Consistently pass resulting
7023 full path through xfullpath.
7024
7025 2012-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
7026
7027 Provide more specific displaced-stepping memory error message.
7028 * infrun.c (displaced_step_prepare): New variable status. Call
7029 target_read_memory instead of read_memory, provide more specific
7030 error message.
7031
7032 2012-04-11 Tristan Gingold <gingold@adacore.com>
7033
7034 PR gdb/13901
7035 * darwin-nat.c (darwin_execvp): Revert previous patch.
7036
7037 2012-04-11 Tristan Gingold <gingold@adacore.com>
7038
7039 PR gdb/13901
7040 * darwin-nat.c (darwin_resume_thread): Call darwin_set_sstep only
7041 in case of change.
7042
7043 2012-04-11 Tristan Gingold <gingold@adacore.com>
7044
7045 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
7046 warning.
7047
7048 2012-04-11 Siva Chandra Reddy <sivachandra@google.com>
7049
7050 New command 'explore' which helps explore values and types in
7051 scope.
7052 * NEWS: Add an entry about the new 'explore' command.
7053 * data-directory/Makefile.in: Add gdb/command/explore.py
7054 * python/lib/gdb/command/explore.py: Implemention of the 'explore'
7055 command using the GDB Python API.
7056
7057 2012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
7058
7059 * mips-tdep.c (mips_skip_pic_trampoline_code): Correct sign
7060 extension in jump target calculation.
7061
7062 2012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
7063
7064 * mips-tdep.c (mips32_next_pc): Handle JALX.
7065
7066 2012-04-10 Yao Qi <yao@codesourcery.com>
7067
7068 * Makefile.in (gnulib/Makefile): Remove duplicated dependency.
7069
7070 2012-04-10 Yao Qi <yao@codesourcery.com>
7071
7072 * Makefile.in (aclocal_m4_deps): Add gnulib/m4/gnulib-cache.m4
7073 and gnulib/m4/gnulib-tool.m4.
7074
7075 2012-04-10 Doug Evans <dje@google.com>
7076
7077 * dwarf2read.c (dwarf2_per_cu_data). Clarify comment.
7078 (load_partial_dies): Clarify comment.
7079 (find_partial_die): Support rereading type units.
7080 Clarify CU handling, if we know offset is in CU, don't search for the
7081 containing CU. Add comment regarding memory waste.
7082
7083 2012-04-10 H.J. Lu <hongjiu.lu@intel.com>
7084
7085 * features/Makefile (WHICH): Add i386/x32, i386/x32-linux,
7086 i386/x32-avx and i386/x32-avx-linux.
7087 (i386/x32-expedite): New.
7088 (i386/x32-linux-expedite): Likewise.
7089 (i386/x32-avx-expedite): Likewise.
7090 (i386/x32-avx-linux-expedite): Likewise.
7091 ($(outdir)/i386/x32.dat): Likewise.
7092 ($(outdir)/i386/x32-linux.dat): Likewise.
7093 ($(outdir)/i386/x32-avx.dat): Likewise.
7094 ($(outdir)/i386/x32-avx-linux.dat): Likewise.
7095
7096 * features/i386/x32-avx-linux.xml: New file.
7097 * features/i386/x32-avx.xml: Likewise.
7098 * features/i386/x32-core.xml: Likewise.
7099 * features/i386/x32-linux.xml: Likewise.
7100 * features/i386/x32.xml: Likewise.
7101
7102 * features/i386/x32-avx-linux.c: New. Generated.
7103 * features/i386/x32-avx.c: Likewise.
7104 * features/i386/x32-linux.c: Likewise.
7105 * features/i386/x32.c: Likewise.
7106 * regformats/i386/x32-avx-linux.dat: Likewise.
7107 * regformats/i386/x32-avx.dat: Likewise.
7108 * regformats/i386/x32-linux.dat: Likewise.
7109 * regformats/i386/x32.dat: Likewise.
7110
7111 2012-04-10 Tristan Gingold <gingold@adacore.com>
7112
7113 * darwin-nat.c (darwin_kill_inferior): Always use the no ptrace
7114 code to kill the inferior.
7115
7116 2012-04-09 Mark Kettenis <kettenis@gnu.org>
7117
7118 * ada-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7119 defines.
7120 * c-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7121 defines.
7122 * cp-name-parser.y (yyss, yysslim, yyssp, yystacksize, yyvs)
7123 (yyvsp): New defines.
7124 * f-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7125 defines.
7126 * jv-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7127 defines.
7128 * m2-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7129 defines.
7130 * objc-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7131 defines.
7132 * p-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7133 defines.
7134
7135 2012-04-09 Mark Kettenis <kettenis@gnu.org>
7136
7137 * sparc64-tdep.c (sparc64_store_arguments)
7138 (sparc64_store_arguments): Fix coding style.
7139
7140 2012-04-07 Mark Kettenis <kettenis@gnu.org>
7141
7142 * sparc64-tdep.c (sparc64_store_arguments): Fix handling of
7143 complex floats, adjust some related comments and tighten a related
7144 assertion.
7145 (sparc64_extract_return_value): Handle complex floats.
7146
7147 2012-04-07 Doug Evans <dje@google.com>
7148
7149 * dwarf2read.c (load_partial_dies): Change condition to assert.
7150
7151 2012-04-06 Doug Evans <dje@google.com>
7152
7153 * amd64-tdep.c (amd64_analyze_prologue): Recognize both variations of
7154 "mov %rsp,%rbp".
7155
7156 2012-04-05 Kevin Buettner <kevinb@redhat.com>
7157
7158 * v850-tdep.c (E_NUM_OF_V850_REGS, E_NUM_OF_V850E_REGS): Fix
7159 fencepost error.
7160 (v850_frame_cache): Use gdbarch_num_regs() instead of E_NUM_REGS.
7161 (v850_gdbarch_init): Set `num_regs' as appropriate for the
7162 architecture.
7163
7164 2012-04-05 Keith Seitz <keiths@redhat.com>
7165
7166 * linespec.c (decode_compound): Remove.
7167 (enum offset_relative_sign): New enum.
7168 (struct line_offset): New struct.
7169 (struct linespec): New struct.
7170 (struct linespec_state): Move file_symtabs,
7171 user_filename, and user_function into struct linespec.
7172 Make result an anonymous struct holding vectors of
7173 symbolp and minsym_and_objfile_d.
7174 Add language member.
7175 (enum ls_token_type): New enum.
7176 (linespec_keywords): New array.
7177 (struct ls_token): New struct.
7178 (struct ls_parser): New struct.
7179 (linespec_lexer_lex_number): New function.
7180 (linespec_lexer_lex_keyword): New function.
7181 (is_ada_operator): New function.
7182 (skip_quote_char): New function.
7183 (copy_token_string): New function.
7184 (is_closing_quote_enclosed): New function.
7185 (find_parameter_list_end): New function.
7186 (linespec_lexer_lex_string): New function.
7187 (linespec_lexer_lex_one): New function.
7188 (linespec_lexer_consume_token): New function.
7189 (linespec_lexer_peek_token): New function.
7190 (cplusplus_error): Remove unused function.
7191 (find_methods): Update comment.
7192 (find_toplevel_char): Return const.
7193 (is_objc_method_format): Remove unused function.
7194 (find_toplevel_string): New function.
7195 (is_linespec_boundary): Remove.
7196 (symbol_not_found_error): New function.
7197 (find_method_overload_end): Remove function.
7198 (unexpected_linespec_error): New function.
7199 (keep_name_info): Remove.
7200 (linespec_parse_line_offset): New function.
7201 (linespec_parse_basic): New function.
7202 (canonicalize_linespec): New function.
7203 (decode_line_internal): Remove.
7204 (create_sals_line_offset): New function adapted from
7205 decode_all_digits.
7206 (convert_linespec_to_sals): New function.
7207 (parse_linespec): New function.
7208 (linespec_parser_new): New function.
7209 (linespec_state_destructor): Change parameter type to
7210 struct linespec_state *.
7211 Add language parameter.
7212 Remove freeing of moved members.
7213 (linespec_parser_delete): New function.
7214 (decode_line_full): Use parse_linespec and linespec_parser_new.
7215 (decode_line_1): Likewise.
7216 (decode_indirect): Rename to ...
7217 (linespec_expression_to_pc): ... this and rewrite
7218 to simply find CORE_ADDR, storing this result for later
7219 conversion to SALs.
7220 (locate_first_half): Remove.
7221 (deocde_objc): Add parameter LS.
7222 Initialize new struct collect_info members.
7223 Handle minimal symbols, too.
7224 (decode_compound): Delete.
7225 (lookup_prefix_sym): Rewrite.
7226 (compare_msymbols): New function.
7227 (find_method): Rewrite.
7228 Do not call cplusplus_error.
7229 (symtabs_from_filename): Rewrite.
7230 (collect_function_symbols): Delete.
7231 (find_function_symbols): Rewrite without ARGPTR-style
7232 processing.
7233 (decode_all_digits): Delete. (Rewritten as create_sals_line_offset.)
7234 (decode_dollar): Adapted and renamed to ...
7235 (linespec_parse_variable): ... this.
7236 (find_linespec_symbols): New function.
7237 (decode_label): Adapted and renamed to ...
7238 (find_label_symbols): ... this.
7239 (decode_digits_list_mode): Add and use LS argument.
7240 (decode_digits_ordinary): Likewise.
7241 (collect_symbols): Do not collect SALs, just symbols and msymbols.
7242 If in list mode, allow any symbol class. Otherwise, only
7243 permit LOC_BLOCK symbols.
7244 (minsym_found): Update comments.
7245 (search_minsyms_for_name): Do not convert the matching symbol
7246 into a SAL. Simply push the symbol and objfile into the
7247 result vector.
7248 (decode_variable): Delete. Contents adapted into
7249 find_linespec_symbols.
7250
7251 * cp-support.c (SKIP_SPACE): Remove.
7252 (operator_tokens): Remove unused global.
7253 (cp_validate_operator): Remove.
7254 * cp-support.h (cp_validate_operator): Remove declaration.
7255
7256 2012-04-03 Jan Kratochvil <jan.kratochvil@redhat.com>
7257
7258 * cp-valprint.c (cp_print_value_fields): Check valprint_check_validity
7259 for TYPE_VPTR_FIELDNO.
7260 * valprint.c (valprint_check_validity): Make it global, move the
7261 function comment ...
7262 * value.h (valprint_check_validity): ... to this new declaration.
7263
7264 2012-04-02 Tristan Gingold <gingold@adacore.com>
7265
7266 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Use
7267 the STATE32 api for i386 state.
7268 (i386_darwin_store_inferior_registers): Likewise.
7269
7270 2012-04-02 Tristan Gingold <gingold@adacore.com>
7271
7272 * i386-darwin-tdep.c (i386_darwin_thread_state_reg_offset): Fix
7273 SS offset.
7274 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
7275 format_string.
7276
7277 2012-04-02 Tristan Gingold <gingold@adacore.com>
7278
7279 PR gdb/13901
7280 * darwin-nat.c (darwin_execvp): Set binary preference.
7281
7282 2012-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
7283
7284 * NEWS (set breakpoint condition-evaluation): Use imperative mood.
7285
7286 2012-03-30 Tom Tromey <tromey@redhat.com>
7287
7288 * python/python.c (gdbpy_decode_line): Move cleanup creation out
7289 of TRY_CATCH. Fix error handling.
7290 * python/py-value.c (convert_value_from_python): Move 'old'
7291 declaration to innermost scope.
7292
7293 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7294 Andrey Smirnov <andrew.smirnov@gmail.com>
7295
7296 -Wshadow warning fix.
7297 * ada-lang.c (ada_make_symbol_completion_list): Rename parameters
7298 "wild_match" and "encoded" into "wild_match_p" and "encoded_p".
7299 Adjust code accordingly.
7300
7301 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7302
7303 * ada-lang.c (symbol_completion_add): Rename parameter
7304 "encoded" into "encoded_p". Ajust code and documentation
7305 accordingly.
7306
7307 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7308 Andrey Smirnov <andrew.smirnov@gmail.com>
7309
7310 -Wshadow warning fix.
7311 * ada-lang.c (symbol_completion_add): Rename parameter
7312 "wild_match" into wild_match_p. Update code and documentation
7313 accordingly.
7314
7315 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7316
7317 * ada-lang.c (symbol_completion_match): Rename parameter
7318 "encoded" into "encoded_p". Ajust code and documentation
7319 accordingly.
7320
7321 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7322 Andrey Smirnov <andrew.smirnov@gmail.com>
7323
7324 -Wshadow warning fix.
7325 * ada-lang.c (symbol_completion_match): Rename parameter
7326 "wild_match" into "wild_match_p". Adjust code and function
7327 documentation accordingly.
7328
7329 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7330 Andrey Smirnov <andrew.smirnov@gmail.com>
7331
7332 -Wshadow warning fix.
7333 * ada-lang.c (ada_lookup_encoded_symbol): Rename parameter
7334 "symbol_info" into "info". Adjust code accordingly.
7335 (ada_lookup_symbol): Likewise.
7336
7337 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7338
7339 * ada-lang.c (ada_lookup_symbol_list): Minor reformatting
7340 of this function's documentation.
7341
7342 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7343 Andrey Smirnov <andrew.smirnov@gmail.com>
7344
7345 -Wshadow warning fix.
7346 * ada-lang.c (ada_lookup_symbol_list): Rename "wild_match"
7347 variable into "wild_match_p". Adjust code accordingly.
7348
7349 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7350 Andrey Smirnov <andrew.smirnov@gmail.com>
7351
7352 -Wshadow warning fix.
7353 * ada-lang.c (ada_add_local_symbols): Rename "wild_match"
7354 parameter into "wild_match_p". Adjust code accordingly.
7355 Document this parameter in the function description.
7356
7357 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7358 Andrey Smirnov <andrew.smirnov@gmail.com>
7359
7360 -Wshadow warning fix.
7361 * ada-lang.c (add_symbols_from_enclosing_procs): Rename
7362 "wild_match" parameter to "wild_match_p" (-Wshadow).
7363
7364 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7365
7366 * ada-lang.c (ada_lookup_simple_minsym): Remove trailing spaces
7367 in function documentation.
7368
7369 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7370 Andrey Smirnov <andrew.smirnov@gmail.com>
7371
7372 -Wshadow warning fix.
7373 * ada-lang.c (ada_lookup_simple_minsym): Rename wild_match local
7374 variable into wild_match_p. Adjust code accordingly.
7375
7376 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7377 Andrey Smirnov <andrew.smirnov@gmail.com>
7378
7379 * ada-valprint.c (ada_val_print_1): Move the code handling
7380 TYPE_CODE_ENUM inside its own lexical block. Declare
7381 variables len and val there, instead of in the function's
7382 top level block. Avoid declaring deref_val again in a way
7383 that shadows another variable of the same name declared
7384 in one of the up-level blocks. Just re-use the up-level
7385 variable instead.
7386
7387 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7388
7389 * ada-lang.c (ada_lookup_encoded_symbol): Now returns void.
7390 Replace block_found argument by symbol_info. Adjust
7391 implementation accordingly. Add function documentation.
7392 (ada_lookup_symbol): Adjust to new ada_lookup_encoded_symbol.
7393 Fix documentation.
7394 * ada-lang.h (ada_lookup_encoded_symbol): Update declaration.
7395 * ada-exp.y (write_object_renaming): Adjust to new
7396 ada_lookup_encoded_symbol API.
7397
7398 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7399
7400 * ada-lang.h (struct ada_symbol_info): Reformat. Improve
7401 documentation.
7402
7403 2012-03-28 Rathish C <rathish.c@kpitcummins.com>
7404
7405 * v850-tdep.c: Add the enum values for mpu and fpu registers.
7406 (v850_register_name): Add the mpu and fpu register names.
7407 (v850e_register_name): Add the mpu and fpu register names.
7408 (v850e2_register_name): New function.
7409 (v850_gdbarch_init): Add case for bfd_mach_v850e2 and
7410 bfd_mach_v850e2v3.
7411
7412 2012-03-28 Joel Brobecker <brobecker@adacore.com>
7413
7414 * NEWS: Add entry for Ada varobj support.
7415
7416 2012-03-28 Joel Brobecker <brobecker@adacore.com>
7417
7418 * varobj.c (default_value_is_changeable_p): New function,
7419 extracted from varobj_value_is_changeable_p. Add declaration.
7420 (ada_value_is_changeable_p): New function, extracted from
7421 varobj_value_is_changeable_p. Add declaration.
7422 (struct language_specific): New field "value_is_changeable_p".
7423 (languages): Add entries for new field.
7424 (varobj_create): Set language before calling install_new_value.
7425 (varobj_value_is_changeable_p): Reimplement to call the varobj's
7426 "value_is_changeable_p" language callback.
7427
7428 2012-03-28 Joel Brobecker <brobecker@adacore.com>
7429
7430 * ada-varobj.h, ada-varobj.c: New files.
7431 * Makefile.in (SFILES): Add ada-varobj.c.
7432 (HFILES_NO_SRCDIR): Add ada-varobj.h.
7433 (COMMON_OBS): Add ada-varobj.o.
7434
7435 2012-03-28 Joel Brobecker <brobecker@adacore.com>
7436
7437 * varobj.c (ada_value_has_mutated): Add declaration. New function.
7438 (struct language_specific): New field "value_has_mutated".
7439 (languages): Set field "value_has_mutated" in each entry of array.
7440 (varobj_value_has_mutated): New function.
7441 (varobj_udpdate): Add handling of type mutation.
7442 (value_of_root): Add handling of type mutation.
7443 (ada_value_has_mutated): New function.
7444
7445 2012-03-28 Pedro Alves <palves@redhat.com>
7446
7447 * ia64-linux-nat.c (supply_fpregset, ia64_linux_fetch_register):
7448 Always supply $fr0 as 0.0 and $fr1 as 1.0.
7449
7450 2012-03-28 Tom Tromey <tromey@redhat.com>
7451
7452 * python/py-inferior.c (infpy_read_memory): Remove cleanups and
7453 explicitly free 'buffer' on exit paths. Decref 'membuf_object'
7454 before returning.
7455
7456 2012-03-28 Tom Tromey <tromey@redhat.com>
7457
7458 * .dir-locals.el: New file.
7459
7460 2012-03-28 Pedro Alves <palves@redhat.com>
7461
7462 * ia64-linux-nat.c (u_offsets): Map IA64_EC_REGNUM to PT_AR_EC.
7463
7464 2012-03-28 Joel Brobecker <brobecker@adacore.com>
7465
7466 * ia64-linux-nat.c (ia64_linux_fetch_register): Add special
7467 handling for r0.
7468
7469 2012-03-27 Pedro Alves <palves@redhat.com>
7470
7471 Eliminate struct ui_stream.
7472
7473 * ui-out.h (struct ui_stream): Delete.
7474 (ui_out_field_stream): Adjust prototype.
7475 (ui_out_stream_new, ui_out_stream_delete)
7476 (make_cleanup_ui_out_stream_delete): Delete declarations.
7477 * ui-out.c (ui_out_field_stream): Change prototype to take a
7478 ui_file instead of a ui_stream. Adjust.
7479 (ui_out_stream_new, ui_out_stream_delete, do_stream_delete)
7480 (make_cleanup_ui_out_stream_delete): Delete.
7481 * breakpoint.c (print_breakpoint_location)
7482 (print_one_detail_ranged_breakpoint, print_it_watchpoint): Use
7483 ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
7484 * disasm.c (dump_insns): Ditto.
7485 (do_mixed_source_and_assembly, do_assembly_only): Adjust
7486 prototype.
7487 (gdb_disassembly): Use ui_file/mem_fileopen instead of
7488 ui_stream/ui_out_stream_new.
7489 * infcmd.c (print_return_value): Ditto.
7490 * osdata.c (info_osdata_command): Don't allocate a local
7491 ui_stream.
7492 * stack.c (print_frame_arg, print_frame_args, print_frame): Use
7493 ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
7494 * tracepoint.c (print_one_static_tracepoint_marker): Don't
7495 allocate a local ui_stream.
7496 * mi/mi-cmd-stack.c (list_arg_or_local): Use ui_file/mem_fileopen
7497 instead of ui_stream/ui_out_stream_new.
7498 (list_args_or_locals): Don't allocate a local ui_stream.
7499 * mi/mi-main.c (get_register, mi_cmd_data_evaluate_expression)
7500 (mi_cmd_data_read_memory): Use ui_file/mem_fileopen instead of
7501 ui_stream/ui_out_stream_new.
7502 * cli/cli-setshow.c (do_setshow_command): Ditto.
7503
7504 2012-03-27 Oza Pawandeep <oza.pawandeep@gmail.com>
7505
7506 * arm-linux-tdep.c (arm_linux_init_abi): Call
7507 set_gdbarch_process_record. Initialize `arm_swi_record' field.
7508 * arm-tdep.c (arm_process_record): New function.
7509 (deallocate_reg_mem): New function.
7510 (decode_insn): New function.
7511 (thumb_record_branch): New function.
7512 (thumb_record_ldm_stm_swi(): New function.
7513 (thumb_record_misc): New function.
7514 (thumb_record_ld_st_stack): New function.
7515 (thumb_record_ld_st_imm_offset): New function.
7516 (thumb_record_ld_st_reg_offset(): New function.
7517 (thumb_record_add_sub_cmp_mov): New function.
7518 (thumb_record_shift_add_sub): New function.
7519 (arm_record_coproc_data_proc): New function.
7520 (arm_record_coproc): New function.
7521 (arm_record_b_bl): New function.
7522 (arm_record_ld_st_multiple): New function.
7523 (arm_record_ld_st_reg_offset): New function.
7524 (arm_record_ld_st_imm_offset): New function.
7525 (arm_record_data_proc_imm): New function.
7526 (arm_record_data_proc_misc_ld_str): New function.
7527 (arm_record_extension_space): New function.
7528 (arm_record_strx): New function.
7529 (sbo_sbz): New function.
7530 (struct insn_decode_record): New structure for arm insn record.
7531 (REG_ALLOC): New macro for reg allocations.
7532 (MEM_ALLOC): New macro for memory allocations.
7533 * arm-tdep.h (struct gdbarch_tdep): New field 'arm_swi_record'.
7534
7535 2012-03-27 Andreas Schwab <schwab@linux-m68k.org>
7536
7537 * m68klinux-nat.c (fetch_register): Fix strict-aliasing violation.
7538 (store_register): Likewise.
7539
7540 2012-03-26 Oza Pawandeep <oza.pawandeep@gmail.com>
7541
7542 * MAINTAINERS (Write After Approval): Add myself to the list.
7543
7544 2012-03-25 Jan Kratochvil <jan.kratochvil@redhat.com>
7545
7546 * NEWS (set breakpoint condition-evaluation): Change "gdb" to "host".
7547 Describe also the option "auto".
7548
7549 2012-03-22 Richard Henderson <rth@redhat.com>
7550
7551 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Fix prototype.
7552 * sparc-nat.c (sparc_xfer_wcookie): Make static.
7553
7554 2012-03-22 Richard Henderson <rth@redhat.com>
7555
7556 * jit.c (jit_read_code_entry): Compute alignment and offset of
7557 int64_t member before computing entry_size.
7558
7559 2012-03-22 Siva Chandra Reddy <sivachandra@google.com>
7560
7561 Python scripting: Add new method Value.referenced_value to
7562 gdb.Value which can dereference pointer as well as reference
7563 values.
7564 * NEWS: Add entry under 'Python scripting' about the new method
7565 Value.referenced_value on gdb.Value objects.
7566 * python/py-value.c (valpy_referenced_value): New function
7567 defining a new method on gdb.Value objects which can dereference
7568 pointer and reference values.
7569
7570 2012-03-22 Siva Chandra Reddy <sivachandra@google.com>
7571
7572 * MAINTAINERS (Write After Approval): Add myself to the list.
7573
7574 2012-03-21 Kevin Buettner <kevinb@redhat.com>
7575
7576 * symtab.c (skip_prologue_sal): Change test to check for "main()"
7577 in addition to "main".
7578
7579 2012-03-21 Joel Brobecker <brobecker@adacore.com>
7580
7581 * expression.h (op_name): Add declaration.
7582 * expprint.c (op_name): Remove declaration. Make non-static.
7583 * ax-gdb.c (gen_expr): Use op_name instead of op_string.
7584
7585 2012-03-21 Thomas Schwinge <thomas@codesourcery.com>
7586
7587 * amd64-linux-nat.c (amd64_linux_siginfo_fixup): Use siginfo_t instead
7588 of struct siginfo.
7589 * arm-linux-nat.c (arm_linux_stopped_data_address): Likewise.
7590 * ia64-linux-nat.c (ia64_linux_stopped_data_address): Likewise.
7591 * linux-nat.c (linux_nat_siginfo_fixup, siginfo_fixup)
7592 (linux_xfer_siginfo, linux_nat_set_siginfo_fixup)
7593 (linux_nat_get_siginfo): Likewise.
7594 * linux-nat.h (struct lwp_info, linux_nat_set_siginfo_fixup)
7595 (linux_nat_get_siginfo): Likewise.
7596 * linux-tdep.c (linux_get_siginfo_type): Likewise.
7597 * ppc-linux-nat.c (ppc_linux_stopped_data_address): Likewise.
7598 * procfs.c (gdb_siginfo_t): Likewise.
7599
7600 2012-03-21 Mike Frysinger <vapier@gentoo.org>
7601
7602 * .gitignore: Ignore more files.
7603
7604 2012-03-20 Pedro Alves <palves@redhat.com>
7605
7606 * remote.c (remote_start_remote): Clear `rs->starting_up' on early
7607 returns.
7608
7609 2012-03-20 Yao Qi <yao@codesourcery.com>
7610
7611 * amd64-tdep.c (amd64_displaced_step_copy_insn): Complete missing "}" in
7612 comment.
7613
7614 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
7615
7616 Code cleanupp: Use cu_offset and sect_offset compile time type checking.
7617 * dwarf2expr.c (add_piece, dwarf_get_base_type, execute_stack_op)
7618 (ctx_no_dwarf_call, ctx_no_get_base_type): Use cu_offset and
7619 sect_offset.
7620 * dwarf2expr.h (cu_offset, sect_offset): New types.
7621 (struct dwarf_expr_context_funcs) <dwarf_call>
7622 (struct dwarf_expr_context_funcs) <get_base_type>: Use cu_offset and
7623 sect_offset.
7624 (struct dwarf_expr_context) <len>: Improve the comment.
7625 (struct dwarf_expr_piece, ctx_no_dwarf_call, ctx_no_get_base_type): Use
7626 cu_offset and sect_offset.
7627 * dwarf2loc.c (per_cu_dwarf_call, dwarf_expr_dwarf_call)
7628 (dwarf_expr_get_base_type, needs_frame_dwarf_call)
7629 (dwarf2_compile_expr_to_ax, disassemble_dwarf_expression): Likewise.
7630 * dwarf2loc.h: Include dwarf2expr.h.
7631 (dwarf2_fetch_die_location_block, dwarf2_get_die_type): Use cu_offset
7632 and sect_offset.
7633 * dwarf2read.c (struct dwarf2_per_objfile) <debug_types_type_hash>:
7634 Improve the comment.
7635 (struct comp_unit_head, struct dwarf2_cu, struct dwarf2_per_cu_data)
7636 (struct signatured_type, struct line_header, struct partial_die_info)
7637 (struct die_info, find_partial_die, dwarf2_get_ref_die_offset)
7638 (lookup_signatured_type_at_offset, dwarf2_find_containing_comp_unit)
7639 (get_die_type_at_offset, create_cus_from_index)
7640 (create_signatured_type_table_from_index, dw2_get_file_names)
7641 (offset_in_cu_p, read_comp_unit_head, error_check_comp_unit_head)
7642 (read_and_check_comp_unit_head, read_and_check_type_unit_head)
7643 (create_debug_types_hash_table, process_psymtab_comp_unit)
7644 (load_partial_comp_unit, create_all_comp_units)
7645 (partial_die_parent_scope, partial_die_full_name, skip_one_die)
7646 (load_full_comp_unit, dwarf2_physname, read_import_statement)
7647 (inherit_abstract_dies, read_func_scope, read_call_site_scope)
7648 (dwarf2_add_member_fn, process_enumeration_scope, read_module_type)
7649 (read_typedef, die_hash, die_eq, read_full_die, dwarf2_read_abbrevs)
7650 (load_partial_dies, read_partial_die, find_partial_die_in_comp_unit)
7651 (find_partial_die, read_attribute_value, lookup_die_type)
7652 (dump_die_shallow, store_in_ref_table): Use cu_offset and sect_offset.
7653 (is_ref_attr): New function comment.
7654 (dwarf2_get_ref_die_offset): New function comment, new variable retval.
7655 Use cu_offset and sect_offset.
7656 (follow_die_offset, follow_die_ref, dwarf2_fetch_die_location_block)
7657 (dwarf2_get_die_type, follow_die_sig, lookup_signatured_type_at_offset)
7658 (load_full_type_unit, read_signatured_type, per_cu_header_read_in)
7659 (dwarf2_find_containing_comp_unit, struct dwarf2_offset_and_type)
7660 (offset_and_type_hash, offset_and_type_eq, set_die_type)
7661 (get_die_type_at_offset, partial_die_hash, partial_die_eq)
7662 (write_one_signatured_type, write_psymtabs_to_index): Use cu_offset and
7663 sect_offset.
7664
7665 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
7666
7667 Code cleanup.
7668 * python/py-auto-load.c (source_section_scripts): New variable back_to.
7669 Turn fclose and xfree calls into make_cleanup_fclose and make_cleanup
7670 with xfree.
7671 (auto_load_objfile_script): Turn fclose into make_cleanup_fclose.
7672
7673 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
7674
7675 * NEWS: Describe new options --init-command=FILE, -ix and
7676 --init-eval-command=COMMAND, -iex.
7677 * main.c (struct cmdarg): New enum items CMDARG_INIT_FILE and
7678 CMDARG_INIT_COMMAND.
7679 (captured_main): New enum items OPT_IX and OPT_IEX. Add
7680 "init-command", "init-eval-command", "ix" and "iex" to the variable
7681 long_options. Handle OPT_IX and OPT_IEX. Process them from CMDARG_VEC.
7682 New comment for CMDARG_FILE and CMDARG_COMMAND processing.
7683 (print_gdb_help): Describe --init-command=FILE, -ix and
7684 --init-eval-command=COMMAND, -iex.
7685
7686 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
7687
7688 Code cleanup.
7689 * main.c (struct cmdarg): Move it here from main. Add more comments.
7690 (cmdarg_s, VEC (cmdarg_s)): New.
7691 (main): Move struct cmdarg from here. New variables cmdarg_vec and
7692 cmdarg_p. Remove variables cmdsize and ncmd and their initialization.
7693 Install cleanup for cmdarg_vec. Update filling for options 'x' and
7694 'X'. Replace cmdarg processing by cmdarg_vec processing. Remove xfree
7695 of CMDARG.
7696
7697 2012-03-19 Tom Tromey <tromey@redhat.com>
7698
7699 * gnu-v3-abi.c (gnuv3_print_vtable): Initialize 'result_vec'.
7700
7701 2012-03-16 Jan Kratochvil <jan.kratochvil@redhat.com>
7702
7703 PR symtab/13777
7704 * dwarf2read.c (process_full_comp_unit): Set LOCATIONS_VALID only for
7705 GCC >=4.5.
7706
7707 2012-03-16 Chris January <chris.january@allinea.com>
7708
7709 * tui-tui.win.c (tui_resize_all): Use erase and clearok instead
7710 of clear.
7711
7712 2012-03-16 Chris January <chris.january@allinea.com>
7713
7714 * source.c (add_path): Use memmove instead of strcpy because the
7715 strings overlap.
7716
7717 2012-03-16 Joel Brobecker <brobecker@adacore.com>
7718
7719 * value.h (set_value_parent): Add declaration.
7720 * value.c (set_value_parent): New function.
7721 (value_address): If VALUE->PARENT is not NULL, then use it as
7722 the base address instead of VALUE->LOCATION.address.
7723 * ada-lang.c (ada_value_primitive_packed_val): Keep V's address
7724 the same as OBJ's address. Adjust V's offset accordingly.
7725 Set V's parent.
7726
7727 2012-03-16 Gary Benson <gbenson@redhat.com>
7728
7729 PR breakpoints/10738
7730 * dwarf2read.c (use_deprecated_index_sections): New global.
7731 (struct partial_die_info): New member may_be_inlined.
7732 (read_partial_die): Set may_be_inlined where appropriate.
7733 (add_partial_subprogram): Add partial symbols for partial
7734 DIEs that may be inlined.
7735 (new_symbol_full): Add inlined subroutines to the current
7736 scope.
7737 (write_psymtabs_to_index): Bump version number.
7738 (dwarf2_read_index): Read only version 6 indices unless
7739 use_deprecated_index_sections is set.
7740 * linespec.c (symbol_and_data_callback): New structure.
7741 (iterate_inline_only): New function.
7742 (iterate_over_all_matching_symtabs): New argument
7743 "include_inline". If nonzero, also call the callback for
7744 symbols representing inlined subroutines.
7745 (lookup_prefix_sym): Pass extra argument to the above.
7746 (find_function_symbols): Likewise.
7747 (add_matching_symbols_to_info): Likewise.
7748 * NEWS: Mention that GDB can now set breakpoints on inlined
7749 functions.
7750
7751 2012-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
7752
7753 * p-typeprint.c (pascal_type_print_method_args):
7754 Fix display of parameter of methods.
7755
7756 2012-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
7757
7758 * amd64-windows-nat.c (_initialize_amd64_windows_nat):
7759 Add missing prototype.
7760
7761 2012-03-16 Yao Qi <yao@codesourcery.com>
7762 Jan Kratochvil <jan.kratochvil@redhat.com>
7763
7764 Fix false compilation warning.
7765 * gnu-v3-abi.c (print_one_vtable): Initialize ADDR.
7766
7767 2012-03-15 Jonathan Larmour <jifl@eCosCentric.com>
7768 Pedro Alves <pedro@codesourcery.com>
7769
7770 * arm-tdep.c: Include "remote.h" and "features/arm-with-m-fpa-layout.c".
7771 (arm_register_g_packet_guesses): New function.
7772 (arm_gdbarch_init): Don't force a target description with
7773 registers when the executable is detected as M-profile. Instead
7774 set gdbarch->tdep->is_m. Register `g' packet guesses.
7775 (_initialize_arm_tdep): Initialize the new target description.
7776 * features/arm-with-m-fpa-layout.xml: New description.
7777 * features/arm-with-m-fpa-layout.c: New, generated.
7778
7779 2012-03-15 Joel Brobecker <brobecker@adacore.com>
7780
7781 * breakpoint.c (breakpoint_xfer_memory): Add assertion.
7782 Update function description.
7783 (insert_bp_location): Do not wipe bl->target_info out.
7784 * mem-break.c: #include "gdb_string.h".
7785 (default_memory_insert_breakpoint): Do not call target_read_memory
7786 with a pointer to the breakpoint's shadow_contents buffer. Use
7787 a local buffer instead.
7788 * m32r-tdep.c (m32r_memory_insert_breakpoint): Ditto.
7789
7790 2012-03-15 Tom Tromey <tromey@redhat.com>
7791
7792 * NEWS: Mention "info vtbl", not "info vtable".
7793 * cp-support.c (info_vtbl_command): Fix comment.
7794 (_initialize_cp_support): Fix text.
7795
7796 2012-03-15 Tom Tromey <tromey@redhat.com>
7797
7798 * cp-valprint.c (cp_print_value_fields): Use
7799 print_function_pointer_address for vtable slot.
7800
7801 2012-03-15 Tom Tromey <tromey@redhat.com>
7802
7803 * gnu-v3-abi.c (struct value_and_voffset): New.
7804 (hash_value_and_voffset, eq_value_and_voffset)
7805 (compare_value_and_voffset, compute_vtable_size)
7806 (print_one_vtable, gnuv3_print_vtable): New functions.
7807 (init_gnuv3_ops): Initialize 'print_vtable' field.
7808 * cp-support.c (info_vtbl_command): New function.
7809 (_initialize_cp_support): Add "info vtbl".
7810 * cp-abi.h (cplus_print_vtable): Declare.
7811 (struct cp_abi_ops) <print_vtable>: New field.
7812 * cp-abi.c (cplus_print_vtable): New function.
7813 * NEWS: Update.
7814
7815 2012-03-15 Tom Tromey <tromey@redhat.com>
7816
7817 * d-lang.c (d_language_defn) <la_iterate_over_symbols>: Set to
7818 iterate_over_symbols.
7819
7820 2012-03-14 Doug Evans <dje@google.com>
7821
7822 * dwarf2read.c (dwarf_stack_op_name): Add DW_OP_GNU_encoded_addr,
7823 DW_OP_GNU_parameter_ref.
7824
7825 2012-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
7826
7827 Fix double prompt of 'interpreter-exec mi'.
7828 * mi/mi-interp.c (mi_execute_command_input_handler): New prototype.
7829 (mi_interpreter_resume): use it.
7830 (mi_execute_command_input_handler): New function.
7831 * mi/mi-main.c (mi_execute_command): Move prompt printing to
7832 mi_execute_command_input_handler.
7833
7834 2012-03-13 Josh Matthews <josh@joshmatthews.net> (tiny change)
7835
7836 * darwin-nat-info.c (_initialize_darwin_info_commands): Add
7837 prototype.
7838 (darwin_debug_port_info): Make static.
7839 * darwin-nat.c (_initialize_darwin_inferior): Add prototype.
7840 * machoread.c (_initialize_machoread): Add prototype.
7841 * i386-darwin-nat.c (i386_darwin_dr_set, i386_darwin_dr_get)
7842 (i386_darwin_set_control, i386_darwin_get_control)
7843 i386_darwin_dr_set_addr, i386_darwin_get_addr)
7844 i386_darwin_get_status, i386_darwin_get_control):
7845 Comment out with HW_WATCHPOINT_NOT_YET_ENABLED macro.
7846
7847 2012-03-13 Joel Brobecker <brobecker@adacore.com>
7848
7849 * ax-gdb.c (gen_usual_unary): Remove special handling of
7850 enum and bool types.
7851
7852 2012-03-13 Joel Brobecker <brobecker@adacore.com>
7853
7854 * ax-gdb.c (gen_fetch): Add handling for TYPE_CODE_RANGE types.
7855
7856 2012-03-13 Joel Brobecker <brobecker@adacore.com>
7857
7858 * aix-thread.c (supply_fprs): Make more consistent with fill_fprs.
7859
7860 2012-03-13 Chris January <chris.january@allinea.com>
7861
7862 * aix-thread.c (fill_sprs): Store the floating point registers
7863 at the correct offsets into vals.
7864
7865 2012-03-13 Doug Evans <dje@google.com>
7866
7867 * NEWS: Mention symbol-reloading has been deleted.
7868 * symfile.c (symbol_reloading): Delete.
7869 (show_symbol_reloading): Delete.
7870 (_initialize_symfile): Delete set/show symbol-reloading.
7871
7872 * dwarf2read.c (load_partial_comp_unit): Defer adding cu to
7873 read_in_chain until we have successfully read it in.
7874 (load_full_comp_unit): Ditto.
7875 (read_signatured_type): Add comment.
7876
7877 2012-03-13 Chris January <chris.january@allinea.com>
7878
7879 * stabsread.c (fix_common_block): Change type of valu argument
7880 to CORE_ADDR.
7881
7882 2012-03-13 Chris January <chris.january@allinea.com>
7883
7884 * rs6000-tdep.c (skip_prologue): Support the oril r29, r1, 0x0
7885 instruction.
7886
7887 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
7888
7889 * common/linux-procfs.c (linux_proc_get_int): New, from
7890 linux_proc_get_tgid, change its LWPID type to pid_t, add parameter
7891 field.
7892 (linux_proc_get_tgid): Only call linux_proc_get_int.
7893 (linux_proc_get_tracerpid): New.
7894 (linux_proc_pid_has_state): New, from linux_proc_pid_is_zombie.
7895 (linux_proc_pid_is_stopped, linux_proc_pid_is_zombie): Only call
7896 linux_proc_pid_has_state.
7897 * common/linux-procfs.h (linux_proc_get_tracerpid): New declaration.
7898 * common/linux-ptrace.c: Include linux-procfs.h and buffer.h.
7899 (linux_ptrace_attach_warnings): New.
7900 * common/linux-ptrace.h (struct buffer, linux_ptrace_attach_warnings):
7901 New declaration.
7902 * linux-nat.c: Include exceptions.h, linux-ptrace.h and buffer.h.
7903 (linux_nat_attach): New variables ex, buffer, message and message_s.
7904 Wrap to_attach by TRY_CATCH and call linux_ptrace_attach_warnings.
7905
7906 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
7907
7908 * Makefile.in (linux-ptrace.o): New.
7909 * common/linux-procfs.c (linux_proc_pid_is_zombie): New,
7910 from linux-nat.c.
7911 * common/linux-procfs.h (linux_proc_pid_is_zombie): New declaration.
7912 * common/linux-ptrace.c: New file.
7913 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-ptrace.o.
7914 * config/arm/linux.mh: Likewise.
7915 * config/i386/linux.mh: Likewise.
7916 * config/i386/linux64.mh: Likewise.
7917 * config/ia64/linux.mh: Likewise.
7918 * config/m32r/linux.mh: Likewise.
7919 * config/m68k/linux.mh: Likewise.
7920 * config/mips/linux.mh: Likewise.
7921 * config/pa/linux.mh: Likewise.
7922 * config/powerpc/linux.mh: Likewise.
7923 * config/powerpc/ppc64-linux.mh: Likewise.
7924 * config/powerpc/spu-linux.mh: Likewise.
7925 * config/s390/s390.mh: Likewise.
7926 * config/sparc/linux.mh: Likewise.
7927 * config/sparc/linux64.mh: Likewise.
7928 * config/xtensa/linux.mh: Likewise.
7929 * linux-nat.c (linux_lwp_is_zombie): Remove, move it to
7930 common/linux-procfs.c.
7931 (wait_lwp): Rename linux_lwp_is_zombie to linux_proc_pid_is_zombie.
7932
7933 2012-03-13 Hui Zhu <teawater@gmail.com>
7934 Pedro Alves <palves@redhat.com>
7935
7936 * breakpoint.c (init_breakpoint_sal): New flags parameter. Handle
7937 CREATE_BREAKPOINT_FLAGS_INSERTED.
7938 (create_breakpoint_sal, create_breakpoints_sal)
7939 (base_breakpoint_create_breakpoints_sal)
7940 (tracepoint_create_breakpoints_sal)
7941 (strace_marker_create_breakpoints_sal): New flags parameter. Pass
7942 down.
7943 (break_command_1, handle_gnu_v3_exceptions, trace_command)
7944 (ftrace_command, strace_command): Adjust.
7945 (create_tracepoint_from_upload): Pass
7946 CREATE_BREAKPOINT_FLAGS_INSERTED.
7947 * breakpoint.h (enum breakpoint_create_flags): New.
7948 (create_breakpoint): New flags parameter.
7949 * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust.
7950 * python/py-breakpoint.c (bppy_init): Adjust.
7951 * python/py-finishbreakpoint.c (bpfinishpy_init): Adjust.
7952 * spu-tdep.c (spu_catch_start): Adjust.
7953
7954 2012-03-13 Pedro Alves <palves@redhat.com>
7955 Hui Zhu <teawater@gmail.com>
7956 Yao Qi <yao@codesourcery.com>
7957
7958 * remote.c (struct remote_state): New field `starting_up'.
7959 (remote_start_remote): Set and clear it.
7960 (remote_can_download_tracepoint): If starting up, return false.
7961
7962 2012-03-13 Yao Qi <yao@codesourcery.com>
7963
7964 * inferior.h (struct inferior): Remove fields any_syscall_count,
7965 syscalls_counts and total_syscalls_count. Move them to new
7966 struct catch_syscall_inferior_data in breakpoint.c.
7967 * breakpoint.c: Call DEF_VEC_I(int).
7968 (struct catch_syscall_inferior_data): New.
7969 (get_catch_syscall_inferior_data): New.
7970 (catch_syscall_inferior_data_cleanup): New.
7971 (insert_catch_syscall): Update to access data in
7972 struct catch_syscall_inferior_data.
7973 (insert_catch_syscall): Likewise.
7974 (remove_catch_syscall): Likewise.
7975 (remove_catch_syscall): Likewise.
7976 (is_syscall_catchpoint_enabled): Likewise.
7977 (add_catch_command): Likewise.
7978 (_initialize_breakpoint): Register cleanup.
7979 * breakpoint.h: Removed DEF_VEC_I(int).
7980 * dwarf2loc.c: Call DEF_VEC_I(int).
7981 * mi/mi-main.c: Likewise.
7982
7983 2012-03-12 Mark Kettenis <kettenis@gnu.org>
7984
7985 * inf-ptrace.c (inf_ptrace_post_attach): Make static.
7986
7987 2012-03-12 Chris January <chris.january@allinea.com>
7988
7989 * aix-thread.c (_initialize_aix_thread): Add prototype.
7990 * rs6000-nat.c (_initialize_rs6000_nat): Ditto.
7991 * xcoffsolib.c (_initialize_xcoffsolib): Ditto.
7992
7993 2012-03-12 Joel Brobecker <brobecker@adacore.com>
7994
7995 * amd64bsd-nat.c: Move #include of "amd64bsd-nat.h" after
7996 include of "amd64-nat.h".
7997
7998 2012-03-12 Tom Tromey <tromey@redhat.com>
7999
8000 * buildsym.c (record_pending_block): Now static.
8001 * buildsym.h: (record_pending_block): Remove.
8002
8003 2012-03-12 Andreas Tobler <andreast@fgznet.ch>
8004
8005 * amd64bsd-nat.c: Include amd64bsd-nat.h.
8006
8007 2012-03-09 Tom Tromey <tromey@redhat.com>
8008
8009 * dwarf2read.c (struct dwarf2_cu) <checked_producer,
8010 producer_is_gxx_lt_4_6>: New fields.
8011 (producer_is_gxx_lt_4_6): Use and update producer cache fields.
8012
8013 2012-03-09 Tom Tromey <tromey@redhat.com>
8014
8015 * dwarf2read.c (dwarf2_attr): Avoid tail-recursive call.
8016
8017 2012-03-08 Joel Brobecker <brobecker@adacore.com>
8018
8019 * ravenscar-sparc-thread.c (_initialize_ravenscar_sparc): Add
8020 prototype.
8021
8022 2012-03-08 Joel Brobecker <brobecker@adacore.com>
8023
8024 * ravenscar-thread.c (_initialize_ravenscar): Add prototype.
8025
8026 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
8027
8028 Fix -Wmissing-prototypes build.
8029 * arm-linux-nat.c (get_thread_id): Make it static.
8030 * xtensa-linux-nat.c (get_thread_id): Likewise.
8031
8032 2012-03-08 Joel Brobecker <brobecker@adacore.com>
8033
8034 * server.c (process_point_options): If a conditional expression
8035 is found, only print a message if remote_debug is nonzero.
8036
8037 2012-03-08 Luis Machado <lgustavo@codesourcery.com>
8038
8039 * ax-gdb.c (gen_fetch): Fail gracefully and use error instead
8040 of internal error for unknown/unsupported types.
8041
8042 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
8043
8044 Fix CU relative vs. absolute DIE offsets.
8045 * dwarf2loc.h (dwarf2_fetch_die_location_block): Rename parameter
8046 offset to offset_in_cu.
8047 * dwarf2read.c (process_enumeration_scope): Add CU offset to
8048 TYPE_OFFSET.
8049 (dwarf2_fetch_die_location_block): Rename parameter offset to
8050 offset_in_cu. New variable offset, add CU offset to OFFSET_IN_CU.
8051
8052 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
8053
8054 * libunwind-frame.c: Rename to ...
8055 * ia64-libunwind-tdep.c: ... here.
8056 * libunwind-frame.h: Rename to ...
8057 * ia64-libunwind-tdep.h: ... here.
8058 * Makefile.in (HFILES_NO_SRCDIR): Rename libunwind-frame.h to
8059 ia64-libunwind-tdep.h.
8060 (ALLDEPFILES): Rename libunwind-frame.c to ia64-libunwind-tdep.c.
8061 * README (--with-libunwind): Rename to ...
8062 (--with-libunwind-ia64): ... here, note it is ia64 specific now.
8063 * config.in: Regenerate.
8064 * configure: Regenerate.
8065 * configure.ac: New option --with-libunwind-ia64, make the
8066 AS_HELP_STRING ia64 specific. Deprecate option --with-libunwind.
8067 Remove AC_DEFINE for HAVE_LIBUNWIND.
8068 * ia64-libunwind-tdep.c: Make the file top comment ia64 specific.
8069 Rename libunwind-frame.h #include to ia64-libunwind-tdep.h.
8070 Rename libunwind-frame in the general comment.
8071 * ia64-libunwind-tdep.h: Make the file top comment ia64 specific.
8072 Rename symbol LIBUNWIND_FRAME_H to IA64_TDEP_LIBUNWIND_FRAME_H.
8073 Move forward declarations inside #ifndef. Rename libunwind-frame in
8074 the general comment.
8075 * ia64-tdep.c: Rename libunwind-frame.h #include to
8076 ia64-libunwind-tdep.h.
8077 (ia64_gdb2uw_regnum, ia64_uw2gdb_regnum, ia64_is_fpreg)
8078 (ia64_libunwind_descr): Rename libunwind-frame to
8079 ia64-libunwind-tdep in these function comments.
8080 * ia64-tdep.h: Rename libunwind-frame.h #include to
8081 ia64-libunwind-tdep.h.
8082 * ia64-vms-tdep.c (ia64_vms_libunwind_descr): Rename libunwind-frame to
8083 ia64-libunwind-tdep in that data comment.
8084
8085 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
8086
8087 * libunwind-frame.h (struct frame_unwind): New declaration.
8088
8089 2012-03-08 Joel Brobecker <brobecker@adacore.com>
8090
8091 * breakpoint.c (_initialize_breakpoint): Fix error in help of
8092 "set breakpoint condition-evaluation" command.
8093
8094 2012-03-08 Tristan Gingold <gingold@adacore.com>
8095
8096 * sparc-stub.c: Move to stubs/
8097 * sh-stub.c: Likewise.
8098 * m68k-stub.c: Likewise.
8099 * m32r-stub.c: Likewise.
8100 * i386-stub.c: Likewise.
8101
8102 2012-03-08 Andreas Schwab <schwab@linux-m68k.org>
8103
8104 * m68klinux-tdep.c (m68k_linux_init_abi): Register
8105 linux_get_siginfo_type.
8106
8107 * m68klinux-nat.c: Include "gdb_proc_service.h".
8108 (PTRACE_GET_THREAD_AREA): Define.
8109 (ps_get_thread_area): New function.
8110
8111 2012-03-08 Yao Qi <yao@codesourcery.com>
8112
8113 * remote.c (remote_get_noisy_reply): Replace `sprintf' with
8114 `xsnprintf'.
8115 (remote_query_attached): Likewise.
8116 (remote_static_tracepoint_marker_at): Likewise.
8117 (remote_set_permissions): Likewise.
8118 (remote_detach_1, extended_remote_attach_1): Likewise.
8119 (send_g_packet, remote_vkill): Likewise.
8120 (extended_remote_disable_randomization): Likewise.
8121 (remote_add_target_side_condition): Likewise.
8122 (remote_insert_breakpoint): Likewise.
8123 (remote_remove_breakpoint): Likewise.
8124 (remote_insert_watchpoint): Likewise.
8125 (remote_remove_watchpoint): Likewise.
8126 (remote_insert_hw_breakpoint): Likewise.
8127 (remote_insert_hw_breakpoint): Likewise.
8128 (remote_remove_hw_breakpoint): Likewise.
8129 (remote_download_command_source): Likewise.
8130 (remote_download_tracepoint): Likewise.
8131 (remote_download_trace_state_variable): Likewise.
8132 (remote_disable_tracepoint): Likewise.
8133 (remote_trace_set_readonly_regions): Likewise.
8134 (remote_get_tracepoint_status): Likewise.
8135 (remote_trace_find): Likewise.
8136 (remote_get_trace_state_variable_value): Likewise.
8137 (remote_set_disconnected_tracing): Likewise.
8138 (remote_set_circular_trace_buffer): Likewise.
8139 (remote_get_min_fast_tracepoint_insn_len): Likewise.
8140 (remote_use_agent): Likewise.
8141 (remote_add_target_side_condition): Add one parameter BUF_SIZE.
8142 Update callers.
8143
8144 2012-03-07 Pedro Alves <palves@redhat.com>
8145
8146 * NEWS: Mention QProgramSignals.
8147 * inferior.h (update_signals_program_target): Declare.
8148 * infrun.c: (update_signals_program_target): New.
8149 (handle_command): Update the target of the new program signals
8150 array changes.
8151 * remote.c (PACKET_QProgramSignals): New enum.
8152 (last_program_signals_packet): New global.
8153 (remote_program_signals): New.
8154 (remote_start_remote): Update the target with the program signals
8155 list.
8156 (remote_protocol_features): Add entry for QPassSignals.
8157 (remote_open_1): Free anc clear last_program_signals_packet.
8158 (init_remote_ops): Install remote_program_signals.
8159 * target.c (update_current_target): Adjust.
8160 (target_program_signals): New.
8161 * target.h (struct target_ops) <to_program_signals>: New field.
8162 (target_program_signals): Declare.
8163
8164 2012-03-07 Pedro Alves <palves@redhat.com>
8165
8166 * NEWS: Add subtitle for new z0/z1 conditional breakpoint
8167 extensions.
8168
8169 2012-03-07 Andreas Schwab <schwab@linux-m68k.org>
8170
8171 * m68klinux-nat.c (getregs_supplies): Make static.
8172 (getfpregs_supplies): Likewise.
8173 (have_ptrace_getregs): Likewise.
8174
8175 2012-03-06 Joel Brobecker <brobecker@adacore.com>
8176
8177 * dwarf2read.c (dwarf2_get_die_type): Pass absolute offset
8178 in call to get_die_type_at_offset.
8179
8180 2012-03-06 Stan Shebs <stan@codesourcery.com>
8181
8182 * mi/mi-cmd-break.c: Enforce coding standards, fix comments.
8183 * mi/mi-cmd-disas.c: Ditto.
8184 * mi/mi-cmd-env.c: Ditto.
8185 * mi/mi-cmd-file.c: Ditto.
8186 * mi/mi-cmd-stack.c: Ditto.
8187 * mi/mi-cmd-target.c: Ditto.
8188 * mi/mi-cmd-var.c: Ditto.
8189 * mi/mi-cmds.c: Ditto.
8190 * mi/mi-cmds.h: Ditto.
8191 * mi/mi-console.c: Ditto.
8192 * mi/mi-getopt.c: Ditto.
8193 * mi/mi-getopt.h: Ditto.
8194 * mi/mi-interp.c: Ditto.
8195 * mi/mi-main.c: Ditto.
8196 * mi/mi-out.c: Ditto.
8197 * mi/mi-parse.c: Ditto.
8198 * mi/mi-parse.h: Ditto.
8199 * mi/mi-symbol-cmds.c: Ditto.
8200
8201 * mi/mi-getopt.h: Move mi_opt struct up.
8202 * mi/mi-main.c (captured_mi_execute_command): Remove redundant
8203 return.
8204 * mi/mi-out.c (_initialize_mi_out): Remove empty initialize.
8205
8206 2012-03-06 Tom Tromey <tromey@redhat.com>
8207
8208 * proc-service.c (ps_pglobal_lookup): Set the current program
8209 space.
8210
8211 2012-03-06 Pedro Alves <palves@redhat.com>
8212
8213 * gregset.h [HAVE_SYS_PROCFS_H]: Include <sys/procfs.h>.
8214
8215 2012-03-05 Joel Brobecker <brobecker@adacore.com>
8216
8217 * MAINTAINERS: List Maciej W. Rozycki as the mips maintainer.
8218
8219 2012-03-05 Jan Kratochvil <jan.kratochvil@redhat.com>
8220
8221 Code cleanup.
8222 * common/linux-osdata.c (linux_common_core_of_thread): New function
8223 comment.
8224 * linux-nat.c (linux_nat_wait_1): Replace linux_nat_core_of_thread_1
8225 call by linux_common_core_of_thread.
8226 (linux_nat_core_of_thread_1): Remove.
8227 * linux-nat.h (linux_nat_core_of_thread_1): Remove declaration.
8228 * linux-thread-db.c: Include linux-osdata.h.
8229 (update_thread_core): Replace linux_nat_core_of_thread_1 call by
8230 linux_common_core_of_thread.
8231
8232 2012-03-05 Tom Tromey <tromey@redhat.com>
8233
8234 * value.c (value_primitive_field): Don't fetch contents for
8235 non-virtual bases.
8236
8237 2012-03-05 Tom Tromey <tromey@redhat.com>
8238
8239 * jv-valprint.c (java_value_print): Correctly compute 'obj_addr'.
8240
8241 2012-03-05 Andreas Arnez <arnez@linux.vnet.ibm.com>
8242
8243 * s390-nat.c: Include "gregset.h".
8244
8245 2012-03-05 Jan Kratochvil <jan.kratochvil@redhat.com>
8246
8247 * libunwind-frame.c (LIBUNWIND_SO): Change .7 to .8.
8248 [!LIBUNWIND_SO] (LIBUNWIND_SO_7): New #define.
8249 (libunwind_load): New variable so_error, use it for dlerror. Try to
8250 load also LIBUNWIND_SO_7.
8251
8252 2012-03-05 Pedro Alves <palves@redhat.com>
8253
8254 * i387-tdep.c (i387_supply_xsave): Assert the xsave section buffer
8255 is not NULL, and remove resulting dead code.
8256
8257 2012-03-05 Thomas Schwinge <thomas@codesourcery.com>
8258
8259 * sh-tdep.c (sh_skip_prologue): Provide an upper limit on the function
8260 prologue to sh_analyze_prologue.
8261 (sh_analyze_prologue): Make better use of such an upper limit, and
8262 generally be more cautious about accessing memory.
8263
8264 2012-03-05 Tom Tromey <tromey@redhat.com>
8265
8266 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Rename from
8267 _initialize_ia64_hpux_tdep.
8268
8269 2012-03-05 Pedro Alves <palves@redhat.com>
8270
8271 PR gdb/13766
8272
8273 * i387-tdep.c (i387_supply_xsave): If we have an xsave buffer, and
8274 the register state is clear, supply explicit zero, instead of
8275 marking the register unavailable.
8276
8277 2012-03-05 Tristan Gingold <gingold@adacore.com>
8278
8279 * NEWS: Mention OpenVMS ia64 new target.
8280
8281 2012-03-05 Tristan Gingold <gingold@adacore.com>
8282
8283 * ia64-tdep.h: Include libunwind-frame.h and libunwind-ia64.h.
8284 (ia64_unw_accessors, ia64_unw_rse_accessors)
8285 (ia64_libunwind_descr): Declare.
8286 * ia64-vms-tdep.c: New file.
8287 * ia64-tdep.c (ia64_unw_accessors, ia64_unw_rse_accessors)
8288 (ia64_libunwind_descr): Make them public.
8289 * configure.tgt: Add ia64-*-*vms*.
8290 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-vms-tdep.o
8291 (ALLDEPFILES): Add ia64-vms-tdep.c
8292
8293 2012-03-05 Tristan Gingold <gingold@adacore.com>
8294
8295 * target.h (target_object): Add TARGET_OBJECT_OPENVMS_UIB.
8296 * remote.c (PACKET_qXfer_uib): New enum value.
8297 (remote_protocol_features): Add entry for PACKET_qXfer_uib.
8298 (remote_xfer_partial): Handle TARGET_OBJECT_OPENVMS_UIB.
8299 (_initialize_remote): Call add_packet_config_cmd for
8300 xfer:uib packet.
8301
8302 2012-03-05 Tristan Gingold <gingold@adacore.com>
8303
8304 * osabi.c (gdb_osabi_names): Add OpenVMS.
8305 (generic_elf_osabi_sniffer): Likewise.
8306 * defs.h (gdb_osabi): Add GDB_OSABI_OPENVMS.
8307
8308 2012-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
8309
8310 Removed unused code.
8311 * libunwind-frame.c (libunwind_frame_unwind)
8312 (libunwind_frame_base_address): Remove.
8313 * libunwind-frame.h (libunwind_frame_base_address): Remove declaration.
8314
8315 2012-03-04 Yao Qi <yao@codesourcery.com>
8316
8317 * common/agent.c (gdb_connect_sync_socket): Add _ markup and
8318 remove trailing new line.
8319 (agent_run_command, agent_run_command): Add _ markup.
8320 (agent_capability_check): Likewise.
8321
8322 2012-03-03 Jan Kratochvil <jan.kratochvil@redhat.com>
8323
8324 * breakpoint.c (set_condition_evaluation_mode): Set
8325 CONDITION_EVALUATION_MODE unconditionally.
8326
8327 2012-03-03 Yao Qi <yao@codesourcery.com>
8328
8329 * common/agent.c (agent_look_up_symbols): Add one parameter 'arg'.
8330 * common/agent.h: Update declaration.
8331 * inf-child.c (inf_child_use_agent): New.
8332 (inf_child_can_use_agent): New.
8333 (inf_child_target): Initialize fields `to_use_agent'
8334 and `to_can_use_agent'.
8335 * agent.c (agent_new_objfile): New.
8336 (_initialize_agent): Add agent_new_objfile to new_objfile
8337 observer.
8338
8339 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
8340 New.
8341 (linux_target_install_ops): Initialize field
8342 `to_static_tracepoint_markers_by_strid'.
8343 * remote.c (free_current_marker): Move it to ...
8344 * tracepoint.c (free_current_marker): ... here. New.
8345 (cleanup_target_stop): New.
8346 * tracepoint.h: Declare free_current_marker.
8347 * NEWS: Add one entry about `info static-tracepoint-marker'.
8348
8349 2012-03-03 Yao Qi <yao@codesourcery.com>
8350
8351 * common/agent.c (agent_loaded_p): New.
8352 (agent_look_up_symbols): New global.
8353 * common/agent.h: Declare agent_loaded_p.
8354
8355 2012-03-03 Yao Qi <yao@codesourcery.com>
8356
8357 * common/agent.c (struct ipa_sym_addresses) <addr_capability>: New.
8358 (agent_capability_check, agent_capability_invalidate): New.
8359 (symbol_list): New array element.
8360 * common/agent.h (enum agent_capa): New.
8361 * target.c (target_pre_inferior): Call agent_capability_invalidate.
8362
8363 2012-03-03 Yao Qi <yao@codesourcery.com>
8364
8365 * target.h (struct target_ops) <to_use_agent>: New field.
8366 (struct target_ops) <to_can_use_agent>: New field.
8367 (target_use_agent, target_can_use_agent): New macro.
8368 * target.c (update_current_target): Update.
8369 * remote.c: New enum `PACKET_QAgent'.
8370 (remote_protocol_features): Add a new element.
8371 (remote_use_agent, remote_can_use_agent): New.
8372 (init_remote_ops): Initialize field `can_use_agent' with
8373 remote_can_use_agent. Intiailize field `use_agent' with
8374 remote_use_agent.
8375 * common/agent.c (use_agent): New global.
8376 * common/agent.h: Declare it.
8377 * tracepoint.c (info_static_tracepoint_markers_command): Add
8378 comment.
8379 * Makefile.in (SFILES): Add common/agent.c and agent.c.
8380 (COMMON_OBS): Add common/agent.o and agent.o
8381 (common-agent.o): New rule.
8382 * agent.c: New.
8383
8384 2012-03-03 Yao Qi <yao@codesourcery.com>
8385
8386 * common/agent.c: New.
8387 * common/agent.h: New.
8388 * configure.ac: Add `sys/socket.h' and `sys/un.h' to
8389 AC_CHECK_HEADERS.
8390 * configure, configh.in: Regenerated.
8391
8392 2012-03-02 Kevin Buettner <kevinb@redhat.com>
8393
8394 * sh-tdep.c (sh_frame_cache): Don't fetch the FPSCR register
8395 unless it exists for this architecture.
8396
8397 2012-03-02 Joel Brobecker <brobecker@adacore.com>
8398
8399 * language.h (struct language_defn): New "method" la_read_var_value.
8400 * findvar.c: #include "language.h".
8401 (default_read_var_value): Renames read_var_value. Rewrite
8402 function description.
8403 (read_var_value): New function.
8404 * value.h (default_read_var_value): Add prototype.
8405 * ada-lang.c (ada_read_renaming_var_value, ada_read_var_value):
8406 New functions.
8407 (ada_language_defn): Add entry for la_read_var_value.
8408 * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, language.c,
8409 * m2-lang.c, objc-lang.c, opencl-lang.c, p-lang.c: Update
8410 language_defn structures to add entry for new la_read_var_value
8411 field.
8412
8413 2012-03-02 Tom Tromey <tromey@redhat.com>
8414 Pedro Alves <palves@redhat.com>
8415
8416 PR breakpoints/13776:
8417 * breakpoint.c (breakpoint_init_inferior): Delete step-resume
8418 breakpoints.
8419 (delete_longjmp_breakpoint_at_next_stop): New.
8420 * breakpoint.h (delete_longjmp_breakpoint_at_next_stop): Declare.
8421 * target.c (generic_mourn_inferior): Call mark_breakpoints_out
8422 before deleting the inferior. Add comments.
8423 * thread.c (clear_thread_inferior_resources): Don't delete lonjmp
8424 breakpoints immediately, but only on next stop. Move that code
8425 next to where we mark other breakpoints for deletion.
8426
8427 2012-03-02 Joel Brobecker <brobecker@adacore.com>
8428
8429 * mips-linux-nat.c (mips_linux_read_description): Add missing i18n
8430 marker.
8431 * mips-tdep.c (mips_linux_reg_names): Improve comment to avoid ARI
8432 violation.
8433
8434 2012-03-02 Pedro Alves <palves@redhat.com>
8435
8436 * linux-thread-db.c (attach_thread): Avoid in_thread_list call.
8437
8438 2012-03-02 Ulrich Weigand <uweigand@de.ibm.com>
8439
8440 Fix -Wmissing-prototypes build.
8441 * ppc-linux-nat.c (ppc_linux_get_hwcap): Make static.
8442 * remote-sim.c (gdbsim_has_all_memory): Likewise.
8443 (gdbsim_has_memory): Likewise.
8444
8445 2012-03-02 Yao Qi <yao@codesourcery.com>
8446
8447 Fix -Wmissing-prototypes build.
8448 * charset.c (phony_iconv_open): Make static.
8449 (phony_iconv_close, phony_iconv): Likewise.
8450 * i386-linux-nat.c (_initialize_i386_linux_nat): New prototype.
8451 * i386-windows-nat.c (_initialize_i386_windows_nat): New
8452 prototype.
8453 * mingw-hdep.c (_initialize_mingw_hdep): New prototype.
8454 * ser-mingw.c (create_select_thread): Make static.
8455 * windows-termcap.c (tgetent): New prototype.
8456 (tgetnum, tgetflag, tgetstr, tputs, tgoto): Likewise.
8457
8458 2012-03-02 Zhang Yuanhui <asmwarrior@gmail.com>
8459
8460 Fix -Wmissing-prototypes build.
8461 * windows-nat.c (dll_symbol_command, ctrl_c_handler): Make them static.
8462 (_initialize_windows_nat, _initialize_check_for_gdb_ini)
8463 (_initialize_loadable): New prototypes.
8464
8465 2012-03-02 Doug Evans <dje@google.com>
8466
8467 * dwarf2read.c (load_full_comp_unit): Remove unnecessary reading of
8468 abbrev table, read_comp_unit will do it.
8469
8470 2012-03-02 Jan Kratochvil <jan.kratochvil@redhat.com>
8471
8472 Fix -Wmissing-prototypes build.
8473 * alpha-tdep.c (alpha_deal_with_atomic_sequence): Make it static.
8474 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): New prototype.
8475 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Likewise.
8476 * arm-symbian-tdep.c (arm_symbian_skip_trampoline_code): Make it static.
8477 (_initialize_arm_symbian_tdep): New prototype.
8478 * arm-wince-tdep.c (arm_wince_skip_main_prologue): Make it static.
8479 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): New prototype.
8480 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Make it
8481 static.
8482 * lm32-tdep.c (_initialize_lm32_tdep): New prototype.
8483 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): New
8484 prototype.
8485 * microblaze-tdep.c (microblaze_debug, microblaze_fetch_instruction)
8486 (microblaze_skip_prologue, microblaze_frame_cache): Make them static.
8487 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Make it
8488 static.
8489 * moxie-tdep.c (moxie_process_record): Likewise.
8490 * remote-mips.c (mips_can_use_watchpoint, mips_insert_watchpoint)
8491 (mips_remove_watchpoint, mips_stopped_by_watchpoint): Make them static.
8492 * rl78-tdep.c (rl78_breakpoint_from_pc): Make it static.
8493 (_initialize_rl78_tdep): New prototype.
8494 * rx-tdep.c (rx_breakpoint_from_pc): Make it static.
8495 (_initialize_rx_tdep): New prototype.
8496 * solib-darwin.c (darwin_in_dynsym_resolve_code): Make it static.
8497 (_initialize_darwin_solib): New prototype.
8498 * solib-spu.c: Include solib-spu.h.
8499 (_initialize_spu_solib): New prototype.
8500 * spu-multiarch.c (_initialize_spu_multiarch): New prototype.
8501 * tic6x-tdep.c (tic6x_analyze_prologue, tic6x_skip_prologue)
8502 (tic6x_breakpoint_from_pc, tic6x_frame_unwind_cache)
8503 (tic6x_software_single_step): Make it static.
8504 (_initialize_tic6x_tdep): New prototype.
8505
8506 2012-03-02 Jan Kratochvil <jan.kratochvil@redhat.com>
8507
8508 Fix -Wmissing-prototypes build.
8509 * cris-tdep.c (cris_can_use_hardware_watchpoint)
8510 (cris_region_ok_for_watchpoint, cris_stopped_data_address): Remove.
8511
8512 2012-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
8513
8514 Fix -Wmissing-prototypes build.
8515 * frv-tdep.c (frv_check_watch_resources, frv_stopped_data_address)
8516 (frv_have_stopped_data_address): Remove.
8517
8518 2012-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
8519
8520 Fix -Wmissing-prototypes build.
8521 * Makefile.in (HFILES_NO_SRCDIR): Add sh64-tdep.h.
8522 * sh-tdep.c: Include sh64-tdep.h.
8523 * sh-tdep.h (sh64_gdbarch_init, sh64_show_regs): Remove declarations.
8524 * sh64-tdep.c: Include sh64-tdep.h.
8525 * sh64-tdep.h: New file.
8526
8527 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
8528
8529 * mips-tdep.c (mips32_scan_prologue): Correct indentation.
8530
8531 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
8532
8533 * mips-tdep.c (mips_gdbarch_init): Only set pc_regnum and
8534 sp_regnum once the gdbarch_init_osabi hook has been called.
8535
8536 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
8537
8538 * mips-tdep.c (mips32_bc1_pc): New function.
8539 (mips32_next_pc): Handle BC1ANY2F, BC1ANY2T, BC1ANY4F, BC1ANY4T,
8540 BPOSGE32 and BPOSGE64 instructions.
8541 (deal_with_atomic_sequence): Likewise.
8542 (mips32_instruction_has_delay_slot): Likewise.
8543
8544 2012-03-01 Maciej W. Rozycki <macro@mips.com>
8545 Chris Dearman <chris@mips.com>
8546 Maciej W. Rozycki <macro@codesourcery.com>
8547 Joseph Myers <joseph@codesourcery.com>
8548
8549 * features/mips-dsp.xml: New file.
8550 * features/mips64-dsp.xml: New file.
8551 * features/mips-dsp-linux.xml: New file.
8552 * features/mips64-dsp-linux.xml: New file.
8553 * features/Makefile (WHICH): Add mips-dsp-linux and
8554 mips64-dsp-linux.
8555 (mips-dsp-expedite, mips64-dsp-expedite): New variables.
8556 * features/mips-dsp-linux.c: New file.
8557 * features/mips64-dsp-linux.c: New file.
8558 * regformats/mips-dsp-linux.dat: New file.
8559 * regformats/mips64-dsp-linux.dat: New file.
8560 * mips-linux-nat.c (mips_linux_register_addr): Handle DSP
8561 registers.
8562 (mips64_linux_register_addr): Likewise.
8563 (mips64_linux_regsets_fetch_registers): Likewise.
8564 (mips64_linux_regsets_store_registers): Likewise.
8565 (mips64_linux_fetch_registers): Update call to
8566 mips64_linux_regsets_fetch_registers.
8567 (mips64_linux_store_registers): Update call to
8568 mips64_linux_regsets_store_registers.
8569 (mips_linux_read_description): Probe for DSP registers.
8570 (_initialize_mips_linux_nat): Call initialize_tdesc_mips_dsp_linux
8571 and initialize_tdesc_mips64_dsp_linux.
8572 * mips-linux-tdep.c (supply_gregset, mips64_supply_gregset):
8573 Remove padding of no longer used embedded register slots.
8574 * mips-linux-tdep.h (DSP_BASE, DSP_CONTROL): New macros.
8575 (MIPS_RESTART_REGNUM): Redefine enum value.
8576 * mips-tdep.c (mips_generic_reg_names): Remove trailing null
8577 strings.
8578 (mips_tx39_reg_names): Likewise.
8579 (mips_linux_reg_names): New array of register names for Linux
8580 targets.
8581 (mips_register_name): Check for a null pointer in
8582 mips_processor_reg_names and return an empty string.
8583 (mips_register_type): Exclude embedded registers for the IRIX
8584 and Linux ABIs.
8585 (mips_pseudo_register_type): Likewise. Use dynamic numbers to
8586 refer to FP registers, LO, HI, BadVAddr, Cause and PC. Handle
8587 DSP registers.
8588 (mips_stab_reg_to_regnum): Handle DSP accumulators.
8589 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Likewise.
8590 (mips_gdbarch_init): Likewise. Initialize internal register
8591 indices for the Linux ABI. Use dynamic numbers to refer to
8592 registers, as applicable, while parsing the target description.
8593 * mips-tdep.h (struct mips_regnum): Add dspacc/dspctl offsets.
8594
8595 2012-03-01 Joel Brobecker <brobecker@adacore.com>
8596
8597 * frame.h (read_frame_register_unsigned): Fix typo in function
8598 description.
8599
8600 2012-03-01 Pedro Alves <palves@redhat.com>
8601
8602 * jit-reader.in [!__cplusplus]
8603 (GDB_DECLARE_GPL_COMPATIBLE_READER): Add missing backslash.
8604
8605 2012-03-01 Pedro Alves <palves@redhat.com>
8606
8607 * configure.ac (build_warnings): Add -Wmissing-prototypes.
8608 * configure: Regenerate.
8609
8610 2012-03-01 Pedro Alves <palves@redhat.com>
8611
8612 * amd64-linux-tdep.c (amd64_linux_record_signal): Make static.
8613 * breakpoint.c (create_exception_master_breakpoint, trace_command)
8614 (ftrace_command, strace_command): Make static.
8615 * d-lang.c (_initialize_d_language): Declare.
8616 * dwarf2expr.c (_initialize_dwarf2expr): Declare.
8617 * dwarf2loc.c (_initialize_dwarf2loc):
8618 * dwarf2read.c (process_psymtab_comp_unit): Make static.
8619 * exec.c (exec_get_section_table): Make static.
8620 * i386-linux-tdep.c (i386_linux_record_signal): Make static.
8621 * infcmd.c (ensure_valid_thread, ensure_not_tfind_mode): Make static.
8622 * inferior.c (remove_inferior_command, add_inferior_command)
8623 (clone_inferior_command): Make static.
8624 * linux-nat.c (linux_nat_thread_address_space)
8625 (linux_nat_core_of_thread): Make static.
8626 * linux-tdep.c (_initialize_linux_tdep): Declare.
8627 * objc-lang.c (_initialize_objc_lang): Declare.
8628 * opencl-lang.c (builtin_opencl_type, opencl_language_arch_info):
8629 Make static.
8630 (_initialize_opencl_language): Declare.
8631 * record.c (_initialize_record): Declare.
8632 * remote.c (demand_private_info, remote_get_tib_address)
8633 (remote_supports_cond_tracepoints)
8634 (remote_supports_fast_tracepoints, remote_get_tracepoint_status):
8635 Make static.
8636 * skip.c (_initialize_step_skip): Declare.
8637 * symtab.c (skip_prologue_using_lineinfo): Make static.
8638 * tracepoint.c (delete_trace_state_variable)
8639 (trace_variable_command, delete_trace_variable_command)
8640 (get_uploaded_tsv, find_matching_tracepoint_location)
8641 (find_matching_tsv, create_tsv_from_upload, get_traceframe_info):
8642 Make static.
8643 * value.c (pack_unsigned_long): Make static.
8644 * varobj.c (varobj_ensure_python_env): Make static.
8645 * windows-tdep.c (_initialize_windows_tdep): Declare.
8646 * xml-syscall.c (make_cleanup_free_syscalls_info): Make static.
8647
8648 2012-03-01 Pedro Alves <palves@redhat.com>
8649
8650 * linux-tdep.c (linux_has_shared_address_space): Make static. Add
8651 gdbarch parameter.
8652 (linux_init_abi): Install it as has_shared_address_space gdbarch
8653 callback.
8654
8655 2012-03-01 Pedro Alves <palves@redhat.com>
8656
8657 * observer.c (observer_test_first_notification_function)
8658 (observer_test_second_notification_function)
8659 (observer_test_third_notification_function): Add declarations.
8660
8661 2012-03-01 Pedro Alves <palves@redhat.com>
8662
8663 * common/signals.c (default_target_signal_to_host)
8664 (default_target_signal_from_host): Move ...
8665 * arch-utils.c: ... here.
8666 * arch-utils.h (default_target_signal_to_host)
8667 (default_target_signal_from_host): Declare.
8668
8669 * common/signals.c (target_signal_from_command): Move ...
8670 * infrun.c: ... here.
8671 * inferior.h (target_signal_from_command): Declare.
8672 * target.h (target_signal_from_command)
8673 (default_target_signal_from_host, default_target_signal_to_host):
8674 Delete declarations.
8675
8676 * common/signals.c (_initialize_signals): Delete.
8677
8678 2012-03-01 Pedro Alves <palves@redhat.com>
8679
8680 * jit-reader.in (plugin_is_GPL_compatible): Add declarations for
8681 both __cplusplus and !__cplusplus.
8682
8683 2012-03-01 Pedro Alves <palves@redhat.com>
8684
8685 * psymtab.c (find_and_open_source): Delete declaration.
8686 * source.c (find_and_open_source): Move comment ...
8687 * source.h (find_and_open_source): ... to this new declaration.
8688
8689 2012-03-01 Pedro Alves <palves@redhat.com>
8690
8691 * inline-frame.c: Include inline-frame.h.
8692
8693 2012-03-01 Pedro Alves <palves@redhat.com>
8694
8695 * tui/tui-data.c (set_gen_win_origin): Delete.
8696 * tui/tui-data.h (tui_set_gen_win_origin): Delete declaration.
8697 * tui/tui-regs.c (tui_last_reg_element_no_in_line): Delete.
8698
8699 2012-03-01 Pedro Alves <palves@redhat.com>
8700
8701 * remote.c (encode_actions): Delete declaration.
8702 * tracepoint.c (encode_actions): Make extern.
8703 * tracepoint.h (encode_actions): Declare.
8704
8705 2012-03-01 Pedro Alves <palves@redhat.com>
8706
8707 * python/py-breakpoint.c: Include python.h.
8708 * python/py-continueevent.c (create_continue_event_object): Make
8709 static.
8710 * python/py-lazy-string.c (stpy_get_type): Make static.
8711 * python/py-newobjfileevent.c (create_new_objfile_event_object):
8712 Make static.
8713 * python/py-utils.c (unicode_to_target_python_string): Make
8714 static.
8715 * python/py-value.c: Include python.h.
8716
8717 2012-03-01 Pedro Alves <palves@redhat.com>
8718
8719 * inferior.c (delete_threads_of_inferior): Delete.
8720
8721 2012-03-01 Pedro Alves <palves@redhat.com>
8722
8723 Import fallback definitions from glibc.
8724
8725 * gdb_proc_service.h [!HAVE_PROC_SERVICE_H] (struct
8726 ps_prochandle): Forward declare.
8727 (ps_err_e): Use glibc's comments.
8728 [!HAVE_PROC_SERVICE_H] (ps_pdread, ps_pdwrite, ps_ptread)
8729 (ps_ptwrite, ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
8730 (ps_lsetfpregs, ps_getpid, ps_get_thread_area, ps_pglobal_lookup)
8731 (ps_pstop, ps_pcontinue, ps_lstop, ps_lcontinue, ps_lgetxregsize)
8732 (ps_lgetxregs, ps_lsetxregs, ps_plog): Declare.
8733 (struct ps_prochandle): Adjust comment.
8734
8735 2012-03-01 Pedro Alves <palves@redhat.com>
8736
8737 * ada-lang.c (ada_modulus_from_name): Delete.
8738 * ada-lex.l (lexer_init): Make static.
8739
8740 2012-03-01 Pedro Alves <palves@redhat.com>
8741
8742 PR gdb/13767
8743
8744 * frame.c (read_frame_register_unsigned): New.
8745 * frame.h (read_frame_register_unsigned): Declare.
8746 * i387-tdep.c (print_i387_status_word): New parameter `status_p'.
8747 Handle it.
8748 (print_i387_control_word): New parameter `control_p'. Handle it.
8749 (i387_print_float_info): Handle unavailable float registers.
8750
8751 2012-03-01 Keith Seitz <keiths@redhat.com>
8752
8753 * linespec.c (decode_line_2): Sort the list of methods
8754 alphabetically before presenting the user with a selection
8755 menu.
8756
8757 2012-03-01 Doug Evans <dje@google.com>
8758
8759 * dwarf2read.c (dwarf2_cu): Remove unused members has_form_ref_addr,
8760 has_namespace_info.
8761 (dwarf2_read_abbrevs): Remove corresponding initialization.
8762
8763 2012-03-01 Scott J. Goldman <scottjg@vmware.com>
8764
8765 * NEWS: Mention new python command class gdb.COMMAND_USER.
8766 * cli/cli-cmds.c (show_user): Print error when used on a python
8767 command.
8768 (init_cli_cmds): Update documentation strings for "show user" and
8769 "set/show max-user-call-depth" to clarify that it does not apply to
8770 python commands.
8771 * python/py-cmd.c (cmdpy_init): Treat class_user as a valid class in
8772 error check.
8773 (gdbpy_initialize_commands): Add COMMAND_USER as a constant in
8774 gdb python api.
8775 * top.c (execute_command): Only execute a user-defined command as a
8776 legacy macro if c->user_commands is set.
8777
8778 2012-03-01 Tom Tromey <tromey@redhat.com>
8779
8780 * valprint.h (struct generic_val_print_decorations): New.
8781 (generic_val_print): Declare.
8782 * valprint.c (generic_val_print): New function.
8783 * p-valprint.c (p_decorations): New global.
8784 (pascal_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM,
8785 TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_RANGE, TYPE_CODE_INT,
8786 TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ERROR, TYPE_CODE_UNDEF,
8787 TYPE_CODE_BOOL, TYPE_CODE_CHAR>: Call generic_val_print.
8788 * m2-valprint.c (m2_decorations): New global.
8789 (m2_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM, TYPE_CODE_FUNC,
8790 TYPE_CODE_BOOL, TYPE_CODE_RANGE, TYPE_CODE_INT, TYPE_CODE_CHAR,
8791 TYPE_CODE_FLT, TYPE_CODE_METHOD, TYPE_CODE_VOID, TYPE_CODE_UNDEF,
8792 TYPE_CODE_ERROR>: Call generic_val_print.
8793 * f-valprint.c (f_decorations): New global.
8794 (f_val_print): Use print_function_pointer_address.
8795 <TYPE_CODE_REF, TYPE_CODE_FUNC, TYPE_CODE_CHAR, TYPE_CODE_FLAGS,
8796 TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ENUM, TYPE_CODE_RANGE,
8797 TYPE_CODE_BOOL, TYPE_CODE_COMPLEX, TYPE_CODE_UNDEF>: Call
8798 generic_val_print.
8799 * c-valprint.c (c_decorations): New global.
8800 (c_val_print) <TYPE_CODE_MEMBERPTR, TYPE_CODE_REF, TYPE_CODE_ENUM,
8801 TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_METHOD, TYPE_CODE_BOOL,
8802 TYPE_CODE_RANGE, TYPE_CODE_CHAR, TYPE_CODE_FLT,
8803 TYPE_CODE_DECFLOAT, TYPE_CODE_VOID, TYPE_CODE_ERROR,
8804 TYPE_CODE_UNDEF, TYPE_CODE_COMPLEX>: Call generic_val_print.
8805 * ada-valprint.c (ada_val_print_1) <TYPE_CODE_FLAGS>: Remove
8806 case.
8807
8808 2012-03-01 Tom Tromey <tromey@redhat.com>
8809
8810 * valprint.c (val_print): Update.
8811 * p-valprint (pascal_val_print): Return void.
8812 * p-lang.h (pascal_val_print): Return void.
8813 * m2-valprint.c (m2_val_print): Return void.
8814 * m2-lang.h (m2_val_print): Return void.
8815 * language.h (struct language_defn) <la_val_print>: Return void.
8816 * language.c (unk_lang_val_print): Return void.
8817 * jv-valprint.c (java_val_print): Return void.
8818 * jv-lang.h (java_val_print): Return void.
8819 * f-valprint.c (f_val_print): Return void.
8820 * f-lang.h (f_val_print): Return void.
8821 * d-valprint.c (d_val_print): Return void.
8822 (dynamic_array_type): Update.
8823 * d-lang.h (d_val_print): Return void.
8824 * c-valprint.c (c_val_print): Return void.
8825 * c-lang.h (c_val_print): Return void.
8826 * ada-valprint.c (ada_vada_val_print, ada_val_print_1): Return
8827 void.
8828 * ada-lang.h (ada_val_print): Return void.
8829
8830 2012-03-01 Tom Tromey <tromey@redhat.com>
8831
8832 * value.h (val_print): Return void.
8833 * valprint.c (val_print): Return void.
8834
8835 2012-03-01 Tom Tromey <tromey@redhat.com>
8836
8837 * value.h (common_val_print): Return void.
8838 * valprint.c (common_val_print): Return void.
8839
8840 2012-03-01 Tom Tromey <tromey@redhat.com>
8841
8842 * value.h (value_print): Return void.
8843 * valprint.c (value_print): Return void.
8844 * p-valprint.c (pascal_value_print): Return void.
8845 * p-lang.h (pascal_value_print): Return void.
8846 * language.h (struct language_defn) <la_value_print>: Return
8847 void.
8848 * language.c (unk_lang_value_print): Return void.
8849 * jv-valprint.c (java_value_print): Return void.
8850 * jv-lang.h (java_value_print): Return void.
8851 * f-valprint.c (c_value_print): Don't declare.
8852 Include c-lang.h.
8853 * c-valprint.c (c_value_print): Return void.
8854 * c-lang.h (c_value_print): Return void.
8855 * ada-valprint.c (ada_value_print): Return void.
8856 * ada-lang.h (ada_value_print): Return void.
8857
8858 2012-03-01 Tom Tromey <tromey@redhat.com>
8859
8860 * value.c (value_primitive_field): Handle virtual base classes.
8861
8862 2012-03-01 Tom Tromey <tromey@redhat.com>
8863
8864 * gdbtypes.h (struct vbase): Remove.
8865
8866 2012-03-01 Tom Tromey <tromey@redhat.com>
8867
8868 * c-valprint.c (print_function_pointer_address): Move...
8869 * valprint.c: ... here. Make non-static.
8870 * m2-valprint.c (print_function_pointer_address): Remove.
8871 * valprint.h (print_function_pointer_address): Declare.
8872
8873 2012-03-01 Joel Brobecker <brobecker@adacore.com>
8874
8875 * NEWS: Document the fact that one can provide a condition when
8876 creating an Ada exception catchpoint.
8877
8878 2012-03-01 Tom Tromey <tromey@redhat.com>
8879
8880 * valprint.c (val_print_type_code_flags): Fix placement of
8881 trailing brace.
8882
8883 2012-03-01 Joel Brobecker <brobecker@adacore.com>
8884
8885 * copyright.py (MULTILINE_COMMENT_PREFIXES): Delete.
8886 (update_files): Do not set MULTILINE_COMMENT_PREFIXES
8887 environment variable before calling update-copyright.
8888
8889 2012-03-01 Joel Brobecker <brobecker@adacore.com>
8890
8891 * gnulib/extra/update-copyright: Update to the latest from
8892 gnulib's git repository.
8893 * copyright.py: Set UPDATE_COPYRIGHT_USE_INTERVALS environment
8894 variable to 2 instead of 1.
8895
8896 2012-02-29 Joel Brobecker <brobecker@adacore.com>
8897
8898 * varobj.c (c_value_of_variable): Remove dead code.
8899
8900 2012-02-29 Joel Brobecker <brobecker@adacore.com>
8901
8902 * ada-lex.p (processId): Do not modify already encoded IDs.
8903 Update function documentation.
8904
8905 2012-02-29 Joel Brobecker <brobecker@adacore.com>
8906
8907 * ada-lang.h (ada_find_renaming_symbol): Replace parameter
8908 "name" with "struct symbol *name_sym".
8909 * ada-exp.y (write_var_or_type): Update call to
8910 ada_find_renaming_symbol.
8911 "name" with "struct symbol *name_sym". Adjust Implementation
8912 accordingly. Adjust the function documentation.
8913
8914 2012-02-29 Joel Brobecker <brobecker@adacore.com>
8915
8916 * ada-lang.h (ada_find_any_symbol, ada_find_any_type): Delete.
8917 * ada-lang.c (ada_find_any_type): Add advance declaration.
8918 Make static. Replace ada_find_any_symbol by
8919 ada_find_any_type_symbol.
8920 (ada_find_any_type_symbol): Renames ada_find_any_symbol.
8921 Improve function description. Make static.
8922 (ada_find_renaming_symbol, find_old_style_renaming_symbol):
8923 Replace ada_find_any_symbol by ada_find_any_type_symbol.
8924
8925 2012-02-29 Joel Brobecker <brobecker@adacore.com>
8926
8927 * ada-lang.c (struct tag_args): Delete.
8928 (ada_get_tsd_type): Function body moved up in source file.
8929 (ada_tag_name_1, ada_tag_name_2): Delete.
8930 (ada_get_tsd_from_tag): New function.
8931 (ada_tag_name_from_tsd): New function.
8932 (ada_tag_name): Use a TRY_CATCH block instead of catch_errors
8933 to determine the tag name.
8934
8935 2012-02-29 Joel Brobecker <brobecker@adacore.com>
8936
8937 * ada-lang.h (ada_get_decoded_value, ada_get_decoded_type): Add
8938 declaration.
8939 * ada-lang.c (ada_get_decoded_value, ada_get_decoded_type): New
8940 function.
8941
8942 2012-02-29 Joel Brobecker <brobecker@adacore.com>
8943
8944 * ada-lang.c (ada_is_ignored_field): Rewrite wrong comment.
8945
8946 2012-02-29 Joel Brobecker <brobecker@adacore.com>
8947
8948 * ada-lang.c (ada_lookup_symbol_list): Only cache the result of
8949 full searches.
8950
8951 2012-02-29 Joel Brobecker <brobecker@adacore.com>
8952
8953 * ada-lang.c (constrained_packed_array_type): If there is a
8954 parallel XA type, use it to determine the array index type.
8955
8956 2012-02-29 Joel Brobecker <brobecker@adacore.com>
8957
8958 * ada-valprint.c (ada_val_print_1): If our value is a reference
8959 to an array descriptor, dereference it before converting it
8960 to a simple array.
8961
8962 2012-02-29 Joel Brobecker <brobecker@adacore.com>
8963
8964 * ada-lang.c (ada_to_fixed_value): Call unwrap_value before
8965 creating fixed value.
8966 (ada_value_ind, ada_coerce_ref, assign_component)
8967 (ada_evaluate_subexp): Remove call to unwrap_value before
8968 call to ada_to_fixed_value.
8969
8970 2012-02-29 Joel Brobecker <brobecker@adacore.com>
8971
8972 * ada-lang.c (to_fixed_array_type): Set result's type name.
8973
8974 2012-02-29 Joel Brobecker <brobecker@adacore.com>
8975
8976 * ada-lang.c (catch_ada_exception_command_split): Add new
8977 argument cond_string. Add support for condition at end of
8978 "catch exception" commands.
8979 (ada_decode_exception_location): Add new argument cond_string.
8980 Update call to catch_ada_exception_command_split.
8981 (create_ada_exception_catchpoint): Add new argument cond_string.
8982 Set the breakpoint condition if needed.
8983 (catch_ada_exception_command): Update call to
8984 ada_decode_exception_location.
8985 (ada_decode_assert_location): Add function documentation.
8986 Add support for condition at end of "catch assert" command.
8987 (catch_assert_command): Update calls to ada_decode_assert_location
8988 and create_ada_exception_catchpoint.
8989
8990 2012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
8991
8992 Fix disp-step-syscall.exp: fork: single step over fork.
8993 * i386-linux-tdep.c (-i386_linux_get_syscall_number): Rename to ...
8994 (i386_linux_get_syscall_number_from_regcache): ... here, new function
8995 comment, change parameters gdbarch and ptid to regcache. Remove
8996 parameter regcache, initialize gdbarch from regcache here.
8997 (i386_linux_get_syscall_number, i386_linux_displaced_step_copy_insn):
8998 New functions.
8999 (i386_linux_init_abi): Install i386_linux_displaced_step_copy_insn
9000 instead.
9001 * i386-tdep.c (i386_syscall_p): Check also for 'sysenter' and
9002 'syscall'. Make the 'int' check more strict.
9003
9004 2012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
9005
9006 Fix reverse mode for syscall on AMD CPUs in 32-bit mode.
9007 * i386-linux-tdep.c (i386_linux_intx80_sysenter_record): Rename to ...
9008 (i386_linux_intx80_sysenter_syscall_record): ... here.
9009 (i386_linux_init_abi): Initialize also I386_SYSCALL_RECORD.
9010 Use the renamed function name.
9011
9012 2012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
9013
9014 * arm-linux-tdep.c (arm_linux_copy_svc): Reset stale FRAME.
9015 * breakpoint.c (until_break_command): Likewise.
9016 * elfread.c (elf_gnu_ifunc_resolver_stop): Likewise.
9017 * infcall.c (call_function_by_hand): Likewise.
9018 * infcmd.c (finish_forward): Likewise.
9019 * infrun.c (insert_exception_resume_breakpoint): Likewise.
9020
9021 2012-02-28 Tristan Gingold <gingold@adacore.com>
9022
9023 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Rework code to
9024 avoid variable assignments inside condition.
9025
9026 2012-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
9027
9028 Fix static analysis issue found by cppcheck.
9029 * microblaze-tdep.c (microblaze_extract_return_value): Fix
9030 uninitialized BUF for size 2.
9031
9032 2012-02-27 Chris Dearman <chris@mips.com>
9033 Nathan Froyd <froydnj@codesourcery.com>
9034 Maciej W. Rozycki <macro@codesourcery.com>
9035
9036 * mips-tdep.c (mips32_instruction_has_delay_slot): New function.
9037 (mips16_instruction_has_delay_slot): Likewise.
9038 (mips_segment_boundary): Likewise.
9039 (mips_adjust_breakpoint_address): Likewise.
9040 (mips_gdbarch_init): Use mips_adjust_breakpoint_address.
9041
9042 2012-02-27 Maciej W. Rozycki <macro@mips.com>
9043 Maciej W. Rozycki <macro@codesourcery.com>
9044
9045 * infrun.c (handle_inferior_event): Don't proceed through
9046 shared library trampolines if stepping at the machine
9047 instruction level.
9048
9049 2012-02-27 Maciej W. Rozycki <macro@codesourcery.com>
9050
9051 * mips-linux-tdep.c (mips_linux_init_abi): Set num_pseudo_regs
9052 too.
9053
9054 2012-02-27 Thomas Schwinge <thomas@codesourcery.com>
9055
9056 * sh-tdep.c (sh_make_stub_cache, sh_stub_this_id)
9057 (sh_stub_unwind_sniffer): New functions.
9058 (sh_stub_unwind): New variable.
9059 (sh_gdbarch_init): Wire everything.
9060
9061 2012-02-27 Pedro Alves <palves@redhat.com>
9062
9063 * linux-nat.c (pid_is_stopped): Delete, moved to common/.
9064 (linux_nat_post_attach_wait): Adjust to use
9065 linux_proc_pid_is_stopped.
9066 * common/linux-procfs.h (linux_proc_pid_is_stopped): Declare.
9067 * common/linux-procfs.c (linux_proc_pid_is_stopped): New function,
9068 based on pid_is_stopped from both linux-nat.c and
9069 gdbserver/linux-low.c, and renamed.
9070
9071 2012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
9072
9073 * remote.c (remote_watchpoint_addr_within_range): New function.
9074 (init_remote_ops): Use it.
9075
9076 2012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
9077
9078 * target.h (target_watchpoint_addr_within_range): Document macro.
9079
9080 2012-02-24 Pedro Alves <palves@redhat.com>
9081
9082 * stack.c (set_last_displayed_sal): Issue internal_error instead
9083 of warning, and issue it after clearing the last displayed sal.
9084
9085 2012-02-24 Jan Kratochvil <jan.kratochvil@redhat.com>
9086 Pedro Alves <palves@redhat.com>
9087
9088 * breakpoint.c (until_break_command): Install breakpoints after
9089 all frame manipulations.
9090
9091 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
9092
9093 * remote.c (remote_supports_cond_breakpoints): New forward
9094 declaration.
9095 (remote_add_target_side_condition): New function.
9096 (remote_insert_breakpoint): Add target-side breakpoint
9097 conditional if supported.
9098 (remote_insert_hw_breakpoint): Likewise.
9099 (init_remote_ops): Set to_supports_evaluation_of_breakpoint_conditions
9100 hook.
9101
9102 * target.c (update_current_target): Inherit
9103 to_supports_evaluation_of_breakpoint_conditions.
9104 Default to_supports_evaluation_of_breakpoint_conditions to return_zero.
9105
9106 * target.h (struct target_ops)
9107 <to_supports_evaluation_of_breakpoint_conditions>: New field.
9108 (target_supports_evaluation_of_breakpoint_conditions): New #define.
9109
9110 * breakpoint.c (get_first_locp_gte_addr): New forward declaration.
9111 (condition_evaluation_both, condition_evaluation_auto,
9112 condition_evaluation_host, condition_evaluation_target,
9113 condition_evaluation_enums, condition_evaluation_mode_1,
9114 condition_evaluation_mode): New static globals.
9115 (translate_condition_evaluation_mode): New function.
9116 (breakpoint_condition_evaluation_mode): New function.
9117 (gdb_evaluates_breakpoint_condition_p): New function.
9118 (ALL_BP_LOCATIONS_AT_ADDR): New helper macro.
9119 (mark_breakpoint_modified): New function.
9120 (mark_breakpoint_location_modified): New function.
9121 (set_condition_evaluation_mode): New function.
9122 (show_condition_evaluation_mode): New function.
9123 (bp_location_compare_addrs): New function.
9124 (get_first_location_gte_addr): New helper function.
9125 (set_breakpoint_condition): Free condition bytecode if locations
9126 has become unconditional. Call mark_breakpoint_modified (...).
9127 (condition_command): Call update_global_location_list (1) for
9128 breakpoints.
9129 (breakpoint_xfer_memory): Use is_breakpoint (...).
9130 (is_breakpoint): New function.
9131 (parse_cond_to_aexpr): New function.
9132 (build_target_condition_list): New function.
9133 (insert_bp_location): Handle target-side conditional
9134 breakpoints and call build_target_condition_list (...).
9135 (update_inserted_breakpoint_locations): New function.
9136 (insert_breakpoint_locations): Handle target-side conditional
9137 breakpoints.
9138 (bpstat_check_breakpoint_conditions): Add comment.
9139 (bp_condition_evaluator): New function.
9140 (bp_location_condition_evaluator): New function.
9141 (print_breakpoint_location): Print information on where the condition
9142 will be evaluated.
9143 (print_one_breakpoint_location): Likewise.
9144 (init_bp_location): Call mark_breakpoint_location_modified (...) for
9145 breakpoint location.
9146 (force_breakpoint_reinsertion): New functions.
9147 (update_global_location_list): Handle target-side breakpoint
9148 conditions.
9149 Reinsert locations that are already inserted if conditions have
9150 changed.
9151 (bp_location_dtor): Free agent expression bytecode.
9152 (disable_breakpoint): Call mark_breakpoint_modified (...).
9153 Call update_global_location_list (...) with parameter 1 for breakpoints.
9154 (disable_command): Call mark_breakpoint_location_modified (...).
9155 Call update_global_location_list (...) with parameter 1 for breakpoints.
9156 (enable_breakpoint_disp): Call mark_breakpoint_modified (...).
9157 (enable_command): mark_breakpoint_location_modified (...).
9158 (_initialize_breakpoint): Update documentation and add
9159 condition-evaluation breakpoint subcommand.
9160
9161 * breakpoint.h: Include ax.h.
9162 (condition_list): New data structure.
9163 (condition_status): New enum.
9164 (bp_target_info) <cond_list>: New field.
9165 (bp_location) <condition_changed, cond_bytecode>: New fields.
9166 (is_breakpoint): New prototype.
9167
9168 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
9169
9170 * remote.c (remote_state) <cond_breakpoints>: New field.
9171 (PACKET_ConditionalBreakpoints): New enum.
9172 (remote_cond_breakpoint_feature): New function.
9173 (remote_protocol_features): Add new ConditionalBreakpoints entry.
9174 (remote_supports_cond_breakpoints): New function.
9175 (_initialize_remote): Add new packet configuration for
9176 target-side conditional breakpoints.
9177
9178 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
9179
9180 * NEWS: Mention target-side conditional breakpoint support,
9181 new condition-evaluation breakpoint subcommand and remote
9182 packet extensions.
9183
9184 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
9185
9186 * breakpoint.c (bp_location_compare): Sort by pspace before sorting by
9187 number.
9188
9189 2012-02-24 Thomas Schwinge <thomas@codesourcery.com>
9190
9191 * sh-tdep.c (sh_skip_prologue): Use skip_prologue_using_sal.
9192 (after_prologue): Remove.
9193
9194 2012-02-23 Tom Tromey <tromey@redhat.com>
9195
9196 * jv-valprint.c (java_val_print): Remove dead code.
9197
9198 2012-02-23 Tristan Gingold <gingold@adacore.com>
9199
9200 * ada-tasks.c (struct ada_tasks_inferior_data): Add
9201 known_tasks_element and known_tasks_length fields.
9202 (read_known_tasks_array): Change argument type. Use pointer type
9203 and number of elements from DATA. Adjust.
9204 (read_known_tasks_list): Likewise.
9205 (get_known_tasks_addr): Remove.
9206 (ada_set_current_inferior_known_tasks_addr): Renamed to ...
9207 (ada_tasks_inferior_data_sniffer): ... this. Use symtab for element
9208 type and array length. Merge former get_known_tasks_addr code.
9209
9210 2012-02-23 Jan Kratochvil <jan.kratochvil@redhat.com>
9211
9212 PR backtrace/13716
9213 * infcmd.c (finish_forward): New variable frame_id, initialize it, use
9214 it after set_momentary_breakpoint.
9215
9216 2012-02-22 Sterling Augustine <saugustine@google.com>
9217
9218 PR 13689:
9219 * breakpoint.c (watchpoint_exp_is_constant): Add UNOP_CAST to switch.
9220
9221 2012-02-22 Gary Benson <gbenson@redhat.com>
9222
9223 * dwarf2read.c (dwarf2_read_index): Correct misspelling.
9224 (find_slot_in_mapped_hash): Likewise.
9225
9226 2012-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
9227
9228 PR build/13638
9229 * configure.ac (MAKEINFO): Replace AC_CHECK_PROG by AC_ARG_VAR.
9230 (MAKEINFOFLAGS): Replace static string by AC_ARG_VAR.
9231 * configure: Regenerate.
9232
9233 2012-02-21 Tristan Gingold <gingold@adacore.com>
9234 Pedro Alves <palves@redhat.com>
9235
9236 * ia64-tdep.c: Do not include libunwind-ia64.h.
9237 * libunwind-frame.h: Remove #ifdef HAVE_LIBUNWIND_H guard.
9238 Include libunwind-ia64.h instead of libunwind.h.
9239 * configure.ac (--with-libunwind, $enable_libunwind): Don't check
9240 for libunwind.h existence.
9241 * configure, config.in: Regenerate.
9242
9243 2012-02-21 Anton Gorenkov <xgsa@yandex.ru>
9244
9245 * c-valprint.c (c_value_print): Use value_rtti_indirect_type
9246 instead of value_rtti_target_type.
9247 * eval.c (evaluate_subexp_standard): Use value_rtti_indirect_type
9248 instead of value_rtti_target_type.
9249 * typeprint.c (whatis_exp): Use value_rtti_indirect_type instead of
9250 value_rtti_target_type.
9251 * valops.c (value_ind): Extract function readjust_indirect_value_type.
9252 (value_rtti_target_type): Rename to ...
9253 (value_rtti_indirect_type): ... here and make it indirect. Update
9254 function comment.
9255 * value.c (readjust_indirect_value_type): New function.
9256 (coerce_ref): Support for enclosing type setting for references
9257 with readjust_indirect_value_type.
9258 * value.h (readjust_value_type): New declaration.
9259 (value_rtti_target_type): Rename to ...
9260 (value_rtti_indirect_type): ... here.
9261
9262 2012-02-21 Anton Gorenkov <xgsa@yandex.ru>
9263
9264 * MAINTAINERS (Write After Approval): Add myself to the list.
9265
9266 2012-02-20 Doug Evans <dje@google.com>
9267
9268 * objfiles.c (add_to_objfile_sections): Remove outdated comments.
9269 Rename objfile_p_char parameter to objfilep.
9270 (build_objfile_section_table): Result is now void. All callers
9271 updated.
9272 * objfiles.h (struct objfile): Tweak comments, whitespace.
9273 (build_objfile_section_table): Update.
9274
9275 * elfread.c (elf_symfile_segments): Fix warning text.
9276
9277 2012-02-20 Tom Tromey <tromey@redhat.com>
9278
9279 PR gdb/13498:
9280 * dwarf2read.c (dw2_expand_symtabs_matching): Only visit a
9281 particular set of file names once.
9282 (dw2_map_symbol_filenames): Likewise.
9283
9284 2012-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
9285
9286 Code cleanup.
9287 * main.c (write_files): Remove the declaration.
9288 (external_editor_command): Move the declaration ...
9289 [GDBTK] (external_editor_command): ... here. Fix the comment.
9290
9291 2012-02-20 Tom Tromey <tromey@redhat.com>
9292
9293 * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove
9294 extraneous block.
9295
9296 2012-02-20 Tristan Gingold <gingold@adacore.com>
9297
9298 * darwin-nat.h (enum darwin_msg_state): Add comments.
9299
9300 2012-02-20 Tristan Gingold <gingold@adacore.com>
9301
9302 * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Fix jb_pc_offset
9303 value.
9304
9305 2012-20-18 Joel Brobecker <brobecker@adacore.com>
9306
9307 * breakpoint.c (watchpoint_exp_is_const): Add missing empty line
9308 between function description and implementation.
9309
9310 2012-02-17 Tom Tromey <tromey@redhat.com>
9311
9312 PR python/12070:
9313 * python/py-event.c (event_object_getset): New global.
9314 (event_object_type): Reference it.
9315 * python/py-type.c (field_object_getset): New global.
9316 (field_object_type): Reference it.
9317 * python/python-internal.h (gdb_py_generic_dict): Declare.
9318 * python/py-utils.c (gdb_py_generic_dict): New function.
9319
9320 2012-02-17 Tristan Gingold <gingold@adacore.com>
9321
9322 * solib-darwin.c (darwin_current_sos): Check magic and filetype
9323
9324 2012-02-17 Thomas Schwinge <thomas@codesourcery.com>
9325
9326 * sh-tdep.c (sh_is_renesas_calling_convention): Fix handling of
9327 TYPE_CALLING_CONVENTION annotation.
9328
9329 2012-02-16 Kevin Buettner <kevinb@redhat.com>
9330
9331 * MAINTAINERS: Add rx to target ISA section.
9332 * Makefile.in (ALL_TARGET_OBS): Add rx-tdep.o.
9333 (ALLDEPFILES): Add rx-tdep.c.
9334
9335 2012-02-16 Tom Tromey <tromey@redhat.com>
9336
9337 * symfile.c (symbol_file_add_main_1): Use inferior's
9338 symfile_flags.
9339 * solib.c (solib_read_symbols): Use inferior's symfile_flags.
9340 * linux-nat.c (linux_child_follow_fork): Set symfile_flags on
9341 inferior.
9342 * infrun.c (handle_vfork_child_exec_or_exit): Set symfile_flags on
9343 inferior.
9344 (follow_exec): Use inferior's symfile_flags.
9345 * inferior.h (struct inferior) <symfile_flags>: New field.
9346
9347 2012-02-16 Mike Frysinger <vapier@gentoo.org>
9348
9349 PR gdb/9734:
9350 * remote-sim.c (gdbsim_create_inferior): Call error() when
9351 sim_create_inferior() fails.
9352
9353 2012-02-16 Josh Matthews <josh@joshmatthews.net>
9354
9355 * machoread.c: Initialize nbr_syms to avoid warnings-as-errors failure.
9356
9357 2012-02-16 Tom Tromey <tromey@redhat.com>
9358
9359 PR c++/13653:
9360 * thread.c (struct current_thread_cleanup) <was_removable>: New
9361 field.
9362 (restore_current_thread_cleanup_dtor): Restore 'removable' field.
9363 (make_cleanup_restore_current_thread): Initialize new field.
9364
9365 2012-02-15 Kevin Buettner <kevinb@redhat.com>
9366
9367 * MAINTAINERS: Add rl78 to target ISA section.
9368 * Makefile.in (ALL_TARGET_OBS): Add rl78-tdep.o.
9369 (ALLDEPFILES): Add rl78-tdep.c.
9370 * NEWS: Mention rl78 as a new target.
9371
9372 2012-02-15 Aleksandar Ristovski <aristovski@qnx.com>
9373
9374 * frame.c (find_frame_sal): Initialize sal->pspace field from frame
9375 data.
9376 * stack.c (set_last_displayed_sal): Validate that PSPACE is not NULL.
9377
9378 2012-02-15 Tom Tromey <tromey@redhat.com>
9379
9380 PR gdb/12659:
9381 * infcmd.c (registers_info): Print just the current register's
9382 name.
9383
9384 2012-02-15 Tom Tromey <tromey@redhat.com>
9385
9386 * python/py-symbol.c (sympy_value): Use _().
9387
9388 2012-02-15 Pedro Alves <palves@redhat.com>
9389
9390 * remote.c (remote_detach_1, extended_remote_attach_1): Tweak
9391 output to be like native targets'.
9392 (remote_pid_to_str): Special case the null ptid.
9393
9394 2012-02-14 Stan Shebs <stan@codesourcery.com>
9395
9396 * NEWS: Mention enable count command.
9397 * breakpoint.h (struct breakpoint): New field enable_count.
9398 * breakpoint.c (enable_breakpoint_disp): Add count argument.
9399 (enable_breakpoint): Add arg to call.
9400 (struct disp_data): New struct.
9401 (do_enable_breakpoint_disp): Interp arg as disp_data and unpack.
9402 (do_map_enable_once_breakpoint): Create a struct and pass it.
9403 (do_map_enable_delete_breakpoint): Ditto.
9404 (do_map_enable_count_breakpoint): New function.
9405 (enable_count_command): New function.
9406 (bpstat_stop_status): Decrement enable_count.
9407 (print_one_breakpoint_location): Report enable count.
9408 (_initialize_breakpoint): Add enable count command.
9409
9410 2012-02-14 Kevin Buettner <kevinb@redhat.com>
9411
9412 * rl78-tdep.c (reggroups.h): Include.
9413 (RL78_RAW_BANK0_R0_REGNUM, RL78_RAW_BANK0_R1_REGNUM)
9414 (RL78_RAW_BANK0_R2_REGNUM, RL78_RAW_BANK0_R3_REGNUM)
9415 (RL78_RAW_BANK0_R4_REGNUM, RL78_RAW_BANK0_R5_REGNUM)
9416 (RL78_RAW_BANK0_R6_REGNUM, RL78_RAW_BANK0_R7_REGNUM)
9417 (RL78_RAW_BANK1_R0_REGNUM, RL78_RAW_BANK1_R1_REGNUM)
9418 (RL78_RAW_BANK1_R2_REGNUM, RL78_RAW_BANK1_R3_REGNUM)
9419 (RL78_RAW_BANK1_R4_REGNUM, RL78_RAW_BANK1_R5_REGNUM)
9420 (RL78_RAW_BANK1_R6_REGNUM, RL78_RAW_BANK1_R7_REGNUM)
9421 (RL78_RAW_BANK2_R0_REGNUM, RL78_RAW_BANK2_R1_REGNUM)
9422 (RL78_RAW_BANK2_R2_REGNUM, RL78_RAW_BANK2_R3_REGNUM)
9423 (RL78_RAW_BANK2_R4_REGNUM, RL78_RAW_BANK2_R5_REGNUM)
9424 (RL78_RAW_BANK2_R6_REGNUM, RL78_RAW_BANK2_R7_REGNUM)
9425 (RL78_RAW_BANK3_R0_REGNUM, RL78_RAW_BANK3_R1_REGNUM)
9426 (RL78_RAW_BANK3_R2_REGNUM, RL78_RAW_BANK3_R3_REGNUM)
9427 (RL78_RAW_BANK3_R4_REGNUM, RL78_RAW_BANK3_R5_REGNUM)
9428 (RL78_RAW_BANK3_R6_REGNUM, RL78_RAW_BANK3_R7_REGNUM): Add to
9429 beginning of register list.
9430 (RL78_BANK0_R0_REGNUM, RL78_BANK0_R1_REGNUM, RL78_BANK0_R2_REGNUM)
9431 (RL78_BANK0_R3_REGNUM, RL78_BANK0_R4_REGNUM, RL78_BANK0_R5_REGNUM)
9432 (RL78_BANK0_R6_REGNUM, RL78_BANK0_R7_REGNUM, RL78_BANK1_R0_REGNUM)
9433 (RL78_BANK1_R1_REGNUM, RL78_BANK1_R2_REGNUM, RL78_BANK1_R3_REGNUM)
9434 (RL78_BANK1_R4_REGNUM, RL78_BANK1_R5_REGNUM, RL78_BANK1_R6_REGNUM)
9435 (RL78_BANK1_R7_REGNUM, RL78_BANK2_R0_REGNUM, RL78_BANK2_R1_REGNUM)
9436 (RL78_BANK2_R2_REGNUM, RL78_BANK2_R3_REGNUM, RL78_BANK2_R4_REGNUM)
9437 (RL78_BANK2_R5_REGNUM, RL78_BANK2_R6_REGNUM, RL78_BANK2_R7_REGNUM)
9438 (RL78_BANK3_R0_REGNUM, RL78_BANK3_R1_REGNUM, RL78_BANK3_R2_REGNUM)
9439 (RL78_BANK3_R3_REGNUM, RL78_BANK3_R4_REGNUM, RL78_BANK3_R5_REGNUM)
9440 (RL78_BANK3_R6_REGNUM, RL78_BANK3_R7_REGNUM): Move these into
9441 the pseudo registers. Rearrange other pseudo registers too so
9442 that the bank registers appear at the end.
9443 (rl78_register_type): Account for the fact that the byte sized
9444 bank registers are now pseudo-registers.
9445 (rl78_register_name): Rearrange the register name array. Make
9446 initial set of raw banked registers inaccessible.
9447 (rl78_register_reggroup_p, rl78_register_sim_regno): New functions.
9448 (rl78_pseudo_register_read, rl78_pseudo_register_write): Add
9449 case for copying bytes back and forth between raw and pseudo
9450 versions of the banked registers. Update other cases to reflect
9451 the changed names.
9452 (rl78_return_value): Update to account for changed names of
9453 raw registers.
9454 (rl78_gdbarch_init): Register rl78_register_reggroup_p() and
9455 rl78_register_sim_regno().
9456
9457 2012-02-14 Kevin Buettner <kevinb@redhat.com>
9458
9459 * rl78-tdep.c (rl78_skip_prologue): Make `const' the type of
9460 the name parameter being passed to find_pc_partial_function().
9461
9462 2012-02-14 Jan Kratochvil <jan.kratochvil@redhat.com>
9463
9464 * MAINTAINERS: Step down from being ia64 target maintainer.
9465
9466 2012-02-12 Jan Kratochvil <jan.kratochvil@redhat.com>
9467
9468 * ppc-linux-nat.c (fetch_register, store_register): Fix GCC aliasing
9469 compilation warning.
9470
9471 2012-02-12 Jan Kratochvil <jan.kratochvil@redhat.com>
9472
9473 Fix crash on loaded shlibs without loaded exec_bfd.
9474 * exec.c (exec_files_info): Do not crash on NULL EXEC_BFD.
9475 (set_section_command): Replace exec_bfd by p->bfd.
9476
9477 2012-02-10 Tom Tromey <tromey@redhat.com>
9478
9479 * linespec.c (decode_line_internal): Skip symtabs_from_filename
9480 when we have a C++ qualified name.
9481
9482 2012-02-10 Pedro Alves <palves@redhat.com>
9483
9484 * inferior.c (inferior_pid_to_str): New.
9485 (print_inferior, inferior_command): Use it.
9486
9487 2012-02-10 Pedro Alves <palves@redhat.com>
9488
9489 * configure.ac (HAVE_ELF test): Put the old CFLAGS at the end of
9490 the test CFLAGS.
9491 * configure: Regenerate.
9492
9493 2012-02-10 Jan Kratochvil <jan.kratochvil@redhat.com>
9494
9495 * linespec.c (decode_line_internal): Fix comment correctness.
9496
9497 2012-02-09 Valery Khromov <valery.khromov@gmail.com>
9498
9499 PR gdb/12953
9500 * Makefile.in (HFILES_NO_SRCDIR): Add amd64bsd-nat.h.
9501 * amd64bsd-nat.c: Add support for debug registers (adapted from
9502 i386bsd-nat.c).
9503 [HAVE_PT_GETDBREGS] (amd64bsd_dr_get, amd64bsd_dr_set)
9504 (amd64bsd_dr_set_control, amd64bsd_dr_set_addr)
9505 (amd64bsd_dr_get_addr, amd64bsd_dr_get_status)
9506 (amd64bsd_dr_get_control): New functions.
9507 * amd64bsd-nat.h: New file (adapted from i386bsd-nat.h).
9508 * amd64fbsd-nat.c: Include "amd64bsd-nat.h", "i386-nat.h".
9509 [HAVE_PT_GETDBREGS] (_initialize_amd64fbsd_nat): Add hardware
9510 watchpoints initialization.
9511 * config/i386/fbsd64.mh (NATDEPFILES): Add i386-nat.o.
9512
9513 2012-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
9514
9515 * gdb-gdb.py (StructMainTypePrettyPrinter) <struct_field_img>: Print
9516 flds_bnds.fields.
9517 (StructMainTypePrettyPrinter) <bounds_img>: Print flds_bnds.bounds.
9518
9519 2012-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
9520
9521 * breakpoint.c (bp_location_compare): Fix comment. Reindent the code.
9522
9523 2012-02-08 Joel Brobecker <brobecker@adacore.com>
9524
9525 * language.h (symbol_name_cmp_ftype): Renames
9526 symbol_name_match_p_ftype.
9527 (struct language_defn)[la_get_symbol_name_cmp]: Renames
9528 la_get_symbol_name_match_p.
9529 * ada-lang.c (ada_get_symbol_name_cmp): Renames
9530 ada_get_symbol_name_match_p. Update comment.
9531 (ada_language_defn)[la_get_symbol_name_cmp]: Update value.
9532 * linespec.c (struct symbol_matcher_data)[symbol_name_cmp]:
9533 Renames symbol_name_match_p. Update field type.
9534 (iterate_name_matcher, iterate_over_all_matching_symtabs): Adjust.
9535 * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
9536 opencl-lang.c, p-lang.c: Replace "la_get_symbol_name_match_p" by
9537 "la_get_symbol_name_cmp" in comments.
9538 * language.c: Likewise.
9539
9540 2012-02-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9541
9542 * amd64-sol2-tdep.c (amd64_sol2_gregset_reg_offset): Correct
9543 %eflags offset.
9544 * i386-sol2-nat.c (amd64_sol2_gregset64_reg_offs)
9545 (amd64_sol2_gregset32_reg_offs): Likewise.
9546
9547 2012-02-08 Joel Brobecker <brobecker@adacore.com>
9548
9549 * solib-darwin.c (darwin_bfd_open): Make sure that the filename
9550 of the returned BFD is allocated by GDB.
9551
9552 2012-02-07 Tom Tromey <tromey@redhat.com>
9553
9554 PR python/12027:
9555 * python/python-internal.h (frame_object_type): Declare.
9556 * python/py-symbol.c (sympy_needs_frame): New function.
9557 (sympy_value): New function.
9558 (symbol_object_getset): Add "needs_frame".
9559 (symbol_object_methods): Add "value".
9560 * python/py-frame.c (frame_object_type): No longer static.
9561
9562 2012-02-07 Tom Tromey <tromey@redhat.com>
9563
9564 PR python/13599:
9565 * python/py-symbol.c (sympy_line): New function.
9566 (symbol_object_getset): Add "line".
9567
9568 2012-02-07 Tom Tromey <tromey@redhat.com>
9569
9570 * charset.c (find_charset_names): Check 'in' against NULL.
9571
9572 2012-02-06 Doug Evans <dje@google.com>
9573
9574 * gdbtypes.h (struct main_type): Change type of name,tag_name,
9575 and fields.name members from char * to const char *. All uses updated.
9576 (struct cplus_struct_type): Change type of fn_fieldlists.name member
9577 from char * to const char *. All uses updated.
9578 (type_name_no_tag): Update.
9579 (lookup_unsigned_typename, lookup_signed_typename): Update.
9580 * gdbtypes.c (type_name_no_tag): Change result type
9581 from char * to const char *. All callers updated.
9582 (lookup_unsigned_typename, lookup_signed_typename): Change type of
9583 name parameter from char * to const char *.
9584 * symtab.h (struct cplus_specific): Change type of demangled_name
9585 member from char * to const char *. All uses updated.
9586 (struct general_symbol_info): Change type of name and
9587 mangled_lang.demangled_name members from char * to const char *.
9588 All uses updated.
9589 (symbol_get_demangled_name, symbol_natural_name): Update.
9590 (symbol_demangled_name, symbol_search_name): Update.
9591 * symtab.c (symbol_get_demangled_name): Change result type
9592 from char * to const char *. All callers updated.
9593 (symbol_natural_name, symbol_demangled_name): Ditto.
9594 (symbol_search_name): Ditto.
9595 (completion_list_add_name): Change type of symname,sym_text,
9596 text,word parameters from char * to const char *.
9597 (completion_list_objc_symbol): Change type of sym_text,
9598 text,word parameters from char * to const char *.
9599 * ada-lang.c (find_struct_field): Change type of name parameter
9600 from char * to const char *.
9601 (encoded_ordered_before): Similarly for N0,N1 parameters.
9602 (old_renaming_is_invisible): Similarly for function_name parameter.
9603 (ada_type_name): Change result type from char * to const char *.
9604 All callers updated.
9605 * ada-lang.h (ada_type_name): Update.
9606 * buildsym.c (hashname): Change type of name parameter
9607 from char * to const char *.
9608 * buildsym.h (hashname): Update.
9609 * dbxread.c (end_psymtab): Change type of include_list parameter
9610 from char ** to const char **.
9611 * dwarf2read.c (determine_prefix): Change result type
9612 from char * to const char *. All callers updated.
9613 * f-lang.c (find_common_for_function): Change type of name, funcname
9614 parameters from char * to const char *.
9615 * f-lang.c (find_common_for_function): Update.
9616 * f-valprint.c (list_all_visible_commons): Change type of funcname
9617 parameters from char * to const char *.
9618 * gdbarch.sh (static_transform_name): Change type of name parameter
9619 and result from char * to const char *.
9620 * gdbarch.c: Regenerate.
9621 * gdbarch.h: Regenerate.
9622 * i386-sol2-tdep.c (i386_sol2_static_transform_name): Change type
9623 of name parameter from char * to const char *.
9624 * jv-lang.c (java_primitive_type_from_name): Ditto.
9625 (java_demangled_signature_length): Similarly for signature parameter.
9626 (java_demangled_signature_copy): Ditto.
9627 (java_demangle_type_signature): Ditto.
9628 * jv-lang.h (java_primitive_type_from_name): Update.
9629 (java_demangle_type_signature): Update.
9630 * objc-lang.c (specialcmp): Change type of a,b parameters
9631 from char * to const char *.
9632 * p-lang.c (is_pascal_string_type): Change type of arrayname parameter
9633 from char * to const char *. All callers updated.
9634 * p-lang.h (is_pascal_string_type): Update.
9635 * solib-frv.c (find_canonical_descriptor_in_load_object): Change type
9636 of name parameter from char * to const char *.
9637 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Ditto.
9638 * utils.c (fprintf_symbol_filtered): Ditto.
9639 * defs.h (fprintf_symbol_filtered): Update.
9640 * sparc-tdep.h (sparc_sol2_static_transform_name): Update.
9641 * stabsread.h (end_psymtab): Update.
9642 * stack.c (find_frame_funname): Change type of funname parameter
9643 from char ** to const char **.
9644 * stack.h (find_frame_funname): Update.
9645 * typeprint.c (type_print): Change type of varstring parameter
9646 from char * to const char *.
9647 * value.h (type_print): Update.
9648 * xcoffread.c (xcoff_start_psymtab): Change type of filename parameter
9649 from char * to const char *. All callers updated.
9650 (xcoff_end_psymtab): Change type of include_list parameter
9651 from char ** to const char **. All callers updated.
9652 (swap_sym): Similarly for name parameter. All callers updated.
9653 * coffread.c (patch_type): Add (char*) cast to xfree parameter.
9654 Use xstrdup.
9655 (process_coff_symbol): Use xstrdup.
9656 * stabsread.c (stabs_method_name_from_physname): Renamed from
9657 update_method_name_from_physname. Change result type from void
9658 to char *. All callers updated.
9659 (read_member_functions): In has_destructor case, store name in objfile
9660 obstack instead of malloc space. In !has_stub case, fix mem leak.
9661
9662 2012-02-06 Luca Pizzamiglio <luca.pizzamiglio@gmail.com>
9663
9664 * configure: Rebuild.
9665 * configure.ac: Put -L../bfd and -L../libiberty at the front of
9666 LDFLAGS.
9667
9668 2012-02-03 Kevin Buettner <kevinb@redhat.com>
9669
9670 * configure.tgt (rl78-*-elf): New target.
9671 * rl78-tdep.c: New file.
9672
9673 2012-02-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9674
9675 * remote.c (remote_rcmd): Use getpkt_sane to detect timeout
9676 and continue the loop. Add QUIT statement.
9677
9678 2012-02-03 Tom Tromey <tromey@redhat.com>
9679
9680 PR gdb/13596:
9681 * solib.h (gdb_bfd_lookup_symbol_from_symtab): Rename from
9682 bfd_lookup_symbol_from_symtab.
9683 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
9684 gdb_bfd_lookup_symbol_from_symtab.
9685
9686 2012-02-03 Joel Brobecker <brobecker@adacore.com>
9687
9688 * mi/mi-cmd-stack.c (list_args_or_locals): For argument symbols,
9689 use SYMBOL_LINKAGE_NAME to find the corresponding non-argument
9690 symbol. Add assertion that sym2 is never NULL.
9691
9692 2012-02-02 Doug Evans <dje@google.com>
9693
9694 * blockframe.c (find_pc_partial_function_gnu_ifunc): Change type of
9695 "name" parameter to const char ** from char **. All callers updated.
9696 (find_pc_partial_function): Ditto.
9697 (cache_pc_function_name): Change type to const char * from char *.
9698 * symtab.h ((find_pc_partial_function_gnu_ifunc): Update.
9699 (find_pc_partial_function): Update.
9700 * alpha-tdep.h (struct gdbarch_tdep, member pc_in_sigtramp): Change
9701 type of "name" parameter to const char * from char *.
9702 All uses updated.
9703 * arch-utils.c (generic_in_solib_return_trampoline): Change
9704 type of "name" parameter to const char * from char *.
9705 * arch-utils.h (generic_in_solib_return_trampoline): Update.
9706 * frv-linux-tdep.c (frv_linux_pc_in_sigtramp): Change
9707 type of "name" parameter to const char * from char *.
9708 * gdbarch.sh (in_solib_return_trampoline): Ditto.
9709 * gdbarch.c: Regenerate.
9710 * gdbarch.h: Regenerate.
9711 * hppa-hpux-tdep.c (hppa_hpux_in_solib_return_trampoline): Update.
9712 * rs6000-tdep.c (rs6000_in_solib_return_trampoline): Update.
9713 * m32r-linux-tdep.c (m32r_linux_pc_in_sigtramp): Change
9714 type of "name" parameter to const char * from char *.
9715 * skip.c (skip_function_pc): Ditto.
9716 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Ditto.
9717 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp): Update.
9718 * sparc64fbsd-tdep.c (sparc64fbsd_pc_in_sigtramp): Ditto.
9719 * sparc64nbsd-tdep.c (sparc64nbsd_pc_in_sigtramp): Ditto.
9720 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Ditto.
9721 * sparcnbsd-tdep.c (sparc32nbsd_pc_in_sigtramp): Ditto.
9722 * sparcobsd-tdep.c (sparc32obsd_pc_in_sigtramp): Ditto.
9723 * nbsd-tdep.c (nbsd_pc_in_sigtramp): Similary for "func_name".
9724 * nbsd-tdep.h (nbsd_pc_in_sigtramp): Update.
9725
9726 2012-02-02 Pedro Alves <palves@redhat.com>
9727
9728 * remote.c (remote_get_min_fast_tracepoint_insn_len): Return 0 if
9729 the current inferior has no execution. Make sure the current
9730 remote process matches gdb's current inferior.
9731
9732 2012-02-02 Tom Tromey <tromey@redhat.com>
9733
9734 PR gdb/13405:
9735 * tui/tui-win.c (parse_scrolling_args): Don't write to possibly
9736 read-only memory.
9737
9738 2012-02-02 Tom Tromey <tromey@redhat.com>
9739
9740 PR gdb/9307:
9741 * symtab.c (lookup_language_this): Set block_found.
9742
9743 2012-02-01 Tom Tromey <tromey@redhat.com>
9744
9745 PR gdb/13431:
9746 * jit.c (struct jit_inferior_data): Rewrite.
9747 (struct jit_objfile_data): New.
9748 (get_jit_objfile_data): New function.
9749 (add_objfile_entry): Update.
9750 (jit_read_descriptor): Return int. Replace descriptor_addr
9751 argument with inf_data. Update. Don't call error.
9752 (jit_breakpoint_re_set_internal): Reorder logic. Update. Look up
9753 descriptor here.
9754 (jit_inferior_init): Don't look up descriptor. Don't call error.
9755 (jit_reset_inferior_data_and_breakpoints)
9756 (jit_inferior_created_observer): Remove.
9757 (jit_inferior_exit_hook): Update.
9758 (jit_executable_changed_observer): Remove.
9759 (jit_event_handler): Update.
9760 (free_objfile_data): Reset inferior data if needed.
9761 (_initialize_jit): Update.
9762
9763 2012-02-01 Tom Tromey <tromey@redhat.com>
9764
9765 * jit.c (bfd_open_from_target_memory): Move higher in file.
9766
9767 2012-02-01 Tristan Gingold <gingold@adacore.com>
9768
9769 * libunwind-frame.c (libunwind_load): Display message if dlopen
9770 failed.
9771
9772 2012-02-01 Gary Benson <gbenson@redhat.com>
9773
9774 * symtab.h (symbol_found_callback_ftype): New typedef.
9775 (iterate_over_symbols): Use the above.
9776 * symtab.c (iterate_over_symbols): Likewise.
9777 * language.h (language_defn->la_iterate_over_symbols): Likewise.
9778 * ada-lang.c (ada_iterate_over_symbols): Likewise.
9779 * linespec.c (iterate_over_all_matching_symtabs): Likewise.
9780 (iterate_name_matcher): Document return values.
9781 (collect_one_symbol): Likewise.
9782 (collect_function_symbols): Likewise.
9783 (collect_symbols): Likewise.
9784
9785 2012-02-01 Tom Tromey <tromey@redhat.com>
9786
9787 * ada-lang.c (resolve_subexp): Update.
9788 (ada_lookup_symbol_list): Add 'full_search' argument.
9789 (ada_iterate_over_symbols): Pass 0 as full_search argument to
9790 ada_lookup_symbol_list.
9791 (ada_lookup_encoded_symbol): Update.
9792 (get_var_value): Update.
9793 * ada-exp.y (block_lookup): Update.
9794 (write_var_or_type): Update.
9795 (write_name_assoc): Update.
9796 * ada-lang.h (ada_lookup_symbol_list): Update.
9797
9798 2012-01-31 Tom Tromey <tromey@redhat.com>
9799
9800 * language.h (struct language_defn) <la_iterate_over_symbols>: Fix
9801 comment.
9802
9803 2012-01-31 Doug Evans <dje@google.com>
9804
9805 * symtab.h: Remove outdated comment.
9806 (SYMBOL_MATCHES_NATURAL_NAME): Delete.
9807
9808 2012-02-01 Josh Matthews <josh@joshmatthews.net> (tiny change)
9809
9810 Fix build error in Darwin port.
9811 * i386-darwin-nat.c: Include i386-nat.h.
9812
9813 2012-01-30 Tom Tromey <tromey@redhat.com>
9814
9815 PR breakpoints/13568:
9816 * dwarf2read.c (dwarf_decode_macro_bytes): Add 'include_hash'
9817 argument. Check for recursive includes.
9818 (dwarf_decode_macros): Create an include hash.
9819
9820 2012-01-30 Michael Eager <eager@eagercon.com>
9821
9822 * configure.tgt (powerpc-*-linux*): Add glibc-tdep.o.
9823 * ppc-linux-tdep.c: Include glibc-tdep.h.
9824 (powerpc32_plt_stub, powerpc32_plt_stub_so): Add PLT stub templates.
9825 (powerpc_linux_in_plt_stub): New function.
9826 (powerpc_linux_in_dynsym_resolve_code): New function.
9827 (ppc_skip_trampoline_code): New function.
9828 (ppc_linux_init_abi): Use PPC specific functions rather than generic.
9829 Use glibc_skip_solib_resolver.
9830
9831 2012-01-28 Jan Kratochvil <jan.kratochvil@redhat.com>
9832
9833 Code cleanup: Make 1440 bytes of data segment read-only.
9834 * arch-utils.c (endian_enum): Make it const char *const [].
9835 * arm-tdep.c (fp_model_strings, arm_abi_strings, arm_mode_strings):
9836 Likewise.
9837 * breakpoint.c (always_inserted_enums): Likewise.
9838 * cli/cli-cmds.c (script_ext_enums): Likewise.
9839 * cli/cli-decode.c (add_setshow_enum_cmd, complete_on_enum): Make the
9840 enumlist parameter const char *const *.
9841 * cli/cli-decode.h (struct cmd_list_element): Make the enums field
9842 const char *const *.
9843 * command.h (complete_on_enum, add_setshow_enum_cmd): Make the enumlist
9844 parameter const char *const *.
9845 * cris-tdep.c (cris_modes): Make it const char *const [].
9846 * filesystem.c (target_file_system_kinds): Likewise.
9847 * i386-tdep.c (valid_flavors, valid_conventions): Likewise.
9848 * infrun.c (follow_fork_mode_kind_names, follow_exec_mode_names)
9849 (can_use_displaced_stepping_enum, scheduler_enums)
9850 (exec_direction_names): Likewise.
9851 * language.c (_initialize_language): Make the type_or_range_names and
9852 case_sensitive_names variables const char *const [].
9853 * mips-tdep.c (mips_abi_strings): Make it const char *const [].
9854 * python/python.c (python_excp_enums): Likewise.
9855 * remote.c (interrupt_sequence_modes): Likewise.
9856 * rs6000-tdep.c (powerpc_vector_strings): Likewise.
9857 * serial.c (logbase_enums): Likewise.
9858 * sh-tdep.c (sh_cc_enum): Likewise.
9859 * stack.c (print_frame_arguments_choices, print_entry_values_choices):
9860 Likewise.
9861 * symtab.c (multiple_symbols_modes): Likewise.
9862 * tui/tui-win.c (tui_border_kind_enums, tui_border_mode_enums):
9863 Likewise.
9864 * utils.c (internal_problem_modes): Likewise.
9865
9866 2012-01-27 Jan Kratochvil <jan.kratochvil@redhat.com>
9867
9868 Fix the 2012-01-26 regression by la_get_symbol_name_match_p.
9869 * linespec.c (iterate_name_matcher): Negate the SYMBOL_NAME_MATCH_P
9870 result.
9871
9872 2012-01-27 Doug Evans <dje@google.com>
9873
9874 * configure.ac (with_python): Fix absolute path handling for win32.
9875 * configure: Regenerate.
9876
9877 2012-01-26 Doug Evans <dje@google.com>
9878
9879 * symtab.c: Whitespace cleanup, no code changes.
9880
9881 * symtab.c (lookup_symbol_in_language): Improve comment.
9882 (lookup_symbol_aux): Fix comment.
9883
9884 * psymtab.c (add_psymbol_to_list): Result is now "void".
9885 * psympriv.h (add_psymbol_to_list): Update.
9886
9887 * dwarf2read.c (add_partial_symbol): Delete local psym, unused.
9888
9889 2012-01-26 Jan Kratochvil <jan.kratochvil@redhat.com>
9890
9891 Do not open script filenames twice.
9892 * cli/cli-cmds.c (source_script_from_stream): Pass to
9893 source_python_script also STREAM.
9894 * python/py-auto-load.c (source_section_scripts): Pass to
9895 source_python_script_for_objfile also STREAM.
9896 (auto_load_objfile_script): Pass to source_python_script_for_objfile
9897 also INPUT.
9898 * python/python-internal.h (source_python_script_for_objfile): New
9899 parameter file, rename parameter file to filename.
9900 * python/python.c (python_run_simple_file): Call PyRun_SimpleFile
9901 instead if !_WIN32. Update the function comment.
9902 (source_python_script, source_python_script_for_objfile)
9903 (source_python_script): New parameter file, rename parameter file to
9904 filename. Pass FILENAME to python_run_simple_file.
9905 * python/python.h (source_python_script): New parameter file, rename
9906 parameter file to filename.
9907
9908 2012-01-26 Pedro Alves <palves@redhat.com>
9909
9910 * corelow.c (core_has_fake_pid): Delete.
9911 (core_close): Delete references to `core_has_fake_pid'.
9912 (add_to_thread_list): Adjust to mark the inferior's pid as fake.
9913 (core_open): Delete references to `core_has_fake_pid'.
9914 (core_pid_to_str): Adjust to check inferior->fake_pid_p instead of
9915 the removed global.
9916
9917 2012-01-26 Joel Brobecker <brobecker@adacore.com>
9918
9919 * symfile.h (struct quick_symbol_functions) [expand_symtabs_matching]:
9920 Remove language parameter from name_matcher. Adjust the comment.
9921 * symtab.c (search_symbols_name_matches, expand_partial_symbol_name):
9922 Remove language parameter.
9923 * ada-lang.c (ada_expand_partial_symbol_name): Likewise.
9924 * linespec.c (iterate_name_matcher): Likewise.
9925 * dwarf2read.c (dw2_expand_symtabs_matching): Adjust type of
9926 name_matcher. Adjust call accordingly.
9927 * psymtab.c (expand_symtabs_matching_via_partial): Likewise.
9928 (maintenance_check_symtabs): Adjust type of parameter "fun".
9929 * psymtab.h (maintenance_check_symtabs): Likewise.
9930
9931 2012-01-26 Joel Brobecker <brobecker@adacore.com>
9932
9933 * language.h (symbol_name_match_p_ftype): New typedef.
9934 (struct language_defn): Replace field la_symbol_name_compare
9935 by la_get_symbol_name_match_p.
9936 * ada-lang.c (ada_get_symbol_name_match_p): New function.
9937 (ada_language_defn): Use it.
9938 * linespec.c (struct symbol_matcher_data): New type.
9939 (iterate_name_matcher): Rewrite.
9940 (iterate_over_all_matching_symtabs): Pass a pointer to
9941 a symbol_matcher_data struct to expand_symtabs_matching
9942 instead of just the lookup name.
9943 * c-lang.c, d-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
9944 opencl-lang.c, p-lang.c, language.c: Delete field
9945 la_symbol_name_compare, and replace by NULL for new field
9946 la_get_symbol_name_match_p.
9947 * symfile.h (struct quick_symbol_functions): Update comment.
9948
9949 2012-01-25 Tom Tromey <tromey@redhat.com>
9950
9951 * breakpoint.c (bpstat_stop_status): Check 'breakpoint_at' before
9952 dereferencing.
9953
9954 2012-01-24 Tom Tromey <tromey@redhat.com>
9955
9956 PR symtab/12406:
9957 * solib.c (update_solib_list): Update the program space's
9958 added_solibs and deleted_solibs fields.
9959 * progspace.h (struct program_space) <added_solibs,
9960 deleted_solibs>: New fields.
9961 (clear_program_space_solib_cache): Declare.
9962 * progspace.c (release_program_space): Call
9963 clear_program_space_solib_cache.
9964 (clear_program_space_solib_cache): New function.
9965 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>: Call
9966 bpstat_stop_status. Use handle_solib_event.
9967 * breakpoint.c: Include gdb_regex.h.
9968 (print_solib_event): New function.
9969 (bpstat_print): Use print_solib_event.
9970 (bpstat_stop_status): Add special case for bp_shlib_event.
9971 (handle_solib_event): New function.
9972 (bpstat_what): Use handle_solib_event.
9973 (struct solib_catchpoint): New.
9974 (dtor_catch_solib, insert_catch_solib, remove_catch_solib)
9975 (breakpoint_hit_catch_solib, check_status_catch_solib)
9976 (print_it_catch_solib, print_one_catch_solib)
9977 (print_mention_catch_solib, print_recreate_catch_solib): New
9978 functions.
9979 (catch_solib_breakpoint_ops): New global.
9980 (catch_load_or_unload, catch_load_command_1)
9981 (catch_unload_command_1): New functions.
9982 (internal_bkpt_check_status): Add special case for
9983 bp_shlib_event.
9984 (internal_bkpt_print_it): Use print_solib_event.
9985 (initialize_breakpoint_ops): Initialize
9986 catch_solib_breakpoint_ops.
9987 (_initialize_breakpoint): Register "catch load" and "catch
9988 unload".
9989 * breakpoint.h (handle_solib_event): Declare.
9990 * NEWS: Add entry for "catch load" and "catch unload".
9991
9992 2012-01-24 Tom Tromey <tromey@redhat.com>
9993
9994 * ada-lang.c: Include gdb_vecs.h.
9995 * charset.c: Include gdb_vecs.h.
9996 * tracepoint.h: Include gdb_vecs.h.
9997 * gdb_vecs.h: New file.
9998
9999 2012-01-24 Pedro Alves <pedro@codesourcery.com>
10000
10001 * breakpoint.c (breakpoint_hit_catch_fork)
10002 (breakpoint_hit_catch_vfork, breakpoint_hit_catch_syscall)
10003 (breakpoint_hit_catch_exec): Make use of the `ws' argument.
10004 * infrun.c (inferior_has_forked, inferior_has_vforked)
10005 (inferior_has_execd, inferior_has_called_syscall): Delete.
10006 (handle_syscall_event): Get syscall_number from the execution
10007 control state's wait status.
10008 (wait_for_inferior): Don't clear syscall_number.
10009
10010 2012-01-24 Pedro Alves <palves@redhat.com>
10011
10012 * breakpoint.c (bpstat_check_location, bpstat_stop_status,
10013 pc_at_non_inline_function): Add `ws' parameter, and pass it down.
10014 (breakpoint_hit_catch_fork, breakpoint_hit_catch_vfork)
10015 (breakpoint_hit_catch_syscall, breakpoint_hit_catch_exec): Add
10016 `ws' parameter.
10017 (breakpoint_hit_ranged_breakpoint): Add `ws' parameter. Return
10018 false for events other than TARGET_SIGNAL_TRAP.
10019 (breakpoint_hit_watchpoint, base_breakpoint_breakpoint_hit):
10020 Add `ws' parameter.
10021 (bkpt_breakpoint_hit): Add `ws' parameter. Return false for
10022 events other than TARGET_SIGNAL_TRAP.
10023 (tracepoint_breakpoint_hit): Add `ws' parameter.
10024 * breakpoint.h (struct breakpoint_ops) <breakpoint_hit>: Add `ws'
10025 parameter.
10026 (bpstat_stop_status): Same.
10027 (pc_at_non_inline_function): Same.
10028 * infrun.c (handle_syscall_event, handle_inferior_event): Adjust
10029 to pass the current event's waitstatus to bpstat_stop_status
10030 and pc_at_non_inline_function.
10031
10032 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
10033
10034 Code cleanup.
10035 * cli/cli-cmds.c (source_script_from_stream): Never fclose STREAM.
10036 Update the function comment for it.
10037 (source_script_with_search): Call make_cleanup_fclose for STREAM.
10038 * cli/cli-script.c (script_from_file): Do not call make_cleanup_fclose
10039 for STREAM.
10040
10041 2012-01-24 Pedro Alves <palves@redhat.com>
10042
10043 * breakpoint.c (bpstat_stop_status): Moving clearing print_it
10044 outside `bs->stop' block.
10045 (bpstat_what): Rework bp_shlib_event handling.
10046 (internal_bkpt_check_status): If the breakpoint is a
10047 bp_shlib_event, then set bs->stop and bs->print if
10048 stop_on_solib_events is set.
10049
10050 2012-01-24 Gary Benson <gbenson@redhat.com>
10051
10052 Delete #if 0'd out code.
10053 * stack.c (print_frame_label_vars): Remove.
10054 (catch_info): Likewise.
10055 (_initialize_stack): Remove "info catch" command.
10056 * NEWS: Mention the above.
10057
10058 2012-01-24 Pedro Alves <palves@redhat.com>
10059
10060 * remote.c (remote_add_inferior): New `fake_pid_p' parameter. Use
10061 it.
10062 (remote_notice_new_inferior): If the remote end doesn't support
10063 the multiprocess extensions, then the PID is fake.
10064 (add_current_inferior_and_thread): New.
10065 (remote_start_remote): Use it.
10066 (extended_remote_attach_1): Adjust.
10067 (extended_remote_create_inferior_1): Use
10068 add_current_inferior_and_thread.
10069
10070 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
10071
10072 Fix watchpoints to be specific for each inferior.
10073 * breakpoint.c (watchpoint_in_thread_scope): Verify also
10074 current_program_space.
10075 * i386-nat.c (i386_inferior_data_cleanup): New.
10076 (i386_inferior_data_get): Replace variable inf_data_local by an
10077 inferior_data call.
10078 (i386_use_watchpoints): Initialize i386_inferior_data.
10079 * linux-nat.c (linux_nat_iterate_watchpoint_lwps): Use INFERIOR_PTID
10080 specific iterate_over_lwps.
10081
10082 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
10083
10084 Fix watchpoints across inferior fork.
10085 * amd64-linux-nat.c (update_debug_registers_callback): Update the
10086 comment for linux_nat_iterate_watchpoint_lwps.
10087 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
10088 linux_nat_iterate_watchpoint_lwps.
10089 (amd64_linux_prepare_to_resume): New comment on Linux kernel.
10090 * i386-linux-nat.c (update_debug_registers_callback): Update the
10091 comment for linux_nat_iterate_watchpoint_lwps.
10092 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
10093 linux_nat_iterate_watchpoint_lwps.
10094 (i386_linux_prepare_to_resume): New comment on Linux kernel.
10095 * i386-nat.c: Include inferior.h.
10096 (dr_mirror): Remove.
10097 (i386_inferior_data, struct i386_inferior_data)
10098 (i386_inferior_data_get): New.
10099 (i386_debug_reg_state): Use i386_inferior_data_get.
10100 (i386_cleanup_dregs, i386_update_inferior_debug_regs)
10101 (i386_insert_watchpoint, i386_remove_watchpoint)
10102 (i386_stopped_data_address, i386_insert_hw_breakpoint)
10103 (i386_remove_hw_breakpoint): New variable state, use
10104 i386_debug_reg_state instead of DR_MIRROR.
10105 * linux-nat.c (delete_lwp): New declaration.
10106 (num_lwps): Move here from downwards.
10107 (delete_lwp_cleanup): New.
10108 (linux_child_follow_fork): Create new child_lp, call
10109 linux_nat_new_thread and linux_nat_prepare_to_resume before calling
10110 PTRACE_DETACH.
10111 (num_lwps): Move upwards.
10112 (linux_nat_iterate_watchpoint_lwps): New.
10113 * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): New.
10114 (linux_nat_iterate_watchpoint_lwps_ftype): New declaration.
10115
10116 2012-01-24 Joel Brobecker <brobecker@adacore.com>
10117
10118 GDB 7.4 released.
10119
10120 2012-01-23 Pedro Alves <palves@redhat.com>
10121
10122 * top.c (caution): Rename to ...
10123 (confirm): ... this.
10124 (show_caution): Rename to ...
10125 (show_confirm): ... this.
10126 (quit_cover): Adjust.
10127 (init_main): Adjust.
10128 * top.h (caution): Rename to ...
10129 (confirm): ... this.
10130 * utils.c (internal_vproblem, defaulted_query): Adjust.
10131
10132 2012-01-23 Pedro Alves <palves@redhat.com>
10133
10134 * top.c (caution): Update comment.
10135 (execute_command): Don't consider the current value of `caution'.
10136
10137 2012-01-23 Jan Kratochvil <jan.kratochvil@redhat.com>
10138
10139 * cli/cli-cmds.c (find_and_open_script): Handle failure of fdopen.
10140
10141 2012-01-23 Ulrich Weigand <ulrich.weigand@linaro.org>
10142
10143 * inf-child.c: Include "gdb_stat.h" instead of <sys/stat.h>.
10144 * linux-tdep.c (linux_info_proc): Avoid ARI coding style warning.
10145 * target.c (target_fileio_pwrite): Remove buffer address from
10146 debug output.
10147 (target_fileio_pread): Likewise.
10148
10149 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
10150
10151 * NEWS: Document remote "info proc" and "generate-core-file".
10152
10153 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
10154
10155 * gdbarch.sh (find_memory_regions): New callback.
10156 * gdbarch.c, gdbarch.h: Regenerate.
10157
10158 * gcore.c (gcore_memory_sections): Try gdbarch find_memory_regions
10159 callback before falling back to target method.
10160
10161 * linux-nat.c (read_mapping, linux_nat_find_memory_regions): Remove.
10162 (linux_target_install_ops): No longer install it.
10163
10164 * linux-tdep.c (linux_find_memory_regions): New function.
10165 (linux_init_abi): Install it.
10166
10167 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
10168
10169 * gdbarch.sh (make_corefile_notes): New architecture callback.
10170 * gdbarch.c: Regenerate.
10171 * gdbarch.h: Likewise.
10172
10173 * gcore.c (write_gcore_file): Try gdbarch_make_corefile_notes
10174 before target_make_corefile_notes. If NULL is returned, the
10175 target does not support core file generation.
10176
10177 * linux-nat.c: Include "linux-tdep.h".
10178 (find_signalled_thread, find_stop_signal): Remove.
10179 (linux_nat_do_thread_registers): Likewise.
10180 (struct linux_nat_corefile_thread_data): Likewise.
10181 (linux_nat_corefile_thread_callback): Likewise.
10182 (iterate_over_spus): Likewise.
10183 (struct linux_spu_corefile_data): Likewise.
10184 (linux_spu_corefile_callback): Likewise.
10185 (linux_spu_make_corefile_notes): Likewise.
10186 (linux_nat_collect_thread_registers): New function.
10187 (linux_nat_make_corefile_notes): Replace contents by call to
10188 linux_make_corefile_notes passing linux_nat_collect_thread_registers
10189 as native-only callback.
10190
10191 * linux-tdep.h: Include "bfd.h".
10192 (struct regcache): Add forward declaration.
10193 (linux_collect_thread_registers_ftype): New typedef.
10194 (linux_make_corefile_notes): Add prototype.
10195 * linux-tdep.c: Include "gdbthread.h", "gdbcore.h", "regcache.h",
10196 "regset.h", and "elf-bfd.h".
10197 (find_signalled_thread, find_stop_signal): New functions.
10198 (linux_spu_make_corefile_notes): Likewise.
10199 (linux_collect_thread_registers): Likewise.
10200 (struct linux_corefile_thread_data): New data structure.
10201 (linux_corefile_thread_callback): New funcion.
10202 (linux_make_corefile_notes): Likewise.
10203 (linux_make_corefile_notes_1): Likewise.
10204 (linux_init_abi): Install it.
10205
10206 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
10207
10208 * gdbarch.sh (info_proc): New callback.
10209 * gdbarch.c, gdbarch.h: Regenerate.
10210
10211 * infcmd.c (info_proc_cmd_1): Try gdbarch info_proc callback
10212 before falling back to the target info_proc callback.
10213
10214 * linux-nat.c: Do not include "cli/cli-utils.h".
10215 (linux_nat_info_proc): Remove.
10216 (linux_target_install_ops): No longer install it.
10217
10218 * linux-tdep.c: Include "cli/cli-utils.h" and <ctype.h>.
10219 (read_mapping): New function.
10220 (linux_info_proc): Likewise.
10221 (linux_init_abi): Install it.
10222
10223 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
10224
10225 * defs.h (enum info_proc_what): Moved here from linux-nat.c
10226 * infcmd.c: (info_proc_cmd_1): New function.
10227 (info_proc_cmd): New function, moved here from equivalent routine
10228 orignally in linux-nat.c.
10229 (info_proc_cmd_mappings): Likewise.
10230 (info_proc_cmd_stat): Likewise.
10231 (info_proc_cmd_status): Likewise.
10232 (info_proc_cmd_cwd): Likewise.
10233 (info_proc_cmd_cmdline): Likewise.
10234 (info_proc_cmd_exe): Likewise.
10235 (info_proc_cmd_all): Likewise.
10236 (_initialize_infcmd): Install "info proc" command and subcommands.
10237
10238 * target.h (struct target_ops): Add to_info_proc.
10239 (target_info_proc): Add prototype.
10240 * target.c (target_info_proc): New function.
10241
10242 * procfs.c (procfs_info_proc): Add prototype.
10243 (info_proc_cmd): Rename into ...
10244 (procfs_info_proc): ... this. Update argument types as appropriate
10245 for a to_info_proc implementation. Handle "what" argument.
10246 (procfs_target): Install procfs_info_proc.
10247 (_initialize_procfs): No longer install "info proc" command.
10248
10249 * linux-nat.c: (enum info_proc_what): Remove.
10250 (linux_nat_info_proc_cmd_1): Rename into ...
10251 (linux_nat_info_proc): ... this. Update argument types as appropriate
10252 for a to_info_proc implementation.
10253 (linux_nat_info_proc_cmd): Remove.
10254 (linux_nat_info_proc_cmd_mappings): Likewise.
10255 (linux_nat_info_proc_cmd_stat): Likewise.
10256 (linux_nat_info_proc_cmd_status): Likewise.
10257 (linux_nat_info_proc_cmd_cwd): Likewise.
10258 (linux_nat_info_proc_cmd_cmdline): Likewise.
10259 (linux_nat_info_proc_cmd_exe): Likewise.
10260 (linux_nat_info_proc_cmd_all): Likewise.
10261 (linux_target_install_ops): Install linux_nat_info_proc.
10262 (_initialize_linux_nat): No longer install "info proc" command
10263 and subcommands.
10264
10265 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
10266
10267 * configure.ac [AC_CHECK_FUNCS]: Check for readlink.
10268 * config.in, configure: Regenerate.
10269
10270 * target.h (struct target_ops): Add to_fileio_readlink.
10271 (target_fileio_readlink): Add prototype.
10272 * target.c (target_fileio_readlink): New function.
10273
10274 * inf-child.c: Conditionally include <sys/param.h>.
10275 (inf_child_fileio_readlink): New function.
10276 (inf_child_target): Install it.
10277
10278 * remote.c (PACKET_vFile_readlink): New enum value.
10279 (remote_hostio_readlink): New function.
10280 (init_remote_ops): Install it.
10281 (_initialize_remote): Handle vFile:readlink packet type.
10282
10283 2012-01-20 Pedro Alves <palves@redhat.com>
10284 Ulrich Weigand <ulrich.weigand@linaro.org>
10285
10286 * configure.ac [AC_CHECK_FUNCS]: Check for pread and pwrite.
10287 * config.in, configure: Regenerate.
10288
10289 * target.h (struct target_ops): Add to_fileio_open, to_fileio_pwrite,
10290 to_fileio_pread, to_fileio_close, to_fileio_unlink.
10291 (target_fileio_open): Add prototype.
10292 (target_fileio_pwrite): Likewise.
10293 (target_fileio_pread): Likewise.
10294 (target_fileio_close): Likewise.
10295 (target_fileio_unlink): Likewise.
10296 (target_fileio_read_alloc): Likewise.
10297 (target_fileio_read_stralloc): Likewise.
10298
10299 * target.c: Include "gdb/fileio.h".
10300 (target_read_stralloc): Accept trailing, but not embedded NUL bytes.
10301 (default_fileio_target): New function.
10302 (target_fileio_open): Likewise.
10303 (target_fileio_pwrite): Likewise.
10304 (target_fileio_pread): Likewise.
10305 (target_fileio_close): Likewise.
10306 (target_fileio_unlink): Likewise.
10307 (target_fileio_close_cleanup): Likewise.
10308 (target_fileio_read_alloc_1): Likewise.
10309 (target_fileio_read_alloc): Likewise.
10310 (target_fileio_read_stralloc): Likewise.
10311
10312 * inf-child.c: Include "gdb/fileio.h", <sys/types.h>, <sys/stat.h>,
10313 <fcntl.h>, and <unistd.h>.
10314 (inf_child_fileio_open_flags_to_host): New function.
10315 (inf_child_errno_to_fileio_error): Likewise.
10316 (inf_child_fileio_open): Likewise.
10317 (inf_child_fileio_pwrite): Likewise.
10318 (inf_child_fileio_pread): Likewise.
10319 (inf_child_fileio_close): Likewise.
10320 (inf_child_fileio_unlink): Likewise.
10321 (inf_child_target): Install to_fileio routines.
10322
10323 * remote.c (init_remote_ops): Install to_fileio routines.
10324
10325 2012-01-20 Pedro Alves <palves@redhat.com>
10326 Ulrich Weigand <ulrich.weigand@linaro.org>
10327
10328 * remote.c (remote_multi_process_p): Only check for multi-process
10329 protocol feature, do not check for extended protocol.
10330 (remote_supports_multi_process): Check for extended protocol here.
10331 (set_general_process): Likewise.
10332 (extended_remote_kill): Likewise.
10333 (remote_pid_to_str): Likewise.
10334 (remote_query_supported): Always query multiprocess mode.
10335
10336 2012-01-20 Pedro Alves <palves@redhat.com>
10337 Ulrich Weigand <ulrich.weigand@linaro.org>
10338
10339 * inferior.h (struct inferior): Add fake_pid_p.
10340 * inferior.c (exit_inferior_1): Clear fake_pid_p.
10341 * remote.c (remote_start_remote): Set fake_pid_p if we have to use
10342 magic_null_ptid since the remote side doesn't provide a real PID.
10343
10344 2012-01-19 Tom Tromey <tromey@redhat.com>
10345
10346 * NEWS: Combine the two Python sections.
10347
10348 2012-01-19 Jan Kratochvil <jan.kratochvil@redhat.com>
10349
10350 * target.h (target_close): Update comment on the target's unpush state.
10351
10352 2012-01-19 Pedro Alves <palves@redhat.com>
10353
10354 * linux-nat.c (linux_nat_close): Call linux_nat_is_async_p and
10355 linux_nat_async directly instead of going through the target
10356 vector.
10357 * target.c (unpush_target): Close target after unpushing it, not
10358 before.
10359
10360 2012-01-19 Gary Benson <gbenson@redhat.com>
10361
10362 * mdebugread.c (sort_blocks): Replace integer constants with ones
10363 derived from FIRST_LOCAL_BLOCK.
10364
10365 2012-01-18 Paul Pluzhnikov <ppluzhnikov@google.com>
10366 Jan Kratochvil <jan.kratochvil@redhat.com>
10367
10368 PR gdb/9538
10369 * symfile.c (find_separate_debug_file): New function.
10370 (terminate_after_last_dir_separator): Likewise.
10371 (find_separate_debug_file_by_debuglink): Also try realpath.
10372 * configure.ac (AC_CHECK_FUNCS): Add lstat.
10373 * configure: Regenerate.
10374 * config.in: Regenerate.
10375
10376 2012-01-18 Doug Evans <dje@google.com>
10377
10378 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): Delete.
10379 (main.o): Remove rule.
10380 * configure.ac (BINDIR): Define with AC_DEFINE_DIR.
10381 (--with-sysroot): Rewrite.
10382 * configure: Regenerate.
10383 * config.in: Regenerate.
10384
10385 2012-01-18 Sergio Durigan Junior <sergiodj@redhat.com>
10386
10387 * parse.c (initialize_expout): New function.
10388 (reallocate_expout): Likewise.
10389 (parse_exp_in_context): Use `initialize_expout' and
10390 `reallocate_expout' when appropriate.
10391
10392 2012-01-18 Pedro Alves <palves@redhat.com>
10393
10394 * record.c (struct record_breakpoint, record_breakpoint_p)
10395 (record_breakpoints): New.
10396 (record_insert_breakpoint, record_remove_breakpoint): Manage
10397 record breakpoints list. Only remove breakpoints from the
10398 inferior if they had been inserted there in the first place.
10399
10400 2012-01-17 Doug Evans <dje@google.com>
10401
10402 * linespec.c (decode_line_internal): Don't call symtabs_from_filename
10403 if we know we don't have a file name to look for.
10404
10405 2012-01-17 Pedro Alves <palves@redhat.com>
10406
10407 * dwarf2-frame.c (dwarf2_frame_cfa): Throw NOT_AVAILABLE_ERROR, if
10408 the frame's stop reason is UNWIND_UNAVAILABLE.
10409
10410 2012-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
10411
10412 Fix compilation error.
10413 * m2-exp.y (yyerror): Use ANSI C prototype.
10414
10415 2012-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
10416
10417 * f-exp.y (parse_number): Convert prototype from K&R to ANSI C.
10418 (growbuf_by_size): Likewise.
10419 (yyerror): Likewise.
10420 * m2-exp.y (make_qualname): Remove function (was #if 0'ed).
10421 (modblock): Remove variable (was #if 0'ed).
10422 (parse_number): Convert prototype from K&R to ANSI C.
10423 (yyerror): Likewise.
10424 * objc-exp.y (parse_number): Likewise.
10425 (yyerror): Likewise.
10426 (yylex): Remove #if 0'ed code.
10427 * p-exp.y (uptok): Convert prototype from K&R to ANSI C.
10428 (yyerror): Likewise.
10429
10430 2012-01-16 Tom Tromey <tromey@redhat.com>
10431
10432 * NEWS: Add item.
10433 * symtab.h (compare_filenames_for_search): Declare.
10434 * symtab.c (compare_filenames_for_search): New function.
10435 (iterate_over_some_symtabs): Use it.
10436 * symfile.h (struct quick_symbol_functions)
10437 <map_symtabs_matching_filename>: Change spec.
10438 * psymtab.c (partial_map_symtabs_matching_filename): Use
10439 compare_filenames_for_search. Update for new spec.
10440 * dwarf2read.c (dw2_map_symtabs_matching_filename): Use
10441 compare_filenames_for_search. Update for new spec.
10442 * breakpoint.c (clear_command): Use compare_filenames_for_search.
10443
10444 2012-01-16 Tom Tromey <tromey@redhat.com>
10445
10446 PR python/13281:
10447 * gdbtypes.h (TYPE_FLAG_ENUM): New macro.
10448 (struct main_type) <flag_flag_enum>: New field.
10449 * dwarf2read.c (process_enumeration_scope): Detect "flag" enums.
10450 * NEWS: Add entries.
10451 * c-valprint.c (c_val_print) <TYPE_CODE_ENUM>: Handle "flag"
10452 enums.
10453 * python/lib/gdb/printing.py (_EnumInstance): New class.
10454 (FlagEnumerationPrinter): Likewise.
10455
10456 2012-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
10457
10458 * breakpoint.c (create_sals_from_address_default): New function.
10459 (create_breakpoints_sal_default): Likewise.
10460 (decode_linespec_default): Likewise.
10461 (is_marker_spec): Removed.
10462 (strace_marker_p): New function.
10463 (init_breakpoint_sal): Using `strace_marker_p' instead of
10464 `is_marker_spec'.
10465 (create_breakpoint): Call method `create_sals_from_address' from
10466 breakpoint_ops, replacing code that created SALs conditionally
10467 on the type of the breakpoint. Call method `create_breakpoints_sal',
10468 replacing code that created breakpoints conditionally on the type
10469 wanted.
10470 (base_breakpoint_create_sals_from_address): New function.
10471 (base_breakpoint_create_breakpoints_sal): Likewise.
10472 (base_breakpoint_decode_linespec): Likewise.
10473 (base_breakpoint_ops): Add methods
10474 `base_breakpoint_create_sals_from_address',
10475 `base_breakpoint_create_breakpoints_sal' and
10476 `base_breakpoint_decode_linespec'.
10477 (bkpt_create_sals_from_address): New function.
10478 (bkpt_create_breakpoints_sal): Likewise.
10479 (bkpt_decode_linespec): Likewise.
10480 (tracepoint_create_sals_from_address): Likewise.
10481 (tracepoint_create_breakpoints_sal): Likewise.
10482 (tracepoint_decode_linespec): Likewise.
10483 (strace_marker_create_sals_from_address): Likewise.
10484 (strace_marker_create_breakpoints_sal): Likewise.
10485 (strace_marker_decode_linespec): Likewise.
10486 (strace_marker_breakpoint_ops): New variable.
10487 (addr_string_to_sals): Remove `marker_spec'. Call method
10488 `decode_linespec' from breakpoint_ops, replacing code that decoded
10489 an address string into a SAL. Use `strace_marker_p' instead of
10490 `marker_spec'.
10491 (strace_command): Decide whether we are dealing with a static
10492 tracepoint with marker or not. Use the appropriate breakpoint_ops.
10493 (initialize_breakpoint_ops): Initialize new fields of breakpoint_ops.
10494 * breakpoint.h (linespec_result, linespec_sals): New forward
10495 declarations.
10496 (breakpoint_ops) <create_sals_from_address>,
10497 <create_breakpoints_sal>, <decode_linespec>: New methods.
10498
10499 2012-01-14 Doug Evans <dje@google.com>
10500
10501 * NEWS: Update text for "maint set python print-stack".
10502 It is deprecated in gdb 7.4 and deleted in 7.5.
10503
10504 2012-01-13 Eli Zaretskii <eliz@gnu.org>
10505
10506 * gdb_curses.h (MOUSE_MOVED) [__MINGW32__]: Undefine before
10507 including curses.h.
10508
10509 2012-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
10510
10511 * configure: Regenerate.
10512 * config.in: Regenerate.
10513
10514 2012-01-12 Keith Seitz <keiths@redhat.com>
10515
10516 PR mi/10586
10517 * varobj.c (ANONYMOUS_STRUCT_NAME): Define.
10518 (ANONYMOUS_UNION_NAME): Define.
10519 (is_path_expr_parent): New function.
10520 (get_path_expr_parent): New function.
10521 (is_anonymous_child): New function.
10522 (create_child_with_value): If the child is anonymous and without
10523 a name, assign an object name to it.
10524 (c_describe_child): Use get_path_expr_parent to determine
10525 the parent expression.
10526 If there field represents an anonymous struct or union and
10527 has no name, set an appropriate display name and expression.
10528 (cplus_describe_child): Likewise.
10529
10530 2012-01-12 Pedro Alves <palves@redhat.com>
10531
10532 * i386-tdep.c (i386_frame_cache_1): Also mark the frame base as
10533 available when %ebp is found to be zero (outermost).
10534
10535 2012-01-11 Andreas Tobler <andreast@fgznet.ch>
10536
10537 * common/gdb_assert.h (gdb_static_assert): Rename static_assert to
10538 an internal gdb_static_assert.
10539 * mi/mi-common.c: Rename static_assert to gdb_static_assert.
10540
10541 2012-01-11 Tom Tromey <tromey@redhat.com>
10542
10543 PR gdb/9598:
10544 * breakpoint.c (_initialize_breakpoint): Fix help for "catch
10545 catch" and "catch throw".
10546
10547 2012-01-11 Paul Hilfinger <hilfingr@adacore.com>
10548
10549 * blockframe.c (block_innermost_frame): Start search from selected
10550 frame, if present, or otherwise the current frame.
10551
10552 * c-exp.y (variable): Update innermost_block for
10553 'block COLONCOLON NAME' clause.
10554 * m2-exp.y (variable): Ditto.
10555 * objc-exp.y (variable): Ditto.
10556
10557 2012-01-10 Tom Tromey <tromey@redhat.com>
10558
10559 PR python/13199:
10560 * python/python.c (finish_python_initialization): Set sys.argv.
10561
10562 2012-01-10 Doug Evans <dje@google.com>
10563
10564 * dwarf2read.c (dwarf_decode_lines): Remove arg "abfd". New arg
10565 "want_line_info". All callers updated.
10566 (dwarf_decode_lines_1): New function.
10567 (handle_DW_AT_stmt_list): Add function comment.
10568 New arg "want_line_info". All callers updated.
10569 (read_file_scope,read_type_unit_scope): Move comment from
10570 handle_DW_AT_stmt_list to here.
10571
10572 2012-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
10573
10574 Fix regression after libiberty/ update for GCC PR 6057 and others.
10575 * c-exp.y (operator) <OPERATOR DELETE>
10576 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
10577 * cp-name-parser.y (fill_comp, make_operator, make_dtor)
10578 (make_builtin_type, make_name): New variable i, add gdb_assert.
10579 (operator) <OPERATOR NEW>: Update ARGS to 3.
10580 (operator) <OPERATOR DELETE>: Add trailing space.
10581 (operator) <OPERATOR NEW '[' ']'>: Update ARGS to 3.
10582 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
10583 * cp-support.c (cp_canonicalize_string): Check NULL from
10584 cp_comp_to_string, call warning and return.
10585
10586 2012-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
10587
10588 Fix duplicate .o files after omitting libbfd.a.
10589 * Makefile.in (ALL_TARGET_OBS): Remove corelow.o.
10590 (SFILES): Add corelow.c.
10591 (COMMON_OBS): Add corelow.o.
10592 (ALLDEPFILES): Remove corelow.c.
10593 * config/alpha/alpha-linux.mh (NATDEPFILES): Remove corelow.o.
10594 * config/alpha/alpha-osf3.mh: Likewise.
10595 * config/alpha/fbsd.mh: Likewise.
10596 * config/arm/nbsdaout.mh: Likewise.
10597 * config/arm/nbsdelf.mh: Likewise.
10598 * config/i386/i386gnu.mh: Likewise.
10599 * config/ia64/hpux.mh: Likewise.
10600 * config/ia64/linux.mh: Likewise.
10601 * config/m32r/linux.mh: Likewise.
10602 * config/m68k/linux.mh: Likewise.
10603 * config/mips/irix5.mh: Likewise.
10604 * config/mips/irix6.mh: Likewise.
10605 * config/pa/hpux.mh: Likewise.
10606 * config/pa/linux.mh: Likewise.
10607 * config/powerpc/aix.mh: Likewise.
10608 * config/sparc/linux.mh: Likewise.
10609 * config/sparc/linux64.mh: Likewise.
10610 * config/sparc/sol2.mh: Likewise.
10611 * config/vax/vax.mh: Likewise.
10612 * configure.tgt (alpha*-*-freebsd* alpha*-*-kfreebsd*-gnu)
10613 (alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu, alpha*-*-openbsd*)
10614 (am33_2.0*-*-linux*, arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-linux*)
10615 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-netbsd*)
10616 (hppa*-*-openbsd*, i[34567]86-*-dicos*, i[34567]86-*-freebsd*)
10617 (i[34567]86-*-kfreebsd*-gnu, i[34567]86-*-netbsd*)
10618 (i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*, i[34567]86-*-nto*)
10619 (i[34567]86-*-solaris2.1[0-9]*, x86_64-*-solaris2.1[0-9]*)
10620 (i[34567]86-*-solaris*, i[34567]86-*-linux*, i[34567]86-*-cygwin*)
10621 (i[34567]86-*-mingw32*, m68*-*-netbsd*, m68*-*-knetbsd*-gnu)
10622 (m68*-*-openbsd*, m88*-*-openbsd*, microblaze*-linux-*)
10623 (microblaze*-*-linux*, mips*-*-linux*, mips*-*-netbsd*)
10624 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
10625 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-linux*)
10626 (powerpc64-*-linux*, s390*-*-*, score-*-*, sh*-*-linux*)
10627 (sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
10628 (sparc*-*-freebsd*, sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*)
10629 (sparc-*-knetbsd*-gnu, sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu)
10630 (sparc-*-openbsd*, sparc64-*-openbsd*, tic6x-*-*linux, vax-*-netbsd*)
10631 (vax-*-knetbsd*-gnu, vax-*-openbsd*, x86_64-*-dicos*, x86_64-*-linux*)
10632 (x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu, x86_64-*-netbsd*)
10633 (x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*, xtensa*-*-linux*): Remove
10634 corelow.o from gdb_target_obs.
10635 * corefile.c (core_target): Update the comment on NULL value.
10636 (core_file_command): Replace error by gdb_assert on CORE_TARGET.
10637 * corelow.c (sniff_core_bfd): Call error instead of warning on zero
10638 MATCHES. Drop YUMMY set on NULL.
10639 (core_close): Do not call exit_inferior_silent on zero PID. Do not
10640 reclaim CORE_DATA if it is already NULL.
10641
10642 2012-01-09 Doug Evans <dje@google.com>
10643
10644 * gdbtypes.c (safe_parse_type): Initialize type to keep gcc happy.
10645 * varobj.c (varobj_set_value): Initialize val,value to keep gcc happy.
10646
10647 2012-01-09 Keith Seitz <keiths@redhat.com>
10648
10649 * breakpoint.c (wrapper.h): Don't include.
10650
10651 2012-01-09 Keith Seitz <keiths@redhat.com>
10652
10653 * Makefile.in (SFILES): Remove wrapper.c.
10654 (HFILES_NO_SRCDIR): Remove wrapper.h.
10655 (COMMON_OBS): Remove wrapper.o.
10656 * cli/cli-interp.c: Don't inlude wrapper.h.
10657 * corelow.c: Likewise.
10658 (core_open): Replace gdb_target_find_new_threads with
10659 TRY_CATCH around target_find_new_threads.
10660 * eval.c (fetch_subexp_value): Likewise for value_fetch_lazy.
10661 * gdbtypes.c (safe_parse_type): Likewise for parse_and_eval_type.
10662 * varobj.c (varobj_create): Likewise for parse_exp_1 and
10663 evaluate_expression.
10664 (varobj_set_value): Likewise for evaluate_expression and
10665 value_assign.
10666 (install_new_variable): Likewise for value_fetch_lazy.
10667 (adjust_value_for_child_access): Likewise for value_ind.
10668 (c_describe_child): Likewise for value_subscript and
10669 value_ind.
10670 (c_value_of_root): Likewise for evaluate_expression.
10671 * wrapper.c: Remove.
10672 * wrapper.h: Remove.
10673
10674 2012-01-09 Doug Evans <dje@google.com>
10675
10676 * dwarf2read.c (read_and_check_comp_unit_head): Renamed from
10677 partial_read_comp_unit_head. Replace "buffer", "buffer_size" and
10678 "abfd" args with "section". All callers updated.
10679 Error checking code moved ...
10680 (error_check_comp_unit_head): ... here. New function.
10681 (read_and_check_type_unit_head): Renamed from read_type_unit_head.
10682 Delete arg "abfd". New arg "type_offset". All callers updated.
10683 (create_debug_types_hash_table): Simplify by using
10684 read_and_check_type_unit_head.
10685
10686 * parser-defs.h (namecopy): Delete.
10687 * parse.c (namecopy, namecopy_size): Move into copy_name.
10688
10689 2012-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
10690
10691 Partially fix duplicate .o files after omitting libbfd.a.
10692 * config/alpha/alpha-osf3.mh (NATDEPFILES): Remove solib.o.
10693 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
10694 * config/i386/obsdaout.mh (NATDEPFILES): Remove solib.o.
10695 * config/m68k/nbsdaout.mh (NATDEPFILES): Remove solib.o.
10696 * config/m68k/obsd.mh (NATDEPFILES): Remove solib.o.
10697 * config/powerpc/aix.mh (NATDEPFILES): Remove xcoffread.o.
10698 * config/vax/nbsdaout.mh (NATDEPFILES): Remove solib.o.
10699
10700 2012-01-09 Pedro Alves <palves@redhat.com>
10701
10702 * MAINTAINERS: Update my email address.
10703
10704 2012-01-08 Doug Evans <dje@google.com>
10705
10706 * dwarf2read.c (dwarf2_per_objfile): Rename n_type_comp_units to
10707 n_type_units. Rename type_comp_units to all_type_units.
10708 All uses updated.
10709 (add_signatured_type_cu_to_table): Renamed from
10710 add_signatured_type_cu_to_list. All callers updated.
10711
10712 * gdbtypes.h (struct cplus_struct_type): Delete member
10713 nfn_fields_total. All uses removed.
10714
10715 2012-01-06 Doug Evans <dje@google.com>
10716
10717 * dwarf2read.c: Move FIXME from dwarf2_build_psymtabs_hard
10718 to top of file.
10719 (dwarf2_find_comp_unit): Delete.
10720 (process_psymtab_comp_unit): Make result "void".
10721 Delete args buffer, info_ptr, buffer_size, and replace with
10722 "section". All callers updated.
10723 (dwarf2_build_psymtabs_hard): Simplify.
10724
10725 2012-01-06 Sergio Durigan Junior <sergiodj@redhat.com>
10726 Thiago Jung Bauermann <bauerman@br.ibm.com>
10727
10728 * ada-lang.c (ada_exception_name_addr): Add `volatile' keyword
10729 before `struct gdb_exception'.
10730 * breakpoint.c (update_global_location_list_nothrow)
10731 (update_breakpoint_locations, enable_breakpoint_disp): Likewise.
10732 * cp-abi.c (value_rtti_type): Likewise.
10733 * cp-support.c (cp_validate_operator): Likewise.
10734 * infrun.c (insert_exception_resume_breakpoint)
10735 (check_exception_resume, keep_going): Likewise.
10736 * mi-interp.c (mi_breakpoint_created)
10737 (mi_breakpoint_modified): Likewise.
10738 * rs6000-aix-tdep.c (rs6000_convert_from_func_ptr_addr): Likewise.
10739 * solib-ia64-hpux.c (ia64_hpux_at_dld_breakpoint_p)
10740 (ia64_hpux_handle_dld_breakpoint_1): Likewise.
10741
10742 2012-01-05 Doug Evans <dje@google.com>
10743
10744 * dwarf2read.c (statement_prologue): Delete, unused.
10745
10746 * dwarf2read.c (dwarf2_per_cu_addr_size): Make result type an int.
10747 * dwarf2loc.h (dwarf2_per_cu_addr_size): Update.
10748
10749 * dwarf2read.c (comp_unit_header): Delete, unused.
10750
10751 2012-01-05 Ulrich Weigand <uweigand@de.ibm.com>
10752
10753 * configure.tgt [s390*-*-*] (gdb_target_obs): Add corelow.o.
10754 * config/s390/s390.mh (NATDEPFILES): Remove corelow.o.
10755
10756 2012-01-05 Khoo Yit Phang <khooyp@cs.umd.edu>
10757
10758 * infrun.c (normal_stop): Don't skip calling the normal_stop
10759 observers if the thread was doing a multi-step, but stopped for
10760 some reason other than stepping.
10761
10762 2012-01-05 Pedro Alves <alves.ped@gmail.com>
10763
10764 * cli/cli-decode.h: Add comments.
10765 (CMD_LIST_AMBIGUOUS): Moved to command.h
10766 (add_cmd, add_alias_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
10767 (set_cmd_cfunc, set_cmd_sfunc, set_cmd_completer, cmd_cfunc_eq)
10768 (set_cmd_context, get_cmd_context, lookup_cmd, lookup_cmd_1)
10769 (deprecate_cmd, deprecated_cmd_warning, lookup_cmd_composition)
10770 (add_com, add_com_alias, add_info, add_info_alias)
10771 (complete_on_cmdlist, complete_on_enum, help_list): Remove
10772 declarations.
10773 * command.h: Add and adjust comments.
10774 (CMD_LIST_AMBIGUOUS): Moved here.
10775 (help_cmd, help_cmd_list): Delete declarations.
10776
10777 2012-01-04 Doug Evans <dje@google.com>
10778
10779 * dwarf2read.c (dwarf2_read_abbrevs): Delete arg "abfd".
10780 All callers updated.
10781 (load_full_type_unit): Renamed from read_signatured_type_at_offset.
10782 Replace all arguments with "per_cu". All callers updated.
10783
10784 * dwarf2read.c (dwarf2_per_cu_data): Remove outdated comment.
10785
10786 * dwarf2read.c (init_one_comp_unit): Delete arg "objfile".
10787 New arg "per_cu". All callers updated.
10788
10789 Delete #if 0'd out code.
10790 * language.c (binop_result_type): Delete.
10791 (simple_type, ordered_type, same_type, integral_type): Delete.
10792 (numeric_type, character_type, string_type, boolean_type): Delete.
10793 (float_type, structured_type): Delete.
10794 * language.h: Update.
10795
10796 2012-01-04 Tom Tromey <tromey@redhat.com>
10797
10798 * python/py-value.c (valpy_binop): Initialize 'res_val'.
10799
10800 2012-01-04 Joel Brobecker <brobecker@adacore.com>
10801
10802 * corefile.c (close_exec_file): Delete.
10803 (reopen_exec_file): Remove commented out code that seems related
10804 to close_exec_file, which is being deleted here.
10805 * inferior.h (close_exec_file): Delete.
10806 * fork-child.c (fork_inferior): Remove call to fork_inferior.
10807
10808 2012-01-04 Joel Brobecker <brobecker@adacore.com>
10809
10810 * ada-lang.c: #include "cli/cli-utils.h".
10811 (get_selections): Use skip_spaces.
10812 (ada_get_next_arg): Use skip_spaces and skip_to_space.
10813 (catch_ada_exception_command_split): Use skip_spaces.
10814 (ada_decode_assert_location): Likewise.
10815
10816 2012-01-04 Joel Brobecker <brobecker@adacore.com>
10817
10818 * linespec.c (decode_line_internal): Check for C++ or Java
10819 compound constructs only if the current language is C, C++
10820 or Java.
10821
10822 2012-01-04 Jan Kratochvil <jan.kratochvil@redhat.com>
10823
10824 Revert:
10825 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10826 Joel Brobecker <brobecker@adacore.com>
10827 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
10828 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
10829 3 times.
10830 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
10831 fall through into AT_ENTRY_POINT.
10832 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
10833 DUMMY_ADDR with it.
10834 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
10835 PPC_INSN_SIZE skip to 3 times.
10836
10837 2012-01-04 Joel Brobecker <brobecker@adacore.com>
10838
10839 * linespec.c (add_minsym): Preserve function descriptors.
10840
10841 2012-01-04 Ulrich Weigand <uweigand@de.ibm.com>
10842
10843 * breakpoint.c (all_locations_are_pending): Consider locations
10844 in program spaces executing during startup pending as well.
10845
10846 2012-01-04 Joel Brobecker <brobecker@adacore.com>
10847
10848 Copyright year update in most files of the GDB Project.
10849
10850 2012-01-04 Joel Brobecker <brobecker@adacore.com>
10851
10852 * copyright.sh: Delete.
10853 * copyright.py: Rewrite.
10854
10855 2012-01-04 Joel Brobecker <brobecker@adacore.com>
10856
10857 * gnulib/extra/update-copyright: New file, imported from gnulib.
10858
10859 2012-01-04 Joel Brobecker <brobecker@adacore.com>
10860
10861 * README (Copyright and License Notices): New section.
10862
10863 2012-01-03 Tom Tromey <tromey@redhat.com>
10864
10865 PR python/12533:
10866 * python/py-value.c (valpy_dereference, valpy_get_address
10867 valpy_get_dynamic_type, valpy_lazy_string, valpy_do_cast)
10868 (valpy_getitem, valpy_call, valpy_binop, valpy_negative)
10869 (valpy_absolute, valpy_richcompare): Free intermediate values.
10870
10871 2011-01-03 Joel Brobecker <brobecker@adacore.com>
10872
10873 * ada-lang.c: Reformat the copyright notice.
10874
10875 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10876
10877 * Makefile.in (ALL_TARGET_OBS): Remove solib-target.o.
10878 * configure.tgt (arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-symbianelf*)
10879 (i[34567]86-*-dicos*, i[34567]86-*-cygwin*, i[34567]86-*-mingw32*)
10880 (x86_64-*-dicos*, x86_64-*-mingw*): Remove solib-target.o.
10881 Revert this part of:
10882 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10883 Build gdb directly from *.o files not using libgdb.a.
10884 * Makefile.in (COMMON_OBS): Remove solib-target.o.
10885
10886 2012-01-02 Joel Brobecker <brobecker@adacore.com>
10887
10888 * gdb/common/gdb_thread_db.h, gdb/dbxread.c, gdb/environ.c,
10889 gdb/gcore.h, gdb/rs6000-tdep.h, gdb/s390-nat.c, gdb/tic6x-tdep.c:
10890 Reformat the copyright header.
10891
10892 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10893
10894 Revert this part of:
10895 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10896 Remove the gdbtui binary.
10897 * gdb.c (main): Remove args.interpreter_p initialization.
10898 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
10899 * main.h (struct captured_main_args): Remove interpreter_p.
10900
10901 2012-01-02 Joel Brobecker <brobecker@adacore.com>
10902
10903 * config/djgpp/fnchange.lst: Add entry for ChangeLog-2011.
10904
10905 2012-01-02 Joel Brobecker <brobecker@adacore.com>
10906
10907 * top.c (print_gdb_version): Update copyright year.
10908
10909 2012-01-02 Yao Qi <yao@codesourcery.com>
10910
10911 * inf-ptrace.c (inf_ptrace_xfer_partial): Reindent.
10912
10913 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10914 Joel Brobecker <brobecker@adacore.com>
10915
10916 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
10917 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
10918 3 times.
10919 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
10920 fall through into AT_ENTRY_POINT.
10921 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
10922 DUMMY_ADDR with it.
10923 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
10924 PPC_INSN_SIZE skip to 3 times.
10925
10926 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10927
10928 * amd64-linux-nat.c (update_debug_registers_callback): New comment on
10929 the return value.
10930 * i386-linux-nat.c (update_debug_registers_callback): Likewise.
10931
10932 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10933
10934 Build gdb directly from *.o files not using libgdb.a.
10935 * Makefile.in (SUBDIR_TUI_OBS): Remove duplicate tui.o.
10936 (COMMON_OBS): Remove solib-target.o.
10937 (LIBGDB_OBS, libgdb.a): Move it before the gdb$(EXEEXT) rule.
10938 (gdb$(EXEEXT)): Replace libgdb.a with $(LIBGDB_OBS).
10939 (LIBGDB_OBS, libgdb.a): Move it above.
10940 * configure.tgt (alpha*-*-linux*, alpha*-*-freebsd*)
10941 (alpha*-*-kfreebsd*-gnu, alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu)
10942 (alpha*-*-openbsd*, am33_2.0*-*-linux*, arm*-wince-pe)
10943 (arm*-*-mingw32ce*, arm*-*-linux*, arm*-*-netbsd*, arm*-*-knetbsd*-gnu)
10944 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-linux*)
10945 (hppa*-*-netbsd*, hppa*-*-openbsd*, i[34567]86-*-darwin*)
10946 (i[34567]86-*-dicos*, i[34567]86-*-freebsd*, i[34567]86-*-kfreebsd*-gnu)
10947 (i[34567]86-*-netbsd*, i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*)
10948 (i[34567]86-*-nto*, i[34567]86-*-solaris2.1[0-9]*)
10949 (x86_64-*-solaris2.1[0-9]*, i[34567]86-*-solaris*, i[34567]86-*-linux*)
10950 (i[34567]86-*-gnu*, ia64-*-linux*, m32r*-*-linux*, m68*-*-linux*)
10951 (m68*-*-netbsd*, m68*-*-knetbsd*-gnu, m68*-*-openbsd*)
10952 (microblaze*-linux-*, microblaze*-*-linux*, mips*-sgi-irix5*)
10953 (mips*-sgi-irix6*, mips*-*-linux*, mips*-*-netbsd*)
10954 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
10955 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-aix*, rs6000-*-*)
10956 (powerpc-*-linux*, powerpc64-*-linux*, powerpc*-*-*, s390*-*-*)
10957 (sh*-*-linux*, sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
10958 (sparc-*-linux*, sparc64-*-linux*, sparc*-*-freebsd*)
10959 (sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*, sparc-*-knetbsd*-gnu)
10960 (sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu, sparc-*-openbsd*)
10961 (sparc64-*-openbsd*, sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*)
10962 (sparc-*-solaris2*, sparcv9-*-solaris2*, sparc64-*-solaris2*)
10963 (vax-*-netbsd*, vax-*-knetbsd*-gnu, x86_64-*-darwin*, x86_64-*-dicos*)
10964 (x86_64-*-linux*, x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu)
10965 (x86_64-*-netbsd*, x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*)
10966 (xtensa*-*-linux*, xtensa*): Remove solib.o from gdb_target_obs.
10967
10968 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10969
10970 Remove the gdbtui binary.
10971 * .gitignore (/gdbtui): Remove.
10972 * Makefile.in (TUI): Remove.
10973 (SUBDIR_TUI_OBS): Remove tui-main.o.
10974 (SUBDIR_TUI_SRCS): Remove tui/tui-main.c.
10975 (all-tui, install-tui, uninstall-tui, $(TUI)$(EXEEXT), clean-tui)
10976 (tui-main.o): Remove.
10977 (all_object_files): Remove tui-main.o.
10978 * NEWS: New note for the gdbtui removal.
10979 * configure: Rebuilt.
10980 * configure.ac: No longer add all-tui, clean-tui, install-tui and
10981 uninstall-tui to CONFIG_ALL, CONFIG_CLEAN, CONFIG_INSTALL and
10982 CONFIG_UNINSTALL respectively.
10983 * gdb.c (main): Remove args.interpreter_p initialization.
10984 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
10985 * main.h (struct captured_main_args): Remove interpreter_p.
10986 * tui/tui-main.c: Remove.
10987
10988 2012-01-01 Doug Evans <dje@google.com>
10989
10990 * dwarf2read.c (dwarf2_compute_name): Simplify objfile references.
10991 (dwarf2_physname, read_import_statement): Ditto.
10992 (read_call_site_scope, dwarf2_record_block_ranges): Ditto.
10993 (process_structure_scope read_subroutine_type): Ditto.
10994 (read_typedef, load_partial_dies, read_partial_die): Ditto.
10995 (find_partial_die, dwarf_decode_lines, lookup_die_type): Ditto.
10996 (dwarf2_fetch_die_location_block): Ditto.
10997 (dwarf_decode_macros, dwarf2_symbol_mark_computed): Ditto.
10998
10999 * dwarf2read.c (read_signatured_type): Delete `objfile' arg.
11000 All callers updated.
11001 (load_full_comp_unit, queue_comp_unit, process_queue): Ditto.
11002 (dw2_do_instantiate_symtab, dw2_instantiate_symtab): Ditto.
11003 (process_psymtab_comp_unit, load_partial_comp_unit): Ditto.
11004
11005 * dwarf2read.c (load_cu): Move assert to more useful location.
11006
11007 * dwarf2read.c (free_heap_comp_unit): Renamed from free_one_comp_unit.
11008 All callers updated.
11009
11010 * dwarf2read.c (dwarf2_per_objfile): Add comment.
11011 (dwarf2_elf_names): Minor reformat.
11012 (dwarf2_per_cu_data): Tweak comment.
11013 (dwarf2_read_section): Fix comment.
11014 (create_all_comp_units): Fix comment.
11015 (load_full_comp_unit): Fix comment.
11016 (process_full_comp_unit): Fix comment.
11017 (read_signatured_type): Fix comment.
11018
11019 For older changes see ChangeLog-2011.
11020 \f
11021 Local Variables:
11022 mode: change-log
11023 left-margin: 8
11024 fill-column: 74
11025 version-control: never
11026 coding: utf-8
11027 End:
This page took 0.243362 seconds and 5 git commands to generate.