* tracepoint.c (print_one_static_tracepoint_marker): Constify.
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2012-10-18 Tom Tromey <tromey@redhat.com>
2
3 * tracepoint.c (print_one_static_tracepoint_marker): Constify.
4 * symtab.c (iterate_over_some_symtabs): Constify.
5 * source.h (symtab_to_fullname): Return 'const char *'.
6 * source.c (symtab_to_fullname): Return 'const char *'.
7 * python/py-symtab.c (stpy_fullname): Constify.
8 * cli/cli-cmds.c (edit_command): Constify.
9 * breakpoint.c (print_breakpoint_location)
10 (update_static_tracepoint): Constify.
11
12 2012-10-18 Tom Tromey <tromey@redhat.com>
13
14 * breakpoint.c (compare_breakpoints): Fix comparison.
15
16 2012-10-18 Tom Tromey <tromey@redhat.com>
17
18 * valprint.c (generic_emit_char, generic_printstr): Pass size of
19 gdb_wchar_t to convert_between_encodings.
20
21 2012-10-17 Yao Qi <yao@codesourcery.com>
22
23 * breakpoint.c (invalidate_bp_value_on_memory_change): Add one
24 more parameter 'inferior'.
25 * corefile.c (write_memory_with_notification): Caller update.
26
27 * mi/mi-cmd-var.c: Include "mi-main.h".
28 (mi_cmd_var_assign): Set mi_suppress_notification.data_write_memory
29 to 1 and restore it later.
30 * mi/mi-cmds.c (mi_cmd mi_cmds): Update for "data-write-memory"
31 and "data-write-memory-bytes.
32 * mi/mi-interp.c: Include objfiles.h.
33 (mi_interpreter_init): Call observer_attach_memory_changed.
34 (mi_memory_changed): New.
35 * mi/mi-main.h (struct mi_suppress_notification) <memory>:
36 New field.
37
38 * NEWS: Mention new MI notification "memory-changed".
39
40 2012-10-16 Jan Kratochvil <jan.kratochvil@redhat.com>
41
42 * dwarf2loc.c (dwarf_expr_reg_to_entry_parameter): Remove comment.
43
44 2012-10-15 Doug Evans <dje@google.com>
45
46 New option -nh: inhibit loading of ~/.gdbinit.
47 * NEWS: Mention -nh.
48 * main.c (captured_main): Recognize and process -nh.
49 (print_gdb_help): Mention -nh.
50 * gdb.1: Mention -nh. Remove erroneous docs on -nx behavior.
51
52 2012-10-15 H.J. Lu <hongjiu.lu@intel.com>
53
54 PR backtrace/14646
55 PR gdb/14647
56 * i386-tdep.h (gdbarch_tdep): Remove sp_regnum_from_eax and
57 pc_regnum_from_eax.
58 * i386-tdep.c (i386_gdbarch_init): Don't use sp_regnum_from_eax
59 nor pc_regnum_from_eax.
60 * amd64-tdep.c (amd64_x32_init_abi): Don't set sp_regnum_from_eax
61 nor pc_regnum_from_eax.
62
63 2012-10-15 Jan Kratochvil <jan.kratochvil@redhat.com>
64
65 Fix entry values resolving in inlined frames.
66 * dwarf2loc.c (dwarf_expr_reg_to_entry_parameter): Move func_addr,
67 gdbarch and caller_frame initialization later. Skip INLINE_FRAME
68 entries of FRAME.
69
70 2012-10-15 Joel Brobecker <brobecker@adacore.com>
71
72 * configure.ac: Build with -DMS_WIN64 if building with Python
73 enabled using GCC on amd64-windows.
74 * configure: Regenerate.
75
76 2012-10-15 Tom Tromey <tromey@redhat.com>
77
78 PR python/14635:
79 * python/py-symtab.c (del_objfile_sal): Set 'symtab' field
80 to Py_None.
81
82 2012-10-15 Tom Tromey <tromey@redhat.com>
83
84 PR python/14634:
85 * python/py-symbol.c (sympy_dealloc): Check for NULL symbol.
86
87 2012-10-11 Andrew Burgess <aburgess@broadcom.com>
88
89 * remote-sim.c (gdbsim_create_inferior): Call init_thread_list to
90 reset thread numbering back to 1.
91
92 2012-10-11 Doug Evans <dje@google.com>
93
94 PR breakpoints/14643.
95 * linespec.c (struct ls_parser): New member keyword_ok.
96 (linespec_lexer_lex_string): Add comment.
97 (linespec_lexer_lex_one): Ignore keywords if it's the wrong place
98 for one.
99 (parse_linespec): Set keyword_ok.
100
101 2012-10-10 Doug Evans <dje@google.com>
102
103 * dwarf2read.c (process_psymtab_comp_unit_reader): Remove duplicate
104 "0x" prefix on address in log message.
105
106 * dwarf2read.c (read_1_byte): Add const to buf parameter.
107 (read_1_signed_byte, read_2_bytes, read_2_signed_bytes): Ditto.
108 (read_4_bytes, read_4_signed_bytes, read_8_bytes): Ditto.
109 (lookup_dwo_file): Add const to dwo_name parameter.
110 (lookup_dwo_comp_unit, lookup_dwo_type_unit): Ditto.
111
112 2012-10-06 Jan Kratochvil <jan.kratochvil@redhat.com>
113
114 Fix crash during stepping on ppc32.
115 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code): Test NULL
116 SYM.
117
118 2012-10-03 Doug Evans <dje@google.com>
119
120 PR symtab/14601
121 * buildsym.c (buildsym_init): Reset using_directives to NULL.
122
123 2012-10-02 Andrew Burgess <aburgess@broadcom.com>
124
125 * remote-sim.c (dump_mem): Always dump buffer contents, zero fill
126 output and use uint32_t not long to ensure 4 byte size.
127
128 2012-10-02 Joel Brobecker <brobecker@adacore.com>
129
130 * rs6000-nat.c (add_vmap): Set "last" to "next" after having
131 unref'ed it.
132
133 2012-10-01 Andrew Burgess <aburgess@broadcom.com>
134
135 * target.c (simple_search_memory): Include access length in
136 warning message.
137
138 2012-09-28 Nathan Miller <nathanm2@us.ibm.com>
139 Edjunior Machado <emachado@linux.vnet.ibm.com>
140
141 PR gdb/13989
142 * solib.c (solib_find): Prevent GDB from loading native libraries when
143 debugging a cross-target corefile.
144
145 2012-09-28 selven <pcthegreat@gmail.com>
146
147 Make definition match declaration.
148
149 * regcache.c (regcache_register_status): Change return type to
150 enum register_status.
151
152 2012-09-28 Yao Qi <yao@codesourcery.com>
153
154 * mi/mi-main.c (mi_cmd_data_write_memory): Call
155 write_memory_with_notification instead of write_memory.
156 (mi_cmd_data_write_memory_bytes): Call write_memory_with_notification
157 instead of target_write_memory.
158
159 2012-09-28 Yao Qi <yao@codesourcery.com>
160
161 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Emit error
162 when the length of content is not an even number.
163
164 2012-09-27 Tom Tromey <tromey@redhat.com>
165
166 Fix https://bugzilla.redhat.com/show_bug.cgi?id=849357
167 * cp-valprint.c (cp_print_value_fields): Use get_vptr_fieldno.
168
169 2012-09-27 Joel Brobecker <brobecker@adacore.com>
170
171 * sol-thread.c (sol_thread_fetch_registers)
172 (sol_thread_store_registers): Delete commented out code.
173
174 2012-09-27 Joel Brobecker <brobecker@adacore.com>
175
176 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
177 Move these functions to sparc-sol-thread.c.
178 * sparc-sol-thread.c: New file.
179 * configure.ac: Add sparc-sol-thread.o to CONFIG_OBS and
180 sparc-sol-thread.c to CONFIG_SRCS for sparc-solaris native
181 configurations.
182 * configure: Regenerate.
183
184 2012-09-27 Joel Brobecker <brobecker@adacore.com>
185
186 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
187 Remove commented-out code.
188
189 2012-09-27 Joel Brobecker <brobecker@adacore.com>
190
191 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
192 Enable this code for sparc hosts only.
193
194 2012-09-27 Joel Brobecker <brobecker@adacore.com>
195
196 * procfs.h (procfs_find_LDT_entry): Add declaration.
197 * sol-thread.c (ps_lgetLDT): Delete local declaration of
198 function procfs_find_LDT_entry.
199
200 2012-09-27 Joel Brobecker <brobecker@adacore.com>
201
202 * procfs.c (proc_get_LDT_entry): Make static.
203
204 2012-09-27 Joel Brobecker <brobecker@adacore.com>
205
206 * procfs.c (proc_find_memory_regions): Fix declaration.
207
208 2012-09-27 Siddhesh Poyarekar <siddhesh@redhat.com>
209
210 * amd64-tdep.c (amd64_return_value): Revert previous change
211 that used TYPE_LENGTH directly.
212 * bfin-tdep.c (bfin_extract_return_value): Likewise.
213 (bfin_store_return_value): Likewise.
214 * cris-tdep.c (cris_store_return_value): Likewise.
215 (cris_extract_return_value): Likewise.
216 * h8300-tdep.c (h8300_extract_return_value): Likewise.
217 * hppa-tdep.c (hppa64_return_value): Likewise.
218 * lm32-tdep.c (lm32_store_return_value): Likewise.
219 * microblaze-tdep.c (microblaze_store_return_value): Likewise.
220 * spu-tdep.c (spu_value_from_register): Likewise.
221 * vax-tdep.c (vax_return_value): Likewise.
222
223 2012-09-27 Siddhesh Poyarekar <siddhesh@redhat.com>
224
225 * gdbtypes.c (lookup_array_range_type): Expand parameters
226 LOW_BOUND and HIGH_BOUND to LONGEST.
227 (lookup_string_range_type): Likewise.
228 * gdbtypes.h (lookup_array_range_type): Likewise.
229 (lookup_string_range_type): Likewise.
230 * valops.c (value_cstring): Expand parameter LEN to ssize_t.
231 Expand HIGHBOUND to ssize_t.
232 (value_string): Likewise.
233 * value.h (value_cstring): Expand parameter LEN to ssize_t.
234 (value_string): Likewise.
235
236 2012-09-27 Yao Qi <yao@codesourcery.com>
237
238 PR breakpoints/13898
239 * breakpoint.h (tracepoint_breakpoint_ops): Forward declaration.
240 * mi/mi-cmd-break.c (mi_cmd_break_insert): Set breakpoint_ops
241 per breakpoint type.
242
243 2012-09-26 Pierre Muller <muller@ics.u-strasbg.fr>
244
245 * procfs.c: Add gdb_bfd header.
246 * rs6000-nat.c: Likewise.
247 * solib-pa64.c: Likewise.
248 * spu-linux-nat.c: Likewise.
249 * windows-nat.c: Likewise.
250
251 2012-09-26 Tom Tromey <tromey@redhat.com>
252
253 * f-lang.h (BLANK_COMMON_NAME_LOCAL): Remove.
254
255 2012-09-26 Tom Tromey <tromey@redhat.com>
256
257 * dwarf2read.c (mark_common_block_symbol_computed): New function.
258 (read_common_block): Handle child DIEs with
259 DW_AT_data_member_location.
260 (new_symbol_full): Add special case for common blocks.
261
262 2012-09-26 Jan Kratochvil <jan.kratochvil@redhat.com>
263 Tom Tromey <tromey@redhat.com>
264
265 * dwarf2read.c (read_common_block): Rewrite.
266 (new_symbol_full): Handle DW_TAG_common_block.
267 * f-lang.c (head_common_list, find_common_for_function):
268 Remove.
269 * f-lang.h (struct common_entry, struct saved_f77_common,
270 SAVED_F77_COMMON, SAVED_F77_COMMON_PTR, COMMON_ENTRY,
271 COMMON_ENTRY_PTR, head_common_list, find_common_for_function,
272 BLANK_COMMON_NAME_LOCAL): Remove.
273 (struct common_block): New.
274 * f-valprint.c (list_all_visible_commons): Remove.
275 (info_common_command_for_block): New function.
276 (info_common_command): Use it.
277 * stack.c (iterate_over_block_locals): Special case for
278 COMMON_BLOCK_DOMAIN.
279 * symtab.h (enum domain_enum_tag) <COMMON_BLOCK_DOMAIN>: New
280 constant.
281 (struct general_symbol_info) <value.common_block>: New field.
282 (SYMBOL_VALUE_COMMON_BLOCK): New define.
283
284 2012-09-26 Jan Kratochvil <jan.kratochvil@redhat.com>
285 Tom Tromey <tromey@redhat.com>
286
287 * f-lang.c (allocate_saved_bf_node,
288 allocate_saved_function_node, allocate_saved_f77_common_node,
289 allocate_common_entry_node, tail_common_list, current_common,
290 saved_bf_list, saved_bf_list_end, current_head_bf_list,
291 tmp_bf_ptr, add_common_block, add_common_entry,
292 find_first_common_named, patch_common_entries,
293 patch_all_commons_by_name, ADD_BF_SYMNUM, clear_bf_list,
294 global_remote_debug, get_bf_for_fcn, saved_function_list,
295 saved_function_list_end, clear_function_list, struct saved_fcn,
296 struct saved_bf_symnum, SAVED_FUNCTION, SAVED_FUNCTION_PTR,
297 SAVED_BF, SAVED_BF_PTR): Remove.
298 * f-lang.h (tail_common_list, current_common,
299 UNINITIALIZED_SECNUM, COMMON_NEEDS_PATCHING,
300 BLANK_COMMON_NAME_ORIGINAL, BLANK_COMMON_NAME_MF77,
301 DEFAULT_UPPER_BOUND, DEFAULT_LOWER_BOUND, real_main_name,
302 real_main_c_value): Remove.
303 * f-valprint.c (there_is_a_visible_common_named): Remove.
304
305 2012-09-26 Andrew Burgess <aburgess@broadcom.com>
306
307 * breakpoint.c (update_global_location_list): Ignore previous
308 duplicate status of a breakpoint when starting a new scan for
309 duplicate breakpoints.
310
311 2012-09-26 Karthik Bhat <kv.bhat@samsung.com>
312 PR breakpoints/14419
313 * arm-tdep.c (arm_skip_prologue): Extending producer check to
314 support LLVM compiler.
315
316 2012-09-26 Siddhesh Poyarekar <siddhesh@redhat.com>
317
318 * amd64-tdep.c (amd64_return_value): Use TYPE_LENGTH directly.
319 * bfin-tdep.c (bfin_extract_return_value): Likewise.
320 (bfin_store_return_value): Likewise.
321 * cris-tdep.c (cris_store_return_value): Likewise.
322 (cris_extract_return_value): Likewise.
323 * h8300-tdep.c (h8300_extract_return_value): Likewise.
324 * hppa-tdep.c (hppa64_return_value): Likewise.
325 * lm32-tdep.c (lm32_store_return_value): Likewise.
326 * microblaze-tdep.c (microblaze_store_return_value): Likewise.
327 * spu-tdep.c (spu_value_from_register): Likewise.
328 * vax-tdep.c (vax_return_value): Likewise.
329
330 2012-09-26 Siddhesh Poyarekar <siddhesh@redhat.com>
331
332 * breakpoint.c (invalidate_bp_value_on_memory_change): Expand
333 parameter LEN to ssize_t.
334
335 2012-09-25 Siddhesh Poyarekar <siddhesh@redhat.com>
336
337 * ada-valprint.c (ada_val_print_1): Eliminate single-use
338 variable LEN.
339 * alpha-tdep.c (alpha_extract_return_value): Use TYPE_LENGTH
340 directly.
341 (alpha_store_return_value): Likewise.
342 * amd64-tdep.c (amd64_classify_aggregate): Likewise.
343 (amd64_push_arguments): Likewise.
344 * ax-gdb.c (gen_trace_static_fields): Likewise.
345 (gen_traced_pop): Likewise.
346 * bfin-tdep.c (bfin_push_dummy_call): Likewise.
347 * breakpoint.c (update_watchpoint): Likewise.
348 * findcmd.c (parse_find_args): Use local variable for type
349 instead of length.
350 * findvar.c (default_read_var_value): Use TYPE_LENGTH directly.
351 * h8300-tdep.c (h8300h_extract_return_value): Likewise.
352 (h8300_store_return_value): Likewise.
353 * i386-darwin-tdep.c (i386_darwin_push_dummy_call): Likewise.
354 Use i386_darwin_arg_type_alignment directly.
355 * infcall.c (call_function_by_hand): Use TYPE_LENGTH directly.
356 * lm32-tdep.c (lm32_push_dummy_call): Likewise.
357 * m68hc11-tdep.c (m68hc11_push_dummy_call): Likewise.
358 (m68hc11_extract_return_value): Likewise.
359 * mep-tdep.c (mep_push_dummy_call): Likewise.
360 * printcmd.c (float_type_from_length): Likewise.
361 * s390-tdep.c (s390_value_from_register): Likewise.
362 * stack.c (read_frame_arg): Likewise.
363 * tracepoint.c (encode_actions_1): Likewise.
364 * valops.c (value_fetch_lazy): Use local variable for type
365 instead of length. Use TYPE_LENGTH directly.
366 * value.c (value_contents_equal): Use TYPE_LENGTH directly.
367
368 2012-09-25 Joel Brobecker <brobecker@adacore.com>
369
370 * symtab.c (skip_prologue_sal): Fix typo in comment.
371
372 2012-09-25 Joel Brobecker <brobecker@adacore.com>
373
374 * linespec.c (create_sals_line_offset): Fix typo in comment.
375
376 2012-09-25 Siddhesh Poyarekar <siddhesh@redhat.com>
377
378 * c-typeprint.c (c_type_print_varspec_suffix): Remove cast and
379 use plongest to print the array size.
380
381 2012-09-24 Siddhesh Poyarekar <siddhesh@redhat.com>
382
383 * m2-typeprint.c (m2_enum): Expand LASTVAL to LONGEST.
384 * p-valprint.c (pascal_type_print_base): Likewise.
385
386 2012-09-22 Yao Qi <yao@codesourcery.com>
387
388 * remote.c (remote_get_trace_status): Remove setting default
389 values of fields of 'ts'.
390
391 2012-09-21 Jan Kratochvil <jan.kratochvil@redhat.com>
392
393 Fix internal error on canonicalization of clang types.
394 * cp-name-parser.y (operator): New comment at make_operator call for
395 new, delete, new[] and delete[].
396 (exp): Use "sizeof ". Add new comment at make_operator call.
397
398 2012-09-21 Jan Kratochvil <jan.kratochvil@redhat.com>
399
400 Fix disassemble without parameters in tailcall frame.
401 * cli/cli-cmds.c (disassemble_current_function): Use
402 get_frame_address_in_block.
403
404 2012-09-21 Tom Tromey <tromey@redhat.com>
405
406 * c-typeprint.c (c_type_print_base) <TYPE_CODE_STRUCT,
407 TYPE_CODE_UNION>: Unify, removing a goto.
408
409 2012-09-21 Tom Tromey <tromey@redhat.com>
410
411 * c-typeprint.c (cp_type_print_derivation_info): Fix comment.
412
413 2012-09-21 Andrew Burgess <aburgess@broadcom.com>
414
415 * findvar.c (read_frame_register_value): Mark the result value as
416 optimized out if any of the input registers have been optimized out.
417
418 2012-09-21 Andreas Schwab <schwab@linux-m68k.org>
419
420 * python/python.c (finalize_python): Only define if HAVE_PYTHON.
421
422 2012-09-21 Siddhesh Poyarekar <siddhesh@redhat.com>
423
424 * eval.c (evaluate_subexp_standard): Eliminate single-use
425 variable LOWER.
426
427 2012-09-21 Yao Qi <yao@codesourcery.com>
428
429 * mi/mi-interp.c: Declare mi_record_changed.
430 (mi_interpreter_init): Call observer_attach_record_changed.
431 (mi_record_changed): New.
432 * record.c (record_open): Call observer_notify_record_changed.
433 (cmd_record_stop): Call observer_notify_record_changed.
434 * NEWS: Mention it.
435
436 2012-09-20 Tom Tromey <tromey@redhat.com>
437
438 * NEWS: Update.
439 * python/python.c (finalize_python): New function.
440 (_initialize_python): Make a final cleanup.
441
442 2012-09-19 Doug Evans <dje@google.com>
443
444 * buildsym.h (param_symbols): Delete, unused.
445 (context_stack): Delete member "params", unused.
446 * buildsym.c (push_context): Update.
447 * dwarf2read.c (read_func_scope): Update.
448
449 2012-09-19 Thomas Schwinge <thomas@codesourcery.com>
450
451 * sh-tdep.c (sh_register_convert_to_virtual)
452 (sh_register_convert_to_raw): Add a gdbarch parameter. Update
453 all callers. Just do a memcpy if not the little-endian case.
454
455 * h8300-tdep.c (h8300_gdbarch_init): Invoke
456 set_gdbarch_double_format and set_gdbarch_long_double_format.
457 * m68hc11-tdep.c (m68hc11_gdbarch_init): Invoke
458 set_gdbarch_double_format.
459 * sh-tdep.c (sh_gdbarch_init): Likewise.
460
461 * NEWS: Document the removal of SH's 'regs' command.
462 * sh-tdep.c (_initialize_sh_tdep): Remove the deprecated 'regs'
463 command.
464
465 2012-09-18 Sergio Durigan Junior <sergiodj@redhat.com>
466
467 * infcmd.c (_initialize_infcmd): Register `j' as an alias for
468 `jump'.
469
470 2012-09-18 Joel Brobecker <brobecker@adacore.com>
471
472 * linespec.c (iterate_over_all_matching_symtabs): Use the correct
473 language when iterating over symbols.
474
475 2012-09-18 Yao Qi <yao@codesourcery.com>
476
477 * mi/mi-interp.c: Declare mi_tsv_created and mi_tsv_deleted.
478 (mi_interpreter_init): Call observer_attach_tsv_created and
479 observer_attach_tsv_deleted.
480 (mi_tsv_created, mi_tsv_deleted): New.
481 * tracepoint.c (delete_trace_state_variable): Call
482 observer_notify_tsv_deleted.
483 (trace_variable_command): Call observer_notify_tsv_created.
484 (delete_trace_variable_command): Call
485 observer_notify_tsv_deleted.
486 (create_tsv_from_upload): Call observer_notify_tsv_created.
487 * NEWS: Mention it.
488
489 2012-09-18 Yao Qi <yao@codesourcery.com>
490
491 * tracepoint.c (tfind_1): Call observer_notify_traceframe_changed
492 if traceframe changed.
493 * mi/mi-cmds.c (mi_cmd mi_cmds): Adjust for command
494 "trace-find".
495 * mi/mi-interp.c: Declare 'mi_traceframe_changed'.
496 (mi_interpreter_init): Hook mi_traceframe_changed to observer
497 'traceframe_changed'.
498 (mi_traceframe_changed): New.
499 * mi/mi-main.h (struct mi_suppress_notification) <traceframe>:
500 New field.
501 * NEWS: Mention the new MI notification.
502
503 2012-09-17 Mike Wrighton <wrighton@codesourcery.com>
504
505 * MAINTAINERS (Write After Approval): Add "Mike Wrighton".
506
507 2012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
508
509 * common/linux-ptrace.c: Change __i386__ to __i386__ || __x86_64__.
510 (linux_ptrace_test_ret_to_nx): Extend comment for x86_64. Change
511 __i386__ to __i386__ || __x86_64__. Extend code also for __x86_64__.
512 Extend code also for PaX support. Convert all gdb_assert to warning
513 calls.
514
515 2012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
516
517 Implement auto-load user conveniences suggested by Doug Evans.
518 * auto-load.c: Include top.h.
519 (file_is_auto_load_safe): New variable advice_printed. Print advice.
520 (_initialize_auto_load): New variable scripts_directory_help. Mention
521 GDBPY_AUTO_FILE_NAME and GDB_AUTO_FILE_NAME for set auto-load
522 scripts-directory. Document in online help one can use also files for
523 set auto-load safe-path.
524 * python/py-auto-load.c: (GDBPY_AUTO_FILE_NAME): Move it from here ...
525 * python/python.h (GDBPY_AUTO_FILE_NAME): ... to here.
526
527 2012-09-17 Siddhesh Poyarekar <siddhesh@redhat.com>
528
529 * tic6x-tdep.c (tic6x_push_dummy_call): Remove unused definition
530 of LEN.
531
532 2012-09-17 Siddhesh Poyarekar <siddhesh@redhat.com>
533
534 * m2-valprint.c (m2_print_array_contents): Eliminate variable
535 ELTLEN and use TYPE_LENGTH directly.
536 (m2_val_print): Likewise.
537 * m68k-tdep.c (m68k_svr4_extract_return_value): Eliminate
538 variable LEN and use TYPE_LENGTH directly.
539 (m68k_svr4_store_return_value): Likewise.
540 * mips-tdep.c (mips_o32_push_dummy_call): Eliminate variable
541 ARGLEN and use TYPE_LENGTH directly.
542 (mips_o64_push_dummy_call): Likewise.
543 * s390-tdep (s390_function_arg_pass_by_reference): Eliminate
544 variable LENGTH and use TYPE_LENGTH directly.
545 (s390_function_arg_float): Likewise.
546 (s390_function_arg_integer): Likewise.
547 (s390_push_dummy_call): Likewise.
548 (s390_return_value_convention): Likewise.
549 * spu-tdep.c (spu_push_dummy_call): Eliminate LEN and use
550 TYPE_LENGTH directly.
551
552 2012-09-17 Yao Qi <yao@codesourcery.com>
553
554 * cli/cli-decode.c (add_setshow_zuinteger_unlimited_cmd): New.
555 Update comment to add_setshow_integer_cmd.
556 * cli/cli-setshow.c (do_set_command): Handle case
557 'var_zuinteger_unlimited'.
558 (do_show_command): Likewise.
559 * cli/cli-cmds.c (init_cmds): Call add_setshow_zuinteger_unlimited_cmd
560 for command 'remotetimeout'.
561 * command.h (enum var_types): New zuinteger_unlimited. Update comment
562 to var_integer.
563 * source.c (_initialize_source): Call add_setshow_zuinteger_unlimited_cmd
564 for command 'set listsize'.
565
566 2012-09-17 Siddhesh Poyarekar <siddhesh@redhat.com>
567
568 * infrun.c (restore_infcall_suspend_state): Eliminate single-use
569 variable LEN.
570
571 2012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
572
573 PR 14119
574 * frame.c (skip_inlined_frames): Skip also TAILCALL_FRAME frames.
575 (frame_pop): Drop also TAILCALL_FRAME frames.
576 * infcmd.c (finish_command): Ignore also TAILCALL_FRAME frames.
577
578 2012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
579 Pedro Alves <palves@redhat.com>
580
581 PR 14548
582 * infrun.c (handle_inferior_event): Do not reverse-continue back to the
583 function start if we are already at function start. Both for
584 reverse-next and for reverse-step into function without line number
585 info.
586
587 2012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
588
589 Code cleanup - rename 'inline' depth to 'artificial' depth.
590 * breakpoint.c (set_momentary_breakpoint): Rename at a caller to
591 frame_id_artificial_p, extend the comment.
592 * dwarf2-frame-tailcall.c (tailcall_frame_this_id): Rename at a user.
593 * frame.c (fprint_frame_id): Rename at a user, change debug output
594 text to "artificial=".
595 (skip_inlined_frames): Rename to ...
596 (skip_artificial_frames): ... here. Extend the comment.
597 (get_stack_frame_id, frame_unwind_caller_id): Rename at a caller.
598 (frame_id_inlined_p): Rename to ...
599 (frame_id_artificial_p): ... here. Rename at a user.
600 (frame_id_eq, frame_id_inner, frame_unwind_caller_pc)
601 (frame_unwind_caller_pc_if_available, frame_unwind_caller_arch): Rename
602 at a user.
603 * frame.h (struct frame_id): Rename inline_depth to artificial_depth.
604 Extend the comment.
605 (frame_id_inlined_p): Rename to ...
606 (frame_id_artificial_p): ... here.
607 * inline-frame.c (inline_frame_this_id): Rename at a user.
608
609 2012-09-14 Andrew Burgess <aburgess@broadcom.com>
610
611 * c-typeprint.c (c_type_print_varspec_suffix): Display the size of
612 vector variables using vector_size syntax rather than array
613 syntax.
614
615 2012-09-14 Siddhesh Poyarekar <siddhesh@redhat.com>
616
617 * valarith.c (value_concat): Replace unsafe ALLOCA with
618 XMALLOC/XFREE.
619
620 2012-09-14 Pedro Alves <palves@redhat.com>
621
622 * gdb.1 (SEE ALSO): Expand pointer to GDB's Texinfo manual.
623
624 2012-09-14 Khoo Yit Phang <khooyp@cs.umd.edu>
625
626 Point contrib/cc-with-tweaks.sh to the build-local data-directory.
627 * contrib/cc-with-tweaks.sh (GDB): Add -data-directory
628 data-directory as appropriate.
629
630 2012-09-14 Siddhesh Poyarekar <siddhesh@redhat.com>
631
632 * printcmd.c (ui_printf): Eliminate single-use variable
633 PARAM_LEN.
634
635 2012-09-14 Yao Qi <yao@codesourcery.com>
636 Pedro Alves <palves@redhat.com>
637
638 * valops.c (value_assign): Move observer_notify_target_changed
639 below to replace reinit_frame_cache.
640
641 2012-09-13 Khoo Yit Phang <khooyp@cs.umd.edu>
642
643 Refactor Python "gdb" module into a proper Python package, by
644 introducing a new "_gdb" module for code implemented in C, and
645 using reload/__import__ instead of exec.
646 * python/lib/gdb/__init__.py: Import * from _gdb.
647 (GdbOutputFile, sys.stdout, GdbOutputErrorFile, sys.stderr,
648 prompt_hook, sys.argv): Moved from finish_python_initialization.
649 (pretty_printers, PYTHONDIR): Moved from _initialize_python.
650 (packages, auto_load_packages): New list and function replacing
651 module_dict and auto-loading code, using __file__ instead of
652 gdb.PYTHONDIR and reload/__import__ instead of exec.
653 (GdbSetPythonDirectory): Replacing function of the same name
654 from finish_python_initialization, using reload/__import__ instead
655 of exec, as well as call auto_load_packages.
656 * python/py-prettyprint.c (find_pretty_printer_from_gdb): Check
657 gdb_python_module and not gdb_module.
658 * python/python-internal.h (gdb_python_module): Declare.
659 * python/python.c (gdb_python_module): New global.
660 (before_prompt_hook): Check gdb_python_module and not gdb_module.
661 (_initialize_python): Rename gdb module to _gdb.
662 Move gdb.PYTHONDIR and gdb.pretty_printer to lib/gdb/__init__.py.
663 (finish_python_initialization): Move Python code to
664 lib/gdb/__init__.py; instead, set up sys.path and import gdb into
665 __main__.
666
667 2012-09-13 Pedro Alves <palves@redhat.com>
668
669 * Makefile.in (COMMON_OBS): Add registry.o.
670 * registry.c: New file.
671 * registry.h (struct registry_container): Declare.
672 (registry_data_callback): New typedef.
673 (struct registry_data, struct registry_data_registration, struct
674 registry_data_registry): New type.
675 (register_data_with_cleanup, registry_alloc_data)
676 (registry_callback_adaptor, registry_clear_data)
677 (registry_container_free_data, registry_set_data, registry_data):
678 Declare.
679 (DEFINE_REGISTRY): Refactor structures and functions as shims over
680 the new common structures and functions.
681 (DECLARE_REGISTRY): Declare struct TAG ## _data. Use the tagged
682 callback typedefs.
683
684 2012-09-12 Mike Wrighton <wrighton@codesourcery.com>
685
686 * remote.c (remote_insert_hw_breakpoint): Throw exception if
687 there is an error inserting hardware breakpoints and use the
688 error message from the target.
689
690 * breakpoint.c (insert_bp_location, insert_breakpoint_locations):
691 Catch this exception and print the error message contained within. Do not
692 print the default hardware error breakpoint message in this case.
693
694 2012-09-12 Doug Evans <dje@google.com>
695
696 * dwarf2read.c (dwarf2_read_addr_index): Fix handling the case where
697 cu == NULL.
698
699 2012-09-11 Doug Evans <dje@google.com>
700
701 * dwarf2read.c (dw2_do_expand_symtabs_matching): Don't examine
702 .gdb_index symbol attributes if there are none.
703
704 2012-09-11 Joel Brobecker <brobecker@adacore.com>
705
706 * symtab.h (struct minimal_symbol) [has_size]: New field.
707 (MSYMBOL_SIZE): Adjust to forbid macro from being used as lvalue.
708 (SET_MSYMBOL_SIZE, MSYMBOL_HAS_SIZE): New macros.
709 * printcmd.c (build_address_symbolic): Only filter out zero-sized
710 minimal symbols if the symbol's size is actually known.
711 * minsyms.c (prim_record_minimal_symbol_full): Adjust setting
712 of msymbol's size field. Add comment.
713 * elfread.c (elf_symtab_read, elf_rel_plt_read): Use
714 SET_MSYMBOL_SIZE to set the minimal symbol size.
715
716 2012-09-11 Joel Brobecker <brobecker@adacore.com>
717
718 * minsyms.c (install_minimal_symbols): Use memset to fill entire
719 minimal_symbol struct object, rather than setting some of its
720 fields one by one.
721
722 2012-09-11 Andrew Burgess <aburgess@broadcom.com>
723
724 * c-typeprint.c (c_type_print_varspec_prefix): Pass through the
725 passed_a_ptr flag when displaying typedef types.
726
727 2012-09-10 Joel Brobecker <brobecker@adacore.com>
728
729 * ada-lang.c (coerce_unspec_val_to_type): Make sure that
730 the optimized_out flag is preserved.
731
732 2012-09-10 Anthony Green <green@moxielogic.com>
733
734 * moxie-tdep.c (moxie_analyze_prologue): Update for function
735 prologue changes in GCC.
736
737 2012-09-10 Keith Seitz <keiths@redhat.com>
738
739 PR gdb/13483
740 * gdbtypes.h (BOOL_PTR_CONVERSION_BADNESS): Rename to ...
741 (BOOL_CONVERSION_BADNESS): ... this.
742 * gdbtypes.c (BOOL_PTR_CONVERSION_BADNESS): Likewise.
743 (rank_one_type): Allow all boolean conversions
744 permitted by the standard.
745
746 2012-09-06 Tom Tromey <tromey@redhat.com>
747
748 * python/py-newobjfileevent.c (create_new_objfile_event_object):
749 Don't decref py_objfile.
750
751 2012-09-02 Khoo Yit Phang <khooyp@cs.umd.edu>
752
753 Do not enable -lmcheck by default when Python is enabled with
754 threading support.
755 * configure.ac: (python_has_threads) New variable, by testing
756 if WITH_THREAD is defined in Python.h.
757 Move --enable-lmcheck after --with-python.
758 Do not enable -lmcheck by default if python_has_threads=yes.
759 Warn if --enable-lmcheck and python_has_threads=yes.
760 * configure: Regenerate.
761
762 2012-08-31 Yao Qi <yao@codesourcery.com>
763
764 * mi/mi-cmds.c (mi_cmds): New macros DEF_MI_CMD_CLI
765 DEF_MI_CMD_MI DEF_MI_CMD_CLI_1 and DEF_MI_CMD_CLI_1.
766 Update some commands.
767 * mi/mi-cmds.h (struct mi_cmd) <suppress_notification>: New field.
768 * mi/mi-main.c (mi_cmd_execute): Set '*parse->cmd->suppress_notification'
769 to 1.
770
771 2012-08-31 Yao Qi <yao@codesourcery.com>
772
773 * mi/mi-cmds.c (mi_cmds): Add 'static'.
774
775 2012-08-30 Khoo Yit Phang <khooyp@cs.umd.edu>
776
777 * MAINTAINERS (Write After Approval): Add "Khoo Yit Phang".
778
779 2012-08-29 Doug Evans <dje@google.com>
780
781 * main.c (print_gdb_help): Remove reference to
782 --use-deprecated-index-sections.
783
784 2012-08-28 Yao Qi <yao@codesourcery.com>
785
786 * cli/cli-cmds.c (max_user_call_depth): Add 'unsigned'.
787 (init_cmds): Call add_setshow_uinteger_cmd for command
788 'max-user-call-depth'.
789 * cli/cli-script.c (execute_user_command): Add 'unsigned' to the
790 declaration of 'max_user_call_depth'.
791 * frame.c (backtrace_limit): Add 'unsigned'.
792 (_initialize_frame): Call add_setshow_uinteger_cmd for command
793 'limit'.
794 * remote.c (remoteaddresssize): Add 'unsigned'.
795 (remote_address_masked): Change local var 'address_size' to
796 'unsigned'.
797 (_initialize_remote): Call add_setshow_uinteger_cmd for
798 'remoteaddresssize'.
799 * top.c (history_size): Add 'unsigned'.
800 (show_commands): Change local variables to 'unsigned'.
801 (set_history_size_command): Don't check history_size is negative.
802 Adjust the condition to call unstifle_history and set history_size
803 to UNIT_MAX.
804
805 2012-08-28 Pedro Alves <palves@redhat.com>
806
807 PR gdb/14428
808
809 * infcmd.c (default_print_one_register_info): New, factored out
810 from default_print_registers_info.
811 (default_print_registers_info): Use it. Mark value unavailable if
812 necessary.
813 (registers_info): Print user registers with
814 default_print_one_register_info.
815
816 2010-08-27 H.J. Lu <hongjiu.lu@intel.com>
817
818 PR tui/14486
819 * tui/tui-source.c (tui_source_is_displayed): Check if TUI_SRC_WIN
820 is not NULL before referencing it.
821
822 2012-08-27 Jan Kratochvil <jan.kratochvil@redhat.com>
823
824 * breakpoint.c (parse_breakpoint_sals) <(*address) == NULL>: New
825 variable pc. Call find_pc_line instead of find_pc_overlay, restore
826 original PC for it.
827
828 2012-08-27 Eli Zaretskii <eliz@gnu.org>
829 Jan Kratochvil <jan.kratochvil@redhat.com>
830
831 * auto-load.c (auto_load_objfile_script): Rename to ...
832 (auto_load_objfile_script_1): ... here, change variable realname to
833 parameter realname, document it, add return value, add variable retval.
834 (auto_load_objfile_script): New function.
835
836 2012-08-27 Jan Kratochvil <jan.kratochvil@redhat.com>
837
838 * cli/cli-decode.c (print_doc_line): Keep skipping '.' and ',' not
839 followed by a whitespace.
840
841 2012-08-27 Jan Kratochvil <jan.kratochvil@redhat.com>
842
843 PR gdb/14494.
844 * dwarf2read.c (dwarf2_locate_sections): Move variable aflag here.
845 Move the SEC_HAS_CONTENTS check here - for any NAMES use.
846 (dwarf2_locate_sections) <eh_frame>: Move the variable and check from
847 here.
848
849 2012-08-27 Wei-cheng Wang <cole945@gmail.com>
850
851 * memattr.c (create_mem_region): Fix memory region overlapping
852 checking.
853
854 2012-08-24 Siddhesh Poyarekar <siddhesh@redhat.com>
855
856 * h8300-tdep.c (h8300_push_dummy_call): Replace unsafe alloca
857 with xmalloc/cleanup.
858 * mt-tdep.c (mt_push_dummy_call): Likewise.
859 * tilegx-tdep.c (tilegx_push_dummy_call): Likewise.
860 * xstormy16-tdep.c (xstormy16_push_dummy_call): Likewise.
861
862 2012-08-24 Yao Qi <yao@codesourcery.com>
863
864 * jv-exp.y (push_expression_name): Add "." at the end of error
865 message.
866
867 2012-08-23 Khoo Yit Phang <khooyp@cs.umd.edu>
868
869 Document how to return from "python-interactive" to GDB.
870 * python/python.c (_initialize_python): Update documentation.
871
872 2012-08-23 Pedro Alves <palves@redhat.com>
873
874 * infrun.c (_initialize_infrun) <handle command help text>:
875 Mention that multiple signals are supported.
876
877 2012-08-23 Pedro Alves <palves@redhat.com>
878
879 * infcmd.c (_initialize_infcmd) <signal command>: Fix typo in help
880 string.
881
882 2012-08-23 Yao Qi <yao@codesourcery.com>
883
884 * tracepoint.c (disconnect_tracing): Call set_tracepoint_num.
885 (tfind_1): Don't call registers_changed, set_traceframe_num,
886 and clear_traceframe_info.
887 Call set_current_traceframe.
888 (set_current_traceframe): call set_traceframe_num.
889
890 2012-08-22 Sergio Durigan Junior <sergiodj@redhat.com>
891
892 * remote-sim.c (_initialize_remote_sim): Pass NULL argument to
893 `register_inferior_data_with_cleanup', fixing regression on PowerPC64.
894
895 2012-08-22 Khoo Yit Phang <khooyp@cs.umd.edu>
896
897 Enable readline in Python in a GDB-specific way and block the
898 standard Python readline module to prevent conflicts with GDB.
899 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-gdb-readline.o.
900 (SUBDIR_PYTHON_SRCS): Add python/py-gdb-readline.c.
901 (py-gdb-readline.o): Add rule to compile python/py-gdb-readline.c.
902 * python/py-gdb-readline.c: New file.
903 * python/python-internal.h (gdbpy_initialize_gdb_readline): New
904 prototype.
905 * python/python.c (_initialize_python): Call
906 gdbpy_initialize_gdb_readline.
907
908 2012-08-22 Keith Seitz <keiths@redhat.com>
909
910 * defs.h: Include build-gnulib/config.h
911
912 2012-08-22 Joseph Myers <joseph@codesourcery.com>
913
914 * arm-tdep.c (thumb_get_next_pc_raw): Mask off low bits for bx pc
915 and blx pc.
916
917 2012-08-22 Khoo Yit Phang <khooyp@cs.umd.edu>
918
919 Add a new "python-interactive" command that starts a standard
920 Python interactive prompt with "pi" as alias, and add "py" as
921 an alias to "python".
922 * NEWS: Mention the new commands.
923 * python/python.c (eval_python_command): New function.
924 (python_interactive_command): For "python-interactive" with
925 arguments, call eval_python_command. For "python-interactive"
926 without arguments, call PyRun_InteractiveLoop.
927 (_initialize_python): Add "python-interactive" command with
928 "pi" as alias, and add "py" as an alias to "python".
929
930 2012-08-22 Tom Tromey <tromey@redhat.com>
931
932 * defs.h (quit_flag): Don't declare.
933 (clear_quit_flag, check_quit_flag, set_quit_flag): Declare.
934 (QUIT): Use new functions.
935 * event-top.c (command_handler): Use clear_quit_flag.
936 (handle_sigint): Use set_quit_flag.
937 (async_request_quit): Use check_quit_flag. Don't check
938 immediate_quit.
939 * exceptions.c (throw_exception): Use clear_quit_flag.
940 * main.c (captured_main): Use clear_quit_flag.
941 * python/python.c (clear_quit_flag, set_quit_flag)
942 (check_quit_flag): New functions.
943 * remote-sim.c (gdb_os_poll_quit): Use check_quit_flag,
944 clear_quit_flag.
945 * remote.c (remote_wait_as): Use check_quit_flag,
946 clear_quit_flag.
947 (remote_start_remote): Call QUIT.
948 * symfile.c (load_progress): Use check_quit_flag.
949 * top.c (command_loop): Use clear_quit_flag.
950 (command_line_input): Call QUIT.
951 * utils.c (quit_flag): Conditionally define.
952 (clear_quit_flag, check_quit_flag, set_quit_flag): New
953 functions.
954 (prompt_for_continue): Call QUIT. Use quit, not
955 async_request_quit.
956 * remote-mips.c (mips_expect_timeout): Call QUIT.
957 * monitor.c (monitor_expect): Call QUIT.
958
959 2012-08-22 Tom Tromey <tromey@redhat.com>
960
961 * event-top.c (sigwinch_token, handle_sigwinch): Remove.
962 (async_init_signals): Update.
963 * utils.c (init_page_info): Don't use SIGWINCH_HANDLER.
964 (SIGWINCH_HANDLER_BODY): Remove.
965
966 2012-08-22 Tom Tromey <tromey@redhat.com>
967
968 * jit.c (jit_object_close_impl): Don't malloc the objfile
969 name.
970 * objfiles.c (allocate_objfile): Don't malloc the objfile
971 name.
972 (free_objfile): Don't free the objfile name.
973 * objfiles.h (struct objfile) <name>: Update comment.
974 * symfile.c (reread_symbols): Fix reference counting. Don't
975 malloc objfile name.
976
977 2012-08-22 Tom Tromey <tromey@redhat.com>
978
979 * windows-nat.c (windows_make_so): Use gdb_bfd_open.
980 * symfile.c (bfd_open_maybe_remote): Use gdb_bfd_open.
981 (symfile_bfd_open): Likewise.
982 (generic_load): Likewise.
983 * solib.c (solib_bfd_fopen): Use gdb_bfd_open.
984 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
985 gdb_bfd_open.
986 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
987 Use gdb_bfd_open.
988 * rs6000-nat.c (add_vmap): Use gdb_bfd_open.
989 * remote-mips.c (mips_load_srec): Use gdb_bfd_open.
990 (pmon_load_fast): Likewise.
991 * remote-m32r-sdi.c (m32r_load): Use gdb_bfd_open.
992 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_open.
993 * machoread.c (macho_symfile_read_all_oso): Use gdb_bfd_open.
994 (macho_check_dsym): Likewise.
995 * m32r-rom.c (m32r_load): Use gdb_bfd_open.
996 (m32r_upload_command): Likewise.
997 * gdb_bfd.h (gdb_bfd_cache): Declare.
998 * gdb_bfd.c (struct gdb_bfd_data): New.
999 (gdb_bfd_cache): New global.
1000 (struct gdb_bfd_cache_search): New.
1001 (hash_bfd): New function.
1002 (eq_bfd): Likewise.
1003 (gdb_bfd_open): Likewise.
1004 (gdb_bfd_ref): Allocate a gdb_bfd_data and attach to the BFD.
1005 (gdb_bfd_unref): Remove closed BFD from cache. Update for
1006 gdb_bfd_data.
1007 * exec.c (exec_file_attach): Use gdb_bfd_open.
1008 * dsrec.c (load_srec): Use gdb_bfd_open.
1009
1010 2012-08-22 Tom Tromey <tromey@redhat.com>
1011
1012 * dwarf2read.c (macro_start_file): Update.
1013 * objfiles.c (get_objfile_bfd_data): Initialize macro_cache.
1014 (free_objfile_per_bfd_storage): Destroy macro_cache.
1015 (allocate_objfile, free_objfile): Update.
1016 * objfiles.h (struct objfile_per_bfd_storage) <macro_cache>:
1017 New field.
1018 (struct objfile) <macro_cache>: Remove.
1019 * symfile.c (reread_symbols): Update.
1020 * symmisc.c (print_symbol_bcache_statistics): Update.
1021 (print_objfile_statistics): Update.
1022
1023 2012-08-22 Tom Tromey <tromey@redhat.com>
1024
1025 * elfread.c (elf_symtab_read): Update.
1026 * objfiles.c (objfiles_bfd_data): New global.
1027 (get_objfile_bfd_data, free_objfile_per_bfd_storage)
1028 (objfile_bfd_data_free, set_objfile_per_bfd): New functions.
1029 (allocate_objfile, free_objfile): Update.
1030 (_initialize_objfiles): Initialize objfiles_bfd_data.
1031 * objfiles.h (struct objfile_per_bfd_storage): New.
1032 (struct objfile) <per_bfd>: New field.
1033 <filename_cache>: Remove.
1034 (set_objfile_per_bfd): Declare.
1035 * symfile.c (reread_symbols): Update. Call
1036 set_objfile_per_bfd.
1037 (allocate_symtab): Update.
1038 * symmisc.c (print_symbol_bcache_statistics): Update.
1039 (print_objfile_statistics): Print the size of the BFD obstack.
1040
1041 2012-08-22 Tom Tromey <tromey@redhat.com>
1042
1043 * gdb_bfd.h: Include registry.h. Use DECLARE_REGISTRY.
1044 * gdb_bfd.c: Use DEFINE_REGISTRY.
1045 (struct gdb_bfd_data): Add REGISTRY_FIELDS.
1046 (gdb_bfd_ref): Call bfd_alloc_data.
1047 (gdb_bfd_unref): Call bfd_free_data.
1048
1049 2012-08-22 Tom Tromey <tromey@redhat.com>
1050
1051 * registry.h (struct registry_fields): New.
1052 (REGISTRY_FIELDS): Redefine.
1053 (REGISTRY_ACCESS_FIELD): New macro.
1054 (DEFINE_REGISTRY): Add ACCESS argument. Update defined
1055 functions.
1056
1057 2012-08-22 Tom Tromey <tromey@redhat.com>
1058
1059 * auto-load.c (_initialize_auto_load): Update.
1060 * solib-svr4.c (_initialize_svr4_solib): Update
1061 * solib-dsbt.c (_initialize_dsbt_solib): Update.
1062 * solib-darwin.c (_initialize_darwin_solib): Update.
1063 * registry.h: New file.
1064 * python/py-progspace.c (gdbpy_initialize_pspace): Update.
1065 * python/py-inferior.c (gdbpy_initialize_inferior): Update.
1066 * progspace.h: Include registry.h. Use DECLARE_REGISTRY.
1067 (register_program_space_data_with_cleanup)
1068 (register_program_space_data, program_space_alloc_data)
1069 (clear_program_space_data, set_program_space_data)
1070 (program_space_data): Don't declare.
1071 * progspace.c: Use DEFINE_REGISTRY.
1072 (struct program_space_data, struct
1073 program_space_data_registration, struct
1074 program_space_data_registry, program_space_data_registry)
1075 (register_program_space_data_with_cleanup)
1076 (register_program_space_data, program_space_alloc_data)
1077 (program_space_free_data, clear_program_space_data)
1078 (set_program_space_data, program_space_data): Remove.
1079 * objfiles.h: Include registry.h. Use DECLARE_REGISTRY.
1080 (struct objfile) <data, num_data>: Replace with REGISTRY_FIELDS.
1081 (register_objfile_data_with_cleanup, register_objfile_data)
1082 (clear_objfile_data, set_objfile_data, objfile_data): Don't
1083 declare.
1084 * objfiles.c: Use DEFINE_REGISTRY.
1085 (struct objfile_data, struct objfile_data_registration, struct
1086 objfile_data_registry, objfile_data_registry)
1087 (register_objfile_data_with_cleanup, register_objfile_data)
1088 (objfile_alloc_data, objfile_free_data, clear_objfile_data)
1089 (set_objfile_data, objfile_data): Remove.
1090 (_initialize_objfiles): Update.
1091 * jit.c (_initialize_jit): Update.
1092 * inflow.c (_initialize_inflow): Update.
1093 * inferior.h: Include registry.h. Use DECLARE_REGISTRY.
1094 (struct inferior) <data, num_data>: Replace with REGISTRY_FIELDS.
1095 (register_inferior_data_with_cleanup, register_inferior_data)
1096 (clear_inferior_data, set_inferior_data, inferior_data): Don't
1097 declare.
1098 * inferior.c: Use DEFINE_REGISTRY.
1099 (struct inferior_data, struct inferior_data_registration, struct
1100 inferior_data_registry, inferior_data_registry)
1101 (register_inferior_data_with_cleanup, register_inferior_data)
1102 (inferior_alloc_data, inferior_free_data clear_inferior_data)
1103 (set_inferior_data, inferior_data): Remove.
1104 * auxv.c (_initialize_auxv): Update.
1105 * ada-lang.c (_initialize_ada_language): Update.
1106 * breakpoint.c (_initialize_breakpoint): Update.
1107 * i386-nat.c (i386_use_watchpoints): Update.
1108
1109 2012-08-22 Tom Tromey <tromey@redhat.com>
1110
1111 * exec.c (exec_close, exec_file_attach): Update.
1112 (add_to_section_table): Initialize 'key' field.
1113 (add_target_sections, remove_target_sections): Add 'key' argument.
1114 * exec.h (add_target_sections, remove_target_sections): Add
1115 'key' argument.
1116 * solib.c (solib_map_sections, update_solib_list, clear_solib)
1117 (reload_shared_libraries_1): Update.
1118 * target.h (struct target_section) <key>: New field.
1119
1120 2012-08-22 Tom Tromey <tromey@redhat.com>
1121
1122 * cli/cli-cmds.c (filter_sals): Handle nelts == 0 case.
1123
1124 2012-08-21 Pierre Muller <muller@ics.u-strasbg.fr>
1125
1126 * symfile.c (allocate_symtab): Use host_address_to_string
1127 function instead of cast of pointer to long which is not
1128 compatible with x86_64-w64-mingw32 build.
1129
1130 2012-08-19 Andrew Pinski <apinski@cavium.com>
1131
1132 * mips-tdep.c (is_octeon): New function.
1133 (is_octeon_bbit_op): New function.
1134 (mips32_next_pc): Handle Octeon's bbit instructions.
1135 (mips32_instruction_has_delay_slot): Likewise.
1136
1137 2012-08-19 Andrew Pinski <apinski@cavium.com>
1138
1139 * mips-tdep.c (mips32_next_pc): Fix line spacing of the comment
1140 before the function.
1141
1142 2012-08-19 Andrew Pinski <apinski@cavium.com>
1143
1144 * mips-tdep.c (mips32_next_pc): Consolidate calls to itype_op.
1145
1146 2012-08-19 Keith Seitz <keiths@redhat.com>
1147
1148 PR c++/14365
1149 * c-typeprint.c (c_type_print_varspec_prefix): Pass
1150 -1 for SHOW to c_type_print_base for METHODPTR and MEMBERPTR.
1151
1152 2012-08-18 Eli Zaretskii <eliz@gnu.org>
1153
1154 * Makefile.in (HFILES_NO_SRCDIR): Fix a typo: golang.h -> go-lang.h.
1155 The typo broke "make TAGS".
1156
1157 2012-08-17 Joel Brobecker <brobecker@adacore.com>
1158
1159 GDB 7.5 released.
1160
1161 2012-08-17 Keith Seitz <keiths@redhat.com>
1162
1163 PR c++/13356
1164 * gdbtypes.c (strict_type_checking): New variable.
1165 (show_strict_type_checking): New function.
1166 (rank_one_type): Return NS_POINTER_INTEGER_CONVERSION_BADNESS
1167 if strict type checking is disabled.
1168 (_initialize_gdbtypes): Add "check type" subcommand.
1169 * gdbtypes.h (NS_INTEGER_POINTER_CONVERSION_BADNESS): New struct.
1170
1171 2012-08-17 Keith Seitz <keiths@redhat.com>
1172
1173 * language.h (type_mode): Remove.
1174 (type_check): Remove.
1175 (struct language_defn): Remove la_type_check.
1176 (STRICT_TYPE): Remove unused macro.
1177 (type_error): Remove.
1178 * language.c (set_type_range_case): Renamed to ...
1179 (set_range_case): ... this. Update all callers.
1180 Remove type_mode/type_check.
1181 (type_mode): Remove.
1182 (type_check): Remove.
1183 (show_type_command): Remove.
1184 (set_type_command): Remove.
1185 (language_info): Remove type checking output.
1186 (type_error): Remove unused function.
1187 (range_error): Update comment.
1188 (unknown_language_defn): Remove la_type_check.
1189 (auto_language_defn): Likewise.
1190 (local_language_defn): Likewise.
1191 (_initialize_language): Remove "check type" subcommand.
1192 * ada-lang.c (ada_language_defn): Remove la_type_check.
1193 * c-lang.c (c_language_defn): Likewise.
1194 (cplus_language_defn): Likewise.
1195 (asm_language_defn): Likewise.
1196 (minimal_language_defn): Likewise.
1197 * d-lang.c (d_language_defn): Likewise.
1198 * f-lang.c (f_language_defn): Likewise.
1199 * go-lang.c (go_language_defn): Likewise.
1200 * jv-lang.c (java_language_defn): Likewise.
1201 * m2-lang.c (m2_language_defn): Likewise.
1202 * objc-lang.c (objc_language_defn): Likewise.
1203 * opencl-lang.c (opencl_language_defn): Likewise.
1204 * p-lang.c (pascal_language_defn): Likewise.
1205
1206 2012-08-16 Mike Frysinger <vapier@gentoo.org>
1207
1208 * infcmd.c (_initialize_infcmd): Remove trailing ) in next help text.
1209
1210 2012-08-16 Joel Brobecker <brobecker@adacore.com>
1211
1212 * ia64-hpux-nat.c (ia64_hpux_get_register_from_save_state_t):
1213 New function.
1214 (ia64_hpux_xfer_memory): Check if inferior_ptid is known before
1215 using the regache. Use ia64_hpux_get_register_from_save_state_t
1216 to access the bsp and bspstore registers if not.
1217
1218 2012-08-16 Joel Brobecker <brobecker@adacore.com>
1219
1220 * breakpoint.h (detach_breakpoints): pid parameter is now a ptid.
1221 * breakpoint.c (detach_breakpoints): Change pid parameter into
1222 a ptid. Adjust code accordingly.
1223 * infrun.c (handle_inferior_event): Delete variable child_pid.
1224 Update call to detach_breakpoints to pass the child ptid for
1225 fork events.
1226 * linux-nat.c (linux_nat_iterate_watchpoint_lwps): Remove
1227 assert that inferior_ptid's lwp is zero.
1228 (linux_handle_extended_wait): Update call to detach_breakpoints.
1229 * inf-ttrace.c (inf_ttrace_follow_fork): Update call to
1230 detach_breakpoints.
1231
1232 2012-08-16 Joel Brobecker <brobecker@adacore.com>
1233
1234 * inf-ttrace.c (inf_ttrace_follow_fork): When following the
1235 parent, only call detach_breakpoints if tts.tts_event ==
1236 TTEVT_VFORK.
1237
1238 2012-08-16 Joel Brobecker <brobecker@adacore.com>
1239
1240 * dwarf2-frame.c (dwarf2_frame_cache): Use
1241 get_frame_address_in_block instead of get_frame_pc as
1242 the bound for executing the frame's FDE.
1243
1244 2012-08-16 Yao Qi <yao@codesourcery.com>
1245
1246 * gdbtypes.h (enum type_code): Define TYPE_CODE_BITSTRING -1.
1247 * arm-tdep.c (arm_type_align): Remove code handling TYPE_CODE_BITSTRING.
1248 * c-typeprint.c (c_type_print_varspec_prefix): Likewise.
1249 (c_type_print_varspec_suffix): Likewise.
1250 * eval.c (evaluate_subexp_standard): Likewise.
1251 * f-typeprint.c (f_type_print_varspec_prefix): Likewise.
1252 (f_type_print_varspec_suffix): Likewise.
1253 * gdbtypes.c (is_scalar_type): Likewise.
1254 (recursive_dump_type): Likewise.
1255 * infcall.c (value_arg_coerce): Likewise.
1256 * m2-valprint.c (m2_val_print): Likewise.
1257 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
1258 (pascal_type_print_varspec_suffix): Likewise.
1259 (pascal_type_print_base): Likewise.
1260 * p-valprint.c (pascal_val_print): Likewise.
1261 (pascal_val_print): Likewise.
1262 * valops.c (value_slice): Likewise.
1263 * valprint.c (scalar_type_p): Likewise.
1264 * valarith.c (value_bitstring_subscript): Remove.
1265 (value_concat): Remove code handling TYPE_CODE_BITSTRING.
1266 Remove comment on TYPE_CODE_BITSTRING.
1267
1268 * stabsread.c (read_type): Don't set TYPE_CODE (type) to
1269 TYPE_CODE_BITSTRING.
1270
1271 * python/py-type.c (pyty_codes): Move ENTRY (TYPE_CODE_BITSTRING) to
1272 slot 0.
1273
1274 2012-08-16 Yao Qi <yao@codesourcery.com>
1275
1276 * tracepoint.c (trace_find_none_command): Remove.
1277 (_initialize_tracepoint): Call add_alias_cmd for "tfind none".
1278
1279 2012-08-16 Yao Qi <yao@codesourcery.com>
1280
1281 * remote.c (handle_notification): Remove parameter 'length'.
1282 (putpkt_binary, getpkt_or_notif_sane_1): Caller update.
1283
1284 2012-08-15 Keith Seitz <keiths@redhat.com>
1285
1286 * gdbtypes.c (opaque_type_resolution): Make static.
1287 Add missing comment.
1288 (overload_debug): Add missing comment.
1289 (show_opaque_type_resolution): Likewise.
1290 (show_overload_debug): Likewise.
1291 (print_bit_vector): Remove unnecessary forward declaration.
1292 (print_arg_types): Likewise.
1293 (dump_fn_fieldlists): Likewise.
1294 (print_cplus_stuff): Likewise.
1295
1296 2012-08-15 Tom Tromey <tromey@redhat.com>
1297
1298 * gdb_bfd.c (struct gdb_bfd_data) <archive_bfd>: New field.
1299 (gdb_bfd_ref): Initialize new field.
1300 (gdb_bfd_unref): Unref the archive BFD.
1301 (gdb_bfd_openr_next_archived_file): Acquire a reference to the
1302 parent archive.
1303
1304 2012-08-15 Tom Tromey <tromey@redhat.com>
1305
1306 PR python/14387:
1307 * python/py-bpevent.c (create_breakpoint_event_object): Update
1308 comment.
1309 * python/py-event.c (evpy_add_attribute): Update comment.
1310 * python/py-exitedevent.c (create_exited_event_object): Fix
1311 reference counting and error handling.
1312 * python/py-newobjfileevent.c (create_new_objfile_event_object):
1313 Fix reference counting.
1314 * python/py-signalevent.c (create_signal_event_object): Fix
1315 reference counting and error handling.
1316 * python/py-stopevent.c (emit_stop_event): Fix reference
1317 counting.
1318 * python/py-threadevent.c (get_event_thread): Return a
1319 borrowed reference.
1320 * python/py-type.c (convert_field): Fix reference counting.
1321
1322 2012-08-15 Tom Tromey <tromey@redhat.com>
1323
1324 * dwarf2read.c (dwarf_decode_macro_bytes)
1325 <DW_MACRO_GNU_transparent_include>: Use pointer to included data
1326 as hash key.
1327
1328 2012-08-14 Mike Frysinger <vapier@gentoo.org>
1329
1330 * infcmd.c (_initialize_infcmd): Update help text for the signal,
1331 stepi, nexti, finish, next, step, jump, and continue commands.
1332 * infrun.c (_initialize_infrun): Update help text for the handle
1333 command.
1334
1335 2012-08-14 Doug Evans <dje@google.com>
1336
1337 * gdbtypes.c (struct extra): Delete, unused.
1338
1339 * gdbtypes.c: Whitespace cleanup.
1340 (address_space_name_to_int): Remove "extern" from definition.
1341 (_initialize_gdbtypes): Declare with initialize_file_ftype.
1342
1343 * gdbtypes.c (make_pointer_type): Remove redundant setting of
1344 TYPE_POINTER_TYPE (type).
1345
1346 2012-08-14 Gary Benson <gbenson@redhat.com>
1347
1348 * solib-svr4.c (svr4_free_library_list): Use free_so.
1349
1350 2012-08-13 Mike Frysinger <vapier@gentoo.org>
1351
1352 * .gitignore: Add go-exp.c.
1353
1354 2012-08-13 Doug Evans <dje@google.com>
1355
1356 * value.c (show_convenience): Tweak comment.
1357 (_initialize_values): Mention convenience functions in the help text
1358 for "show convenience".
1359
1360 2012-08-13 Yao Qi <yao@codesourcery.com>
1361
1362 * std-operator.def: Remove TERNOP_SLICE_COUNT.
1363 * breakpoint.c (watchpoint_exp_is_const): Remove handling to
1364 TERNOP_SLICE_COUNT.
1365 * eval.c (evaluate_subexp_standard): Likewise.
1366 * expprint.c (print_subexp_standard): Likewise.
1367 (dump_subexp_body_standard): Likewise.
1368 * parse.c (operator_length_standard): Likewise.
1369
1370 2012-08-13 Yao Qi <yao@codesourcery.com>
1371
1372 * std-operator.def: Remove OP_BITSTRING.
1373 * breakpoint.c (watchpoint_exp_is_const): Update.
1374 * eval.c (evaluate_subexp_standard): Remove handling to
1375 OP_BITSTRING.
1376 * expprint.c (print_subexp_standard): Likewise.
1377 (dump_subexp_body_standard): Likewise.
1378 * parse.c (operator_length_standard): Likewise.
1379 * valops.c (value_bitstring): Remove.
1380 * value.h: Remove the declaration of 'value_bitstring'.
1381
1382 2012-08-10 Sergio Durigan Junior <sergiodj@redhat.com>
1383
1384 * linespec.c (find_methods): Remove unused variables `i1' and
1385 `name_len'.
1386 (decode_line_full): Likewise for `arg_start'.
1387
1388 2012-08-10 Sergio Durigan Junior <sergiodj@redhat.com>
1389
1390 * gdb_bfd.c (gdb_bfd_unref): Remove unused variable `slot'.
1391 (zlib_decompress_section): Likewise for `section_data'.
1392 (gdb_bfd_map_section): Likewise for `buf' and `retbuf'.
1393
1394 2012-08-10 Doug Evans <dje@google.com>
1395
1396 Add $_memeq, $_regex, $_streq, $_strlen convenience functions.
1397 * NEWS: Document them.
1398 * data-directory/Makefile.in (PYTHON_FILES): Add function/__init__.py,
1399 function/strfns.py.
1400 * python/py-type.c (typy_array_1): New function.
1401 (typy_array): Call it.
1402 (typy_vector): New function.
1403 (type_object_methods): Add "vector".
1404 * python/lib/gdb/function/__init__.py: New file.
1405 * python/lib/gdb/function/strfns.py: New file.
1406
1407 2012-08-10 Siddhesh Poyarekar <siddhesh@redhat.com>
1408
1409 * python/py-type.c (convert_field): Use gdb_py_long_from_longest
1410 for TYPE_FIELD_BITPOS.
1411 (typy_get_sizeof): Likewise for TYPE_LENGTH.
1412
1413 2012-08-10 Mike Frysinger <vapier@gentoo.org>
1414
1415 PR cli/10436:
1416 * common/vec.h (VEC_merge): Define.
1417 (DEF_VEC_ALLOC_FUNC_I): Add a merge helper.
1418 (DEF_VEC_ALLOC_FUNC_P): Likewise.
1419 (DEF_VEC_ALLOC_FUNC_O): Likewise.
1420 * completer.c: Include gdb_signals.h.
1421 (signal_completer): Define.
1422 * completer.h (signal_completer): Add prototype.
1423 * infcmd.c (_initialize_infcmd): Assign the command
1424 completer for "signal" to handle_completer.
1425 * infrun.c: Include completer.h.
1426 (handle_completer): Define.
1427 (_initialize_infrun): Declare a new local variable c. Store the
1428 result of add_com("handle") to it. Assign the command
1429 completer for "handle" to handle_completer.
1430
1431 2012-08-09 Yao Qi <yao@codesourcery.com>
1432
1433 * cli/cli-decode.c (set_cmd_prefix): New.
1434 (lookup_cmd_for_prefixlist): New.
1435 (add_prefix_cmd): Call set_cmd_prefix and update field 'prefix'
1436 of each cmd_list_element in *prefixlist.
1437 (add_setshow_cmd_full): set_cmd_prefix.
1438 (add_alias_cmd): Likewise.
1439 * cli/cli-decode.h (struct cmd_list_element) <prefix>: New field.
1440 Declare 'auto_boolean_enums'.
1441 * cli/cli-setshow.c: Include "observer.h".
1442 (notify_command_param_changed_p): New.
1443 (add_setshow_auto_boolean_cmd): Move auto_boolean_enums out.
1444 Remove 'static'.
1445 (do_setshow_command): Split it to ...
1446 (do_set_command, do_show_command): ... them. New.
1447 (do_set_command): Call observer_notify_command_param_changed if
1448 notify_command_param_changed_p returns true.
1449 (cmd_show_list): Caller update.
1450 * auto-load.c (set_auto_load_cmd): Likewise.
1451 * remote.c (show_remote_cmd): Likewise.
1452 * cli/cli-setshow.h: Update declarations.
1453 * top.c (execute_command): Call do_set_command and do_show_command.
1454
1455 * NEWS: Mention new MI notification.
1456 * mi/mi-interp.c: Declare mi_command_param_changed.
1457 (mi_interpreter_init): Attach mi_command_param_changed to
1458 observer command_param_changed.
1459 (mi_command_param_changed): New.
1460 Remove mi_suppress_breakpoint_notifications.
1461 Define global variable mi_suppress_notification.
1462 (mi_breakpoint_created): Update.
1463 (mi_breakpoint_deleted): Likewise.
1464 (mi_breakpoint_modified): Likewise.
1465 * mi/mi-main.c (mi_cmd_execute): Likewise. Check command
1466 'gdb-set' and set mi_suppress_notification.
1467 * mi/mi-main.h: (mi_suppress_notification): New struct.
1468
1469 2012-08-09 Andreas Tobler <andreast@fgznet.ch>
1470 Jan Kratochvil <jan.kratochvil@redhat.com>
1471
1472 * fbsd-nat.h (fbsd_find_memory_regions): Use find_memory_region_ftype.
1473
1474 2012-08-09 Yao Qi <yao@codesourcery.com>
1475
1476 * cli/cli-cmds.c (enablebreaklist): Move it to breakpoint.c.
1477 (skiplist): Move it to skip.c.
1478 (init_cmd_lists): Remove code setting enablebreaklist and
1479 skiplist to NULL.
1480 * breakpoint.c (enablebreaklist): Moved from cli/cli-cmds.c.
1481 * cli/cli-cmds.h: Remove declaration of enablebreaklist and
1482 skiplist.
1483 * gdbcmd.h: Likewise.
1484 * skip.c (_initialize_step_skip): Move 'skiplist' from
1485 cli/cli-cmds.c.
1486
1487 2012-08-09 Yao Qi <yao@codesourcery.com>
1488
1489 * cli/cli-dump.c: Add 'static' to some cmd_list_element variables.
1490 * gnu-nat.c, symfile.c: Likewise.
1491
1492 2012-08-08 Aaron Gamble <agamble@google.com>
1493
1494 * utils.c (prompt_for_continue_wait_time): New static global.
1495 (make_command_stats_cleanup): Initialize it.
1496 (report_command_stats): Subtract time waiting for user.
1497 (prompt_for_continue): Track time waiting for user.
1498 (defaulted_query): Track time waiting for user.
1499
1500 2012-08-08 Doug Evans <dje@google.com>
1501
1502 * eval.c (evaluate_subexp_standard): Fix thinko in handling
1503 UNOP_MEMVAL_TYPE.
1504 * expprint.c (print_subexp_standard, case OP_TYPE): New.
1505 (print_subexp_standard, case UNOP_CAST_TYPE): Don't increment pos.
1506 (print_subexp_standard, case UNOP_DYNAMIC_CAST): Ditto.
1507 (print_subexp_standard, case UNOP_REINTERPRET_CAST): Ditto.
1508 (print_subexp_standard, case UNOP_MEMVAL_TYPE): Ditto.
1509 (dump_subexp_body_standard, case UNOP_DYNAMIC_CAST): Don't increment
1510 elt.
1511 (dump_subexp_body_standard, case UNOP_REINTERPRET_CAST): Ditto.
1512 (dump_subexp_body_standard, case UNOP_CAST_TYPE): Ditto.
1513 (dump_subexp_body_standard, case UNOP_MEMVAL_TYPE): Ditto.
1514 (dump_prefix_expression): Handle OP_TYPE.
1515
1516 2012-08-08 Keith Seitz <keiths@redhat.com>
1517
1518 * breakpoint.c (parse_breakpoint_sals): Remove unused variable
1519 addr_start.
1520
1521 2012-08-08 Doug Evans <dje@google.com>
1522
1523 * linux-thread-db.c: #include "gdb_vecs.h".
1524 (try_thread_db_load_from_pdir_1): New arg "subdir". All callers
1525 updated.
1526 (try_thread_db_load_from_pdir): New arg "subdir". All callers updated.
1527 (thread_db_load_search): Use a vector to iterate over path elements.
1528 Handle text appearing after "$pdir".
1529
1530 * gdb_string.h: Moved to ...
1531 * common/gdb_string.h: ... here.
1532 * common/vec.h: Remove #ifndef GDBSERVER conditional inclusion of
1533 gdb_string.h and gdb_assert.h.
1534
1535 2012-08-08 Yao Qi <yao@codesourcery.com>
1536
1537 * tic6x-tdep.c (tic6x_register_to_value): Remove.
1538 (tic6x_value_to_register): Likewise.
1539 (tic6x_gdbarch_init): Don't call set_gdbarch_register_to_value
1540 and set_gdbarch_value_to_register.
1541
1542 2012-08-07 Jan Kratochvil <jan.kratochvil@redhat.com>
1543 Jean-Marc Saffroy <saffroy@gmail.com>
1544
1545 PR 11804
1546 * defs.h (find_memory_region_ftype): New comment. New arg modified.
1547 * fbsd-nat.c (fbsd_find_memory_regions): Add the passed modified value.
1548 * gcore.c (gcore_create_callback): New function comment. Add modified
1549 parameter. Only write modified regions. Set SEC_READONLY exactly
1550 according to MODIFIED.
1551 (objfile_find_memory_regions): Ignore separate debug info files. Ass
1552 the passed modified value to FUNC.
1553 * gnu-nat.c (gnu_find_memory_regions): Add the passed modified value.
1554 * linux-tdep.c (linux_find_memory_regions): Try to reads smaps file
1555 first. New variables modified and has_anonymous. Parse the lines of
1556 smaps file. Add the passed MODIFIED value to FUNC.
1557 * procfs.c (find_memory_regions_callback): Add the passed modified
1558 value.
1559
1560 2012-08-06 Tom Tromey <tromey@redhat.com>
1561
1562 * dwarf2-frame.c (clear_pointer_cleanup): New function.
1563 (dwarf2_frame_cache): Use it.
1564 * frame-unwind.h (frame_sniffer_ftype): Document prologue
1565 cache initialization constraint.
1566
1567 2012-08-06 Tom Tromey <tromey@redhat.com>
1568
1569 PR python/14386:
1570 * varobj.c (update_dynamic_varobj_children): Don't call
1571 PyIter_Check.
1572
1573 2012-08-06 Tom Tromey <tromey@redhat.com>
1574
1575 PR cli/14392:
1576 * cli/cli-cmds.c (list_command): Filter 'sals_end'.
1577
1578 2012-08-06 Nathaniel Flath <flat0103@gmail.com>
1579
1580 * NEWS: New entry for 'cd' default parameters.
1581 * cli/cli-cmds.c (cd_command): Replace error_no_arg by DIR assignment.
1582
1583 2012-08-03 Tom Tromey <tromey@redhat.com>
1584
1585 * dwarf2-frame.c (dwarf2_frame_cache): Call do_cleanups before
1586 return.
1587
1588 2012-08-02 Ulrich Weigand <ulrich.weigand@linaro.org>
1589
1590 * inf-child.c (inf_child_fileio_pwrite): If pwrite fails, fall back
1591 to attempting lseek/write.
1592 (inf_child_fileio_pread): Likewise for pread.
1593
1594 2012-08-02 Yao Qi <yao@codesourcery.com>
1595
1596 * dwarf2loc.c (entry_values_debug): Add 'unsigned'.
1597 (_initialize_dwarf2loc): Call add_setshow_zuinteger_cmd instead of
1598 add_setshow_zinteger_cmd.
1599 * dwarf2loc.h: Update the declaration of 'entry_values_debug'.
1600 * dwarf2read.c (dwarf2_die_debug): Add 'unsigned'.
1601 (_initialize_dwarf2_read): Call add_setshow_zuinteger_cmd
1602 instead of add_setshow_zinteger_cmd.
1603 * darwin-nat.c (dwarwin_debug_flag): Add 'unsigned'.
1604 (_initialize_darwin_inferior): Call add_setshow_zuinteger_cmd
1605 instead of add_setshow_zinteger_cmd.
1606 * frame.c (frame_debug): Add 'unsigned'.
1607 (_intialize_frame): Call add_setshow_zuinteger_cmd instead of
1608 add_setshow_zinteger_cmd.
1609 * frame.h: Update the declaration of 'frame_debug'.
1610 * gdbtypes.c (overload_debug): Add 'unsigned'.
1611 (_initialize_gdbtypes): Call add_setshow_zuinteger_cmd instead of
1612 add_setshow_zinteger_cmd.
1613 * inferior.h: Update declaration of 'debug_infrun'.
1614 * infrun.c (debug_infrun): Add 'unsigned'.
1615 (_initialize_infrun): Call add_setshow_zuinteger_cmd instead of
1616 add_setshow_zinteger_cmd.
1617 * jit.c (jit_debug): Add 'unsigned'.
1618 (_initialize_jit): Call add_setshow_zuinteger_cmd instead of
1619 add_setshow_zinteger_cmd.
1620 * linux-nat.c (debug_linux_nat): Add 'unsigned'.
1621 (_initialize_linux_nat): Call add_setshow_zuinteger_cmd
1622 instead of add_setshow_zinteger_cmd.
1623 * linux-thread-db.c (libthread_db_debug): Add 'unsigned'.
1624 (_initialize_thread_db): Call add_setshow_zuinteger_cmd instead of
1625 add_setshow_zinteger_cmd.
1626 * machoread.c (mach_o_debug_level): Add 'unsigned'.
1627 (_initialize_machoread): Call add_setshow_zuinteger_cmd
1628 instead of add_setshow_zinteger_cmd.
1629 * mi/mi-cmd-var.c: Update the declaration of 'varobjdebug'.
1630 * microblaze-tdep.c (microblaze_debug_flag): Add 'unsigned'.
1631 (_initialize_microblaze_tdep): Call add_setshow_zuinteger_cmd
1632 intead of add_setshow_zinteger_cmd.
1633 * mips-tdep.c (mips_debug): Add 'unsigned'.
1634 (_initialize_mips_tdep): Call add_setshow_zuinteger_cmd
1635 instead of add_setshow_zinteger_cmd.
1636 * monitor.c (monitor_debug): Add 'unsigned'.
1637 (_initialize_remote_monitors): Call add_setshow_zuinteger_cmd instead of
1638 add_setshow_zinteger_cmd.
1639 * observer.c (observer_debug): Add 'unsigned'.
1640 (_initialize_observer): Call add_setshow_zuinteger_cmd instead of
1641 add_setshow_zinteger_cmd.
1642 * parse.c (expressiondebug): Add 'unsigned'.
1643 (_initialize_parse): Call add_setshow_zuinteger_cmd instead of
1644 add_setshow_zinteger_cmd.
1645 * record.c (record_debug): Add 'unsigned'.
1646 (_initialize_record): Call add_setshow_zuinteger_cmd instead of
1647 add_setshow_zinteger_cmd.
1648 * record.h: Update the declaration of 'record_debug'.
1649 * stap-probe.c (stap_expression_debug): Add 'unsigned'.
1650 (_initialize_stap_probe): Call add_setshow_zuinteger_cmd instead of
1651 add_setshow_zinteger_cmd.
1652 * serial.c (global_serial_debug_p): Add 'unsigned'.
1653 (_initialize_serial): Call add_setshow_zuinteger_cmd instead of
1654 add_setshow_zinteger_cmd.
1655 * solib-dsbt.c (solib_dsbt_debug): Add 'unsigned'.
1656 (_initialize_dsbt_solib): Call add_setshow_zuinteger_cmd instead of
1657 add_setshow_zinteger_cmd.
1658 * solib-frv.c (solib_frv_debug): Add 'unsigned'.
1659 (_initialize_frv_solib): Call add_setshow_zuinteger_cmd instead of
1660 add_setshow_zinteger_cmd.
1661 * target.c (targetdebug): Add 'unsigned'.
1662 (initialize_targets): Call add_setshow_zuinteger_cmd instead of
1663 add_setshow_zinteger_cmd.
1664 * valops.c (overload_debug): Add 'unsigned'.
1665 * varobj.c (varobjdebug): Add 'unsigned'.
1666 (_initialize_varobj): Call add_setshow_zuinteger_cmd instead of
1667 add_setshow_zinteger_cmd.
1668 * xtensa-tdep.c (xtensa_debug_level): Add 'unsigned'.
1669 (_initialize_xtensa_tdep): Call add_setshow_zuinteger_cmd
1670 instead of add_setshow_zinteger_cmd.
1671
1672 * arch-utils.h: Remove the declaration of 'gdbarch_debug'.
1673 * gdbarch.sh (gdbarch_debug): Add 'unsigned'.
1674 (extern void _initialize_gdbarch): Call add_setshow_zuinteger_cmd
1675 instead of add_setshow_zinteger_cmd.
1676 * gdbarch.c, gdbarch.h: Re-generated.
1677
1678 2012-08-02 Yao Qi <yao@codesourcery.com>
1679
1680 * nto-tdep.c: Don't include cli/cli-decode.h and
1681 cli/cli-cmds.h.
1682 (_initialize_nto_tdep): Remove.
1683 * nto-tdep.h (struct nto_target_ops) <internal_debugging>:
1684 Remove field.
1685 Remove macro nto_internal_debugging.
1686
1687 2012-08-01 Richard Henderson <rth@redhat.com>
1688
1689 * configure.tgt (m32c-*-*) [gdb_target_obs]: Remove prologue-value.o.
1690 (mep-*-*) [gdb_target_obs]: Likewise.
1691
1692 2012-07-31 Andreas Schwab <schwab@linux-m68k.org>
1693
1694 * ppc-linux-tdep.c (ppc_linux_init_abi): Register
1695 linux_get_siginfo_type.
1696
1697 2012-07-31 Jan Kratochvil <jan.kratochvil@redhat.com>
1698
1699 * infcall.c (call_function_by_hand): Move BP_ADDR comment to
1700 AT_ENTRY_POINT.
1701 (call_function_by_hand) <ON_STACK>: Call write_memory with
1702 gdbarch_breakpoint_from_pc, if possible.
1703 (call_function_by_hand) <AT_ENTRY_POINT>: The BP_ADDR comment is moved
1704 here.
1705
1706 2012-07-31 Yao Qi <yao@codesourcery.com>
1707
1708 * tracepoint.c: Add 'static' for some variables.
1709
1710 2012-07-31 Yao Qi <yao@codesourcery.com>
1711
1712 * go32-nat.c: Declare _initialize_go32_nat.
1713 * ser-go32.c: Declare _initialize_ser_dos.
1714 * top.c (do_chdir_cleanup): Add 'static'.
1715
1716 2012-07-30 Keith Seitz <keiths@redhat.com>
1717
1718 * linespec.c (linespec_lex_number): A number followed
1719 by quotes is a valid number, too.
1720
1721 2012-07-30 Tom Tromey <tromey@redhat.com>
1722
1723 * remote-sim.c (gdb_os_poll_quit): Don't check immediate_quit.
1724
1725 2012-07-30 Ulrich Weigand <ulrich.weigand@linaro.org>
1726
1727 * arm-linux-nat.c (arm_linux_hw_breakpoint_initialize): Do not
1728 attempt to 4-byte-align HW breakpoint addresses for Thumb.
1729
1730 2012-07-30 Andrew Burgess <aburgess@broadcom.com>
1731
1732 * varobj.c (varobj_invalidate_iter): All varobj must be marked as
1733 invalid or reevaluated to prevent prevent references to possibly
1734 delete'd type objects being left in the varobj.
1735
1736 2012-07-27 Tom Tromey <tromey@redhat.com>
1737 Jan Kratochvil <jan.kratochvil@redhat.com>
1738
1739 * copying.awk: Print buffer-read-only and vi ro markers.
1740 * copying.c: Rebuild.
1741 * gdbarch.sh (copyright): Print buffer-read-only and vi ro markers.
1742 * gdbarch.c, gdbarch.h: Rebuild.
1743 * target-descriptions.c (maint_print_c_tdesc_cmd): Print
1744 buffer-read-only and vi ro markers.
1745 * features/arm-with-iwmmxt.c: Rebuild.
1746 * features/arm-with-m-fpa-layout.c: Rebuild.
1747 * features/arm-with-m-vfp-d16.c: Rebuild.
1748 * features/arm-with-m.c: Rebuild.
1749 * features/arm-with-neon.c: Rebuild.
1750 * features/arm-with-vfpv2.c: Rebuild.
1751 * features/arm-with-vfpv3.c: Rebuild.
1752 * features/i386/amd64-avx-linux.c: Rebuild.
1753 * features/i386/amd64-avx.c: Rebuild.
1754 * features/i386/amd64-linux.c: Rebuild.
1755 * features/i386/amd64.c: Rebuild.
1756 * features/i386/i386-avx-linux.c: Rebuild.
1757 * features/i386/i386-avx.c: Rebuild.
1758 * features/i386/i386-linux.c: Rebuild.
1759 * features/i386/i386-mmx-linux.c: Rebuild.
1760 * features/i386/i386-mmx.c: Rebuild.
1761 * features/i386/i386.c: Rebuild.
1762 * features/i386/x32-avx-linux.c: Rebuild.
1763 * features/i386/x32-avx.c: Rebuild.
1764 * features/i386/x32-linux.c: Rebuild.
1765 * features/i386/x32.c: Rebuild.
1766 * features/mips-dsp-linux.c: Rebuild.
1767 * features/mips-linux.c: Rebuild.
1768 * features/mips64-dsp-linux.c: Rebuild.
1769 * features/mips64-linux.c: Rebuild.
1770 * features/rs6000/powerpc-32.c: Rebuild.
1771 * features/rs6000/powerpc-32l.c: Rebuild.
1772 * features/rs6000/powerpc-403.c: Rebuild.
1773 * features/rs6000/powerpc-403gc.c: Rebuild.
1774 * features/rs6000/powerpc-405.c: Rebuild.
1775 * features/rs6000/powerpc-505.c: Rebuild.
1776 * features/rs6000/powerpc-601.c: Rebuild.
1777 * features/rs6000/powerpc-602.c: Rebuild.
1778 * features/rs6000/powerpc-603.c: Rebuild.
1779 * features/rs6000/powerpc-604.c: Rebuild.
1780 * features/rs6000/powerpc-64.c: Rebuild.
1781 * features/rs6000/powerpc-64l.c: Rebuild.
1782 * features/rs6000/powerpc-7400.c: Rebuild.
1783 * features/rs6000/powerpc-750.c: Rebuild.
1784 * features/rs6000/powerpc-860.c: Rebuild.
1785 * features/rs6000/powerpc-altivec32.c: Rebuild.
1786 * features/rs6000/powerpc-altivec32l.c: Rebuild.
1787 * features/rs6000/powerpc-altivec64.c: Rebuild.
1788 * features/rs6000/powerpc-altivec64l.c: Rebuild.
1789 * features/rs6000/powerpc-cell32l.c: Rebuild.
1790 * features/rs6000/powerpc-cell64l.c: Rebuild.
1791 * features/rs6000/powerpc-e500.c: Rebuild.
1792 * features/rs6000/powerpc-e500l.c: Rebuild.
1793 * features/rs6000/powerpc-isa205-32l.c: Rebuild.
1794 * features/rs6000/powerpc-isa205-64l.c: Rebuild.
1795 * features/rs6000/powerpc-isa205-altivec32l.c: Rebuild.
1796 * features/rs6000/powerpc-isa205-altivec64l.c: Rebuild.
1797 * features/rs6000/powerpc-isa205-vsx32l.c: Rebuild.
1798 * features/rs6000/powerpc-isa205-vsx64l.c: Rebuild.
1799 * features/rs6000/powerpc-vsx32.c: Rebuild.
1800 * features/rs6000/powerpc-vsx32l.c: Rebuild.
1801 * features/rs6000/powerpc-vsx64.c: Rebuild.
1802 * features/rs6000/powerpc-vsx64l.c: Rebuild.
1803 * features/rs6000/rs6000.c: Rebuild.
1804 * features/s390-linux32.c: Rebuild.
1805 * features/s390-linux32v1.c: Rebuild.
1806 * features/s390-linux32v2.c: Rebuild.
1807 * features/s390-linux64.c: Rebuild.
1808 * features/s390-linux64v1.c: Rebuild.
1809 * features/s390-linux64v2.c: Rebuild.
1810 * features/s390x-linux64.c: Rebuild.
1811 * features/s390x-linux64v1.c: Rebuild.
1812 * features/s390x-linux64v2.c: Rebuild.
1813 * features/tic6x-c62x-linux.c: Rebuild.
1814 * features/tic6x-c62x.c: Rebuild.
1815 * features/tic6x-c64x-linux.c: Rebuild.
1816 * features/tic6x-c64x.c: Rebuild.
1817 * features/tic6x-c64xp-linux.c: Rebuild.
1818 * features/tic6x-c64xp.c: Rebuild.
1819
1820 2012-07-27 Tom Tromey <tromey@redhat.com>
1821
1822 * c-exp.y (classify_name): Avoid assignment in condition.
1823
1824 2012-07-27 Roland Schwingel <roland.schwingel@onevision.com>
1825
1826 * amd64-windows-tdep.c: Include "frame.h".
1827 (amd64_windows_skip_trampoline_code): New function.
1828 (amd64_windows_init_abi): Add trampoline registration.
1829
1830 2012-07-27 Yao Qi <yao@codesourcery.com>
1831
1832 * tracepoint.c (cur_traceframe_number): Remove.
1833 (set_tfile_traceframe): Remove.
1834 (tfile_trace_find, tfile_fetch_registers): Update callers.
1835 (tfile_xfer_partial, tfile_get_trace_state_variable_value): Likewise.
1836 (tfile_open, tfile_trace_find): Likewise.
1837
1838 2012-07-27 Yao Qi <yao@codesourcery.com>
1839
1840 * thread.c (switch_to_thread): Don't call registers_changed.
1841
1842 2012-07-26 Tom Tromey <tromey@redhat.com>
1843
1844 * Makefile.in (SFILES): Remove objc-exp.y.
1845 (YYFILES): Remove objc-exp.c.
1846 (YYOBJ): Remove objc-exp.o.
1847 (local-maintainer-clean): Don't mention objc-exp.c.
1848 * c-exp.y: Include objc-lang.h.
1849 (%union) <class>: New field.
1850 (NSSTRING, SELECTOR, CLASSNAME, OBJC_LBRAC): New tokens.
1851 (exp): Clone subscript production for OBJC_LBRAC. Add various
1852 Objective C productions.
1853 (msglist, msgarglist, msgarg): New productions.
1854 (array_mod, func_mod, operator): Clone productions for
1855 OBJC_LBRAC.
1856 (parse_string_or_char): Handle '@' strings.
1857 (lex_one_token): Return OBJC_LBRAC. Recognize @selector.
1858 (classify_name): Check la_name_of_this. Recognize ObjC class
1859 names.
1860 * objc-exp.y: Remove.
1861 * objc-lang.c (objc_language_defn): Use c_parse, c_error.
1862 * objc-lang.h (objc_parse, objc_error): Don't declare.
1863
1864 2012-07-26 Markus Metzger <markus.t.metzger@intel.com>
1865
1866 * python/py-inferior.c (infpy_threads): Call update_thread_list ().
1867
1868 2012-07-26 Jan Kratochvil <jan.kratochvil@redhat.com>
1869
1870 * auto-load.c (auto_load_info_scripts): Remove immediate_quit increment
1871 and decrement.
1872
1873 2012-07-26 Tom Tromey <tromey@redhat.com>
1874
1875 * copying.c: Rebuild.
1876 * copying.awk: Don't use immediate_quit. Use 'no_set_class', not
1877 'no_class'.
1878
1879 2012-07-26 Tom Tromey <tromey@redhat.com>
1880
1881 * symmisc.c (print_symbol_bcache_statistics): Use QUIT, not
1882 immediate_quit.
1883 (print_objfile_statistics): Likewise.
1884 (maintenance_print_symbols): Likewise.
1885 (maintenance_print_msymbols): Likewise.
1886 (maintenance_print_objfiles): Likewise.
1887 * psymtab.c (print_partial_symbols): Call QUIT.
1888 (maintenance_print_psymbols): Likewise. Don't modify
1889 immediate_quit.
1890 * copying.c (show_copying_command): Don't modify immediate_quit.
1891 (show_warranty_command): Likewise.
1892 * cli/cli-cmds.c (show_version): Don't modify immediate_quit.
1893
1894 2012-07-26 Keith Seitz <keiths@redhat.com>
1895
1896 * linespec.c (linespec_lexer_lex_number): The input
1897 is also a valid number if the next character is a comma
1898 or colon.
1899
1900 2012-07-26 Joel Brobecker <brobecker@adacore.com>
1901
1902 * NEWS: Document new --enable-libmcheck/--disable-libmcheck
1903 configure options.
1904
1905 2012-07-26 Tristan Gingold <gingold@adacore.com>
1906
1907 * machoread.c: Include gdb_bfd.h.
1908
1909 2012-07-26 Tristan Gingold <gingold@adacore.com>
1910
1911 * dwarf2loc.c (locexpr_describe_location_piece): Use uint64_t for
1912 offset.
1913
1914 2012-07-26 Siddhesh Poyarekar <siddhesh@redhat.com>
1915
1916 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Expand parameter
1917 SIZE to size_t.
1918 (dwarf2_evaluate_loc_desc): Likewise.
1919 (dwarf2_loc_desc_needs_frame): Likewise.
1920 (locexpr_describe_location_1): Likewise.
1921 * dwarf2loc.h (struct dwarf2_locexpr_baton): Make SIZE as
1922 size_t.
1923 (struct dwarf2_loclist_baton): Likewise.
1924 * dwarf2read.c (struct dwarf_block): Likewise.
1925 (dump_die_shallow): Use pulongest to print dwarf_block.size.
1926 (decode_locdesc): Expand SIZE and I to size_t.
1927
1928 2012-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
1929
1930 * contrib/cc-with-tweaks.sh: Put into comment path gdb/contrib/.
1931
1932 2012-07-25 Joel Brobecker <brobecker@adacore.com>
1933
1934 * doublest.c (convert_doublest_to_floatformat): If the exponent
1935 is too small, treat the value as zero. If the exponent is too
1936 large, treat the value as infinity.
1937
1938 2012-07-25 Joel Brobecker <brobecker@adacore.com>
1939
1940 * configure.ac: Add --enable-lmcheck configure option.
1941 * configure: Regenerate.
1942
1943 2012-07-25 Tom Tromey <tromey@redhat.com>
1944
1945 * NEWS: Mention maint info bfds.
1946 * gdb_bfd.c (all_bfds): New global.
1947 (gdb_bfd_ref, gdb_bfd_unref): Update all_bfds.
1948 (print_one_bfd, maintenance_info_bfds, _initialize_gdb_bfd):
1949 New functions.
1950
1951 2012-07-25 Ralf Corsépius <ralf.corsepius@rtems.org>
1952
1953 * configure.tgt: Add v850*-*-rtems*.
1954
1955 2012-07-25 Tom Tromey <tromey@redhat.com>
1956
1957 * macrotab.c (macro_bcache_str): Remove cast.
1958
1959 2012-07-25 Hui Zhu <hui_zhu@mentor.com>
1960
1961 * linespec.c (linespec_lexer_lex_number): Update comments,
1962 change the return and add check to make sure the input is
1963 the decimal numbers.
1964 (linespec_lexer_lex_one): If linespec_lexer_lex_number return
1965 false, call linespec_lexer_lex_string.
1966
1967 2012-07-24 Tom Tromey <tromey@redhat.com>
1968
1969 * symfile.c (symbol_file_add): Don't open BFD twice.
1970
1971 2012-07-24 Marc Khouzam <marc.khouzam@ericsson.com>
1972
1973 * breakpoint.c (create_breakpoint): Store condition for pending
1974 breakpoints.
1975
1976 2012-07-24 Andreas Schwab <schwab@linux-m68k.org>
1977
1978 * m68k-tdep.c (m68k_reg_struct_return_p): Accept complex types.
1979 (m68k_return_value): Handle complex types like structures.
1980 (m68k_svr4_return_value): Likewise.
1981
1982 2012-07-24 Marcus Shawcroft <marcus.shawcroft@arm.com>
1983
1984 * gdb_bfd.c (zlib_decompress_section) <!HAVE_ZLIB_H>: Adjust
1985 parameters to bfd_get_section_name.
1986
1987 2012-07-24 Yao Qi <yao@codesourcery.com>
1988
1989 * cli/cli-setshow.c: Handle case 'var_uinteger'
1990 and 'var_zuninteger' together. Handle case 'var_integer' and
1991 'var_zinteger' together.
1992
1993 2012-07-23 Keith Seitz <keiths@redhat.com>
1994
1995 * linespec.c (convert_linespec_to_sal): Don't add
1996 any symbols to the result vector if symbol_to_sal
1997 returns zero.
1998
1999 2012-07-23 Keith Seitz <keiths@redhat.com>
2000
2001 * linespec.c (decode_objc): Record the function name
2002 in the linespec.
2003
2004 2012-07-23 Tom Tromey <tromey@redhat.com>
2005
2006 * rs6000-nat.c (add_vmap): Rewrite archive loop. Fix reference
2007 counting.
2008 * exec.c (exec_close_1): Unconditionally release vmap's BFD.
2009 (map_vmap): Acquire a reference to the BFD.
2010
2011 2012-07-23 Siddhesh Poyarekar <siddhesh@redhat.com>
2012
2013 * p-valprint.c (pascal_object_print_value): Replace potentially
2014 unsafe alloca with xmalloc/xfree.
2015 * valops.c (search_struct_method): Likewise.
2016
2017 2012-07-23 Tom Tromey <tromey@redhat.com>
2018
2019 * solib-svr4.c (enable_break): Update.
2020 * bfd-target.h (target_bfd_reopen): Update documentation.
2021
2022 2012-07-23 Tom Tromey <tromey@redhat.com>
2023
2024 * symfile.c (separate_debug_file_exists): Update.
2025 (gdb_bfd_open_maybe_remote): Rename from bfd_open_maybe_remote.
2026 (reread_symbols): Update.
2027 * elfread.c (build_id_verify): Update.
2028 * symfile.h (gdb_bfd_open_maybe_remote): Rename from
2029 bfd_open_maybe_remote.
2030
2031 2012-07-23 Tom Tromey <tromey@redhat.com>
2032
2033 * gdb_bfd.c (gdb_bfd_ref, gdb_bfd_unref): Fix comment.
2034
2035 2012-07-23 Tom Tromey <tromey@redhat.com>
2036
2037 * coffread.c (coff_symfile_read): Make a cleanup for 'debugfile'
2038 and 'abfd'.
2039 * elfread.c (elf_symfile_read): Make a cleanup for 'debugfile'
2040 and 'abfd'.
2041 * jit.c (jit_bfd_try_read_symtab): Make a cleanup for 'nbfd'.
2042 * machoread.c (macho_add_oso_symfile): Make a cleanup for
2043 'abfd'.
2044 (macho_symfile_read): Make a cleanup for 'dsym_bfd'.
2045 * objfiles.c (allocate_objfile): Acquire a new reference.
2046 * rs6000-nat.c (add_vmap): Don't acquire a BFD reference.
2047 * solib.c (solib_read_symbols): Don't acquire a BFD reference.
2048 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Make
2049 a cleanup for 'nbfd'.
2050 * symfile-mem.c (symbol_file_add_from_memory): Make a cleanup
2051 for 'nbfd'.
2052 * symfile.c (symbol_file_add_with_addrs_or_offsets): Don't
2053 make a cleanup for 'abfd'.
2054 (symbol_file_add): Make a BFD cleanup.
2055
2056 2012-07-23 Tom Tromey <tromey@redhat.com>
2057
2058 * cli/cli-dump.c (bfd_openr_with_cleanup): Use gdb_bfd_openr.
2059 (bfd_openw_with_cleanup): Use gdb_bfd_openw.
2060 * corelow.c (core_open): Use gdb_bfd_fopen.
2061 * dsrec.c (load_srec): Use gdb_bfd_openr.
2062 * exec.c (exec_file_attach): Use gdb_bfd_fopen.
2063 * gcore.c (gcore_memory_sections): Use gdb_bfd_openw.
2064 * gdb_bfd.c (gdb_bfd_fopen, gdb_bfd_openr, gdb_bfd_openw)
2065 (gdb_bfd_openr_iovec, gdb_bfd_openr_next_archived_file)
2066 (gdb_bfd_fdopenr): New functions.
2067 * gdb_bfd.h (gdb_bfd_fopen, gdb_bfd_openr, gdb_bfd_openw)
2068 (gdb_bfd_openr_iovec, gdb_bfd_openr_next_archived_file)
2069 (gdb_bfd_fdopenr): Declare.
2070 * jit.c (bfd_open_from_target_memory): Use gdb_bfd_openr_iovec.
2071 * m32-rom.c (m32r_load, m32r_upload_command): Use gdb_bfd_openr.
2072 * machoread.c (macho_symfile_read_all_oso): Use gdb_bfd_openr,
2073 gdb_bfd_openr_next_archived_file.
2074 (macho_check_dsym): Use gdb_bfd_openr.
2075 (macho_add_oso_symfile): Don't call gdb_bfd_stash_filename.
2076 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_fdopenr.
2077 * remote-m32r-sdi.c (m32r_load): Use gdb_bfd_openr.
2078 * remote-mips.c (mips_load_srec, pmon_load_fast): Use
2079 gdb_bfd_openr.
2080 * remote.c (remote_bfd_open): Use gdb_bfd_openr_iovec.
2081 * rs6000-nat.c (add_vmap): Use gdb_bfd_openr, gdb_bfd_fdopenr,
2082 gdb_bfd_openr_next_archived_file.
2083 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
2084 Use gdb_bfd_openr.
2085 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
2086 gdb_bfd_openr.
2087 * solib-spu.c (spu_bfd_fopen): Use gdb_bfd_openr_iovec.
2088 * solib.c (solib_bfd_fopen): Use gdb_bfd_fopen.
2089 * spu-linux-nat.c (spu_bfd_open): Use gdb_bfd_openr_iovec.
2090 * symfile.c (bfd_open_maybe_remote): Use gdb_bfd_openr.
2091 (symfile_bfd_open): Use gdb_bfd_fopen.
2092 (generic_load): Use gdb_bfd_openr.
2093 * windows-nat.c (windows_make_so): Use gdb_bfd_openr.
2094
2095 2012-07-23 Tom Tromey <tromey@redhat.com>
2096
2097 * bfd-target.c (target_bfd_reopen): Update.
2098 * cli/cli-dump.c (bfd_openr_with_cleanup)
2099 (bfd_openw_with_cleanup): Update.
2100 * corelow.c (core_open): Update.
2101 * dsrec.c (load_srec): Update.
2102 * exec.c (exec_file_attach): Update.
2103 * gcore.c (create_gcore_bfd): Update.
2104 * gdb_bfd.c (gdb_bfd_ref): Return void.
2105 (gdb_bfd_open): Update.
2106 * gdb_bfd.h (gdb_bfd_ref): Return void.
2107 Update comments.
2108 * jit.c (jit_bfd_try_read_symtab): Update.
2109 * m32r-rom.c (m32r_load, m32r_upload_command): Update.
2110 * machoread.c (macho_symfile_read_all_oso): Update.
2111 (macho_check_dsym): Update.
2112 * procfs.c (insert_dbx_link_bpt_in_file): Update.
2113 * remote-m32r-sdi.c (m32r_load): Update.
2114 * remote-mips.c (mips_load_srec, pmon_load_fast): Update.
2115 * rs6000-nat.c (add_vmap): Update.
2116 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
2117 Update.
2118 * solib-pa64.c (pa64_solib_create_inferior_hook): Update.
2119 * solib-spu.c (spu_bfd_open): Update.
2120 * solib.c (solib_bfd_fopen, solib_read_symbols): Update.
2121 * spu-linux-nat.c (spu_bfd_open): Update.
2122 * symfile.c (bfd_open_maybe_remote, symfile_bfd_open)
2123 (generic_load): Update.
2124 * windows-nat.c (windows_make_so): Update.
2125
2126 2012-07-22 Siddhesh Poyarekar <siddhesh@redhat.com>
2127
2128 * sh-tdep.c (sh_treat_as_flt_p): Remove unused variable LEN.
2129
2130 2012-07-20 Jeff Kenton <jkenton@tilera.com>
2131
2132 * tilegx-linux-tdep.c (tilegx_linux_sigframe_init): Fix
2133 SIGTRAMP_FRAME unwinding.
2134
2135 2012-07-20 Doug Evans <dje@google.com>
2136
2137 * NEWS: Document new options "set/show use-deprecated-index-sections",
2138 and delete reference to --use-deprecated-index-sections.
2139 * symfile.h (use_deprecated_index_sections): Delete.
2140 * dwarf2read.c (use_deprecated_index_sections): Make static.
2141 (read_index_from_section): Update wording of how to load
2142 deprecated index sections.
2143 (_initialize_dwarf2_read): New options
2144 "set/show use-deprecated-index-sections".
2145 * main.c (captured_main): Delete --use-deprecated-index-sections.
2146
2147 2012-07-20 Pedro Alves <palves@redhat.com>
2148
2149 PR threads/11692
2150 PR gdb/12203
2151
2152 * infrun.c (handle_inferior_event) <new thread>: Don't special
2153 case minus_one_ptid.
2154 <TARGET_WAITKIND_SPURIOUS>: Ditto.
2155 * linux-thread-db.c (thread_get_info_callback): Don't return early
2156 if the thread is zombie.
2157 (thread_from_lwp): Change return type to void. Rewrite stale
2158 comment.
2159 (attach_thread): Don't return early if the thread is zombie,
2160 instead set its "dying" flag.
2161 (thread_db_wait): Don't return TARGET_WAITKIND_SPURIOUS anymore.
2162 (find_new_threads_callback): Don't return early if the thread is
2163 zombie.
2164
2165 2012-07-20 Pedro Alves <palves@redhat.com>
2166
2167 * linux-nat.c (linux_nat_wait): Dump the passed in target options.
2168 * target.c (target_wait): Likewise.
2169 (str_comma_list_concat_elem, do_option, target_options_to_string):
2170 New functions.
2171 * target.h (target_options_to_string): Declare.
2172
2173 2012-07-20 Jan Kratochvil <jan.kratochvil@redhat.com>
2174 Tom Tromey <tromey@redhat.com>
2175
2176 * dwarf2read.c (dwarf_decode_macros)
2177 <DW_MACRO_GNU_define_indirect_alt, DW_MACRO_GNU_undef_indirect_alt,
2178 DW_MACRO_GNU_transparent_include_alt>: New cases.
2179 (dwarf_decode_macro_bytes) <DW_MACRO_GNU_define_indirect,
2180 DW_MACRO_GNU_undef_indirect>: Examine 'section_is_dwz'.
2181
2182 2012-07-20 Tom Tromey <tromey@redhat.com>
2183
2184 * dwarf2read.c (try_open_dwo_file): Don't call
2185 gdb_bfd_stash_filename.
2186
2187 2012-07-20 Pedro Alves <palves@redhat.com>
2188
2189 * i386-tdep.c (i386_record_modrm, i386_record_lea_modrm_addr)
2190 (i386_record_lea_modrm, i386_record_push, i386_record_floats)
2191 (i386_process_record): Tweak description comments.
2192
2193 2012-07-20 Pedro Alves <palves@redhat.com>
2194
2195 * i386-tdep.c (i386_record_modrm, i386_record_lea_modrm_addr)
2196 (i386_process_record): Use record_read_memory.
2197 * record.c (record_read_memory): New function.
2198 (record_arch_list_add_mem, record_exec_insn): Use
2199 record_read_memory.
2200 * record.h (record_read_memory): Declare.
2201
2202 2012-07-20 Yao Qi <yao@codesourcery.com>
2203
2204 * cli/cli-setshow.c (do_setshow_command): Don't check pointer is
2205 NULL for xfree.
2206
2207 2012-07-19 Pedro Alves <palves@redhat.com>
2208
2209 * record.c (record_resume): Ask the target beneath to report all
2210 signals.
2211
2212 2012-07-19 Doug Evans <dje@google.com>
2213
2214 * dwarf2read.c (dwarf2_ranges_read): Ignore ranges starting at zero if
2215 there's no section at address zero.
2216 (dwarf2_record_block_ranges): Ditto.
2217
2218 2012-07-19 Yao Qi <yao@codesourcery.com>
2219
2220 * command.h, remote.c: Fix a typo in comment.
2221
2222 2012-07-19 Tom Tromey <tromey@redhat.com>
2223
2224 PR exp/13206:
2225 * ax-gdb.c (gen_expr) <OP_TYPEOF, OP_DECLTYPE>: New cases.
2226 * breakpoint.c (watchpoint_exp_is_const) <OP_TYPEOF,
2227 OP_DECLTYPE>: New cases.
2228 * c-exp.y (TYPEOF, DECLTYPE): New tokens.
2229 (type_exp): Add new productions.
2230 (ident_tokens): Add __typeof__, typeof, __typeof, __decltype,
2231 and decltype.
2232 * eval.c (evaluate_subexp_standard) <OP_TYPEOF, OP_DECLTYPE>:
2233 New case.
2234 * expprint.c (dump_subexp_body_standard) <OP_TYPEOF,
2235 OP_DECLTYPE>: New case.
2236 * parse.c (operator_length_standard) <OP_TYPEOF, OP_DECLTYPE>:
2237 New case.
2238 * std-operator.def (OP_TYPEOF, OP_DECLTYPE): New constants.
2239 * varobj.c (varobj_create): Handle OP_TYPEOF, OP_DECLTYPE.
2240
2241 2012-07-19 Tom Tromey <tromey@redhat.com>
2242
2243 * c-exp.y (enum token_flags): New.
2244 (struct token) <cxx_only>: Remove.
2245 <flags>: New field.
2246 (tokentab3, tokentab2, ident_tokens): Update.
2247 (lex_one_token): Update. Handle FLAG_SHADOW.
2248
2249 2012-07-19 Tom Tromey <tromey@redhat.com>
2250
2251 * ax-gdb.c (gen_expr): Handle UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE.
2252 * breakpoint.c (watchpoint_exp_is_const): Handle UNOP_CAST_TYPE,
2253 UNOP_REINTERPRET_CAST, UNOP_DYNAMIC_CAST.
2254 * c-exp.y (exp): Emit UNOP_MEMVAL_TYPE, UNOP_CAST_TYPE. Update
2255 for changes to UNOP_REINTERPRET_CAST, UNOP_DYNAMIC_CAST. Use
2256 type_exp production where appropriate.
2257 * eval.c (evaluate_subexp_standard) <UNOP_CAST_TYPE>: New case.
2258 <UNOP_DYNAMIC_CAST, UNOP_REINTERPRET_CAST>: Update.
2259 <UNOP_MEMVAL_TYPE>: New case.
2260 (evaluate_subexp_for_address) <UNOP_MEMVAL_TYPE>: New case.
2261 (evaluate_subexp_for_sizeof) <UNOP_MEMVAL_TYPE>: New case.
2262 * expprint.c (print_subexp_standard) <UNOP_CAST_TYPE>: New case.
2263 <UNOP_MEMVAL_TYPE>: New case.
2264 (dump_subexp_body_standard) <UNOP_DYNAMIC_CAST,
2265 UNOP_REINTERPRET_CAST>: Update.
2266 <UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE>: New cases.
2267 * parse.c (operator_length_standard) <UNOP_DYNAMIC_CAST,
2268 UNOP_REINTERPRET_CAST>: Update.
2269 <UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE>: New cases.
2270 * stack.c (return_command): Also check for UNOP_CAST_TYPE.
2271 * std-operator.def (UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE): New
2272 constants.
2273
2274 2012-07-19 Yao Qi <yao@codesourcery.com>
2275 Jan Kratochvil <jan.kratochvil@redhat.com>
2276
2277 * cli/cli-setshow.c (do_setshow_command): Handle case 'var_filename'
2278 and case 'var_optional_filename' together.
2279 * infcmd.c (_initialize_infcmd): Call add_setshow_string_noescape_cmd
2280 instead of add_setshow_optional_filename_cmd for setshow command
2281 'args'. Set completer for 'set args'.
2282
2283 2012-07-18 Doug Evans <dje@google.com>
2284
2285 * common/gdb_vecs.h: Moved here from ./gdb_vecs.h.
2286 * common/gdb_vecs.c: New file, contents from utils.c.
2287 * common/host-defs.h: New file, contents from defs.h.
2288 * utils.h: New file, contents from defs.h.
2289 * defs.h: Move all declarations of objects defined in utils.c
2290 to utils.h (except QUIT() and related).
2291 #include "utils.h", "host-defs.h".
2292 * probe.h (probe_p): Move here from gdb_vecs.h.
2293 * symfile.c: #include "probe.h" instead of "gdb_vecs.h".
2294 * utils.c (free_char_ptr_vec): Moved to common/gdb_vecs.c.
2295 (dirnames_to_char_ptr_vec_append, dirnames_to_char_ptr_vec): Ditto.
2296 * Makefile.in (SFILES): Add common/gdb_vecs.c.
2297 (HFILES_NO_SRCDIR): Add common/gdb_vecs.h, common/host-defs.h, utils.h.
2298 (COMMON_OBS): Add gdb_vecs.o.
2299 (gdb_vecs.o): New rule.
2300
2301 2012-07-18 Keith Seitz <keiths@redhat.com>
2302
2303 * linespec.c (add_sal_to_sals): Add LITERAL_CANONICAL
2304 parameter. If non-zero, use SYMNAME as the canonical name
2305 for the SaL.
2306 Update all callers.
2307 (convert_linespec_to_sals): Use add_sal_to_sals for
2308 expressions, too.
2309 (decode_line_full): No need to "fill in missing canonical names"
2310 anymore. Simply make cleanups for the allocated names.
2311
2312 2012-07-18 Keith Seitz <keiths@redhat.com>
2313
2314 * linespec.c (struct linespec): Constify expression,
2315 source_filename, function_name, and label_name.
2316 (symbol_not_found_error): Make all parameters const.
2317 (linespec_parser_delete): No need to check for NULL
2318 when using xfree. Cast const char * to char * for xfree.
2319
2320 2012-07-18 Keith Seitz <keiths@redhat.com>
2321
2322 * breakpoint.c (invalid_thread_id_error): New function.
2323 (find_condition_and_thread): Use invalid_thread_id_error.
2324 (watch_command_1): Likewise.
2325
2326 2012-07-18 Tom Tromey <tromey@redhat.com>
2327
2328 * cc-with-index.sh, cc-with-dwz.sh: Remove.
2329 * contrib/cc-with-tweaks.sh: New file.
2330
2331 2012-07-18 Tom Tromey <tromey@redhat.com>
2332
2333 * dwarf2read.c (struct dwz_file) <gdb_index>: New field.
2334 (locate_dwz_sections): Recognize .gdb_index.
2335 (create_cus_from_index_list): New function.
2336 (create_cus_from_index): Use it. Handle .dwz data.
2337 (read_index_from_section): New function, extracted from
2338 dwarf2_read_index.
2339 (dwarf2_read_index): Use it. Read .gdb_index from dwz file,
2340 if needed.
2341
2342 2012-07-18 Tom Tromey <tromey@redhat.com>
2343
2344 * dwarf2read.c (struct dwarf2_per_objfile) <dwz_file>: New field.
2345 (struct dwarf2_per_cu_data) <length>: No longer bitfield.
2346 <is_dwz>: New field.
2347 (struct dwz_file): New.
2348 (struct partial_die_info) <is_dwz, spec_is_dwz>: New fields.
2349 (locate_dwz_sections, dwarf2_get_dwz_file)
2350 (get_abbrev_section_for_cu): New functions.
2351 (error_check_comp_unit_head, read_and_check_comp_unit_head)
2352 (read_and_check_type_unit_head): Add abbrev_section argument.
2353 (create_debug_types_hash_table): Update.
2354 (init_cutu_and_read_dies): Use proper abbrev section.
2355 (init_cutu_and_read_dies_no_follow): Likewise.
2356 (set_partial_user): Do nothing if PST==NULL.
2357 (read_comp_units_from_section): New function.
2358 (create_all_comp_units): Use it.
2359 (scan_partial_symbols, partial_die_parent_scope): Update.
2360 (skip_one_die): Handle DW_FORM_GNU_ref_alt, DW_FORM_GNU_strp_alt.
2361 (process_imported_unit_die, read_partial_die): Handle .dwz files.
2362 (find_partial_die): Add offset_in_dwz argument. Update.
2363 (guess_partial_die_structure_name, fixup_partial_die): Update.
2364 (read_attribute_value): Handle DW_FORM_GNU_ref_alt,
2365 DW_FORM_GNU_strp_alt.
2366 (read_indirect_string_from_dwz): New function.
2367 (dwarf2_const_value_attr): Handle DW_FORM_GNU_strp_alt.
2368 (dump_die_shallow): Handle DW_FORM_GNU_ref_alt, DW_FORM_GNU_strp_alt.
2369 (is_ref_attr): Handle DW_FORM_GNU_ref_alt.
2370 (follow_die_offset): Add offset_in_dwz argument.
2371 (follow_die_ref, dwarf2_fetch_die_location_block): Update.
2372 (skip_form_bytes): Handle DW_FORM_GNU_strp_alt.
2373 (dwarf_decode_macro_bytes): Add section_is_dwz argument.
2374 Handle new macro forms.
2375 (dwarf_decode_macros): Update.
2376 (dwarf2_find_containing_comp_unit): Add offset_in_dwz argument.
2377 (dwarf2_per_objfile_free): Unref dwz_bfd, if it exists
2378 (lookup_die_type): Handle DW_FORM_GNU_ref_alt.
2379 (create_debug_types_hash_table): Use correct abbrev section.
2380 (get_debug_line_section): New function.
2381 (dwarf_decode_line_header, dwarf_decode_lines_1): Use it.
2382 (process_full_comp_unit): Pass 'required' argument to
2383 end_symtab_get_static_block.
2384 * buildsym.h (end_symtab_get_static_block): Update.
2385 * buildsym.c (end_symtab_get_static_block): Add 'required'
2386 argument.
2387 (end_symtab, end_expandable_symtab): Update.
2388
2389 2012-07-18 Tom Tromey <tromey@redhat.com>
2390
2391 * dwarf2read.c: Don't include zlib.h or sys/mman.h.
2392 (pagesize): Remove.
2393 (struct dwarf2_section_info) <map_addr, map_len>: Remove.
2394 (zlib_decompress_section): Remove.
2395 (dwarf2_read_section): Use gdb_bfd_map_section.
2396 (munmap_section_buffer): Remove.
2397 (free_dwo_file, dwarf2_per_objfile_free): Don't use
2398 munmap_section_buffer.
2399 * gdb_bfd.c: Include zlib.h, sys/mman.h.
2400 (struct gdb_bfd_section_data): New.
2401 (free_one_bfd_section): New function.
2402 (gdb_bfd_close_or_warn): Use free_one_bfd_section.
2403 (get_section_descriptor, zlib_decompress_section)
2404 (gdb_bfd_map_section): New functions.
2405 * gdb_bfd.h (gdb_bfd_map_section): Declare.
2406
2407 2012-07-18 Tom Tromey <tromey@redhat.com>
2408
2409 * dwarf2read.c (try_open_dwo_file): use gdb_bfd_open.
2410
2411 2012-07-18 Tom Tromey <tromey@redhat.com>
2412
2413 * gdb_bfd.c (struct gdb_bfd_data): New.
2414 (gdb_bfd_cache): New global.
2415 (struct gdb_bfd_cache_search): New.
2416 (hash_bfd, eq_bfd, gdb_bfd_open): New functions.
2417 (gdb_bfd_ref, gdb_bfd_unref): Use gdb_bfd_data.
2418 * gdb_bfd.h (gdb_bfd_open): Declare.
2419
2420 2012-07-18 Tom Tromey <tromey@redhat.com>
2421
2422 * utils.c (make_cleanup_bfd_unref): Rename from
2423 make_cleanup_bfd_close.
2424 * defs.h (make_cleanup_bfd_unref): Rename from
2425 make_cleanup_bfd_close.
2426 * cli/cli-dump.c (bfd_openr_with_cleanup): Update.
2427 (bfd_openw_with_cleanup): Update.
2428 * corelow.c (core_open): Update.
2429 * dsrec.c (load_srec): Update.
2430 * m32r-rom.c (m32r_load, m32r_upload_command): Update.
2431 * remote-m32r-sdi.c (m32r_load): Update.
2432 * remote-mips.c (mips_load_srec): Update.
2433 (pmon_load_fast): Update.
2434 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
2435 Update.
2436 (darwin_bfd_open): Update.
2437 * solib.c (solib_bfd_fopen): Update.
2438 * symfile-mem.c (symbol_file_add_from_memory): Update.
2439 * symfile.c (symbol_file_add_with_addrs_or_offsets): Update.
2440 (symfile_bfd_open): Update.
2441 (generic_load): Update.
2442
2443 2012-07-18 Tom Tromey <tromey@redhat.com>
2444
2445 * remote-mips.c (mips_load_srec): Use make_cleanup_bfd_close.
2446 (pmon_load_fast): Likewise.
2447 * m32r-rom.c (m32r_load): Use make_cleanup_bfd_close.
2448 (m32r_upload_command): Likewise.
2449 * dsrec.c (load_srec): Use make_cleanup_bfd_close.
2450 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
2451 Use make_cleanup_bfd_close.
2452
2453 2012-07-18 Tom Tromey <tromey@redhat.com>
2454
2455 * symfile.c (symfile_bfd_open): Don't copy name. Call
2456 gdb_bfd_stash_filename.
2457 (load_command): Open the new BFD before freeing the old.
2458 (bfd_open_maybe_remote): Call gdb_bfd_stash_filename.
2459 * symfile-mem.c (symbol_file_add_from_memory): Don't copy name.
2460 Call gdb_bfd_stash_filename.
2461 * spu-linux-nat.c (spu_bfd_open): Don't copy name.
2462 * solib-spu.c (spu_bfd_fopen): Don't copy name. Call
2463 gdb_bfd_stash_filename.
2464 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
2465 Free found_pathname.
2466 * rs6000-nat.c (add_vmap): Don't copy filename. Call
2467 gdb_bfd_stash_filename.
2468 * remote.c (remote_bfd_open): Call gdb_bfd_stash_filename.
2469 * machoread.c (macho_add_oso_symfile): Call
2470 gdb_bfd_stash_filename.
2471 (macho_symfile_read_all_oso): Arrange to free archive_name. Call
2472 gdb_bfd_stash_filename.
2473 (macho_check_dsym): Don't copy filename. Call
2474 gdb_bfd_stash_filename.
2475 * jit.c (bfd_open_from_target_memory): Don't copy the filename.
2476 * gdb_bfd.c (gdb_bfd_stash_filename): New function.
2477 * gdb_bfd.h (gdb_bfd_stash_filename): Declare.
2478 * gcore.c (create_gcore_bfd): Call gdb_bfd_stash_filename.
2479 * exec.c (exec_close): Don't free the BFD's filename.
2480 (exec_file_attach): Don't copy the filename. Call
2481 gdb_bfd_stash_filename.
2482 * corelow.c (core_close): Don't free the BFD's filename.
2483 (core_open): Call gdb_bfd_stash_filename.
2484 * corefile.c (reopen_exec_file): Remove #if 0 code.
2485 * solib.c (solib_bfd_fopen): Call gdb_bfd_stash_filename. Free
2486 pathname.
2487 * dwarf2read.c (try_open_dwo_file): Call gdb_bfd_stash_filename.
2488
2489 2012-07-18 Tom Tromey <tromey@redhat.com>
2490
2491 * dwarf2read.c (try_open_dwo_file): Use gdb_bfd_ref and
2492 gdb_bfd_unref.
2493 (free_dwo_file): Use gdb_bfd_unref.
2494 * cli/cli-dump.c: Include gdb_bfd.h.
2495 (bfd_openw_with_cleanup): Use gdb_bfd_ref.
2496 (bfd_openr_with_cleanup): Likewise.
2497 * windows-nat.c (windows_make_so): Use gdb_bfd_ref,
2498 gdb_bfd_unref.
2499 * utils.c: Include gdb_bfd.h.
2500 (do_bfd_close_cleanup): Use gdb_bfd_unref.
2501 * symfile.c: Include gdb_bfd.h.
2502 (separate_debug_file_exists): Use gdb_bfd_unref.
2503 (bfd_open_maybe_remote): Use gdb_bfd_ref.
2504 (symfile_bfd_open): Use gdb_bfd_ref, gdb_bfd_unref.
2505 (generic_load): Use gdb_bfd_ref.
2506 (reread_symbols): Use gdb_bfd_unref.
2507 * symfile-mem.c: Include gdb_bfd.h.
2508 (symbol_file_add_from_memory): Use make_cleanup_bfd_close.
2509 * spu-linux-nat.c (spu_bfd_open): Use gdb_bfd_ref, gdb_bfd_unref.
2510 * solib.c: Include gdb_bfd.h.
2511 (solib_bfd_fopen): Use gdb_bfd_ref.
2512 (solib_bfd_open): Use gdb_bfd_unref.
2513 (free_so_symbols): Use gdb_bfd_unref.
2514 (reload_shared_libraries_1): Use gdb_bfd_unref.
2515 * solib-spu.c: Include gdb_bfd.h.
2516 (spu_bfd_fopen): Use gdb_bfd_ref, gdb_bfd_unref.
2517 * solib-pa64.c (pa64_solib_create_inferior_hook): Use gdb_bfd_ref,
2518 gdb_bfd_unref.
2519 * solib-frv.c: Include gdb_bfd.h.
2520 (enable_break2): Use gdb_bfd_unref.
2521 * solib-dsbt.c: Include gdb_bfd.h.
2522 (enable_break2): Use gdb_bfd_unref.
2523 * solib-darwin.c: Include gdb_bfd.h.
2524 (darwin_solib_get_all_image_info_addr_at_init): Use gdb_bfd_ref,
2525 gdb_bfd_unref.
2526 (darwin_bfd_open): Use gdb_bfd_unref.
2527 * rs6000-nat.c (add_vmap): Use gdb_bfd_ref, gdb_bfd_unref.
2528 * remote-mips.c: Include gdb_bfd.h.
2529 (mips_load_srec): Use gdb_bfd_ref.
2530 (pmon_load_fast): Use gdb_bfd_ref.
2531 * remote-m32r-sdi.c: Include gdb_bfd.h.
2532 (m32r_load): Use gdb_bfd_ref.
2533 * record.c: Include gdb_bfd.h.
2534 (record_save_cleanups): Use gdb_bfd_unref.
2535 (cmd_record_save): Use gdb_bfd_unref.
2536 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_ref,
2537 gdb_bfd_unref.
2538 * objfiles.h (gdb_bfd_close_or_warn): Remove.
2539 (gdb_bfd_ref, gdb_bfd_unref): Move to gdb_bfd.h.
2540 * objfiles.c: Include gdb_bfd.h.
2541 (free_objfile): Use gdb_bfd_unref.
2542 (gdb_bfd_close_or_warn, gdb_bfd_ref, gdb_bfd_unref): Move to
2543 gdb_bfd.c.
2544 * machoread.c (macho_add_oso_symfile): Use gdb_bfd_unref.
2545 (macho_symfile_read_all_oso): Use gdb_bfd_ref, gdb_bfd_unref.
2546 (macho_check_dsym): Likewise.
2547 * m32r-rom.c: Include gdb_bfd.h.
2548 (m32r_load): Use gdb_bfd_ref.
2549 (m32r_upload_command): Use gdb_bfd_ref.
2550 * jit.c: Include gdb_bfd.h.
2551 (jit_bfd_try_read_symtab): Use gdb_bfd_ref, gdb_bfd_unref.
2552 * gdb_bfd.h: New file.
2553 * gdb_bfd.c: New file.
2554 * gcore.c: Include gdb_bfd.h.
2555 (create_gcore_bfd): Use gdb_bfd_ref.
2556 (do_bfd_delete_cleanup): Use gdb_bfd_unref.
2557 (gcore_command): Use gdb_bfd_unref.
2558 * exec.c: Include gdb_bfd.h.
2559 (exec_close): Use gdb_bfd_unref.
2560 (exec_close_1): Use gdb_bfd_unref.
2561 (exec_file_attach): Use gdb_bfd_ref.
2562 * elfread.c: Include gdb_bfd.h.
2563 (build_id_verify): Use gdb_bfd_unref.
2564 * dsrec.c: Include gdb_bfd.h.
2565 (load_srec): Use gdb_bfd_ref.
2566 * corelow.c: Include gdb_bfd.h.
2567 (core_close): Use gdb_bfd_unref.
2568 (core_open): Use gdb_bfd_ref.
2569 * bfd-target.c: Include gdb_bfd.h.
2570 (target_bfd_xclose): Use gdb_bfd_unref.
2571 (target_bfd_reopen): Use gdb_bfd_ref.
2572 * Makefile.in (SFILES): Add gdb_bfd.c.
2573 (HFILES_NO_SRCDIR): Add gdb_bfd.h.
2574 (COMMON_OBS): Add gdb_bfd.o.
2575
2576 2012-07-18 Keith Seitz <keiths@redhat.com>
2577
2578 * breakpoint.c (find_condition_and_thread): Initialize
2579 TASK and REST.
2580 (create_breakpiont): find_condition_and_thread will now
2581 initialize COND_STRING, THREAD, and REST (and TASK).
2582 (addr_string_to_sals): Likewise.
2583
2584 2012-07-18 Pedro Alves <palves@redhat.com>
2585
2586 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_NO_HISTORY>:
2587 Pull the single step breakpoints out of the target.
2588
2589 2012-07-18 Sergio Durigan Junior <sergiodj@redhat.com>
2590
2591 * probe.c (probe_safe_evaluate_at_pc): Rename variable `n_probes'.
2592 * stap-probe.c (compile_probe_arg): Likewise.
2593
2594 2012-07-18 Sergio Durigan Junior <sergiodj@redhat.com>
2595
2596 * elfread.c (elf_get_probe_argument_count): Remove `objfile' argument.
2597 (elf_compile_to_ax): Likewise.
2598 * infrun.c (insert_exception_resume_from_probe): Likewise.
2599 (check_exception_resume): Remove `objfile' variable.
2600 * probe.c (find_probe_by_pc): Remove `objfile' argument.
2601 (struct probe_and_objfile, probe_and_objfile_s): Delete.
2602 (collect_probes): Adjust return value to `VEC (probe_p) *'.
2603 (compare_entries): Rename to...
2604 (compare_probes): ...this. Adjust function to work with
2605 `struct probe *'. Rename variables `ea' and `eb' to `pa' and `pb'
2606 respectively.
2607 (gen_ui_out_table_header_info): Adjust `probes' argument to be
2608 `VEC (probe_p) *'.
2609 (print_ui_out_info): Adjust argument to be `struct probe *'.
2610 (info_probes_for_ops): Adjust internal computations to use
2611 `VEC (probe_p) *'.
2612 (probe_safe_evaluate_at_pc): Refactor to not pass `objfile' anymore.
2613 * probe.h (struct probe_ops) <get_probe_argument_count, compile_to_ax,
2614 gen_info_probes_table_values>: Remove `objfile' argument.
2615 (struct probe) <objfile>: New field.
2616 (find_probe_by_pc): Remove `objfile' argument.
2617 * stap-probe.c (stap_parse_probe_arguments): Likewise.
2618 (stap_get_probe_argument_count): Likewise.
2619 (stap_get_arg): Likewise.
2620 (stap_evaluate_probe_argument): Likewise.
2621 (stap_compile_to_ax): Likewise.
2622 (compile_probe_arg): Refactor not to pass `objfile' anymore.
2623 (handle_stap_probe): Fill `objfile' field from `struct probe'.
2624 (stap_gen_info_probes_table_header): Remove `objfile' argument.
2625 * symfile.h (struct sym_probe_fns) <sym_evaluate_probe_argument,
2626 sym_compile_to_ax>: Likewise.
2627
2628 2012-07-18 Terry Guo <terry.guo@arm.com>
2629
2630 PR 14329
2631 * defs.h (GDB_MI_MSG_WIDTH): New.
2632 * ser_base (ser_base_read_error_fd): New function.
2633 (do_ser_base_readchar): Poll error file descriptor as well as
2634 standard output.
2635 (generic_readchar): Refactor error handling.
2636
2637 2012-07-18 Joel Brobecker <brobecker@adacore.com>
2638
2639 * NEWS: Create a new section for the next release branch.
2640 Rename the section of the current branch, now that it has
2641 been cut.
2642
2643 2012-07-18 Joel Brobecker <brobecker@adacore.com>
2644
2645 GDB 7.5 branch created (branch timestamp: 2012-07-18 03:22 UTC)
2646 * version.in: Bump version to 7.5.50.20120718-cvs.
2647
2648 2012-07-17 Keith Seitz <keiths@redhat.com>
2649
2650 * linespec.c (linespec_parse_line_offset): Make parameter
2651 const.
2652
2653 2012-07-16 Jan Kratochvil <jan.kratochvil@redhat.com>
2654
2655 PR 11914
2656 * f-valprint.c (info_common_command): New variable frame_id.
2657 Reinitialize FI form FRAME_ID after each print_variable_and_value.
2658 * printcmd.c (print_variable_and_value): Extend function comment.
2659 Add comment for invalidated FRAME.
2660 * stack.c (backtrace_command_1): New variable frame_id. Reinitialize
2661 FI form FRAME_ID after each print_frame_local_vars.
2662 (struct print_variable_and_value_data): Change frame to frame_id.
2663 (do_print_variable_and_value): New variable frame, initialize it from
2664 p->frame_id. Add comment for invalidated FRAME.
2665 (print_frame_local_vars, print_frame_arg_vars): New function comment.
2666 Update CB_DATA.FRAME to CB_DATA.FRAME_ID initialization. Add comment
2667 for invalidated FRAME.
2668
2669 2012-07-16 Marc Khouzam <marc.khouzam@ericsson.com>
2670 Pedro Alves <palves@redhat.com>
2671
2672 * linux-nat.c (linux_nat_detach): Don't unregister from the event
2673 loop.
2674
2675 2012-07-16 Tom Tromey <tromey@redhat.com>
2676
2677 * jv-typeprint.c (c_type_print_varspec_suffix): Don't declare.
2678
2679 2012-07-15 Doug Evans <dje@google.com>
2680
2681 * dwarf2read.c (stmt_list_hash): New struct.
2682 (type_unit_group): Embed "per_cu" member, remove pointer.
2683 New union member "t", move member "tus" into it, all uses updated.
2684 New member "hash", replaces member "line_offset, all uses updated.
2685 (quick_file_names): Replace member "offset" with "hash", all uses
2686 updated.
2687 (hash_stmt_list_entry, eq_stmt_list_entry): New functions.
2688 (hash_file_name_entry, eq_file_name_entry): Call them.
2689 (hash_type_unit_group, eq_type_unit_group): Ditto.
2690 (dw2_get_cu, dw2_get_primary_cu): Replace assert with a better one.
2691 (dw2_get_file_names_reader): Fix file name table calculation for TUs.
2692 (dw2_get_file_names): Update.
2693 (create_type_unit_group): Replace "per_cu" arg with "cu".
2694 All callers updated. Fix "quick" (.gdb_index) handling.
2695 (get_type_unit_group): Replace "per_cu" arg with "cu".
2696 All callers updated.
2697 (build_type_unit_groups): Don't reset tu_stats.
2698
2699 * symtab.c (filename_seen_cache): Delete members "tab_alloc_size",
2700 "tab_cur_size". Change member "tab" to be a htab_t.
2701 (create_filename_seen_cache): Update.
2702 (clear_filename_seen_cache, delete_filename_seen_cache): Update.
2703 (filename_seen): Update.
2704
2705 2012-07-13 Doug Evans <dje@google.com>
2706
2707 * symtab.c (filename_seen): Update comment.
2708
2709 2012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2710 Doug Evans <dje@google.com>
2711
2712 * buildsym.c (end_symtab_1): Split it to ...
2713 (end_symtab_get_static_block): ... this ...
2714 (end_symtab_from_static_block): ... and this function.
2715 (end_symtab, end_expandable_symtab): Call them.
2716 * buildsym.h (end_symtab_get_static_block)
2717 (end_symtab_from_static_block): New declarations.
2718 * dwarf2read.c (process_full_comp_unit): New variable static_block.
2719 Set its valid CU ranges.
2720
2721 2012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2722
2723 * dwarf2loc.c (disassemble_dwarf_expression): Handle
2724 DW_OP_GNU_parameter_ref.
2725
2726 2012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2727
2728 * dwarf2read.c (read_call_site_scope): Do not gdb_assert for invalid
2729 read-in CALL_SITE_PARAMETER_PARAM_OFFSET.
2730
2731 2012-07-13 Doug Evans <dje@google.com>
2732
2733 * symtab.c (output_source_filename): Delete unnecessary forward decl.
2734 (filename_seen_cache): New struct.
2735 (INITIAL_FILENAME_SEEN_CACHE_SIZE): New macro.
2736 (create_filename_seen_cache): New function.
2737 (clear_filename_seen_cache, delete_filename_seen_cache): New functions.
2738 (filename_seen): Delete arg "first". New arg "cache". All callers
2739 updated.
2740 (output_source_filename_data): New struct.
2741 (output_source_filename): Delete arg "first". New arg "data".
2742 All callers updated.
2743 (sources_info): Delete local "first". New locals "data", "cleanups".
2744 Rewrite to use filename_seen_cache.
2745 (add_partial_filename_data): Delete member "first". New member
2746 "filename_seen_cache". All uses updated.
2747 (make_source_files_completion_list): Rewrite to use
2748 filename_seen_cache.
2749
2750 2012-07-12 Doug Evans <dje@google.com>
2751
2752 * psymtab.c (map_symbol_filenames_psymtab): Skip shared psymtabs.
2753
2754 2012-07-10 Doug Evans <dje@google.com>
2755
2756 PR gdb/13498
2757 * dwarf2read.c (dwarf2_per_objfile): New members n_type_unit_groups,
2758 all_type_unit_groups, type_unit_groups, tu_stats.
2759 (dwarf2_per_cu_data): Move "imported_symtabs" into new union "s".
2760 All uses updated. Add type_unit_group to union "s".
2761 (type_unit_group): New struct.
2762 (IS_TYPE_UNIT_GROUP): New macro.
2763 (abbrev_table): Delete unused member "section".
2764 (dw2_do_instantiate_symtab): Early exit if type_unit_group.
2765 (dw2_get_cu): Assert not used with type_unit_group.
2766 (dw2_get_primary_cu): New function.
2767 (dw2_build_type_unit_groups_reader): New function.
2768 (dw2_build_type_unit_groups): New function.
2769 (dw2_get_file_names): Assert not called on type units.
2770 (dw2_map_symtabs_matching_filename): Call dw2_build_type_unit_groups.
2771 Redo loop to iterate over type unit groups instead of type units.
2772 (dw2_expand_symtabs_matching, dw2_map_symbol_filenames): Ditto.
2773 (read_abbrev_offset): New function.
2774 (init_cutu_and_read_dies): New arg "abbrev_table". All callers
2775 updated.
2776 (create_partial_symtab): New function.
2777 (process_psymtab_comp_unit_reader): Assert not used with type units.
2778 Call create_partial_symtab.
2779 (process_psymtab_type_unit): Delete.
2780 (hash_type_unit_group, eq_type_unit_group): New functions.
2781 (allocate_type_unit_groups_table): New function.
2782 (NO_STMT_LIST_TYPE_UNIT_PSYMTAB): New macro.
2783 (NO_STMT_LIST_TYPE_UNIT_PSYMTAB_SIZE): New macro.
2784 (create_type_unit_group, get_type_unit_group): New functions.
2785 (tu_abbrev_offset): New struct.
2786 (sort_tu_by_abbrev_offset): New function.
2787 (add_type_unit_group_to_table): New function.
2788 (build_type_unit_groups): New function.
2789 (build_type_psymtabs_reader): New function.
2790 (build_type_psymtab_dependencies): New function.
2791 (build_type_psymtabs): Rewrite.
2792 (scan_partial_symbols): Flag an error if a DW_TAG_imported_unit
2793 is seen in a type unit.
2794 (process_queue): Move symtab expansion debugging printfs here.
2795 Call process_full_type_unit for type units.
2796 (compute_symtab_includes): Assert not called for type units.
2797 (process_cu_includes): Don't call compute_symtab_includes for
2798 type units.
2799 (process_full_type_unit): New function.
2800 (process_imported_unit_die): Flag an error if called for type units.
2801 (handle_DW_AT_stmt_list): Delete arg "want_line_info". All callers
2802 updated. Assert not called for type units.
2803 (read_file_scope): Call dwarf2_start_symtab.
2804 (setup_type_unit_groups): New function.
2805 (read_type_unit_scope): Rewrite.
2806 (abbrev_table_read_table): Initialize abbrev_table->offset.
2807 (abbrev_table_free_cleanup): New function.
2808 (dwarf2_start_symtab): New function.
2809 (load_full_type_unit): Assert not called for type unit groups.
2810 * buildsym.c (finish_block_internal): New arg "expandable".
2811 All callers updated.
2812 (start_symtab): Move most contents to ...
2813 (restart_symtab): ... here. New function.
2814 (reset_symtab_globals): New function.
2815 (end_symtab_1): Renamed from end_symtab. New arg "expandable".
2816 Call reset_symtab_globals.
2817 (end_symtab, end_expandable_symtab): New functions.
2818 (set_missing_symtab, augment_type_symtab): New functions.
2819 * buildsym.h (end_expandable_symtab): Declare.
2820 (augment_type_symtab, restart_symtab): Declare.
2821 * psympriv.h (struct partial_symtab): New member "anonymous".
2822 * psymtab.c (partial_map_symtabs_matching_filename): Ignore
2823 anonymous psymtabs.
2824 (read_psymtabs_with_filename): Ditto.
2825 (map_symbol_filenames_psymtab, psymtab_to_fullname): Ditto.
2826 (expand_symtabs_matching_via_partial): Ditto.
2827 (dump_psymtab): Update.
2828 * dictionary.c (dict_add_pending): New function.
2829 * dictionary.h (dict_add_pending): Declare.
2830
2831 2012-07-09 Doug Evans <dje@google.com>
2832
2833 * buildsym.c (start_subfile): Remove unnecessary check for
2834 name == NULL.
2835
2836 * psymtab.c (allocate_psymtab): Use host_address_to_string.
2837
2838 * dwarf2read.c (load_full_type_unit): Simplify.
2839
2840 * dwarf2read.c (dwarf2_per_objfile): Change type of all_type_units
2841 to struct signatured_type **. All uses updated.
2842
2843 * dwarf2read.c (dwarf2_attr_no_follow): Delete unused arg "cu".
2844 All callers updated.
2845
2846 2012-07-09 Tom Tromey <tromey@redhat.com>
2847
2848 * c-exp.y (check_parameter_typelist): New function.
2849 (parameter_typelist): Call it.
2850 * eval.c (make_params): Handle '(void)' case.
2851 * gdbtypes.c (lookup_function_type_with_arguments): Handle
2852 '(void)' case.
2853
2854 2012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
2855
2856 * common/linux-ptrace.c: Include gdb_assert.h.
2857 <__i386__> (linux_ptrace_test_ret_to_nx_instr): New declaration.
2858 <__i386__>: Include sys/reg.h, sys/mman.h, signal.h, sys/wait.h and
2859 stdint.h.
2860 (linux_ptrace_test_ret_to_nx, linux_ptrace_init_warnings): New
2861 functions.
2862 * common/linux-ptrace.h (linux_ptrace_init_warnings): New declarations.
2863 * linux-nat.c (linux_child_post_attach)
2864 (linux_child_post_startup_inferior): Call linux_ptrace_init_warnings.
2865
2866 2012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
2867
2868 * linux-thread-db.c (thread_db_find_new_threads_silently): Do not apply
2869 nptl <2.7 bug workaround for core files.
2870
2871 2012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
2872
2873 * linux-nat.c (resume_lwp, linux_nat_resume): Remove LP->SIGINFO
2874 clearing.
2875 (save_siginfo): Remove.
2876 (stop_wait_callback, linux_nat_filter_event): Remove the save_siginfo
2877 call.
2878 (resume_stopped_resumed_lwps): Remove LP->SIGINFO clearing.
2879 (linux_nat_get_siginfo): Use PTRACE_GETSIGINFO.
2880 * linux-nat.h (struct lwp_info): Remove field siginfo.
2881
2882 2012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
2883
2884 Code cleanup for the next patch.
2885 * arm-linux-nat.c (arm_linux_stopped_data_address): Change variable
2886 siginfo_p to siginfo, update its users incl. the linux_nat_get_siginfo
2887 call for it.
2888 * ia64-linux-nat.c (ia64_linux_stopped_data_address): Likewise.
2889 (ia64_linux_stopped_data_address):
2890 * linux-nat.c (linux_nat_get_siginfo): Add parameter siginfo, change
2891 the return value.
2892 * linux-nat.h (linux_nat_get_siginfo): Likewise.
2893 * ppc-linux-nat.c (ppc_linux_stopped_data_address): Change variable
2894 siginfo_p to siginfo, update its users incl. the linux_nat_get_siginfo
2895 call for it.
2896
2897 2012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
2898
2899 PR 14321
2900 * findcmd.c (parse_find_args): New variable pattern_buf_size_need.
2901 Increase buffer sizes to 2x we need, not just 2x of the previous size.
2902
2903 2012-07-06 Tom Tromey <tromey@redhat.com>
2904
2905 * c-exp.y (DOTDOTDOT): New token.
2906 (func_mod, exp): Use parameter_typelist.
2907 (parameter_typelist): New production.
2908 (tokentab3): Add "..." token.
2909 * eval.c (make_params): Handle varargs.
2910 * gdbtypes.c (lookup_function_type_with_arguments): Handle
2911 varargs.
2912
2913 2012-07-06 Tom Tromey <tromey@redhat.com>
2914
2915 PR exp/9608:
2916 * c-exp.y (%union) <tvec>: Change type.
2917 (func_mod): Now uses <tvec> type.
2918 (exp): Update for tvec change.
2919 (direct_abs_decl): Push the typelist.
2920 (func_mod): Return a typelist.
2921 (nonempty_typelist): Update for tvec change.
2922 * gdbtypes.c (lookup_function_type_with_arguments): New function.
2923 * gdbtypes.h (lookup_function_type_with_arguments): Declare.
2924 * parse.c (pop_type_list): New function.
2925 (push_typelist): New function.
2926 (follow_types): Handle tp_function_with_arguments.
2927 * parser-defs.h (type_ptr): New typedef. Define a VEC.
2928 (enum type_pieces) <tp_function_with_arguments>: New constant.
2929 (union type_stack_elt) <typelist_val>: New field.
2930 (push_typelist): Declare.
2931
2932 2012-07-06 Tom Tromey <tromey@redhat.com>
2933
2934 * c-exp.y (%union) <type_stack>: New field.
2935 (abs_decl, direct_abs_decl): Use <type_stack> type. Update.
2936 (ptr_operator_ts): New production.
2937 (ptype): Update.
2938 * parse.c (type_stack_reserve): New function.
2939 (check_type_stack_depth): Use it.
2940 (pop_type_stack, append_type_stack, push_type_stack)
2941 (get_type_stack, type_stack_cleanup): New functions.
2942 (follow_types): Handle tp_type_stack.
2943 (_initialize_parse): Simplify initialization.
2944 * parser-defs.h (enum type_pieces) <tp_type_stack>: New
2945 constant.
2946 (union type_stack_elt) <stack_val>: New field.
2947 (get_type_stack, append_type_stack, push_type_stack)
2948 (type_stack_cleanup): Declare.
2949
2950 2012-07-06 Tom Tromey <tromey@redhat.com>
2951
2952 * parser-defs.h (type_stack, type_stack_size, type_stack_depth):
2953 Remove.
2954 (struct type_stack): New.
2955 * parse.c (type_stack, type_stack_size, type_stack_depth):
2956 Remove.
2957 (type_stack): New global.
2958 (parse_exp_in_context, check_type_stack_depth)
2959 (insert_into_type_stack, insert_type, push_type, push_type_int)
2960 (insert_type_address_space, pop_type, pop_type_int)
2961 (_initialize_parse): Update.
2962
2963 2012-07-06 Tom Tromey <tromey@redhat.com>
2964
2965 * c-exp.y (func_mod, direct_abs_decl, abs_decl, ptr_operator):
2966 Remove %type.
2967
2968 2012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
2969
2970 * c-lang.c (c_printstr): Remove ununsed variable WIDTH.
2971
2972 2012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
2973 Jan Kratochvil <jan.kratochvil@redhat.com>
2974
2975 * cp-valprint.c (cp_print_value): Replace potentially unsafe
2976 alloca with xmalloc/xfree.
2977
2978 2012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
2979
2980 * MAINTAINERS (Write After Approval): Add myself to the list.
2981
2982 2012-07-05 Doug Evans <dje@google.com>
2983
2984 * dwarf2read.c (dw2_expand_symtabs_matching): Fix typo.
2985
2986 2012-07-05 Hui Zhu <hui_zhu@mentor.com>
2987
2988 * ax-gdb.c (cli/cli-utils.h): New include.
2989 (linespec.h): Ditto.
2990 (agent_eval_command_one): New function.
2991 (agent_command_1): Ditto.
2992 (agent_command): Call function agent_command_1.
2993 (agent_eval_command): Ditto.
2994 (_initialize_ax_gdb): Change help for "maint agent"
2995 and "maint agent-eval".
2996
2997 2012-07-05 Hui Zhu <hui_zhu@mentor.com>
2998
2999 * breakpoint.c (check_for_argument): Move to file cli/cli-utils.c.
3000 * cli/cli-utils.c (check_for_argument): New function.
3001 * cli/cli-utils.h (check_for_argument): Ditto.
3002
3003 2012-07-04 H.J. Lu <hongjiu.lu@intel.com>
3004
3005 * NEWS: Mention x32 ABI support.
3006
3007 2012-07-04 H.J. Lu <hongjiu.lu@intel.com>
3008
3009 * amd64-tdep.c (amd64_x32_init_abi): Set sp_regnum_from_eax to
3010 AMD64_RSP_REGNUM and pc_regnum_from_eax to AMD64_RIP_REGNUM.
3011
3012 * i386-tdep.c (i386_gdbarch_init): Initialize sp_regnum_from_eax
3013 and pc_regnum_from_eax to -1. Update SP regnum from
3014 sp_regnum_from_eax and PC regnum from pc_regnum_from_eax if
3015 needed.
3016
3017 * i386-tdep.h (gdbarch_tdep): Add sp_regnum_from_eax and
3018 pc_regnum_from_eax.
3019
3020 2012-07-03 Jan Kratochvil <jan.kratochvil@redhat.com>
3021
3022 Fix 'warning: parameter has incomplete type' with gcc-3.4.6.
3023 * dwarf2expr.h: Include gdbtypes.h.
3024 (enum call_site_parameter_kind, union call_site_parameter_u): Remove
3025 these forward declarations.
3026 (cu_offset, sect_offset): Move these ...
3027 * gdbtypes.h: Remove include dwarf2expr.h.
3028 (cu_offset, sect_offset): ... here.
3029
3030 2012-07-03 H.J. Lu <hongjiu.lu@intel.com>
3031
3032 * amd64-linux-tdep.c (linux_sigtramp_code): Renamed to ...
3033 (amd64_linux_sigtramp_code): This.
3034 (amd64_x32_linux_sigtramp_code): New.
3035 (LINUX_SIGTRAMP_LEN): Updated.
3036 (amd64_linux_sigtramp_start): Check x32 sigtramp.
3037
3038 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3039
3040 * linux-thread-db.c (thread_db_new_objfile): Fix comment typos.
3041
3042 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3043
3044 * config.in: Regenerate.
3045 * configure: Regenerate.
3046 * configure.ac: Remove check for gnu/libc-version.h.
3047 * linux-thread-db.c <HAVE_GNU_LIBC_VERSION_H>: Remove include of
3048 gnu/libc-version.h.
3049 (enable_thread_event_reporting) <HAVE_GNU_LIBC_VERSION_H>: Remove
3050 variables libc_version, libc_major and libc_minor. Replace sscanf by
3051 inferior_has_bug. Extend the comment.
3052
3053 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3054
3055 * linux-thread-db.c (inferior_has_bug): New function.
3056 (thread_db_find_new_threads_silently): Return boolean as checked by
3057 inferior_has_bug, describe it in the comments.
3058 (try_thread_db_load_1): Move call to thread_db_find_new_threads_silently
3059 earlier. Abort the initialization if it returned non-zero.
3060 (thread_db_new_objfile): Exclude debug files.
3061 (thread_db_find_new_threads_2): Preinitialize ERR. Check errors also
3062 if UNTIL_NO_NEW,
3063
3064 2012-07-02 Doug Evans <dje@google.com>
3065
3066 * dwarf2read.c (maybe_queue_comp_unit): Move definition next to others
3067 related to queue management.
3068
3069 * dwarf2read.c (create_debug_types_hash_table): Use "debug dwarf2-read"
3070 instead of "debug dwarf2-die" in debugging printfs.
3071 (create_debug_info_hash_table_reader): Ditto.
3072 (create_debug_info_hash_table): Ditto.
3073 (init_dwo_file): Ditto.
3074 (init_cutu_and_read_dies): Add debugging printf.
3075 (init_cutu_and_read_dies_no_follow): Ditto.
3076 (process_psymtab_comp_unit_reader): Ditto.
3077
3078 2012-07-02 Stan Shebs <stan@codesourcery.com>
3079
3080 Add target-side support for dynamic printf.
3081 * NEWS: Mention the additional style.
3082 * breakpoint.h (struct bp_target_info): New fields tcommands, persist.
3083 (struct bp_location): New field cmd_bytecode.
3084 * breakpoint.c: Include format.h.
3085 (disconnected_dprintf): New global.
3086 (parse_cmd_to_aexpr): New function.
3087 (build_target_command_list): New function.
3088 (insert_bp_location): Call it.
3089 (remove_breakpoints_pid): Skip dprintf breakpoints.
3090 (print_one_breakpoint_location): Ditto.
3091 (dprintf_style_agent): New global.
3092 (dprintf_style_enums): Add dprintf_style_agent.
3093 (update_dprintf_command_list): Add agent case.
3094 (agent_printf_command): New function.
3095 (_initialize_breakpoint): Add new commands.
3096 * common/ax.def (printf): New bytecode.
3097 * ax.h (ax_string): Declare.
3098 * ax-gdb.h (gen_printf): Declare.
3099 * ax-gdb.c: Include cli-utils.h, format.h.
3100 (gen_printf): New function.
3101 (maint_agent_print_command): New function.
3102 (_initialize_ax_gdb): Add maint agent-printf command.
3103 * ax-general.c (ax_string): New function.
3104 (ax_print): Add printf disassembly.
3105 * Makefile.in (SFILES): Add format.c
3106 (COMMON_OBS): Add format.o.
3107 * common/format.h: New file.
3108 * common/format.c: New file.
3109 * printcmd.c: Include format.h.
3110 (ui_printf): Call parse_format_string.
3111 * remote.c (remote_state): New field breakpoint_commands.
3112 (PACKET_BreakpointCommands): New enum.
3113 (remote_breakpoint_commands_feature): New function.
3114 (remote_protocol_features): Add new BreakpointCommands entry.
3115 (remote_can_run_breakpoint_commands): New function.
3116 (remote_add_target_side_commands): New function.
3117 (remote_insert_breakpoint): Call it.
3118 (remote_insert_hw_breakpoint): Ditto.
3119 (_initialize_remote): Add new packet configuration for
3120 target-side breakpoint commands.
3121 * target.h (struct target_ops): New field
3122 to_can_run_breakpoint_commands.
3123 (target_can_run_breakpoint_commands): New macro.
3124 * target.c (update_current_target): Handle
3125 to_can_run_breakpoint_commands.
3126
3127 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3128
3129 Execute -ix and -iex only after system and user gdbinit files.
3130 * main.c (captured_main): Move CMDARG_INIT_FILE and CMDARG_INIT_COMMAND
3131 processing down after gdbinit files.
3132
3133 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3134
3135 Add fnmatch-gnu module.
3136 * gnulib/Makefile.in (aclocal_m4_deps): Add new files and remove one.
3137 * gnulib/configure.ac (AC_INIT): Use now import/memmem.c.
3138 * gnulib/aclocal.m4: Regenerate.
3139 * gnulib/config.in: Regenerate.
3140 * gnulib/configure: Regenerate.
3141 * gnulib/import/dummy.c: Remove.
3142 * gnulib/import/Makefile.am: Regenerate.
3143 * gnulib/import/Makefile.in: Likewise.
3144 * gnulib/import/m4/gnulib-cache.m4: Likewise.
3145 * gnulib/import/m4/gnulib-comp.m4: Likewise.
3146 * gnulib/import/alloca.c: New file.
3147 * gnulib/import/alloca.in.h: Likewise.
3148 * gnulib/import/config.charset: Likewise.
3149 * gnulib/import/fnmatch.c: Likewise.
3150 * gnulib/import/fnmatch.in.h: Likewise.
3151 * gnulib/import/fnmatch_loop.c: Likewise.
3152 * gnulib/import/localcharset.c: Likewise.
3153 * gnulib/import/localcharset.h: Likewise.
3154 * gnulib/import/m4/alloca.m4: Likewise.
3155 * gnulib/import/m4/codeset.m4: Likewise.
3156 * gnulib/import/m4/configmake.m4: Likewise.
3157 * gnulib/import/m4/fcntl-o.m4: Likewise.
3158 * gnulib/import/m4/fnmatch.m4: Likewise.
3159 * gnulib/import/m4/glibc21.m4: Likewise.
3160 * gnulib/import/m4/localcharset.m4: Likewise.
3161 * gnulib/import/m4/locale-fr.m4: Likewise.
3162 * gnulib/import/m4/locale-ja.m4: Likewise.
3163 * gnulib/import/m4/locale-zh.m4: Likewise.
3164 * gnulib/import/m4/mbrtowc.m4: Likewise.
3165 * gnulib/import/m4/mbsinit.m4: Likewise.
3166 * gnulib/import/m4/mbsrtowcs.m4: Likewise.
3167 * gnulib/import/m4/mbstate_t.m4: Likewise.
3168 * gnulib/import/m4/stdbool.m4: Likewise.
3169 * gnulib/import/m4/wchar_h.m4: Likewise.
3170 * gnulib/import/m4/wctype_h.m4: Likewise.
3171 * gnulib/import/m4/wint_t.m4: Likewise.
3172 * gnulib/import/mbrtowc.c: Likewise.
3173 * gnulib/import/mbsinit.c: Likewise.
3174 * gnulib/import/mbsrtowcs-impl.h: Likewise.
3175 * gnulib/import/mbsrtowcs-state.c: Likewise.
3176 * gnulib/import/mbsrtowcs.c: Likewise.
3177 * gnulib/import/ref-add.sin: Likewise.
3178 * gnulib/import/ref-del.sin: Likewise.
3179 * gnulib/import/stdbool.in.h: Likewise.
3180 * gnulib/import/streq.h: Likewise.
3181 * gnulib/import/strnlen1.c: Likewise.
3182 * gnulib/import/strnlen1.h: Likewise.
3183 * gnulib/import/verify.h: Likewise.
3184 * gnulib/import/wchar.in.h: Likewise.
3185 * gnulib/import/wctype.in.h: Likewise.
3186
3187 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3188
3189 Support shell wildcards for 'set auto-load safe-path'.
3190 * auto-load.c: Include fnmatch.h.
3191 (filename_is_in_dir): Rename to ...
3192 (filename_is_in_pattern_1, filename_is_in_pattern): ... here and split
3193 it. Update function comment. Rename dir_len to pattern_len. New
3194 variables filename_len, pattern and filename. Add more DEBUG_AUTO_LOAD
3195 messages. Use gdb_filename_fnmatch.
3196 (filename_is_in_auto_load_safe_path_vec): Rename variable dir to
3197 pattern.
3198 (_initialize_auto_load): Extend the "set auto-load safe-path" help text.
3199 * defs.h (gdb_filename_fnmatch): New declaration.
3200 * utils.c: Include fnmatch.h.
3201 (gdb_filename_fnmatch): New function.
3202
3203 2012-07-02 Sergio Durigan Junior <sergiodj@redhat.com>
3204
3205 * breakpoint.c (BREAK_ARGS_HELP): Include help message for the new
3206 `-probe' and `-probe-stap' options.
3207
3208 2012-07-01 Yao Qi <yao@codesourcery.com>
3209
3210 * breakpoint.c: Removed always_inserted_auto, always_inserted_on,
3211 always_inserted_off, and always_inserted_enums.
3212 Change always_inserted_mode's type to 'enum auto_boolean'.
3213 (show_always_inserted_mode, breakpoint_always_inserted_mode): Update
3214 callers.
3215 (_initialize_breakpoint): Call add_setshow_auto_boolean_cmd instead
3216 of add_setshow_enum_cmd.
3217 * infrun.c: Remove can_use_displaced_stepping_auto,
3218 can_use_displaced_stepping_on, can_use_displaced_stepping_off, and
3219 can_use_displaced_stepping_enum.
3220 Change can_use_displaced_stepping's type to 'enum auto_boolean'.
3221 (show_can_use_displaced_stepping, use_displaced_stepping): Update callers.
3222 (_initialize_infrun): Call add_setshow_auto_boolean_cmd instead of
3223 add_setshow_enum_cmd.
3224
3225 2012-06-30 Doug Evans <dje@google.com>
3226
3227 * dwarf2read.c (signatured_type): Make "per_cu" member first.
3228 (init_cutu_and_read_dies): Handle rereading a DWO CU while it's
3229 currently being read. Propagate DW_AT_comp_dir to DWO DIE.
3230
3231 2012-06-29 Doug Evans <dje@google.com>
3232
3233 * linespec.c: #include "stack.h".
3234 (decode_line_with_current_source): Moved here from symtab.c and
3235 renamed from decode_line_spec. All callers updated.
3236 (decode_line_with_last_displayed): Moved here from breakpoint.c and
3237 renamed from decode_line_spec_1. All callers updated.
3238 * linespec.h (decode_line_with_current_source): Move declaration here
3239 from symtab.h and renamed from decode_line_spec.
3240 (decode_line_with_last_displayed): Move declaration here from symtab.h
3241 and renamed from decode_line_spec_1.
3242 * macrocmd.c: #include "linespec.h".
3243 * symtab.c: Remove #include "linespec.h".
3244
3245 2012-06-28 Doug Evans <dje@google.com>
3246
3247 * dwarf2read.c (get_cu_length): New function.
3248 (offset_in_cu_p, error_check_comp_unit_head): Call it.
3249 (create_debug_types_hash_table): Ditto.
3250 (init_cutu_and_read_dies): Ditto.
3251 (init_cutu_and_read_dies_no_follow): Ditto.
3252
3253 * dwarf2read.c (dwarf2_find_base_address): Move definition.
3254
3255 * dwarf2read.c (ABBREV_HASH_SIZE): Remove enclosing #ifndef/#endif.
3256 (struct abbrev_table): Define.
3257 (dwarf2_cu): Replace members dwarf2_abbrevs, abbrev_obstack with
3258 abbrev_table.
3259 (init_cutu_and_read_dies): Update.
3260 (abbrev_table_alloc_abbrev): New function. Replaces
3261 dwarf_alloc_abbrev. All callers updated.
3262 (abbrev_table_add_abbrev): New function.
3263 (abbrev_table_lookup_abbrev): New function. Replaces
3264 dwarf2_lookup_abbrev. All callers updated.
3265 (abbrev_table_read_table): New function. Contents moved here from
3266 dwarf2_read_abbrevs.
3267 (dwarf2_read_abbrevs): Call it.
3268 (abbrev_table_free): New function.
3269 (dwarf2_free_abbrev_table): Call it.
3270
3271 2012-06-28 Stan Shebs <stan@codesourcery.com>
3272
3273 * osdata.c (info_osdata_command): Filter out "Title" columns
3274 from non-MI uses.
3275 * common/linux-osdata.c (struct osdata_type): Add title field.
3276 (osdata_table): Add titles to each entry.
3277 (linux_command_xfer_osdata): Add a column for title data.
3278
3279 2012-06-28 Stan Shebs <stan@codesourcery.com>
3280
3281 Make logging work for MI.
3282 * NEWS: Mention it.
3283 * interps.h (interp_set_logging_ftype): New typedef.
3284 (struct interp_procs): New field set_logging_proc.
3285 (current_interp_set_logging): Declare.
3286 * interps.c (current_interp_set_logging): New function.
3287 * cli/cli-logging.c: Include interps.h.
3288 (set_logging_redirect): Call current_interp_set_logging.
3289 (pop_output_files): Ditto.
3290 (handle_redirections): Ditto, plus skip ui-out redirect if MI.
3291 * mi/mi-console.h (mi_console_set_raw): Declare.
3292 * mi/mi-console.c (mi_console_set_raw): New function.
3293 * mi/mi-interp.c (saved_raw_stdout): New global.
3294 (mi_set_logging): New function.
3295 (_initialize_mi_interp): Add it to interp procs.
3296
3297 2012-06-28 Doug Evans <dje@google.com>
3298
3299 * symtab.c (lookup_symbol_aux_objfile): Use
3300 ALL_OBJFILE_PRIMARY_SYMTABS.
3301
3302 * gdbtypes.c (lookup_typename): Rename local variable "tmp" to "type".
3303
3304 2012-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3305
3306 * common/buffer.c: Include inttypes.h and stdint.h.
3307 (buffer_xml_printf): Use PRId64, PRIu64, PRIx64 and PRIo64.
3308
3309 2012-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3310 Pedro Alves <palves@redhat.com>
3311
3312 * gdbthread.h (ALL_THREADS): New macro.
3313 (thread_list): Declare.
3314 * infrun.c (handle_inferior_event) <spurious signal>: Don't keep
3315 going, but instead fall through to the stepping handling.
3316 * linux-nat.c (resume_lwp): New parameter 'signo'. Resume with
3317 the passed in signal. Adjust debug output.
3318 (resume_callback): Rename to ...
3319 (linux_nat_resume_callback): ... this. Pass the thread's last
3320 stop signal, if in "pass" state.
3321 (linux_nat_resume): Adjust to rename.
3322 (stop_wait_callback): New assertion. Don't respawn signals;
3323 instead let the LWP remain with SIGNALLED set.
3324 (linux_nat_wait_1): Remove flushing of pending SIGSTOPs.
3325 * remote.c (append_pending_thread_resumptions): New.
3326 (remote_vcont_resume): Call it.
3327 * target.h (target_resume): Extend comment.
3328
3329 2012-06-28 Iain Sandoe <iain@codesourcery.com>
3330
3331 * auxv.c (fprint_target_auxv): Handle extended cache data tags.
3332
3333 2012-06-27 Doug Evans <dje@google.com>
3334
3335 * dwarf2read.c (dwarf2_cu): Add ranges_base.
3336 Delete have_addr_base, unused. All uses updated.
3337 (init_cutu_and_read_dies): Process DW_AT_GNU_ranges_base.
3338 (dwarf2_get_pc_bounds): Add ranges_base.
3339 (dwarf2_record_block_ranges): Ditto.
3340
3341 2012-06-27 Tom Tromey <tromey@redhat.com>
3342
3343 PR macros/7961:
3344 * varobj.c (varobj_create): Update.
3345 (varobj_set_value): Update.
3346 * tracepoint.c (validate_actionline): Update.
3347 (encode_actions_1): Update.
3348 * parse.c (parse_exp_1): Add 'pc' argument.
3349 (parse_exp_in_context): Add 'pc' argument. Change how
3350 expression_context_pc is set.
3351 (parse_expression): Update.
3352 (parse_field_expression): Update.
3353 * expression.h (parse_exp_1): Update.
3354 * eval.c (parse_to_comma_and_eval): Update.
3355 * breakpoint.c (set_breakpoint_condition): Update.
3356 (update_watchpoint): Update.
3357 (init_breakpoint_sal): Update
3358 (find_condition_and_thread): Update.
3359 (watch_command_1): Update.
3360 (update_breakpoint_locations): Update.
3361 * ada-lang.c (ada_read_renaming_var_value): Update.
3362 (create_excep_cond_exprs): Update.
3363
3364 2012-06-27 Doug Evans <dje@google.com>
3365
3366 * dwarf2read.c (per_cu_header_read_in): Simplify, and handle
3367 type units.
3368
3369 2012-06-26 Doug Evans <dje@google.com>
3370
3371 * dwarf2read.c (read_and_check_comp_unit_head): Delete unnecessary
3372 prototype.
3373 (error_check_comp_unit_head): New arg abbrev_section. All callers
3374 updated.
3375 (read_and_check_comp_unit_head): Ditto.
3376 (read_and_check_type_unit_head): Ditto.
3377
3378 2012-06-26 Siva Chandra Reddy <sivachandra@google.com>
3379
3380 New attribute 'last' for gdb.Symtab_and_line.
3381 * NEWS (Python Scripting): Add entry about the new attribute.
3382 * python/py-symtab.c (salpy_get_last): New function which
3383 implements the get method for the 'last' attribute of
3384 gdb.Symtab_and_line.
3385 (sal_object_getset): Add entry for the 'last' attribute.
3386
3387 2012-06-26 Doug Evans <dje@google.com>
3388
3389 * dwarf2read.c (dwo_section_names): Add macinfo_dwo, macro_dwo.
3390 (dwo_sections): Add macinfo, macro.
3391 (dwarf2_locate_dwo_sections): Watch for macro sections.
3392 (dwarf_decode_macros): Remove args lh, abfd, section, section_name.
3393 All callers updated. Handle DWO files.
3394
3395 * NEWS: Mention new options "set debug dwarf2-read" and
3396 "set debug symtab-create".
3397 * dwarf2read.c (dwarf2_read_debug): New static global.
3398 (dwarf2_build_psymtabs_hard): Add debugging printfs.
3399 (process_queue): Ditto.
3400 (process_full_comp_unit): Ditto.
3401 (_initialize_dwarf2_read): Add new option "set debug dwarf2-read".
3402 * elfread.c (elf_symfile_read): Add debugging printf.
3403 * minsyms.c (install_minimal_symbols): Ditto.
3404 * psymtab.c (allocate_psymtab): Ditto.
3405 * symfile.c (allocate_symtab): Ditto.
3406 * symtab.c (symtab_create_debug): New global.
3407 (_initialize_symtab): Add new option "set debug symtab-create".
3408 * symtab.h (symtab_create_debug): Declare.
3409
3410 * dwarf2read.c (lookup_dwo_comp_unit): Enhance comment.
3411 (lookup_dwo_type_unit): Ditto.
3412
3413 2012-06-26 Roland McGrath <roland@hack.frob.com>
3414 H.J. Lu <hongjiu.lu@intel.com>
3415
3416 * amd64-linux-nat.c: Include <sys/user.h>.
3417 (ps_get_thread_area): Use PTRACE_PEEKUSER to get fs_base/gs_base
3418 if HAVE_STRUCT_USER_REGS_STRUCT_FS_BASE or
3419 HAVE_STRUCT_USER_REGS_STRUCT_GS_BASE is defined.
3420
3421 * configure.ac: Check if the fs_base and gs_base members of
3422 `struct user_regs_struct' exist.
3423 * config.in: Regenerated.
3424 * configure: Likewise.
3425
3426 2012-06-25 Michael Eager <eager@eagercon.com>
3427
3428 PR python/14291
3429 * python/python.c (gdbpy_write): Check for interrupted output.
3430
3431 2012-06-25 Greta Yorsh <greta.yorsh@arm.com>
3432
3433 * arm-tdep.c (arm_in_function_epilogue_p): Recognize POP with a single
3434 register as a stack alignment in ARM mode.
3435
3436 2012-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3437
3438 Update gnulib to GIT commit a39f53ccb70a613e647e1019fb4c63645220267e.
3439 * gnulib/config.in: Regenerate.
3440 * gnulib/configure: Likewise.
3441 * gnulib/import/m4/extensions.m4: Update it.
3442 * gnulib/import/m4/gnulib-common.m4: Likewise.
3443 * gnulib/import/m4/memmem.m4: Likewise.
3444 * gnulib/import/m4/mmap-anon.m4: Likewise.
3445 * gnulib/import/m4/multiarch.m4: Likewise.
3446 * gnulib/import/stdint.in.h: Likewise.
3447
3448 2012-06-24 Yao Qi <yao@codesourcery.com>
3449
3450 * corefile.c (write_memory_with_notification): New.
3451 * gdbcore.h: Declare write_memory_with_notification.
3452 * ada-lang.c (ada_value_assign): Replace 'write_memory' and
3453 'observer_notify_memory_changed' with 'write_memory_with_notification'.
3454 * valops.c (value_assign): Likewise.
3455 * python/py-inferior.c (infpy_write_memory): Call
3456 'write_memory_with_notification'.
3457
3458 2012-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3459
3460 * cc-with-index.sh: Use also -ex "set auto-load no".
3461
3462 2012-06-23 Doug Evans <dje@google.com>
3463
3464 PR 14125
3465 * NEWS: Document additions to .gdb_index.
3466 * dwarf2read.c: #include "gdb/gdb-index.h".
3467 (DW2_GDB_INDEX_SYMBOL_STATIC_SET_VALUE): New macro.
3468 (DW2_GDB_INDEX_SYMBOL_KIND_SET_VALUE): New macro.
3469 (DW2_GDB_INDEX_CU_SET_VALUE): New macro.
3470 (dwarf2_read_index): Recognize version 7.
3471 (dw2_do_expand_symtabs_matching): New args want_specific_block,
3472 block_kind, domain): All callers updated.
3473 (dw2_find_symbol_file): Handle new index CU values.
3474 (dw2_expand_symtabs_matching): Match symbol kind if requested.
3475 (add_index_entry): New args is_static, kind. All callers updated.
3476 (offset_type_compare, uniquify_cu_indices): New functions
3477 (symbol_kind): New function.
3478 (write_psymtabs_to_index): Remove duplicate CU values.
3479 (write_psymtabs_to_index): Write .gdb_index version 7.
3480
3481 2012-06-22 Joel Brobecker <brobecker@adacore.com>
3482
3483 * configure.ac (build_warnings): Add -Wdeclaration-after-statement.
3484 * configure: Regenerate.
3485
3486 2012-06-20 Yao Qi <yao@codesourcery.com>
3487
3488 * python/py-inferior.c: Update comments of infpy_read_memory
3489 and infpy_write_memory.
3490
3491 2012-06-19 Tom Tromey <tromey@redhat.com>
3492
3493 PR exp/9514:
3494 * parser-defs.h (insert_type, insert_type_address_space): Declare.
3495 (push_type_address_space): Remove.
3496 * parse.c (insert_into_type_stack): New function.
3497 (insert_type): Likewise.
3498 (insert_type_address_space): Rename from push_type_address_space.
3499 Insert tp_space_identifier.
3500 * c-exp.y (ptr_operator): New production.
3501 (abs_decl): Use ptr_operator.
3502 (space_identifier): Call insert_type_address_space.
3503 (ptype): Don't use const_or_volatile_or_space_identifier.
3504 (const_or_volatile_noopt): Call insert_type.
3505 (conversion_type_id, conversion_declarator): New productions.
3506 (operator): Use conversion_type_id.
3507
3508 2012-06-18 Doug Evans <dje@google.com>
3509
3510 * symtab.h (minimal_symbol): New member created_by_gdb.
3511 * elfread.c (elf_symtab_read): Set created_by_gdb for @plt minsym
3512 created by gdb.
3513 * symtab.c (lookup_symbol_in_objfile_from_linkage_name): New function.
3514 (search_symbols): Call it instead of lookup_symbol.
3515 Skip symbols created by gdb. Only scan minsyms if nfiles == 0.
3516
3517 * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_const_index.
3518 Adjust address for DW_OP_GNU_addr_index.
3519 * dwarf2expr.h (dwarf_expr_context): Update comment.
3520 * dwarf2loc.c (locexpr_describe_location_piece): New arg per_cu,
3521 all callers updated. Handle TLS vars described with
3522 DW_OP_GNU_const_index.
3523 (disassemble_dwarf_expression): Handle DW_OP_GNU_addr_index
3524 and DW_OP_GNU_const_index.
3525 * dwarf2read.c (decode_locdesc): Handle DW_OP_GNU_addr_index.
3526
3527 * block.c (find_block_in_blockvector): Make explicit the fact that we
3528 ignore GLOBAL_BLOCK.
3529
3530 2012-06-18 Tom Tromey <tromey@redhat.com>
3531
3532 * c-exp.y (operator): Remove trailing space after "delete" and
3533 "delete[]".
3534
3535 2012-06-18 Mark Kettenis <kettenis@gnu.org>
3536 Jan Kratochvil <jan.kratochvil@redhat.com>
3537
3538 Switch i386 and derived targets to ON_STACK.
3539 * amd64-dicos-tdep.c (amd64_dicos_push_dummy_code): Remove.
3540 (amd64_dicos_init_abi): Remove its installment.
3541 * dicos-tdep.c (dicos_init_abi): Remove the
3542 set_gdbarch_call_dummy_location call. Update the comment here.
3543 * i386-dicos-tdep.c (i386_dicos_push_dummy_code): Remove.
3544 (i386_dicos_init_abi): Remove its installment.
3545 * i386-tdep.c (i386_push_dummy_code): New function.
3546 (i386_gdbarch_init): Call set_gdbarch_call_dummy_location, install
3547 i386_push_dummy_code.
3548
3549 2012-06-18 Jan Kratochvil <jan.kratochvil@redhat.com>
3550
3551 Remove stale dummy frames.
3552 * breakpoint.c: Include dummy-frame.h.
3553 (longjmp_breakpoint_ops): New variable.
3554 (update_breakpoints_after_exec, breakpoint_init_inferior): Delete also
3555 bp_longjmp_call_dummy.
3556 (bpstat_what, bptype_string, print_one_breakpoint_location)
3557 (init_bp_location): Support bp_longjmp_call_dummy.
3558 (set_longjmp_breakpoint): Use longjmp_breakpoint_ops. Comment why.
3559 (set_longjmp_breakpoint_for_call_dummy)
3560 (check_longjmp_breakpoint_for_call_dummy, longjmp_bkpt_dtor): New
3561 functions.
3562 (initialize_breakpoint_ops): Initialize longjmp_breakpoint_ops.
3563 * breakpoint.h (enum bptype): New item bp_longjmp_call_dummy. Delete
3564 FIXME comment and extend the other comment for bp_call_dummy.
3565 (set_longjmp_breakpoint_for_call_dummy)
3566 (check_longjmp_breakpoint_for_call_dummy): New declarations.
3567 * dummy-frame.c: Include gdbthread.h.
3568 (pop_dummy_frame_bpt): New function.
3569 (pop_dummy_frame): Call pop_dummy_frame_bpt.
3570 (dummy_frame_discard): New function.
3571 (cleanup_dummy_frames): Update the comment about longjmps.
3572 * dummy-frame.h (dummy_frame_discard): New declaration.
3573 * gdbthread.h (struct thread_info): Extend initiating_frame comment.
3574 * infcall.c (call_function_by_hand): New variable longjmp_b. Call
3575 set_longjmp_breakpoint_for_call_dummy. Chain its breakpoints with BPT.
3576 * infrun.c (handle_inferior_event) <BPSTAT_WHAT_CLEAR_LONGJMP_RESUME>:
3577 Add case 4 comment. Call check_longjmp_breakpoint_for_call_dummy and
3578 keep_going if IS_LONGJMP and there is no other reason to stop.
3579
3580 2012-06-18 Greta Yorsh <Greta.Yorsh@arm.com>
3581
3582 * remote-sim.c (sim_command_completer): Initialize
3583 variable 'result'.
3584
3585 2012-06-17 Jan Kratochvil <jan.kratochvil@redhat.com>
3586
3587 * dwarf2expr.c (execute_stack_op): Support DW_OP_GNU_parameter_ref.
3588 * dwarf2loc.c (call_site_parameter_matches): Support
3589 CALL_SITE_PARAMETER_PARAM_OFFSET.
3590 (needs_dwarf_reg_entry_value): Push stub value.
3591 * dwarf2read.c (read_call_site_scope): New variable origin. Support
3592 CALL_SITE_PARAMETER_PARAM_OFFSET and its DW_AT_abstract_origin.
3593 * gdbtypes.h (enum call_site_parameter_kind): New item
3594 CALL_SITE_PARAMETER_PARAM_OFFSET.
3595 (struct call_site.parameter.u): New field param_offset.
3596
3597 2012-06-17 Jan Kratochvil <jan.kratochvil@redhat.com>
3598
3599 Code cleanup: Generalize call_site.parameter key.
3600 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_entry_value>: Remove
3601 variable dwarf_reg. New variable kind_u. Update parameters to
3602 push_dwarf_reg_entry_value.
3603 (ctx_no_push_dwarf_reg_entry_value): Update parameters.
3604 * dwarf2expr.h (enum call_site_parameter_kind)
3605 (union call_site_parameter_u): Forward declarations.
3606 (struct dwarf_expr_context_funcs): Update parameters and their
3607 description for push_dwarf_reg_entry_value.
3608 (ctx_no_push_dwarf_reg_entry_value): Update parameters.
3609 * dwarf2loc.c (call_site_parameter_matches): New function.
3610 (dwarf_expr_reg_to_entry_parameter): Update parameters and their
3611 description. Use call_site_parameter_matches.
3612 (dwarf_expr_push_dwarf_reg_entry_value, value_of_dwarf_reg_entry):
3613 Update parameters and their description.
3614 (value_of_dwarf_block_entry): Remove variables dwarf_reg and fb_offset.
3615 New variable kind_u. Adjust the caller for updated parameters.
3616 (needs_dwarf_reg_entry_value): Update parameters.
3617 * dwarf2read.c (read_call_site_scope): New variable loc. Use it
3618 instead of attr. Update for the changed fields of struct
3619 call_site_parameter.
3620 * gdbtypes.h: Include dwarf2expr.h.
3621 (enum call_site_parameter_kind): New.
3622 (struct call_site.parameter): New field kind. Wrap dwarf_reg and
3623 fb_offset into new union u.
3624
3625 2012-06-16 H.J. Lu <hongjiu.lu@intel.com>
3626
3627 * amd64-tdep.c (amd64_x32_analyze_stack_align): New function.
3628 (amd64_analyze_prologue): Call amd64_x32_analyze_stack_align
3629 for x32.
3630
3631 2012-06-16 H.J. Lu <hongjiu.lu@intel.com>
3632
3633 * amd64-linux-nat.c (compat_x32_clock_t): New.
3634 (compat_x32_siginfo_t): Likewise.
3635 (compat_x32_siginfo_from_siginfo): Likewise.
3636 (siginfo_from_compat_x32_siginfo): Likewise.
3637 (amd64_linux_siginfo_fixup): Call compat_x32_siginfo_from_siginfo
3638 and siginfo_from_compat_x32_siginfo for x32.
3639
3640 2012-06-15 Hui Zhu <hui_zhu@mentor.com>
3641
3642 * tracepoint.c (tfile_xfer_partial): Add a lseek.
3643
3644 2012-06-15 H.J. Lu <hongjiu.lu@intel.com>
3645
3646 * amd64-linux-nat.c (ps_get_thread_area): Check bits_per_word
3647 instead of gdbarch_ptr_bit.
3648 * amd64-nat.c (amd64_native_gregset_reg_offset): Likewise.
3649 (amd64_supply_native_gregset): Likewise.
3650 (amd64_collect_native_gregset): Likewise.
3651 * amd64-tdep.c (amd64_supply_fxsave): Likewise.
3652 (amd64_supply_xsave): Likewise.
3653 (amd64_collect_fxsave): Likewise.
3654 (amd64_collect_xsave): Likewise.
3655
3656 2012-06-15 H.J. Lu <hongjiu.lu@intel.com>
3657
3658 * amd64-linux-nat.c (AMD64_LINUX_X32_DS): New.
3659 (amd64_linux_read_description): Check DS segment register for
3660 x32 process.
3661
3662 2012-06-15 Tom Tromey <tromey@redhat.com>
3663
3664 * dwarf2read.c (dw2_find_symbol_file): Unconditionally use
3665 init_cutu_and_read_dies.
3666
3667 2012-06-15 Iain Sandoe <iain@codesourcery.com>
3668
3669 * MAINTAINERS (Write After Approval): Add myself to the list.
3670
3671 2012-06-15 Tom Tromey <tromey@redhat.com>
3672
3673 * valops.c (value_find_oload_method_list): Now static.
3674 * value.h (value_find_oload_method_list): Don't declare.
3675
3676 2012-06-15 Tom Tromey <tromey@redhat.com>
3677
3678 * valops.c (find_overload_match): Use value_ind.
3679
3680 2012-06-15 Maciej W. Rozycki <macro@codesourcery.com>
3681
3682 * infrun.c (handle_inferior_event): Correct indentation.
3683
3684 2012-06-14 Doug Evans <dje@google.com>
3685
3686 * dwarf2loc.c (debug_loc_kind): Add DEBUG_LOC_START_LENGTH.
3687 (DEBUG_LOC_START_END): Renamed from DEBUG_LOC_NORMAL.
3688 All uses updated.
3689 (decode_debug_loc_dwo_addresses): New arg "byte_order". All callers
3690 updated. Handle DEBUG_LOC_START_LENGTH.
3691 (dwarf2_find_location_expression): Handle DEBUG_LOC_START_LENGTH.
3692 (loclist_describe_location): Ditto.
3693
3694 2012-06-14 Maciej W. Rozycki <macro@codesourcery.com>
3695
3696 PR backtrace/13866
3697 * infrun.c (handle_inferior_event): Re-fetch frame and gdbarch
3698 after hiding inline functions.
3699
3700 2012-06-13 Joel Brobecker <brobecker@adacore.com>
3701
3702 * inf-ttrace.c (_initialize_hppa_hpux_nat): Rename into
3703 _initialize_inf_ttrace.
3704
3705 2012-06-13 Joel Brobecker <brobecker@adacore.com>
3706
3707 * ia64-hpux-nat.c (_initialize_ia64_hpux_nat): Renames
3708 _initialize_hppa_hpux_nat.
3709
3710 2012-06-13 Joel Brobecker <brobecker@adacore.com>
3711
3712 * remote-sim.c (sim_command_completer): Change type of return
3713 value to "VEC (char_ptr) *". Adjust implementation accordingly.
3714
3715 2012-06-13 Mark Kettenis <kettenis@gnu.org>
3716 Jan Kratochvil <jan.kratochvil@redhat.com>
3717
3718 PR tdep/14222
3719 * i386-tdep.c (i386_push_dummy_call): Unconditionally align the
3720 stack on a 16-byte boundary.
3721
3722 2012-06-13 Kaushik Srenevasan <kaushik@twitter.com>
3723
3724 * jit.c (finalize_symtab): Set function's return type to 'void' by
3725 default.
3726
3727 2012-06-13 Mark Kettenis <kettenis@gnu.org>
3728 H.J. Lu <hongjiu.lu@intel.com>
3729
3730 * amd64-linux-tdep.c (amd64_linux_init_abi_common): New function.
3731 Move bits common to both the classic LP64 and the new x32 ILP32
3732 ABI here.
3733 (amd64_linux_init_abi): Call amd64_linux_init_abi_common.
3734 (amd64_x32_linux_init_abi): New function.
3735 (_initialize_amd64_linux_tdep): Register osabi for bfd_mach_x64_32
3736 subtype.
3737
3738 * i386-tdep.h (i386_pseudo_register_name): New prototype.
3739 * i386-tdep.c (i386_pseudo_register_name): Make public.
3740 * amd64-tdep.h (amd64_x32_init_abi): New prototype.
3741 * amd64-tdep.c (amd64_dword_names): Add "eip".
3742 (amd64_x32_pseudo_register_type): New function
3743 (amd64_x32_init_abi): New function.
3744
3745 2012-06-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3746
3747 PR build/14003
3748 * inferior.h (struct inferior_suspend_state): Comment out.
3749 (struct inferior): Comment out the field suspend.
3750 * infrun.c (struct infcall_suspend_state): Comment out the field
3751 inferior_suspend.
3752 (save_infcall_suspend_state, restore_infcall_suspend_state): Comment
3753 out its assignment.
3754
3755 2012-06-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3756
3757 PR c++/14177 - Fix parsing TYPENAME:: in parentheses.
3758 * c-exp.y (classify_inner_name): Remove caller assumptions in the
3759 function comment. Return ERROR for unresolved cases. Implement
3760 returning proper NAME.
3761 (yylex): Accept also NAME from classify_inner_name.
3762 * cp-namespace.c (cp_lookup_nested_type): Rename to ...
3763 (cp_lookup_nested_symbol): ... here. Return any found symbol, not just
3764 LOC_TYPEDEF type.
3765 * cp-support.h (cp_lookup_nested_type): Update its declaration.
3766
3767 2012-06-13 Tom Tromey <tromey@redhat.com>
3768
3769 * breakpoint.c (condition_completer): New function.
3770 (_initialize_breakpoint): Use it.
3771 * value.c (complete_internalvar): New function.
3772 * value.h (complete_internalvar): Declare.
3773
3774 2012-06-13 Tom Tromey <tromey@redhat.com>
3775
3776 * ada-lang.c (ada_make_symbol_completion_list): Return a VEC.
3777 * breakpoint.c (catch_syscall_completer): Return a VEC.
3778 * cli/cli-cmds.c (complete_command): Update.
3779 * cli/cli-decode.c (complete_on_cmdlist): Return a VEC.
3780 (complete_on_enum): Likewise.
3781 * command.h: Include gdb_vecs.h.
3782 (completer_ftype): Change return type.
3783 (complete_on_cmdlist, complete_on_enum): Likewise.
3784 * completer.c (noop_completer, filename_completer)
3785 (location_completer): Return a VEC.
3786 (add_struct_fields): Remove 'nextp' argument. Change 'output'
3787 to a VEC.
3788 (expression_completer, complete_line_internal, complete_line)
3789 (command_completer): Return a VEC.
3790 (gdb_completion_word_break_characters, line_completion_function):
3791 Update.
3792 * completer.h: Include gdb_vecs.h.
3793 (complete_line, noop_completer, filename_completer)
3794 (expression_completer, location_completer, command_completer):
3795 Update.
3796 * f-lang.c (f_word_break_characters): Return a VEC.
3797 * interps.c (interpreter_completer): Return a VEC.
3798 * language.h (struct language_defn)
3799 <la_make_symbol_completion_list>: Return a VEC.
3800 * python/py-cmd.c (cmdpy_completer): Return a VEC.
3801 * symtab.c (free_completion_list): Take a VEC.
3802 (return_val_size, return_val_index): Remove.
3803 (return_val): Now a VEC.
3804 (completion_list_add_name): Update.
3805 (default_make_symbol_completion_list_break_on)
3806 (default_make_symbol_completion_list, make_symbol_completion_list)
3807 (make_symbol_completion_list_fn, make_file_symbol_completion_list):
3808 Return a VEC.
3809 (add_filename_to_list): Update.
3810 (struct add_partial_filename_data) <list_used, list_alloced>: Remove.
3811 <list>: Now a VEC.
3812 (maybe_add_partial_symtab_filename): Update.
3813 (make_source_files_completion_list): Return a VEC.
3814 * symtab.h (default_make_symbol_completion_list_break_on)
3815 (default_make_symbol_completion_list, make_symbol_completion_list)
3816 (make_symbol_completion_list_fn, make_file_symbol_completion_list)
3817 (make_source_files_completion_list): Update.
3818
3819 2012-06-13 Tom Tromey <tromey@redhat.com>
3820
3821 * breakpoint.c (add_catch_command): Use completer_ftype.
3822 * breakpoint.h: Include command.h.
3823 (add_catch_command): Use completer_ftype.
3824 * cli/cli-decode.c (set_cmd_completer): Use completer_ftype.
3825 * cli/cli-decode.h (struct cmd_list_element) <completer>:
3826 Use completer_ftype.
3827 * command.h (completer_ftype): New typedef.
3828 (set_cmd_completer): Use it.
3829 * python/py-cmd.c (struct cmdpy_completer) <completer>: Use
3830 completer_ftype.
3831
3832 2012-06-13 Pedro Alves <palves@redhat.com>
3833
3834 Partial revert of previous change.
3835
3836 * serial.c (scb_base): New global.
3837 (serial_for_fd): New.
3838 (serial_open, serial_fdopen_ops): Link new serial in open serials
3839 chain.
3840 (do_serial_close): Unlink serial from the open serials chain.
3841
3842 2012-06-12 Pedro Alves <palves@redhat.com>
3843
3844 * infrun.c (infrun_thread_stop_requested_callback): Don't switch
3845 threads here.
3846 (prepare_for_detach): No longer context switch here in non-stop
3847 mode.
3848 (fetch_inferior_event): Ditto.
3849 (handle_inferior_event) <STOP_QUIETLY || NO_STOP_QUIETLY>: Switch
3850 to the event thread before removing breakpoints. Switch to the
3851 event thread before inserting breakpoints and resuming.
3852 (handle_inferior_event) <TARGET_WAITKIND_SPURIOUS>: Switch to the
3853 event thread before resuming.
3854 (handle_inferior_event) <stepping_past_singlestep_breakpoint>:
3855 Switch to the event thread before removing breakpoints.
3856
3857 2012-06-12 Eli Zaretskii <eliz@gnu.org>
3858
3859 * infcmd.c (construct_inferior_arguments) [__MINGW32__]: Quote
3860 special characters correctly for the Windows shells. See
3861 http://sourceware.org/ml/gdb/2012-06/msg00047.html for the bug
3862 report.
3863 [!__MINGW32__]: Remove extra double quote character from special
3864 characters.
3865
3866 2012-06-11 Stan Shebs <stan@codesourcery.com>
3867
3868 * ui-out.h: Remove #if 0 declarations.
3869 * ui-out.c: Remove #if 0 functions.
3870
3871 2012-06-11 Pedro Alves <palves@redhat.com>
3872
3873 * ser-base.c (run_async_handler_and_reschedule): New.
3874 (fd_event, push_event): Use it.
3875 * serial.c (serial_open, serial_fdopen_ops): Set the initial
3876 reference count to 1.
3877 (do_serial_close): Set the bufp field to NULL. Use serial_unref
3878 instead of xfree.
3879 (serial_is_open, serial_ref, serial_unref): New.
3880 * serial.h (serial_open): Adjust comment.
3881 (serial_is_open): Declare.
3882 (serial_close): Adjust comment.
3883 (serial_ref, serial_unref) Declare.
3884 (struct serial): New field 'refcnt'.
3885
3886 2012-06-11 Pedro Alves <palves@redhat.com>
3887
3888 Remove #if 0'd "connect" command, and unnecessary associated
3889 refcounting and serial reuse bits.
3890
3891 * serial.h (struct serial): Remove fields 'next' and 'refcnt'.
3892 * serial.c (last_serial_opened): Delete.
3893 (scb_base): Delete.
3894 (serial_open): Adjust.
3895 (serial_for_fd): Delete.
3896 (serial_fdopen_ops, do_serial_close): Adjust.
3897 (serial_fdopen_ops): Adjust.
3898
3899 2012-06-11 Pedro Alves <palves@redhat.com>
3900
3901 * serial.c (do_serial_close): Remove early return when SCB is
3902 null.
3903
3904 2012-06-11 Tom Tromey <tromey@redhat.com>
3905
3906 * dwarf2read.c (dw2_get_file_names_reader): Ignore partial units.
3907
3908 2012-06-11 Jan Kratochvil <jan.kratochvil@redhat.com>
3909
3910 Fix regression by the "ambiguous linespec" series.
3911 * breakpoint.c (parse_breakpoint_sals): New variable cursal. Use
3912 get_last_displayed_symtab and get_last_displayed_line and depending
3913 on CURSAL.
3914
3915 2012-06-11 Tom Tromey <tromey@redhat.com>
3916
3917 * dwarf2read.c (dw2_get_primary_filename_reader): New function.
3918 (dw2_find_symbol_file): Use it.
3919
3920 2012-06-11 Michael Eager <eager@eagercon.com>
3921
3922 * mips-linux-tdep.c (mips_gdb_signal_from_target): New
3923 * mips-linux-tdep.h (mips_signals): New
3924
3925 2012-06-11 Tom Tromey <tromey@redhat.com>
3926
3927 * infrun.c (handle_inferior_event)
3928 <BPSTAT_WHAT_SET_LONGJMP_RESUME>: Don't delete the step-resume
3929 breakpoint.
3930 <BPSTAT_WHAT_CLEAR_LONGJMP_RESUME>: Remove longjmp logic; use
3931 exception logic in all cases. Update comments.
3932 (insert_longjmp_resume_breakpoint): Set the exception resume
3933 breakpoint.
3934
3935 2012-06-11 Maciej W. Rozycki <macro@codesourcery.com>
3936
3937 * mips-tdep.c (mips_push_dummy_code): Handle microMIPS code.
3938
3939 2012-06-09 Siva Chandra Reddy <sivachandra@google.com>
3940
3941 * valarith.c (binop_types_user_defined_p): Fix a typo.
3942
3943 2012-06-08 Yao Qi <yao@codesourcery.com>
3944 Chung-Lin Tang <cltang@codesourcery.com>
3945
3946 * arch-utils.c (default_return_in_first_hidden_param_p): New.
3947 * arch-utils.h: Declare.
3948 * gdbarch.sh: Add return_in_first_hidden_param_p.
3949 * gdbarch.c, gdbarch.h: Regenerated.
3950 * infcall.c (call_function_by_hand): Call
3951 gdbarch_return_in_first_hidden_param_p instead of
3952 language_pass_by_reference.
3953
3954 * m68k-tdep.c (m68k_return_in_first_hidden_param_p): New.
3955 (m68k_gdbarch_init): Install m68k_return_in_first_hidden_param_p.
3956 * sh-tdep.c (sh_return_in_first_hidden_param_p): New.
3957 (sh_gdbarch_init): Install sh_return_in_first_hidden_param_p.
3958 * tic6x-tdep.c (tic6x_push_dummy_call): Remove local variable
3959 `cplus_return_struct_by_reference'.
3960 (tic6x_return_value): Handle language cplusplus.
3961 (tic6x_return_in_first_hidden_param_p): New.
3962 (tic6x_gdbarch_init): Install tic6x_return_in_first_hidden_param_p.
3963
3964 2012-06-07 Doug Evans <dje@google.com>
3965
3966 * dwarf2read.c (dwarf2_cu): Add comment.
3967
3968 2012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
3969
3970 * mips-tdep.c (mips_pseudo_register_type): Remove tdep local
3971 variable.
3972 (mips_eabi_push_dummy_call): Likewise.
3973 (mips_n32n64_push_dummy_call): Likewise.
3974 (mips_o32_push_dummy_call): Likewise.
3975 (mips_o64_push_dummy_call): Likewise.
3976
3977 2012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
3978
3979 * mips-tdep.c (mips_convert_register_p): Correct coding style.
3980
3981 2012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
3982
3983 * mips-tdep.c (mips_pseudo_register_type): Use
3984 mips_float_register_p.
3985
3986 2012-06-06 Pedro Alves <palves@redhat.com>
3987
3988 * infrun.c (handle_inferior_event): Remove calls to
3989 reinit_frame_cache that follow a context_switch call.
3990
3991 2012-06-06 Pedro Alves <palves@redhat.com>
3992
3993 * infrun.c (handle_inferior_event) <deferred_step_ptid>: Use
3994 context_switch and remove stale comment.
3995
3996 2012-06-06 Pedro Alves <palves@redhat.com>
3997
3998 * infrun.c (struct execution_control_state): Remove
3999 `new_thread_event' field.
4000 (handle_inferior_event): Simplify new threads handling; don't
4001 resume the inferior if we find a new thread.
4002
4003 2012-06-06 Thomas Schwinge <thomas@codesourcery.com>
4004
4005 * NEWS: Document the deprecation of SH's 'regs' command.
4006 * inferior.h (all_registers_info): Add function declaration.
4007 * sh-tdep.c (sh_show_regs): Remove variable.
4008 (sh_generic_show_regs, sh3_show_regs, sh2e_show_regs, sh2a_show_regs)
4009 (sh2a_nofpu_show_regs, sh3e_show_regs, sh3_dsp_show_regs)
4010 (sh4_show_regs, sh4_nofpu_show_regs, sh_dsp_show_regs)
4011 (sh_show_regs_command): Remove functions.
4012 (sh_gdbarch_init): Don't set sh_show_regs.
4013 (_initialize_sh_tdep): Make the 'regs' command an deprecated alias to
4014 'info all-registers'.
4015 * sh64-tdep.c (sh64_show_media_regs, sh64_show_compact_regs)
4016 (sh64_show_regs): Remove functions.
4017 * sh64-tdep.h (sh64_show_regs): Remove function declaration.
4018
4019 2012-06-06 Jan Kratochvil <jan.kratochvil@redhat.com>
4020
4021 * configure.ac: Move development=true below AC_INIT.
4022 * configure: Regenerate.
4023
4024 2012-06-05 Stan Shebs <stan@codesourcery.com>
4025
4026 * mi/mi-interp.c (mi_interpreter_init): Set raw_stdout from
4027 gdb_stdout.
4028
4029 2012-06-05 Siddhesh Poyarekar <siddhesh@redhat.com>
4030
4031 * corefile.c (read_memory, read_stack, write_memory): Accept LEN
4032 argument as ssize_t.
4033 * gdbcore.h (read_memory, read_stack, write_memory): Likewise.
4034 * remote.c (remote_write_bytes_aux, remote_write_bytes): Likewise.
4035 * target.c (target_read_stack, target_write_memory)
4036 (target_write_raw_memory): Likewise.
4037 * target.h (target_read_stack, target_write_memory)
4038 (target_write_raw_memory): Likewise.
4039
4040 2012-06-05 Jan Kratochvil <jan.kratochvil@redhat.com>
4041
4042 * symfile-mem.c: Change gdb_static_assert to ssize_t.
4043 (target_read_memory_bfd): Cast gdb_assert LEN to ssize_t.
4044 * target.c (target_read_memory): Change LEN to ssize_t.
4045 * target.h (target_read_memory): Change LEN to ssize_t.
4046
4047 2012-06-05 Pedro Alves <palves@redhat.com>
4048
4049 PR backtrace/13866
4050
4051 * breakpoint.c (until_break_command): Only fetch the selected
4052 frame after decode_line_1.
4053
4054 2012-06-05 Joakim Tjernlund <Joakim.Tjernlund@transmode.se>
4055
4056 * solib-svr4.c (enable_break): Don't fallback to setting the solib
4057 event breakpoint at _start, __start or main if a program
4058 interpreter is not found.
4059
4060 2012-06-05 Joel Brobecker <brobecker@adacore.com>
4061
4062 * windows-tdep.h (windows_iterate_over_objfiles_in_search_order):
4063 Add declaration.
4064 * windows-tdep.c: #include "objfiles.h".
4065 (windows_iterate_over_objfiles_in_search_order): New function.
4066 * amd64-windows-tdep.c (amd64_windows_init_abi): Set
4067 iterate_over_objfiles_in_search_order gdbarch method to
4068 windows_iterate_over_objfiles_in_search_order.
4069 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Likewise.
4070
4071 2012-06-05 Joel Brobecker <brobecker@adacore.com>
4072
4073 * gdbarch.sh: Add generation of
4074 "iterate_over_objfiles_in_search_order_cb_ftype" typedef in
4075 gdbarch.h. Add include of "objfiles.h" in gdbarch.c.
4076 (iterate_over_objfiles_in_search_order): New gdbarch method.
4077 * gdbarch.h, gdbarch.c: Regenerate.
4078 * objfiles.h (default_iterate_over_objfiles_in_search_order):
4079 Add declaration.
4080 * objfiles.c (default_iterate_over_objfiles_in_search_order):
4081 New function.
4082 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
4083 out of lookup_symbol_aux_symtabs.
4084 (lookup_symbol_aux_symtabs): Replace extracted-out code by
4085 call to lookup_symbol_aux_objfile.
4086 (struct global_sym_lookup_data): New type.
4087 (lookup_symbol_global_iterator_cb): New function.
4088 (lookup_symbol_global): Search for symbol using
4089 gdbarch_iterate_over_objfiles_in_search_order and
4090 lookup_symbol_global_iterator_cb.
4091 * findvar.c (struct minsym_lookup_data): New type.
4092 (minsym_lookup_iterator_cb): New function.
4093 (default_read_var_value) [case LOC_UNRESOLVED]: Resolve the
4094 symbol's address via gdbarch_iterate_over_objfiles_in_search_order
4095 and minsym_lookup_iterator_cb.
4096
4097 2012-06-05 Joel Brobecker <brobecker@adacore.com>
4098
4099 Revert the following patch:
4100 * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
4101 try locating the symbol in the symbol's own objfile first, before
4102 extending the search to all objfiles.
4103 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
4104 out of lookup_symbol_aux_symtabs.
4105 (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
4106 Replace extracted-out code by call to lookup_symbol_aux_objfile.
4107 Do not search EXCLUDE_OBJFILE.
4108 (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
4109 (lookup_symbol_global): Search for matches in the block's objfile
4110 first, before searching all other objfiles.
4111
4112 2012-06-05 Joel Brobecker <brobecker@adacore.com>
4113
4114 * breakpoint.c (find_condition_and_thread): Stop parsing
4115 as soon as the first invalid keyword is found.
4116
4117 2012-06-05 Joel Brobecker <brobecker@adacore.com>
4118
4119 * copyright.py (EXCLUDE_LIST): Add 'gdb/CONTRIBUTE' to list.
4120
4121 2012-06-05 Joel Brobecker <brobecker@adacore.com>
4122
4123 * config/djgpp/djcheck.sh: Add copyright header.
4124
4125 2012-06-05 Joel Brobecker <brobecker@adacore.com>
4126
4127 * copyright.py (update_files, main): Fix path to update-copyright
4128 script.
4129
4130 2012-06-05 Joel Brobecker <brobecker@adacore.com>
4131
4132 * copyright.py (MULTIPLE_COPYRIGHT_HEADERS): New constant.
4133 (main): Add MULTIPLE_COPYRIGHT_HEADERS to the list of files
4134 for which a reminder to update by hand is printed.
4135
4136 2012-06-04 Doug Evans <dje@google.com>
4137
4138 * buildsym.c (make_blockvector): Add comment.
4139
4140 2012-06-04 Pedro Alves <palves@redhat.com>
4141
4142 * arch-utils.c (default_gdb_signal_from_target): Delete.
4143 * arch-utils.h (default_gdb_signal_from_target): Delete.
4144 * corelow.c (core_open) <signal mapping>: Extended comment. Check
4145 gdbarch_gdb_signal_from_target_p.
4146 * gdbarch.sh (gdb_signal_from_target): Make it an M method (with
4147 predicate).
4148 * gdbarch.h: Regenerate.
4149 * gdbarch.c: Regenerate.
4150
4151 2012-06-04 Pedro Alves <palves@redhat.com>
4152
4153 * gdbarch.sh (gdb_signal_from_target): Mention that the
4154 implementation of the method must be host independent.
4155 * gdbarch.h: Regenerate.
4156
4157 2012-06-04 Jan Kratochvil <jan.kratochvil@redhat.com>
4158
4159 * symfile-mem.c: 3 new gdb_static_assert for target_read_memory_bfd
4160 parameters.
4161 (target_read_memory_bfd): New function.
4162 (symbol_file_add_from_memory): Use it.
4163
4164 2012-06-03 Doug Evans <dje@google.com>
4165
4166 * symtab.c (lookup_global_symbol_from_objfile): Only scan blockvector
4167 of primary symtab.
4168 (basic_lookup_transparent_type): Ditto.
4169
4170 * objfiles.h (ALL_OBJFILE_PRIMARY_SYMTABS): New macro.
4171 (ALL_PRIMARY_SYMTABS): Use it.
4172 (ALL_PSPACE_PRIMARY_SYMTABS): Ditto.
4173 * dwarf2read.c (dw2_find_symbol_file): Ditto.
4174 * linespec.c (iterate_over_all_matching_symtabs): Ditto.
4175 * symtab.c (lookup_symbol_aux_objfile): Ditto.
4176 (basic_lookup_transparent_type): Ditto.
4177
4178 2012-06-02 Sergio Durigan Junior <sergiodj@redhat.com>
4179
4180 * symtab.c (symbol_demangled_name): New variable `dem_name'. Use
4181 it to optimize resolution of demangled name.
4182
4183 2012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4184
4185 * configure.ac (development): Define new variable.
4186 Call AC_CHECK_LIB for mcheck if $development.
4187 (ERROR_ON_WARNING): Enable it by default only if $development.
4188 * config.in: Regenerate.
4189 * configure: Regenerate.
4190
4191 2012-06-01 Siddhesh Poyarekar <siddhesh@redhat.com>
4192
4193 * target.c (target_read_memory): Make LEN argument as size_t.
4194 * target.h (target_read_memory): Likewise.
4195
4196 2012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4197
4198 * tilegx-linux-tdep.c (tilegx_l): Use ULL for 64-bit values.
4199
4200 2012-05-31 Edjunior Machado <emachado@linux.vnet.ibm.com>
4201
4202 * ppc-linux-nat.c (have_ptrace_booke_interface): Disable ptrace
4203 BookE interface for PowerPC server processors if not available
4204 in the Linux Kernel.
4205
4206 2012-05-31 Keith Seitz <keiths@redhat.com>
4207
4208 * linespec.c (decode_objc): Add cleanup to free
4209 INFO.FILE_SYMTABS.
4210 (find_linespec_symbols): Add cleanup to free CLASSES.
4211 * symfile.c (find_separate_debug_file_by_debuglink): Add
4212 cleanup to free DEBUGLINK.
4213 * ui-out.c (clear_header_list): No need to check if
4214 HEADER_NEXT.COLHDR is NULL.
4215 Free HEADER_NEXT.COL_NAME.
4216
4217 2012-05-31 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
4218
4219 * ada-lang.c (standard_lookup): Prevent uninitialized variable
4220 warning.
4221
4222 2012-05-30 Jeff Kenton <jkenton@tilera.com>
4223
4224 * configure.host (gdb_host_cpu): Handle tilegx*.
4225 (gdb_host): Handle tilegx-*-linux*.
4226 * tilegx-linux-nat.c: New file.
4227 * config/tilegx/linux.mh: New file.
4228
4229 2012-05-30 Jeff Kenton <jkenton@tilera.com>
4230
4231 * Makefile.in (ALL_TARGET_OBJS): Add tilegx-tdep.o and
4232 tilegx-linux-tdep.o.
4233 (ALLDEPFILES): Add tilegx-linux-nat.c, tilegx-tdep.c and
4234 tilegx-linux-tdep.c.
4235 * configure.tgt: Handle tilegx-*-linux*.
4236 * tilegx-tdep.h: New file.
4237 * tilegx-tdep.c: New file.
4238 * tilegx-linux-tdep.c: New file.
4239 * regformats/reg-tilegx.dat: New file.
4240
4241 2012-05-30 Edjunior Machado <emachado@linux.vnet.ibm.com>
4242
4243 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): fix
4244 accounting of hw watchpoints on ppc.
4245
4246 2012-05-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
4247
4248 * source.c (openp): Expand tilde in path entries.
4249
4250 2012-05-29 Doug Evans <dje@google.com>
4251
4252 * buildsym.c (block_compar): Fix comment.
4253 (end_symtab): Fix and clarify some comments.
4254
4255 * stabsread.h (cleanup_undefined_stabs_types): Renamed from
4256 cleanup_undefined_types.
4257 * stabsread.c (cleanup_undefined_stabs_types): Ditto.
4258 All callers updated.
4259
4260 2012-05-29 Tom Tromey <tromey@redhat.com>
4261
4262 * symfile.c (symfile_bfd_open): Don't close desc if bfd_fopen
4263 fails.
4264 * solib.c (solib_bfd_fopen): Don't close fd if bfd_fopen fails.
4265 * exec.c (exec_file_attach): Don't close scratch_chan if bfd_fopen
4266 fails.
4267 * dwarf2read.c (try_open_dwo_file): Don't close fd if bfd_fopen
4268 fails.
4269
4270 2012-05-29 Tristan Gingold <gingold@adacore.com>
4271
4272 * solib-darwin.c (dyld_all_image_addr, dyld_all_image): Move into...
4273 (struct darwin_info): ... New struct.
4274 (solib_darwin_pspace_data): New variable.
4275 (darwin_pspace_data_cleanup): New function.
4276 (get_darwin_info): Likewise.
4277 (darwin_dyld_version_ok, darwin_load_image_infos)
4278 (darwin_solib_get_all_image_info_addr_at_init)
4279 (darwin_solib_read_all_image_info_addr): Add info argument.
4280 Adjust code.
4281 (darwin_current_sos): Use per pspace structure.
4282 (darwin_solib_create_inferior_hook): Likewise.
4283 (darwin_clear_solib): Likewise.
4284 (_initialize_darwin_solib): Initialize solib_darwin_pspace_data.
4285
4286 2012-05-28 Pedro Alves <palves@redhat.com>
4287
4288 * infrun.c (wait_for_inferior): Move ecss and ecs locals to the
4289 block that uses them. Clear ecss before handling each event.
4290
4291 2012-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4292
4293 * solib-svr4.c (svr4_current_sos): New comment on
4294 svr4_current_sos_via_xfer_libraries fall back.
4295
4296 2012-05-24 Jan Kratochvil <jan.kratochvil@redhat.com>
4297
4298 * psymtab.c (lookup_symbol_aux_psymtabs): New variable stab_best. Use
4299 it as a fallback for TYPE_IS_OPAQUE.
4300 * symfile.h (struct quick_symbol_functions): Mention TYPE_OPAQUE
4301 symbols for lookup_symbol.
4302
4303 2012-05-24 John Steele Scott <toojays@toojays.net>
4304
4305 PR symtab/13277: Resolving opaque structures in ICC generated binaries.
4306 * dwarf2read.c (struct dwarf2_cu) <producer_is_icc>: New field.
4307 (producer_is_gxx_lt_4_6): Move the checking and caching to...
4308 (check_producer): ... this new function, which also checks for ICC
4309 and caches the result.
4310 (producer_is_icc): New function.
4311 (read_structure_type): Don't set TYPE_STUB_SUPPORTED if the
4312 producer was ICC.
4313
4314 2012-05-24 Pedro Alves <palves@redhat.com>
4315
4316 PR gdb/7205
4317
4318 * arch-utils.c (default_gdb_signal_to_host): Rename to ...
4319 (default_gdb_signal_to_target): ... this. Add comment.
4320 (default_gdb_signal_from_host): Rename to ...
4321 (default_gdb_signal_from_target): ... this. Add comment.
4322 * arch-utils.h (default_gdb_signal_to_host): Rename to ...
4323 (default_gdb_signal_to_target): ... this.
4324 (default_gdb_signal_from_host): Rename to ...
4325 (default_gdb_signal_from_target): ... this.
4326 * corelow.c (core_open): Adjust to naming change. Replace comment.
4327 * gdbarch.sh (gdb_signal_from_host): Rename to ...
4328 (gdb_signal_from_target): ... this. Adjust to
4329 default_gdb_signal_from_host naming change. Extend comment.
4330 (gdb_signal_to_host): Rename to ...
4331 (gdb_signal_to_target): ... this. Adjust to
4332 default_gdb_signal_to_host naming change.
4333 * gdbarch.h, gdbarch.c: Renegerate.
4334
4335 2012-05-24 Pedro Alves <palves@redhat.com>
4336
4337 PR gdb/7205
4338
4339 Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
4340
4341 2012-05-24 Pedro Alves <palves@redhat.com>
4342
4343 PR gdb/7205
4344
4345 Replace target_signal with gdb_signal throughout.
4346
4347 2012-05-24 Pedro Alves <palves@redhat.com>
4348
4349 PR tui/14159
4350
4351 * tui/tui-hooks.c (tui_query_hook): Pre-compute the question
4352 string, instead of reusing the va_list argument.
4353
4354 2012-05-24 Tom Tromey <tromey@redhat.com>
4355
4356 * cp-support.h (cp_finalize_namespace, cp_initialize_namespace):
4357 Remove.
4358
4359 2012-05-23 Doug Evans <dje@google.com>
4360
4361 * symtab.c (search_symbols): Formatting fixes.
4362 (print_symbol_info): Formatting fixes.
4363
4364 * dwarf2-frame.c (execute_cfa_program): Update to handle long long ->
4365 int64_t change to leb128 API.
4366 (read_encoded_value, decode_frame_entry_1): Ditto.
4367 * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Ditto.
4368 (dwarf_block_to_dwarf_reg, dwarf_block_to_dwarf_reg_deref): Ditto.
4369 (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
4370 (execute_stack_op): Ditto.
4371 * dwarf2expr.h (gdb_read_uleb128, gdb_read_sleb128): Ditto.
4372 (safe_read_uleb128, safe_read_sleb128): Ditto.
4373 * dwarf2loc.c (decode_debug_loc_dwo_addresses): Ditto.
4374 (dwarf2_compile_expr_to_ax): Ditto.
4375 (locexpr_describe_location_piece): Ditto.
4376 (disassemble_dwarf_expression): Ditto.
4377 (locexpr_describe_location_1): Ditto.
4378
4379 2012-05-23 Stan Shebs <stan@codesourcery.com>
4380 Kwok Cheung Yeung <kcy@codesourcery.com>
4381
4382 * Makefile.in (SUBDIR_MI_OBS): Add mi-cmd-info.o.
4383 (SUBDIR_MI_SRCS): Add mi-cmd-info.c.
4384 (mi-cmd-info.o): New rule.
4385 * osdata.h (info_osdata_command): New declaration.
4386 * osdata.c (info_osdata_command): Change to non-static.
4387 * mi/mi-cmds.h (mi_cmd_info_os): New declaration.
4388 * mi/mi-cmds.c (mi_cmds): Add -info-os MI command.
4389 * mi/mi-cmd-info.c: New file.
4390
4391 2012-05-23 Doug Evans <dje@google.com>
4392
4393 * symtab.c (search_symbols): Pass NULL for file_matcher to
4394 expand_symtabs_matching if there are no files to match.
4395
4396 * gdbtypes.c (lookup_typename): Simplify.
4397
4398 2012-05-23 Pedro Alves <palves@redhat.com>
4399
4400 * arch-utils.h (default_target_signal_to_host): Delete.
4401 * arch-utils.c (default_target_signal_to_host): Delete.
4402 * gdbarch.sh (target_signal_to_host): Remove.
4403 * gdbarch.h, gdbarch.c: Regenerate.
4404
4405 2012-05-22 Doug Evans <dje@google.com>
4406
4407 * dwarf2-frame.c (struct dwarf2_cie): Make initial_instructions, end
4408 "const gdb_byte *".
4409 (struct dwarf2_fde): Make instructions, end "const gdb_byte *".
4410 (execute_cfa_program): Update to match API of leb128 functions.
4411 (read_1_byte, read_4_bytes, read_8_bytes): Make buf parameter
4412 "const gdb_byte *".
4413 (read_unsigned_leb128, read_signed_leb128): Delete.
4414 (read_initial_length): Change type of buf argument to
4415 "const gdb_byte *".
4416 (read_encoded_value): Update to match API of leb128 functions.
4417 (decode_frame_entry): Change result to "const gdb_byte *", and
4418 similarly for "start" parameter.
4419 (decode_frame_entry_1): Ditto. Use new leb128 reader functions.
4420 (dwarf2_build_frame_info): Change local frame_ptr to
4421 "const gdb_byte *".
4422 * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Replaces
4423 read_uleb128, read_sleb128. All callers updated.
4424 (safe_skip_leb128): New function.
4425 (dwarf_block_to_dwarf_reg): Update to match API of leb128 functions.
4426 Call gdb_read_uleb128, gdb_skip_leb128 instead of read_uleb128.
4427 (dwarf_block_to_dwarf_reg_deref): Update to match API of leb128
4428 functions. Call gdb_read_uleb128, gdb_read_sleb128 instead of
4429 read_uleb128, read_sleb128.
4430 (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
4431 (execute_stack_op): Update to match API of leb128 functions.
4432 * dwarf2expr.h: #include "leb128.h".
4433 (read_uleb128, read_sleb128): Delete.
4434 (gdb_read_uleb128, gdb_read_sleb128, gdb_skip_leb128): New functions.
4435 (safe_read_uleb128, safe_read_sleb128, safe_skip_leb128): Declare.
4436 * dwarf2loc.c (debug_loc_kind): New enum.
4437 (decode_debug_loc_addresses): New function.
4438 (decode_debug_loc_dwo_addresses): New function.
4439 (dwarf2_find_location_expression): Rewrite.
4440 (dwarf2_compile_expr_to_ax): Update to match API of leb128 functions.
4441 (locexpr_describe_location_piece): Ditto.
4442 (disassemble_dwarf_expression): Ditto.
4443 (locexpr_describe_location_1): Ditto.
4444 (loclist_describe_location): Rewrite.
4445 * dwarf2loc.h (dwarf2_loclist_baton): New member "from_dwo".
4446 * dwarf2read.c (die_reader_specs): New member "buffer_end".
4447 (dwarf2_section_buffer_overflow_complaint): Renamed from
4448 dwarf2_macros_too_long_complaint. All callers updated.
4449 (skip_leb128): Delete.
4450 (init_cu_die_reader): Initialize reader->buffer_end.
4451 (skip_one_die): Replace call to skip_leb128 with safe_skip_leb128.
4452 (skip_form_bytes): New arg buffer_end. All callers updated.
4453 Replace call to skip_leb128 with gdb_skip_leb128.
4454 (skip_unknown_opcode): New arg mac_end. All callers updated.
4455 (fill_in_loclist_baton): Initialize baton->from_dwo.
4456
4457 2012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
4458
4459 * mips-linux-nat.c (mips_linux_read_description): Use a more
4460 verbose error message.
4461
4462 2012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
4463
4464 * NEWS: Add MIPS/Linux DSP support.
4465 * mips-linux-tdep.c: Document post-2.6.12 o32 sigcontext layout.
4466 (SIGCONTEXT_DSPCTL): New macro.
4467 (SIGCONTEXT_HI1, SIGCONTEXT_LO1): Likewise.
4468 (SIGCONTEXT_HI2, SIGCONTEXT_LO2): Likewise.
4469 (SIGCONTEXT_HI3, SIGCONTEXT_LO3): Likewise.
4470 (N64_SIGCONTEXT_HI1, N64_SIGCONTEXT_HI2): Likewise.
4471 (N64_SIGCONTEXT_HI3): Likewise.
4472 (N64_SIGCONTEXT_LO1, N64_SIGCONTEXT_LO2): Likewise.
4473 (N64_SIGCONTEXT_LO3): Likewise.
4474 (N64_SIGCONTEXT_DSPCTL): Likewise.
4475 (N64_SIGCONTEXT_FPCSR): Clarify definition.
4476 (mips_linux_o32_sigframe_init): Handle DSP registers.
4477 (mips_linux_n32n64_sigframe_init): Likewise.
4478
4479 2012-05-22 Pierre Muller <muller@ics.u-strasbg.fr>
4480
4481 * common/buffer.c (buffer_grow): ARI fix: Remove unneeded
4482 call to abort.
4483
4484 2012-05-22 Pedro Alves <palves@redhat.com>
4485
4486 * target.h (store_waitstatus): Move declaration ...
4487 * inf-child.h (store_waitstatus): ... here.
4488 * target.c: Move inclusion of gdb_wait.h, and ...
4489 (store_waitstatus): ... this ...
4490 * inf-child.c: ... here.
4491 * linux-nat.c: Include inf-child.h.
4492 * rs6000-nat.c: Include inf-child.h.
4493 * spu-linux-nat.c: Include inf-child.h.
4494
4495 2012-05-22 Pierre Muller <muller@ics.u-strasbg.fr>
4496
4497 * tracepoint.c (start_tracing): Add missing i18n markup.
4498 (stop_tracing, set_trace_user): Ditto.
4499 (set_trace_notes, set_trace_stop_notes): Ditto.
4500
4501 2012-05-21 Tom Tromey <tromey@redhat.com>
4502
4503 PR c++/7173:
4504 * gnu-v3-abi.c (gnuv3_baseclass_offset): Return early for Java
4505 types.
4506 * value.h (value_cast_pointers): Update.
4507 * valops.c (value_cast_pointers): Add 'subclass_check' argument.
4508 (value_cast): Update.
4509 (update_search_result): New function.
4510 (do_search_struct_field): New, from search_struct_field. Check
4511 for ambiguous results.
4512 (search_struct_field): Rewrite.
4513 * infcall.c (value_arg_coerce): Update.
4514 * eval.c (evaluate_subexp_standard) <STRUCTOP_MEMBER>: Use
4515 value_cast_pointers.
4516 * ada-lang.c (ada_convert_actual): Update.
4517
4518 2012-05-21 Tom Tromey <tromey@redhat.com>
4519
4520 * macroexp.c (macro_stringify): Terminate the string.
4521
4522 2012-05-20 Jan Kratochvil <jan.kratochvil@redhat.com>
4523
4524 * NEWS (--with-auto-load-dir): Prepend $debugdir to the default path.
4525 Describe it.
4526 * auto-load.c (auto_load_expand_dir_vars): New function.
4527 (auto_load_safe_path_vec_update): Use it, remove the
4528 substitute_path_component call thanks to it.
4529 (auto_load_objfile_script): Remove the debug_file_directory processing.
4530 Use auto_load_expand_dir_vars, remove the substitute_path_component
4531 call thanks to it.
4532 * configure: Regenerate.
4533 * configure.ac (--with-auto-load-dir): Prepend $debugdir to the default
4534 path. Escape $ also for $debugdir.
4535 (--with_auto_load_safe_path): Escape $ also for $debugdir.
4536 * utils.c (substitute_path_component): Accept also DIRNAME_SEPARATOR.
4537
4538 2012-05-20 Doug Evans <dje@google.com>
4539
4540 * dwarf2read.c (recursively_find_pc_sect_symtab): Initialize "s"
4541 before use. Check for symtab->includes == NULL before scanning it.
4542
4543 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
4544
4545 * mips-tdep.c (mips_reg3_to_reg): Optimize storage.
4546
4547 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
4548
4549 * NEWS: Add microMIPS support and "set mips compression",
4550 "show mips compression" commands.
4551 * mips-tdep.h (mips_isa): New enum.
4552 (gdbarch_tdep): Add mips_isa.
4553 (mips_pc_is_mips16): Update prototype.
4554 (mips_pc_is_mips, mips_pc_is_micromips): New prototypes.
4555 * mips-tdep.c (mips_compression_mips16): New variable.
4556 (mips_compression_micromips): Likewise.
4557 (mips_compression_strings): Likewise.
4558 (mips_compression_string): Likewise.
4559 (is_mips16_isa, is_micromips_isa): New functions.
4560 (is_mips16_addr): Rename to...
4561 (is_compact_addr): ... this.
4562 (unmake_mips16_addr): Likewise to...
4563 (unmake_compact_addr): ... this.
4564 (make_mips16_addr): Likewise to...
4565 (make_compact_addr): ... this.
4566 (is_mips_addr, is_mips16_addr, is_micromips_addr): New
4567 functions.
4568 (mips_elf_make_msymbol_special): Handle microMIPS code.
4569 (msymbol_is_special): Rename to...
4570 (msymbol_is_mips16): ... this.
4571 (mips_make_symbol_special, mips_pc_is_mips16): Update
4572 accordingly.
4573 (msymbol_is_mips, msymbol_is_micromips): New functions.
4574 (mips16_to_32_reg): Rename to...
4575 (mips_reg3_to_reg): ... this.
4576 (mips_pc_is_mips, mips_pc_is_micromips): New functions.
4577 (mips_pc_isa): Likewise.
4578 (mips_read_pc, mips_unwind_pc, mips_write_pc): Handle microMIPS
4579 code.
4580 (mips_fetch_instruction): Pass return status instead of printing
4581 an error message if requested. Handle microMIPS code. Bail out
4582 on an invalid ISA.
4583 (micromips_op): New macro.
4584 (b0s4_imm, b0s5_imm, b0s5_reg, b0s7_imm, b0s10_imm): Likewise.
4585 (b1s9_imm, b2s3_cc, b4s2_regl, b5s5_op, b5s5_reg): Likewise.
4586 (b6s4_op, b7s3_reg): Likewise.
4587 (b0s6_op, b0s11_op, b0s12_imm, b0s16_imm, b0s26_imm): Likewise.
4588 (b6s10_ext, b11s5_reg, b12s4_op): Likewise.
4589 (mips_insn_size): New function.
4590 (mips32_next_pc): Update mips_fetch_instruction call.
4591 (micromips_relative_offset7): New function.
4592 (micromips_relative_offset10): Likewise.
4593 (micromips_relative_offset16): Likewise.
4594 (micromips_pc_insn_size): Likewise.
4595 (micromips_bc1_pc): Likewise.
4596 (micromips_next_pc): Likewise.
4597 (unpack_mips16): Update mips_fetch_instruction call.
4598 (extended_mips16_next_pc): Update according to change to
4599 mips16_to_32_reg.
4600 (mips_next_pc): Update mips_pc_is_mips16 call. Handle microMIPS
4601 code.
4602 (mips16_scan_prologue): Update mips_fetch_instruction call.
4603 Update according to change to mips16_to_32_reg.
4604 (mips_insn16_frame_sniffer): Update mips_pc_is_mips16 call.
4605 (mips_insn16_frame_base_sniffer): Likewise.
4606 (micromips_decode_imm9): New function.
4607 (micromips_scan_prologue): Likewise.
4608 (mips_micro_frame_cache): Likewise.
4609 (mips_micro_frame_this_id): Likewise.
4610 (mips_micro_frame_prev_register): Likewise.
4611 (mips_micro_frame_sniffer): Likewise.
4612 (mips_micro_frame_unwind): New variable.
4613 (mips_micro_frame_base_address): New function.
4614 (mips_micro_frame_base): New variable.
4615 (mips_micro_frame_base_sniffer): New function.
4616 (mips32_scan_prologue): Update mips_fetch_instruction call.
4617 (mips_insn32_frame_sniffer): Check for the standard MIPS ISA
4618 rather than for MIPS16.
4619 (mips_insn32_frame_base_sniffer): Likewise.
4620 (mips_addr_bits_remove): Handle microMIPS code.
4621 (deal_with_atomic_sequence): Rename to...
4622 (mips_deal_with_atomic_sequence): ... this. Update the type
4623 of the variable used to hold an instruction. Remove the ISA bit
4624 check. Update mips_fetch_instruction call.
4625 (micromips_deal_with_atomic_sequence): New function.
4626 (deal_with_atomic_sequence): Likewise.
4627 (mips_about_to_return): Handle microMIPS code. Update
4628 mips_fetch_instruction call.
4629 (heuristic_proc_start): Check for the standard MIPS ISA rather
4630 than for MIPS16. Update mips_pc_is_mips16 and
4631 mips_fetch_instruction calls. Handle microMIPS code.
4632 (mips_push_dummy_code): Handle microMIPS code.
4633 (mips_eabi_push_dummy_call): Likewise.
4634 (mips_o32_return_value): Update mips_pc_is_mips16 call.
4635 (mips_o64_push_dummy_call): Handle microMIPS code.
4636 (mips_o64_return_value): Update mips_pc_is_mips16 call.
4637 (is_delayed): Remove function.
4638 (mips_single_step_through_delay): Replace the call to is_delayed
4639 with mips32_instruction_has_delay_slot. Correct MIPS16 handling.
4640 Handle microMIPS code.
4641 (mips_skip_prologue): Update mips_pc_is_mips16 call. Handle
4642 microMIPS code.
4643 (mips32_in_function_epilogue_p): Update mips_fetch_instruction
4644 call.
4645 (micromips_in_function_epilogue_p): New function.
4646 (mips16_in_function_epilogue_p): Update mips_fetch_instruction
4647 call.
4648 (mips_in_function_epilogue_p): Update mips_pc_is_mips16 call.
4649 Handle microMIPS.
4650 (gdb_print_insn_mips): Likewise.
4651 (mips_breakpoint_from_pc): Likewise.
4652 (mips_remote_breakpoint_from_pc): New function.
4653 (mips32_instruction_has_delay_slot): Simplify making use of the
4654 updated mips_fetch_instruction interface.
4655 (micromips_instruction_has_delay_slot): New function.
4656 (mips16_instruction_has_delay_slot): Simplify making use of the
4657 updated mips_fetch_instruction interface.
4658 (mips_adjust_breakpoint_address): Check for the standard MIPS
4659 ISA rather than for MIPS16 ISA. Update for unmake_compact_addr
4660 calls. Handle microMIPS code.
4661 (mips_get_mips16_fn_stub_pc): Update mips_fetch_instruction call.
4662 (mips_skip_trampoline_code): Handle microMIPS code.
4663 (global_mips_compression): New function.
4664 (mips_gdbarch_init): Handle the compressed ISA setting from ELF
4665 file flags. Register the microMIPS remote breakpoint handler
4666 and heuristic frame unwinder.
4667 (show_mips_compression): New function.
4668 (_initialize_mips_tdep): Add the "set mips compression" and
4669 "show mips compression" commands.
4670
4671 2012-05-18 Sergio Durigan Junior <sergiodj@redhat.com>
4672
4673 * ada-lang.c:
4674 * ada-tasks.c:
4675 * ada-varobj.c:
4676 * amd64-darwin-tdep.c:
4677 * arm-symbian-tdep.c:
4678 * arm-tdep.c:
4679 * avr-tdep.c:
4680 * ax-gdb.c:
4681 * bfin-linux-tdep.c:
4682 * breakpoint.c:
4683 * c-valprint.c:
4684 * cli/cli-cmds.c:
4685 * coffread.c:
4686 * cp-support.c:
4687 * cris-tdep.c:
4688 * dwarf2-frame-tailcall.c:
4689 * dwarf2-frame.c:
4690 * dwarf2expr.c:
4691 * dwarf2loc.c:
4692 * dwarf2read.c:
4693 * elfread.c:
4694 * eval.c:
4695 * expprint.c:
4696 * f-valprint.c:
4697 * frv-tdep.c:
4698 * h8300-tdep.c:
4699 * hppa-hpux-tdep.c:
4700 * hppa-tdep.c:
4701 * hppanbsd-tdep.c:
4702 * i386-nto-tdep.c:
4703 * i386-tdep.c:
4704 * i387-tdep.c:
4705 * ia64-tdep.c:
4706 * jit.c:
4707 * linespec.c:
4708 * linux-tdep.c:
4709 * lm32-tdep.c:
4710 * m2-valprint.c:
4711 * m32c-tdep.c:
4712 * m32r-rom.c:
4713 * m32r-tdep.c:
4714 * m68k-tdep.c:
4715 * m68klinux-tdep.c:
4716 * mi/mi-main.c:
4717 * microblaze-tdep.c:
4718 * mips-linux-tdep.c:
4719 * mips-tdep.c:
4720 * mn10300-tdep.c:
4721 * p-valprint.c:
4722 * parse.c:
4723 * ppc-linux-tdep.c:
4724 * ppc-sysv-tdep.c:
4725 * printcmd.c:
4726 * python/py-finishbreakpoint.c:
4727 * python/py-inferior.c:
4728 * python/py-infthread.c:
4729 * python/py-type.c:
4730 * python/python.c:
4731 * remote-fileio.c:
4732 * remote-m32r-sdi.c:
4733 * remote-mips.c:
4734 * reverse.c:
4735 * rl78-tdep.c:
4736 * rs6000-aix-tdep.c:
4737 * rs6000-tdep.c:
4738 * s390-tdep.c:
4739 * score-tdep.c:
4740 * sh64-tdep.c:
4741 * skip.c:
4742 * solib-darwin.c:
4743 * solib-dsbt.c:
4744 * solib-frv.c:
4745 * sparc-tdep.c:
4746 * spu-multiarch.c:
4747 * spu-tdep.c:
4748 * stack.c:
4749 * symfile.c:
4750 * symtab.c:
4751 * tic6x-tdep.c:
4752 * tracepoint.c:
4753 * v850-tdep.c:
4754 * valarith.c:
4755 * valprint.c:
4756 * value.c:
4757 * xcoffread.c:
4758 * xtensa-tdep.c:
4759 * ada-lang.c:
4760 * ada-tasks.c:
4761 * ada-varobj.c:
4762 * amd64-darwin-tdep.c:
4763 * arm-symbian-tdep.c:
4764 * arm-tdep.c: Delete unused variables.
4765
4766 2012-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
4767
4768 Rename $ddir to $datadir.
4769 * NEWS (--with-auto-load-dir): Rename $ddir to $datadir.
4770 * auto-load.c (auto_load_safe_path_vec_update)
4771 (auto_load_gdb_datadir_changed, auto_load_objfile_script): Likewise.
4772 * configure: Regenerate.
4773 * configure.ac (--with-auto-load-dir, --with-auto-load-safe-path):
4774 Likewise. Remove the 'use $ddir' help string.
4775
4776 2012-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
4777
4778 * auto-load.c (show_auto_load_safe_path): Accept any combination of
4779 DIRNAME_SEPARATOR and IS_DIR_SEPARATOR for wild-match.
4780
4781 2012-05-18 Tom Tromey <tromey@redhat.com>
4782
4783 PR exp/13907:
4784 * valprint.h (struct value_print_options) <symbol_print>: New
4785 field.
4786 * valprint.c (user_print_options): Add default for symbol_print.
4787 (show_symbol_print): New function.
4788 (generic_val_print): Respect symbol_print.
4789 (_initialize_valprint): Add "print symbol" setting.
4790 * f-valprint.c (f_val_print): Respect symbol_print.
4791 * c-valprint.c (c_val_print): Respect symbol_print.
4792 * NEWS: Update.
4793 * printcmd.c (print_address_symbolic): Return int. Ignore some
4794 zero-size symbols.
4795 (print_address_demangle): Return int.
4796 * defs.h: (print_address_symbolic): Return int.
4797 * value.h (print_address_demangle): Return int.
4798
4799 2012-05-18 Tom Tromey <tromey@redhat.com>
4800
4801 * valprint.c (val_print_string): Don't print leading space.
4802 * p-valprint.c (pascal_val_print) <TYPE_CODE_PTR>: Optionally
4803 print space before string or vtbl.
4804 * m2-valprint.c (print_unpacked_pointer): Optionally print space
4805 before string.
4806 * jv-valprint.c (java_value_print): Print space before string.
4807 * go-valprint.c (print_go_string): Print space before string.
4808 * f-valprint.c (f_val_print) <TYPE_CODE_PTR>: Optionally print
4809 space before string.
4810 * c-valprint.c (c_val_print) <TYPE_CODE_PTR>: Optionally print
4811 space before string or vtbl.
4812 * auxv.c (fprint_target_auxv): Print space after address.
4813
4814 2012-05-18 Tom Tromey <tromey@redhat.com>
4815
4816 * printcmd.c (print_address_demangle): Remove special case for 0.
4817
4818 2012-05-18 Tom Tromey <tromey@redhat.com>
4819
4820 * printcmd.c (print_address_demangle): Add 'opts' argument.
4821 * p-valprint.c (pascal_val_print): Update.
4822 * jv-valprint.c (java_val_print): Update.
4823 * value.h: Update.
4824 * valprint.c (generic_val_print): Update.
4825 (print_function_pointer_address): Add 'options' argument. Remove
4826 'addressprint' argument. Update.
4827 * m2-valprint.c (print_unpacked_pointer): Update.
4828 * gnu-v3-abi.c (print_one_vtable): Update.
4829 (gnuv3_print_method_ptr): Update.
4830 * f-valprint.c (f_val_print): Update.
4831 * cp-valprint.c (cp_print_value_fields): Update.
4832 * valprint.h (print_function_pointer_address): Update.
4833 * c-valprint.c (c_val_print): Update.
4834
4835 2012-05-18 Tom Tromey <tromey@redhat.com>
4836
4837 * psymtab.c (find_pc_sect_symtab_from_partial): Return the symtab
4838 directly corresponding to the found psymtab.
4839 * dwarf2read.c (recursively_find_pc_sect_symtab): New function.
4840 (dw2_find_pc_sect_symtab): Use it.
4841 * block.h (blockvector_contains_pc): Declare.
4842 * block.c (find_block_in_blockvector): New function.
4843 (blockvector_for_pc_sect): Use it.
4844 (blockvector_contains_pc): New function.
4845
4846 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
4847
4848 * mips-tdep.h (mips_write_pc): New prototype.
4849 * mips-tdep.c (mips_write_pc): Make external, add description.
4850 * mips-linux-tdep.c (mips_linux_write_pc): Use mips_write_pc,
4851 add description.
4852
4853 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
4854
4855 * mips-tdep.c (mips_read_pc): Use gdbarch_pc_regnum instead of
4856 mips_regnum->pc.
4857 (mips_unwind_pc, mips_write_pc): Likewise.
4858 (mips_gdbarch_init): Remove a comment on gdbarch_pc_regnum and
4859 gdbarch_read_pc.
4860
4861 2012-05-17 Joel Brobecker <brobecker@adacore.com>
4862
4863 * procfs.c (procfs_find_new_threads, procfs_pid_to_str,
4864 proc_warn, proc_error, proc_get_status, proc_flags,
4865 proc_why, proc_what, proc_nsysarg, proc_sysargs,
4866 proc_set_run_on_last_close, proc_unset_run_on_last_close,
4867 proc_unset_inherit_on_fork, proc_set_async, proc_unset_async,
4868 proc_stop_process, proc_wait_for_stop, proc_run_process,
4869 proc_set_traced_signals, proc_set_traced_faults,
4870 proc_set_traced_sysentry, proc_set_traced_sysexit,
4871 proc_set_held_signals, proc_get_held_signals,
4872 proc_get_traced_signals, proc_get_traced_faults,
4873 proc_get_traced_sysentry, proc_get_traced_sysexit,
4874 proc_clear_current_fault, proc_set_current_signal,
4875 proc_clear_current_signal, proc_get_gregs, proc_get_fpregs,
4876 proc_set_gregs, proc_set_fpregs, proc_kill, proc_parent_pid,
4877 proc_get_nthreads, proc_get_nthreads, proc_get_nthreads,
4878 proc_get_current_thread, proc_get_current_thread,
4879 proc_get_current_thread, proc_update_threads,
4880 proc_update_threads, proc_update_threads, proc_update_threads,
4881 proc_iterate_over_threads, procfs_find_new_threads,
4882 procfs_pid_to_str): Make static. Remove advance declaration.
4883 (proc_cursig): Make static. Conditionalized defintion on
4884 PROCFS_DONT_PIOCSSIG_CURSIG being defined.
4885 (proc_syscall, proc_set_kill_on_last_close,
4886 proc_unset_kill_on_last_close, proc_set_inherit_on_fork,
4887 proc_get_pending_signals, proc_get_signal_actions,
4888 proc_trace_signal, proc_ignore_signal): Delete.
4889
4890 2012-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
4891
4892 * coffread.c (cs_section_address): Passing proper argument for
4893 `bfd_get_section_vma'.
4894 * dwarf2read.c (dwarf2_locate_sections): Likewise, for
4895 `bfd_get_section_flags'.
4896 * remote.c (remote_trace_set_readonly_regions): Likewise, for
4897 `bfd_get_section_vma'.
4898
4899 2012-05-16 Tom Tromey <tromey@redhat.com>
4900
4901 PR macros/13205:
4902 * macrotab.h: (macro_define_special): Declare.
4903 (enum macro_special_kind): New.
4904 (struct macro_definition) <argc, replacement>: Update comments.
4905 * macrotab.c (new_macro_definition): Unconditionally set 'argc'.
4906 (macro_define_object_internal): New function.
4907 (macro_define_object): Use it.
4908 (macro_define_special): New function.
4909 (fixup_definition): New function.
4910 (macro_lookup_definition, foreach_macro_in_scope)
4911 (foreach_macro): Use fixup_definition.
4912 * macroexp.h (macro_stringify): Declare.
4913 * macroexp.c (free_buffer_return_text): New function.
4914 (stringify): Constify "arg".
4915 (macro_stringify): New function.
4916 * dwarf2read.c (macro_start_file): Call macro_define_special.
4917
4918 2012-05-16 Maciej W. Rozycki <macro@codesourcery.com>
4919 Maciej W. Rozycki <macro@mips.com>
4920
4921 * breakpoint.h (bp_location): Add related_address member.
4922 * inferior.h (get_return_value): Take a pointer to struct value
4923 instead of struct type for the function requested.
4924 * value.h (using_struct_return): Likewise.
4925 * gdbarch.sh (return_value): Take a pointer to struct value
4926 instead of struct type for the function requested.
4927 * breakpoint.c (set_breakpoint_location_function): Initialize
4928 related_address for bp_gnu_ifunc_resolver breakpoints.
4929 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Pass the
4930 requested function's address to gdbarch_return_value.
4931 * eval.c (evaluate_subexp_standard): Pass the requested
4932 function's address to using_struct_return.
4933 * infcall.c (call_function_by_hand): Pass the requested
4934 function's address to using_struct_return and
4935 gdbarch_return_value.
4936 * infcmd.c (get_return_value): Take a pointer to struct value
4937 instead of struct type for the function requested.
4938 (print_return_value): Update accordingly.
4939 (finish_command_continuation): Likewise.
4940 * stack.c (return_command): Pass the requested function's
4941 address to using_struct_return and gdbarch_return_value.
4942 * value.c (using_struct_return): Take a pointer to struct value
4943 instead of struct type for the function requested. Pass the
4944 requested function's address to gdbarch_return_value.
4945 * python/py-finishbreakpoint.c (finish_breakpoint_object):
4946 New function_value member, replacing function_type.
4947 (bpfinishpy_dealloc): Update accordingly.
4948 (bpfinishpy_pre_stop_hook): Likewise.
4949 (bpfinishpy_init): Likewise. Record the requested function's
4950 address.
4951 * mips-tdep.c (mips_fval_reg): New enum.
4952 (mips_o32_push_dummy_call): For MIPS16 FP doubles do not swap
4953 words put in GP registers.
4954 (mips_o64_push_dummy_call): Update a comment.
4955 (mips_o32_return_value): Take a pointer to struct value instead
4956 of struct type for the function requested and use it to check if
4957 using the MIPS16 calling convention. Return the designated
4958 general purpose registers for floating-point values returned in
4959 MIPS16 mode.
4960 (mips_o64_return_value): Likewise.
4961 * ppc-tdep.h (ppc_sysv_abi_return_value): Update prototype.
4962 (ppc_sysv_abi_broken_return_value): Likewise.
4963 (ppc64_sysv_abi_return_value): Likewise.
4964 * alpha-tdep.c (alpha_return_value): Take a pointer to struct
4965 value instead of struct type for the function requested.
4966 * amd64-tdep.c (amd64_return_value): Likewise.
4967 * amd64-windows-tdep.c (amd64_windows_return_value): Likewise.
4968 * arm-tdep.c (arm_return_value): Likewise.
4969 * avr-tdep.c (avr_return_value): Likewise.
4970 * bfin-tdep.c (bfin_return_value): Likewise.
4971 * cris-tdep.c (cris_return_value): Likewise.
4972 * frv-tdep.c (frv_return_value): Likewise.
4973 * h8300-tdep.c (h8300_return_value): Likewise.
4974 (h8300h_return_value): Likewise.
4975 * hppa-tdep.c (hppa32_return_value): Likewise.
4976 (hppa64_return_value): Likewise.
4977 * i386-tdep.c (i386_return_value): Likewise.
4978 * ia64-tdep.c (ia64_return_value): Likewise.
4979 * iq2000-tdep.c (iq2000_return_value): Likewise.
4980 * lm32-tdep.c (lm32_return_value): Likewise.
4981 * m32c-tdep.c (m32c_return_value): Likewise.
4982 * m32r-tdep.c (m32r_return_value): Likewise.
4983 * m68hc11-tdep.c (m68hc11_return_value): Likewise.
4984 * m68k-tdep.c (m68k_return_value): Likewise.
4985 (m68k_svr4_return_value): Likewise.
4986 * m88k-tdep.c (m88k_return_value): Likewise.
4987 * mep-tdep.c (mep_return_value): Likewise.
4988 * microblaze-tdep.c (microblaze_return_value): Likewise.
4989 * mn10300-tdep.c (mn10300_return_value): Likewise.
4990 * moxie-tdep.c (moxie_return_value): Likewise.
4991 * mt-tdep.c (mt_return_value): Likewise.
4992 * ppc-linux-tdep.c (ppc_linux_return_value): Likewise.
4993 * ppc-sysv-tdep.c (ppc_sysv_abi_return_value): Likewise.
4994 (ppc_sysv_abi_broken_return_value): Likewise.
4995 (ppc64_sysv_abi_return_value): Likewise.
4996 * ppcnbsd-tdep.c (ppcnbsd_return_value): Likewise.
4997 * rl78-tdep.c (rl78_return_value): Likewise.
4998 * rs6000-aix-tdep.c (rs6000_return_value): Likewise.
4999 * rx-tdep.c (rx_return_value): Likewise.
5000 * s390-tdep.c (s390_return_value): Likewise.
5001 * score-tdep.c (score_return_value): Likewise.
5002 * sh-tdep.c (sh_return_value_nofpu): Likewise.
5003 (sh_return_value_fpu): Likewise.
5004 * sh64-tdep.c (sh64_return_value): Likewise.
5005 * sparc-tdep.c (sparc32_return_value): Likewise.
5006 * sparc64-tdep.c (sparc64_return_value): Likewise.
5007 * spu-tdep.c (spu_return_value): Likewise.
5008 * tic6x-tdep.c (tic6x_return_value): Likewise.
5009 * v850-tdep.c (v850_return_value): Likewise.
5010 * vax-tdep.c (vax_return_value): Likewise.
5011 * xstormy16-tdep.c (xstormy16_return_value): Likewise.
5012 * xtensa-tdep.c (xtensa_return_value): Likewise.
5013 * gdbarch.c: Regenerate.
5014 * gdbarch.h: Regenerate.
5015
5016 2012-05-15 Tom Tromey <tromey@redhat.com>
5017
5018 * python/python.c (gdbpy_find_pc_line): Use gdb_py_ulongest.
5019
5020 2012-05-15 Joel Brobecker <brobecker@adacore.com>
5021
5022 * breakpoint.c (init_breakpoint_sal): Add quotes around part
5023 of command in two error message.
5024
5025 2012-05-15 Joel Brobecker <brobecker@adacore.com>
5026
5027 * breakpoint.c (init_breakpoint_sal): Remove trailing spaces.
5028
5029 2012-05-15 Joel Brobecker <brobecker@adacore.com>
5030
5031 * breakpoint.c (find_condition_and_thread): Minor reformatting.
5032
5033 2012-05-15 Jan Kratochvil <jan.kratochvil@redhat.com>
5034
5035 * NEWS (show auto-load scripts-directory): Add forgotten command.
5036
5037 2012-05-15 Jan Kratochvil <jan.kratochvil@redhat.com>
5038
5039 * spu-tdep.c (spu_catch_start): Update create_breakpoint caller
5040 parameters.
5041
5042 2012-05-14 H.J. Lu <hongjiu.lu@intel.com>
5043
5044 * amd64-tdep.c: Include features/i386/x32.c and
5045 features/i386/x32-avx.c.
5046 (_initialize_amd64_tdep): Call initialize_tdesc_x32 and
5047 initialize_tdesc_x32_avx.
5048
5049 2012-05-14 Stan Shebs <stan@codesourcery.com>
5050
5051 Add dynamic printf.
5052 * breakpoint.h (enum bptype): New type bp_dprintf.
5053 (struct breakpoint): New field extra_string.
5054 (struct breakpoint_ops): Add arg to create_breakpoints_sal.
5055 (create_breakpoint): Add extra_string arg.
5056 * breakpoint.c (dprintf_breakpoint_ops): New.
5057 (is_breakpoint): Add bp_dprintf.
5058 (bpstat_what): Add dprintf case.
5059 (bptype_string): Ditto.
5060 (print_one_breakpoint_location): Ditto.
5061 (init_bp_location): Ditto.
5062 (bkpt_print_mention): Ditto.
5063 (dprintf_style_enums): New array.
5064 (dprintf_style): New global.
5065 (dprintf_function): New global.
5066 (dprintf_channel): New global.
5067 (update_dprintf_command_list): New function.
5068 (update_dprintf_commands): New function.
5069 (init_breakpoint_sal): Add extra_string argument, handle it.
5070 (create_breakpoint_sal): Add extra_string argument.
5071 (create_breakpoints_sal): Add extra_string argument, update callers.
5072 (find_condition_and_thread): Add extra argument.
5073 (create_breakpoint): Add extra_string argument, record it.
5074 (dprintf_command): New function.
5075 (break_command_1): Add arg to create_breakpoint call.
5076 (handle_gnu_v3_exceptions): Ditto.
5077 (trace_command): Ditto.
5078 (ftrace_command): Ditto.
5079 (strace_command): Ditto.
5080 (bkpt_print_mention): Add dprintf case.
5081 (create_breakpoint_sal_default): Add extra_string argument.
5082 (_initialize_breakpoint): Add new commands.
5083 * mi/mi-cmd-break.c (mi_cmd_break_insert): Add arg to call.
5084 * python/py-breakpoint.c (bppy_init): Ditto.
5085 * python/py-finishbreakpoint.c (bpfinishpy_init): Ditto.
5086
5087 2012-05-14 Maciej W. Rozycki <macro@codesourcery.com>
5088
5089 * mips-tdep.c (mips_push_dummy_code): Correct description typo.
5090
5091 2012-05-14 Siva Chandra Reddy <sivachandra@google.com>
5092
5093 * python/python.c (gdbpy_find_pc_line): Use ULONGEST instead of
5094 unsigned long long.
5095
5096 2012-05-13 Siva Chandra Reddy <sivachandra@google.com>
5097
5098 Add a new function gdb.find_pc_line to the Python API.
5099 * NEWS (Python Scripting): Add entry about the new function.
5100 * python/python.c (gdbpy_find_pc_line): New function which
5101 implements gdb.find_pc_line.
5102 (GdbMethods): Add entry for the new function.
5103
5104 2012-05-12 Pedro Alves <palves@redhat.com>
5105
5106 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Call
5107 initialize_tdesc_x32_linux and initialize_tdesc_x32_avx_linux.
5108
5109 2012-05-12 Eli Zaretskii <eliz@gnu.org>
5110
5111 * inferior.c: Include completer.h
5112 (initialize_inferiors): Set completer of add-inferior to
5113 filename_completer.
5114
5115 2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
5116
5117 * amd64-linux-tdep.c (amd64_linux_core_read_description): Check
5118 gdbarch_ptr_bit for x32 core dump.
5119
5120 2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
5121
5122 * amd64-linux-tdep.c: Include features/i386/x32-linux.c
5123 and features/i386/x32-avx-linux.c.
5124
5125 2012-05-11 Stan Shebs <stan@codesourcery.com>
5126 Kwok Cheung Yeung <kcy@codesourcery.com>
5127
5128 * NEWS: Describe new info os commands.
5129 * common/linux-osdata.c (PID_T, TIME_T): Define.
5130 (MAX_PID_T_STRLEN): New.
5131 (linux_common_core_of_thread): Add comment. Change to use PID_T and
5132 MAX_PID_T_STRLEN.
5133 (command_from_pid): Add comment. Change to use PID_T.
5134 (commandline_from_pid): Change to use PID_T.
5135 (user_from_pid): Add comment.
5136 (get_process_owner): Add comment. Change to use PID_T and
5137 MAX_PID_T_STRLEN.
5138 (get_number_of_cpu_cores): Add comment.
5139 (get_cores_used_by_process): Add comment. Change to use PID_T and
5140 MAX_PID_T_STRLEN.
5141 (linux_xfer_osdata_processes): Change to use PID_T and
5142 MAX_PID_T_STRLEN.
5143 (compare_processes): New function.
5144 (linux_xfer_osdata_processgroups): New function.
5145 (linux_xfer_osdata_threads): Change to use PID_T.
5146 (linux_xfer_osdata_fds): New function.
5147 (format_socket_state, print_sockets): New functions.
5148 (union socket_addr): New union.
5149 (linux_xfer_osdata_isockets): New function.
5150 (time_from_time_t, group_from_gid): New functions.
5151 (linux_xfer_osdata_shm): New function.
5152 (linux_xfer_osdata_sem): New function.
5153 (linux_xfer_osdata_msg): New function.
5154 (linux_xfer_osdata_modules): New function.
5155 (osdata_table): Add new entries.
5156 * common/buffer.c (buffer_xml_printf): Add support for long and
5157 long long format specifiers.
5158
5159 2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
5160
5161 * amd64-linux-tdep.h (tdesc_x32_linux): New.
5162 (tdesc_x32_avx_linux): Likewise.
5163
5164 2012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
5165
5166 Implement multi-component --with-auto-load-dir.
5167 * NEWS (set auto-load scripts-directory, --with-auto-load-dir): New
5168 entries.
5169 (--with-auto-load-safe-path): Update the default value description.
5170 * auto-load.c (auto_load_dir, set_auto_load_dir, show_auto_load_dir):
5171 New.
5172 (auto_load_objfile_script): Add DEBUG_AUTO_LOAD output. Remove
5173 GDB_DATADIR NULL check. Replace GDB_DATADIR/auto-load by
5174 AUTO_LOAD_DIR. Support $ddir and multiple components in it.
5175 (_initialize_auto_load): Initialize also auto_load_dir. Install new
5176 "set auto-load scripts-directory".
5177 * config.in: Regenerate.
5178 * configure: Regenerate.
5179 * configure.ac (--with-auto-load-dir): New configure option.
5180 (--auto-load-safe-path): Change the default to --with-auto-load-dir.
5181
5182 2012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
5183
5184 Provide $ddir substitution for --with-auto-load-safe-path.
5185 * NEWS (--with-auto-load-safe-path, --without-auto-load-safe-path): New
5186 entries.
5187 * auto-load.c: Include observer.h.
5188 (auto_load_safe_path_vec_update): Call substitute_path_component for
5189 each component. New variable ddir_subst.
5190 (auto_load_gdb_datadir_changed): New function.
5191 (set_auto_load_safe_path): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
5192 AUTO_LOAD_SAFE_PATH. New comment.
5193 (_initialize_auto_load): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
5194 AUTO_LOAD_SAFE_PATH. Install auto_load_gdb_datadir_changed.
5195 * config.in: Regenerate.
5196 * configure: Regenerate.
5197 * configure.ac (--auto-load-safe-path): Rename
5198 DEFAULT_AUTO_LOAD_SAFE_PATH to AUTO_LOAD_SAFE_PATH. Default to
5199 GDB_DATADIR/auto-load.
5200 * defs.h (substitute_path_component): New declaration.
5201 * top.c: Include observer.h.
5202 (set_gdb_datadir): New function.
5203 (init_main): Install it for "set data-directory".
5204 * utils.c (substitute_path_component): New function.
5205
5206 2012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
5207
5208 Make auto-load handle multiple components of DEBUG_FILE_DIRECTORY.
5209 * auto-load.c (auto_load_objfile_script): Remove check for NULL
5210 DEBUG_FILE_DIRECTORY. Handle multiple components of
5211 DEBUG_FILE_DIRECTORY.
5212
5213 2012-05-10 Tom Tromey <tromey@redhat.com>
5214
5215 * dwarf2read.c (recursively_write_psymbols): New function.
5216 (write_psymtabs_to_index): Use it.
5217
5218 * dwarf2read.c (struct dwarf2_queue_item) <pretend_language>: New
5219 field.
5220 (load_cu, dw2_do_instantiate_symtab, process_psymtab_comp_unit)
5221 (load_partial_comp_unit): Update.
5222 (queue_comp_unit): Add argument 'pretend_language'.
5223 (process_queue): Update.
5224 (psymtab_to_symtab_1): Skip dependencies that have a user.
5225 (load_partial_comp_unit_reader): Give meaning to the 'data'
5226 argument.
5227 (load_full_comp_unit): Add 'pretend_language' argument.
5228 (process_full_comp_unit): Add 'pretend_language' argument. Set
5229 language on CU.
5230 (process_imported_unit_die, read_file_scope, read_type_unit_scope):
5231 Update.
5232 (maybe_queue_comp_unit): Add 'pretend_language' argument.
5233 (follow_die_offset, follow_die_sig, read_signatured_type_reader):
5234 Update.
5235 (prepare_one_comp_unit): Add 'pretend_language' argument.
5236
5237 * dwarf2read.c: (dwarf2_per_cu_ptr): New typedef.
5238 (struct dwarf2_per_objfile) <just_read_cus>: New field.
5239 (struct dwarf2_per_cu_data) <imported_symtabs>: New field.
5240 (dw2_do_instantiate_symtab): Check whether symtab was read in
5241 before queueing.
5242 (dw2_instantiate_symtab): Add assertion. Call
5243 process_cu_includes.
5244 (process_psymtab_comp_unit): Compute 'dependencies' for psymtab.
5245 (partial_symtab_p): New typedef.
5246 (set_partial_user): New function.
5247 (dwarf2_build_psymtabs_hard): Use set_partial_user.
5248 (scan_partial_symbols): Add imported CU to imported_symtabs.
5249 (dwarf2_psymtab_to_symtab): Call process_cu_includes.
5250 (psymtab_to_symtab_1): Do nothing if psymtab is readin.
5251 (get_symtab, recursively_compute_inclusions)
5252 (compute_symtab_includes, process_cu_includes)
5253 (process_imported_unit_die): New functions.
5254 (process_die) <DW_TAG_imported_unit>: New case.
5255 (dwarf2_per_objfile_free): Free 'imported_symtabs'.
5256
5257 * dwarf2read.c (struct dwarf2_per_cu_data) <psymtab>: Update
5258 comment.
5259 (struct partial_die_info) <locdesc>: Remove.
5260 <d>: New field.
5261 (process_psymtab_comp_unit): Add 'read_partial' argument.
5262 Update.
5263 (process_type_comp_unit, dwarf2_build_psymtabs_hard): Update.
5264 (scan_partial_symbols): Handle DW_TAG_imported_unit.
5265 (add_partial_symbol): Update.
5266 (process_die): Handle DW_TAG_partial_unit.
5267 (read_file_scope): Update comment.
5268 (load_partial_dies): Handle DW_TAG_imported_unit.
5269 (read_partial_die): Handle DW_TAG_partial_unit, DW_AT_import.
5270 (determine_prefix, dwarf2_name): Handle DW_TAG_partial_unit.
5271
5272 2012-05-10 Tom Tromey <tromey@redhat.com>
5273
5274 * cc-with-dwz.sh: New file.
5275
5276 2012-05-10 Tom Tromey <tromey@redhat.com>
5277
5278 * symtab.h (struct symtab) <includes, user>: New fields.
5279 * block.h (struct block_iterator) <d, idx, which>: New fields.
5280 * block.c (initialize_block_iterator, find_iterator_symtab)
5281 (block_iterator_step, block_iter_name_step)
5282 (block_iter_match_step): New functions.
5283 (block_iterator_first, block_iterator_next)
5284 (block_iter_name_first, block_iter_name_next)
5285 (block_iter_match_first, block_iter_match_next): Rewrite.
5286 (get_block_symtab): New function.
5287
5288 2012-05-10 Tom Tromey <tromey@redhat.com>
5289
5290 * jv-lang.c (get_java_class_symtab): Use allocate_global_block,
5291 set_block_symtab.
5292 * jit.c (finalize_symtab): Use allocate_global_block,
5293 set_block_symtab.
5294 * buildsym.c (finish_block_internal): New function, from old
5295 finish_block.
5296 (finish_block): Rewrite.
5297 (end_symtab): Use finish_block_internal, set_block_symtab.
5298 * block.h (struct global_block): New.
5299 (allocate_global_block, set_block_symtab): Declare.
5300 * block.c (allocate_global_block, set_block_symtab): New
5301 functions.
5302
5303 2012-05-10 Tom Tromey <tromey@redhat.com>
5304
5305 * psymtab.c (partial_map_expand_apply): Add assertion.
5306 (partial_map_symtabs_matching_filename): Skip included psymtabs.
5307 (psymtab_to_symtab): Find unshared psymtab.
5308 (dump_psymtab): Print including psymtabs.
5309 (recursively_search_psymtabs): New function.
5310 (expand_symtabs_matching_via_partial): Use it.
5311 * psympriv.h (struct partial_symtab) <user, searched_flag>: New
5312 fields.
5313 (enum psymtab_search_status): New.
5314
5315 2012-05-10 Tom Tromey <tromey@redhat.com>
5316
5317 * tracepoint.c (scope_info): Update.
5318 * symtab.c (lookup_block_symbol, iterate_over_symbols)
5319 (find_pc_sect_symtab, search_symbols)
5320 (default_make_symbol_completion_list_break_on)
5321 (make_file_symbol_completion_list): Update.
5322 * symmisc.c (dump_symtab_1): Update.
5323 * stack.c (print_frame_args, iterate_over_block_locals)
5324 (print_frame_labels, iterate_over_block_arg_vars): Update.
5325 * python/py-block.c (block_object) <dict>: Remove.
5326 <block>: New field.
5327 <iter>: Change type.
5328 (blpy_iter): Update.
5329 (blpy_block_syms_iternext): Update.
5330 * psymtab.c (map_block): Use block iterators.
5331 * objfiles.c (objfile_relocate1): Use ALL_DICT_SYMBOLS.
5332 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
5333 * mdebugread.c (parse_symbol, mylookup_symbol): Update.
5334 * infrun.c (check_exception_resume): Update.
5335 * cp-support.c (make_symbol_overload_list_block): Update.
5336 * coffread.c (patch_opaque_types): Update.
5337 * buildsym.c (finish_block, end_symtab): Use ALL_DICT_SYMBOLS.
5338 * block.h (struct block_iterator): New.
5339 (block_iterator_first, block_iterator_next, block_iter_name_first)
5340 (block_iter_name_next, block_iter_match_first)
5341 (block_iter_match_next): Declare.
5342 (ALL_BLOCK_SYMBOLS): Redefine.
5343 * block.c (block_iterator_first, block_iterator_next)
5344 (block_iter_name_first, block_iter_name_next)
5345 (block_iter_match_first, block_iter_match_next): New functions.
5346 * ada-lang.c (ada_add_block_symbols)
5347 (ada_make_symbol_completion_list): Use block iterator.
5348
5349 2012-05-10 Tom Tromey <tromey@redhat.com>
5350
5351 * psymtab.c (PSYMTAB_TO_SYMTAB): Remove.
5352 (find_pc_sect_symtab_from_partial, lookup_symbol_aux_psymtabs)
5353 (lookup_partial_symbol, find_last_source_symtab_from_partial)
5354 (read_psymtabs_with_filename, map_matching_symbols_psymtab)
5355 (expand_symtabs_matching_via_partial, maintenance_check_symtabs):
5356 Update.
5357
5358 2012-05-10 Joel Brobecker <brobecker@adacore.com>
5359
5360 * config/djgpp/fnchange.lst: Add entries for print-file-var-lib1.c,
5361 print-file-var-lib2.c, print-file-var-main.c and
5362 print-file-var.exp (located in gdb/testsuite/gdb.base).
5363
5364 2012-05-10 Joel Brobecker <brobecker@adacore.com>
5365
5366 * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
5367 try locating the symbol in the symbol's own objfile first, before
5368 extending the search to all objfiles.
5369 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
5370 out of lookup_symbol_aux_symtabs.
5371 (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
5372 Replace extracted-out code by call to lookup_symbol_aux_objfile.
5373 Do not search EXCLUDE_OBJFILE.
5374 (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
5375 (lookup_symbol_global): Search for matches in the block's objfile
5376 first, before searching all other objfiles.
5377
5378 2012-05-10 Tristan Gingold <gingold@adacore.com>
5379
5380 * printcmd.c (set_command): Add pre/post inc/dec.
5381
5382 2012-05-09 Frank Ch. Eigler <fche@redhat.com>
5383
5384 * gdb.1: Document -ex option.
5385
5386 2012-05-09 Joel Brobecker <brobecker@adacore.com>
5387
5388 * infcall.c (call_function_by_hand): Remove AT_SYMBOL handling.
5389 * inferior.h (AT_SYMBOL): Delete.
5390
5391 2012-05-09 Joel Brobecker <brobecker@adacore.com>
5392
5393 * mips-tdep.c (mips_push_dummy_code): New function.
5394 (mips_gdbarch_init): Set the gdbarch call_dummy_location to
5395 ON_STACK and install mips_push_dummy_code as our gdbarch
5396 push_dummy_code routine.
5397
5398 2012-05-09 Pedro Alves <palves@redhat.com>
5399
5400 * target.c (set_maintenance_target_async_permitted): Rename to ...
5401 (set_target_async_command): ... this.
5402 (show_maintenance_target_async_permitted): Rename to ...
5403 (show_target_async_command): ... this.
5404 (initialize_targets): Adjust.
5405
5406 2012-05-08 Doug Evans <dje@google.com>
5407
5408 * go-exp.y (classify_name): Add missing assignment of fields of
5409 yylval.ssym.
5410
5411 2012-05-08 Eli Zaretskii <eliz@gnu.org>
5412
5413 Display the ">" prompt in interactive mode while reading canned
5414 commands, even when the current interpreter is MI.
5415
5416 * interps.c (interp_set_temp): New function.
5417
5418 * interps.h (interp_set_temp): Add prototype.
5419
5420 * cli/cli-script.c (restore_interp): New cleanup function.
5421 (read_command_lines): Temporarily override the current interpreter
5422 with CLI and arrange for restoring the original one.
5423
5424 2012-05-12 Joel Sherrill <joel.sherrill@oarcorp.com>
5425
5426 * microblaze-rom.c (_initialize_picobug_rom): Add prototype.
5427
5428 2012-05-07 Sergio Durigan Junior <sergiodj@redhat.com>
5429
5430 * probe.c (parse_probes): Move conditional to check for
5431 debuginfo files from here...
5432 * stap-probe.c (stap_get_probes): ... to here.
5433
5434 2012-05-07 Mark Kettenis <kettenis@gnu.org>
5435 H.J. Lu <hongjiu.lu@intel.com>
5436
5437 * amd64-tdep.c (amd64_analyze_prologue): Additionally check for
5438 `movl %esp, %ebp' for the X32 ABI.
5439
5440 2012-05-07 Tom Tromey <tromey@redhat.com>
5441
5442 * dwarf2read.c (dwarf_tag_name): Return const char *. Use
5443 get_DW_TAG_name.
5444 (dwarf_attr_name): Return const char *. Use get_DW_AT_name.
5445 (dwarf_form_name): Return const char *. Use get_DW_FORM_name.
5446 (dwarf_stack_op_name): Remove.
5447 (dwarf_cfi_name): Return const char *. Use get_DW_ATE_name.
5448 (decode_locdesc): Use get_DW_OP_name.
5449 * dwarf2loc.c (unimplemented): Use get_DW_OP_name.
5450 (dwarf2_compile_expr_to_ax): Likewise.
5451 (disassemble_dwarf_expression): Likewise.
5452 * dwarf2expr.h: (dwarf_stack_op_name): Remove.
5453
5454 2012-05-07 Chung-Lin Tang <cltang@codesourcery.com>
5455
5456 * sh-linux-tdep.c: Include trad-frame.h and tramp-frame.h.
5457 (sh_linux_sigtramp_cache): New function.
5458 (sh_linux_sigreturn_init): New function.
5459 (sh_linux_rt_sigreturn_init): New function.
5460 (SH_MOVW,SH_TRAP,SH_OR_R0_R0): New symbols for instruction
5461 patterns.
5462 (SH_NR_SIGRETURN,SH_NR_RT_SIGRETURN): New symbols for sigreturn
5463 syscall codes.
5464 (sh_linux_sigreturn_tramp_frame): New tramp_frame definition.
5465 (sh_linux_rt_sigreturn_tramp_frame): Likewise.
5466 (sh_linux_init_abi): Add init calls to register new tramp_frame
5467 definitions under 32-bit SH, update comments.
5468
5469 2012-05-07 Pedro Alves <palves@redhat.com>
5470
5471 PR gdb/10952
5472
5473 * amd64-linux-tdep.c: Include glibc-tdep.h.
5474 (amd64_linux_init_abi): Install glibc_skip_solib_resolver as
5475 gdbarch_skip_solib_resolver callback.
5476
5477 2012-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
5478
5479 * auto-load.c (set_auto_load_safe_path): Reset AUTO_LOAD_SAFE_PATH
5480 back to DEFAULT_AUTO_LOAD_SAFE_PATH if it is being set to "".
5481 (show_auto_load_safe_path): Check any-directory by comparison with "/".
5482 (add_auto_load_safe_path): Change the error message.
5483 (_initialize_auto_load): Change the "safe-path" help text.
5484 * configure: Regenerate
5485 * configure.ac (--without-auto-load-safe-path): Set
5486 WITH_AUTO_LOAD_SAFE_PATH to /.
5487
5488 2012-05-05 Sergio Durigan Junior <sergiodj@redhat.com>
5489
5490 * stap-probe.h: Do not include unecessary `probe.h'.
5491
5492 2012-05-05 Alan Modra <amodra@gmail.com>
5493
5494 * elfread.c (elf_symtab_read): Use bfd_abs_section_ptr and
5495 bfd_und_section_ptr.
5496 * machoread.c (macho_symtab_add_minsym): Use bfd_abs_section_ptr
5497 and bfd_com_section_ptr.
5498
5499 2012-05-04 Joel Brobecker <brobecker@adacore.com>
5500
5501 * MAINTAINERS (Past Maintainers): Add Chris Faylor.
5502
5503 2012-05-04 Joel Brobecker <brobecker@adacore.com>
5504
5505 * windows-nat.h (segment_register_p_ftype): New typedef.
5506 (windows_set_segment_register_p): Add declaration.
5507 * windows-nat.c (segment_register_p): New static global.
5508 (windows_set_segment_register_p): New function.
5509 (do_windows_fetch_inferior_registers): Add special handling
5510 for segment registers.
5511 * amd64-windows-nat.c: #include "amd64-tdep.h".
5512 (amd64_windows_segment_register_p): New function.
5513 (_initialize_amd64_windows_nat): Call windows_set_segment_register_p.
5514 * i386-windows-nat.c: #include "i386-tdep.h".
5515 (i386_windows_segment_register_p): New function.
5516 (_initialize_i386_windows_nat): Call windows_set_segment_register_p.
5517
5518 2012-05-04 Tristan Gingold <gingold@adacore.com>
5519
5520 * printcmd.c (set_command): Emit a warning if the expression is not
5521 an assignment.
5522
5523 2012-05-03 Joel Brobecker <brobecker@adacore.com>
5524
5525 * nto-procfs.c (procfs_find_new_threads, procfs_pid_to_str):
5526 Make static.
5527
5528 2012-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
5529
5530 * stap-probe.c (stap_is_operator): Change declaration.
5531 (stap_get_opcode): Change return value.
5532 (stap_parse_argument_1): Update calls to `stap_get_opcode' and
5533 `stap_parse_argument_1'.
5534
5535 2012-05-03 Pedro Alves <pedro@codesourcery.com>
5536
5537 * infrun.c (displaced_step_fixup): Add "displaced:" prefix to
5538 debug log.
5539
5540 2012-05-03 Siva Chandra Reddy <sivachandra@google.com>
5541
5542 Add two new methods global_block and static_block to gdb.Symtab
5543 objects.
5544 * NEWS (Python scripting): Add entry about the new methods.
5545 * python/py-symtab.c (stpy_global_block): New function which
5546 implements the gdb.Symtab.global_block() method.
5547 (stpy_static_block): New function which implements the
5548 gdb.Symtab.static_block() method.
5549 (symtab_object_methods): Add entries for the two new methods.
5550
5551 2012-05-03 Doug Evans <dje@google.com>
5552
5553 * dwarf2read.c (dw2_find_symbol_file): Don't crash if there are no
5554 files.
5555
5556 2012-05-03 Yao Qi <yao@codesourcery.com>
5557
5558 * i386-tdep.c (i386_fetch_pointer_argument): Remove extra
5559 space.
5560 (i386_process_record): Ditto.
5561
5562 2012-05-02 Joel Brobecker <brobecker@adacore.com>
5563
5564 * infcall.c (unwind_on_signal_p): Make static.
5565
5566 2012-05-02 Joel Brobecker <brobecker@adacore.com>
5567
5568 * sol-thread.c (solaris_pid_to_str): Make static.
5569 (_initialize_sol_thread): Add prototype.
5570
5571 2012-05-02 Joel Brobecker <brobecker@adacore.com>
5572
5573 * sol-thread.c (procfs_pid_to_str): Delete extern declaration.
5574
5575 2012-05-02 Christopher Faylor <me.cygwin2012@cgf.cx>
5576
5577 * MAINTAINERS: Remove myself.
5578
5579 2012-05-02 Jan Kratochvil <jan.kratochvil@redhat.com>
5580
5581 Fix --without-auto-load-safe-path for MS-Windows host platform.
5582 * auto-load.c (filename_is_in_dir): Return 1 for DIR_LEN 0.
5583
5584 2012-05-02 Eli Zaretskii <eliz@gnu.org>
5585
5586 * gdb_curses.h: Undefine KEY_EVENT before including curses
5587 headers. Move "#undef MOUSE_MOVED" before any curses header
5588 inclusion.
5589
5590 2012-05-02 Sergio Durigan Junior <sergiodj@gmail.com>
5591
5592 * features/i386/i386-mmx-linux.c: Regenerate.
5593 * features/rs6000/powerpc-32.c: Likewise.
5594 * features/rs6000/powerpc-32l.c: Likewise.
5595 * features/rs6000/powerpc-403.c: Likewise.
5596 * features/rs6000/powerpc-403gc.c: Likewise.
5597 * features/rs6000/powerpc-405.c: Likewise.
5598 * features/rs6000/powerpc-505.c: Likewise.
5599 * features/rs6000/powerpc-601.c: Likewise.
5600 * features/rs6000/powerpc-602.c: Likewise.
5601 * features/rs6000/powerpc-603.c: Likewise.
5602 * features/rs6000/powerpc-604.c: Likewise.
5603 * features/rs6000/powerpc-64.c: Likewise.
5604 * features/rs6000/powerpc-64l.c: Likewise.
5605 * features/rs6000/powerpc-750.c: Likewise.
5606 * features/rs6000/powerpc-860.c: Likewise.
5607 * features/rs6000/powerpc-e500.c: Likewise.
5608 * features/rs6000/powerpc-e500l.c: Likewise.
5609 * features/rs6000/powerpc-isa205-32l.c: Likewise.
5610 * features/rs6000/powerpc-isa205-64l.c: Likewise.
5611 * features/rs6000/rs6000.c: Likewise.
5612
5613 2012-05-02 Sergio Durigan Junior <sergiodj@gmail.com>
5614
5615 * i386-tdep.c (i386_stap_parse_special_token) <s>: Remove unused
5616 variable.
5617 * stap-probe.c (stap_parse_single_operand) <reg_suffix,
5618 reg_ind_suffix, reg_suffix_len, reg_ind_suffix_len>: Likewise.
5619 (stap_parse_argument) <e>: Likewise.
5620 (handle_stap_probe) <byte_order>: Likewise.
5621
5622 2012-04-30 Doug Evans <dje@google.com>
5623
5624 * dwarf2read.c (init_cutu_and_read_dies): Renamed from
5625 init_and_read_dies_worker. All callers updated.
5626 (init_cu_and_read_dies, init_tu_and_read_dies): Delete. All calls
5627 replaced with init_cutu_and_read_dies.
5628 (load_partial_comp_unit): Pass 1 for use_existing_cu.
5629 (find_partial_die): Remove FIXME. Don't free current CU.
5630
5631 2012-04-30 Sterling Augustine <saugustine@google.com>
5632
5633 * contrib: New directory.
5634 * contrib/test_pubnames_and_indexes.py: New file.
5635
5636 2012-04-30 Doug Evans <dje@google.com>
5637
5638 * dwarf2read.c (dwarf_decode_macros): New arg section_name.
5639 All callers updated.
5640 (init_cu_die_reader): Verify the section is non-empty.
5641 (dwarf_decode_line_header): Don't dereference section->asection
5642 until we know the section is present.
5643
5644 2012-04-29 Sergio Durigan Junior <sergiodj@redhat.com>
5645
5646 * tracepoint.c (start_tracing, stop_tracing): Checking for NULL
5647 probes.
5648
5649 2012-04-29 Yao Qi <yao@codesourcery.com>
5650
5651 * gdb-code-style.el: New hook gdb-markup-hook
5652 and gdb-comment-hook.
5653
5654 2012-04-28 Doug Evans <dje@google.com>
5655
5656 Initial support for Fission. http://gcc.gnu.org/wiki/DebugFission
5657 * symfile.c (default_symfile_relocate): Use sectp->owner instead of
5658 objfile->obfd.
5659 * symfile.h (dwarf2_debug_sections): New member addr.
5660 * dwarf2expr.c (execute_stack_op): New case DW_OP_GNU_addr_index.
5661 (ctx_no_get_addr_index): New function.
5662 * dwarf2expr.h (dwarf_expr_context_funcs): New member get_addr_index.
5663 (ctx_no_get_addr_index): Declare.
5664 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): Update.
5665 * dwarf2loc.c (dwarf_expr_get_addr_index): New function.
5666 (dwarf_expr_ctx_funcs): Update.
5667 (needs_get_addr_index): New function.
5668 (needs_frame_ctx_funcs): Update.
5669 * dwarf2loc.h (dwarf2_read_addr_index): Declare.
5670 * dwarf2read.c: #include "gdbcore.h".
5671 (dwarf2_per_objfile): New members addr, dwo_files.
5672 (dwarf2_elf_names): Add entry for addr.
5673 (struct dwo_section_names): New type.
5674 (dwo_section_names): New static global.
5675 (dwarf2_cu): New members dwo_unit, addr_base, have_addr_base.
5676 (dwarf2_per_cu_data): New member is_debug_types, all boolean uses of
5677 old debug_types_section member updated to use this.
5678 Rename member debug_types_section to info_or_types_section,
5679 all uses updated.
5680 (signatured_type): Rename member type_offset to type_offset_in_tu,
5681 all uses updated. New member type_offset_in_section.
5682 (struct dwo_sections): New type.
5683 (struct dwo_unit): New type.
5684 (struct dwo_file): New type.
5685 (die_reader_specs): New member dwo_file.
5686 (dwarf2_locate_sections): Watch for .debug_addr.
5687 (zlib_decompress_section): Use sectp->owner instead of objfile->obfd.
5688 (dwarf2_read_section): Get bfd of section from bfd's asection,
5689 instead of objfile.
5690 (create_cus_from_index): Initialize the_cu->info_or_types_section.
5691 (create_signatured_type_table_from_index): Initialize
5692 sig_type->info_or_types_section.
5693 (dw2_get_file_names): Statement lists for type units with DWO files
5694 live in the DWO file.
5695 (create_debug_types_hash_table): New function.
5696 (create_all_type_units): Rewrite.
5697 (init_cu_die_reader): New arg dwo_file, all callers updated.
5698 (init_and_read_dies_worker): Get section from
5699 this_cu->info_or_types_section. Set sig_type->type_offset_in_section.
5700 Watch for DW_AT_GNU_dwo_name and if present lookup the file and
5701 continue reading the CU/TU from there.
5702 (init_cutu_and_read_dies_no_follow): New arg dwo_file, all callers
5703 updated. Get section from this_cu->info_or_types_section.
5704 (create_all_comp_units): Initialize this_cu->info_or_types_section.
5705 (skip_one_die): New cases DW_FORM_GNU_addr_index,
5706 DW_FORM_GNU_str_index.
5707 (hash_dwo_file, eq_dwo_file): New functions.
5708 (allocate_dwo_file_hash_table): New function.
5709 (hash_dwo_unit, eq_dwo_unit): New functions.
5710 (allocate_dwo_unit_table): New function.
5711 (dwarf2_locate_dwo_sections): New function.
5712 (struct create_dwo_info_table_data): New type.
5713 (create_debug_info_hash_table_reader): New function.
5714 (create_debug_info_hash_table): New function.
5715 (try_open_dwo_file, open_dwo_file, init_dwo_file): New function.
5716 (lookup_dwo_file): New function.
5717 (lookup_dwo_comp_unit, lookup_dwo_type_unit): New functions.
5718 (free_dwo_file, free_dwo_file_cleanup): New functions.
5719 (free_dwo_file_from_slot, free_dwo_files): New functions.
5720 (dwarf2_get_pc_bounds): Handle DW_FORM_GNU_addr_index.
5721 (dwarf2_record_block_ranges): Ditto.
5722 (read_partial_die): Ditto.
5723 (process_enumeration_scope): Update to use type_offset_in_section.
5724 (read_full_die_1): New function.
5725 (read_full_die): Rewrite.
5726 (read_attribute_value): New cases DW_FORM_GNU_addr_index,
5727 DW_FORM_GNU_str_index.
5728 (read_addr_index_1, read_addr_index): New functions.
5729 (read_addr_index_from_leb128): New function.
5730 (struct dwarf2_read_addr_index_data): New type.
5731 (dwarf2_read_addr_index_reader): New function.
5732 (dwarf2_read_addr_index): New function.
5733 (read_str_index): New function.
5734 (leb128_size): New function.
5735 (dwarf_decode_line_header): Delete arg abfd, all callers updated.
5736 If processing a type unit from a DWO file, get the line section
5737 from the DWO file.
5738 (var_decode_location): Watch for DW_OP_GNU_addr_index.
5739 (dwarf2_const_value_attr): New cases DW_FORM_GNU_addr_index,
5740 DW_FORM_GNU_str_index.
5741 (lookup_die_type): Check whether section offset of type's die is
5742 known before looking it up. Remove assert. Condition can
5743 legimately happen for inter-cu type references.
5744 (dwarf_attr_name): Handle Fission attributes.
5745 (dwarf_form_name): Handle Fission forms.
5746 (dump_die_shallow): New cases DW_FORM_GNU_addr_index,
5747 DW_FORM_GNU_str_index.
5748 (follow_die_sig): Update to use type_offset_in_section.
5749 (decode_locdesc): New case DW_OP_GNU_addr_index.
5750 (skip_form_bytes): New cases DW_FORM_GNU_addr_index,
5751 DW_FORM_GNU_str_index.
5752 (cu_debug_loc_section): New function.
5753 (fill_in_loclist_baton, dwarf2_symbol_mark_computed): Call it.
5754 (dwarf2_per_objfile_free): Unmap .debug_addr section.
5755 Free DWO files if present.
5756 * xcoffread.c (dwarf2_xcoff_names): Add .debug_addr.
5757
5758 Refactor DIE reading.
5759 * dwarf2read.c (dwarf2_per_objfile): Replace members
5760 debug_info_type_hash and debug_types_type_hash with die_type_hash.
5761 (die_reader_specs): New member "die_section". Temporarily make
5762 member "buffer" non-const, pending constifying all info_ptr uses.
5763 (die_reader_func_ftype): New typedef.
5764 (dw2_get_file_names_reader): New function.
5765 (dw2_get_file_names): Rewrite.
5766 (read_and_check_type_unit_head): Rename arg type_offset to
5767 type_offset_in_tu.
5768 (create_all_type_units): Improve debugging message.
5769 Improve dummy type unit check.
5770 (init_cu_die_reader): New arg "section". All callers updated.
5771 (init_and_read_dies_worker): New function.
5772 (init_cu_and_read_dies, init_tu_and_read_dies): New functions.
5773 (init_cutu_and_read_dies_no_follow): New function.
5774 (init_cutu_and_read_dies_simple): New function.
5775 (process_psymtab_comp_unit_reader): New function.
5776 (process_psymtab_comp_unit): Delete args section,
5777 is_debug_types_section. Rewrite. All callers updated.
5778 (process_psymtab_type_unit): Renamed from process_type_comp_unit.
5779 All callers updated. Rewrite.
5780 (load_partial_comp_unit_reader): New function.
5781 (load_partial_comp_unit): Rewrite.
5782 (skip_children): New arg reader. Delete args buffer, cu.
5783 All callers updated.
5784 (skip_one_die): New arg reader. Delete args buffer, cu.
5785 All callers updated.
5786 (locate_pdi_sibling): New arg reader. Delete args buffer, abfd, cu.
5787 All callers updated.
5788 (load_full_comp_unit_reader): New function.
5789 (load_full_comp_unit): Rewrite.
5790 (read_comp_unit): Delete.
5791 (read_die_and_children_1): Delete, contents moved ...
5792 (read_die_and_children): ... here.
5793 (dwarf2_read_abbrevs): New arg abbrev_section. All callers updated.
5794 (load_partial_dies): New arg reader. Delete args abfd, buffer, cu.
5795 All callers updated.
5796 (read_partial_die): New arg reader. Delete args abfd, buffer, cu.
5797 All callers updated.
5798 (find_partial_die): Rewrite load_all_dies support.
5799 (read_attribute_value): New arg reader. Delete args abfd, cu.
5800 All callers updated.
5801 (read_attribute): New arg reader. Delete args abfd, cu.
5802 All callers updated.
5803 (load_full_type_unit): Add assert.
5804 (read_signatured_type_reader): New function.
5805 (read_signatured_type): Rewrite.
5806 (free_stack_comp_unit): Remove call to age_cached_comp_units.
5807 (free_one_cached_comp_unit): Change target_cu arg to target_per_cu.
5808 All callers updated. Set per_cu->cu = NULL after freeing it.
5809 (dwarf2_per_cu_offset_and_type): Renamed from dwarf2_offset_and_type.
5810 (per_cu_offset_and_type_hash): Renamed from offset_and_type_hash.
5811 (per_cu_offset_and_type_eq): Renamed from offset_and_type_eq.
5812 (set_die_type): Update.
5813 (get_die_type_at_offset): Update.
5814 (read_file_scope): Call prepare_one_comp_unit.
5815 (read_type_unit_scope): Ditto.
5816 (prepare_one_comp_unit): Set producer if present.
5817
5818 2012-04-28 Sergio Durigan Junior <sergiodj@redhat.com>
5819
5820 * probe.c (compile_rx_or_error): Silence ARI warning about missing
5821 gettext function on `error'.
5822
5823 2012-04-27 Doug Evans <dje@google.com>
5824
5825 * dwarf2read.c (dwarf2_read_index): Don't use index if symbol table
5826 is empty.
5827
5828 2012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
5829 Tom Tromey <tromey@redhat.com>
5830
5831 * breakpoint.c (struct breakpoint_objfile_data)
5832 <longjmp_searched>,<longjmp_probes>,<exception_searched>,
5833 <exception_probes>: New fields.
5834 (free_breakpoint_probes): New function.
5835 (create_longjmp_master_breakpoint): Prefer SystemTap probe over
5836 `_Unwind_DebugHook'.
5837 (create_exception_master_breakpoint): Likewise.
5838 (_initialize_breakpoint): Registering cleanup for SystemTap probes.
5839 * infrun.c: Including necessary header files for handling SystemTap
5840 probes.
5841 (handle_inferior_event): Handling longjmp breakpoint and exceptions
5842 via SystemTap probes.
5843 (check_exception_resume): Remove `func' argument. Handle exception
5844 unwinding breakpoint set via a SystemTap probe.
5845 (insert_exception_resume_from_probe): New function.
5846
5847 2012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
5848 Tom Tromey <tromey@redhat.com>
5849 Jan Kratochvil <jan.kratochvil@redhat.com>
5850
5851 * Makefile.in (SFILES): Add `probe' and `stap-probe'.
5852 (COMMON_OBS): Likewise.
5853 (HFILES_NO_SRCDIR): Add `probe'.
5854 * NEWS: Mention support for static and SystemTap probes.
5855 * amd64-tdep.c (amd64_init_abi): Initializing proper fields used by
5856 SystemTap probes' arguments parser.
5857 * arm-linux-tdep.c: Including headers needed to perform the parsing
5858 of SystemTap probes' arguments.
5859 (arm_stap_is_single_operand): New function.
5860 (arm_stap_parse_special_token): Likewise.
5861 (arm_linux_init_abi): Initializing proper fields used by SystemTap
5862 probes' arguments parser.
5863 * ax-gdb.c (require_rvalue): Removing static declaration.
5864 (gen_expr): Likewise.
5865 * ax-gdb.h (gen_expr): Declaring function.
5866 (require_rvalue): Likewise.
5867 * breakpoint.c: Include `gdb_regex.h' and `probe.h'.
5868 (bkpt_probe_breakpoint_ops): New variable.
5869 (momentary_breakpoint_from_master): Set the `probe' value.
5870 (add_location_to_breakpoint): Likewise.
5871 (break_command_1): Using proper breakpoint_ops according to the
5872 argument passed by the user in the command line.
5873 (bkpt_probe_insert_location): New function.
5874 (bkpt_probe_remove_location): Likewise.
5875 (bkpt_probe_create_sals_from_address): Likewise.
5876 (bkpt_probe_decode_linespec): Likewise.
5877 (tracepoint_probe_create_sals_from_address): Likewise.
5878 (tracepoint_probe_decode_linespec): Likewise.
5879 (tracepoint_probe_breakpoint_ops): New variable.
5880 (trace_command): Using proper breakpoint_ops according to the
5881 argument passed by the user in the command line.
5882 (initialize_breakpoint_ops): Initializing breakpoint_ops for
5883 static probes on breakpoints and tracepoints.
5884 * breakpoint.h (struct bp_location) <probe>: New field.
5885 * cli-utils.c (skip_spaces_const): New function.
5886 (extract_arg): Likewise.
5887 * cli-utils.h (skip_spaces_const): Likewise.
5888 (extract_arg): Likewise.
5889 * coffread.c (coff_sym_fns): Add `sym_probe_fns' value.
5890 * configure.ac: Append `stap-probe.o' to be generated when ELF
5891 support is present.
5892 * configure: Regenerate.
5893 * dbxread.c (aout_sym_fns): Add `sym_probe_fns' value.
5894 * elfread.c: Include `probe.h' and `arch-utils.h'.
5895 (probe_key): New variable.
5896 (elf_get_probes): New function.
5897 (elf_get_probe_argument_count): Likewise.
5898 (elf_evaluate_probe_argument): Likewise.
5899 (elf_compile_to_ax): Likewise.
5900 (elf_symfile_relocate_probe): Likewise.
5901 (stap_probe_key_free): Likewise.
5902 (elf_probe_fns): New variable.
5903 (elf_sym_fns): Add `sym_probe_fns' value.
5904 (elf_sym_fns_lazy_psyms): Likewise.
5905 (elf_sym_fns_gdb_index): Likewise.
5906 (_initialize_elfread): Initialize objfile cache for static
5907 probes.
5908 * gdb_vecs.h (struct probe): New forward declaration.
5909 (probe_p): New VEC declaration.
5910 * gdbarch.c: Regenerate.
5911 * gdbarch.h: Regenerate.
5912 * gdbarch.sh (stap_integer_prefix): New variable.
5913 (stap_integer_suffix): Likewise.
5914 (stap_register_prefix): Likewise.
5915 (stap_register_suffix): Likewise.
5916 (stap_register_indirection_prefix): Likewise.
5917 (stap_register_indirection_suffix): Likewise.
5918 (stap_gdb_register_prefix): Likewise.
5919 (stap_gdb_register_suffix): Likewise.
5920 (stap_is_single_operand): New function.
5921 (stap_parse_special_token): Likewise.
5922 (struct stap_parse_info): Forward declaration.
5923 * i386-tdep.c: Including headers needed to perform the parsing
5924 of SystemTap probes' arguments.
5925 (i386_stap_is_single_operand): New function.
5926 (i386_stap_parse_special_token): Likewise.
5927 (i386_elf_init_abi): Initializing proper fields used by SystemTap
5928 probes' arguments parser.
5929 * i386-tdep.h (i386_stap_is_single_operand): New function.
5930 (i386_stap_parse_special_token): Likewise.
5931 * machoread.c (macho_sym_fns): Add `sym_probe_fns' value.
5932 * mipsread.c (ecoff_sym_fns): Likewise.
5933 * objfiles.c (objfile_relocate1): Support relocation for static
5934 probes.
5935 * parse.c (prefixify_expression): Remove static declaration.
5936 (initialize_expout): Likewise.
5937 (reallocate_expout): Likewise.
5938 * parser-defs.h (initialize_expout): Declare function.
5939 (reallocate_expout): Likewise.
5940 (prefixify_expression): Likewise.
5941 * ppc-linux-tdep.c: Including headers needed to perform the parsing
5942 of SystemTap probes' arguments.
5943 (ppc_stap_is_single_operand): New function.
5944 (ppc_stap_parse_special_token): Likewise.
5945 (ppc_linux_init_abi): Initializing proper fields used by SystemTap
5946 probes' arguments parser.
5947 * probe.c: New file, for generic statically defined probe support.
5948 * probe.h: Likewise.
5949 * s390-tdep.c: Including headers needed to perform the parsing of
5950 SystemTap probes' arguments.
5951 (s390_stap_is_single_operand): New function.
5952 (s390_gdbarch_init): Initializing proper fields used by SystemTap
5953 probes' arguments parser.
5954 * somread.c (som_sym_fns): Add `sym_probe_fns' value.
5955 * stap-probe.c: New file, for SystemTap probe support.
5956 * stap-probe.h: Likewise.
5957 * symfile.h: Include `gdb_vecs.h'.
5958 (struct sym_probe_fns): New struct.
5959 (struct sym_fns) <sym_probe_fns>: New field.
5960 * symtab.c (init_sal): Initialize `probe' field.
5961 * symtab.h (struct probe): Forward declaration.
5962 (struct symtab_and_line) <probe>: New field.
5963 * tracepoint.c (start_tracing): Adjust semaphore on breakpoints
5964 locations.
5965 (stop_tracing): Likewise.
5966 * xcoffread.c (xcoff_sym_fns): Add `sym_probe_fns' value.
5967
5968 2012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
5969 Tom Tromey <tromey@redhat.com>
5970
5971 * ax-gdb.c (gen_expr): Clean up code to handle internal variables
5972 and to compile agent expressions.
5973 * infrun.c (siginfo_make_value): New argument `ignore'.
5974 (siginfo_funcs): New struct.
5975 (_initialize_infrun): New argument when calling
5976 `create_internalvar_type_lazy'.
5977 * thread.c (thread_id_make_value): New argument `ignore'.
5978 (thread_funcs): New struct.
5979 (_initialize_thread): New argument when calling
5980 `create_internalvar_type_lazy'.
5981 * tracepoint.c (sdata_make_value): New argument `ignore'.
5982 (sdata_funcs): New struct.
5983 (_initialize_tracepoint): New argument when calling
5984 `create_internalvar_type_lazy'.
5985 * value.c (make_value): New struct.
5986 (create_internalvar_type_lazy): New argument `data'.
5987 (compile_internalvar_to_ax): New function.
5988 (value_of_internalvar): Properly handling `make_value' case.
5989 (clear_internalvar): Likewise.
5990 (show_convenience): Adding `TRY_CATCH' block.
5991 * value.h (internalvar_make_value): Delete, replace by...
5992 (struct internalvar_funcs): ... this.
5993 (create_internalvar_type_lazy) <fun>: Delete argument.
5994 (create_internalvar_type_lazy) <funcs>, <data>: New arguments.
5995 (compile_internalvar_to_ax): New function.
5996 * windows-tdep.c (tlb_make_value): New argument `ignore'.
5997 (tlb_funcs): New struct.
5998 (_initialize_windows_tdep): New argument when calling
5999 `create_internalvar_type_lazy'.
6000
6001 2012-04-27 Mark Wielaard <mjw@redhat.com>
6002
6003 * dwarf2read.c (dwarf2_get_pc_bounds): Check DW_AT_high_pc form to
6004 see whether it is an address or a constant offset from DW_AT_low_pc.
6005 (dwarf2_record_block_ranges): Likewise.
6006 (read_partial_die): Likewise.
6007
6008 2012-04-26 Mark Wielaard <mjw@redhat.com>
6009
6010 * MAINTAINERS (Write After Approval): Add myself to the list.
6011
6012 2012-04-26 Maciej W. Rozycki <macro@codesourcery.com>
6013
6014 * proc-utils.h (proc_prettyprint_signalset): New prototype.
6015 (proc_prettyprint_signal): Likewise.
6016 (proc_prettyprint_faultset): Likewise.
6017 (proc_prettyprint_fault): Likewise.
6018 (proc_prettyprint_actionset): Likewise.
6019 (proc_prettyprint_flags): Move to new proc-flags.c section.
6020 (proc_prettyfprint_flags): New prototype.
6021 * procfs.c (proc_nsysarg, proc_sysargs): Add prototypes.
6022 (proc_syscall, proc_cursig): Likewise.
6023 (proc_set_kill_on_last_close): Likewise.
6024 (proc_unset_kill_on_last_close): Likewise.
6025 (proc_set_watchpoint): Make static.
6026 (proc_delete_dead_threads): Likewise.
6027 (procfs_set_watchpoint): Likewise.
6028 (_initialize_procfs): Add prototype.
6029 * proc-events.c: Include proc-utils.h.
6030 (init_syscall_table): Make static.
6031 * proc-api.c (_initialize_proc_api): Add prototype.
6032 * proc-flags.c: Include proc-utils.h.
6033
6034 2012-04-26 Maciej W. Rozycki <macro@codesourcery.com>
6035
6036 * configure.ac: Add AC_ARG_PROGRAM.
6037 * configure: Regenerate.
6038
6039 2012-04-26 Jan Kratochvil <jan.kratochvil@redhat.com>
6040
6041 Fix DW_AT_lower_bound defaults for DWARF-4+.
6042 * dwarf2read.c (read_subrange_type): Remove initialization of low and
6043 high. New variable low_default_is_valid. Implement DWARF-4+
6044 DW_AT_lower_bound defaults. Print complaint for DW_AT_lower_bound with
6045 no default by the DWARF standard.
6046
6047 2012-04-26 Maciej W. Rozycki <macro@mips.com>
6048 Maciej W. Rozycki <macro@codesourcery.com>
6049
6050 * infrun.c (handle_inferior_event): Move the check for return
6051 trampolines ahead of the check for function trampolines.
6052 * mips-tdep.h (MIPS_S2_REGNUM, MIPS_GP_REGNUM): New macros.
6053 * mips-tdep.c (mips_str_mips16_call_stub): New variable.
6054 (mips_str_mips16_ret_stub): Likewise.
6055 (mips_str_call_fp_stub): Likewise.
6056 (mips_str_call_stub): Likewise.
6057 (mips_str_fn_stub): Likewise.
6058 (mips_str_pic): Likewise.
6059 (mips_in_frame_stub): New function.
6060 (mips_unwind_pc): Return the return address rather than the PC
6061 if the PC of an intermediate frame is inside a call thunk.
6062 (mips_is_stub_suffix): New function.
6063 (mips_is_stub_mode): Likewise.
6064 (mips_get_mips16_fn_stub_pc): Likewise.
6065 (mips_skip_mips16_trampoline_code): Update to handle all the
6066 currently generated stub types. Don't recurse into __fn_stub
6067 thunks. Remove heuristics to handle stubs beyond etext/_etext.
6068 Use cooked register accesses.
6069 (mips_in_return_stub): Reintroduce function.
6070 (mips_skip_trampoline_code): Traverse trampolines recursively.
6071 (mips_gdbarch_init): Handle MIPS16 return trampolines.
6072
6073 2012-04-26 Joel Brobecker <brobecker@adacore.com>
6074
6075 GDB 7.4.1 released.
6076
6077 2012-04-26 Jonathan Larmour <jifl@eCosCentric.com>
6078
6079 * arm-tdep.h (VFP_REGISTER_SIZE): Define.
6080 * features/arm-with-m-vfp-d16.xml: New file. Describes
6081 Cortex-M with VFPv4-sp-d16 FPU register layout.
6082 * features/Makefile (WHICH): Add arm-with-m-vfp-d16.
6083 * features/arm-with-m-vfp-d16.c: New. Generated from above.
6084 * arm-tdep.c: Include arm-with-m-vfp-d16.c.
6085 (arm-register_g_packet_guesses): Add vfp-d16 guess.
6086 (_initialise_arm_tdep): Initialize arm-with-m-vfp-d16 tdesc.
6087
6088 2012-04-25 Doug Evans <dje@google.com>
6089
6090 * cli/cli-decode.c (print_doc_line): Use stream instead of
6091 current_uiout.
6092
6093 2012-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
6094
6095 * features/arm-with-iwmmxt.c: Regenerate.
6096 * features/arm-with-m-fpa-layout.c: Likewise.
6097 * features/arm-with-m.c: Likewise.
6098 * features/arm-with-neon.c: Likewise.
6099 * features/arm-with-vfpv2.c: Likewise.
6100 * features/arm-with-vfpv3.c: Likewise.
6101 * features/mips-dsp-linux.c: Likewise.
6102 * features/mips-linux.c: Likewise.
6103 * features/mips64-dsp-linux.c: Likewise.
6104 * features/mips64-linux.c: Likewise.
6105 * features/s390-linux32.c: Likewise.
6106 * features/s390-linux32v1.c: Likewise.
6107 * features/s390-linux32v2.c: Likewise.
6108 * features/s390-linux64.c: Likewise.
6109 * features/s390-linux64v1.c: Likewise.
6110 * features/s390-linux64v2.c: Likewise.
6111 * features/s390x-linux64.c: Likewise.
6112 * features/s390x-linux64v1.c: Likewise.
6113 * features/s390x-linux64v2.c: Likewise.
6114 * features/tic6x-c62x-linux.c: Likewise.
6115 * features/tic6x-c62x.c: Likewise.
6116 * features/tic6x-c64x-linux.c: Likewise.
6117 * features/tic6x-c64x.c: Likewise.
6118 * features/tic6x-c64xp-linux.c: Likewise.
6119 * features/tic6x-c64xp.c: Likewise.
6120 * target-descriptions.c: Only generate `field_type' and `type'
6121 variables when needed.
6122
6123 2012-04-25 Fredrik Hederstierna <fredrikh.hederstierna@securitas-direct.com>
6124
6125 * cli/cli-cmds.c (cd_command): Use memmove instead of strcpy.
6126
6127 2012-04-25 Doug Evans <dje@google.com>
6128
6129 Initial pass at Go language support.
6130 * NEWS: Mention Go.
6131 * Makefile.in (SFILES): Add go-exp.y, go-lang.c, go-typeprint.c,
6132 go-valprint.c.
6133 (COMMON_OBS): Add go-lang.o, go-val.print.o, go-typeprint.o.
6134 (YYFILES): Add go-exp.c.
6135 (YYOBJ): Add go-exp.o.
6136 (local-maintainer-clean): Delete go-exp.c.
6137 * defs.h (enum language): Add language_go.
6138 * dwarf2read.c: #include "go-lang.h".
6139 (fixup_go_packaging): New function.
6140 (process_full_comp_unit): Call it when processing Go CUs.
6141 (dwarf2_physname): Add Go support.
6142 (read_file_scope): Handle missing language spec for GNU Go.
6143 (set_cu_language): Handle DW_LANG_Go.
6144 * go-exp.y: New file.
6145 * go-lang.h: New file.
6146 * go-lang.c: New file.
6147 * go-typeprint.c: New file.
6148 * go-valprint.c: New file.
6149 * symtab.c: #include "go-lang.h".
6150 (symbol_set_language): Handle language_go.
6151 (symbol_find_demangled_name, symbol_set_names): Ditto.
6152 (symbol_natural_name, demangle_for_lookup, find_main_name): Ditto.
6153
6154 2012-04-24 Jim Meyering <meyering@redhat.com>
6155
6156 avoid a few strncpy-induced buffer overruns
6157 * procfs.c (procfs_make_note_section): Be sure to NUL-terminate
6158 fname and psargs before trying to concatenate.
6159 * tui/tui-stack.c (tui_get_function_from_frame): NUL-terminate
6160 "name" before applying strchr.
6161
6162 2012-04-25 Siva Chandra Reddy <sivachandra@google.com>
6163
6164 * CONTRIBUTE: Use unified diff instead of context diff when
6165 generating patches.
6166
6167 2012-04-24 Maciej W. Rozycki <macro@codesourcery.com>
6168
6169 * mips-tdep.c (mips_about_to_return): Remove dead MIPS16 support
6170 code. Handle JR.HB correctly.
6171
6172 2012-04-24 Maciej W. Rozycki <macro@codesourcery.com>
6173
6174 * mips-tdep.c
6175 (is_mips16_addr, unmake_mips16_addr, make_mips16_addr): Group
6176 with the other MIPS16 helpers.
6177
6178 2012-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
6179
6180 * observer.sh: Conditionally declare `args', thus cleaning up
6181 unused instances of this variable.
6182
6183 2012-04-24 Yao Qi <yao@codesourcery.com>
6184
6185 Revert this patch to allow breakpoint always-inserted
6186 in record target.
6187 2011-12-05 Pedro Alves <pedro@codesourcery.com>
6188 * breakpoint.c: Include record.h.
6189 (breakpoints_always_inserted_mode): Return false when the record
6190 target is in use.
6191
6192 * breakpoint.c (iterate_over_bp_locations): New.
6193 * breakpoint.h: Declare.
6194 New typedef walk_bp_location_callback.
6195 * record.c (record_open): Call record_init_record_breakpoints.
6196 (record_sync_record_breakpoints): New.
6197 (record_init_record_breakpoints): New.
6198 * NEWS: Mention supporting breakpoint always-inserted mode in
6199 record target.
6200
6201 2012-04-24 Marc Khouzam <marc.khouzam@ericsson.com>
6202
6203 * mi/mi-main.c (mi_cmd_execute): Choose a live thread not just
6204 any thread.
6205
6206 2012-04-24 Yao Qi <yao@codesourcery.com>
6207
6208 * breakpoint.c (ep_is_catchpoint): Renamed to ...
6209 (is_catchpoint): ... it.
6210 (print_one_breakpoint_location): Caller update.
6211 * breakpoint.h: Update declaration.
6212
6213 2012-04-23 David S. Miller <davem@davemloft.net>
6214
6215 * configure.tgt (sparc-*-linux*): Set build_gdbserver to yes.
6216
6217 2012-04-23 Tom Tromey <tromey@redhat.com>
6218
6219 * buildsym.c (add_free_pendings): Remove.
6220 * buildsym.h (add_free_pendings): Remove.
6221
6222 2012-04-23 Doug Evans <dje@google.com>
6223
6224 * dwarf2read.c (partial_die_full_name): Record DW_FORM_ref_addr in
6225 attr.u.unsnd instead of attr.u.addr.
6226 (read_attribute_value) Ditto for cases DW_FORM_ref_addr,
6227 DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4, DW_FORM_reg8,
6228 DW_FORM_ref_udata.
6229 (dump_die_shallow): Update cases DW_FORM_ref_addr,
6230 DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4. Add cases DW_FORM_ref8,
6231 DW_FORM_ref_udata.
6232 (dwarf2_get_ref_die_offset): Use DW_UNSND for reference attributes.
6233
6234 2012-04-23 Maciej W. Rozycki <macro@codesourcery.com>
6235
6236 * mips-tdep.c (mips_n32n64_return_value): Fix coding style.
6237 (mips_o32_return_value): Likewise.
6238 (mips_o64_return_value): Likewise.
6239
6240 2012-04-21 Paul Hilfinger <hilfinger@adacore.com>
6241
6242 * ada-lang.c (ada_evaluate_subexp): Add cases for
6243 TYPE_CODE_INTERNAL_FUNCTION and for TYPE_GNU_IFUNC, following
6244 their treatment in eval.c.
6245
6246 2012-04-21 David S. Miller <davem@davemloft.net>
6247
6248 * sparc-tdep.c (X_DISP10): Define.
6249 (sparc_analyze_control_transfer): Handle compare-and-branch.
6250
6251 2012-04-21 Jonathan Larmour <jifl@eCosCentric.com>
6252
6253 * features/Makefile (WHICH): Add arm-with-m and arm-with-m-fpa-layout.
6254 * arm-tdep.c (arm_register_g_packet_guesses): Fix comment.
6255
6256 2012-04-20 Nigel Stephens <nigel@mips.com>
6257 Maciej W. Rozycki <macro@codesourcery.com>
6258
6259 * mips-tdep.c (mips_float_register_p): New function.
6260 (mips_convert_register_float_case_p): Use mips_float_register_p.
6261 (mips_register_type): Likewise.
6262 (mips_print_register): Likewise.
6263 (print_gp_register_row): Likewise.
6264 (mips_print_registers_info): Likewise.
6265
6266 2012-04-20 Shun-Yen Lu <dark.asparagus@gmail.com>
6267
6268 * mips-tdep.c (mips_elf_make_msymbol_special): Fix identification
6269 of mips16 symbols.
6270
6271 2012-04-20 Andrew Pinski <apinski@cavium.com>
6272
6273 * MAINTAINERS (Write After Approval): Add myself to the list.
6274
6275 2012-04-20 Sergio Durigan Junior <sergiodj@redhat.com>
6276
6277 * MAINTAINERS: Update my e-mail address.
6278
6279 2012-04-20 Pedro Alves <palves@redhat.com>
6280
6281 * acx_configure_dir.m4 (ACX_CONFIGURE_DIR): Handle absolute
6282 $srcdir.
6283 * configure: Regenerate.
6284
6285 2012-04-20 Sergio Durigan Junior <sergiodj@redhat.com>
6286
6287 * cp-support.h: Include `gdb_vecs.h'. Delete `const_char_ptr' VEC
6288 declaration.
6289 * gdb_vecs.h: Declare `const_char_ptr' VEC.
6290
6291 2012-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
6292
6293 Fix compilation compatibility with python-2.4
6294 * python/py-type.c (convert_field): Cast ADDRSTRING for
6295 PyObject_SetAttrString as non-const. New comment.
6296
6297 2012-04-19 Tom Tromey <tromey@redhat.com>
6298
6299 * top.c (quit_target): Use all_cleanups.
6300 * main.c (captured_command_loop): Use all_cleanups.
6301 * exceptions.c (throw_exception): Use all_cleanups.
6302
6303 2012-04-19 Pedro Alves <palves@redhat.com>
6304
6305 * Makefile.in (GNULIB_BUILDDIR): New.
6306 (LIBGNU, INCGNU, GNULIB_H): Adjust.
6307 (SUBDIRS): Add $(GNULIB_BUILDDIR).
6308 (CLEANDIRS). Remove gnulib/import.
6309 (REQUIRED_SUBDIRS): Replace gnulib/import with $(GNULIB_BUILDDIR).
6310 (all-lib): Ditto.
6311 (distclean): Remove the $(GNULIB_BUILDDIR) directory.
6312 (gnulib/import/Makefile): Replace gnulib/import with
6313 $(GNULIB_BUILDDIR). Set CONFIG_FILES to just Makefile.
6314 (ACLOCAL_AMFLAGS): Remove '-I gnulib/import/m4'.
6315 (aclocal_m4_deps): Remove the gnulib dependencies. Add
6316 acx_configure_dir.m4.
6317 * acinclude.m4: Include acx_configure_dir.m4.
6318 * acx_configure_dir.m4: New file.
6319 * aclocal.m4: Regenerate.
6320 * configure.ac: Remove gl_EARLY, gl_INIT and AM_INIT_AUTOMAKE
6321 calls. Configure gnulib using ACX_CONFIGURE_DIR.
6322 (GNULIB): New variable.
6323 (GNULIB_STDINT_H): Adjust.
6324 (AC_OUTPUT): Don't output gnulib/Makefile.
6325 * gdb/defs.h: Include build-gnulib/config.h.
6326 * aclocal.m4: Regenerate.
6327 * config.in: Regenerate.
6328 * configure: Regenerate.
6329
6330 * gnulib/Makefile.in: New file.
6331 * gnulib/configure.ac: New file.
6332 * gnulib/aclocal.m4: New file.
6333 * gnulib/config.in: New file.
6334 * gnulib/configure: New file.
6335 * gnulib/: Re-run gnulib-tool to adjust.
6336
6337 2012-04-19 Doug Evans <dje@google.com>
6338
6339 * cleanups.h (struct cleanup): Move to cleanups.c.
6340 (make_cleanup_dtor_ftype): New typedef.
6341 (make_cleanup_dtor): Use it.
6342 (ALL_CLEANUPS): Replace with ...
6343 (all_cleanups): ... this. Declare. All uses updated.
6344 * cleanups.c: #include "gdb_assert.h".
6345 (sentinel_cleanup): New static global.
6346 (SENTINEL_CLEANUP): Define.
6347 (cleanup_chain, final_cleanup_chain): Initialize to SENTINEL_CLEANUP.
6348 (make_my_cleanup2): Assert result is non-NULL.
6349 (all_cleanups): New function.
6350 (save_my_cleanups): Initialize new chain to SENTINEL_CLEANUP instead
6351 of NULL.
6352
6353 2012-04-19 Pedro Alves <palves@redhat.com>
6354
6355 * Makefile.in (HFILES_NO_SRCDIR): Remove gnulib/wchar.in.h.
6356 Adjust paths to gnulib imported files.
6357
6358 2012-04-19 Pedro Alves <palves@redhat.com>
6359
6360 * gnulib/: Move whole directory ...
6361 * gnulib/import/: ... here, and re-rerun gnulib-tool to adjust.
6362 * Makefile.in (LIBGNU, INCGNU, GNULIB_H, CLEANDIRS)
6363 (REQUIRED_SUBDIRS, all-lib, gnulib/Makefile, ACLOCAL_AMFLAGS)
6364 (aclocal_m4_deps): Adjust.
6365 * aclocal.m4: Regenerate.
6366 * configure: Regenerate.
6367 * configure.ac: Adjust AC_OUTPUT output.
6368
6369 2012-04-19 Yao Qi <yao@codesourcery.com>
6370
6371 * Makefile.in (SFILES): Add common/vec.c and remove vec.c.
6372 (vec.o): New rule.
6373 * vec.c: Move it ...
6374 * common/vec.c: ... here.
6375 * vec.h: Move it ...
6376 * common/vec.h: ... here.
6377
6378 2012-04-19 Yao Qi <yao@codesourcery.com>
6379
6380 * gdb-code-style.el: New.
6381
6382 2012-04-18 Pedro Alves <palves@redhat.com>
6383
6384 Update gnulib from latest git.
6385 (639ea5ae15e39fe48d43e04864b2997301e4b969)
6386
6387 * gnulib/Makefile.am: Update.
6388 * gnulib/dummy.c: Update.
6389 * gnulib/extra/arg-nonnull.h: Update.
6390 * gnulib/extra/c++defs.h: Update.
6391 * gnulib/extra/update-copyright: Update.
6392 * gnulib/extra/warn-on-use.h: Update.
6393 * gnulib/inttypes.in.h: Update.
6394 * gnulib/m4/00gnulib.m4: Update.
6395 * gnulib/m4/extensions.m4: Update.
6396 * gnulib/m4/gnulib-cache.m4: Update.
6397 * gnulib/m4/gnulib-common.m4: Update.
6398 * gnulib/m4/gnulib-comp.m4: Update.
6399 * gnulib/m4/gnulib-tool.m4: Update.
6400 * gnulib/m4/include_next.m4: Update.
6401 * gnulib/m4/inttypes-pri.m4: Update.
6402 * gnulib/m4/inttypes.m4: Update.
6403 * gnulib/m4/longlong.m4: Update.
6404 * gnulib/m4/memchr.m4: Update.
6405 * gnulib/m4/memmem.m4: Update.
6406 * gnulib/m4/mmap-anon.m4: Update.
6407 * gnulib/m4/multiarch.m4: Update.
6408 * gnulib/m4/onceonly.m4: Update.
6409 * gnulib/m4/stddef_h.m4: Update.
6410 * gnulib/m4/stdint.m4: Update.
6411 * gnulib/m4/string_h.m4: Update.
6412 * gnulib/m4/warn-on-use.m4: Update.
6413 * gnulib/m4/wchar_h.m4: Update.
6414 * gnulib/m4/wchar_t.m4: Update.
6415 * gnulib/m4/wint_t.m4: Update.
6416 * gnulib/memchr.c: Update.
6417 * gnulib/memmem.c: Update.
6418 * gnulib/stddef.in.h: Update.
6419 * gnulib/stdint.in.h: Update.
6420 * gnulib/str-two-way.h: Update.
6421 * gnulib/string.in.h: Update.
6422 * gnulib/wchar.in.h: Update.
6423
6424 * gnulib/extra/arg-nonnull.h: Delete.
6425 * gnulib/extra/c++defs.h: Delete.
6426 * gnulib/extra/warn-on-use.h: Delete.
6427 * gnulib/m4/wchar_h.m4: Delete.
6428 * gnulib/m4/wint_t.m4: Delete.
6429 * gnulib/wchar.in.h: Delete.
6430
6431 * gnulib/extra/snippets/arg-nonnull.h: New.
6432 * gnulib/extra/snippets/c++defs.h: New.
6433 * gnulib/extra/snippets/warn-on-use.h: New.
6434
6435 * aclocal.m4: Regenerate.
6436 * config.in: Regenerate.
6437 * configure: Regenerate.
6438 * gnulib/Makefile.in: Regenerate.
6439
6440 2012-04-18 Pedro Alves <palves@redhat.com>
6441
6442 Reimport the update-copyright module from gnulib
6443 (250b80067c1e1d8faa0c42fb572f721975b929c5).
6444
6445 * configure: Regenerate.
6446 * gnulib/Makefile.am: Update.
6447 * gnulib/Makefile.in: Regenerate.
6448 * gnulib/extra/update-copyright: Update.
6449 * gnulib/m4/gnulib-cache.m4: Update.
6450 * gnulib/m4/gnulib-comp.m4: Update.
6451
6452 2012-04-18 Tristan Gingold <gingold@adacore.com>
6453
6454 * configure.ac (aix): Put -lpthread into libs.
6455 * configure: Regenerate.
6456
6457 2012-04-18 Tom Tromey <tromey@redhat.com>
6458
6459 * linespec.c (convert_linespec_to_sals): Don't use
6460 SYMBOL_OBJ_SECTION.
6461 (compare_msymbols): Arguments are minsym_and_objfile, not
6462 minimal_symbol*. Don't use SYMBOL_OBJ_SECTION.
6463
6464 2012-04-18 Pedro Alves <palves@redhat.com>
6465
6466 Revert gnulib/ part of:
6467 2011-01-01 Joel Brobecker <brobecker@adacore.com>
6468 Copyright year update in most files (performed by copyright.sh).
6469
6470 2012-04-18 Jan Kratochvil <jan.kratochvil@redhat.com>
6471
6472 Fix 64-bit constants on 32-bit hosts.
6473 * dwarf2read.c (read_unsigned_leb128): Change declaration return type
6474 from unsigned long to ULONGEST.
6475 (read_signed_leb128): Change declaration return type from long to
6476 LONGEST.
6477 (dwarf2_const_value_attr): Change declaration parameter value from long
6478 to LONGEST.
6479 (dwarf2_compute_name): Change variable value from long to LONGEST.
6480 (read_unsigned_leb128): Change return type, variable result and some
6481 casts from unsigned long to ULONGEST.
6482 (read_signed_leb128): Change return type, variable result and some
6483 casts from long to LONGEST.
6484 (dwarf2_const_value_data, dwarf2_const_value_attr): Change parameter
6485 value from long to LONGEST.
6486 (dwarf2_const_value): Change variable value from long to LONGEST.
6487 * symmisc.c (print_symbol): Change SYMBOL_VALUE format strings to use
6488 plongest and hex_string.
6489 * symtab.h (struct general_symbol_info): Change ivalue from long to
6490 LONGEST, remove the comment.
6491 * tracepoint.c (validate_actionline, collect_symbol, scope_info):
6492 Change SYMBOL_VALUE format strings to use plongest and hex_string.
6493
6494 2012-04-18 Siddhesh Poyarekar <siddhesh@redhat.com>
6495
6496 PR symtab/7259:
6497 * ada-exp.y (convert_char_literal): Use TYPE_FIELD_ENUMVAL.
6498 * ada-lang.c (ada_discrete_type_high_bound)
6499 (ada_discrete_type_low_bound): Fix function comment. Use
6500 TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
6501 (ada_identical_enum_types_p): Use TYPE_FIELD_ENUMVAL.
6502 (pos_atr, value_val_atr): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
6503 * ada-typeprint.c (print_enum_type): Change variable lastval to LONGEST.
6504 Use TYPE_FIELD_ENUMVAL.
6505 * ada-valprint.c (print_optional_low_bound, ada_print_scalar)
6506 (ada_val_print_1): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
6507 * c-typeprint.c (c_type_print_base): Move variable lastval to inner
6508 block, change it to LONGEST. Use TYPE_FIELD_ENUMVAL for
6509 TYPE_CODE_ENUM.
6510 * coffread.c (coff_read_enum_type): Use SET_FIELD_ENUMVAL.
6511 * dwarf2read.c (process_enumeration_scope): Likewise.
6512 * gdb-gdb.py (TypeFlagsPrinter): Use field.enumval instead of
6513 field.bitpos.
6514 (class StructMainTypePrettyPrinter): Support also
6515 FIELD_LOC_KIND_ENUMVAL.
6516 * gdbtypes.c (get_discrete_bounds): Use TYPE_FIELD_ENUMVAL for
6517 TYPE_CODE_ENUM.
6518 (recursive_dump_type): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
6519 (copy_type_recursive): Support also FIELD_LOC_KIND_ENUMVAL.
6520 * gdbtypes.h (enum field_loc_kind): New FIELD_LOC_KIND_ENUMVAL.
6521 (struct main_type.flds_bnds.fields.loc): Adjust bitpos comment. New
6522 field enumval.
6523 (struct main_type.flds_bnds.bields): Adjust loc_kind and bitsize to
6524 accommodate enumval.
6525 (struct call_site): Adjust loc_kind to accommodate enumval.
6526 (FIELD_ENUMVAL, FIELD_ENUMVAL_LVAL, SET_FIELD_ENUMVAL)
6527 (TYPE_FIELD_ENUMVAL): New macros.
6528 * m2-typeprint.c (m2_enum): Use TYPE_FIELD_ENUMVAL.
6529 * mdebugread.c (parse_symbol): Use TYPE_FIELD_ENUMVAL for
6530 TYPE_CODE_ENUM.
6531 * p-typeprint.c (pascal_type_print_base): Likewise.
6532 * python/lib/gdb/printing.py (class FlagEnumerationPrinter): Use
6533 enumval.
6534 * python/lib/gdb/types.py (make_enum_dict): Likewise.
6535 * python/py-type.c (convert_field): New variable addrstring. Use
6536 TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
6537 (check_types_equal): Support also FIELD_LOC_KIND_ENUMVAL.
6538 * stabsread.c (read_enum_type): Use SET_FIELD_ENUMVAL.
6539 * typepint.c (print_type_scalar): Use TYPE_FIELD_ENUMVAL for
6540 TYPE_CODE_ENUM.
6541 * valprint.c (generic_val_print): Likewise.
6542
6543 2012-04-17 Doug Evans <dje@google.com>
6544
6545 * dwarf2read.c (lookup_signatured_type): Return NULL instead of 0.
6546
6547 * dwarf2read.c: Whitespace fixes.
6548 (lookup_signatured_type): Tweak comment.
6549 (get_die_type_at_offset): Fix comment.
6550
6551 2012-04-17 Joel Brobecker <brobecker@adacore.com>
6552
6553 * xcoffread.c (xcoff_secnum_to_sections): New function.
6554 (secnum_to_section, secnum_to_bfd_section): Reimplement
6555 using xcoff_secnum_to_sections. Rename "secnum" parameter
6556 into "n_scnum".
6557 (RECORD_MINIMAL_SYMBOL): Delete.
6558 (record_minimal_symbol): New function.
6559 (scan_xcoff_symtab): Replace uses of RECORD_MINIMAL_SYMBOL
6560 by call to record_minimal_symbol and set misc_func_recorded
6561 to 1. Set last_csect_sec to the XCOFF section index instead
6562 of GDB's section_offset index. Update calls to
6563 prim_record_minimal_symbol_and_info to pass the BFD section
6564 as well.
6565
6566 2012-04-17 Joel Brobecker <brobecker@adacore.com>
6567
6568 * xcoffread.c (read_xcoff_symtab): Delete variables
6569 last_csect_val and last_csect_sec and associated code.
6570
6571 2012-04-17 Doug Evans <dje@google.com>
6572
6573 * cleanups.c (make_my_cleanup,make_my_cleanup2): Make static.
6574 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
6575 * cleanups.h (make_my_cleanup,make_my_cleanup2): Delete
6576 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Delete.
6577
6578 * cleanups.h: New file.
6579 * cleanups.c: New file.
6580 * Makefile.in (SFILES): Add cleanups.c.
6581 (HFILES_NO_SRCDIR): Add cleanups.h.
6582 (COMMON_OBS): Add cleanups.o.
6583 * defs.h (struct cleanup): Moved to cleanups.h.
6584 (do_cleanups,do_final_cleanups): Ditto.
6585 (discard_cleanups,discard_final_cleanups): Ditto
6586 (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
6587 (save_cleanups,save_final_cleanups): Ditto.
6588 (restore_cleanups,restore_final_cleanups): Ditto.
6589 (null_cleanup): Ditto.
6590 (make_my_cleanup,make_my_cleanup2): Ditto.
6591 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
6592 * utils.c (cleanup_chain,final_cleanup_chain): Moved to cleanups.c.
6593 (do_cleanups,do_final_cleanups): Ditto.
6594 (discard_cleanups,discard_final_cleanups): Ditto
6595 (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
6596 (save_cleanups,save_final_cleanups): Ditto.
6597 (restore_cleanups,restore_final_cleanups): Ditto.
6598 (null_cleanup): Ditto.
6599 (make_my_cleanup,make_my_cleanup2): Ditto.
6600 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
6601
6602 * utils.c (make_cleanup_freeargv): Use make_cleanup instead of
6603 make_my_cleanup.
6604 (make_cleanup_dyn_string_delete): Ditto.
6605 (make_cleanup_ui_file_delete): Ditto.
6606 (make_cleanup_ui_out_redirect_pop): Ditto.
6607 (make_cleanup_free_section_addr_info): Ditto.
6608 (make_cleanup_restore_integer): Ditto.
6609 (make_cleanup_unpush_target): Ditto.
6610 (make_cleanup_value_free_to_mark): Ditto.
6611 (make_cleanup_value_free): Ditto.
6612 (make_cleanup_free_so): Ditto.
6613
6614 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6615
6616 New option "set debug auto-load".
6617 * NEWS: New commands "set debug auto-load" and "show debug auto-load".
6618 * auto-load.c (debug_auto_load, show_debug_auto_load: New.
6619 (auto_load_safe_path_vec_update)
6620 (filename_is_in_auto_load_safe_path_vec): Call fprintf_unfiltered
6621 if DEBUG_AUTO_LOAD.
6622 (file_is_auto_load_safe): New parameters debug_fmt and ....
6623 Call fprintf_unfiltered if DEBUG_AUTO_LOAD.
6624 (source_gdb_script_for_objfile): Extend the file_is_auto_load_safe
6625 caller by explanatory string.
6626 (_initialize_auto_load): Register "set debug auto-load".
6627 * auto-load.h (file_is_auto_load_safe): New parameters debug_fmt
6628 and ....
6629 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
6630 (try_thread_db_load_from_dir): Extend the file_is_auto_load_safe caller
6631 by explanatory string.
6632 * main.c (captured_main): Likewise.
6633 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile)
6634 (source_section_scripts): Likewise.
6635
6636 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6637
6638 New option "set auto-load safe-path".
6639 * NEWS: New commands "set auto-load safe-path"
6640 and "show auto-load safe-path".
6641 * auto-load.c: Include gdb_vecs.h, readline/tilde.h and completer.h.
6642 (auto_load_safe_path, auto_load_safe_path_vec)
6643 (auto_load_safe_path_vec_update, set_auto_load_safe_path)
6644 (show_auto_load_safe_path, add_auto_load_safe_path, filename_is_in_dir)
6645 (filename_is_in_auto_load_safe_path_vec, file_is_auto_load_safe): New.
6646 (source_gdb_script_for_objfile): New variable is_safe. Call
6647 file_is_auto_load_safe. Return if it is not.
6648 (struct loaded_script): New field loaded.
6649 (maybe_add_script): Add parameter loaded. Initialize SLOT with it.
6650 (print_script): Use LOADED indicator instead of FULL_PATH. Change
6651 output "Missing" to "No".
6652 (_initialize_auto_load): New variable cmd. Initialize
6653 auto_load_safe_path. Register "set auto-load safe-path",
6654 "show auto-load safe-path" and "add-auto-load-safe-path".
6655 * auto-load.h (maybe_add_script): Add parameter loaded.
6656 (file_is_auto_load_safe): New declaration.
6657 * config.in: Regenerate.
6658 * configure: Regenerate.
6659 * configure.ac: New parameters --with-auto-load-safe-path
6660 and --without-auto-load-safe-path.
6661 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
6662 (try_thread_db_load_from_dir): Check file_is_auto_load_safe first.
6663 * main.c (captured_main): Check file_is_auto_load_safe for
6664 LOCAL_GDBINIT.
6665 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile): New
6666 variable is_safe. Call file_is_auto_load_safe. Return if it is not.
6667 (source_section_scripts): Call file_is_auto_load_safe. Return if it is
6668 not.
6669
6670 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6671
6672 auto-load: Implementation.
6673 * NEWS: New descriptions for "info auto-load",
6674 "info auto-load gdb-scripts", "info auto-load python-scripts",
6675 "info auto-load local-gdbinit" and "info auto-load libthread-db".
6676 Deprecate "info auto-load-scripts", "set auto-load-scripts on|off"
6677 and "show auto-load-scripts". New description for "set auto-load",
6678 "show auto-load", "set auto-load gdb-scripts",
6679 "show auto-load gdb-scripts", "set auto-load python-scripts",
6680 "show auto-load python-scripts", "set auto-load local-gdbinit",
6681 "show auto-load local-gdbinit", "set auto-load libthread-db" and
6682 "show auto-load libthread-db".
6683 * auto-load.c: Remove include python/python-internal.h. Add includes
6684 exceptions.h, cli/cli-script.h, gdbcmd.h, cli/cli-decode.h and
6685 cli/cli-setshow.h.
6686 (GDB_AUTO_FILE_NAME, source_gdb_script_for_objfile)
6687 (auto_load_gdb_scripts, show_auto_load_gdb_scripts): New.
6688 (gdbpy_global_auto_load): Rename to ...
6689 (global_auto_load): ... here.
6690 (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
6691 (auto_load_local_gdbinit_loaded, show_auto_load_local_gdbinit)
6692 (script_language_gdb, source_gdb_script_for_objfile): New.
6693 (struct loaded_script): New field language.
6694 (hash_loaded_script_entry, eq_loaded_script_entry): Calculate also
6695 LANGUAGE.
6696 (maybe_add_script): Add parameter language. Drop redundant
6697 entry.full_path initialization. Initialize entry.language and
6698 (*slot)->language.
6699 (auto_load_objfile_script): Change parameter suffix to language.
6700 Remove the call of maybe_add_script.
6701 Call language->source_script_for_objfile.
6702 (load_auto_scripts_for_objfile, struct collect_matching_scripts_data):
6703 New.
6704 (collect_matching_scripts): Adjust it for
6705 struct collect_matching_scripts_data.
6706 (auto_load_info_scripts_pattern_nl): New variable.
6707 (info_auto_load_scripts): Rename to ...
6708 (auto_load_info_scripts): ... here, add parameter language. Adjust it
6709 for struct collect_matching_scripts_data.
6710 (info_auto_load_gdb_scripts, info_auto_load_local_gdbinit)
6711 (set_auto_load_cmd, auto_load_set_cmdlist_get, show_auto_load_cmd)
6712 (auto_load_show_cmdlist_get, info_auto_load_cmd)
6713 (auto_load_info_cmdlist_get): New.
6714 (_initialize_auto_load): Move add_info of "auto-load-scripts" to
6715 python/py-auto-load.c. New installment for "set auto-load gdb-scripts",
6716 "info auto-load gdb-scripts", "set auto-load local-gdbinit" and
6717 "info auto-load local-gdbinit".
6718 * auto-load.h (struct script_language): New.
6719 (gdbpy_global_auto_load): Rename to ...
6720 (global_auto_load): ... here.
6721 (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
6722 (auto_load_local_gdbinit_loaded): New declarations.
6723 (maybe_add_script): New parameter language.
6724 (auto_load_objfile_script): Change parameter suffix to language.
6725 (load_auto_scripts_for_objfile, auto_load_info_scripts_pattern_nl)
6726 (auto_load_info_scripts, auto_load_set_cmdlist_get)
6727 (auto_load_show_cmdlist_get, auto_load_info_cmdlist_get): New
6728 declarations.
6729 * linux-thread-db.c: Include auto-load.h and ctype.h.
6730 (auto_load_thread_db, show_auto_load_thread_db): New.
6731 (struct thread_db_info): New field filename.
6732 (delete_thread_db_info): Call xfree for FILENAME.
6733 (try_thread_db_load): Initialize FILENAME.
6734 (try_thread_db_load_from_pdir, try_thread_db_load_from_dir): Return
6735 if !AUTO_LOAD_THREAD_DB.
6736 (info_auto_load_libthread_db_compare, info_auto_load_libthread_db): New.
6737 (_initialize_thread_db): Install auto_load_thread_db
6738 as "set auto-load libthread-db" and install info_auto_load_libthread_db
6739 as "info auto-load libthread-db".
6740 * main.c (captured_main): Rename gdbpy_global_auto_load to
6741 global_auto_load. Initialize AUTO_LOAD_LOCAL_GDBINIT_PATHNAME and
6742 AUTO_LOAD_LOCAL_GDBINIT_LOADED.
6743 (print_gdb_help): Extend the help for 'local init file'.
6744 * python/py-auto-load.c: Remove a comment about gdb scripts extension.
6745 (GDBPY_AUTO_SECTION_NAME): Extend the comment it is Python specific.
6746 (auto_load_scripts): Rename to ...
6747 (auto_load_python_scripts): ... here, update the comment.
6748 (gdbpy_load_auto_script_for_objfile): New declaration.
6749 (show_auto_load_python_scripts, script_language_python)
6750 (gdbpy_load_auto_script_for_objfile): New.
6751 (source_section_scripts): Refactor the code.
6752 (load_auto_scripts_for_objfile): Rename to ...
6753 (gdbpy_load_auto_scripts_for_objfile): ... here, update the
6754 auto_load_objfile_script caller, drop GDBPY_GLOBAL_AUTO_LOAD checking.
6755 (info_auto_load_python_scripts): New.
6756 (gdbpy_initialize_auto_load): New variables cmd and cmd_name.
6757 Rename "set auto-load-scripts" to "set auto-load python-scripts".
6758 Register "set auto-load-scripts" as its deprecated alias. Register
6759 "info auto-load python-scripts". Register "info auto-load-scripts" as
6760 its deprecated alias.
6761 (load_auto_scripts_for_objfile): Rename to ...
6762 (gdbpy_load_auto_scripts_for_objfile): ... here.
6763 * python/python.h (load_auto_scripts_for_objfile): Rename to ...
6764 (gdbpy_load_auto_scripts_for_objfile): ... here.
6765
6766 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6767
6768 auto-load: Move files.
6769 * Makefile.in (SFILES): Add auto-load.c.
6770 (HFILES_NO_SRCDIR): Add auto-load.h.
6771 (COMMON_OBS): Add auto-load.o.
6772 (distclean): Change .gdbinit for gdb-gdb.gdb.
6773 * auto-load.c: New file, with parts from python/py-auto-load.c.
6774 * auto-load.h: New file, with parts from python/python.h.
6775 * configure: Regenerate.
6776 * configure.ac (AC_OUTPUT): Change .gdbinit for gdb-gdb.gdb.
6777 * gdb-gdb.gdb.in: New file, renamed from gdbinit.in.
6778 * gdbinit.in: Remove file, rename it to gdb-gdb.gdb.in.
6779 * main.c: Include auto-load.h.
6780 * python/py-auto-load.c: Move include filenames.h, gdb_regex.h,
6781 command.h, observer.h and progspace.h to auto-load.c. Add include
6782 auto-load.h.
6783 (gdbpy_global_auto_load, struct auto_load_pspace_info)
6784 (struct loaded_script, auto_load_pspace_data)
6785 (auto_load_pspace_data_cleanup, get_auto_load_pspace_data)
6786 (hash_loaded_script_entry, eq_loaded_script_entry)
6787 (init_loaded_scripts_info, get_auto_load_pspace_data_for_loading)
6788 (maybe_add_script): Move to auto-load.c.
6789 (source_section_scripts): Change maybe_add_script parameters passing,
6790 use script_not_found_warning_print.
6791 (clear_section_scripts, auto_load_objfile_script)
6792 (auto_load_new_objfile, loaded_script_ptr)
6793 (DEF_VEC_P (loaded_script_ptr), collect_matching_scripts, print_script)
6794 (sort_scripts_by_name, info_auto_load_scripts): Move to auto-load.c.
6795 (gdbpy_initialize_auto_load): Move auto_load_pspace_data,
6796 auto_load_new_objfile and info_auto_load_scripts initizations to
6797 auto-load.c.
6798 * python/python.h (gdbpy_global_auto_load): Move to auto-load.h.
6799
6800 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6801
6802 Code cleanup.
6803 * charset.c (find_charset_names): Remove variables ix and elt.
6804 Use free_char_ptr_vec.
6805 * elfread.c (build_id_to_debug_filename): New variables debugdir_vec,
6806 back_to and ix. Use dirnames_to_char_ptr_vec. Remove variable
6807 debugdir_end. New variable debugdir_len.
6808 * gdb_vecs.h (free_char_ptr_vec, make_cleanup_free_char_ptr_vec)
6809 (dirnames_to_char_ptr_vec_append, dirnames_to_char_ptr_vec): New
6810 declarations.
6811 * progspace.c (clear_program_space_solib_cache): Remove variables ix
6812 and elt. Use free_char_ptr_vec.
6813 * source.c (add_path): Remove variables argv, arg and argv_index.
6814 New variables dir_vec, back_to, ix and name.
6815 Use dirnames_to_char_ptr_vec_append. Use freeargv instead of
6816 make_cleanup_freeargv. Remove variable separator. Simplify the code
6817 no longer expecting DIRNAME_SEPARATOR.
6818 (openp): Remove variable p, p1 and len. New variables dir_vec,
6819 back_to, ix and dir. Use dirnames_to_char_ptr_vec. Simplify the code
6820 no longer expecting DIRNAME_SEPARATOR.
6821 * symfile.c (find_separate_debug_file): New variables debugdir_vec,
6822 back_to and ix. Use dirnames_to_char_ptr_vec. Remove variable
6823 debugdir_end.
6824 * utils.c (free_char_ptr_vec, do_free_char_ptr_vec)
6825 (make_cleanup_free_char_ptr_vec, dirnames_to_char_ptr_vec_append)
6826 (dirnames_to_char_ptr_vec): New functions.
6827
6828 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6829
6830 Code cleanup.
6831 * source.c (add_path): Remove always true conditional 'p == 0' and
6832 unindent its code block.
6833
6834 2012-04-17 Pedro Alves <palves@redhat.com>
6835
6836 * gdbtypes.h (FIELD_BITPOS): Rename to ...
6837 (FIELD_BITPOS_LVAL): ... this.
6838 (FIELD_BITPOS): New.
6839 (SET_FIELD_BITPOS): Adjust to use FIELD_BITPOS_LVAL.
6840 * dwarf2read.c (dwarf2_add_field): Use SET_FIELD_BITPOS.
6841 * gdbtypes.c (append_composite_type_field_aligned): Adjust to use
6842 SET_FIELD_BITPOS.
6843 * gnu-v3-abi.c (build_gdb_vtable_type): Adjust to use
6844 SET_FIELD_BITPOS.
6845 * stabsread.c (read_cpp_abbrev, read_one_struct_field)
6846 (read_baseclasses): Adjust to use SET_FIELD_BITPOS.
6847 * target-descriptions.c (tdesc_gdb_type): Adjust to use
6848 SET_FIELD_BITPOS.
6849
6850 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6851
6852 Do not rely on FIELD_LOC_KIND_BITPOS being zero.
6853 * ada-lang.c (ada_template_to_fixed_record_type_1): Replace
6854 TYPE_FIELD_BITPOS used as lvalue by SET_FIELD_BITPOS.
6855 * gdbtypes.c (append_flags_type_flag): Likewise, twice.
6856 * jv-lang.c (java_link_class_type): Likewise, once.
6857 * stabsread.c (read_enum_type): Likewise.
6858
6859 2012-04-16 Yao Qi <yao@codesourcery.com>
6860
6861 * common/agent.c (agent_run_command): Add one more parameter `len'.
6862 Update callers.
6863 * common/agent.h: Update declaration.
6864 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
6865 Update.
6866 (linux_child_static_tracepoint_markers_by_strid): Ditto.
6867
6868 2012-04-14 Anton Gorenkov <xgsa@yandex.ru>
6869
6870 PR mi/13393
6871 * value.c (value_actual_type): New function.
6872 * value.h (value_actual_type): New declaration.
6873 * varobj.c (update_type_if_necessary): New function.
6874 (varobj_create): Call value_actual_type instead of
6875 value_type.
6876 (install_dynamic_child): distinct changed and type changed MI variable
6877 objects.
6878 (update_dynamic_varobj_children): Updated for install_dynamic_child
6879 change. All callers updated.
6880 (varobj_update): Support for MI variable object type change if
6881 the value changed and RTTI is used to determine the type.
6882 (create_child_with_value): Call value_actual_type instead of
6883 value_type.
6884 (adjust_value_for_child_access): Extended with a new parameter which
6885 specify whether the given value should be casted to enclosing type.
6886 All callers updated.
6887
6888 2012-04-14 Yao Qi <yao@codesourcery.com>
6889
6890 Import gnulib module inttypes from git
6891 (250b80067c1e1d8faa0c42fb572f721975b929c5)
6892 * Makefile.in (HFILES_NO_SRCDIR): Add gnulib/inttypes.in.h.
6893 (aclocal_m4_deps): Add gnulib/m4/inttypes.m4 and
6894 gnulib/m4/inttypes-pri.m4
6895 * aclocal.m4, config.in, configure: Regenerated.
6896 * gnulib/Makefile.am: Update.
6897 * gnulib/Makefile.in: Update.
6898 * gnulib/m4/gnulib-cache.m4: Update.
6899 * gnulib/m4/gnulib-comp.m4: Update.
6900 * gnulib/inttypes.in.h: New.
6901 * gnulib/m4/inttypes-pri.m4: New.
6902 * gnulib/m4/inttypes.m4: New.
6903
6904 2012-04-13 Luis Machado <lgustavo@codesourcery.com>
6905
6906 * infrun.c (resume): Update PC address to the real PC after
6907 preparing to do displaced stepping.
6908
6909 2012-04-12 Doug Evans <dje@google.com>
6910
6911 * dwarf2read.c (lookup_signatured_type): Remove arg "objfile", unused.
6912 All callers updated.
6913
6914 2012-04-12 Mark Kettenis <kettenis@gnu.org>
6915
6916 * i386bsd-nat.c (_initialize_i386bsd_nat): Add missing prototype.
6917
6918 2012-04-12 Doug Evans <dje@google.com>
6919
6920 * dwarf2read.c (create_all_type_units): Renamed from
6921 create_debug_types_hash_table. All callers updated.
6922
6923 * dwarf2read.c (create_signatured_type_table_from_index): Rename
6924 local type_sig to sig_type, type_offset to type_offset_in_tu.
6925 (hash_signatured_type): Renamed from hash_type_signature,
6926 all callers updated.
6927 (eq_signatured_type): Renamed from eq_type_signature,
6928 all callers updated.
6929 (create_debug_types_hash_table): Rename local type_sig to sig_type.
6930 (process_enumeration_scope): Ditto.
6931 (lookup_signatured_type_at_offset): Ditto.
6932 (load_full_type_unit, read_signatured_type): Ditto.
6933
6934 2012-04-12 Yao Qi <yao@codesourcery.com>
6935
6936 * remote.c (async_remote_interrupt): Correct function name in
6937 debug message.
6938 (async_remote_interrupt_twice): Ditto.
6939
6940 2012-04-11 Yuanhui Zhang <asmwarrior@gmail.com>
6941
6942 * source.c (find_and_open_source): Consistently pass resulting
6943 full path through xfullpath.
6944
6945 2012-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6946
6947 Provide more specific displaced-stepping memory error message.
6948 * infrun.c (displaced_step_prepare): New variable status. Call
6949 target_read_memory instead of read_memory, provide more specific
6950 error message.
6951
6952 2012-04-11 Tristan Gingold <gingold@adacore.com>
6953
6954 PR gdb/13901
6955 * darwin-nat.c (darwin_execvp): Revert previous patch.
6956
6957 2012-04-11 Tristan Gingold <gingold@adacore.com>
6958
6959 PR gdb/13901
6960 * darwin-nat.c (darwin_resume_thread): Call darwin_set_sstep only
6961 in case of change.
6962
6963 2012-04-11 Tristan Gingold <gingold@adacore.com>
6964
6965 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
6966 warning.
6967
6968 2012-04-11 Siva Chandra Reddy <sivachandra@google.com>
6969
6970 New command 'explore' which helps explore values and types in
6971 scope.
6972 * NEWS: Add an entry about the new 'explore' command.
6973 * data-directory/Makefile.in: Add gdb/command/explore.py
6974 * python/lib/gdb/command/explore.py: Implemention of the 'explore'
6975 command using the GDB Python API.
6976
6977 2012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
6978
6979 * mips-tdep.c (mips_skip_pic_trampoline_code): Correct sign
6980 extension in jump target calculation.
6981
6982 2012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
6983
6984 * mips-tdep.c (mips32_next_pc): Handle JALX.
6985
6986 2012-04-10 Yao Qi <yao@codesourcery.com>
6987
6988 * Makefile.in (gnulib/Makefile): Remove duplicated dependency.
6989
6990 2012-04-10 Yao Qi <yao@codesourcery.com>
6991
6992 * Makefile.in (aclocal_m4_deps): Add gnulib/m4/gnulib-cache.m4
6993 and gnulib/m4/gnulib-tool.m4.
6994
6995 2012-04-10 Doug Evans <dje@google.com>
6996
6997 * dwarf2read.c (dwarf2_per_cu_data). Clarify comment.
6998 (load_partial_dies): Clarify comment.
6999 (find_partial_die): Support rereading type units.
7000 Clarify CU handling, if we know offset is in CU, don't search for the
7001 containing CU. Add comment regarding memory waste.
7002
7003 2012-04-10 H.J. Lu <hongjiu.lu@intel.com>
7004
7005 * features/Makefile (WHICH): Add i386/x32, i386/x32-linux,
7006 i386/x32-avx and i386/x32-avx-linux.
7007 (i386/x32-expedite): New.
7008 (i386/x32-linux-expedite): Likewise.
7009 (i386/x32-avx-expedite): Likewise.
7010 (i386/x32-avx-linux-expedite): Likewise.
7011 ($(outdir)/i386/x32.dat): Likewise.
7012 ($(outdir)/i386/x32-linux.dat): Likewise.
7013 ($(outdir)/i386/x32-avx.dat): Likewise.
7014 ($(outdir)/i386/x32-avx-linux.dat): Likewise.
7015
7016 * features/i386/x32-avx-linux.xml: New file.
7017 * features/i386/x32-avx.xml: Likewise.
7018 * features/i386/x32-core.xml: Likewise.
7019 * features/i386/x32-linux.xml: Likewise.
7020 * features/i386/x32.xml: Likewise.
7021
7022 * features/i386/x32-avx-linux.c: New. Generated.
7023 * features/i386/x32-avx.c: Likewise.
7024 * features/i386/x32-linux.c: Likewise.
7025 * features/i386/x32.c: Likewise.
7026 * regformats/i386/x32-avx-linux.dat: Likewise.
7027 * regformats/i386/x32-avx.dat: Likewise.
7028 * regformats/i386/x32-linux.dat: Likewise.
7029 * regformats/i386/x32.dat: Likewise.
7030
7031 2012-04-10 Tristan Gingold <gingold@adacore.com>
7032
7033 * darwin-nat.c (darwin_kill_inferior): Always use the no ptrace
7034 code to kill the inferior.
7035
7036 2012-04-09 Mark Kettenis <kettenis@gnu.org>
7037
7038 * ada-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7039 defines.
7040 * c-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7041 defines.
7042 * cp-name-parser.y (yyss, yysslim, yyssp, yystacksize, yyvs)
7043 (yyvsp): New defines.
7044 * f-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7045 defines.
7046 * jv-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7047 defines.
7048 * m2-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7049 defines.
7050 * objc-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7051 defines.
7052 * p-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7053 defines.
7054
7055 2012-04-09 Mark Kettenis <kettenis@gnu.org>
7056
7057 * sparc64-tdep.c (sparc64_store_arguments)
7058 (sparc64_store_arguments): Fix coding style.
7059
7060 2012-04-07 Mark Kettenis <kettenis@gnu.org>
7061
7062 * sparc64-tdep.c (sparc64_store_arguments): Fix handling of
7063 complex floats, adjust some related comments and tighten a related
7064 assertion.
7065 (sparc64_extract_return_value): Handle complex floats.
7066
7067 2012-04-07 Doug Evans <dje@google.com>
7068
7069 * dwarf2read.c (load_partial_dies): Change condition to assert.
7070
7071 2012-04-06 Doug Evans <dje@google.com>
7072
7073 * amd64-tdep.c (amd64_analyze_prologue): Recognize both variations of
7074 "mov %rsp,%rbp".
7075
7076 2012-04-05 Kevin Buettner <kevinb@redhat.com>
7077
7078 * v850-tdep.c (E_NUM_OF_V850_REGS, E_NUM_OF_V850E_REGS): Fix
7079 fencepost error.
7080 (v850_frame_cache): Use gdbarch_num_regs() instead of E_NUM_REGS.
7081 (v850_gdbarch_init): Set `num_regs' as appropriate for the
7082 architecture.
7083
7084 2012-04-05 Keith Seitz <keiths@redhat.com>
7085
7086 * linespec.c (decode_compound): Remove.
7087 (enum offset_relative_sign): New enum.
7088 (struct line_offset): New struct.
7089 (struct linespec): New struct.
7090 (struct linespec_state): Move file_symtabs,
7091 user_filename, and user_function into struct linespec.
7092 Make result an anonymous struct holding vectors of
7093 symbolp and minsym_and_objfile_d.
7094 Add language member.
7095 (enum ls_token_type): New enum.
7096 (linespec_keywords): New array.
7097 (struct ls_token): New struct.
7098 (struct ls_parser): New struct.
7099 (linespec_lexer_lex_number): New function.
7100 (linespec_lexer_lex_keyword): New function.
7101 (is_ada_operator): New function.
7102 (skip_quote_char): New function.
7103 (copy_token_string): New function.
7104 (is_closing_quote_enclosed): New function.
7105 (find_parameter_list_end): New function.
7106 (linespec_lexer_lex_string): New function.
7107 (linespec_lexer_lex_one): New function.
7108 (linespec_lexer_consume_token): New function.
7109 (linespec_lexer_peek_token): New function.
7110 (cplusplus_error): Remove unused function.
7111 (find_methods): Update comment.
7112 (find_toplevel_char): Return const.
7113 (is_objc_method_format): Remove unused function.
7114 (find_toplevel_string): New function.
7115 (is_linespec_boundary): Remove.
7116 (symbol_not_found_error): New function.
7117 (find_method_overload_end): Remove function.
7118 (unexpected_linespec_error): New function.
7119 (keep_name_info): Remove.
7120 (linespec_parse_line_offset): New function.
7121 (linespec_parse_basic): New function.
7122 (canonicalize_linespec): New function.
7123 (decode_line_internal): Remove.
7124 (create_sals_line_offset): New function adapted from
7125 decode_all_digits.
7126 (convert_linespec_to_sals): New function.
7127 (parse_linespec): New function.
7128 (linespec_parser_new): New function.
7129 (linespec_state_destructor): Change parameter type to
7130 struct linespec_state *.
7131 Add language parameter.
7132 Remove freeing of moved members.
7133 (linespec_parser_delete): New function.
7134 (decode_line_full): Use parse_linespec and linespec_parser_new.
7135 (decode_line_1): Likewise.
7136 (decode_indirect): Rename to ...
7137 (linespec_expression_to_pc): ... this and rewrite
7138 to simply find CORE_ADDR, storing this result for later
7139 conversion to SALs.
7140 (locate_first_half): Remove.
7141 (deocde_objc): Add parameter LS.
7142 Initialize new struct collect_info members.
7143 Handle minimal symbols, too.
7144 (decode_compound): Delete.
7145 (lookup_prefix_sym): Rewrite.
7146 (compare_msymbols): New function.
7147 (find_method): Rewrite.
7148 Do not call cplusplus_error.
7149 (symtabs_from_filename): Rewrite.
7150 (collect_function_symbols): Delete.
7151 (find_function_symbols): Rewrite without ARGPTR-style
7152 processing.
7153 (decode_all_digits): Delete. (Rewritten as create_sals_line_offset.)
7154 (decode_dollar): Adapted and renamed to ...
7155 (linespec_parse_variable): ... this.
7156 (find_linespec_symbols): New function.
7157 (decode_label): Adapted and renamed to ...
7158 (find_label_symbols): ... this.
7159 (decode_digits_list_mode): Add and use LS argument.
7160 (decode_digits_ordinary): Likewise.
7161 (collect_symbols): Do not collect SALs, just symbols and msymbols.
7162 If in list mode, allow any symbol class. Otherwise, only
7163 permit LOC_BLOCK symbols.
7164 (minsym_found): Update comments.
7165 (search_minsyms_for_name): Do not convert the matching symbol
7166 into a SAL. Simply push the symbol and objfile into the
7167 result vector.
7168 (decode_variable): Delete. Contents adapted into
7169 find_linespec_symbols.
7170
7171 * cp-support.c (SKIP_SPACE): Remove.
7172 (operator_tokens): Remove unused global.
7173 (cp_validate_operator): Remove.
7174 * cp-support.h (cp_validate_operator): Remove declaration.
7175
7176 2012-04-03 Jan Kratochvil <jan.kratochvil@redhat.com>
7177
7178 * cp-valprint.c (cp_print_value_fields): Check valprint_check_validity
7179 for TYPE_VPTR_FIELDNO.
7180 * valprint.c (valprint_check_validity): Make it global, move the
7181 function comment ...
7182 * value.h (valprint_check_validity): ... to this new declaration.
7183
7184 2012-04-02 Tristan Gingold <gingold@adacore.com>
7185
7186 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Use
7187 the STATE32 api for i386 state.
7188 (i386_darwin_store_inferior_registers): Likewise.
7189
7190 2012-04-02 Tristan Gingold <gingold@adacore.com>
7191
7192 * i386-darwin-tdep.c (i386_darwin_thread_state_reg_offset): Fix
7193 SS offset.
7194 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
7195 format_string.
7196
7197 2012-04-02 Tristan Gingold <gingold@adacore.com>
7198
7199 PR gdb/13901
7200 * darwin-nat.c (darwin_execvp): Set binary preference.
7201
7202 2012-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
7203
7204 * NEWS (set breakpoint condition-evaluation): Use imperative mood.
7205
7206 2012-03-30 Tom Tromey <tromey@redhat.com>
7207
7208 * python/python.c (gdbpy_decode_line): Move cleanup creation out
7209 of TRY_CATCH. Fix error handling.
7210 * python/py-value.c (convert_value_from_python): Move 'old'
7211 declaration to innermost scope.
7212
7213 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7214 Andrey Smirnov <andrew.smirnov@gmail.com>
7215
7216 -Wshadow warning fix.
7217 * ada-lang.c (ada_make_symbol_completion_list): Rename parameters
7218 "wild_match" and "encoded" into "wild_match_p" and "encoded_p".
7219 Adjust code accordingly.
7220
7221 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7222
7223 * ada-lang.c (symbol_completion_add): Rename parameter
7224 "encoded" into "encoded_p". Ajust code and documentation
7225 accordingly.
7226
7227 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7228 Andrey Smirnov <andrew.smirnov@gmail.com>
7229
7230 -Wshadow warning fix.
7231 * ada-lang.c (symbol_completion_add): Rename parameter
7232 "wild_match" into wild_match_p. Update code and documentation
7233 accordingly.
7234
7235 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7236
7237 * ada-lang.c (symbol_completion_match): Rename parameter
7238 "encoded" into "encoded_p". Ajust code and documentation
7239 accordingly.
7240
7241 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7242 Andrey Smirnov <andrew.smirnov@gmail.com>
7243
7244 -Wshadow warning fix.
7245 * ada-lang.c (symbol_completion_match): Rename parameter
7246 "wild_match" into "wild_match_p". Adjust code and function
7247 documentation accordingly.
7248
7249 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7250 Andrey Smirnov <andrew.smirnov@gmail.com>
7251
7252 -Wshadow warning fix.
7253 * ada-lang.c (ada_lookup_encoded_symbol): Rename parameter
7254 "symbol_info" into "info". Adjust code accordingly.
7255 (ada_lookup_symbol): Likewise.
7256
7257 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7258
7259 * ada-lang.c (ada_lookup_symbol_list): Minor reformatting
7260 of this function's documentation.
7261
7262 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7263 Andrey Smirnov <andrew.smirnov@gmail.com>
7264
7265 -Wshadow warning fix.
7266 * ada-lang.c (ada_lookup_symbol_list): Rename "wild_match"
7267 variable into "wild_match_p". Adjust code accordingly.
7268
7269 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7270 Andrey Smirnov <andrew.smirnov@gmail.com>
7271
7272 -Wshadow warning fix.
7273 * ada-lang.c (ada_add_local_symbols): Rename "wild_match"
7274 parameter into "wild_match_p". Adjust code accordingly.
7275 Document this parameter in the function description.
7276
7277 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7278 Andrey Smirnov <andrew.smirnov@gmail.com>
7279
7280 -Wshadow warning fix.
7281 * ada-lang.c (add_symbols_from_enclosing_procs): Rename
7282 "wild_match" parameter to "wild_match_p" (-Wshadow).
7283
7284 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7285
7286 * ada-lang.c (ada_lookup_simple_minsym): Remove trailing spaces
7287 in function documentation.
7288
7289 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7290 Andrey Smirnov <andrew.smirnov@gmail.com>
7291
7292 -Wshadow warning fix.
7293 * ada-lang.c (ada_lookup_simple_minsym): Rename wild_match local
7294 variable into wild_match_p. Adjust code accordingly.
7295
7296 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7297 Andrey Smirnov <andrew.smirnov@gmail.com>
7298
7299 * ada-valprint.c (ada_val_print_1): Move the code handling
7300 TYPE_CODE_ENUM inside its own lexical block. Declare
7301 variables len and val there, instead of in the function's
7302 top level block. Avoid declaring deref_val again in a way
7303 that shadows another variable of the same name declared
7304 in one of the up-level blocks. Just re-use the up-level
7305 variable instead.
7306
7307 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7308
7309 * ada-lang.c (ada_lookup_encoded_symbol): Now returns void.
7310 Replace block_found argument by symbol_info. Adjust
7311 implementation accordingly. Add function documentation.
7312 (ada_lookup_symbol): Adjust to new ada_lookup_encoded_symbol.
7313 Fix documentation.
7314 * ada-lang.h (ada_lookup_encoded_symbol): Update declaration.
7315 * ada-exp.y (write_object_renaming): Adjust to new
7316 ada_lookup_encoded_symbol API.
7317
7318 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7319
7320 * ada-lang.h (struct ada_symbol_info): Reformat. Improve
7321 documentation.
7322
7323 2012-03-28 Rathish C <rathish.c@kpitcummins.com>
7324
7325 * v850-tdep.c: Add the enum values for mpu and fpu registers.
7326 (v850_register_name): Add the mpu and fpu register names.
7327 (v850e_register_name): Add the mpu and fpu register names.
7328 (v850e2_register_name): New function.
7329 (v850_gdbarch_init): Add case for bfd_mach_v850e2 and
7330 bfd_mach_v850e2v3.
7331
7332 2012-03-28 Joel Brobecker <brobecker@adacore.com>
7333
7334 * NEWS: Add entry for Ada varobj support.
7335
7336 2012-03-28 Joel Brobecker <brobecker@adacore.com>
7337
7338 * varobj.c (default_value_is_changeable_p): New function,
7339 extracted from varobj_value_is_changeable_p. Add declaration.
7340 (ada_value_is_changeable_p): New function, extracted from
7341 varobj_value_is_changeable_p. Add declaration.
7342 (struct language_specific): New field "value_is_changeable_p".
7343 (languages): Add entries for new field.
7344 (varobj_create): Set language before calling install_new_value.
7345 (varobj_value_is_changeable_p): Reimplement to call the varobj's
7346 "value_is_changeable_p" language callback.
7347
7348 2012-03-28 Joel Brobecker <brobecker@adacore.com>
7349
7350 * ada-varobj.h, ada-varobj.c: New files.
7351 * Makefile.in (SFILES): Add ada-varobj.c.
7352 (HFILES_NO_SRCDIR): Add ada-varobj.h.
7353 (COMMON_OBS): Add ada-varobj.o.
7354
7355 2012-03-28 Joel Brobecker <brobecker@adacore.com>
7356
7357 * varobj.c (ada_value_has_mutated): Add declaration. New function.
7358 (struct language_specific): New field "value_has_mutated".
7359 (languages): Set field "value_has_mutated" in each entry of array.
7360 (varobj_value_has_mutated): New function.
7361 (varobj_udpdate): Add handling of type mutation.
7362 (value_of_root): Add handling of type mutation.
7363 (ada_value_has_mutated): New function.
7364
7365 2012-03-28 Pedro Alves <palves@redhat.com>
7366
7367 * ia64-linux-nat.c (supply_fpregset, ia64_linux_fetch_register):
7368 Always supply $fr0 as 0.0 and $fr1 as 1.0.
7369
7370 2012-03-28 Tom Tromey <tromey@redhat.com>
7371
7372 * python/py-inferior.c (infpy_read_memory): Remove cleanups and
7373 explicitly free 'buffer' on exit paths. Decref 'membuf_object'
7374 before returning.
7375
7376 2012-03-28 Tom Tromey <tromey@redhat.com>
7377
7378 * .dir-locals.el: New file.
7379
7380 2012-03-28 Pedro Alves <palves@redhat.com>
7381
7382 * ia64-linux-nat.c (u_offsets): Map IA64_EC_REGNUM to PT_AR_EC.
7383
7384 2012-03-28 Joel Brobecker <brobecker@adacore.com>
7385
7386 * ia64-linux-nat.c (ia64_linux_fetch_register): Add special
7387 handling for r0.
7388
7389 2012-03-27 Pedro Alves <palves@redhat.com>
7390
7391 Eliminate struct ui_stream.
7392
7393 * ui-out.h (struct ui_stream): Delete.
7394 (ui_out_field_stream): Adjust prototype.
7395 (ui_out_stream_new, ui_out_stream_delete)
7396 (make_cleanup_ui_out_stream_delete): Delete declarations.
7397 * ui-out.c (ui_out_field_stream): Change prototype to take a
7398 ui_file instead of a ui_stream. Adjust.
7399 (ui_out_stream_new, ui_out_stream_delete, do_stream_delete)
7400 (make_cleanup_ui_out_stream_delete): Delete.
7401 * breakpoint.c (print_breakpoint_location)
7402 (print_one_detail_ranged_breakpoint, print_it_watchpoint): Use
7403 ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
7404 * disasm.c (dump_insns): Ditto.
7405 (do_mixed_source_and_assembly, do_assembly_only): Adjust
7406 prototype.
7407 (gdb_disassembly): Use ui_file/mem_fileopen instead of
7408 ui_stream/ui_out_stream_new.
7409 * infcmd.c (print_return_value): Ditto.
7410 * osdata.c (info_osdata_command): Don't allocate a local
7411 ui_stream.
7412 * stack.c (print_frame_arg, print_frame_args, print_frame): Use
7413 ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
7414 * tracepoint.c (print_one_static_tracepoint_marker): Don't
7415 allocate a local ui_stream.
7416 * mi/mi-cmd-stack.c (list_arg_or_local): Use ui_file/mem_fileopen
7417 instead of ui_stream/ui_out_stream_new.
7418 (list_args_or_locals): Don't allocate a local ui_stream.
7419 * mi/mi-main.c (get_register, mi_cmd_data_evaluate_expression)
7420 (mi_cmd_data_read_memory): Use ui_file/mem_fileopen instead of
7421 ui_stream/ui_out_stream_new.
7422 * cli/cli-setshow.c (do_setshow_command): Ditto.
7423
7424 2012-03-27 Oza Pawandeep <oza.pawandeep@gmail.com>
7425
7426 * arm-linux-tdep.c (arm_linux_init_abi): Call
7427 set_gdbarch_process_record. Initialize `arm_swi_record' field.
7428 * arm-tdep.c (arm_process_record): New function.
7429 (deallocate_reg_mem): New function.
7430 (decode_insn): New function.
7431 (thumb_record_branch): New function.
7432 (thumb_record_ldm_stm_swi(): New function.
7433 (thumb_record_misc): New function.
7434 (thumb_record_ld_st_stack): New function.
7435 (thumb_record_ld_st_imm_offset): New function.
7436 (thumb_record_ld_st_reg_offset(): New function.
7437 (thumb_record_add_sub_cmp_mov): New function.
7438 (thumb_record_shift_add_sub): New function.
7439 (arm_record_coproc_data_proc): New function.
7440 (arm_record_coproc): New function.
7441 (arm_record_b_bl): New function.
7442 (arm_record_ld_st_multiple): New function.
7443 (arm_record_ld_st_reg_offset): New function.
7444 (arm_record_ld_st_imm_offset): New function.
7445 (arm_record_data_proc_imm): New function.
7446 (arm_record_data_proc_misc_ld_str): New function.
7447 (arm_record_extension_space): New function.
7448 (arm_record_strx): New function.
7449 (sbo_sbz): New function.
7450 (struct insn_decode_record): New structure for arm insn record.
7451 (REG_ALLOC): New macro for reg allocations.
7452 (MEM_ALLOC): New macro for memory allocations.
7453 * arm-tdep.h (struct gdbarch_tdep): New field 'arm_swi_record'.
7454
7455 2012-03-27 Andreas Schwab <schwab@linux-m68k.org>
7456
7457 * m68klinux-nat.c (fetch_register): Fix strict-aliasing violation.
7458 (store_register): Likewise.
7459
7460 2012-03-26 Oza Pawandeep <oza.pawandeep@gmail.com>
7461
7462 * MAINTAINERS (Write After Approval): Add myself to the list.
7463
7464 2012-03-25 Jan Kratochvil <jan.kratochvil@redhat.com>
7465
7466 * NEWS (set breakpoint condition-evaluation): Change "gdb" to "host".
7467 Describe also the option "auto".
7468
7469 2012-03-22 Richard Henderson <rth@redhat.com>
7470
7471 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Fix prototype.
7472 * sparc-nat.c (sparc_xfer_wcookie): Make static.
7473
7474 2012-03-22 Richard Henderson <rth@redhat.com>
7475
7476 * jit.c (jit_read_code_entry): Compute alignment and offset of
7477 int64_t member before computing entry_size.
7478
7479 2012-03-22 Siva Chandra Reddy <sivachandra@google.com>
7480
7481 Python scripting: Add new method Value.referenced_value to
7482 gdb.Value which can dereference pointer as well as reference
7483 values.
7484 * NEWS: Add entry under 'Python scripting' about the new method
7485 Value.referenced_value on gdb.Value objects.
7486 * python/py-value.c (valpy_referenced_value): New function
7487 defining a new method on gdb.Value objects which can dereference
7488 pointer and reference values.
7489
7490 2012-03-22 Siva Chandra Reddy <sivachandra@google.com>
7491
7492 * MAINTAINERS (Write After Approval): Add myself to the list.
7493
7494 2012-03-21 Kevin Buettner <kevinb@redhat.com>
7495
7496 * symtab.c (skip_prologue_sal): Change test to check for "main()"
7497 in addition to "main".
7498
7499 2012-03-21 Joel Brobecker <brobecker@adacore.com>
7500
7501 * expression.h (op_name): Add declaration.
7502 * expprint.c (op_name): Remove declaration. Make non-static.
7503 * ax-gdb.c (gen_expr): Use op_name instead of op_string.
7504
7505 2012-03-21 Thomas Schwinge <thomas@codesourcery.com>
7506
7507 * amd64-linux-nat.c (amd64_linux_siginfo_fixup): Use siginfo_t instead
7508 of struct siginfo.
7509 * arm-linux-nat.c (arm_linux_stopped_data_address): Likewise.
7510 * ia64-linux-nat.c (ia64_linux_stopped_data_address): Likewise.
7511 * linux-nat.c (linux_nat_siginfo_fixup, siginfo_fixup)
7512 (linux_xfer_siginfo, linux_nat_set_siginfo_fixup)
7513 (linux_nat_get_siginfo): Likewise.
7514 * linux-nat.h (struct lwp_info, linux_nat_set_siginfo_fixup)
7515 (linux_nat_get_siginfo): Likewise.
7516 * linux-tdep.c (linux_get_siginfo_type): Likewise.
7517 * ppc-linux-nat.c (ppc_linux_stopped_data_address): Likewise.
7518 * procfs.c (gdb_siginfo_t): Likewise.
7519
7520 2012-03-21 Mike Frysinger <vapier@gentoo.org>
7521
7522 * .gitignore: Ignore more files.
7523
7524 2012-03-20 Pedro Alves <palves@redhat.com>
7525
7526 * remote.c (remote_start_remote): Clear `rs->starting_up' on early
7527 returns.
7528
7529 2012-03-20 Yao Qi <yao@codesourcery.com>
7530
7531 * amd64-tdep.c (amd64_displaced_step_copy_insn): Complete missing "}" in
7532 comment.
7533
7534 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
7535
7536 Code cleanupp: Use cu_offset and sect_offset compile time type checking.
7537 * dwarf2expr.c (add_piece, dwarf_get_base_type, execute_stack_op)
7538 (ctx_no_dwarf_call, ctx_no_get_base_type): Use cu_offset and
7539 sect_offset.
7540 * dwarf2expr.h (cu_offset, sect_offset): New types.
7541 (struct dwarf_expr_context_funcs) <dwarf_call>
7542 (struct dwarf_expr_context_funcs) <get_base_type>: Use cu_offset and
7543 sect_offset.
7544 (struct dwarf_expr_context) <len>: Improve the comment.
7545 (struct dwarf_expr_piece, ctx_no_dwarf_call, ctx_no_get_base_type): Use
7546 cu_offset and sect_offset.
7547 * dwarf2loc.c (per_cu_dwarf_call, dwarf_expr_dwarf_call)
7548 (dwarf_expr_get_base_type, needs_frame_dwarf_call)
7549 (dwarf2_compile_expr_to_ax, disassemble_dwarf_expression): Likewise.
7550 * dwarf2loc.h: Include dwarf2expr.h.
7551 (dwarf2_fetch_die_location_block, dwarf2_get_die_type): Use cu_offset
7552 and sect_offset.
7553 * dwarf2read.c (struct dwarf2_per_objfile) <debug_types_type_hash>:
7554 Improve the comment.
7555 (struct comp_unit_head, struct dwarf2_cu, struct dwarf2_per_cu_data)
7556 (struct signatured_type, struct line_header, struct partial_die_info)
7557 (struct die_info, find_partial_die, dwarf2_get_ref_die_offset)
7558 (lookup_signatured_type_at_offset, dwarf2_find_containing_comp_unit)
7559 (get_die_type_at_offset, create_cus_from_index)
7560 (create_signatured_type_table_from_index, dw2_get_file_names)
7561 (offset_in_cu_p, read_comp_unit_head, error_check_comp_unit_head)
7562 (read_and_check_comp_unit_head, read_and_check_type_unit_head)
7563 (create_debug_types_hash_table, process_psymtab_comp_unit)
7564 (load_partial_comp_unit, create_all_comp_units)
7565 (partial_die_parent_scope, partial_die_full_name, skip_one_die)
7566 (load_full_comp_unit, dwarf2_physname, read_import_statement)
7567 (inherit_abstract_dies, read_func_scope, read_call_site_scope)
7568 (dwarf2_add_member_fn, process_enumeration_scope, read_module_type)
7569 (read_typedef, die_hash, die_eq, read_full_die, dwarf2_read_abbrevs)
7570 (load_partial_dies, read_partial_die, find_partial_die_in_comp_unit)
7571 (find_partial_die, read_attribute_value, lookup_die_type)
7572 (dump_die_shallow, store_in_ref_table): Use cu_offset and sect_offset.
7573 (is_ref_attr): New function comment.
7574 (dwarf2_get_ref_die_offset): New function comment, new variable retval.
7575 Use cu_offset and sect_offset.
7576 (follow_die_offset, follow_die_ref, dwarf2_fetch_die_location_block)
7577 (dwarf2_get_die_type, follow_die_sig, lookup_signatured_type_at_offset)
7578 (load_full_type_unit, read_signatured_type, per_cu_header_read_in)
7579 (dwarf2_find_containing_comp_unit, struct dwarf2_offset_and_type)
7580 (offset_and_type_hash, offset_and_type_eq, set_die_type)
7581 (get_die_type_at_offset, partial_die_hash, partial_die_eq)
7582 (write_one_signatured_type, write_psymtabs_to_index): Use cu_offset and
7583 sect_offset.
7584
7585 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
7586
7587 Code cleanup.
7588 * python/py-auto-load.c (source_section_scripts): New variable back_to.
7589 Turn fclose and xfree calls into make_cleanup_fclose and make_cleanup
7590 with xfree.
7591 (auto_load_objfile_script): Turn fclose into make_cleanup_fclose.
7592
7593 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
7594
7595 * NEWS: Describe new options --init-command=FILE, -ix and
7596 --init-eval-command=COMMAND, -iex.
7597 * main.c (struct cmdarg): New enum items CMDARG_INIT_FILE and
7598 CMDARG_INIT_COMMAND.
7599 (captured_main): New enum items OPT_IX and OPT_IEX. Add
7600 "init-command", "init-eval-command", "ix" and "iex" to the variable
7601 long_options. Handle OPT_IX and OPT_IEX. Process them from CMDARG_VEC.
7602 New comment for CMDARG_FILE and CMDARG_COMMAND processing.
7603 (print_gdb_help): Describe --init-command=FILE, -ix and
7604 --init-eval-command=COMMAND, -iex.
7605
7606 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
7607
7608 Code cleanup.
7609 * main.c (struct cmdarg): Move it here from main. Add more comments.
7610 (cmdarg_s, VEC (cmdarg_s)): New.
7611 (main): Move struct cmdarg from here. New variables cmdarg_vec and
7612 cmdarg_p. Remove variables cmdsize and ncmd and their initialization.
7613 Install cleanup for cmdarg_vec. Update filling for options 'x' and
7614 'X'. Replace cmdarg processing by cmdarg_vec processing. Remove xfree
7615 of CMDARG.
7616
7617 2012-03-19 Tom Tromey <tromey@redhat.com>
7618
7619 * gnu-v3-abi.c (gnuv3_print_vtable): Initialize 'result_vec'.
7620
7621 2012-03-16 Jan Kratochvil <jan.kratochvil@redhat.com>
7622
7623 PR symtab/13777
7624 * dwarf2read.c (process_full_comp_unit): Set LOCATIONS_VALID only for
7625 GCC >=4.5.
7626
7627 2012-03-16 Chris January <chris.january@allinea.com>
7628
7629 * tui-tui.win.c (tui_resize_all): Use erase and clearok instead
7630 of clear.
7631
7632 2012-03-16 Chris January <chris.january@allinea.com>
7633
7634 * source.c (add_path): Use memmove instead of strcpy because the
7635 strings overlap.
7636
7637 2012-03-16 Joel Brobecker <brobecker@adacore.com>
7638
7639 * value.h (set_value_parent): Add declaration.
7640 * value.c (set_value_parent): New function.
7641 (value_address): If VALUE->PARENT is not NULL, then use it as
7642 the base address instead of VALUE->LOCATION.address.
7643 * ada-lang.c (ada_value_primitive_packed_val): Keep V's address
7644 the same as OBJ's address. Adjust V's offset accordingly.
7645 Set V's parent.
7646
7647 2012-03-16 Gary Benson <gbenson@redhat.com>
7648
7649 PR breakpoints/10738
7650 * dwarf2read.c (use_deprecated_index_sections): New global.
7651 (struct partial_die_info): New member may_be_inlined.
7652 (read_partial_die): Set may_be_inlined where appropriate.
7653 (add_partial_subprogram): Add partial symbols for partial
7654 DIEs that may be inlined.
7655 (new_symbol_full): Add inlined subroutines to the current
7656 scope.
7657 (write_psymtabs_to_index): Bump version number.
7658 (dwarf2_read_index): Read only version 6 indices unless
7659 use_deprecated_index_sections is set.
7660 * linespec.c (symbol_and_data_callback): New structure.
7661 (iterate_inline_only): New function.
7662 (iterate_over_all_matching_symtabs): New argument
7663 "include_inline". If nonzero, also call the callback for
7664 symbols representing inlined subroutines.
7665 (lookup_prefix_sym): Pass extra argument to the above.
7666 (find_function_symbols): Likewise.
7667 (add_matching_symbols_to_info): Likewise.
7668 * NEWS: Mention that GDB can now set breakpoints on inlined
7669 functions.
7670
7671 2012-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
7672
7673 * p-typeprint.c (pascal_type_print_method_args):
7674 Fix display of parameter of methods.
7675
7676 2012-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
7677
7678 * amd64-windows-nat.c (_initialize_amd64_windows_nat):
7679 Add missing prototype.
7680
7681 2012-03-16 Yao Qi <yao@codesourcery.com>
7682 Jan Kratochvil <jan.kratochvil@redhat.com>
7683
7684 Fix false compilation warning.
7685 * gnu-v3-abi.c (print_one_vtable): Initialize ADDR.
7686
7687 2012-03-15 Jonathan Larmour <jifl@eCosCentric.com>
7688 Pedro Alves <pedro@codesourcery.com>
7689
7690 * arm-tdep.c: Include "remote.h" and "features/arm-with-m-fpa-layout.c".
7691 (arm_register_g_packet_guesses): New function.
7692 (arm_gdbarch_init): Don't force a target description with
7693 registers when the executable is detected as M-profile. Instead
7694 set gdbarch->tdep->is_m. Register `g' packet guesses.
7695 (_initialize_arm_tdep): Initialize the new target description.
7696 * features/arm-with-m-fpa-layout.xml: New description.
7697 * features/arm-with-m-fpa-layout.c: New, generated.
7698
7699 2012-03-15 Joel Brobecker <brobecker@adacore.com>
7700
7701 * breakpoint.c (breakpoint_xfer_memory): Add assertion.
7702 Update function description.
7703 (insert_bp_location): Do not wipe bl->target_info out.
7704 * mem-break.c: #include "gdb_string.h".
7705 (default_memory_insert_breakpoint): Do not call target_read_memory
7706 with a pointer to the breakpoint's shadow_contents buffer. Use
7707 a local buffer instead.
7708 * m32r-tdep.c (m32r_memory_insert_breakpoint): Ditto.
7709
7710 2012-03-15 Tom Tromey <tromey@redhat.com>
7711
7712 * NEWS: Mention "info vtbl", not "info vtable".
7713 * cp-support.c (info_vtbl_command): Fix comment.
7714 (_initialize_cp_support): Fix text.
7715
7716 2012-03-15 Tom Tromey <tromey@redhat.com>
7717
7718 * cp-valprint.c (cp_print_value_fields): Use
7719 print_function_pointer_address for vtable slot.
7720
7721 2012-03-15 Tom Tromey <tromey@redhat.com>
7722
7723 * gnu-v3-abi.c (struct value_and_voffset): New.
7724 (hash_value_and_voffset, eq_value_and_voffset)
7725 (compare_value_and_voffset, compute_vtable_size)
7726 (print_one_vtable, gnuv3_print_vtable): New functions.
7727 (init_gnuv3_ops): Initialize 'print_vtable' field.
7728 * cp-support.c (info_vtbl_command): New function.
7729 (_initialize_cp_support): Add "info vtbl".
7730 * cp-abi.h (cplus_print_vtable): Declare.
7731 (struct cp_abi_ops) <print_vtable>: New field.
7732 * cp-abi.c (cplus_print_vtable): New function.
7733 * NEWS: Update.
7734
7735 2012-03-15 Tom Tromey <tromey@redhat.com>
7736
7737 * d-lang.c (d_language_defn) <la_iterate_over_symbols>: Set to
7738 iterate_over_symbols.
7739
7740 2012-03-14 Doug Evans <dje@google.com>
7741
7742 * dwarf2read.c (dwarf_stack_op_name): Add DW_OP_GNU_encoded_addr,
7743 DW_OP_GNU_parameter_ref.
7744
7745 2012-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
7746
7747 Fix double prompt of 'interpreter-exec mi'.
7748 * mi/mi-interp.c (mi_execute_command_input_handler): New prototype.
7749 (mi_interpreter_resume): use it.
7750 (mi_execute_command_input_handler): New function.
7751 * mi/mi-main.c (mi_execute_command): Move prompt printing to
7752 mi_execute_command_input_handler.
7753
7754 2012-03-13 Josh Matthews <josh@joshmatthews.net> (tiny change)
7755
7756 * darwin-nat-info.c (_initialize_darwin_info_commands): Add
7757 prototype.
7758 (darwin_debug_port_info): Make static.
7759 * darwin-nat.c (_initialize_darwin_inferior): Add prototype.
7760 * machoread.c (_initialize_machoread): Add prototype.
7761 * i386-darwin-nat.c (i386_darwin_dr_set, i386_darwin_dr_get)
7762 (i386_darwin_set_control, i386_darwin_get_control)
7763 i386_darwin_dr_set_addr, i386_darwin_get_addr)
7764 i386_darwin_get_status, i386_darwin_get_control):
7765 Comment out with HW_WATCHPOINT_NOT_YET_ENABLED macro.
7766
7767 2012-03-13 Joel Brobecker <brobecker@adacore.com>
7768
7769 * ax-gdb.c (gen_usual_unary): Remove special handling of
7770 enum and bool types.
7771
7772 2012-03-13 Joel Brobecker <brobecker@adacore.com>
7773
7774 * ax-gdb.c (gen_fetch): Add handling for TYPE_CODE_RANGE types.
7775
7776 2012-03-13 Joel Brobecker <brobecker@adacore.com>
7777
7778 * aix-thread.c (supply_fprs): Make more consistent with fill_fprs.
7779
7780 2012-03-13 Chris January <chris.january@allinea.com>
7781
7782 * aix-thread.c (fill_sprs): Store the floating point registers
7783 at the correct offsets into vals.
7784
7785 2012-03-13 Doug Evans <dje@google.com>
7786
7787 * NEWS: Mention symbol-reloading has been deleted.
7788 * symfile.c (symbol_reloading): Delete.
7789 (show_symbol_reloading): Delete.
7790 (_initialize_symfile): Delete set/show symbol-reloading.
7791
7792 * dwarf2read.c (load_partial_comp_unit): Defer adding cu to
7793 read_in_chain until we have successfully read it in.
7794 (load_full_comp_unit): Ditto.
7795 (read_signatured_type): Add comment.
7796
7797 2012-03-13 Chris January <chris.january@allinea.com>
7798
7799 * stabsread.c (fix_common_block): Change type of valu argument
7800 to CORE_ADDR.
7801
7802 2012-03-13 Chris January <chris.january@allinea.com>
7803
7804 * rs6000-tdep.c (skip_prologue): Support the oril r29, r1, 0x0
7805 instruction.
7806
7807 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
7808
7809 * common/linux-procfs.c (linux_proc_get_int): New, from
7810 linux_proc_get_tgid, change its LWPID type to pid_t, add parameter
7811 field.
7812 (linux_proc_get_tgid): Only call linux_proc_get_int.
7813 (linux_proc_get_tracerpid): New.
7814 (linux_proc_pid_has_state): New, from linux_proc_pid_is_zombie.
7815 (linux_proc_pid_is_stopped, linux_proc_pid_is_zombie): Only call
7816 linux_proc_pid_has_state.
7817 * common/linux-procfs.h (linux_proc_get_tracerpid): New declaration.
7818 * common/linux-ptrace.c: Include linux-procfs.h and buffer.h.
7819 (linux_ptrace_attach_warnings): New.
7820 * common/linux-ptrace.h (struct buffer, linux_ptrace_attach_warnings):
7821 New declaration.
7822 * linux-nat.c: Include exceptions.h, linux-ptrace.h and buffer.h.
7823 (linux_nat_attach): New variables ex, buffer, message and message_s.
7824 Wrap to_attach by TRY_CATCH and call linux_ptrace_attach_warnings.
7825
7826 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
7827
7828 * Makefile.in (linux-ptrace.o): New.
7829 * common/linux-procfs.c (linux_proc_pid_is_zombie): New,
7830 from linux-nat.c.
7831 * common/linux-procfs.h (linux_proc_pid_is_zombie): New declaration.
7832 * common/linux-ptrace.c: New file.
7833 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-ptrace.o.
7834 * config/arm/linux.mh: Likewise.
7835 * config/i386/linux.mh: Likewise.
7836 * config/i386/linux64.mh: Likewise.
7837 * config/ia64/linux.mh: Likewise.
7838 * config/m32r/linux.mh: Likewise.
7839 * config/m68k/linux.mh: Likewise.
7840 * config/mips/linux.mh: Likewise.
7841 * config/pa/linux.mh: Likewise.
7842 * config/powerpc/linux.mh: Likewise.
7843 * config/powerpc/ppc64-linux.mh: Likewise.
7844 * config/powerpc/spu-linux.mh: Likewise.
7845 * config/s390/s390.mh: Likewise.
7846 * config/sparc/linux.mh: Likewise.
7847 * config/sparc/linux64.mh: Likewise.
7848 * config/xtensa/linux.mh: Likewise.
7849 * linux-nat.c (linux_lwp_is_zombie): Remove, move it to
7850 common/linux-procfs.c.
7851 (wait_lwp): Rename linux_lwp_is_zombie to linux_proc_pid_is_zombie.
7852
7853 2012-03-13 Hui Zhu <teawater@gmail.com>
7854 Pedro Alves <palves@redhat.com>
7855
7856 * breakpoint.c (init_breakpoint_sal): New flags parameter. Handle
7857 CREATE_BREAKPOINT_FLAGS_INSERTED.
7858 (create_breakpoint_sal, create_breakpoints_sal)
7859 (base_breakpoint_create_breakpoints_sal)
7860 (tracepoint_create_breakpoints_sal)
7861 (strace_marker_create_breakpoints_sal): New flags parameter. Pass
7862 down.
7863 (break_command_1, handle_gnu_v3_exceptions, trace_command)
7864 (ftrace_command, strace_command): Adjust.
7865 (create_tracepoint_from_upload): Pass
7866 CREATE_BREAKPOINT_FLAGS_INSERTED.
7867 * breakpoint.h (enum breakpoint_create_flags): New.
7868 (create_breakpoint): New flags parameter.
7869 * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust.
7870 * python/py-breakpoint.c (bppy_init): Adjust.
7871 * python/py-finishbreakpoint.c (bpfinishpy_init): Adjust.
7872 * spu-tdep.c (spu_catch_start): Adjust.
7873
7874 2012-03-13 Pedro Alves <palves@redhat.com>
7875 Hui Zhu <teawater@gmail.com>
7876 Yao Qi <yao@codesourcery.com>
7877
7878 * remote.c (struct remote_state): New field `starting_up'.
7879 (remote_start_remote): Set and clear it.
7880 (remote_can_download_tracepoint): If starting up, return false.
7881
7882 2012-03-13 Yao Qi <yao@codesourcery.com>
7883
7884 * inferior.h (struct inferior): Remove fields any_syscall_count,
7885 syscalls_counts and total_syscalls_count. Move them to new
7886 struct catch_syscall_inferior_data in breakpoint.c.
7887 * breakpoint.c: Call DEF_VEC_I(int).
7888 (struct catch_syscall_inferior_data): New.
7889 (get_catch_syscall_inferior_data): New.
7890 (catch_syscall_inferior_data_cleanup): New.
7891 (insert_catch_syscall): Update to access data in
7892 struct catch_syscall_inferior_data.
7893 (insert_catch_syscall): Likewise.
7894 (remove_catch_syscall): Likewise.
7895 (remove_catch_syscall): Likewise.
7896 (is_syscall_catchpoint_enabled): Likewise.
7897 (add_catch_command): Likewise.
7898 (_initialize_breakpoint): Register cleanup.
7899 * breakpoint.h: Removed DEF_VEC_I(int).
7900 * dwarf2loc.c: Call DEF_VEC_I(int).
7901 * mi/mi-main.c: Likewise.
7902
7903 2012-03-12 Mark Kettenis <kettenis@gnu.org>
7904
7905 * inf-ptrace.c (inf_ptrace_post_attach): Make static.
7906
7907 2012-03-12 Chris January <chris.january@allinea.com>
7908
7909 * aix-thread.c (_initialize_aix_thread): Add prototype.
7910 * rs6000-nat.c (_initialize_rs6000_nat): Ditto.
7911 * xcoffsolib.c (_initialize_xcoffsolib): Ditto.
7912
7913 2012-03-12 Joel Brobecker <brobecker@adacore.com>
7914
7915 * amd64bsd-nat.c: Move #include of "amd64bsd-nat.h" after
7916 include of "amd64-nat.h".
7917
7918 2012-03-12 Tom Tromey <tromey@redhat.com>
7919
7920 * buildsym.c (record_pending_block): Now static.
7921 * buildsym.h: (record_pending_block): Remove.
7922
7923 2012-03-12 Andreas Tobler <andreast@fgznet.ch>
7924
7925 * amd64bsd-nat.c: Include amd64bsd-nat.h.
7926
7927 2012-03-09 Tom Tromey <tromey@redhat.com>
7928
7929 * dwarf2read.c (struct dwarf2_cu) <checked_producer,
7930 producer_is_gxx_lt_4_6>: New fields.
7931 (producer_is_gxx_lt_4_6): Use and update producer cache fields.
7932
7933 2012-03-09 Tom Tromey <tromey@redhat.com>
7934
7935 * dwarf2read.c (dwarf2_attr): Avoid tail-recursive call.
7936
7937 2012-03-08 Joel Brobecker <brobecker@adacore.com>
7938
7939 * ravenscar-sparc-thread.c (_initialize_ravenscar_sparc): Add
7940 prototype.
7941
7942 2012-03-08 Joel Brobecker <brobecker@adacore.com>
7943
7944 * ravenscar-thread.c (_initialize_ravenscar): Add prototype.
7945
7946 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
7947
7948 Fix -Wmissing-prototypes build.
7949 * arm-linux-nat.c (get_thread_id): Make it static.
7950 * xtensa-linux-nat.c (get_thread_id): Likewise.
7951
7952 2012-03-08 Joel Brobecker <brobecker@adacore.com>
7953
7954 * server.c (process_point_options): If a conditional expression
7955 is found, only print a message if remote_debug is nonzero.
7956
7957 2012-03-08 Luis Machado <lgustavo@codesourcery.com>
7958
7959 * ax-gdb.c (gen_fetch): Fail gracefully and use error instead
7960 of internal error for unknown/unsupported types.
7961
7962 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
7963
7964 Fix CU relative vs. absolute DIE offsets.
7965 * dwarf2loc.h (dwarf2_fetch_die_location_block): Rename parameter
7966 offset to offset_in_cu.
7967 * dwarf2read.c (process_enumeration_scope): Add CU offset to
7968 TYPE_OFFSET.
7969 (dwarf2_fetch_die_location_block): Rename parameter offset to
7970 offset_in_cu. New variable offset, add CU offset to OFFSET_IN_CU.
7971
7972 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
7973
7974 * libunwind-frame.c: Rename to ...
7975 * ia64-libunwind-tdep.c: ... here.
7976 * libunwind-frame.h: Rename to ...
7977 * ia64-libunwind-tdep.h: ... here.
7978 * Makefile.in (HFILES_NO_SRCDIR): Rename libunwind-frame.h to
7979 ia64-libunwind-tdep.h.
7980 (ALLDEPFILES): Rename libunwind-frame.c to ia64-libunwind-tdep.c.
7981 * README (--with-libunwind): Rename to ...
7982 (--with-libunwind-ia64): ... here, note it is ia64 specific now.
7983 * config.in: Regenerate.
7984 * configure: Regenerate.
7985 * configure.ac: New option --with-libunwind-ia64, make the
7986 AS_HELP_STRING ia64 specific. Deprecate option --with-libunwind.
7987 Remove AC_DEFINE for HAVE_LIBUNWIND.
7988 * ia64-libunwind-tdep.c: Make the file top comment ia64 specific.
7989 Rename libunwind-frame.h #include to ia64-libunwind-tdep.h.
7990 Rename libunwind-frame in the general comment.
7991 * ia64-libunwind-tdep.h: Make the file top comment ia64 specific.
7992 Rename symbol LIBUNWIND_FRAME_H to IA64_TDEP_LIBUNWIND_FRAME_H.
7993 Move forward declarations inside #ifndef. Rename libunwind-frame in
7994 the general comment.
7995 * ia64-tdep.c: Rename libunwind-frame.h #include to
7996 ia64-libunwind-tdep.h.
7997 (ia64_gdb2uw_regnum, ia64_uw2gdb_regnum, ia64_is_fpreg)
7998 (ia64_libunwind_descr): Rename libunwind-frame to
7999 ia64-libunwind-tdep in these function comments.
8000 * ia64-tdep.h: Rename libunwind-frame.h #include to
8001 ia64-libunwind-tdep.h.
8002 * ia64-vms-tdep.c (ia64_vms_libunwind_descr): Rename libunwind-frame to
8003 ia64-libunwind-tdep in that data comment.
8004
8005 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
8006
8007 * libunwind-frame.h (struct frame_unwind): New declaration.
8008
8009 2012-03-08 Joel Brobecker <brobecker@adacore.com>
8010
8011 * breakpoint.c (_initialize_breakpoint): Fix error in help of
8012 "set breakpoint condition-evaluation" command.
8013
8014 2012-03-08 Tristan Gingold <gingold@adacore.com>
8015
8016 * sparc-stub.c: Move to stubs/
8017 * sh-stub.c: Likewise.
8018 * m68k-stub.c: Likewise.
8019 * m32r-stub.c: Likewise.
8020 * i386-stub.c: Likewise.
8021
8022 2012-03-08 Andreas Schwab <schwab@linux-m68k.org>
8023
8024 * m68klinux-tdep.c (m68k_linux_init_abi): Register
8025 linux_get_siginfo_type.
8026
8027 * m68klinux-nat.c: Include "gdb_proc_service.h".
8028 (PTRACE_GET_THREAD_AREA): Define.
8029 (ps_get_thread_area): New function.
8030
8031 2012-03-08 Yao Qi <yao@codesourcery.com>
8032
8033 * remote.c (remote_get_noisy_reply): Replace `sprintf' with
8034 `xsnprintf'.
8035 (remote_query_attached): Likewise.
8036 (remote_static_tracepoint_marker_at): Likewise.
8037 (remote_set_permissions): Likewise.
8038 (remote_detach_1, extended_remote_attach_1): Likewise.
8039 (send_g_packet, remote_vkill): Likewise.
8040 (extended_remote_disable_randomization): Likewise.
8041 (remote_add_target_side_condition): Likewise.
8042 (remote_insert_breakpoint): Likewise.
8043 (remote_remove_breakpoint): Likewise.
8044 (remote_insert_watchpoint): Likewise.
8045 (remote_remove_watchpoint): Likewise.
8046 (remote_insert_hw_breakpoint): Likewise.
8047 (remote_insert_hw_breakpoint): Likewise.
8048 (remote_remove_hw_breakpoint): Likewise.
8049 (remote_download_command_source): Likewise.
8050 (remote_download_tracepoint): Likewise.
8051 (remote_download_trace_state_variable): Likewise.
8052 (remote_disable_tracepoint): Likewise.
8053 (remote_trace_set_readonly_regions): Likewise.
8054 (remote_get_tracepoint_status): Likewise.
8055 (remote_trace_find): Likewise.
8056 (remote_get_trace_state_variable_value): Likewise.
8057 (remote_set_disconnected_tracing): Likewise.
8058 (remote_set_circular_trace_buffer): Likewise.
8059 (remote_get_min_fast_tracepoint_insn_len): Likewise.
8060 (remote_use_agent): Likewise.
8061 (remote_add_target_side_condition): Add one parameter BUF_SIZE.
8062 Update callers.
8063
8064 2012-03-07 Pedro Alves <palves@redhat.com>
8065
8066 * NEWS: Mention QProgramSignals.
8067 * inferior.h (update_signals_program_target): Declare.
8068 * infrun.c: (update_signals_program_target): New.
8069 (handle_command): Update the target of the new program signals
8070 array changes.
8071 * remote.c (PACKET_QProgramSignals): New enum.
8072 (last_program_signals_packet): New global.
8073 (remote_program_signals): New.
8074 (remote_start_remote): Update the target with the program signals
8075 list.
8076 (remote_protocol_features): Add entry for QPassSignals.
8077 (remote_open_1): Free anc clear last_program_signals_packet.
8078 (init_remote_ops): Install remote_program_signals.
8079 * target.c (update_current_target): Adjust.
8080 (target_program_signals): New.
8081 * target.h (struct target_ops) <to_program_signals>: New field.
8082 (target_program_signals): Declare.
8083
8084 2012-03-07 Pedro Alves <palves@redhat.com>
8085
8086 * NEWS: Add subtitle for new z0/z1 conditional breakpoint
8087 extensions.
8088
8089 2012-03-07 Andreas Schwab <schwab@linux-m68k.org>
8090
8091 * m68klinux-nat.c (getregs_supplies): Make static.
8092 (getfpregs_supplies): Likewise.
8093 (have_ptrace_getregs): Likewise.
8094
8095 2012-03-06 Joel Brobecker <brobecker@adacore.com>
8096
8097 * dwarf2read.c (dwarf2_get_die_type): Pass absolute offset
8098 in call to get_die_type_at_offset.
8099
8100 2012-03-06 Stan Shebs <stan@codesourcery.com>
8101
8102 * mi/mi-cmd-break.c: Enforce coding standards, fix comments.
8103 * mi/mi-cmd-disas.c: Ditto.
8104 * mi/mi-cmd-env.c: Ditto.
8105 * mi/mi-cmd-file.c: Ditto.
8106 * mi/mi-cmd-stack.c: Ditto.
8107 * mi/mi-cmd-target.c: Ditto.
8108 * mi/mi-cmd-var.c: Ditto.
8109 * mi/mi-cmds.c: Ditto.
8110 * mi/mi-cmds.h: Ditto.
8111 * mi/mi-console.c: Ditto.
8112 * mi/mi-getopt.c: Ditto.
8113 * mi/mi-getopt.h: Ditto.
8114 * mi/mi-interp.c: Ditto.
8115 * mi/mi-main.c: Ditto.
8116 * mi/mi-out.c: Ditto.
8117 * mi/mi-parse.c: Ditto.
8118 * mi/mi-parse.h: Ditto.
8119 * mi/mi-symbol-cmds.c: Ditto.
8120
8121 * mi/mi-getopt.h: Move mi_opt struct up.
8122 * mi/mi-main.c (captured_mi_execute_command): Remove redundant
8123 return.
8124 * mi/mi-out.c (_initialize_mi_out): Remove empty initialize.
8125
8126 2012-03-06 Tom Tromey <tromey@redhat.com>
8127
8128 * proc-service.c (ps_pglobal_lookup): Set the current program
8129 space.
8130
8131 2012-03-06 Pedro Alves <palves@redhat.com>
8132
8133 * gregset.h [HAVE_SYS_PROCFS_H]: Include <sys/procfs.h>.
8134
8135 2012-03-05 Joel Brobecker <brobecker@adacore.com>
8136
8137 * MAINTAINERS: List Maciej W. Rozycki as the mips maintainer.
8138
8139 2012-03-05 Jan Kratochvil <jan.kratochvil@redhat.com>
8140
8141 Code cleanup.
8142 * common/linux-osdata.c (linux_common_core_of_thread): New function
8143 comment.
8144 * linux-nat.c (linux_nat_wait_1): Replace linux_nat_core_of_thread_1
8145 call by linux_common_core_of_thread.
8146 (linux_nat_core_of_thread_1): Remove.
8147 * linux-nat.h (linux_nat_core_of_thread_1): Remove declaration.
8148 * linux-thread-db.c: Include linux-osdata.h.
8149 (update_thread_core): Replace linux_nat_core_of_thread_1 call by
8150 linux_common_core_of_thread.
8151
8152 2012-03-05 Tom Tromey <tromey@redhat.com>
8153
8154 * value.c (value_primitive_field): Don't fetch contents for
8155 non-virtual bases.
8156
8157 2012-03-05 Tom Tromey <tromey@redhat.com>
8158
8159 * jv-valprint.c (java_value_print): Correctly compute 'obj_addr'.
8160
8161 2012-03-05 Andreas Arnez <arnez@linux.vnet.ibm.com>
8162
8163 * s390-nat.c: Include "gregset.h".
8164
8165 2012-03-05 Jan Kratochvil <jan.kratochvil@redhat.com>
8166
8167 * libunwind-frame.c (LIBUNWIND_SO): Change .7 to .8.
8168 [!LIBUNWIND_SO] (LIBUNWIND_SO_7): New #define.
8169 (libunwind_load): New variable so_error, use it for dlerror. Try to
8170 load also LIBUNWIND_SO_7.
8171
8172 2012-03-05 Pedro Alves <palves@redhat.com>
8173
8174 * i387-tdep.c (i387_supply_xsave): Assert the xsave section buffer
8175 is not NULL, and remove resulting dead code.
8176
8177 2012-03-05 Thomas Schwinge <thomas@codesourcery.com>
8178
8179 * sh-tdep.c (sh_skip_prologue): Provide an upper limit on the function
8180 prologue to sh_analyze_prologue.
8181 (sh_analyze_prologue): Make better use of such an upper limit, and
8182 generally be more cautious about accessing memory.
8183
8184 2012-03-05 Tom Tromey <tromey@redhat.com>
8185
8186 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Rename from
8187 _initialize_ia64_hpux_tdep.
8188
8189 2012-03-05 Pedro Alves <palves@redhat.com>
8190
8191 PR gdb/13766
8192
8193 * i387-tdep.c (i387_supply_xsave): If we have an xsave buffer, and
8194 the register state is clear, supply explicit zero, instead of
8195 marking the register unavailable.
8196
8197 2012-03-05 Tristan Gingold <gingold@adacore.com>
8198
8199 * NEWS: Mention OpenVMS ia64 new target.
8200
8201 2012-03-05 Tristan Gingold <gingold@adacore.com>
8202
8203 * ia64-tdep.h: Include libunwind-frame.h and libunwind-ia64.h.
8204 (ia64_unw_accessors, ia64_unw_rse_accessors)
8205 (ia64_libunwind_descr): Declare.
8206 * ia64-vms-tdep.c: New file.
8207 * ia64-tdep.c (ia64_unw_accessors, ia64_unw_rse_accessors)
8208 (ia64_libunwind_descr): Make them public.
8209 * configure.tgt: Add ia64-*-*vms*.
8210 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-vms-tdep.o
8211 (ALLDEPFILES): Add ia64-vms-tdep.c
8212
8213 2012-03-05 Tristan Gingold <gingold@adacore.com>
8214
8215 * target.h (target_object): Add TARGET_OBJECT_OPENVMS_UIB.
8216 * remote.c (PACKET_qXfer_uib): New enum value.
8217 (remote_protocol_features): Add entry for PACKET_qXfer_uib.
8218 (remote_xfer_partial): Handle TARGET_OBJECT_OPENVMS_UIB.
8219 (_initialize_remote): Call add_packet_config_cmd for
8220 xfer:uib packet.
8221
8222 2012-03-05 Tristan Gingold <gingold@adacore.com>
8223
8224 * osabi.c (gdb_osabi_names): Add OpenVMS.
8225 (generic_elf_osabi_sniffer): Likewise.
8226 * defs.h (gdb_osabi): Add GDB_OSABI_OPENVMS.
8227
8228 2012-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
8229
8230 Removed unused code.
8231 * libunwind-frame.c (libunwind_frame_unwind)
8232 (libunwind_frame_base_address): Remove.
8233 * libunwind-frame.h (libunwind_frame_base_address): Remove declaration.
8234
8235 2012-03-04 Yao Qi <yao@codesourcery.com>
8236
8237 * common/agent.c (gdb_connect_sync_socket): Add _ markup and
8238 remove trailing new line.
8239 (agent_run_command, agent_run_command): Add _ markup.
8240 (agent_capability_check): Likewise.
8241
8242 2012-03-03 Jan Kratochvil <jan.kratochvil@redhat.com>
8243
8244 * breakpoint.c (set_condition_evaluation_mode): Set
8245 CONDITION_EVALUATION_MODE unconditionally.
8246
8247 2012-03-03 Yao Qi <yao@codesourcery.com>
8248
8249 * common/agent.c (agent_look_up_symbols): Add one parameter 'arg'.
8250 * common/agent.h: Update declaration.
8251 * inf-child.c (inf_child_use_agent): New.
8252 (inf_child_can_use_agent): New.
8253 (inf_child_target): Initialize fields `to_use_agent'
8254 and `to_can_use_agent'.
8255 * agent.c (agent_new_objfile): New.
8256 (_initialize_agent): Add agent_new_objfile to new_objfile
8257 observer.
8258
8259 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
8260 New.
8261 (linux_target_install_ops): Initialize field
8262 `to_static_tracepoint_markers_by_strid'.
8263 * remote.c (free_current_marker): Move it to ...
8264 * tracepoint.c (free_current_marker): ... here. New.
8265 (cleanup_target_stop): New.
8266 * tracepoint.h: Declare free_current_marker.
8267 * NEWS: Add one entry about `info static-tracepoint-marker'.
8268
8269 2012-03-03 Yao Qi <yao@codesourcery.com>
8270
8271 * common/agent.c (agent_loaded_p): New.
8272 (agent_look_up_symbols): New global.
8273 * common/agent.h: Declare agent_loaded_p.
8274
8275 2012-03-03 Yao Qi <yao@codesourcery.com>
8276
8277 * common/agent.c (struct ipa_sym_addresses) <addr_capability>: New.
8278 (agent_capability_check, agent_capability_invalidate): New.
8279 (symbol_list): New array element.
8280 * common/agent.h (enum agent_capa): New.
8281 * target.c (target_pre_inferior): Call agent_capability_invalidate.
8282
8283 2012-03-03 Yao Qi <yao@codesourcery.com>
8284
8285 * target.h (struct target_ops) <to_use_agent>: New field.
8286 (struct target_ops) <to_can_use_agent>: New field.
8287 (target_use_agent, target_can_use_agent): New macro.
8288 * target.c (update_current_target): Update.
8289 * remote.c: New enum `PACKET_QAgent'.
8290 (remote_protocol_features): Add a new element.
8291 (remote_use_agent, remote_can_use_agent): New.
8292 (init_remote_ops): Initialize field `can_use_agent' with
8293 remote_can_use_agent. Intiailize field `use_agent' with
8294 remote_use_agent.
8295 * common/agent.c (use_agent): New global.
8296 * common/agent.h: Declare it.
8297 * tracepoint.c (info_static_tracepoint_markers_command): Add
8298 comment.
8299 * Makefile.in (SFILES): Add common/agent.c and agent.c.
8300 (COMMON_OBS): Add common/agent.o and agent.o
8301 (common-agent.o): New rule.
8302 * agent.c: New.
8303
8304 2012-03-03 Yao Qi <yao@codesourcery.com>
8305
8306 * common/agent.c: New.
8307 * common/agent.h: New.
8308 * configure.ac: Add `sys/socket.h' and `sys/un.h' to
8309 AC_CHECK_HEADERS.
8310 * configure, configh.in: Regenerated.
8311
8312 2012-03-02 Kevin Buettner <kevinb@redhat.com>
8313
8314 * sh-tdep.c (sh_frame_cache): Don't fetch the FPSCR register
8315 unless it exists for this architecture.
8316
8317 2012-03-02 Joel Brobecker <brobecker@adacore.com>
8318
8319 * language.h (struct language_defn): New "method" la_read_var_value.
8320 * findvar.c: #include "language.h".
8321 (default_read_var_value): Renames read_var_value. Rewrite
8322 function description.
8323 (read_var_value): New function.
8324 * value.h (default_read_var_value): Add prototype.
8325 * ada-lang.c (ada_read_renaming_var_value, ada_read_var_value):
8326 New functions.
8327 (ada_language_defn): Add entry for la_read_var_value.
8328 * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, language.c,
8329 * m2-lang.c, objc-lang.c, opencl-lang.c, p-lang.c: Update
8330 language_defn structures to add entry for new la_read_var_value
8331 field.
8332
8333 2012-03-02 Tom Tromey <tromey@redhat.com>
8334 Pedro Alves <palves@redhat.com>
8335
8336 PR breakpoints/13776:
8337 * breakpoint.c (breakpoint_init_inferior): Delete step-resume
8338 breakpoints.
8339 (delete_longjmp_breakpoint_at_next_stop): New.
8340 * breakpoint.h (delete_longjmp_breakpoint_at_next_stop): Declare.
8341 * target.c (generic_mourn_inferior): Call mark_breakpoints_out
8342 before deleting the inferior. Add comments.
8343 * thread.c (clear_thread_inferior_resources): Don't delete lonjmp
8344 breakpoints immediately, but only on next stop. Move that code
8345 next to where we mark other breakpoints for deletion.
8346
8347 2012-03-02 Joel Brobecker <brobecker@adacore.com>
8348
8349 * mips-linux-nat.c (mips_linux_read_description): Add missing i18n
8350 marker.
8351 * mips-tdep.c (mips_linux_reg_names): Improve comment to avoid ARI
8352 violation.
8353
8354 2012-03-02 Pedro Alves <palves@redhat.com>
8355
8356 * linux-thread-db.c (attach_thread): Avoid in_thread_list call.
8357
8358 2012-03-02 Ulrich Weigand <uweigand@de.ibm.com>
8359
8360 Fix -Wmissing-prototypes build.
8361 * ppc-linux-nat.c (ppc_linux_get_hwcap): Make static.
8362 * remote-sim.c (gdbsim_has_all_memory): Likewise.
8363 (gdbsim_has_memory): Likewise.
8364
8365 2012-03-02 Yao Qi <yao@codesourcery.com>
8366
8367 Fix -Wmissing-prototypes build.
8368 * charset.c (phony_iconv_open): Make static.
8369 (phony_iconv_close, phony_iconv): Likewise.
8370 * i386-linux-nat.c (_initialize_i386_linux_nat): New prototype.
8371 * i386-windows-nat.c (_initialize_i386_windows_nat): New
8372 prototype.
8373 * mingw-hdep.c (_initialize_mingw_hdep): New prototype.
8374 * ser-mingw.c (create_select_thread): Make static.
8375 * windows-termcap.c (tgetent): New prototype.
8376 (tgetnum, tgetflag, tgetstr, tputs, tgoto): Likewise.
8377
8378 2012-03-02 Zhang Yuanhui <asmwarrior@gmail.com>
8379
8380 Fix -Wmissing-prototypes build.
8381 * windows-nat.c (dll_symbol_command, ctrl_c_handler): Make them static.
8382 (_initialize_windows_nat, _initialize_check_for_gdb_ini)
8383 (_initialize_loadable): New prototypes.
8384
8385 2012-03-02 Doug Evans <dje@google.com>
8386
8387 * dwarf2read.c (load_full_comp_unit): Remove unnecessary reading of
8388 abbrev table, read_comp_unit will do it.
8389
8390 2012-03-02 Jan Kratochvil <jan.kratochvil@redhat.com>
8391
8392 Fix -Wmissing-prototypes build.
8393 * alpha-tdep.c (alpha_deal_with_atomic_sequence): Make it static.
8394 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): New prototype.
8395 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Likewise.
8396 * arm-symbian-tdep.c (arm_symbian_skip_trampoline_code): Make it static.
8397 (_initialize_arm_symbian_tdep): New prototype.
8398 * arm-wince-tdep.c (arm_wince_skip_main_prologue): Make it static.
8399 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): New prototype.
8400 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Make it
8401 static.
8402 * lm32-tdep.c (_initialize_lm32_tdep): New prototype.
8403 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): New
8404 prototype.
8405 * microblaze-tdep.c (microblaze_debug, microblaze_fetch_instruction)
8406 (microblaze_skip_prologue, microblaze_frame_cache): Make them static.
8407 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Make it
8408 static.
8409 * moxie-tdep.c (moxie_process_record): Likewise.
8410 * remote-mips.c (mips_can_use_watchpoint, mips_insert_watchpoint)
8411 (mips_remove_watchpoint, mips_stopped_by_watchpoint): Make them static.
8412 * rl78-tdep.c (rl78_breakpoint_from_pc): Make it static.
8413 (_initialize_rl78_tdep): New prototype.
8414 * rx-tdep.c (rx_breakpoint_from_pc): Make it static.
8415 (_initialize_rx_tdep): New prototype.
8416 * solib-darwin.c (darwin_in_dynsym_resolve_code): Make it static.
8417 (_initialize_darwin_solib): New prototype.
8418 * solib-spu.c: Include solib-spu.h.
8419 (_initialize_spu_solib): New prototype.
8420 * spu-multiarch.c (_initialize_spu_multiarch): New prototype.
8421 * tic6x-tdep.c (tic6x_analyze_prologue, tic6x_skip_prologue)
8422 (tic6x_breakpoint_from_pc, tic6x_frame_unwind_cache)
8423 (tic6x_software_single_step): Make it static.
8424 (_initialize_tic6x_tdep): New prototype.
8425
8426 2012-03-02 Jan Kratochvil <jan.kratochvil@redhat.com>
8427
8428 Fix -Wmissing-prototypes build.
8429 * cris-tdep.c (cris_can_use_hardware_watchpoint)
8430 (cris_region_ok_for_watchpoint, cris_stopped_data_address): Remove.
8431
8432 2012-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
8433
8434 Fix -Wmissing-prototypes build.
8435 * frv-tdep.c (frv_check_watch_resources, frv_stopped_data_address)
8436 (frv_have_stopped_data_address): Remove.
8437
8438 2012-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
8439
8440 Fix -Wmissing-prototypes build.
8441 * Makefile.in (HFILES_NO_SRCDIR): Add sh64-tdep.h.
8442 * sh-tdep.c: Include sh64-tdep.h.
8443 * sh-tdep.h (sh64_gdbarch_init, sh64_show_regs): Remove declarations.
8444 * sh64-tdep.c: Include sh64-tdep.h.
8445 * sh64-tdep.h: New file.
8446
8447 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
8448
8449 * mips-tdep.c (mips32_scan_prologue): Correct indentation.
8450
8451 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
8452
8453 * mips-tdep.c (mips_gdbarch_init): Only set pc_regnum and
8454 sp_regnum once the gdbarch_init_osabi hook has been called.
8455
8456 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
8457
8458 * mips-tdep.c (mips32_bc1_pc): New function.
8459 (mips32_next_pc): Handle BC1ANY2F, BC1ANY2T, BC1ANY4F, BC1ANY4T,
8460 BPOSGE32 and BPOSGE64 instructions.
8461 (deal_with_atomic_sequence): Likewise.
8462 (mips32_instruction_has_delay_slot): Likewise.
8463
8464 2012-03-01 Maciej W. Rozycki <macro@mips.com>
8465 Chris Dearman <chris@mips.com>
8466 Maciej W. Rozycki <macro@codesourcery.com>
8467 Joseph Myers <joseph@codesourcery.com>
8468
8469 * features/mips-dsp.xml: New file.
8470 * features/mips64-dsp.xml: New file.
8471 * features/mips-dsp-linux.xml: New file.
8472 * features/mips64-dsp-linux.xml: New file.
8473 * features/Makefile (WHICH): Add mips-dsp-linux and
8474 mips64-dsp-linux.
8475 (mips-dsp-expedite, mips64-dsp-expedite): New variables.
8476 * features/mips-dsp-linux.c: New file.
8477 * features/mips64-dsp-linux.c: New file.
8478 * regformats/mips-dsp-linux.dat: New file.
8479 * regformats/mips64-dsp-linux.dat: New file.
8480 * mips-linux-nat.c (mips_linux_register_addr): Handle DSP
8481 registers.
8482 (mips64_linux_register_addr): Likewise.
8483 (mips64_linux_regsets_fetch_registers): Likewise.
8484 (mips64_linux_regsets_store_registers): Likewise.
8485 (mips64_linux_fetch_registers): Update call to
8486 mips64_linux_regsets_fetch_registers.
8487 (mips64_linux_store_registers): Update call to
8488 mips64_linux_regsets_store_registers.
8489 (mips_linux_read_description): Probe for DSP registers.
8490 (_initialize_mips_linux_nat): Call initialize_tdesc_mips_dsp_linux
8491 and initialize_tdesc_mips64_dsp_linux.
8492 * mips-linux-tdep.c (supply_gregset, mips64_supply_gregset):
8493 Remove padding of no longer used embedded register slots.
8494 * mips-linux-tdep.h (DSP_BASE, DSP_CONTROL): New macros.
8495 (MIPS_RESTART_REGNUM): Redefine enum value.
8496 * mips-tdep.c (mips_generic_reg_names): Remove trailing null
8497 strings.
8498 (mips_tx39_reg_names): Likewise.
8499 (mips_linux_reg_names): New array of register names for Linux
8500 targets.
8501 (mips_register_name): Check for a null pointer in
8502 mips_processor_reg_names and return an empty string.
8503 (mips_register_type): Exclude embedded registers for the IRIX
8504 and Linux ABIs.
8505 (mips_pseudo_register_type): Likewise. Use dynamic numbers to
8506 refer to FP registers, LO, HI, BadVAddr, Cause and PC. Handle
8507 DSP registers.
8508 (mips_stab_reg_to_regnum): Handle DSP accumulators.
8509 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Likewise.
8510 (mips_gdbarch_init): Likewise. Initialize internal register
8511 indices for the Linux ABI. Use dynamic numbers to refer to
8512 registers, as applicable, while parsing the target description.
8513 * mips-tdep.h (struct mips_regnum): Add dspacc/dspctl offsets.
8514
8515 2012-03-01 Joel Brobecker <brobecker@adacore.com>
8516
8517 * frame.h (read_frame_register_unsigned): Fix typo in function
8518 description.
8519
8520 2012-03-01 Pedro Alves <palves@redhat.com>
8521
8522 * jit-reader.in [!__cplusplus]
8523 (GDB_DECLARE_GPL_COMPATIBLE_READER): Add missing backslash.
8524
8525 2012-03-01 Pedro Alves <palves@redhat.com>
8526
8527 * configure.ac (build_warnings): Add -Wmissing-prototypes.
8528 * configure: Regenerate.
8529
8530 2012-03-01 Pedro Alves <palves@redhat.com>
8531
8532 * amd64-linux-tdep.c (amd64_linux_record_signal): Make static.
8533 * breakpoint.c (create_exception_master_breakpoint, trace_command)
8534 (ftrace_command, strace_command): Make static.
8535 * d-lang.c (_initialize_d_language): Declare.
8536 * dwarf2expr.c (_initialize_dwarf2expr): Declare.
8537 * dwarf2loc.c (_initialize_dwarf2loc):
8538 * dwarf2read.c (process_psymtab_comp_unit): Make static.
8539 * exec.c (exec_get_section_table): Make static.
8540 * i386-linux-tdep.c (i386_linux_record_signal): Make static.
8541 * infcmd.c (ensure_valid_thread, ensure_not_tfind_mode): Make static.
8542 * inferior.c (remove_inferior_command, add_inferior_command)
8543 (clone_inferior_command): Make static.
8544 * linux-nat.c (linux_nat_thread_address_space)
8545 (linux_nat_core_of_thread): Make static.
8546 * linux-tdep.c (_initialize_linux_tdep): Declare.
8547 * objc-lang.c (_initialize_objc_lang): Declare.
8548 * opencl-lang.c (builtin_opencl_type, opencl_language_arch_info):
8549 Make static.
8550 (_initialize_opencl_language): Declare.
8551 * record.c (_initialize_record): Declare.
8552 * remote.c (demand_private_info, remote_get_tib_address)
8553 (remote_supports_cond_tracepoints)
8554 (remote_supports_fast_tracepoints, remote_get_tracepoint_status):
8555 Make static.
8556 * skip.c (_initialize_step_skip): Declare.
8557 * symtab.c (skip_prologue_using_lineinfo): Make static.
8558 * tracepoint.c (delete_trace_state_variable)
8559 (trace_variable_command, delete_trace_variable_command)
8560 (get_uploaded_tsv, find_matching_tracepoint_location)
8561 (find_matching_tsv, create_tsv_from_upload, get_traceframe_info):
8562 Make static.
8563 * value.c (pack_unsigned_long): Make static.
8564 * varobj.c (varobj_ensure_python_env): Make static.
8565 * windows-tdep.c (_initialize_windows_tdep): Declare.
8566 * xml-syscall.c (make_cleanup_free_syscalls_info): Make static.
8567
8568 2012-03-01 Pedro Alves <palves@redhat.com>
8569
8570 * linux-tdep.c (linux_has_shared_address_space): Make static. Add
8571 gdbarch parameter.
8572 (linux_init_abi): Install it as has_shared_address_space gdbarch
8573 callback.
8574
8575 2012-03-01 Pedro Alves <palves@redhat.com>
8576
8577 * observer.c (observer_test_first_notification_function)
8578 (observer_test_second_notification_function)
8579 (observer_test_third_notification_function): Add declarations.
8580
8581 2012-03-01 Pedro Alves <palves@redhat.com>
8582
8583 * common/signals.c (default_target_signal_to_host)
8584 (default_target_signal_from_host): Move ...
8585 * arch-utils.c: ... here.
8586 * arch-utils.h (default_target_signal_to_host)
8587 (default_target_signal_from_host): Declare.
8588
8589 * common/signals.c (target_signal_from_command): Move ...
8590 * infrun.c: ... here.
8591 * inferior.h (target_signal_from_command): Declare.
8592 * target.h (target_signal_from_command)
8593 (default_target_signal_from_host, default_target_signal_to_host):
8594 Delete declarations.
8595
8596 * common/signals.c (_initialize_signals): Delete.
8597
8598 2012-03-01 Pedro Alves <palves@redhat.com>
8599
8600 * jit-reader.in (plugin_is_GPL_compatible): Add declarations for
8601 both __cplusplus and !__cplusplus.
8602
8603 2012-03-01 Pedro Alves <palves@redhat.com>
8604
8605 * psymtab.c (find_and_open_source): Delete declaration.
8606 * source.c (find_and_open_source): Move comment ...
8607 * source.h (find_and_open_source): ... to this new declaration.
8608
8609 2012-03-01 Pedro Alves <palves@redhat.com>
8610
8611 * inline-frame.c: Include inline-frame.h.
8612
8613 2012-03-01 Pedro Alves <palves@redhat.com>
8614
8615 * tui/tui-data.c (set_gen_win_origin): Delete.
8616 * tui/tui-data.h (tui_set_gen_win_origin): Delete declaration.
8617 * tui/tui-regs.c (tui_last_reg_element_no_in_line): Delete.
8618
8619 2012-03-01 Pedro Alves <palves@redhat.com>
8620
8621 * remote.c (encode_actions): Delete declaration.
8622 * tracepoint.c (encode_actions): Make extern.
8623 * tracepoint.h (encode_actions): Declare.
8624
8625 2012-03-01 Pedro Alves <palves@redhat.com>
8626
8627 * python/py-breakpoint.c: Include python.h.
8628 * python/py-continueevent.c (create_continue_event_object): Make
8629 static.
8630 * python/py-lazy-string.c (stpy_get_type): Make static.
8631 * python/py-newobjfileevent.c (create_new_objfile_event_object):
8632 Make static.
8633 * python/py-utils.c (unicode_to_target_python_string): Make
8634 static.
8635 * python/py-value.c: Include python.h.
8636
8637 2012-03-01 Pedro Alves <palves@redhat.com>
8638
8639 * inferior.c (delete_threads_of_inferior): Delete.
8640
8641 2012-03-01 Pedro Alves <palves@redhat.com>
8642
8643 Import fallback definitions from glibc.
8644
8645 * gdb_proc_service.h [!HAVE_PROC_SERVICE_H] (struct
8646 ps_prochandle): Forward declare.
8647 (ps_err_e): Use glibc's comments.
8648 [!HAVE_PROC_SERVICE_H] (ps_pdread, ps_pdwrite, ps_ptread)
8649 (ps_ptwrite, ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
8650 (ps_lsetfpregs, ps_getpid, ps_get_thread_area, ps_pglobal_lookup)
8651 (ps_pstop, ps_pcontinue, ps_lstop, ps_lcontinue, ps_lgetxregsize)
8652 (ps_lgetxregs, ps_lsetxregs, ps_plog): Declare.
8653 (struct ps_prochandle): Adjust comment.
8654
8655 2012-03-01 Pedro Alves <palves@redhat.com>
8656
8657 * ada-lang.c (ada_modulus_from_name): Delete.
8658 * ada-lex.l (lexer_init): Make static.
8659
8660 2012-03-01 Pedro Alves <palves@redhat.com>
8661
8662 PR gdb/13767
8663
8664 * frame.c (read_frame_register_unsigned): New.
8665 * frame.h (read_frame_register_unsigned): Declare.
8666 * i387-tdep.c (print_i387_status_word): New parameter `status_p'.
8667 Handle it.
8668 (print_i387_control_word): New parameter `control_p'. Handle it.
8669 (i387_print_float_info): Handle unavailable float registers.
8670
8671 2012-03-01 Keith Seitz <keiths@redhat.com>
8672
8673 * linespec.c (decode_line_2): Sort the list of methods
8674 alphabetically before presenting the user with a selection
8675 menu.
8676
8677 2012-03-01 Doug Evans <dje@google.com>
8678
8679 * dwarf2read.c (dwarf2_cu): Remove unused members has_form_ref_addr,
8680 has_namespace_info.
8681 (dwarf2_read_abbrevs): Remove corresponding initialization.
8682
8683 2012-03-01 Scott J. Goldman <scottjg@vmware.com>
8684
8685 * NEWS: Mention new python command class gdb.COMMAND_USER.
8686 * cli/cli-cmds.c (show_user): Print error when used on a python
8687 command.
8688 (init_cli_cmds): Update documentation strings for "show user" and
8689 "set/show max-user-call-depth" to clarify that it does not apply to
8690 python commands.
8691 * python/py-cmd.c (cmdpy_init): Treat class_user as a valid class in
8692 error check.
8693 (gdbpy_initialize_commands): Add COMMAND_USER as a constant in
8694 gdb python api.
8695 * top.c (execute_command): Only execute a user-defined command as a
8696 legacy macro if c->user_commands is set.
8697
8698 2012-03-01 Tom Tromey <tromey@redhat.com>
8699
8700 * valprint.h (struct generic_val_print_decorations): New.
8701 (generic_val_print): Declare.
8702 * valprint.c (generic_val_print): New function.
8703 * p-valprint.c (p_decorations): New global.
8704 (pascal_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM,
8705 TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_RANGE, TYPE_CODE_INT,
8706 TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ERROR, TYPE_CODE_UNDEF,
8707 TYPE_CODE_BOOL, TYPE_CODE_CHAR>: Call generic_val_print.
8708 * m2-valprint.c (m2_decorations): New global.
8709 (m2_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM, TYPE_CODE_FUNC,
8710 TYPE_CODE_BOOL, TYPE_CODE_RANGE, TYPE_CODE_INT, TYPE_CODE_CHAR,
8711 TYPE_CODE_FLT, TYPE_CODE_METHOD, TYPE_CODE_VOID, TYPE_CODE_UNDEF,
8712 TYPE_CODE_ERROR>: Call generic_val_print.
8713 * f-valprint.c (f_decorations): New global.
8714 (f_val_print): Use print_function_pointer_address.
8715 <TYPE_CODE_REF, TYPE_CODE_FUNC, TYPE_CODE_CHAR, TYPE_CODE_FLAGS,
8716 TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ENUM, TYPE_CODE_RANGE,
8717 TYPE_CODE_BOOL, TYPE_CODE_COMPLEX, TYPE_CODE_UNDEF>: Call
8718 generic_val_print.
8719 * c-valprint.c (c_decorations): New global.
8720 (c_val_print) <TYPE_CODE_MEMBERPTR, TYPE_CODE_REF, TYPE_CODE_ENUM,
8721 TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_METHOD, TYPE_CODE_BOOL,
8722 TYPE_CODE_RANGE, TYPE_CODE_CHAR, TYPE_CODE_FLT,
8723 TYPE_CODE_DECFLOAT, TYPE_CODE_VOID, TYPE_CODE_ERROR,
8724 TYPE_CODE_UNDEF, TYPE_CODE_COMPLEX>: Call generic_val_print.
8725 * ada-valprint.c (ada_val_print_1) <TYPE_CODE_FLAGS>: Remove
8726 case.
8727
8728 2012-03-01 Tom Tromey <tromey@redhat.com>
8729
8730 * valprint.c (val_print): Update.
8731 * p-valprint (pascal_val_print): Return void.
8732 * p-lang.h (pascal_val_print): Return void.
8733 * m2-valprint.c (m2_val_print): Return void.
8734 * m2-lang.h (m2_val_print): Return void.
8735 * language.h (struct language_defn) <la_val_print>: Return void.
8736 * language.c (unk_lang_val_print): Return void.
8737 * jv-valprint.c (java_val_print): Return void.
8738 * jv-lang.h (java_val_print): Return void.
8739 * f-valprint.c (f_val_print): Return void.
8740 * f-lang.h (f_val_print): Return void.
8741 * d-valprint.c (d_val_print): Return void.
8742 (dynamic_array_type): Update.
8743 * d-lang.h (d_val_print): Return void.
8744 * c-valprint.c (c_val_print): Return void.
8745 * c-lang.h (c_val_print): Return void.
8746 * ada-valprint.c (ada_vada_val_print, ada_val_print_1): Return
8747 void.
8748 * ada-lang.h (ada_val_print): Return void.
8749
8750 2012-03-01 Tom Tromey <tromey@redhat.com>
8751
8752 * value.h (val_print): Return void.
8753 * valprint.c (val_print): Return void.
8754
8755 2012-03-01 Tom Tromey <tromey@redhat.com>
8756
8757 * value.h (common_val_print): Return void.
8758 * valprint.c (common_val_print): Return void.
8759
8760 2012-03-01 Tom Tromey <tromey@redhat.com>
8761
8762 * value.h (value_print): Return void.
8763 * valprint.c (value_print): Return void.
8764 * p-valprint.c (pascal_value_print): Return void.
8765 * p-lang.h (pascal_value_print): Return void.
8766 * language.h (struct language_defn) <la_value_print>: Return
8767 void.
8768 * language.c (unk_lang_value_print): Return void.
8769 * jv-valprint.c (java_value_print): Return void.
8770 * jv-lang.h (java_value_print): Return void.
8771 * f-valprint.c (c_value_print): Don't declare.
8772 Include c-lang.h.
8773 * c-valprint.c (c_value_print): Return void.
8774 * c-lang.h (c_value_print): Return void.
8775 * ada-valprint.c (ada_value_print): Return void.
8776 * ada-lang.h (ada_value_print): Return void.
8777
8778 2012-03-01 Tom Tromey <tromey@redhat.com>
8779
8780 * value.c (value_primitive_field): Handle virtual base classes.
8781
8782 2012-03-01 Tom Tromey <tromey@redhat.com>
8783
8784 * gdbtypes.h (struct vbase): Remove.
8785
8786 2012-03-01 Tom Tromey <tromey@redhat.com>
8787
8788 * c-valprint.c (print_function_pointer_address): Move...
8789 * valprint.c: ... here. Make non-static.
8790 * m2-valprint.c (print_function_pointer_address): Remove.
8791 * valprint.h (print_function_pointer_address): Declare.
8792
8793 2012-03-01 Joel Brobecker <brobecker@adacore.com>
8794
8795 * NEWS: Document the fact that one can provide a condition when
8796 creating an Ada exception catchpoint.
8797
8798 2012-03-01 Tom Tromey <tromey@redhat.com>
8799
8800 * valprint.c (val_print_type_code_flags): Fix placement of
8801 trailing brace.
8802
8803 2012-03-01 Joel Brobecker <brobecker@adacore.com>
8804
8805 * copyright.py (MULTILINE_COMMENT_PREFIXES): Delete.
8806 (update_files): Do not set MULTILINE_COMMENT_PREFIXES
8807 environment variable before calling update-copyright.
8808
8809 2012-03-01 Joel Brobecker <brobecker@adacore.com>
8810
8811 * gnulib/extra/update-copyright: Update to the latest from
8812 gnulib's git repository.
8813 * copyright.py: Set UPDATE_COPYRIGHT_USE_INTERVALS environment
8814 variable to 2 instead of 1.
8815
8816 2012-02-29 Joel Brobecker <brobecker@adacore.com>
8817
8818 * varobj.c (c_value_of_variable): Remove dead code.
8819
8820 2012-02-29 Joel Brobecker <brobecker@adacore.com>
8821
8822 * ada-lex.p (processId): Do not modify already encoded IDs.
8823 Update function documentation.
8824
8825 2012-02-29 Joel Brobecker <brobecker@adacore.com>
8826
8827 * ada-lang.h (ada_find_renaming_symbol): Replace parameter
8828 "name" with "struct symbol *name_sym".
8829 * ada-exp.y (write_var_or_type): Update call to
8830 ada_find_renaming_symbol.
8831 "name" with "struct symbol *name_sym". Adjust Implementation
8832 accordingly. Adjust the function documentation.
8833
8834 2012-02-29 Joel Brobecker <brobecker@adacore.com>
8835
8836 * ada-lang.h (ada_find_any_symbol, ada_find_any_type): Delete.
8837 * ada-lang.c (ada_find_any_type): Add advance declaration.
8838 Make static. Replace ada_find_any_symbol by
8839 ada_find_any_type_symbol.
8840 (ada_find_any_type_symbol): Renames ada_find_any_symbol.
8841 Improve function description. Make static.
8842 (ada_find_renaming_symbol, find_old_style_renaming_symbol):
8843 Replace ada_find_any_symbol by ada_find_any_type_symbol.
8844
8845 2012-02-29 Joel Brobecker <brobecker@adacore.com>
8846
8847 * ada-lang.c (struct tag_args): Delete.
8848 (ada_get_tsd_type): Function body moved up in source file.
8849 (ada_tag_name_1, ada_tag_name_2): Delete.
8850 (ada_get_tsd_from_tag): New function.
8851 (ada_tag_name_from_tsd): New function.
8852 (ada_tag_name): Use a TRY_CATCH block instead of catch_errors
8853 to determine the tag name.
8854
8855 2012-02-29 Joel Brobecker <brobecker@adacore.com>
8856
8857 * ada-lang.h (ada_get_decoded_value, ada_get_decoded_type): Add
8858 declaration.
8859 * ada-lang.c (ada_get_decoded_value, ada_get_decoded_type): New
8860 function.
8861
8862 2012-02-29 Joel Brobecker <brobecker@adacore.com>
8863
8864 * ada-lang.c (ada_is_ignored_field): Rewrite wrong comment.
8865
8866 2012-02-29 Joel Brobecker <brobecker@adacore.com>
8867
8868 * ada-lang.c (ada_lookup_symbol_list): Only cache the result of
8869 full searches.
8870
8871 2012-02-29 Joel Brobecker <brobecker@adacore.com>
8872
8873 * ada-lang.c (constrained_packed_array_type): If there is a
8874 parallel XA type, use it to determine the array index type.
8875
8876 2012-02-29 Joel Brobecker <brobecker@adacore.com>
8877
8878 * ada-valprint.c (ada_val_print_1): If our value is a reference
8879 to an array descriptor, dereference it before converting it
8880 to a simple array.
8881
8882 2012-02-29 Joel Brobecker <brobecker@adacore.com>
8883
8884 * ada-lang.c (ada_to_fixed_value): Call unwrap_value before
8885 creating fixed value.
8886 (ada_value_ind, ada_coerce_ref, assign_component)
8887 (ada_evaluate_subexp): Remove call to unwrap_value before
8888 call to ada_to_fixed_value.
8889
8890 2012-02-29 Joel Brobecker <brobecker@adacore.com>
8891
8892 * ada-lang.c (to_fixed_array_type): Set result's type name.
8893
8894 2012-02-29 Joel Brobecker <brobecker@adacore.com>
8895
8896 * ada-lang.c (catch_ada_exception_command_split): Add new
8897 argument cond_string. Add support for condition at end of
8898 "catch exception" commands.
8899 (ada_decode_exception_location): Add new argument cond_string.
8900 Update call to catch_ada_exception_command_split.
8901 (create_ada_exception_catchpoint): Add new argument cond_string.
8902 Set the breakpoint condition if needed.
8903 (catch_ada_exception_command): Update call to
8904 ada_decode_exception_location.
8905 (ada_decode_assert_location): Add function documentation.
8906 Add support for condition at end of "catch assert" command.
8907 (catch_assert_command): Update calls to ada_decode_assert_location
8908 and create_ada_exception_catchpoint.
8909
8910 2012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
8911
8912 Fix disp-step-syscall.exp: fork: single step over fork.
8913 * i386-linux-tdep.c (-i386_linux_get_syscall_number): Rename to ...
8914 (i386_linux_get_syscall_number_from_regcache): ... here, new function
8915 comment, change parameters gdbarch and ptid to regcache. Remove
8916 parameter regcache, initialize gdbarch from regcache here.
8917 (i386_linux_get_syscall_number, i386_linux_displaced_step_copy_insn):
8918 New functions.
8919 (i386_linux_init_abi): Install i386_linux_displaced_step_copy_insn
8920 instead.
8921 * i386-tdep.c (i386_syscall_p): Check also for 'sysenter' and
8922 'syscall'. Make the 'int' check more strict.
8923
8924 2012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
8925
8926 Fix reverse mode for syscall on AMD CPUs in 32-bit mode.
8927 * i386-linux-tdep.c (i386_linux_intx80_sysenter_record): Rename to ...
8928 (i386_linux_intx80_sysenter_syscall_record): ... here.
8929 (i386_linux_init_abi): Initialize also I386_SYSCALL_RECORD.
8930 Use the renamed function name.
8931
8932 2012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
8933
8934 * arm-linux-tdep.c (arm_linux_copy_svc): Reset stale FRAME.
8935 * breakpoint.c (until_break_command): Likewise.
8936 * elfread.c (elf_gnu_ifunc_resolver_stop): Likewise.
8937 * infcall.c (call_function_by_hand): Likewise.
8938 * infcmd.c (finish_forward): Likewise.
8939 * infrun.c (insert_exception_resume_breakpoint): Likewise.
8940
8941 2012-02-28 Tristan Gingold <gingold@adacore.com>
8942
8943 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Rework code to
8944 avoid variable assignments inside condition.
8945
8946 2012-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
8947
8948 Fix static analysis issue found by cppcheck.
8949 * microblaze-tdep.c (microblaze_extract_return_value): Fix
8950 uninitialized BUF for size 2.
8951
8952 2012-02-27 Chris Dearman <chris@mips.com>
8953 Nathan Froyd <froydnj@codesourcery.com>
8954 Maciej W. Rozycki <macro@codesourcery.com>
8955
8956 * mips-tdep.c (mips32_instruction_has_delay_slot): New function.
8957 (mips16_instruction_has_delay_slot): Likewise.
8958 (mips_segment_boundary): Likewise.
8959 (mips_adjust_breakpoint_address): Likewise.
8960 (mips_gdbarch_init): Use mips_adjust_breakpoint_address.
8961
8962 2012-02-27 Maciej W. Rozycki <macro@mips.com>
8963 Maciej W. Rozycki <macro@codesourcery.com>
8964
8965 * infrun.c (handle_inferior_event): Don't proceed through
8966 shared library trampolines if stepping at the machine
8967 instruction level.
8968
8969 2012-02-27 Maciej W. Rozycki <macro@codesourcery.com>
8970
8971 * mips-linux-tdep.c (mips_linux_init_abi): Set num_pseudo_regs
8972 too.
8973
8974 2012-02-27 Thomas Schwinge <thomas@codesourcery.com>
8975
8976 * sh-tdep.c (sh_make_stub_cache, sh_stub_this_id)
8977 (sh_stub_unwind_sniffer): New functions.
8978 (sh_stub_unwind): New variable.
8979 (sh_gdbarch_init): Wire everything.
8980
8981 2012-02-27 Pedro Alves <palves@redhat.com>
8982
8983 * linux-nat.c (pid_is_stopped): Delete, moved to common/.
8984 (linux_nat_post_attach_wait): Adjust to use
8985 linux_proc_pid_is_stopped.
8986 * common/linux-procfs.h (linux_proc_pid_is_stopped): Declare.
8987 * common/linux-procfs.c (linux_proc_pid_is_stopped): New function,
8988 based on pid_is_stopped from both linux-nat.c and
8989 gdbserver/linux-low.c, and renamed.
8990
8991 2012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
8992
8993 * remote.c (remote_watchpoint_addr_within_range): New function.
8994 (init_remote_ops): Use it.
8995
8996 2012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
8997
8998 * target.h (target_watchpoint_addr_within_range): Document macro.
8999
9000 2012-02-24 Pedro Alves <palves@redhat.com>
9001
9002 * stack.c (set_last_displayed_sal): Issue internal_error instead
9003 of warning, and issue it after clearing the last displayed sal.
9004
9005 2012-02-24 Jan Kratochvil <jan.kratochvil@redhat.com>
9006 Pedro Alves <palves@redhat.com>
9007
9008 * breakpoint.c (until_break_command): Install breakpoints after
9009 all frame manipulations.
9010
9011 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
9012
9013 * remote.c (remote_supports_cond_breakpoints): New forward
9014 declaration.
9015 (remote_add_target_side_condition): New function.
9016 (remote_insert_breakpoint): Add target-side breakpoint
9017 conditional if supported.
9018 (remote_insert_hw_breakpoint): Likewise.
9019 (init_remote_ops): Set to_supports_evaluation_of_breakpoint_conditions
9020 hook.
9021
9022 * target.c (update_current_target): Inherit
9023 to_supports_evaluation_of_breakpoint_conditions.
9024 Default to_supports_evaluation_of_breakpoint_conditions to return_zero.
9025
9026 * target.h (struct target_ops)
9027 <to_supports_evaluation_of_breakpoint_conditions>: New field.
9028 (target_supports_evaluation_of_breakpoint_conditions): New #define.
9029
9030 * breakpoint.c (get_first_locp_gte_addr): New forward declaration.
9031 (condition_evaluation_both, condition_evaluation_auto,
9032 condition_evaluation_host, condition_evaluation_target,
9033 condition_evaluation_enums, condition_evaluation_mode_1,
9034 condition_evaluation_mode): New static globals.
9035 (translate_condition_evaluation_mode): New function.
9036 (breakpoint_condition_evaluation_mode): New function.
9037 (gdb_evaluates_breakpoint_condition_p): New function.
9038 (ALL_BP_LOCATIONS_AT_ADDR): New helper macro.
9039 (mark_breakpoint_modified): New function.
9040 (mark_breakpoint_location_modified): New function.
9041 (set_condition_evaluation_mode): New function.
9042 (show_condition_evaluation_mode): New function.
9043 (bp_location_compare_addrs): New function.
9044 (get_first_location_gte_addr): New helper function.
9045 (set_breakpoint_condition): Free condition bytecode if locations
9046 has become unconditional. Call mark_breakpoint_modified (...).
9047 (condition_command): Call update_global_location_list (1) for
9048 breakpoints.
9049 (breakpoint_xfer_memory): Use is_breakpoint (...).
9050 (is_breakpoint): New function.
9051 (parse_cond_to_aexpr): New function.
9052 (build_target_condition_list): New function.
9053 (insert_bp_location): Handle target-side conditional
9054 breakpoints and call build_target_condition_list (...).
9055 (update_inserted_breakpoint_locations): New function.
9056 (insert_breakpoint_locations): Handle target-side conditional
9057 breakpoints.
9058 (bpstat_check_breakpoint_conditions): Add comment.
9059 (bp_condition_evaluator): New function.
9060 (bp_location_condition_evaluator): New function.
9061 (print_breakpoint_location): Print information on where the condition
9062 will be evaluated.
9063 (print_one_breakpoint_location): Likewise.
9064 (init_bp_location): Call mark_breakpoint_location_modified (...) for
9065 breakpoint location.
9066 (force_breakpoint_reinsertion): New functions.
9067 (update_global_location_list): Handle target-side breakpoint
9068 conditions.
9069 Reinsert locations that are already inserted if conditions have
9070 changed.
9071 (bp_location_dtor): Free agent expression bytecode.
9072 (disable_breakpoint): Call mark_breakpoint_modified (...).
9073 Call update_global_location_list (...) with parameter 1 for breakpoints.
9074 (disable_command): Call mark_breakpoint_location_modified (...).
9075 Call update_global_location_list (...) with parameter 1 for breakpoints.
9076 (enable_breakpoint_disp): Call mark_breakpoint_modified (...).
9077 (enable_command): mark_breakpoint_location_modified (...).
9078 (_initialize_breakpoint): Update documentation and add
9079 condition-evaluation breakpoint subcommand.
9080
9081 * breakpoint.h: Include ax.h.
9082 (condition_list): New data structure.
9083 (condition_status): New enum.
9084 (bp_target_info) <cond_list>: New field.
9085 (bp_location) <condition_changed, cond_bytecode>: New fields.
9086 (is_breakpoint): New prototype.
9087
9088 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
9089
9090 * remote.c (remote_state) <cond_breakpoints>: New field.
9091 (PACKET_ConditionalBreakpoints): New enum.
9092 (remote_cond_breakpoint_feature): New function.
9093 (remote_protocol_features): Add new ConditionalBreakpoints entry.
9094 (remote_supports_cond_breakpoints): New function.
9095 (_initialize_remote): Add new packet configuration for
9096 target-side conditional breakpoints.
9097
9098 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
9099
9100 * NEWS: Mention target-side conditional breakpoint support,
9101 new condition-evaluation breakpoint subcommand and remote
9102 packet extensions.
9103
9104 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
9105
9106 * breakpoint.c (bp_location_compare): Sort by pspace before sorting by
9107 number.
9108
9109 2012-02-24 Thomas Schwinge <thomas@codesourcery.com>
9110
9111 * sh-tdep.c (sh_skip_prologue): Use skip_prologue_using_sal.
9112 (after_prologue): Remove.
9113
9114 2012-02-23 Tom Tromey <tromey@redhat.com>
9115
9116 * jv-valprint.c (java_val_print): Remove dead code.
9117
9118 2012-02-23 Tristan Gingold <gingold@adacore.com>
9119
9120 * ada-tasks.c (struct ada_tasks_inferior_data): Add
9121 known_tasks_element and known_tasks_length fields.
9122 (read_known_tasks_array): Change argument type. Use pointer type
9123 and number of elements from DATA. Adjust.
9124 (read_known_tasks_list): Likewise.
9125 (get_known_tasks_addr): Remove.
9126 (ada_set_current_inferior_known_tasks_addr): Renamed to ...
9127 (ada_tasks_inferior_data_sniffer): ... this. Use symtab for element
9128 type and array length. Merge former get_known_tasks_addr code.
9129
9130 2012-02-23 Jan Kratochvil <jan.kratochvil@redhat.com>
9131
9132 PR backtrace/13716
9133 * infcmd.c (finish_forward): New variable frame_id, initialize it, use
9134 it after set_momentary_breakpoint.
9135
9136 2012-02-22 Sterling Augustine <saugustine@google.com>
9137
9138 PR 13689:
9139 * breakpoint.c (watchpoint_exp_is_constant): Add UNOP_CAST to switch.
9140
9141 2012-02-22 Gary Benson <gbenson@redhat.com>
9142
9143 * dwarf2read.c (dwarf2_read_index): Correct misspelling.
9144 (find_slot_in_mapped_hash): Likewise.
9145
9146 2012-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
9147
9148 PR build/13638
9149 * configure.ac (MAKEINFO): Replace AC_CHECK_PROG by AC_ARG_VAR.
9150 (MAKEINFOFLAGS): Replace static string by AC_ARG_VAR.
9151 * configure: Regenerate.
9152
9153 2012-02-21 Tristan Gingold <gingold@adacore.com>
9154 Pedro Alves <palves@redhat.com>
9155
9156 * ia64-tdep.c: Do not include libunwind-ia64.h.
9157 * libunwind-frame.h: Remove #ifdef HAVE_LIBUNWIND_H guard.
9158 Include libunwind-ia64.h instead of libunwind.h.
9159 * configure.ac (--with-libunwind, $enable_libunwind): Don't check
9160 for libunwind.h existence.
9161 * configure, config.in: Regenerate.
9162
9163 2012-02-21 Anton Gorenkov <xgsa@yandex.ru>
9164
9165 * c-valprint.c (c_value_print): Use value_rtti_indirect_type
9166 instead of value_rtti_target_type.
9167 * eval.c (evaluate_subexp_standard): Use value_rtti_indirect_type
9168 instead of value_rtti_target_type.
9169 * typeprint.c (whatis_exp): Use value_rtti_indirect_type instead of
9170 value_rtti_target_type.
9171 * valops.c (value_ind): Extract function readjust_indirect_value_type.
9172 (value_rtti_target_type): Rename to ...
9173 (value_rtti_indirect_type): ... here and make it indirect. Update
9174 function comment.
9175 * value.c (readjust_indirect_value_type): New function.
9176 (coerce_ref): Support for enclosing type setting for references
9177 with readjust_indirect_value_type.
9178 * value.h (readjust_value_type): New declaration.
9179 (value_rtti_target_type): Rename to ...
9180 (value_rtti_indirect_type): ... here.
9181
9182 2012-02-21 Anton Gorenkov <xgsa@yandex.ru>
9183
9184 * MAINTAINERS (Write After Approval): Add myself to the list.
9185
9186 2012-02-20 Doug Evans <dje@google.com>
9187
9188 * objfiles.c (add_to_objfile_sections): Remove outdated comments.
9189 Rename objfile_p_char parameter to objfilep.
9190 (build_objfile_section_table): Result is now void. All callers
9191 updated.
9192 * objfiles.h (struct objfile): Tweak comments, whitespace.
9193 (build_objfile_section_table): Update.
9194
9195 * elfread.c (elf_symfile_segments): Fix warning text.
9196
9197 2012-02-20 Tom Tromey <tromey@redhat.com>
9198
9199 PR gdb/13498:
9200 * dwarf2read.c (dw2_expand_symtabs_matching): Only visit a
9201 particular set of file names once.
9202 (dw2_map_symbol_filenames): Likewise.
9203
9204 2012-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
9205
9206 Code cleanup.
9207 * main.c (write_files): Remove the declaration.
9208 (external_editor_command): Move the declaration ...
9209 [GDBTK] (external_editor_command): ... here. Fix the comment.
9210
9211 2012-02-20 Tom Tromey <tromey@redhat.com>
9212
9213 * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove
9214 extraneous block.
9215
9216 2012-02-20 Tristan Gingold <gingold@adacore.com>
9217
9218 * darwin-nat.h (enum darwin_msg_state): Add comments.
9219
9220 2012-02-20 Tristan Gingold <gingold@adacore.com>
9221
9222 * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Fix jb_pc_offset
9223 value.
9224
9225 2012-20-18 Joel Brobecker <brobecker@adacore.com>
9226
9227 * breakpoint.c (watchpoint_exp_is_const): Add missing empty line
9228 between function description and implementation.
9229
9230 2012-02-17 Tom Tromey <tromey@redhat.com>
9231
9232 PR python/12070:
9233 * python/py-event.c (event_object_getset): New global.
9234 (event_object_type): Reference it.
9235 * python/py-type.c (field_object_getset): New global.
9236 (field_object_type): Reference it.
9237 * python/python-internal.h (gdb_py_generic_dict): Declare.
9238 * python/py-utils.c (gdb_py_generic_dict): New function.
9239
9240 2012-02-17 Tristan Gingold <gingold@adacore.com>
9241
9242 * solib-darwin.c (darwin_current_sos): Check magic and filetype
9243
9244 2012-02-17 Thomas Schwinge <thomas@codesourcery.com>
9245
9246 * sh-tdep.c (sh_is_renesas_calling_convention): Fix handling of
9247 TYPE_CALLING_CONVENTION annotation.
9248
9249 2012-02-16 Kevin Buettner <kevinb@redhat.com>
9250
9251 * MAINTAINERS: Add rx to target ISA section.
9252 * Makefile.in (ALL_TARGET_OBS): Add rx-tdep.o.
9253 (ALLDEPFILES): Add rx-tdep.c.
9254
9255 2012-02-16 Tom Tromey <tromey@redhat.com>
9256
9257 * symfile.c (symbol_file_add_main_1): Use inferior's
9258 symfile_flags.
9259 * solib.c (solib_read_symbols): Use inferior's symfile_flags.
9260 * linux-nat.c (linux_child_follow_fork): Set symfile_flags on
9261 inferior.
9262 * infrun.c (handle_vfork_child_exec_or_exit): Set symfile_flags on
9263 inferior.
9264 (follow_exec): Use inferior's symfile_flags.
9265 * inferior.h (struct inferior) <symfile_flags>: New field.
9266
9267 2012-02-16 Mike Frysinger <vapier@gentoo.org>
9268
9269 PR gdb/9734:
9270 * remote-sim.c (gdbsim_create_inferior): Call error() when
9271 sim_create_inferior() fails.
9272
9273 2012-02-16 Josh Matthews <josh@joshmatthews.net>
9274
9275 * machoread.c: Initialize nbr_syms to avoid warnings-as-errors failure.
9276
9277 2012-02-16 Tom Tromey <tromey@redhat.com>
9278
9279 PR c++/13653:
9280 * thread.c (struct current_thread_cleanup) <was_removable>: New
9281 field.
9282 (restore_current_thread_cleanup_dtor): Restore 'removable' field.
9283 (make_cleanup_restore_current_thread): Initialize new field.
9284
9285 2012-02-15 Kevin Buettner <kevinb@redhat.com>
9286
9287 * MAINTAINERS: Add rl78 to target ISA section.
9288 * Makefile.in (ALL_TARGET_OBS): Add rl78-tdep.o.
9289 (ALLDEPFILES): Add rl78-tdep.c.
9290 * NEWS: Mention rl78 as a new target.
9291
9292 2012-02-15 Aleksandar Ristovski <aristovski@qnx.com>
9293
9294 * frame.c (find_frame_sal): Initialize sal->pspace field from frame
9295 data.
9296 * stack.c (set_last_displayed_sal): Validate that PSPACE is not NULL.
9297
9298 2012-02-15 Tom Tromey <tromey@redhat.com>
9299
9300 PR gdb/12659:
9301 * infcmd.c (registers_info): Print just the current register's
9302 name.
9303
9304 2012-02-15 Tom Tromey <tromey@redhat.com>
9305
9306 * python/py-symbol.c (sympy_value): Use _().
9307
9308 2012-02-15 Pedro Alves <palves@redhat.com>
9309
9310 * remote.c (remote_detach_1, extended_remote_attach_1): Tweak
9311 output to be like native targets'.
9312 (remote_pid_to_str): Special case the null ptid.
9313
9314 2012-02-14 Stan Shebs <stan@codesourcery.com>
9315
9316 * NEWS: Mention enable count command.
9317 * breakpoint.h (struct breakpoint): New field enable_count.
9318 * breakpoint.c (enable_breakpoint_disp): Add count argument.
9319 (enable_breakpoint): Add arg to call.
9320 (struct disp_data): New struct.
9321 (do_enable_breakpoint_disp): Interp arg as disp_data and unpack.
9322 (do_map_enable_once_breakpoint): Create a struct and pass it.
9323 (do_map_enable_delete_breakpoint): Ditto.
9324 (do_map_enable_count_breakpoint): New function.
9325 (enable_count_command): New function.
9326 (bpstat_stop_status): Decrement enable_count.
9327 (print_one_breakpoint_location): Report enable count.
9328 (_initialize_breakpoint): Add enable count command.
9329
9330 2012-02-14 Kevin Buettner <kevinb@redhat.com>
9331
9332 * rl78-tdep.c (reggroups.h): Include.
9333 (RL78_RAW_BANK0_R0_REGNUM, RL78_RAW_BANK0_R1_REGNUM)
9334 (RL78_RAW_BANK0_R2_REGNUM, RL78_RAW_BANK0_R3_REGNUM)
9335 (RL78_RAW_BANK0_R4_REGNUM, RL78_RAW_BANK0_R5_REGNUM)
9336 (RL78_RAW_BANK0_R6_REGNUM, RL78_RAW_BANK0_R7_REGNUM)
9337 (RL78_RAW_BANK1_R0_REGNUM, RL78_RAW_BANK1_R1_REGNUM)
9338 (RL78_RAW_BANK1_R2_REGNUM, RL78_RAW_BANK1_R3_REGNUM)
9339 (RL78_RAW_BANK1_R4_REGNUM, RL78_RAW_BANK1_R5_REGNUM)
9340 (RL78_RAW_BANK1_R6_REGNUM, RL78_RAW_BANK1_R7_REGNUM)
9341 (RL78_RAW_BANK2_R0_REGNUM, RL78_RAW_BANK2_R1_REGNUM)
9342 (RL78_RAW_BANK2_R2_REGNUM, RL78_RAW_BANK2_R3_REGNUM)
9343 (RL78_RAW_BANK2_R4_REGNUM, RL78_RAW_BANK2_R5_REGNUM)
9344 (RL78_RAW_BANK2_R6_REGNUM, RL78_RAW_BANK2_R7_REGNUM)
9345 (RL78_RAW_BANK3_R0_REGNUM, RL78_RAW_BANK3_R1_REGNUM)
9346 (RL78_RAW_BANK3_R2_REGNUM, RL78_RAW_BANK3_R3_REGNUM)
9347 (RL78_RAW_BANK3_R4_REGNUM, RL78_RAW_BANK3_R5_REGNUM)
9348 (RL78_RAW_BANK3_R6_REGNUM, RL78_RAW_BANK3_R7_REGNUM): Add to
9349 beginning of register list.
9350 (RL78_BANK0_R0_REGNUM, RL78_BANK0_R1_REGNUM, RL78_BANK0_R2_REGNUM)
9351 (RL78_BANK0_R3_REGNUM, RL78_BANK0_R4_REGNUM, RL78_BANK0_R5_REGNUM)
9352 (RL78_BANK0_R6_REGNUM, RL78_BANK0_R7_REGNUM, RL78_BANK1_R0_REGNUM)
9353 (RL78_BANK1_R1_REGNUM, RL78_BANK1_R2_REGNUM, RL78_BANK1_R3_REGNUM)
9354 (RL78_BANK1_R4_REGNUM, RL78_BANK1_R5_REGNUM, RL78_BANK1_R6_REGNUM)
9355 (RL78_BANK1_R7_REGNUM, RL78_BANK2_R0_REGNUM, RL78_BANK2_R1_REGNUM)
9356 (RL78_BANK2_R2_REGNUM, RL78_BANK2_R3_REGNUM, RL78_BANK2_R4_REGNUM)
9357 (RL78_BANK2_R5_REGNUM, RL78_BANK2_R6_REGNUM, RL78_BANK2_R7_REGNUM)
9358 (RL78_BANK3_R0_REGNUM, RL78_BANK3_R1_REGNUM, RL78_BANK3_R2_REGNUM)
9359 (RL78_BANK3_R3_REGNUM, RL78_BANK3_R4_REGNUM, RL78_BANK3_R5_REGNUM)
9360 (RL78_BANK3_R6_REGNUM, RL78_BANK3_R7_REGNUM): Move these into
9361 the pseudo registers. Rearrange other pseudo registers too so
9362 that the bank registers appear at the end.
9363 (rl78_register_type): Account for the fact that the byte sized
9364 bank registers are now pseudo-registers.
9365 (rl78_register_name): Rearrange the register name array. Make
9366 initial set of raw banked registers inaccessible.
9367 (rl78_register_reggroup_p, rl78_register_sim_regno): New functions.
9368 (rl78_pseudo_register_read, rl78_pseudo_register_write): Add
9369 case for copying bytes back and forth between raw and pseudo
9370 versions of the banked registers. Update other cases to reflect
9371 the changed names.
9372 (rl78_return_value): Update to account for changed names of
9373 raw registers.
9374 (rl78_gdbarch_init): Register rl78_register_reggroup_p() and
9375 rl78_register_sim_regno().
9376
9377 2012-02-14 Kevin Buettner <kevinb@redhat.com>
9378
9379 * rl78-tdep.c (rl78_skip_prologue): Make `const' the type of
9380 the name parameter being passed to find_pc_partial_function().
9381
9382 2012-02-14 Jan Kratochvil <jan.kratochvil@redhat.com>
9383
9384 * MAINTAINERS: Step down from being ia64 target maintainer.
9385
9386 2012-02-12 Jan Kratochvil <jan.kratochvil@redhat.com>
9387
9388 * ppc-linux-nat.c (fetch_register, store_register): Fix GCC aliasing
9389 compilation warning.
9390
9391 2012-02-12 Jan Kratochvil <jan.kratochvil@redhat.com>
9392
9393 Fix crash on loaded shlibs without loaded exec_bfd.
9394 * exec.c (exec_files_info): Do not crash on NULL EXEC_BFD.
9395 (set_section_command): Replace exec_bfd by p->bfd.
9396
9397 2012-02-10 Tom Tromey <tromey@redhat.com>
9398
9399 * linespec.c (decode_line_internal): Skip symtabs_from_filename
9400 when we have a C++ qualified name.
9401
9402 2012-02-10 Pedro Alves <palves@redhat.com>
9403
9404 * inferior.c (inferior_pid_to_str): New.
9405 (print_inferior, inferior_command): Use it.
9406
9407 2012-02-10 Pedro Alves <palves@redhat.com>
9408
9409 * configure.ac (HAVE_ELF test): Put the old CFLAGS at the end of
9410 the test CFLAGS.
9411 * configure: Regenerate.
9412
9413 2012-02-10 Jan Kratochvil <jan.kratochvil@redhat.com>
9414
9415 * linespec.c (decode_line_internal): Fix comment correctness.
9416
9417 2012-02-09 Valery Khromov <valery.khromov@gmail.com>
9418
9419 PR gdb/12953
9420 * Makefile.in (HFILES_NO_SRCDIR): Add amd64bsd-nat.h.
9421 * amd64bsd-nat.c: Add support for debug registers (adapted from
9422 i386bsd-nat.c).
9423 [HAVE_PT_GETDBREGS] (amd64bsd_dr_get, amd64bsd_dr_set)
9424 (amd64bsd_dr_set_control, amd64bsd_dr_set_addr)
9425 (amd64bsd_dr_get_addr, amd64bsd_dr_get_status)
9426 (amd64bsd_dr_get_control): New functions.
9427 * amd64bsd-nat.h: New file (adapted from i386bsd-nat.h).
9428 * amd64fbsd-nat.c: Include "amd64bsd-nat.h", "i386-nat.h".
9429 [HAVE_PT_GETDBREGS] (_initialize_amd64fbsd_nat): Add hardware
9430 watchpoints initialization.
9431 * config/i386/fbsd64.mh (NATDEPFILES): Add i386-nat.o.
9432
9433 2012-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
9434
9435 * gdb-gdb.py (StructMainTypePrettyPrinter) <struct_field_img>: Print
9436 flds_bnds.fields.
9437 (StructMainTypePrettyPrinter) <bounds_img>: Print flds_bnds.bounds.
9438
9439 2012-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
9440
9441 * breakpoint.c (bp_location_compare): Fix comment. Reindent the code.
9442
9443 2012-02-08 Joel Brobecker <brobecker@adacore.com>
9444
9445 * language.h (symbol_name_cmp_ftype): Renames
9446 symbol_name_match_p_ftype.
9447 (struct language_defn)[la_get_symbol_name_cmp]: Renames
9448 la_get_symbol_name_match_p.
9449 * ada-lang.c (ada_get_symbol_name_cmp): Renames
9450 ada_get_symbol_name_match_p. Update comment.
9451 (ada_language_defn)[la_get_symbol_name_cmp]: Update value.
9452 * linespec.c (struct symbol_matcher_data)[symbol_name_cmp]:
9453 Renames symbol_name_match_p. Update field type.
9454 (iterate_name_matcher, iterate_over_all_matching_symtabs): Adjust.
9455 * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
9456 opencl-lang.c, p-lang.c: Replace "la_get_symbol_name_match_p" by
9457 "la_get_symbol_name_cmp" in comments.
9458 * language.c: Likewise.
9459
9460 2012-02-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9461
9462 * amd64-sol2-tdep.c (amd64_sol2_gregset_reg_offset): Correct
9463 %eflags offset.
9464 * i386-sol2-nat.c (amd64_sol2_gregset64_reg_offs)
9465 (amd64_sol2_gregset32_reg_offs): Likewise.
9466
9467 2012-02-08 Joel Brobecker <brobecker@adacore.com>
9468
9469 * solib-darwin.c (darwin_bfd_open): Make sure that the filename
9470 of the returned BFD is allocated by GDB.
9471
9472 2012-02-07 Tom Tromey <tromey@redhat.com>
9473
9474 PR python/12027:
9475 * python/python-internal.h (frame_object_type): Declare.
9476 * python/py-symbol.c (sympy_needs_frame): New function.
9477 (sympy_value): New function.
9478 (symbol_object_getset): Add "needs_frame".
9479 (symbol_object_methods): Add "value".
9480 * python/py-frame.c (frame_object_type): No longer static.
9481
9482 2012-02-07 Tom Tromey <tromey@redhat.com>
9483
9484 PR python/13599:
9485 * python/py-symbol.c (sympy_line): New function.
9486 (symbol_object_getset): Add "line".
9487
9488 2012-02-07 Tom Tromey <tromey@redhat.com>
9489
9490 * charset.c (find_charset_names): Check 'in' against NULL.
9491
9492 2012-02-06 Doug Evans <dje@google.com>
9493
9494 * gdbtypes.h (struct main_type): Change type of name,tag_name,
9495 and fields.name members from char * to const char *. All uses updated.
9496 (struct cplus_struct_type): Change type of fn_fieldlists.name member
9497 from char * to const char *. All uses updated.
9498 (type_name_no_tag): Update.
9499 (lookup_unsigned_typename, lookup_signed_typename): Update.
9500 * gdbtypes.c (type_name_no_tag): Change result type
9501 from char * to const char *. All callers updated.
9502 (lookup_unsigned_typename, lookup_signed_typename): Change type of
9503 name parameter from char * to const char *.
9504 * symtab.h (struct cplus_specific): Change type of demangled_name
9505 member from char * to const char *. All uses updated.
9506 (struct general_symbol_info): Change type of name and
9507 mangled_lang.demangled_name members from char * to const char *.
9508 All uses updated.
9509 (symbol_get_demangled_name, symbol_natural_name): Update.
9510 (symbol_demangled_name, symbol_search_name): Update.
9511 * symtab.c (symbol_get_demangled_name): Change result type
9512 from char * to const char *. All callers updated.
9513 (symbol_natural_name, symbol_demangled_name): Ditto.
9514 (symbol_search_name): Ditto.
9515 (completion_list_add_name): Change type of symname,sym_text,
9516 text,word parameters from char * to const char *.
9517 (completion_list_objc_symbol): Change type of sym_text,
9518 text,word parameters from char * to const char *.
9519 * ada-lang.c (find_struct_field): Change type of name parameter
9520 from char * to const char *.
9521 (encoded_ordered_before): Similarly for N0,N1 parameters.
9522 (old_renaming_is_invisible): Similarly for function_name parameter.
9523 (ada_type_name): Change result type from char * to const char *.
9524 All callers updated.
9525 * ada-lang.h (ada_type_name): Update.
9526 * buildsym.c (hashname): Change type of name parameter
9527 from char * to const char *.
9528 * buildsym.h (hashname): Update.
9529 * dbxread.c (end_psymtab): Change type of include_list parameter
9530 from char ** to const char **.
9531 * dwarf2read.c (determine_prefix): Change result type
9532 from char * to const char *. All callers updated.
9533 * f-lang.c (find_common_for_function): Change type of name, funcname
9534 parameters from char * to const char *.
9535 * f-lang.c (find_common_for_function): Update.
9536 * f-valprint.c (list_all_visible_commons): Change type of funcname
9537 parameters from char * to const char *.
9538 * gdbarch.sh (static_transform_name): Change type of name parameter
9539 and result from char * to const char *.
9540 * gdbarch.c: Regenerate.
9541 * gdbarch.h: Regenerate.
9542 * i386-sol2-tdep.c (i386_sol2_static_transform_name): Change type
9543 of name parameter from char * to const char *.
9544 * jv-lang.c (java_primitive_type_from_name): Ditto.
9545 (java_demangled_signature_length): Similarly for signature parameter.
9546 (java_demangled_signature_copy): Ditto.
9547 (java_demangle_type_signature): Ditto.
9548 * jv-lang.h (java_primitive_type_from_name): Update.
9549 (java_demangle_type_signature): Update.
9550 * objc-lang.c (specialcmp): Change type of a,b parameters
9551 from char * to const char *.
9552 * p-lang.c (is_pascal_string_type): Change type of arrayname parameter
9553 from char * to const char *. All callers updated.
9554 * p-lang.h (is_pascal_string_type): Update.
9555 * solib-frv.c (find_canonical_descriptor_in_load_object): Change type
9556 of name parameter from char * to const char *.
9557 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Ditto.
9558 * utils.c (fprintf_symbol_filtered): Ditto.
9559 * defs.h (fprintf_symbol_filtered): Update.
9560 * sparc-tdep.h (sparc_sol2_static_transform_name): Update.
9561 * stabsread.h (end_psymtab): Update.
9562 * stack.c (find_frame_funname): Change type of funname parameter
9563 from char ** to const char **.
9564 * stack.h (find_frame_funname): Update.
9565 * typeprint.c (type_print): Change type of varstring parameter
9566 from char * to const char *.
9567 * value.h (type_print): Update.
9568 * xcoffread.c (xcoff_start_psymtab): Change type of filename parameter
9569 from char * to const char *. All callers updated.
9570 (xcoff_end_psymtab): Change type of include_list parameter
9571 from char ** to const char **. All callers updated.
9572 (swap_sym): Similarly for name parameter. All callers updated.
9573 * coffread.c (patch_type): Add (char*) cast to xfree parameter.
9574 Use xstrdup.
9575 (process_coff_symbol): Use xstrdup.
9576 * stabsread.c (stabs_method_name_from_physname): Renamed from
9577 update_method_name_from_physname. Change result type from void
9578 to char *. All callers updated.
9579 (read_member_functions): In has_destructor case, store name in objfile
9580 obstack instead of malloc space. In !has_stub case, fix mem leak.
9581
9582 2012-02-06 Luca Pizzamiglio <luca.pizzamiglio@gmail.com>
9583
9584 * configure: Rebuild.
9585 * configure.ac: Put -L../bfd and -L../libiberty at the front of
9586 LDFLAGS.
9587
9588 2012-02-03 Kevin Buettner <kevinb@redhat.com>
9589
9590 * configure.tgt (rl78-*-elf): New target.
9591 * rl78-tdep.c: New file.
9592
9593 2012-02-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9594
9595 * remote.c (remote_rcmd): Use getpkt_sane to detect timeout
9596 and continue the loop. Add QUIT statement.
9597
9598 2012-02-03 Tom Tromey <tromey@redhat.com>
9599
9600 PR gdb/13596:
9601 * solib.h (gdb_bfd_lookup_symbol_from_symtab): Rename from
9602 bfd_lookup_symbol_from_symtab.
9603 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
9604 gdb_bfd_lookup_symbol_from_symtab.
9605
9606 2012-02-03 Joel Brobecker <brobecker@adacore.com>
9607
9608 * mi/mi-cmd-stack.c (list_args_or_locals): For argument symbols,
9609 use SYMBOL_LINKAGE_NAME to find the corresponding non-argument
9610 symbol. Add assertion that sym2 is never NULL.
9611
9612 2012-02-02 Doug Evans <dje@google.com>
9613
9614 * blockframe.c (find_pc_partial_function_gnu_ifunc): Change type of
9615 "name" parameter to const char ** from char **. All callers updated.
9616 (find_pc_partial_function): Ditto.
9617 (cache_pc_function_name): Change type to const char * from char *.
9618 * symtab.h ((find_pc_partial_function_gnu_ifunc): Update.
9619 (find_pc_partial_function): Update.
9620 * alpha-tdep.h (struct gdbarch_tdep, member pc_in_sigtramp): Change
9621 type of "name" parameter to const char * from char *.
9622 All uses updated.
9623 * arch-utils.c (generic_in_solib_return_trampoline): Change
9624 type of "name" parameter to const char * from char *.
9625 * arch-utils.h (generic_in_solib_return_trampoline): Update.
9626 * frv-linux-tdep.c (frv_linux_pc_in_sigtramp): Change
9627 type of "name" parameter to const char * from char *.
9628 * gdbarch.sh (in_solib_return_trampoline): Ditto.
9629 * gdbarch.c: Regenerate.
9630 * gdbarch.h: Regenerate.
9631 * hppa-hpux-tdep.c (hppa_hpux_in_solib_return_trampoline): Update.
9632 * rs6000-tdep.c (rs6000_in_solib_return_trampoline): Update.
9633 * m32r-linux-tdep.c (m32r_linux_pc_in_sigtramp): Change
9634 type of "name" parameter to const char * from char *.
9635 * skip.c (skip_function_pc): Ditto.
9636 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Ditto.
9637 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp): Update.
9638 * sparc64fbsd-tdep.c (sparc64fbsd_pc_in_sigtramp): Ditto.
9639 * sparc64nbsd-tdep.c (sparc64nbsd_pc_in_sigtramp): Ditto.
9640 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Ditto.
9641 * sparcnbsd-tdep.c (sparc32nbsd_pc_in_sigtramp): Ditto.
9642 * sparcobsd-tdep.c (sparc32obsd_pc_in_sigtramp): Ditto.
9643 * nbsd-tdep.c (nbsd_pc_in_sigtramp): Similary for "func_name".
9644 * nbsd-tdep.h (nbsd_pc_in_sigtramp): Update.
9645
9646 2012-02-02 Pedro Alves <palves@redhat.com>
9647
9648 * remote.c (remote_get_min_fast_tracepoint_insn_len): Return 0 if
9649 the current inferior has no execution. Make sure the current
9650 remote process matches gdb's current inferior.
9651
9652 2012-02-02 Tom Tromey <tromey@redhat.com>
9653
9654 PR gdb/13405:
9655 * tui/tui-win.c (parse_scrolling_args): Don't write to possibly
9656 read-only memory.
9657
9658 2012-02-02 Tom Tromey <tromey@redhat.com>
9659
9660 PR gdb/9307:
9661 * symtab.c (lookup_language_this): Set block_found.
9662
9663 2012-02-01 Tom Tromey <tromey@redhat.com>
9664
9665 PR gdb/13431:
9666 * jit.c (struct jit_inferior_data): Rewrite.
9667 (struct jit_objfile_data): New.
9668 (get_jit_objfile_data): New function.
9669 (add_objfile_entry): Update.
9670 (jit_read_descriptor): Return int. Replace descriptor_addr
9671 argument with inf_data. Update. Don't call error.
9672 (jit_breakpoint_re_set_internal): Reorder logic. Update. Look up
9673 descriptor here.
9674 (jit_inferior_init): Don't look up descriptor. Don't call error.
9675 (jit_reset_inferior_data_and_breakpoints)
9676 (jit_inferior_created_observer): Remove.
9677 (jit_inferior_exit_hook): Update.
9678 (jit_executable_changed_observer): Remove.
9679 (jit_event_handler): Update.
9680 (free_objfile_data): Reset inferior data if needed.
9681 (_initialize_jit): Update.
9682
9683 2012-02-01 Tom Tromey <tromey@redhat.com>
9684
9685 * jit.c (bfd_open_from_target_memory): Move higher in file.
9686
9687 2012-02-01 Tristan Gingold <gingold@adacore.com>
9688
9689 * libunwind-frame.c (libunwind_load): Display message if dlopen
9690 failed.
9691
9692 2012-02-01 Gary Benson <gbenson@redhat.com>
9693
9694 * symtab.h (symbol_found_callback_ftype): New typedef.
9695 (iterate_over_symbols): Use the above.
9696 * symtab.c (iterate_over_symbols): Likewise.
9697 * language.h (language_defn->la_iterate_over_symbols): Likewise.
9698 * ada-lang.c (ada_iterate_over_symbols): Likewise.
9699 * linespec.c (iterate_over_all_matching_symtabs): Likewise.
9700 (iterate_name_matcher): Document return values.
9701 (collect_one_symbol): Likewise.
9702 (collect_function_symbols): Likewise.
9703 (collect_symbols): Likewise.
9704
9705 2012-02-01 Tom Tromey <tromey@redhat.com>
9706
9707 * ada-lang.c (resolve_subexp): Update.
9708 (ada_lookup_symbol_list): Add 'full_search' argument.
9709 (ada_iterate_over_symbols): Pass 0 as full_search argument to
9710 ada_lookup_symbol_list.
9711 (ada_lookup_encoded_symbol): Update.
9712 (get_var_value): Update.
9713 * ada-exp.y (block_lookup): Update.
9714 (write_var_or_type): Update.
9715 (write_name_assoc): Update.
9716 * ada-lang.h (ada_lookup_symbol_list): Update.
9717
9718 2012-01-31 Tom Tromey <tromey@redhat.com>
9719
9720 * language.h (struct language_defn) <la_iterate_over_symbols>: Fix
9721 comment.
9722
9723 2012-01-31 Doug Evans <dje@google.com>
9724
9725 * symtab.h: Remove outdated comment.
9726 (SYMBOL_MATCHES_NATURAL_NAME): Delete.
9727
9728 2012-02-01 Josh Matthews <josh@joshmatthews.net> (tiny change)
9729
9730 Fix build error in Darwin port.
9731 * i386-darwin-nat.c: Include i386-nat.h.
9732
9733 2012-01-30 Tom Tromey <tromey@redhat.com>
9734
9735 PR breakpoints/13568:
9736 * dwarf2read.c (dwarf_decode_macro_bytes): Add 'include_hash'
9737 argument. Check for recursive includes.
9738 (dwarf_decode_macros): Create an include hash.
9739
9740 2012-01-30 Michael Eager <eager@eagercon.com>
9741
9742 * configure.tgt (powerpc-*-linux*): Add glibc-tdep.o.
9743 * ppc-linux-tdep.c: Include glibc-tdep.h.
9744 (powerpc32_plt_stub, powerpc32_plt_stub_so): Add PLT stub templates.
9745 (powerpc_linux_in_plt_stub): New function.
9746 (powerpc_linux_in_dynsym_resolve_code): New function.
9747 (ppc_skip_trampoline_code): New function.
9748 (ppc_linux_init_abi): Use PPC specific functions rather than generic.
9749 Use glibc_skip_solib_resolver.
9750
9751 2012-01-28 Jan Kratochvil <jan.kratochvil@redhat.com>
9752
9753 Code cleanup: Make 1440 bytes of data segment read-only.
9754 * arch-utils.c (endian_enum): Make it const char *const [].
9755 * arm-tdep.c (fp_model_strings, arm_abi_strings, arm_mode_strings):
9756 Likewise.
9757 * breakpoint.c (always_inserted_enums): Likewise.
9758 * cli/cli-cmds.c (script_ext_enums): Likewise.
9759 * cli/cli-decode.c (add_setshow_enum_cmd, complete_on_enum): Make the
9760 enumlist parameter const char *const *.
9761 * cli/cli-decode.h (struct cmd_list_element): Make the enums field
9762 const char *const *.
9763 * command.h (complete_on_enum, add_setshow_enum_cmd): Make the enumlist
9764 parameter const char *const *.
9765 * cris-tdep.c (cris_modes): Make it const char *const [].
9766 * filesystem.c (target_file_system_kinds): Likewise.
9767 * i386-tdep.c (valid_flavors, valid_conventions): Likewise.
9768 * infrun.c (follow_fork_mode_kind_names, follow_exec_mode_names)
9769 (can_use_displaced_stepping_enum, scheduler_enums)
9770 (exec_direction_names): Likewise.
9771 * language.c (_initialize_language): Make the type_or_range_names and
9772 case_sensitive_names variables const char *const [].
9773 * mips-tdep.c (mips_abi_strings): Make it const char *const [].
9774 * python/python.c (python_excp_enums): Likewise.
9775 * remote.c (interrupt_sequence_modes): Likewise.
9776 * rs6000-tdep.c (powerpc_vector_strings): Likewise.
9777 * serial.c (logbase_enums): Likewise.
9778 * sh-tdep.c (sh_cc_enum): Likewise.
9779 * stack.c (print_frame_arguments_choices, print_entry_values_choices):
9780 Likewise.
9781 * symtab.c (multiple_symbols_modes): Likewise.
9782 * tui/tui-win.c (tui_border_kind_enums, tui_border_mode_enums):
9783 Likewise.
9784 * utils.c (internal_problem_modes): Likewise.
9785
9786 2012-01-27 Jan Kratochvil <jan.kratochvil@redhat.com>
9787
9788 Fix the 2012-01-26 regression by la_get_symbol_name_match_p.
9789 * linespec.c (iterate_name_matcher): Negate the SYMBOL_NAME_MATCH_P
9790 result.
9791
9792 2012-01-27 Doug Evans <dje@google.com>
9793
9794 * configure.ac (with_python): Fix absolute path handling for win32.
9795 * configure: Regenerate.
9796
9797 2012-01-26 Doug Evans <dje@google.com>
9798
9799 * symtab.c: Whitespace cleanup, no code changes.
9800
9801 * symtab.c (lookup_symbol_in_language): Improve comment.
9802 (lookup_symbol_aux): Fix comment.
9803
9804 * psymtab.c (add_psymbol_to_list): Result is now "void".
9805 * psympriv.h (add_psymbol_to_list): Update.
9806
9807 * dwarf2read.c (add_partial_symbol): Delete local psym, unused.
9808
9809 2012-01-26 Jan Kratochvil <jan.kratochvil@redhat.com>
9810
9811 Do not open script filenames twice.
9812 * cli/cli-cmds.c (source_script_from_stream): Pass to
9813 source_python_script also STREAM.
9814 * python/py-auto-load.c (source_section_scripts): Pass to
9815 source_python_script_for_objfile also STREAM.
9816 (auto_load_objfile_script): Pass to source_python_script_for_objfile
9817 also INPUT.
9818 * python/python-internal.h (source_python_script_for_objfile): New
9819 parameter file, rename parameter file to filename.
9820 * python/python.c (python_run_simple_file): Call PyRun_SimpleFile
9821 instead if !_WIN32. Update the function comment.
9822 (source_python_script, source_python_script_for_objfile)
9823 (source_python_script): New parameter file, rename parameter file to
9824 filename. Pass FILENAME to python_run_simple_file.
9825 * python/python.h (source_python_script): New parameter file, rename
9826 parameter file to filename.
9827
9828 2012-01-26 Pedro Alves <palves@redhat.com>
9829
9830 * corelow.c (core_has_fake_pid): Delete.
9831 (core_close): Delete references to `core_has_fake_pid'.
9832 (add_to_thread_list): Adjust to mark the inferior's pid as fake.
9833 (core_open): Delete references to `core_has_fake_pid'.
9834 (core_pid_to_str): Adjust to check inferior->fake_pid_p instead of
9835 the removed global.
9836
9837 2012-01-26 Joel Brobecker <brobecker@adacore.com>
9838
9839 * symfile.h (struct quick_symbol_functions) [expand_symtabs_matching]:
9840 Remove language parameter from name_matcher. Adjust the comment.
9841 * symtab.c (search_symbols_name_matches, expand_partial_symbol_name):
9842 Remove language parameter.
9843 * ada-lang.c (ada_expand_partial_symbol_name): Likewise.
9844 * linespec.c (iterate_name_matcher): Likewise.
9845 * dwarf2read.c (dw2_expand_symtabs_matching): Adjust type of
9846 name_matcher. Adjust call accordingly.
9847 * psymtab.c (expand_symtabs_matching_via_partial): Likewise.
9848 (maintenance_check_symtabs): Adjust type of parameter "fun".
9849 * psymtab.h (maintenance_check_symtabs): Likewise.
9850
9851 2012-01-26 Joel Brobecker <brobecker@adacore.com>
9852
9853 * language.h (symbol_name_match_p_ftype): New typedef.
9854 (struct language_defn): Replace field la_symbol_name_compare
9855 by la_get_symbol_name_match_p.
9856 * ada-lang.c (ada_get_symbol_name_match_p): New function.
9857 (ada_language_defn): Use it.
9858 * linespec.c (struct symbol_matcher_data): New type.
9859 (iterate_name_matcher): Rewrite.
9860 (iterate_over_all_matching_symtabs): Pass a pointer to
9861 a symbol_matcher_data struct to expand_symtabs_matching
9862 instead of just the lookup name.
9863 * c-lang.c, d-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
9864 opencl-lang.c, p-lang.c, language.c: Delete field
9865 la_symbol_name_compare, and replace by NULL for new field
9866 la_get_symbol_name_match_p.
9867 * symfile.h (struct quick_symbol_functions): Update comment.
9868
9869 2012-01-25 Tom Tromey <tromey@redhat.com>
9870
9871 * breakpoint.c (bpstat_stop_status): Check 'breakpoint_at' before
9872 dereferencing.
9873
9874 2012-01-24 Tom Tromey <tromey@redhat.com>
9875
9876 PR symtab/12406:
9877 * solib.c (update_solib_list): Update the program space's
9878 added_solibs and deleted_solibs fields.
9879 * progspace.h (struct program_space) <added_solibs,
9880 deleted_solibs>: New fields.
9881 (clear_program_space_solib_cache): Declare.
9882 * progspace.c (release_program_space): Call
9883 clear_program_space_solib_cache.
9884 (clear_program_space_solib_cache): New function.
9885 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>: Call
9886 bpstat_stop_status. Use handle_solib_event.
9887 * breakpoint.c: Include gdb_regex.h.
9888 (print_solib_event): New function.
9889 (bpstat_print): Use print_solib_event.
9890 (bpstat_stop_status): Add special case for bp_shlib_event.
9891 (handle_solib_event): New function.
9892 (bpstat_what): Use handle_solib_event.
9893 (struct solib_catchpoint): New.
9894 (dtor_catch_solib, insert_catch_solib, remove_catch_solib)
9895 (breakpoint_hit_catch_solib, check_status_catch_solib)
9896 (print_it_catch_solib, print_one_catch_solib)
9897 (print_mention_catch_solib, print_recreate_catch_solib): New
9898 functions.
9899 (catch_solib_breakpoint_ops): New global.
9900 (catch_load_or_unload, catch_load_command_1)
9901 (catch_unload_command_1): New functions.
9902 (internal_bkpt_check_status): Add special case for
9903 bp_shlib_event.
9904 (internal_bkpt_print_it): Use print_solib_event.
9905 (initialize_breakpoint_ops): Initialize
9906 catch_solib_breakpoint_ops.
9907 (_initialize_breakpoint): Register "catch load" and "catch
9908 unload".
9909 * breakpoint.h (handle_solib_event): Declare.
9910 * NEWS: Add entry for "catch load" and "catch unload".
9911
9912 2012-01-24 Tom Tromey <tromey@redhat.com>
9913
9914 * ada-lang.c: Include gdb_vecs.h.
9915 * charset.c: Include gdb_vecs.h.
9916 * tracepoint.h: Include gdb_vecs.h.
9917 * gdb_vecs.h: New file.
9918
9919 2012-01-24 Pedro Alves <pedro@codesourcery.com>
9920
9921 * breakpoint.c (breakpoint_hit_catch_fork)
9922 (breakpoint_hit_catch_vfork, breakpoint_hit_catch_syscall)
9923 (breakpoint_hit_catch_exec): Make use of the `ws' argument.
9924 * infrun.c (inferior_has_forked, inferior_has_vforked)
9925 (inferior_has_execd, inferior_has_called_syscall): Delete.
9926 (handle_syscall_event): Get syscall_number from the execution
9927 control state's wait status.
9928 (wait_for_inferior): Don't clear syscall_number.
9929
9930 2012-01-24 Pedro Alves <palves@redhat.com>
9931
9932 * breakpoint.c (bpstat_check_location, bpstat_stop_status,
9933 pc_at_non_inline_function): Add `ws' parameter, and pass it down.
9934 (breakpoint_hit_catch_fork, breakpoint_hit_catch_vfork)
9935 (breakpoint_hit_catch_syscall, breakpoint_hit_catch_exec): Add
9936 `ws' parameter.
9937 (breakpoint_hit_ranged_breakpoint): Add `ws' parameter. Return
9938 false for events other than TARGET_SIGNAL_TRAP.
9939 (breakpoint_hit_watchpoint, base_breakpoint_breakpoint_hit):
9940 Add `ws' parameter.
9941 (bkpt_breakpoint_hit): Add `ws' parameter. Return false for
9942 events other than TARGET_SIGNAL_TRAP.
9943 (tracepoint_breakpoint_hit): Add `ws' parameter.
9944 * breakpoint.h (struct breakpoint_ops) <breakpoint_hit>: Add `ws'
9945 parameter.
9946 (bpstat_stop_status): Same.
9947 (pc_at_non_inline_function): Same.
9948 * infrun.c (handle_syscall_event, handle_inferior_event): Adjust
9949 to pass the current event's waitstatus to bpstat_stop_status
9950 and pc_at_non_inline_function.
9951
9952 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
9953
9954 Code cleanup.
9955 * cli/cli-cmds.c (source_script_from_stream): Never fclose STREAM.
9956 Update the function comment for it.
9957 (source_script_with_search): Call make_cleanup_fclose for STREAM.
9958 * cli/cli-script.c (script_from_file): Do not call make_cleanup_fclose
9959 for STREAM.
9960
9961 2012-01-24 Pedro Alves <palves@redhat.com>
9962
9963 * breakpoint.c (bpstat_stop_status): Moving clearing print_it
9964 outside `bs->stop' block.
9965 (bpstat_what): Rework bp_shlib_event handling.
9966 (internal_bkpt_check_status): If the breakpoint is a
9967 bp_shlib_event, then set bs->stop and bs->print if
9968 stop_on_solib_events is set.
9969
9970 2012-01-24 Gary Benson <gbenson@redhat.com>
9971
9972 Delete #if 0'd out code.
9973 * stack.c (print_frame_label_vars): Remove.
9974 (catch_info): Likewise.
9975 (_initialize_stack): Remove "info catch" command.
9976 * NEWS: Mention the above.
9977
9978 2012-01-24 Pedro Alves <palves@redhat.com>
9979
9980 * remote.c (remote_add_inferior): New `fake_pid_p' parameter. Use
9981 it.
9982 (remote_notice_new_inferior): If the remote end doesn't support
9983 the multiprocess extensions, then the PID is fake.
9984 (add_current_inferior_and_thread): New.
9985 (remote_start_remote): Use it.
9986 (extended_remote_attach_1): Adjust.
9987 (extended_remote_create_inferior_1): Use
9988 add_current_inferior_and_thread.
9989
9990 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
9991
9992 Fix watchpoints to be specific for each inferior.
9993 * breakpoint.c (watchpoint_in_thread_scope): Verify also
9994 current_program_space.
9995 * i386-nat.c (i386_inferior_data_cleanup): New.
9996 (i386_inferior_data_get): Replace variable inf_data_local by an
9997 inferior_data call.
9998 (i386_use_watchpoints): Initialize i386_inferior_data.
9999 * linux-nat.c (linux_nat_iterate_watchpoint_lwps): Use INFERIOR_PTID
10000 specific iterate_over_lwps.
10001
10002 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
10003
10004 Fix watchpoints across inferior fork.
10005 * amd64-linux-nat.c (update_debug_registers_callback): Update the
10006 comment for linux_nat_iterate_watchpoint_lwps.
10007 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
10008 linux_nat_iterate_watchpoint_lwps.
10009 (amd64_linux_prepare_to_resume): New comment on Linux kernel.
10010 * i386-linux-nat.c (update_debug_registers_callback): Update the
10011 comment for linux_nat_iterate_watchpoint_lwps.
10012 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
10013 linux_nat_iterate_watchpoint_lwps.
10014 (i386_linux_prepare_to_resume): New comment on Linux kernel.
10015 * i386-nat.c: Include inferior.h.
10016 (dr_mirror): Remove.
10017 (i386_inferior_data, struct i386_inferior_data)
10018 (i386_inferior_data_get): New.
10019 (i386_debug_reg_state): Use i386_inferior_data_get.
10020 (i386_cleanup_dregs, i386_update_inferior_debug_regs)
10021 (i386_insert_watchpoint, i386_remove_watchpoint)
10022 (i386_stopped_data_address, i386_insert_hw_breakpoint)
10023 (i386_remove_hw_breakpoint): New variable state, use
10024 i386_debug_reg_state instead of DR_MIRROR.
10025 * linux-nat.c (delete_lwp): New declaration.
10026 (num_lwps): Move here from downwards.
10027 (delete_lwp_cleanup): New.
10028 (linux_child_follow_fork): Create new child_lp, call
10029 linux_nat_new_thread and linux_nat_prepare_to_resume before calling
10030 PTRACE_DETACH.
10031 (num_lwps): Move upwards.
10032 (linux_nat_iterate_watchpoint_lwps): New.
10033 * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): New.
10034 (linux_nat_iterate_watchpoint_lwps_ftype): New declaration.
10035
10036 2012-01-24 Joel Brobecker <brobecker@adacore.com>
10037
10038 GDB 7.4 released.
10039
10040 2012-01-23 Pedro Alves <palves@redhat.com>
10041
10042 * top.c (caution): Rename to ...
10043 (confirm): ... this.
10044 (show_caution): Rename to ...
10045 (show_confirm): ... this.
10046 (quit_cover): Adjust.
10047 (init_main): Adjust.
10048 * top.h (caution): Rename to ...
10049 (confirm): ... this.
10050 * utils.c (internal_vproblem, defaulted_query): Adjust.
10051
10052 2012-01-23 Pedro Alves <palves@redhat.com>
10053
10054 * top.c (caution): Update comment.
10055 (execute_command): Don't consider the current value of `caution'.
10056
10057 2012-01-23 Jan Kratochvil <jan.kratochvil@redhat.com>
10058
10059 * cli/cli-cmds.c (find_and_open_script): Handle failure of fdopen.
10060
10061 2012-01-23 Ulrich Weigand <ulrich.weigand@linaro.org>
10062
10063 * inf-child.c: Include "gdb_stat.h" instead of <sys/stat.h>.
10064 * linux-tdep.c (linux_info_proc): Avoid ARI coding style warning.
10065 * target.c (target_fileio_pwrite): Remove buffer address from
10066 debug output.
10067 (target_fileio_pread): Likewise.
10068
10069 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
10070
10071 * NEWS: Document remote "info proc" and "generate-core-file".
10072
10073 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
10074
10075 * gdbarch.sh (find_memory_regions): New callback.
10076 * gdbarch.c, gdbarch.h: Regenerate.
10077
10078 * gcore.c (gcore_memory_sections): Try gdbarch find_memory_regions
10079 callback before falling back to target method.
10080
10081 * linux-nat.c (read_mapping, linux_nat_find_memory_regions): Remove.
10082 (linux_target_install_ops): No longer install it.
10083
10084 * linux-tdep.c (linux_find_memory_regions): New function.
10085 (linux_init_abi): Install it.
10086
10087 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
10088
10089 * gdbarch.sh (make_corefile_notes): New architecture callback.
10090 * gdbarch.c: Regenerate.
10091 * gdbarch.h: Likewise.
10092
10093 * gcore.c (write_gcore_file): Try gdbarch_make_corefile_notes
10094 before target_make_corefile_notes. If NULL is returned, the
10095 target does not support core file generation.
10096
10097 * linux-nat.c: Include "linux-tdep.h".
10098 (find_signalled_thread, find_stop_signal): Remove.
10099 (linux_nat_do_thread_registers): Likewise.
10100 (struct linux_nat_corefile_thread_data): Likewise.
10101 (linux_nat_corefile_thread_callback): Likewise.
10102 (iterate_over_spus): Likewise.
10103 (struct linux_spu_corefile_data): Likewise.
10104 (linux_spu_corefile_callback): Likewise.
10105 (linux_spu_make_corefile_notes): Likewise.
10106 (linux_nat_collect_thread_registers): New function.
10107 (linux_nat_make_corefile_notes): Replace contents by call to
10108 linux_make_corefile_notes passing linux_nat_collect_thread_registers
10109 as native-only callback.
10110
10111 * linux-tdep.h: Include "bfd.h".
10112 (struct regcache): Add forward declaration.
10113 (linux_collect_thread_registers_ftype): New typedef.
10114 (linux_make_corefile_notes): Add prototype.
10115 * linux-tdep.c: Include "gdbthread.h", "gdbcore.h", "regcache.h",
10116 "regset.h", and "elf-bfd.h".
10117 (find_signalled_thread, find_stop_signal): New functions.
10118 (linux_spu_make_corefile_notes): Likewise.
10119 (linux_collect_thread_registers): Likewise.
10120 (struct linux_corefile_thread_data): New data structure.
10121 (linux_corefile_thread_callback): New funcion.
10122 (linux_make_corefile_notes): Likewise.
10123 (linux_make_corefile_notes_1): Likewise.
10124 (linux_init_abi): Install it.
10125
10126 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
10127
10128 * gdbarch.sh (info_proc): New callback.
10129 * gdbarch.c, gdbarch.h: Regenerate.
10130
10131 * infcmd.c (info_proc_cmd_1): Try gdbarch info_proc callback
10132 before falling back to the target info_proc callback.
10133
10134 * linux-nat.c: Do not include "cli/cli-utils.h".
10135 (linux_nat_info_proc): Remove.
10136 (linux_target_install_ops): No longer install it.
10137
10138 * linux-tdep.c: Include "cli/cli-utils.h" and <ctype.h>.
10139 (read_mapping): New function.
10140 (linux_info_proc): Likewise.
10141 (linux_init_abi): Install it.
10142
10143 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
10144
10145 * defs.h (enum info_proc_what): Moved here from linux-nat.c
10146 * infcmd.c: (info_proc_cmd_1): New function.
10147 (info_proc_cmd): New function, moved here from equivalent routine
10148 orignally in linux-nat.c.
10149 (info_proc_cmd_mappings): Likewise.
10150 (info_proc_cmd_stat): Likewise.
10151 (info_proc_cmd_status): Likewise.
10152 (info_proc_cmd_cwd): Likewise.
10153 (info_proc_cmd_cmdline): Likewise.
10154 (info_proc_cmd_exe): Likewise.
10155 (info_proc_cmd_all): Likewise.
10156 (_initialize_infcmd): Install "info proc" command and subcommands.
10157
10158 * target.h (struct target_ops): Add to_info_proc.
10159 (target_info_proc): Add prototype.
10160 * target.c (target_info_proc): New function.
10161
10162 * procfs.c (procfs_info_proc): Add prototype.
10163 (info_proc_cmd): Rename into ...
10164 (procfs_info_proc): ... this. Update argument types as appropriate
10165 for a to_info_proc implementation. Handle "what" argument.
10166 (procfs_target): Install procfs_info_proc.
10167 (_initialize_procfs): No longer install "info proc" command.
10168
10169 * linux-nat.c: (enum info_proc_what): Remove.
10170 (linux_nat_info_proc_cmd_1): Rename into ...
10171 (linux_nat_info_proc): ... this. Update argument types as appropriate
10172 for a to_info_proc implementation.
10173 (linux_nat_info_proc_cmd): Remove.
10174 (linux_nat_info_proc_cmd_mappings): Likewise.
10175 (linux_nat_info_proc_cmd_stat): Likewise.
10176 (linux_nat_info_proc_cmd_status): Likewise.
10177 (linux_nat_info_proc_cmd_cwd): Likewise.
10178 (linux_nat_info_proc_cmd_cmdline): Likewise.
10179 (linux_nat_info_proc_cmd_exe): Likewise.
10180 (linux_nat_info_proc_cmd_all): Likewise.
10181 (linux_target_install_ops): Install linux_nat_info_proc.
10182 (_initialize_linux_nat): No longer install "info proc" command
10183 and subcommands.
10184
10185 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
10186
10187 * configure.ac [AC_CHECK_FUNCS]: Check for readlink.
10188 * config.in, configure: Regenerate.
10189
10190 * target.h (struct target_ops): Add to_fileio_readlink.
10191 (target_fileio_readlink): Add prototype.
10192 * target.c (target_fileio_readlink): New function.
10193
10194 * inf-child.c: Conditionally include <sys/param.h>.
10195 (inf_child_fileio_readlink): New function.
10196 (inf_child_target): Install it.
10197
10198 * remote.c (PACKET_vFile_readlink): New enum value.
10199 (remote_hostio_readlink): New function.
10200 (init_remote_ops): Install it.
10201 (_initialize_remote): Handle vFile:readlink packet type.
10202
10203 2012-01-20 Pedro Alves <palves@redhat.com>
10204 Ulrich Weigand <ulrich.weigand@linaro.org>
10205
10206 * configure.ac [AC_CHECK_FUNCS]: Check for pread and pwrite.
10207 * config.in, configure: Regenerate.
10208
10209 * target.h (struct target_ops): Add to_fileio_open, to_fileio_pwrite,
10210 to_fileio_pread, to_fileio_close, to_fileio_unlink.
10211 (target_fileio_open): Add prototype.
10212 (target_fileio_pwrite): Likewise.
10213 (target_fileio_pread): Likewise.
10214 (target_fileio_close): Likewise.
10215 (target_fileio_unlink): Likewise.
10216 (target_fileio_read_alloc): Likewise.
10217 (target_fileio_read_stralloc): Likewise.
10218
10219 * target.c: Include "gdb/fileio.h".
10220 (target_read_stralloc): Accept trailing, but not embedded NUL bytes.
10221 (default_fileio_target): New function.
10222 (target_fileio_open): Likewise.
10223 (target_fileio_pwrite): Likewise.
10224 (target_fileio_pread): Likewise.
10225 (target_fileio_close): Likewise.
10226 (target_fileio_unlink): Likewise.
10227 (target_fileio_close_cleanup): Likewise.
10228 (target_fileio_read_alloc_1): Likewise.
10229 (target_fileio_read_alloc): Likewise.
10230 (target_fileio_read_stralloc): Likewise.
10231
10232 * inf-child.c: Include "gdb/fileio.h", <sys/types.h>, <sys/stat.h>,
10233 <fcntl.h>, and <unistd.h>.
10234 (inf_child_fileio_open_flags_to_host): New function.
10235 (inf_child_errno_to_fileio_error): Likewise.
10236 (inf_child_fileio_open): Likewise.
10237 (inf_child_fileio_pwrite): Likewise.
10238 (inf_child_fileio_pread): Likewise.
10239 (inf_child_fileio_close): Likewise.
10240 (inf_child_fileio_unlink): Likewise.
10241 (inf_child_target): Install to_fileio routines.
10242
10243 * remote.c (init_remote_ops): Install to_fileio routines.
10244
10245 2012-01-20 Pedro Alves <palves@redhat.com>
10246 Ulrich Weigand <ulrich.weigand@linaro.org>
10247
10248 * remote.c (remote_multi_process_p): Only check for multi-process
10249 protocol feature, do not check for extended protocol.
10250 (remote_supports_multi_process): Check for extended protocol here.
10251 (set_general_process): Likewise.
10252 (extended_remote_kill): Likewise.
10253 (remote_pid_to_str): Likewise.
10254 (remote_query_supported): Always query multiprocess mode.
10255
10256 2012-01-20 Pedro Alves <palves@redhat.com>
10257 Ulrich Weigand <ulrich.weigand@linaro.org>
10258
10259 * inferior.h (struct inferior): Add fake_pid_p.
10260 * inferior.c (exit_inferior_1): Clear fake_pid_p.
10261 * remote.c (remote_start_remote): Set fake_pid_p if we have to use
10262 magic_null_ptid since the remote side doesn't provide a real PID.
10263
10264 2012-01-19 Tom Tromey <tromey@redhat.com>
10265
10266 * NEWS: Combine the two Python sections.
10267
10268 2012-01-19 Jan Kratochvil <jan.kratochvil@redhat.com>
10269
10270 * target.h (target_close): Update comment on the target's unpush state.
10271
10272 2012-01-19 Pedro Alves <palves@redhat.com>
10273
10274 * linux-nat.c (linux_nat_close): Call linux_nat_is_async_p and
10275 linux_nat_async directly instead of going through the target
10276 vector.
10277 * target.c (unpush_target): Close target after unpushing it, not
10278 before.
10279
10280 2012-01-19 Gary Benson <gbenson@redhat.com>
10281
10282 * mdebugread.c (sort_blocks): Replace integer constants with ones
10283 derived from FIRST_LOCAL_BLOCK.
10284
10285 2012-01-18 Paul Pluzhnikov <ppluzhnikov@google.com>
10286 Jan Kratochvil <jan.kratochvil@redhat.com>
10287
10288 PR gdb/9538
10289 * symfile.c (find_separate_debug_file): New function.
10290 (terminate_after_last_dir_separator): Likewise.
10291 (find_separate_debug_file_by_debuglink): Also try realpath.
10292 * configure.ac (AC_CHECK_FUNCS): Add lstat.
10293 * configure: Regenerate.
10294 * config.in: Regenerate.
10295
10296 2012-01-18 Doug Evans <dje@google.com>
10297
10298 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): Delete.
10299 (main.o): Remove rule.
10300 * configure.ac (BINDIR): Define with AC_DEFINE_DIR.
10301 (--with-sysroot): Rewrite.
10302 * configure: Regenerate.
10303 * config.in: Regenerate.
10304
10305 2012-01-18 Sergio Durigan Junior <sergiodj@redhat.com>
10306
10307 * parse.c (initialize_expout): New function.
10308 (reallocate_expout): Likewise.
10309 (parse_exp_in_context): Use `initialize_expout' and
10310 `reallocate_expout' when appropriate.
10311
10312 2012-01-18 Pedro Alves <palves@redhat.com>
10313
10314 * record.c (struct record_breakpoint, record_breakpoint_p)
10315 (record_breakpoints): New.
10316 (record_insert_breakpoint, record_remove_breakpoint): Manage
10317 record breakpoints list. Only remove breakpoints from the
10318 inferior if they had been inserted there in the first place.
10319
10320 2012-01-17 Doug Evans <dje@google.com>
10321
10322 * linespec.c (decode_line_internal): Don't call symtabs_from_filename
10323 if we know we don't have a file name to look for.
10324
10325 2012-01-17 Pedro Alves <palves@redhat.com>
10326
10327 * dwarf2-frame.c (dwarf2_frame_cfa): Throw NOT_AVAILABLE_ERROR, if
10328 the frame's stop reason is UNWIND_UNAVAILABLE.
10329
10330 2012-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
10331
10332 Fix compilation error.
10333 * m2-exp.y (yyerror): Use ANSI C prototype.
10334
10335 2012-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
10336
10337 * f-exp.y (parse_number): Convert prototype from K&R to ANSI C.
10338 (growbuf_by_size): Likewise.
10339 (yyerror): Likewise.
10340 * m2-exp.y (make_qualname): Remove function (was #if 0'ed).
10341 (modblock): Remove variable (was #if 0'ed).
10342 (parse_number): Convert prototype from K&R to ANSI C.
10343 (yyerror): Likewise.
10344 * objc-exp.y (parse_number): Likewise.
10345 (yyerror): Likewise.
10346 (yylex): Remove #if 0'ed code.
10347 * p-exp.y (uptok): Convert prototype from K&R to ANSI C.
10348 (yyerror): Likewise.
10349
10350 2012-01-16 Tom Tromey <tromey@redhat.com>
10351
10352 * NEWS: Add item.
10353 * symtab.h (compare_filenames_for_search): Declare.
10354 * symtab.c (compare_filenames_for_search): New function.
10355 (iterate_over_some_symtabs): Use it.
10356 * symfile.h (struct quick_symbol_functions)
10357 <map_symtabs_matching_filename>: Change spec.
10358 * psymtab.c (partial_map_symtabs_matching_filename): Use
10359 compare_filenames_for_search. Update for new spec.
10360 * dwarf2read.c (dw2_map_symtabs_matching_filename): Use
10361 compare_filenames_for_search. Update for new spec.
10362 * breakpoint.c (clear_command): Use compare_filenames_for_search.
10363
10364 2012-01-16 Tom Tromey <tromey@redhat.com>
10365
10366 PR python/13281:
10367 * gdbtypes.h (TYPE_FLAG_ENUM): New macro.
10368 (struct main_type) <flag_flag_enum>: New field.
10369 * dwarf2read.c (process_enumeration_scope): Detect "flag" enums.
10370 * NEWS: Add entries.
10371 * c-valprint.c (c_val_print) <TYPE_CODE_ENUM>: Handle "flag"
10372 enums.
10373 * python/lib/gdb/printing.py (_EnumInstance): New class.
10374 (FlagEnumerationPrinter): Likewise.
10375
10376 2012-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
10377
10378 * breakpoint.c (create_sals_from_address_default): New function.
10379 (create_breakpoints_sal_default): Likewise.
10380 (decode_linespec_default): Likewise.
10381 (is_marker_spec): Removed.
10382 (strace_marker_p): New function.
10383 (init_breakpoint_sal): Using `strace_marker_p' instead of
10384 `is_marker_spec'.
10385 (create_breakpoint): Call method `create_sals_from_address' from
10386 breakpoint_ops, replacing code that created SALs conditionally
10387 on the type of the breakpoint. Call method `create_breakpoints_sal',
10388 replacing code that created breakpoints conditionally on the type
10389 wanted.
10390 (base_breakpoint_create_sals_from_address): New function.
10391 (base_breakpoint_create_breakpoints_sal): Likewise.
10392 (base_breakpoint_decode_linespec): Likewise.
10393 (base_breakpoint_ops): Add methods
10394 `base_breakpoint_create_sals_from_address',
10395 `base_breakpoint_create_breakpoints_sal' and
10396 `base_breakpoint_decode_linespec'.
10397 (bkpt_create_sals_from_address): New function.
10398 (bkpt_create_breakpoints_sal): Likewise.
10399 (bkpt_decode_linespec): Likewise.
10400 (tracepoint_create_sals_from_address): Likewise.
10401 (tracepoint_create_breakpoints_sal): Likewise.
10402 (tracepoint_decode_linespec): Likewise.
10403 (strace_marker_create_sals_from_address): Likewise.
10404 (strace_marker_create_breakpoints_sal): Likewise.
10405 (strace_marker_decode_linespec): Likewise.
10406 (strace_marker_breakpoint_ops): New variable.
10407 (addr_string_to_sals): Remove `marker_spec'. Call method
10408 `decode_linespec' from breakpoint_ops, replacing code that decoded
10409 an address string into a SAL. Use `strace_marker_p' instead of
10410 `marker_spec'.
10411 (strace_command): Decide whether we are dealing with a static
10412 tracepoint with marker or not. Use the appropriate breakpoint_ops.
10413 (initialize_breakpoint_ops): Initialize new fields of breakpoint_ops.
10414 * breakpoint.h (linespec_result, linespec_sals): New forward
10415 declarations.
10416 (breakpoint_ops) <create_sals_from_address>,
10417 <create_breakpoints_sal>, <decode_linespec>: New methods.
10418
10419 2012-01-14 Doug Evans <dje@google.com>
10420
10421 * NEWS: Update text for "maint set python print-stack".
10422 It is deprecated in gdb 7.4 and deleted in 7.5.
10423
10424 2012-01-13 Eli Zaretskii <eliz@gnu.org>
10425
10426 * gdb_curses.h (MOUSE_MOVED) [__MINGW32__]: Undefine before
10427 including curses.h.
10428
10429 2012-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
10430
10431 * configure: Regenerate.
10432 * config.in: Regenerate.
10433
10434 2012-01-12 Keith Seitz <keiths@redhat.com>
10435
10436 PR mi/10586
10437 * varobj.c (ANONYMOUS_STRUCT_NAME): Define.
10438 (ANONYMOUS_UNION_NAME): Define.
10439 (is_path_expr_parent): New function.
10440 (get_path_expr_parent): New function.
10441 (is_anonymous_child): New function.
10442 (create_child_with_value): If the child is anonymous and without
10443 a name, assign an object name to it.
10444 (c_describe_child): Use get_path_expr_parent to determine
10445 the parent expression.
10446 If there field represents an anonymous struct or union and
10447 has no name, set an appropriate display name and expression.
10448 (cplus_describe_child): Likewise.
10449
10450 2012-01-12 Pedro Alves <palves@redhat.com>
10451
10452 * i386-tdep.c (i386_frame_cache_1): Also mark the frame base as
10453 available when %ebp is found to be zero (outermost).
10454
10455 2012-01-11 Andreas Tobler <andreast@fgznet.ch>
10456
10457 * common/gdb_assert.h (gdb_static_assert): Rename static_assert to
10458 an internal gdb_static_assert.
10459 * mi/mi-common.c: Rename static_assert to gdb_static_assert.
10460
10461 2012-01-11 Tom Tromey <tromey@redhat.com>
10462
10463 PR gdb/9598:
10464 * breakpoint.c (_initialize_breakpoint): Fix help for "catch
10465 catch" and "catch throw".
10466
10467 2012-01-11 Paul Hilfinger <hilfingr@adacore.com>
10468
10469 * blockframe.c (block_innermost_frame): Start search from selected
10470 frame, if present, or otherwise the current frame.
10471
10472 * c-exp.y (variable): Update innermost_block for
10473 'block COLONCOLON NAME' clause.
10474 * m2-exp.y (variable): Ditto.
10475 * objc-exp.y (variable): Ditto.
10476
10477 2012-01-10 Tom Tromey <tromey@redhat.com>
10478
10479 PR python/13199:
10480 * python/python.c (finish_python_initialization): Set sys.argv.
10481
10482 2012-01-10 Doug Evans <dje@google.com>
10483
10484 * dwarf2read.c (dwarf_decode_lines): Remove arg "abfd". New arg
10485 "want_line_info". All callers updated.
10486 (dwarf_decode_lines_1): New function.
10487 (handle_DW_AT_stmt_list): Add function comment.
10488 New arg "want_line_info". All callers updated.
10489 (read_file_scope,read_type_unit_scope): Move comment from
10490 handle_DW_AT_stmt_list to here.
10491
10492 2012-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
10493
10494 Fix regression after libiberty/ update for GCC PR 6057 and others.
10495 * c-exp.y (operator) <OPERATOR DELETE>
10496 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
10497 * cp-name-parser.y (fill_comp, make_operator, make_dtor)
10498 (make_builtin_type, make_name): New variable i, add gdb_assert.
10499 (operator) <OPERATOR NEW>: Update ARGS to 3.
10500 (operator) <OPERATOR DELETE>: Add trailing space.
10501 (operator) <OPERATOR NEW '[' ']'>: Update ARGS to 3.
10502 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
10503 * cp-support.c (cp_canonicalize_string): Check NULL from
10504 cp_comp_to_string, call warning and return.
10505
10506 2012-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
10507
10508 Fix duplicate .o files after omitting libbfd.a.
10509 * Makefile.in (ALL_TARGET_OBS): Remove corelow.o.
10510 (SFILES): Add corelow.c.
10511 (COMMON_OBS): Add corelow.o.
10512 (ALLDEPFILES): Remove corelow.c.
10513 * config/alpha/alpha-linux.mh (NATDEPFILES): Remove corelow.o.
10514 * config/alpha/alpha-osf3.mh: Likewise.
10515 * config/alpha/fbsd.mh: Likewise.
10516 * config/arm/nbsdaout.mh: Likewise.
10517 * config/arm/nbsdelf.mh: Likewise.
10518 * config/i386/i386gnu.mh: Likewise.
10519 * config/ia64/hpux.mh: Likewise.
10520 * config/ia64/linux.mh: Likewise.
10521 * config/m32r/linux.mh: Likewise.
10522 * config/m68k/linux.mh: Likewise.
10523 * config/mips/irix5.mh: Likewise.
10524 * config/mips/irix6.mh: Likewise.
10525 * config/pa/hpux.mh: Likewise.
10526 * config/pa/linux.mh: Likewise.
10527 * config/powerpc/aix.mh: Likewise.
10528 * config/sparc/linux.mh: Likewise.
10529 * config/sparc/linux64.mh: Likewise.
10530 * config/sparc/sol2.mh: Likewise.
10531 * config/vax/vax.mh: Likewise.
10532 * configure.tgt (alpha*-*-freebsd* alpha*-*-kfreebsd*-gnu)
10533 (alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu, alpha*-*-openbsd*)
10534 (am33_2.0*-*-linux*, arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-linux*)
10535 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-netbsd*)
10536 (hppa*-*-openbsd*, i[34567]86-*-dicos*, i[34567]86-*-freebsd*)
10537 (i[34567]86-*-kfreebsd*-gnu, i[34567]86-*-netbsd*)
10538 (i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*, i[34567]86-*-nto*)
10539 (i[34567]86-*-solaris2.1[0-9]*, x86_64-*-solaris2.1[0-9]*)
10540 (i[34567]86-*-solaris*, i[34567]86-*-linux*, i[34567]86-*-cygwin*)
10541 (i[34567]86-*-mingw32*, m68*-*-netbsd*, m68*-*-knetbsd*-gnu)
10542 (m68*-*-openbsd*, m88*-*-openbsd*, microblaze*-linux-*)
10543 (microblaze*-*-linux*, mips*-*-linux*, mips*-*-netbsd*)
10544 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
10545 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-linux*)
10546 (powerpc64-*-linux*, s390*-*-*, score-*-*, sh*-*-linux*)
10547 (sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
10548 (sparc*-*-freebsd*, sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*)
10549 (sparc-*-knetbsd*-gnu, sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu)
10550 (sparc-*-openbsd*, sparc64-*-openbsd*, tic6x-*-*linux, vax-*-netbsd*)
10551 (vax-*-knetbsd*-gnu, vax-*-openbsd*, x86_64-*-dicos*, x86_64-*-linux*)
10552 (x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu, x86_64-*-netbsd*)
10553 (x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*, xtensa*-*-linux*): Remove
10554 corelow.o from gdb_target_obs.
10555 * corefile.c (core_target): Update the comment on NULL value.
10556 (core_file_command): Replace error by gdb_assert on CORE_TARGET.
10557 * corelow.c (sniff_core_bfd): Call error instead of warning on zero
10558 MATCHES. Drop YUMMY set on NULL.
10559 (core_close): Do not call exit_inferior_silent on zero PID. Do not
10560 reclaim CORE_DATA if it is already NULL.
10561
10562 2012-01-09 Doug Evans <dje@google.com>
10563
10564 * gdbtypes.c (safe_parse_type): Initialize type to keep gcc happy.
10565 * varobj.c (varobj_set_value): Initialize val,value to keep gcc happy.
10566
10567 2012-01-09 Keith Seitz <keiths@redhat.com>
10568
10569 * breakpoint.c (wrapper.h): Don't include.
10570
10571 2012-01-09 Keith Seitz <keiths@redhat.com>
10572
10573 * Makefile.in (SFILES): Remove wrapper.c.
10574 (HFILES_NO_SRCDIR): Remove wrapper.h.
10575 (COMMON_OBS): Remove wrapper.o.
10576 * cli/cli-interp.c: Don't inlude wrapper.h.
10577 * corelow.c: Likewise.
10578 (core_open): Replace gdb_target_find_new_threads with
10579 TRY_CATCH around target_find_new_threads.
10580 * eval.c (fetch_subexp_value): Likewise for value_fetch_lazy.
10581 * gdbtypes.c (safe_parse_type): Likewise for parse_and_eval_type.
10582 * varobj.c (varobj_create): Likewise for parse_exp_1 and
10583 evaluate_expression.
10584 (varobj_set_value): Likewise for evaluate_expression and
10585 value_assign.
10586 (install_new_variable): Likewise for value_fetch_lazy.
10587 (adjust_value_for_child_access): Likewise for value_ind.
10588 (c_describe_child): Likewise for value_subscript and
10589 value_ind.
10590 (c_value_of_root): Likewise for evaluate_expression.
10591 * wrapper.c: Remove.
10592 * wrapper.h: Remove.
10593
10594 2012-01-09 Doug Evans <dje@google.com>
10595
10596 * dwarf2read.c (read_and_check_comp_unit_head): Renamed from
10597 partial_read_comp_unit_head. Replace "buffer", "buffer_size" and
10598 "abfd" args with "section". All callers updated.
10599 Error checking code moved ...
10600 (error_check_comp_unit_head): ... here. New function.
10601 (read_and_check_type_unit_head): Renamed from read_type_unit_head.
10602 Delete arg "abfd". New arg "type_offset". All callers updated.
10603 (create_debug_types_hash_table): Simplify by using
10604 read_and_check_type_unit_head.
10605
10606 * parser-defs.h (namecopy): Delete.
10607 * parse.c (namecopy, namecopy_size): Move into copy_name.
10608
10609 2012-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
10610
10611 Partially fix duplicate .o files after omitting libbfd.a.
10612 * config/alpha/alpha-osf3.mh (NATDEPFILES): Remove solib.o.
10613 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
10614 * config/i386/obsdaout.mh (NATDEPFILES): Remove solib.o.
10615 * config/m68k/nbsdaout.mh (NATDEPFILES): Remove solib.o.
10616 * config/m68k/obsd.mh (NATDEPFILES): Remove solib.o.
10617 * config/powerpc/aix.mh (NATDEPFILES): Remove xcoffread.o.
10618 * config/vax/nbsdaout.mh (NATDEPFILES): Remove solib.o.
10619
10620 2012-01-09 Pedro Alves <palves@redhat.com>
10621
10622 * MAINTAINERS: Update my email address.
10623
10624 2012-01-08 Doug Evans <dje@google.com>
10625
10626 * dwarf2read.c (dwarf2_per_objfile): Rename n_type_comp_units to
10627 n_type_units. Rename type_comp_units to all_type_units.
10628 All uses updated.
10629 (add_signatured_type_cu_to_table): Renamed from
10630 add_signatured_type_cu_to_list. All callers updated.
10631
10632 * gdbtypes.h (struct cplus_struct_type): Delete member
10633 nfn_fields_total. All uses removed.
10634
10635 2012-01-06 Doug Evans <dje@google.com>
10636
10637 * dwarf2read.c: Move FIXME from dwarf2_build_psymtabs_hard
10638 to top of file.
10639 (dwarf2_find_comp_unit): Delete.
10640 (process_psymtab_comp_unit): Make result "void".
10641 Delete args buffer, info_ptr, buffer_size, and replace with
10642 "section". All callers updated.
10643 (dwarf2_build_psymtabs_hard): Simplify.
10644
10645 2012-01-06 Sergio Durigan Junior <sergiodj@redhat.com>
10646 Thiago Jung Bauermann <bauerman@br.ibm.com>
10647
10648 * ada-lang.c (ada_exception_name_addr): Add `volatile' keyword
10649 before `struct gdb_exception'.
10650 * breakpoint.c (update_global_location_list_nothrow)
10651 (update_breakpoint_locations, enable_breakpoint_disp): Likewise.
10652 * cp-abi.c (value_rtti_type): Likewise.
10653 * cp-support.c (cp_validate_operator): Likewise.
10654 * infrun.c (insert_exception_resume_breakpoint)
10655 (check_exception_resume, keep_going): Likewise.
10656 * mi-interp.c (mi_breakpoint_created)
10657 (mi_breakpoint_modified): Likewise.
10658 * rs6000-aix-tdep.c (rs6000_convert_from_func_ptr_addr): Likewise.
10659 * solib-ia64-hpux.c (ia64_hpux_at_dld_breakpoint_p)
10660 (ia64_hpux_handle_dld_breakpoint_1): Likewise.
10661
10662 2012-01-05 Doug Evans <dje@google.com>
10663
10664 * dwarf2read.c (statement_prologue): Delete, unused.
10665
10666 * dwarf2read.c (dwarf2_per_cu_addr_size): Make result type an int.
10667 * dwarf2loc.h (dwarf2_per_cu_addr_size): Update.
10668
10669 * dwarf2read.c (comp_unit_header): Delete, unused.
10670
10671 2012-01-05 Ulrich Weigand <uweigand@de.ibm.com>
10672
10673 * configure.tgt [s390*-*-*] (gdb_target_obs): Add corelow.o.
10674 * config/s390/s390.mh (NATDEPFILES): Remove corelow.o.
10675
10676 2012-01-05 Khoo Yit Phang <khooyp@cs.umd.edu>
10677
10678 * infrun.c (normal_stop): Don't skip calling the normal_stop
10679 observers if the thread was doing a multi-step, but stopped for
10680 some reason other than stepping.
10681
10682 2012-01-05 Pedro Alves <alves.ped@gmail.com>
10683
10684 * cli/cli-decode.h: Add comments.
10685 (CMD_LIST_AMBIGUOUS): Moved to command.h
10686 (add_cmd, add_alias_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
10687 (set_cmd_cfunc, set_cmd_sfunc, set_cmd_completer, cmd_cfunc_eq)
10688 (set_cmd_context, get_cmd_context, lookup_cmd, lookup_cmd_1)
10689 (deprecate_cmd, deprecated_cmd_warning, lookup_cmd_composition)
10690 (add_com, add_com_alias, add_info, add_info_alias)
10691 (complete_on_cmdlist, complete_on_enum, help_list): Remove
10692 declarations.
10693 * command.h: Add and adjust comments.
10694 (CMD_LIST_AMBIGUOUS): Moved here.
10695 (help_cmd, help_cmd_list): Delete declarations.
10696
10697 2012-01-04 Doug Evans <dje@google.com>
10698
10699 * dwarf2read.c (dwarf2_read_abbrevs): Delete arg "abfd".
10700 All callers updated.
10701 (load_full_type_unit): Renamed from read_signatured_type_at_offset.
10702 Replace all arguments with "per_cu". All callers updated.
10703
10704 * dwarf2read.c (dwarf2_per_cu_data): Remove outdated comment.
10705
10706 * dwarf2read.c (init_one_comp_unit): Delete arg "objfile".
10707 New arg "per_cu". All callers updated.
10708
10709 Delete #if 0'd out code.
10710 * language.c (binop_result_type): Delete.
10711 (simple_type, ordered_type, same_type, integral_type): Delete.
10712 (numeric_type, character_type, string_type, boolean_type): Delete.
10713 (float_type, structured_type): Delete.
10714 * language.h: Update.
10715
10716 2012-01-04 Tom Tromey <tromey@redhat.com>
10717
10718 * python/py-value.c (valpy_binop): Initialize 'res_val'.
10719
10720 2012-01-04 Joel Brobecker <brobecker@adacore.com>
10721
10722 * corefile.c (close_exec_file): Delete.
10723 (reopen_exec_file): Remove commented out code that seems related
10724 to close_exec_file, which is being deleted here.
10725 * inferior.h (close_exec_file): Delete.
10726 * fork-child.c (fork_inferior): Remove call to fork_inferior.
10727
10728 2012-01-04 Joel Brobecker <brobecker@adacore.com>
10729
10730 * ada-lang.c: #include "cli/cli-utils.h".
10731 (get_selections): Use skip_spaces.
10732 (ada_get_next_arg): Use skip_spaces and skip_to_space.
10733 (catch_ada_exception_command_split): Use skip_spaces.
10734 (ada_decode_assert_location): Likewise.
10735
10736 2012-01-04 Joel Brobecker <brobecker@adacore.com>
10737
10738 * linespec.c (decode_line_internal): Check for C++ or Java
10739 compound constructs only if the current language is C, C++
10740 or Java.
10741
10742 2012-01-04 Jan Kratochvil <jan.kratochvil@redhat.com>
10743
10744 Revert:
10745 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10746 Joel Brobecker <brobecker@adacore.com>
10747 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
10748 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
10749 3 times.
10750 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
10751 fall through into AT_ENTRY_POINT.
10752 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
10753 DUMMY_ADDR with it.
10754 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
10755 PPC_INSN_SIZE skip to 3 times.
10756
10757 2012-01-04 Joel Brobecker <brobecker@adacore.com>
10758
10759 * linespec.c (add_minsym): Preserve function descriptors.
10760
10761 2012-01-04 Ulrich Weigand <uweigand@de.ibm.com>
10762
10763 * breakpoint.c (all_locations_are_pending): Consider locations
10764 in program spaces executing during startup pending as well.
10765
10766 2012-01-04 Joel Brobecker <brobecker@adacore.com>
10767
10768 Copyright year update in most files of the GDB Project.
10769
10770 2012-01-04 Joel Brobecker <brobecker@adacore.com>
10771
10772 * copyright.sh: Delete.
10773 * copyright.py: Rewrite.
10774
10775 2012-01-04 Joel Brobecker <brobecker@adacore.com>
10776
10777 * gnulib/extra/update-copyright: New file, imported from gnulib.
10778
10779 2012-01-04 Joel Brobecker <brobecker@adacore.com>
10780
10781 * README (Copyright and License Notices): New section.
10782
10783 2012-01-03 Tom Tromey <tromey@redhat.com>
10784
10785 PR python/12533:
10786 * python/py-value.c (valpy_dereference, valpy_get_address
10787 valpy_get_dynamic_type, valpy_lazy_string, valpy_do_cast)
10788 (valpy_getitem, valpy_call, valpy_binop, valpy_negative)
10789 (valpy_absolute, valpy_richcompare): Free intermediate values.
10790
10791 2011-01-03 Joel Brobecker <brobecker@adacore.com>
10792
10793 * ada-lang.c: Reformat the copyright notice.
10794
10795 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10796
10797 * Makefile.in (ALL_TARGET_OBS): Remove solib-target.o.
10798 * configure.tgt (arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-symbianelf*)
10799 (i[34567]86-*-dicos*, i[34567]86-*-cygwin*, i[34567]86-*-mingw32*)
10800 (x86_64-*-dicos*, x86_64-*-mingw*): Remove solib-target.o.
10801 Revert this part of:
10802 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10803 Build gdb directly from *.o files not using libgdb.a.
10804 * Makefile.in (COMMON_OBS): Remove solib-target.o.
10805
10806 2012-01-02 Joel Brobecker <brobecker@adacore.com>
10807
10808 * gdb/common/gdb_thread_db.h, gdb/dbxread.c, gdb/environ.c,
10809 gdb/gcore.h, gdb/rs6000-tdep.h, gdb/s390-nat.c, gdb/tic6x-tdep.c:
10810 Reformat the copyright header.
10811
10812 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10813
10814 Revert this part of:
10815 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10816 Remove the gdbtui binary.
10817 * gdb.c (main): Remove args.interpreter_p initialization.
10818 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
10819 * main.h (struct captured_main_args): Remove interpreter_p.
10820
10821 2012-01-02 Joel Brobecker <brobecker@adacore.com>
10822
10823 * config/djgpp/fnchange.lst: Add entry for ChangeLog-2011.
10824
10825 2012-01-02 Joel Brobecker <brobecker@adacore.com>
10826
10827 * top.c (print_gdb_version): Update copyright year.
10828
10829 2012-01-02 Yao Qi <yao@codesourcery.com>
10830
10831 * inf-ptrace.c (inf_ptrace_xfer_partial): Reindent.
10832
10833 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10834 Joel Brobecker <brobecker@adacore.com>
10835
10836 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
10837 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
10838 3 times.
10839 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
10840 fall through into AT_ENTRY_POINT.
10841 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
10842 DUMMY_ADDR with it.
10843 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
10844 PPC_INSN_SIZE skip to 3 times.
10845
10846 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10847
10848 * amd64-linux-nat.c (update_debug_registers_callback): New comment on
10849 the return value.
10850 * i386-linux-nat.c (update_debug_registers_callback): Likewise.
10851
10852 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10853
10854 Build gdb directly from *.o files not using libgdb.a.
10855 * Makefile.in (SUBDIR_TUI_OBS): Remove duplicate tui.o.
10856 (COMMON_OBS): Remove solib-target.o.
10857 (LIBGDB_OBS, libgdb.a): Move it before the gdb$(EXEEXT) rule.
10858 (gdb$(EXEEXT)): Replace libgdb.a with $(LIBGDB_OBS).
10859 (LIBGDB_OBS, libgdb.a): Move it above.
10860 * configure.tgt (alpha*-*-linux*, alpha*-*-freebsd*)
10861 (alpha*-*-kfreebsd*-gnu, alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu)
10862 (alpha*-*-openbsd*, am33_2.0*-*-linux*, arm*-wince-pe)
10863 (arm*-*-mingw32ce*, arm*-*-linux*, arm*-*-netbsd*, arm*-*-knetbsd*-gnu)
10864 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-linux*)
10865 (hppa*-*-netbsd*, hppa*-*-openbsd*, i[34567]86-*-darwin*)
10866 (i[34567]86-*-dicos*, i[34567]86-*-freebsd*, i[34567]86-*-kfreebsd*-gnu)
10867 (i[34567]86-*-netbsd*, i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*)
10868 (i[34567]86-*-nto*, i[34567]86-*-solaris2.1[0-9]*)
10869 (x86_64-*-solaris2.1[0-9]*, i[34567]86-*-solaris*, i[34567]86-*-linux*)
10870 (i[34567]86-*-gnu*, ia64-*-linux*, m32r*-*-linux*, m68*-*-linux*)
10871 (m68*-*-netbsd*, m68*-*-knetbsd*-gnu, m68*-*-openbsd*)
10872 (microblaze*-linux-*, microblaze*-*-linux*, mips*-sgi-irix5*)
10873 (mips*-sgi-irix6*, mips*-*-linux*, mips*-*-netbsd*)
10874 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
10875 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-aix*, rs6000-*-*)
10876 (powerpc-*-linux*, powerpc64-*-linux*, powerpc*-*-*, s390*-*-*)
10877 (sh*-*-linux*, sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
10878 (sparc-*-linux*, sparc64-*-linux*, sparc*-*-freebsd*)
10879 (sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*, sparc-*-knetbsd*-gnu)
10880 (sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu, sparc-*-openbsd*)
10881 (sparc64-*-openbsd*, sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*)
10882 (sparc-*-solaris2*, sparcv9-*-solaris2*, sparc64-*-solaris2*)
10883 (vax-*-netbsd*, vax-*-knetbsd*-gnu, x86_64-*-darwin*, x86_64-*-dicos*)
10884 (x86_64-*-linux*, x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu)
10885 (x86_64-*-netbsd*, x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*)
10886 (xtensa*-*-linux*, xtensa*): Remove solib.o from gdb_target_obs.
10887
10888 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10889
10890 Remove the gdbtui binary.
10891 * .gitignore (/gdbtui): Remove.
10892 * Makefile.in (TUI): Remove.
10893 (SUBDIR_TUI_OBS): Remove tui-main.o.
10894 (SUBDIR_TUI_SRCS): Remove tui/tui-main.c.
10895 (all-tui, install-tui, uninstall-tui, $(TUI)$(EXEEXT), clean-tui)
10896 (tui-main.o): Remove.
10897 (all_object_files): Remove tui-main.o.
10898 * NEWS: New note for the gdbtui removal.
10899 * configure: Rebuilt.
10900 * configure.ac: No longer add all-tui, clean-tui, install-tui and
10901 uninstall-tui to CONFIG_ALL, CONFIG_CLEAN, CONFIG_INSTALL and
10902 CONFIG_UNINSTALL respectively.
10903 * gdb.c (main): Remove args.interpreter_p initialization.
10904 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
10905 * main.h (struct captured_main_args): Remove interpreter_p.
10906 * tui/tui-main.c: Remove.
10907
10908 2012-01-01 Doug Evans <dje@google.com>
10909
10910 * dwarf2read.c (dwarf2_compute_name): Simplify objfile references.
10911 (dwarf2_physname, read_import_statement): Ditto.
10912 (read_call_site_scope, dwarf2_record_block_ranges): Ditto.
10913 (process_structure_scope read_subroutine_type): Ditto.
10914 (read_typedef, load_partial_dies, read_partial_die): Ditto.
10915 (find_partial_die, dwarf_decode_lines, lookup_die_type): Ditto.
10916 (dwarf2_fetch_die_location_block): Ditto.
10917 (dwarf_decode_macros, dwarf2_symbol_mark_computed): Ditto.
10918
10919 * dwarf2read.c (read_signatured_type): Delete `objfile' arg.
10920 All callers updated.
10921 (load_full_comp_unit, queue_comp_unit, process_queue): Ditto.
10922 (dw2_do_instantiate_symtab, dw2_instantiate_symtab): Ditto.
10923 (process_psymtab_comp_unit, load_partial_comp_unit): Ditto.
10924
10925 * dwarf2read.c (load_cu): Move assert to more useful location.
10926
10927 * dwarf2read.c (free_heap_comp_unit): Renamed from free_one_comp_unit.
10928 All callers updated.
10929
10930 * dwarf2read.c (dwarf2_per_objfile): Add comment.
10931 (dwarf2_elf_names): Minor reformat.
10932 (dwarf2_per_cu_data): Tweak comment.
10933 (dwarf2_read_section): Fix comment.
10934 (create_all_comp_units): Fix comment.
10935 (load_full_comp_unit): Fix comment.
10936 (process_full_comp_unit): Fix comment.
10937 (read_signatured_type): Fix comment.
10938
10939 For older changes see ChangeLog-2011.
10940 \f
10941 Local Variables:
10942 mode: change-log
10943 left-margin: 8
10944 fill-column: 74
10945 version-control: never
10946 coding: utf-8
10947 End:
This page took 0.243679 seconds and 5 git commands to generate.