ad9b710ef80465d8c503a1363f3c53e463bb2f9f
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2012-06-28 Stan Shebs <stan@codesourcery.com>
2
3 Make logging work for MI.
4 * NEWS: Mention it.
5 * interps.h (interp_set_logging_ftype): New typedef.
6 (struct interp_procs): New field set_logging_proc.
7 (current_interp_set_logging): Declare.
8 * interps.c (current_interp_set_logging): New function.
9 * cli/cli-logging.c: Include interps.h.
10 (set_logging_redirect): Call current_interp_set_logging.
11 (pop_output_files): Ditto.
12 (handle_redirections): Ditto, plus skip ui-out redirect if MI.
13 * mi/mi-console.h (mi_console_set_raw): Declare.
14 * mi/mi-console.c (mi_console_set_raw): New function.
15 * mi/mi-interp.c (saved_raw_stdout): New global.
16 (mi_set_logging): New function.
17 (_initialize_mi_interp): Add it to interp procs.
18
19 2012-06-28 Doug Evans <dje@google.com>
20
21 * symtab.c (lookup_symbol_aux_objfile): Use
22 ALL_OBJFILE_PRIMARY_SYMTABS.
23
24 * gdbtypes.c (lookup_typename): Rename local variable "tmp" to "type".
25
26 2012-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
27
28 * common/buffer.c: Include inttypes.h and stdint.h.
29 (buffer_xml_printf): Use PRId64, PRIu64, PRIx64 and PRIo64.
30
31 2012-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
32 Pedro Alves <palves@redhat.com>
33
34 * gdbthread.h (ALL_THREADS): New macro.
35 (thread_list): Declare.
36 * infrun.c (handle_inferior_event) <spurious signal>: Don't keep
37 going, but instead fall through to the stepping handling.
38 * linux-nat.c (resume_lwp): New parameter 'signo'. Resume with
39 the passed in signal. Adjust debug output.
40 (resume_callback): Rename to ...
41 (linux_nat_resume_callback): ... this. Pass the thread's last
42 stop signal, if in "pass" state.
43 (linux_nat_resume): Adjust to rename.
44 (stop_wait_callback): New assertion. Don't respawn signals;
45 instead let the LWP remain with SIGNALLED set.
46 (linux_nat_wait_1): Remove flushing of pending SIGSTOPs.
47 * remote.c (append_pending_thread_resumptions): New.
48 (remote_vcont_resume): Call it.
49 * target.h (target_resume): Extend comment.
50
51 2012-06-28 Iain Sandoe <iain@codesourcery.com>
52
53 * auxv.c (fprint_target_auxv): Handle extended cache data tags.
54
55 2012-06-27 Doug Evans <dje@google.com>
56
57 * dwarf2read.c (dwarf2_cu): Add ranges_base.
58 Delete have_addr_base, unused. All uses updated.
59 (init_cutu_and_read_dies): Process DW_AT_GNU_ranges_base.
60 (dwarf2_get_pc_bounds): Add ranges_base.
61 (dwarf2_record_block_ranges): Ditto.
62
63 2012-06-27 Tom Tromey <tromey@redhat.com>
64
65 PR macros/7961:
66 * varobj.c (varobj_create): Update.
67 (varobj_set_value): Update.
68 * tracepoint.c (validate_actionline): Update.
69 (encode_actions_1): Update.
70 * parse.c (parse_exp_1): Add 'pc' argument.
71 (parse_exp_in_context): Add 'pc' argument. Change how
72 expression_context_pc is set.
73 (parse_expression): Update.
74 (parse_field_expression): Update.
75 * expression.h (parse_exp_1): Update.
76 * eval.c (parse_to_comma_and_eval): Update.
77 * breakpoint.c (set_breakpoint_condition): Update.
78 (update_watchpoint): Update.
79 (init_breakpoint_sal): Update
80 (find_condition_and_thread): Update.
81 (watch_command_1): Update.
82 (update_breakpoint_locations): Update.
83 * ada-lang.c (ada_read_renaming_var_value): Update.
84 (create_excep_cond_exprs): Update.
85
86 2012-06-27 Doug Evans <dje@google.com>
87
88 * dwarf2read.c (per_cu_header_read_in): Simplify, and handle
89 type units.
90
91 2012-06-26 Doug Evans <dje@google.com>
92
93 * dwarf2read.c (read_and_check_comp_unit_head): Delete unnecessary
94 prototype.
95 (error_check_comp_unit_head): New arg abbrev_section. All callers
96 updated.
97 (read_and_check_comp_unit_head): Ditto.
98 (read_and_check_type_unit_head): Ditto.
99
100 2012-06-26 Siva Chandra Reddy <sivachandra@google.com>
101
102 New attribute 'last' for gdb.Symtab_and_line.
103 * NEWS (Python Scripting): Add entry about the new attribute.
104 * python/py-symtab.c (salpy_get_last): New function which
105 implements the get method for the 'last' attribute of
106 gdb.Symtab_and_line.
107 (sal_object_getset): Add entry for the 'last' attribute.
108
109 2012-06-26 Doug Evans <dje@google.com>
110
111 * dwarf2read.c (dwo_section_names): Add macinfo_dwo, macro_dwo.
112 (dwo_sections): Add macinfo, macro.
113 (dwarf2_locate_dwo_sections): Watch for macro sections.
114 (dwarf_decode_macros): Remove args lh, abfd, section, section_name.
115 All callers updated. Handle DWO files.
116
117 * NEWS: Mention new options "set debug dwarf2-read" and
118 "set debug symtab-create".
119 * dwarf2read.c (dwarf2_read_debug): New static global.
120 (dwarf2_build_psymtabs_hard): Add debugging printfs.
121 (process_queue): Ditto.
122 (process_full_comp_unit): Ditto.
123 (_initialize_dwarf2_read): Add new option "set debug dwarf2-read".
124 * elfread.c (elf_symfile_read): Add debugging printf.
125 * minsyms.c (install_minimal_symbols): Ditto.
126 * psymtab.c (allocate_psymtab): Ditto.
127 * symfile.c (allocate_symtab): Ditto.
128 * symtab.c (symtab_create_debug): New global.
129 (_initialize_symtab): Add new option "set debug symtab-create".
130 * symtab.h (symtab_create_debug): Declare.
131
132 * dwarf2read.c (lookup_dwo_comp_unit): Enhance comment.
133 (lookup_dwo_type_unit): Ditto.
134
135 2012-06-26 Roland McGrath <roland@hack.frob.com>
136 H.J. Lu <hongjiu.lu@intel.com>
137
138 * amd64-linux-nat.c: Include <sys/user.h>.
139 (ps_get_thread_area): Use PTRACE_PEEKUSER to get fs_base/gs_base
140 if HAVE_STRUCT_USER_REGS_STRUCT_FS_BASE or
141 HAVE_STRUCT_USER_REGS_STRUCT_GS_BASE is defined.
142
143 * configure.ac: Check if the fs_base and gs_base members of
144 `struct user_regs_struct' exist.
145 * config.in: Regenerated.
146 * configure: Likewise.
147
148 2012-06-25 Michael Eager <eager@eagercon.com>
149
150 PR python/14291
151 * python/python.c (gdbpy_write): Check for interrupted output.
152
153 2012-06-25 Greta Yorsh <greta.yorsh@arm.com>
154
155 * arm-tdep.c (arm_in_function_epilogue_p): Recognize POP with a single
156 register as a stack alignment in ARM mode.
157
158 2012-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
159
160 Update gnulib to GIT commit a39f53ccb70a613e647e1019fb4c63645220267e.
161 * gnulib/config.in: Regenerate.
162 * gnulib/configure: Likewise.
163 * gnulib/import/m4/extensions.m4: Update it.
164 * gnulib/import/m4/gnulib-common.m4: Likewise.
165 * gnulib/import/m4/memmem.m4: Likewise.
166 * gnulib/import/m4/mmap-anon.m4: Likewise.
167 * gnulib/import/m4/multiarch.m4: Likewise.
168 * gnulib/import/stdint.in.h: Likewise.
169
170 2012-06-24 Yao Qi <yao@codesourcery.com>
171
172 * corefile.c (write_memory_with_notification): New.
173 * gdbcore.h: Declare write_memory_with_notification.
174 * ada-lang.c (ada_value_assign): Replace 'write_memory' and
175 'observer_notify_memory_changed' with 'write_memory_with_notification'.
176 * valops.c (value_assign): Likewise.
177 * python/py-inferior.c (infpy_write_memory): Call
178 'write_memory_with_notification'.
179
180 2012-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
181
182 * cc-with-index.sh: Use also -ex "set auto-load no".
183
184 2012-06-23 Doug Evans <dje@google.com>
185
186 PR 14125
187 * NEWS: Document additions to .gdb_index.
188 * dwarf2read.c: #include "gdb/gdb-index.h".
189 (DW2_GDB_INDEX_SYMBOL_STATIC_SET_VALUE): New macro.
190 (DW2_GDB_INDEX_SYMBOL_KIND_SET_VALUE): New macro.
191 (DW2_GDB_INDEX_CU_SET_VALUE): New macro.
192 (dwarf2_read_index): Recognize version 7.
193 (dw2_do_expand_symtabs_matching): New args want_specific_block,
194 block_kind, domain): All callers updated.
195 (dw2_find_symbol_file): Handle new index CU values.
196 (dw2_expand_symtabs_matching): Match symbol kind if requested.
197 (add_index_entry): New args is_static, kind. All callers updated.
198 (offset_type_compare, uniquify_cu_indices): New functions
199 (symbol_kind): New function.
200 (write_psymtabs_to_index): Remove duplicate CU values.
201 (write_psymtabs_to_index): Write .gdb_index version 7.
202
203 2012-06-22 Joel Brobecker <brobecker@adacore.com>
204
205 * configure.ac (build_warnings): Add -Wdeclaration-after-statement.
206 * configure: Regenerate.
207
208 2012-06-20 Yao Qi <yao@codesourcery.com>
209
210 * python/py-inferior.c: Update comments of infpy_read_memory
211 and infpy_write_memory.
212
213 2012-06-19 Tom Tromey <tromey@redhat.com>
214
215 PR exp/9514:
216 * parser-defs.h (insert_type, insert_type_address_space): Declare.
217 (push_type_address_space): Remove.
218 * parse.c (insert_into_type_stack): New function.
219 (insert_type): Likewise.
220 (insert_type_address_space): Rename from push_type_address_space.
221 Insert tp_space_identifier.
222 * c-exp.y (ptr_operator): New production.
223 (abs_decl): Use ptr_operator.
224 (space_identifier): Call insert_type_address_space.
225 (ptype): Don't use const_or_volatile_or_space_identifier.
226 (const_or_volatile_noopt): Call insert_type.
227 (conversion_type_id, conversion_declarator): New productions.
228 (operator): Use conversion_type_id.
229
230 2012-06-18 Doug Evans <dje@google.com>
231
232 * symtab.h (minimal_symbol): New member created_by_gdb.
233 * elfread.c (elf_symtab_read): Set created_by_gdb for @plt minsym
234 created by gdb.
235 * symtab.c (lookup_symbol_in_objfile_from_linkage_name): New function.
236 (search_symbols): Call it instead of lookup_symbol.
237 Skip symbols created by gdb. Only scan minsyms if nfiles == 0.
238
239 * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_const_index.
240 Adjust address for DW_OP_GNU_addr_index.
241 * dwarf2expr.h (dwarf_expr_context): Update comment.
242 * dwarf2loc.c (locexpr_describe_location_piece): New arg per_cu,
243 all callers updated. Handle TLS vars described with
244 DW_OP_GNU_const_index.
245 (disassemble_dwarf_expression): Handle DW_OP_GNU_addr_index
246 and DW_OP_GNU_const_index.
247 * dwarf2read.c (decode_locdesc): Handle DW_OP_GNU_addr_index.
248
249 * block.c (find_block_in_blockvector): Make explicit the fact that we
250 ignore GLOBAL_BLOCK.
251
252 2012-06-18 Tom Tromey <tromey@redhat.com>
253
254 * c-exp.y (operator): Remove trailing space after "delete" and
255 "delete[]".
256
257 2012-06-18 Mark Kettenis <kettenis@gnu.org>
258 Jan Kratochvil <jan.kratochvil@redhat.com>
259
260 Switch i386 and derived targets to ON_STACK.
261 * amd64-dicos-tdep.c (amd64_dicos_push_dummy_code): Remove.
262 (amd64_dicos_init_abi): Remove its installment.
263 * dicos-tdep.c (dicos_init_abi): Remove the
264 set_gdbarch_call_dummy_location call. Update the comment here.
265 * i386-dicos-tdep.c (i386_dicos_push_dummy_code): Remove.
266 (i386_dicos_init_abi): Remove its installment.
267 * i386-tdep.c (i386_push_dummy_code): New function.
268 (i386_gdbarch_init): Call set_gdbarch_call_dummy_location, install
269 i386_push_dummy_code.
270
271 2012-06-18 Jan Kratochvil <jan.kratochvil@redhat.com>
272
273 Remove stale dummy frames.
274 * breakpoint.c: Include dummy-frame.h.
275 (longjmp_breakpoint_ops): New variable.
276 (update_breakpoints_after_exec, breakpoint_init_inferior): Delete also
277 bp_longjmp_call_dummy.
278 (bpstat_what, bptype_string, print_one_breakpoint_location)
279 (init_bp_location): Support bp_longjmp_call_dummy.
280 (set_longjmp_breakpoint): Use longjmp_breakpoint_ops. Comment why.
281 (set_longjmp_breakpoint_for_call_dummy)
282 (check_longjmp_breakpoint_for_call_dummy, longjmp_bkpt_dtor): New
283 functions.
284 (initialize_breakpoint_ops): Initialize longjmp_breakpoint_ops.
285 * breakpoint.h (enum bptype): New item bp_longjmp_call_dummy. Delete
286 FIXME comment and extend the other comment for bp_call_dummy.
287 (set_longjmp_breakpoint_for_call_dummy)
288 (check_longjmp_breakpoint_for_call_dummy): New declarations.
289 * dummy-frame.c: Include gdbthread.h.
290 (pop_dummy_frame_bpt): New function.
291 (pop_dummy_frame): Call pop_dummy_frame_bpt.
292 (dummy_frame_discard): New function.
293 (cleanup_dummy_frames): Update the comment about longjmps.
294 * dummy-frame.h (dummy_frame_discard): New declaration.
295 * gdbthread.h (struct thread_info): Extend initiating_frame comment.
296 * infcall.c (call_function_by_hand): New variable longjmp_b. Call
297 set_longjmp_breakpoint_for_call_dummy. Chain its breakpoints with BPT.
298 * infrun.c (handle_inferior_event) <BPSTAT_WHAT_CLEAR_LONGJMP_RESUME>:
299 Add case 4 comment. Call check_longjmp_breakpoint_for_call_dummy and
300 keep_going if IS_LONGJMP and there is no other reason to stop.
301
302 2012-06-18 Greta Yorsh <Greta.Yorsh@arm.com>
303
304 * remote-sim.c (sim_command_completer): Initialize
305 variable 'result'.
306
307 2012-06-17 Jan Kratochvil <jan.kratochvil@redhat.com>
308
309 * dwarf2expr.c (execute_stack_op): Support DW_OP_GNU_parameter_ref.
310 * dwarf2loc.c (call_site_parameter_matches): Support
311 CALL_SITE_PARAMETER_PARAM_OFFSET.
312 (needs_dwarf_reg_entry_value): Push stub value.
313 * dwarf2read.c (read_call_site_scope): New variable origin. Support
314 CALL_SITE_PARAMETER_PARAM_OFFSET and its DW_AT_abstract_origin.
315 * gdbtypes.h (enum call_site_parameter_kind): New item
316 CALL_SITE_PARAMETER_PARAM_OFFSET.
317 (struct call_site.parameter.u): New field param_offset.
318
319 2012-06-17 Jan Kratochvil <jan.kratochvil@redhat.com>
320
321 Code cleanup: Generalize call_site.parameter key.
322 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_entry_value>: Remove
323 variable dwarf_reg. New variable kind_u. Update parameters to
324 push_dwarf_reg_entry_value.
325 (ctx_no_push_dwarf_reg_entry_value): Update parameters.
326 * dwarf2expr.h (enum call_site_parameter_kind)
327 (union call_site_parameter_u): Forward declarations.
328 (struct dwarf_expr_context_funcs): Update parameters and their
329 description for push_dwarf_reg_entry_value.
330 (ctx_no_push_dwarf_reg_entry_value): Update parameters.
331 * dwarf2loc.c (call_site_parameter_matches): New function.
332 (dwarf_expr_reg_to_entry_parameter): Update parameters and their
333 description. Use call_site_parameter_matches.
334 (dwarf_expr_push_dwarf_reg_entry_value, value_of_dwarf_reg_entry):
335 Update parameters and their description.
336 (value_of_dwarf_block_entry): Remove variables dwarf_reg and fb_offset.
337 New variable kind_u. Adjust the caller for updated parameters.
338 (needs_dwarf_reg_entry_value): Update parameters.
339 * dwarf2read.c (read_call_site_scope): New variable loc. Use it
340 instead of attr. Update for the changed fields of struct
341 call_site_parameter.
342 * gdbtypes.h: Include dwarf2expr.h.
343 (enum call_site_parameter_kind): New.
344 (struct call_site.parameter): New field kind. Wrap dwarf_reg and
345 fb_offset into new union u.
346
347 2012-06-16 H.J. Lu <hongjiu.lu@intel.com>
348
349 * amd64-tdep.c (amd64_x32_analyze_stack_align): New function.
350 (amd64_analyze_prologue): Call amd64_x32_analyze_stack_align
351 for x32.
352
353 2012-06-16 H.J. Lu <hongjiu.lu@intel.com>
354
355 * amd64-linux-nat.c (compat_x32_clock_t): New.
356 (compat_x32_siginfo_t): Likewise.
357 (compat_x32_siginfo_from_siginfo): Likewise.
358 (siginfo_from_compat_x32_siginfo): Likewise.
359 (amd64_linux_siginfo_fixup): Call compat_x32_siginfo_from_siginfo
360 and siginfo_from_compat_x32_siginfo for x32.
361
362 2012-06-15 Hui Zhu <hui_zhu@mentor.com>
363
364 * tracepoint.c (tfile_xfer_partial): Add a lseek.
365
366 2012-06-15 H.J. Lu <hongjiu.lu@intel.com>
367
368 * amd64-linux-nat.c (ps_get_thread_area): Check bits_per_word
369 instead of gdbarch_ptr_bit.
370 * amd64-nat.c (amd64_native_gregset_reg_offset): Likewise.
371 (amd64_supply_native_gregset): Likewise.
372 (amd64_collect_native_gregset): Likewise.
373 * amd64-tdep.c (amd64_supply_fxsave): Likewise.
374 (amd64_supply_xsave): Likewise.
375 (amd64_collect_fxsave): Likewise.
376 (amd64_collect_xsave): Likewise.
377
378 2012-06-15 H.J. Lu <hongjiu.lu@intel.com>
379
380 * amd64-linux-nat.c (AMD64_LINUX_X32_DS): New.
381 (amd64_linux_read_description): Check DS segment register for
382 x32 process.
383
384 2012-06-15 Tom Tromey <tromey@redhat.com>
385
386 * dwarf2read.c (dw2_find_symbol_file): Unconditionally use
387 init_cutu_and_read_dies.
388
389 2012-06-15 Iain Sandoe <iain@codesourcery.com>
390
391 * MAINTAINERS (Write After Approval): Add myself to the list.
392
393 2012-06-15 Tom Tromey <tromey@redhat.com>
394
395 * valops.c (value_find_oload_method_list): Now static.
396 * value.h (value_find_oload_method_list): Don't declare.
397
398 2012-06-15 Tom Tromey <tromey@redhat.com>
399
400 * valops.c (find_overload_match): Use value_ind.
401
402 2012-06-15 Maciej W. Rozycki <macro@codesourcery.com>
403
404 * infrun.c (handle_inferior_event): Correct indentation.
405
406 2012-06-14 Doug Evans <dje@google.com>
407
408 * dwarf2loc.c (debug_loc_kind): Add DEBUG_LOC_START_LENGTH.
409 (DEBUG_LOC_START_END): Renamed from DEBUG_LOC_NORMAL.
410 All uses updated.
411 (decode_debug_loc_dwo_addresses): New arg "byte_order". All callers
412 updated. Handle DEBUG_LOC_START_LENGTH.
413 (dwarf2_find_location_expression): Handle DEBUG_LOC_START_LENGTH.
414 (loclist_describe_location): Ditto.
415
416 2012-06-14 Maciej W. Rozycki <macro@codesourcery.com>
417
418 PR backtrace/13866
419 * infrun.c (handle_inferior_event): Re-fetch frame and gdbarch
420 after hiding inline functions.
421
422 2012-06-13 Joel Brobecker <brobecker@adacore.com>
423
424 * inf-ttrace.c (_initialize_hppa_hpux_nat): Rename into
425 _initialize_inf_ttrace.
426
427 2012-06-13 Joel Brobecker <brobecker@adacore.com>
428
429 * ia64-hpux-nat.c (_initialize_ia64_hpux_nat): Renames
430 _initialize_hppa_hpux_nat.
431
432 2012-06-13 Joel Brobecker <brobecker@adacore.com>
433
434 * remote-sim.c (sim_command_completer): Change type of return
435 value to "VEC (char_ptr) *". Adjust implementation accordingly.
436
437 2012-06-13 Mark Kettenis <kettenis@gnu.org>
438 Jan Kratochvil <jan.kratochvil@redhat.com>
439
440 PR tdep/14222
441 * i386-tdep.c (i386_push_dummy_call): Unconditionally align the
442 stack on a 16-byte boundary.
443
444 2012-06-13 Kaushik Srenevasan <kaushik@twitter.com>
445
446 * jit.c (finalize_symtab): Set function's return type to 'void' by
447 default.
448
449 2012-06-13 Mark Kettenis <kettenis@gnu.org>
450 H.J. Lu <hongjiu.lu@intel.com>
451
452 * amd64-linux-tdep.c (amd64_linux_init_abi_common): New function.
453 Move bits common to both the classic LP64 and the new x32 ILP32
454 ABI here.
455 (amd64_linux_init_abi): Call amd64_linux_init_abi_common.
456 (amd64_x32_linux_init_abi): New function.
457 (_initialize_amd64_linux_tdep): Register osabi for bfd_mach_x64_32
458 subtype.
459
460 * i386-tdep.h (i386_pseudo_register_name): New prototype.
461 * i386-tdep.c (i386_pseudo_register_name): Make public.
462 * amd64-tdep.h (amd64_x32_init_abi): New prototype.
463 * amd64-tdep.c (amd64_dword_names): Add "eip".
464 (amd64_x32_pseudo_register_type): New function
465 (amd64_x32_init_abi): New function.
466
467 2012-06-13 Jan Kratochvil <jan.kratochvil@redhat.com>
468
469 PR build/14003
470 * inferior.h (struct inferior_suspend_state): Comment out.
471 (struct inferior): Comment out the field suspend.
472 * infrun.c (struct infcall_suspend_state): Comment out the field
473 inferior_suspend.
474 (save_infcall_suspend_state, restore_infcall_suspend_state): Comment
475 out its assignment.
476
477 2012-06-13 Jan Kratochvil <jan.kratochvil@redhat.com>
478
479 PR c++/14177 - Fix parsing TYPENAME:: in parentheses.
480 * c-exp.y (classify_inner_name): Remove caller assumptions in the
481 function comment. Return ERROR for unresolved cases. Implement
482 returning proper NAME.
483 (yylex): Accept also NAME from classify_inner_name.
484 * cp-namespace.c (cp_lookup_nested_type): Rename to ...
485 (cp_lookup_nested_symbol): ... here. Return any found symbol, not just
486 LOC_TYPEDEF type.
487 * cp-support.h (cp_lookup_nested_type): Update its declaration.
488
489 2012-06-13 Tom Tromey <tromey@redhat.com>
490
491 * breakpoint.c (condition_completer): New function.
492 (_initialize_breakpoint): Use it.
493 * value.c (complete_internalvar): New function.
494 * value.h (complete_internalvar): Declare.
495
496 2012-06-13 Tom Tromey <tromey@redhat.com>
497
498 * ada-lang.c (ada_make_symbol_completion_list): Return a VEC.
499 * breakpoint.c (catch_syscall_completer): Return a VEC.
500 * cli/cli-cmds.c (complete_command): Update.
501 * cli/cli-decode.c (complete_on_cmdlist): Return a VEC.
502 (complete_on_enum): Likewise.
503 * command.h: Include gdb_vecs.h.
504 (completer_ftype): Change return type.
505 (complete_on_cmdlist, complete_on_enum): Likewise.
506 * completer.c (noop_completer, filename_completer)
507 (location_completer): Return a VEC.
508 (add_struct_fields): Remove 'nextp' argument. Change 'output'
509 to a VEC.
510 (expression_completer, complete_line_internal, complete_line)
511 (command_completer): Return a VEC.
512 (gdb_completion_word_break_characters, line_completion_function):
513 Update.
514 * completer.h: Include gdb_vecs.h.
515 (complete_line, noop_completer, filename_completer)
516 (expression_completer, location_completer, command_completer):
517 Update.
518 * f-lang.c (f_word_break_characters): Return a VEC.
519 * interps.c (interpreter_completer): Return a VEC.
520 * language.h (struct language_defn)
521 <la_make_symbol_completion_list>: Return a VEC.
522 * python/py-cmd.c (cmdpy_completer): Return a VEC.
523 * symtab.c (free_completion_list): Take a VEC.
524 (return_val_size, return_val_index): Remove.
525 (return_val): Now a VEC.
526 (completion_list_add_name): Update.
527 (default_make_symbol_completion_list_break_on)
528 (default_make_symbol_completion_list, make_symbol_completion_list)
529 (make_symbol_completion_list_fn, make_file_symbol_completion_list):
530 Return a VEC.
531 (add_filename_to_list): Update.
532 (struct add_partial_filename_data) <list_used, list_alloced>: Remove.
533 <list>: Now a VEC.
534 (maybe_add_partial_symtab_filename): Update.
535 (make_source_files_completion_list): Return a VEC.
536 * symtab.h (default_make_symbol_completion_list_break_on)
537 (default_make_symbol_completion_list, make_symbol_completion_list)
538 (make_symbol_completion_list_fn, make_file_symbol_completion_list)
539 (make_source_files_completion_list): Update.
540
541 2012-06-13 Tom Tromey <tromey@redhat.com>
542
543 * breakpoint.c (add_catch_command): Use completer_ftype.
544 * breakpoint.h: Include command.h.
545 (add_catch_command): Use completer_ftype.
546 * cli/cli-decode.c (set_cmd_completer): Use completer_ftype.
547 * cli/cli-decode.h (struct cmd_list_element) <completer>:
548 Use completer_ftype.
549 * command.h (completer_ftype): New typedef.
550 (set_cmd_completer): Use it.
551 * python/py-cmd.c (struct cmdpy_completer) <completer>: Use
552 completer_ftype.
553
554 2012-06-13 Pedro Alves <palves@redhat.com>
555
556 Partial revert of previous change.
557
558 * serial.c (scb_base): New global.
559 (serial_for_fd): New.
560 (serial_open, serial_fdopen_ops): Link new serial in open serials
561 chain.
562 (do_serial_close): Unlink serial from the open serials chain.
563
564 2012-06-12 Pedro Alves <palves@redhat.com>
565
566 * infrun.c (infrun_thread_stop_requested_callback): Don't switch
567 threads here.
568 (prepare_for_detach): No longer context switch here in non-stop
569 mode.
570 (fetch_inferior_event): Ditto.
571 (handle_inferior_event) <STOP_QUIETLY || NO_STOP_QUIETLY>: Switch
572 to the event thread before removing breakpoints. Switch to the
573 event thread before inserting breakpoints and resuming.
574 (handle_inferior_event) <TARGET_WAITKIND_SPURIOUS>: Switch to the
575 event thread before resuming.
576 (handle_inferior_event) <stepping_past_singlestep_breakpoint>:
577 Switch to the event thread before removing breakpoints.
578
579 2012-06-12 Eli Zaretskii <eliz@gnu.org>
580
581 * infcmd.c (construct_inferior_arguments) [__MINGW32__]: Quote
582 special characters correctly for the Windows shells. See
583 http://sourceware.org/ml/gdb/2012-06/msg00047.html for the bug
584 report.
585 [!__MINGW32__]: Remove extra double quote character from special
586 characters.
587
588 2012-06-11 Stan Shebs <stan@codesourcery.com>
589
590 * ui-out.h: Remove #if 0 declarations.
591 * ui-out.c: Remove #if 0 functions.
592
593 2012-06-11 Pedro Alves <palves@redhat.com>
594
595 * ser-base.c (run_async_handler_and_reschedule): New.
596 (fd_event, push_event): Use it.
597 * serial.c (serial_open, serial_fdopen_ops): Set the initial
598 reference count to 1.
599 (do_serial_close): Set the bufp field to NULL. Use serial_unref
600 instead of xfree.
601 (serial_is_open, serial_ref, serial_unref): New.
602 * serial.h (serial_open): Adjust comment.
603 (serial_is_open): Declare.
604 (serial_close): Adjust comment.
605 (serial_ref, serial_unref) Declare.
606 (struct serial): New field 'refcnt'.
607
608 2012-06-11 Pedro Alves <palves@redhat.com>
609
610 Remove #if 0'd "connect" command, and unnecessary associated
611 refcounting and serial reuse bits.
612
613 * serial.h (struct serial): Remove fields 'next' and 'refcnt'.
614 * serial.c (last_serial_opened): Delete.
615 (scb_base): Delete.
616 (serial_open): Adjust.
617 (serial_for_fd): Delete.
618 (serial_fdopen_ops, do_serial_close): Adjust.
619 (serial_fdopen_ops): Adjust.
620
621 2012-06-11 Pedro Alves <palves@redhat.com>
622
623 * serial.c (do_serial_close): Remove early return when SCB is
624 null.
625
626 2012-06-11 Tom Tromey <tromey@redhat.com>
627
628 * dwarf2read.c (dw2_get_file_names_reader): Ignore partial units.
629
630 2012-06-11 Jan Kratochvil <jan.kratochvil@redhat.com>
631
632 Fix regression by the "ambiguous linespec" series.
633 * breakpoint.c (parse_breakpoint_sals): New variable cursal. Use
634 get_last_displayed_symtab and get_last_displayed_line and depending
635 on CURSAL.
636
637 2012-06-11 Tom Tromey <tromey@redhat.com>
638
639 * dwarf2read.c (dw2_get_primary_filename_reader): New function.
640 (dw2_find_symbol_file): Use it.
641
642 2012-06-11 Michael Eager <eager@eagercon.com>
643
644 * mips-linux-tdep.c (mips_gdb_signal_from_target): New
645 * mips-linux-tdep.h (mips_signals): New
646
647 2012-06-11 Tom Tromey <tromey@redhat.com>
648
649 * infrun.c (handle_inferior_event)
650 <BPSTAT_WHAT_SET_LONGJMP_RESUME>: Don't delete the step-resume
651 breakpoint.
652 <BPSTAT_WHAT_CLEAR_LONGJMP_RESUME>: Remove longjmp logic; use
653 exception logic in all cases. Update comments.
654 (insert_longjmp_resume_breakpoint): Set the exception resume
655 breakpoint.
656
657 2012-06-11 Maciej W. Rozycki <macro@codesourcery.com>
658
659 * mips-tdep.c (mips_push_dummy_code): Handle microMIPS code.
660
661 2012-06-09 Siva Chandra Reddy <sivachandra@google.com>
662
663 * valarith.c (binop_types_user_defined_p): Fix a typo.
664
665 2012-06-08 Yao Qi <yao@codesourcery.com>
666 Chung-Lin Tang <cltang@codesourcery.com>
667
668 * arch-utils.c (default_return_in_first_hidden_param_p): New.
669 * arch-utils.h: Declare.
670 * gdbarch.sh: Add return_in_first_hidden_param_p.
671 * gdbarch.c, gdbarch.h: Regenerated.
672 * infcall.c (call_function_by_hand): Call
673 gdbarch_return_in_first_hidden_param_p instead of
674 language_pass_by_reference.
675
676 * m68k-tdep.c (m68k_return_in_first_hidden_param_p): New.
677 (m68k_gdbarch_init): Install m68k_return_in_first_hidden_param_p.
678 * sh-tdep.c (sh_return_in_first_hidden_param_p): New.
679 (sh_gdbarch_init): Install sh_return_in_first_hidden_param_p.
680 * tic6x-tdep.c (tic6x_push_dummy_call): Remove local variable
681 `cplus_return_struct_by_reference'.
682 (tic6x_return_value): Handle language cplusplus.
683 (tic6x_return_in_first_hidden_param_p): New.
684 (tic6x_gdbarch_init): Install tic6x_return_in_first_hidden_param_p.
685
686 2012-06-07 Doug Evans <dje@google.com>
687
688 * dwarf2read.c (dwarf2_cu): Add comment.
689
690 2012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
691
692 * mips-tdep.c (mips_pseudo_register_type): Remove tdep local
693 variable.
694 (mips_eabi_push_dummy_call): Likewise.
695 (mips_n32n64_push_dummy_call): Likewise.
696 (mips_o32_push_dummy_call): Likewise.
697 (mips_o64_push_dummy_call): Likewise.
698
699 2012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
700
701 * mips-tdep.c (mips_convert_register_p): Correct coding style.
702
703 2012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
704
705 * mips-tdep.c (mips_pseudo_register_type): Use
706 mips_float_register_p.
707
708 2012-06-06 Pedro Alves <palves@redhat.com>
709
710 * infrun.c (handle_inferior_event): Remove calls to
711 reinit_frame_cache that follow a context_switch call.
712
713 2012-06-06 Pedro Alves <palves@redhat.com>
714
715 * infrun.c (handle_inferior_event) <deferred_step_ptid>: Use
716 context_switch and remove stale comment.
717
718 2012-06-06 Pedro Alves <palves@redhat.com>
719
720 * infrun.c (struct execution_control_state): Remove
721 `new_thread_event' field.
722 (handle_inferior_event): Simplify new threads handling; don't
723 resume the inferior if we find a new thread.
724
725 2012-06-06 Thomas Schwinge <thomas@codesourcery.com>
726
727 * NEWS: Document the deprecation of SH's 'regs' command.
728 * inferior.h (all_registers_info): Add function declaration.
729 * sh-tdep.c (sh_show_regs): Remove variable.
730 (sh_generic_show_regs, sh3_show_regs, sh2e_show_regs, sh2a_show_regs)
731 (sh2a_nofpu_show_regs, sh3e_show_regs, sh3_dsp_show_regs)
732 (sh4_show_regs, sh4_nofpu_show_regs, sh_dsp_show_regs)
733 (sh_show_regs_command): Remove functions.
734 (sh_gdbarch_init): Don't set sh_show_regs.
735 (_initialize_sh_tdep): Make the 'regs' command an deprecated alias to
736 'info all-registers'.
737 * sh64-tdep.c (sh64_show_media_regs, sh64_show_compact_regs)
738 (sh64_show_regs): Remove functions.
739 * sh64-tdep.h (sh64_show_regs): Remove function declaration.
740
741 2012-06-06 Jan Kratochvil <jan.kratochvil@redhat.com>
742
743 * configure.ac: Move development=true below AC_INIT.
744 * configure: Regenerate.
745
746 2012-06-05 Stan Shebs <stan@codesourcery.com>
747
748 * mi/mi-interp.c (mi_interpreter_init): Set raw_stdout from
749 gdb_stdout.
750
751 2012-06-05 Siddhesh Poyarekar <siddhesh@redhat.com>
752
753 * corefile.c (read_memory, read_stack, write_memory): Accept LEN
754 argument as ssize_t.
755 * gdbcore.h (read_memory, read_stack, write_memory): Likewise.
756 * remote.c (remote_write_bytes_aux, remote_write_bytes): Likewise.
757 * target.c (target_read_stack, target_write_memory)
758 (target_write_raw_memory): Likewise.
759 * target.h (target_read_stack, target_write_memory)
760 (target_write_raw_memory): Likewise.
761
762 2012-06-05 Jan Kratochvil <jan.kratochvil@redhat.com>
763
764 * symfile-mem.c: Change gdb_static_assert to ssize_t.
765 (target_read_memory_bfd): Cast gdb_assert LEN to ssize_t.
766 * target.c (target_read_memory): Change LEN to ssize_t.
767 * target.h (target_read_memory): Change LEN to ssize_t.
768
769 2012-06-05 Pedro Alves <palves@redhat.com>
770
771 PR backtrace/13866
772
773 * breakpoint.c (until_break_command): Only fetch the selected
774 frame after decode_line_1.
775
776 2012-06-05 Joakim Tjernlund <Joakim.Tjernlund@transmode.se>
777
778 * solib-svr4.c (enable_break): Don't fallback to setting the solib
779 event breakpoint at _start, __start or main if a program
780 interpreter is not found.
781
782 2012-06-05 Joel Brobecker <brobecker@adacore.com>
783
784 * windows-tdep.h (windows_iterate_over_objfiles_in_search_order):
785 Add declaration.
786 * windows-tdep.c: #include "objfiles.h".
787 (windows_iterate_over_objfiles_in_search_order): New function.
788 * amd64-windows-tdep.c (amd64_windows_init_abi): Set
789 iterate_over_objfiles_in_search_order gdbarch method to
790 windows_iterate_over_objfiles_in_search_order.
791 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Likewise.
792
793 2012-06-05 Joel Brobecker <brobecker@adacore.com>
794
795 * gdbarch.sh: Add generation of
796 "iterate_over_objfiles_in_search_order_cb_ftype" typedef in
797 gdbarch.h. Add include of "objfiles.h" in gdbarch.c.
798 (iterate_over_objfiles_in_search_order): New gdbarch method.
799 * gdbarch.h, gdbarch.c: Regenerate.
800 * objfiles.h (default_iterate_over_objfiles_in_search_order):
801 Add declaration.
802 * objfiles.c (default_iterate_over_objfiles_in_search_order):
803 New function.
804 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
805 out of lookup_symbol_aux_symtabs.
806 (lookup_symbol_aux_symtabs): Replace extracted-out code by
807 call to lookup_symbol_aux_objfile.
808 (struct global_sym_lookup_data): New type.
809 (lookup_symbol_global_iterator_cb): New function.
810 (lookup_symbol_global): Search for symbol using
811 gdbarch_iterate_over_objfiles_in_search_order and
812 lookup_symbol_global_iterator_cb.
813 * findvar.c (struct minsym_lookup_data): New type.
814 (minsym_lookup_iterator_cb): New function.
815 (default_read_var_value) [case LOC_UNRESOLVED]: Resolve the
816 symbol's address via gdbarch_iterate_over_objfiles_in_search_order
817 and minsym_lookup_iterator_cb.
818
819 2012-06-05 Joel Brobecker <brobecker@adacore.com>
820
821 Revert the following patch:
822 * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
823 try locating the symbol in the symbol's own objfile first, before
824 extending the search to all objfiles.
825 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
826 out of lookup_symbol_aux_symtabs.
827 (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
828 Replace extracted-out code by call to lookup_symbol_aux_objfile.
829 Do not search EXCLUDE_OBJFILE.
830 (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
831 (lookup_symbol_global): Search for matches in the block's objfile
832 first, before searching all other objfiles.
833
834 2012-06-05 Joel Brobecker <brobecker@adacore.com>
835
836 * breakpoint.c (find_condition_and_thread): Stop parsing
837 as soon as the first invalid keyword is found.
838
839 2012-06-05 Joel Brobecker <brobecker@adacore.com>
840
841 * copyright.py (EXCLUDE_LIST): Add 'gdb/CONTRIBUTE' to list.
842
843 2012-06-05 Joel Brobecker <brobecker@adacore.com>
844
845 * config/djgpp/djcheck.sh: Add copyright header.
846
847 2012-06-05 Joel Brobecker <brobecker@adacore.com>
848
849 * copyright.py (update_files, main): Fix path to update-copyright
850 script.
851
852 2012-06-05 Joel Brobecker <brobecker@adacore.com>
853
854 * copyright.py (MULTIPLE_COPYRIGHT_HEADERS): New constant.
855 (main): Add MULTIPLE_COPYRIGHT_HEADERS to the list of files
856 for which a reminder to update by hand is printed.
857
858 2012-06-04 Doug Evans <dje@google.com>
859
860 * buildsym.c (make_blockvector): Add comment.
861
862 2012-06-04 Pedro Alves <palves@redhat.com>
863
864 * arch-utils.c (default_gdb_signal_from_target): Delete.
865 * arch-utils.h (default_gdb_signal_from_target): Delete.
866 * corelow.c (core_open) <signal mapping>: Extended comment. Check
867 gdbarch_gdb_signal_from_target_p.
868 * gdbarch.sh (gdb_signal_from_target): Make it an M method (with
869 predicate).
870 * gdbarch.h: Regenerate.
871 * gdbarch.c: Regenerate.
872
873 2012-06-04 Pedro Alves <palves@redhat.com>
874
875 * gdbarch.sh (gdb_signal_from_target): Mention that the
876 implementation of the method must be host independent.
877 * gdbarch.h: Regenerate.
878
879 2012-06-04 Jan Kratochvil <jan.kratochvil@redhat.com>
880
881 * symfile-mem.c: 3 new gdb_static_assert for target_read_memory_bfd
882 parameters.
883 (target_read_memory_bfd): New function.
884 (symbol_file_add_from_memory): Use it.
885
886 2012-06-03 Doug Evans <dje@google.com>
887
888 * symtab.c (lookup_global_symbol_from_objfile): Only scan blockvector
889 of primary symtab.
890 (basic_lookup_transparent_type): Ditto.
891
892 * objfiles.h (ALL_OBJFILE_PRIMARY_SYMTABS): New macro.
893 (ALL_PRIMARY_SYMTABS): Use it.
894 (ALL_PSPACE_PRIMARY_SYMTABS): Ditto.
895 * dwarf2read.c (dw2_find_symbol_file): Ditto.
896 * linespec.c (iterate_over_all_matching_symtabs): Ditto.
897 * symtab.c (lookup_symbol_aux_objfile): Ditto.
898 (basic_lookup_transparent_type): Ditto.
899
900 2012-06-02 Sergio Durigan Junior <sergiodj@redhat.com>
901
902 * symtab.c (symbol_demangled_name): New variable `dem_name'. Use
903 it to optimize resolution of demangled name.
904
905 2012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
906
907 * configure.ac (development): Define new variable.
908 Call AC_CHECK_LIB for mcheck if $development.
909 (ERROR_ON_WARNING): Enable it by default only if $development.
910 * config.in: Regenerate.
911 * configure: Regenerate.
912
913 2012-06-01 Siddhesh Poyarekar <siddhesh@redhat.com>
914
915 * target.c (target_read_memory): Make LEN argument as size_t.
916 * target.h (target_read_memory): Likewise.
917
918 2012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
919
920 * tilegx-linux-tdep.c (tilegx_l): Use ULL for 64-bit values.
921
922 2012-05-31 Edjunior Machado <emachado@linux.vnet.ibm.com>
923
924 * ppc-linux-nat.c (have_ptrace_booke_interface): Disable ptrace
925 BookE interface for PowerPC server processors if not available
926 in the Linux Kernel.
927
928 2012-05-31 Keith Seitz <keiths@redhat.com>
929
930 * linespec.c (decode_objc): Add cleanup to free
931 INFO.FILE_SYMTABS.
932 (find_linespec_symbols): Add cleanup to free CLASSES.
933 * symfile.c (find_separate_debug_file_by_debuglink): Add
934 cleanup to free DEBUGLINK.
935 * ui-out.c (clear_header_list): No need to check if
936 HEADER_NEXT.COLHDR is NULL.
937 Free HEADER_NEXT.COL_NAME.
938
939 2012-05-31 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
940
941 * ada-lang.c (standard_lookup): Prevent uninitialized variable
942 warning.
943
944 2012-05-30 Jeff Kenton <jkenton@tilera.com>
945
946 * configure.host (gdb_host_cpu): Handle tilegx*.
947 (gdb_host): Handle tilegx-*-linux*.
948 * tilegx-linux-nat.c: New file.
949 * config/tilegx/linux.mh: New file.
950
951 2012-05-30 Jeff Kenton <jkenton@tilera.com>
952
953 * Makefile.in (ALL_TARGET_OBJS): Add tilegx-tdep.o and
954 tilegx-linux-tdep.o.
955 (ALLDEPFILES): Add tilegx-linux-nat.c, tilegx-tdep.c and
956 tilegx-linux-tdep.c.
957 * configure.tgt: Handle tilegx-*-linux*.
958 * tilegx-tdep.h: New file.
959 * tilegx-tdep.c: New file.
960 * tilegx-linux-tdep.c: New file.
961 * regformats/reg-tilegx.dat: New file.
962
963 2012-05-30 Edjunior Machado <emachado@linux.vnet.ibm.com>
964
965 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): fix
966 accounting of hw watchpoints on ppc.
967
968 2012-05-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
969
970 * source.c (openp): Expand tilde in path entries.
971
972 2012-05-29 Doug Evans <dje@google.com>
973
974 * buildsym.c (block_compar): Fix comment.
975 (end_symtab): Fix and clarify some comments.
976
977 * stabsread.h (cleanup_undefined_stabs_types): Renamed from
978 cleanup_undefined_types.
979 * stabsread.c (cleanup_undefined_stabs_types): Ditto.
980 All callers updated.
981
982 2012-05-29 Tom Tromey <tromey@redhat.com>
983
984 * symfile.c (symfile_bfd_open): Don't close desc if bfd_fopen
985 fails.
986 * solib.c (solib_bfd_fopen): Don't close fd if bfd_fopen fails.
987 * exec.c (exec_file_attach): Don't close scratch_chan if bfd_fopen
988 fails.
989 * dwarf2read.c (try_open_dwo_file): Don't close fd if bfd_fopen
990 fails.
991
992 2012-05-29 Tristan Gingold <gingold@adacore.com>
993
994 * solib-darwin.c (dyld_all_image_addr, dyld_all_image): Move into...
995 (struct darwin_info): ... New struct.
996 (solib_darwin_pspace_data): New variable.
997 (darwin_pspace_data_cleanup): New function.
998 (get_darwin_info): Likewise.
999 (darwin_dyld_version_ok, darwin_load_image_infos)
1000 (darwin_solib_get_all_image_info_addr_at_init)
1001 (darwin_solib_read_all_image_info_addr): Add info argument.
1002 Adjust code.
1003 (darwin_current_sos): Use per pspace structure.
1004 (darwin_solib_create_inferior_hook): Likewise.
1005 (darwin_clear_solib): Likewise.
1006 (_initialize_darwin_solib): Initialize solib_darwin_pspace_data.
1007
1008 2012-05-28 Pedro Alves <palves@redhat.com>
1009
1010 * infrun.c (wait_for_inferior): Move ecss and ecs locals to the
1011 block that uses them. Clear ecss before handling each event.
1012
1013 2012-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
1014
1015 * solib-svr4.c (svr4_current_sos): New comment on
1016 svr4_current_sos_via_xfer_libraries fall back.
1017
1018 2012-05-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1019
1020 * psymtab.c (lookup_symbol_aux_psymtabs): New variable stab_best. Use
1021 it as a fallback for TYPE_IS_OPAQUE.
1022 * symfile.h (struct quick_symbol_functions): Mention TYPE_OPAQUE
1023 symbols for lookup_symbol.
1024
1025 2012-05-24 John Steele Scott <toojays@toojays.net>
1026
1027 PR symtab/13277: Resolving opaque structures in ICC generated binaries.
1028 * dwarf2read.c (struct dwarf2_cu) <producer_is_icc>: New field.
1029 (producer_is_gxx_lt_4_6): Move the checking and caching to...
1030 (check_producer): ... this new function, which also checks for ICC
1031 and caches the result.
1032 (producer_is_icc): New function.
1033 (read_structure_type): Don't set TYPE_STUB_SUPPORTED if the
1034 producer was ICC.
1035
1036 2012-05-24 Pedro Alves <palves@redhat.com>
1037
1038 PR gdb/7205
1039
1040 * arch-utils.c (default_gdb_signal_to_host): Rename to ...
1041 (default_gdb_signal_to_target): ... this. Add comment.
1042 (default_gdb_signal_from_host): Rename to ...
1043 (default_gdb_signal_from_target): ... this. Add comment.
1044 * arch-utils.h (default_gdb_signal_to_host): Rename to ...
1045 (default_gdb_signal_to_target): ... this.
1046 (default_gdb_signal_from_host): Rename to ...
1047 (default_gdb_signal_from_target): ... this.
1048 * corelow.c (core_open): Adjust to naming change. Replace comment.
1049 * gdbarch.sh (gdb_signal_from_host): Rename to ...
1050 (gdb_signal_from_target): ... this. Adjust to
1051 default_gdb_signal_from_host naming change. Extend comment.
1052 (gdb_signal_to_host): Rename to ...
1053 (gdb_signal_to_target): ... this. Adjust to
1054 default_gdb_signal_to_host naming change.
1055 * gdbarch.h, gdbarch.c: Renegerate.
1056
1057 2012-05-24 Pedro Alves <palves@redhat.com>
1058
1059 PR gdb/7205
1060
1061 Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
1062
1063 2012-05-24 Pedro Alves <palves@redhat.com>
1064
1065 PR gdb/7205
1066
1067 Replace target_signal with gdb_signal throughout.
1068
1069 2012-05-24 Pedro Alves <palves@redhat.com>
1070
1071 PR tui/14159
1072
1073 * tui/tui-hooks.c (tui_query_hook): Pre-compute the question
1074 string, instead of reusing the va_list argument.
1075
1076 2012-05-24 Tom Tromey <tromey@redhat.com>
1077
1078 * cp-support.h (cp_finalize_namespace, cp_initialize_namespace):
1079 Remove.
1080
1081 2012-05-23 Doug Evans <dje@google.com>
1082
1083 * symtab.c (search_symbols): Formatting fixes.
1084 (print_symbol_info): Formatting fixes.
1085
1086 * dwarf2-frame.c (execute_cfa_program): Update to handle long long ->
1087 int64_t change to leb128 API.
1088 (read_encoded_value, decode_frame_entry_1): Ditto.
1089 * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Ditto.
1090 (dwarf_block_to_dwarf_reg, dwarf_block_to_dwarf_reg_deref): Ditto.
1091 (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
1092 (execute_stack_op): Ditto.
1093 * dwarf2expr.h (gdb_read_uleb128, gdb_read_sleb128): Ditto.
1094 (safe_read_uleb128, safe_read_sleb128): Ditto.
1095 * dwarf2loc.c (decode_debug_loc_dwo_addresses): Ditto.
1096 (dwarf2_compile_expr_to_ax): Ditto.
1097 (locexpr_describe_location_piece): Ditto.
1098 (disassemble_dwarf_expression): Ditto.
1099 (locexpr_describe_location_1): Ditto.
1100
1101 2012-05-23 Stan Shebs <stan@codesourcery.com>
1102 Kwok Cheung Yeung <kcy@codesourcery.com>
1103
1104 * Makefile.in (SUBDIR_MI_OBS): Add mi-cmd-info.o.
1105 (SUBDIR_MI_SRCS): Add mi-cmd-info.c.
1106 (mi-cmd-info.o): New rule.
1107 * osdata.h (info_osdata_command): New declaration.
1108 * osdata.c (info_osdata_command): Change to non-static.
1109 * mi/mi-cmds.h (mi_cmd_info_os): New declaration.
1110 * mi/mi-cmds.c (mi_cmds): Add -info-os MI command.
1111 * mi/mi-cmd-info.c: New file.
1112
1113 2012-05-23 Doug Evans <dje@google.com>
1114
1115 * symtab.c (search_symbols): Pass NULL for file_matcher to
1116 expand_symtabs_matching if there are no files to match.
1117
1118 * gdbtypes.c (lookup_typename): Simplify.
1119
1120 2012-05-23 Pedro Alves <palves@redhat.com>
1121
1122 * arch-utils.h (default_target_signal_to_host): Delete.
1123 * arch-utils.c (default_target_signal_to_host): Delete.
1124 * gdbarch.sh (target_signal_to_host): Remove.
1125 * gdbarch.h, gdbarch.c: Regenerate.
1126
1127 2012-05-22 Doug Evans <dje@google.com>
1128
1129 * dwarf2-frame.c (struct dwarf2_cie): Make initial_instructions, end
1130 "const gdb_byte *".
1131 (struct dwarf2_fde): Make instructions, end "const gdb_byte *".
1132 (execute_cfa_program): Update to match API of leb128 functions.
1133 (read_1_byte, read_4_bytes, read_8_bytes): Make buf parameter
1134 "const gdb_byte *".
1135 (read_unsigned_leb128, read_signed_leb128): Delete.
1136 (read_initial_length): Change type of buf argument to
1137 "const gdb_byte *".
1138 (read_encoded_value): Update to match API of leb128 functions.
1139 (decode_frame_entry): Change result to "const gdb_byte *", and
1140 similarly for "start" parameter.
1141 (decode_frame_entry_1): Ditto. Use new leb128 reader functions.
1142 (dwarf2_build_frame_info): Change local frame_ptr to
1143 "const gdb_byte *".
1144 * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Replaces
1145 read_uleb128, read_sleb128. All callers updated.
1146 (safe_skip_leb128): New function.
1147 (dwarf_block_to_dwarf_reg): Update to match API of leb128 functions.
1148 Call gdb_read_uleb128, gdb_skip_leb128 instead of read_uleb128.
1149 (dwarf_block_to_dwarf_reg_deref): Update to match API of leb128
1150 functions. Call gdb_read_uleb128, gdb_read_sleb128 instead of
1151 read_uleb128, read_sleb128.
1152 (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
1153 (execute_stack_op): Update to match API of leb128 functions.
1154 * dwarf2expr.h: #include "leb128.h".
1155 (read_uleb128, read_sleb128): Delete.
1156 (gdb_read_uleb128, gdb_read_sleb128, gdb_skip_leb128): New functions.
1157 (safe_read_uleb128, safe_read_sleb128, safe_skip_leb128): Declare.
1158 * dwarf2loc.c (debug_loc_kind): New enum.
1159 (decode_debug_loc_addresses): New function.
1160 (decode_debug_loc_dwo_addresses): New function.
1161 (dwarf2_find_location_expression): Rewrite.
1162 (dwarf2_compile_expr_to_ax): Update to match API of leb128 functions.
1163 (locexpr_describe_location_piece): Ditto.
1164 (disassemble_dwarf_expression): Ditto.
1165 (locexpr_describe_location_1): Ditto.
1166 (loclist_describe_location): Rewrite.
1167 * dwarf2loc.h (dwarf2_loclist_baton): New member "from_dwo".
1168 * dwarf2read.c (die_reader_specs): New member "buffer_end".
1169 (dwarf2_section_buffer_overflow_complaint): Renamed from
1170 dwarf2_macros_too_long_complaint. All callers updated.
1171 (skip_leb128): Delete.
1172 (init_cu_die_reader): Initialize reader->buffer_end.
1173 (skip_one_die): Replace call to skip_leb128 with safe_skip_leb128.
1174 (skip_form_bytes): New arg buffer_end. All callers updated.
1175 Replace call to skip_leb128 with gdb_skip_leb128.
1176 (skip_unknown_opcode): New arg mac_end. All callers updated.
1177 (fill_in_loclist_baton): Initialize baton->from_dwo.
1178
1179 2012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
1180
1181 * mips-linux-nat.c (mips_linux_read_description): Use a more
1182 verbose error message.
1183
1184 2012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
1185
1186 * NEWS: Add MIPS/Linux DSP support.
1187 * mips-linux-tdep.c: Document post-2.6.12 o32 sigcontext layout.
1188 (SIGCONTEXT_DSPCTL): New macro.
1189 (SIGCONTEXT_HI1, SIGCONTEXT_LO1): Likewise.
1190 (SIGCONTEXT_HI2, SIGCONTEXT_LO2): Likewise.
1191 (SIGCONTEXT_HI3, SIGCONTEXT_LO3): Likewise.
1192 (N64_SIGCONTEXT_HI1, N64_SIGCONTEXT_HI2): Likewise.
1193 (N64_SIGCONTEXT_HI3): Likewise.
1194 (N64_SIGCONTEXT_LO1, N64_SIGCONTEXT_LO2): Likewise.
1195 (N64_SIGCONTEXT_LO3): Likewise.
1196 (N64_SIGCONTEXT_DSPCTL): Likewise.
1197 (N64_SIGCONTEXT_FPCSR): Clarify definition.
1198 (mips_linux_o32_sigframe_init): Handle DSP registers.
1199 (mips_linux_n32n64_sigframe_init): Likewise.
1200
1201 2012-05-22 Pierre Muller <muller@ics.u-strasbg.fr>
1202
1203 * common/buffer.c (buffer_grow): ARI fix: Remove unneeded
1204 call to abort.
1205
1206 2012-05-22 Pedro Alves <palves@redhat.com>
1207
1208 * target.h (store_waitstatus): Move declaration ...
1209 * inf-child.h (store_waitstatus): ... here.
1210 * target.c: Move inclusion of gdb_wait.h, and ...
1211 (store_waitstatus): ... this ...
1212 * inf-child.c: ... here.
1213 * linux-nat.c: Include inf-child.h.
1214 * rs6000-nat.c: Include inf-child.h.
1215 * spu-linux-nat.c: Include inf-child.h.
1216
1217 2012-05-22 Pierre Muller <muller@ics.u-strasbg.fr>
1218
1219 * tracepoint.c (start_tracing): Add missing i18n markup.
1220 (stop_tracing, set_trace_user): Ditto.
1221 (set_trace_notes, set_trace_stop_notes): Ditto.
1222
1223 2012-05-21 Tom Tromey <tromey@redhat.com>
1224
1225 PR c++/7173:
1226 * gnu-v3-abi.c (gnuv3_baseclass_offset): Return early for Java
1227 types.
1228 * value.h (value_cast_pointers): Update.
1229 * valops.c (value_cast_pointers): Add 'subclass_check' argument.
1230 (value_cast): Update.
1231 (update_search_result): New function.
1232 (do_search_struct_field): New, from search_struct_field. Check
1233 for ambiguous results.
1234 (search_struct_field): Rewrite.
1235 * infcall.c (value_arg_coerce): Update.
1236 * eval.c (evaluate_subexp_standard) <STRUCTOP_MEMBER>: Use
1237 value_cast_pointers.
1238 * ada-lang.c (ada_convert_actual): Update.
1239
1240 2012-05-21 Tom Tromey <tromey@redhat.com>
1241
1242 * macroexp.c (macro_stringify): Terminate the string.
1243
1244 2012-05-20 Jan Kratochvil <jan.kratochvil@redhat.com>
1245
1246 * NEWS (--with-auto-load-dir): Prepend $debugdir to the default path.
1247 Describe it.
1248 * auto-load.c (auto_load_expand_dir_vars): New function.
1249 (auto_load_safe_path_vec_update): Use it, remove the
1250 substitute_path_component call thanks to it.
1251 (auto_load_objfile_script): Remove the debug_file_directory processing.
1252 Use auto_load_expand_dir_vars, remove the substitute_path_component
1253 call thanks to it.
1254 * configure: Regenerate.
1255 * configure.ac (--with-auto-load-dir): Prepend $debugdir to the default
1256 path. Escape $ also for $debugdir.
1257 (--with_auto_load_safe_path): Escape $ also for $debugdir.
1258 * utils.c (substitute_path_component): Accept also DIRNAME_SEPARATOR.
1259
1260 2012-05-20 Doug Evans <dje@google.com>
1261
1262 * dwarf2read.c (recursively_find_pc_sect_symtab): Initialize "s"
1263 before use. Check for symtab->includes == NULL before scanning it.
1264
1265 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
1266
1267 * mips-tdep.c (mips_reg3_to_reg): Optimize storage.
1268
1269 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
1270
1271 * NEWS: Add microMIPS support and "set mips compression",
1272 "show mips compression" commands.
1273 * mips-tdep.h (mips_isa): New enum.
1274 (gdbarch_tdep): Add mips_isa.
1275 (mips_pc_is_mips16): Update prototype.
1276 (mips_pc_is_mips, mips_pc_is_micromips): New prototypes.
1277 * mips-tdep.c (mips_compression_mips16): New variable.
1278 (mips_compression_micromips): Likewise.
1279 (mips_compression_strings): Likewise.
1280 (mips_compression_string): Likewise.
1281 (is_mips16_isa, is_micromips_isa): New functions.
1282 (is_mips16_addr): Rename to...
1283 (is_compact_addr): ... this.
1284 (unmake_mips16_addr): Likewise to...
1285 (unmake_compact_addr): ... this.
1286 (make_mips16_addr): Likewise to...
1287 (make_compact_addr): ... this.
1288 (is_mips_addr, is_mips16_addr, is_micromips_addr): New
1289 functions.
1290 (mips_elf_make_msymbol_special): Handle microMIPS code.
1291 (msymbol_is_special): Rename to...
1292 (msymbol_is_mips16): ... this.
1293 (mips_make_symbol_special, mips_pc_is_mips16): Update
1294 accordingly.
1295 (msymbol_is_mips, msymbol_is_micromips): New functions.
1296 (mips16_to_32_reg): Rename to...
1297 (mips_reg3_to_reg): ... this.
1298 (mips_pc_is_mips, mips_pc_is_micromips): New functions.
1299 (mips_pc_isa): Likewise.
1300 (mips_read_pc, mips_unwind_pc, mips_write_pc): Handle microMIPS
1301 code.
1302 (mips_fetch_instruction): Pass return status instead of printing
1303 an error message if requested. Handle microMIPS code. Bail out
1304 on an invalid ISA.
1305 (micromips_op): New macro.
1306 (b0s4_imm, b0s5_imm, b0s5_reg, b0s7_imm, b0s10_imm): Likewise.
1307 (b1s9_imm, b2s3_cc, b4s2_regl, b5s5_op, b5s5_reg): Likewise.
1308 (b6s4_op, b7s3_reg): Likewise.
1309 (b0s6_op, b0s11_op, b0s12_imm, b0s16_imm, b0s26_imm): Likewise.
1310 (b6s10_ext, b11s5_reg, b12s4_op): Likewise.
1311 (mips_insn_size): New function.
1312 (mips32_next_pc): Update mips_fetch_instruction call.
1313 (micromips_relative_offset7): New function.
1314 (micromips_relative_offset10): Likewise.
1315 (micromips_relative_offset16): Likewise.
1316 (micromips_pc_insn_size): Likewise.
1317 (micromips_bc1_pc): Likewise.
1318 (micromips_next_pc): Likewise.
1319 (unpack_mips16): Update mips_fetch_instruction call.
1320 (extended_mips16_next_pc): Update according to change to
1321 mips16_to_32_reg.
1322 (mips_next_pc): Update mips_pc_is_mips16 call. Handle microMIPS
1323 code.
1324 (mips16_scan_prologue): Update mips_fetch_instruction call.
1325 Update according to change to mips16_to_32_reg.
1326 (mips_insn16_frame_sniffer): Update mips_pc_is_mips16 call.
1327 (mips_insn16_frame_base_sniffer): Likewise.
1328 (micromips_decode_imm9): New function.
1329 (micromips_scan_prologue): Likewise.
1330 (mips_micro_frame_cache): Likewise.
1331 (mips_micro_frame_this_id): Likewise.
1332 (mips_micro_frame_prev_register): Likewise.
1333 (mips_micro_frame_sniffer): Likewise.
1334 (mips_micro_frame_unwind): New variable.
1335 (mips_micro_frame_base_address): New function.
1336 (mips_micro_frame_base): New variable.
1337 (mips_micro_frame_base_sniffer): New function.
1338 (mips32_scan_prologue): Update mips_fetch_instruction call.
1339 (mips_insn32_frame_sniffer): Check for the standard MIPS ISA
1340 rather than for MIPS16.
1341 (mips_insn32_frame_base_sniffer): Likewise.
1342 (mips_addr_bits_remove): Handle microMIPS code.
1343 (deal_with_atomic_sequence): Rename to...
1344 (mips_deal_with_atomic_sequence): ... this. Update the type
1345 of the variable used to hold an instruction. Remove the ISA bit
1346 check. Update mips_fetch_instruction call.
1347 (micromips_deal_with_atomic_sequence): New function.
1348 (deal_with_atomic_sequence): Likewise.
1349 (mips_about_to_return): Handle microMIPS code. Update
1350 mips_fetch_instruction call.
1351 (heuristic_proc_start): Check for the standard MIPS ISA rather
1352 than for MIPS16. Update mips_pc_is_mips16 and
1353 mips_fetch_instruction calls. Handle microMIPS code.
1354 (mips_push_dummy_code): Handle microMIPS code.
1355 (mips_eabi_push_dummy_call): Likewise.
1356 (mips_o32_return_value): Update mips_pc_is_mips16 call.
1357 (mips_o64_push_dummy_call): Handle microMIPS code.
1358 (mips_o64_return_value): Update mips_pc_is_mips16 call.
1359 (is_delayed): Remove function.
1360 (mips_single_step_through_delay): Replace the call to is_delayed
1361 with mips32_instruction_has_delay_slot. Correct MIPS16 handling.
1362 Handle microMIPS code.
1363 (mips_skip_prologue): Update mips_pc_is_mips16 call. Handle
1364 microMIPS code.
1365 (mips32_in_function_epilogue_p): Update mips_fetch_instruction
1366 call.
1367 (micromips_in_function_epilogue_p): New function.
1368 (mips16_in_function_epilogue_p): Update mips_fetch_instruction
1369 call.
1370 (mips_in_function_epilogue_p): Update mips_pc_is_mips16 call.
1371 Handle microMIPS.
1372 (gdb_print_insn_mips): Likewise.
1373 (mips_breakpoint_from_pc): Likewise.
1374 (mips_remote_breakpoint_from_pc): New function.
1375 (mips32_instruction_has_delay_slot): Simplify making use of the
1376 updated mips_fetch_instruction interface.
1377 (micromips_instruction_has_delay_slot): New function.
1378 (mips16_instruction_has_delay_slot): Simplify making use of the
1379 updated mips_fetch_instruction interface.
1380 (mips_adjust_breakpoint_address): Check for the standard MIPS
1381 ISA rather than for MIPS16 ISA. Update for unmake_compact_addr
1382 calls. Handle microMIPS code.
1383 (mips_get_mips16_fn_stub_pc): Update mips_fetch_instruction call.
1384 (mips_skip_trampoline_code): Handle microMIPS code.
1385 (global_mips_compression): New function.
1386 (mips_gdbarch_init): Handle the compressed ISA setting from ELF
1387 file flags. Register the microMIPS remote breakpoint handler
1388 and heuristic frame unwinder.
1389 (show_mips_compression): New function.
1390 (_initialize_mips_tdep): Add the "set mips compression" and
1391 "show mips compression" commands.
1392
1393 2012-05-18 Sergio Durigan Junior <sergiodj@redhat.com>
1394
1395 * ada-lang.c:
1396 * ada-tasks.c:
1397 * ada-varobj.c:
1398 * amd64-darwin-tdep.c:
1399 * arm-symbian-tdep.c:
1400 * arm-tdep.c:
1401 * avr-tdep.c:
1402 * ax-gdb.c:
1403 * bfin-linux-tdep.c:
1404 * breakpoint.c:
1405 * c-valprint.c:
1406 * cli/cli-cmds.c:
1407 * coffread.c:
1408 * cp-support.c:
1409 * cris-tdep.c:
1410 * dwarf2-frame-tailcall.c:
1411 * dwarf2-frame.c:
1412 * dwarf2expr.c:
1413 * dwarf2loc.c:
1414 * dwarf2read.c:
1415 * elfread.c:
1416 * eval.c:
1417 * expprint.c:
1418 * f-valprint.c:
1419 * frv-tdep.c:
1420 * h8300-tdep.c:
1421 * hppa-hpux-tdep.c:
1422 * hppa-tdep.c:
1423 * hppanbsd-tdep.c:
1424 * i386-nto-tdep.c:
1425 * i386-tdep.c:
1426 * i387-tdep.c:
1427 * ia64-tdep.c:
1428 * jit.c:
1429 * linespec.c:
1430 * linux-tdep.c:
1431 * lm32-tdep.c:
1432 * m2-valprint.c:
1433 * m32c-tdep.c:
1434 * m32r-rom.c:
1435 * m32r-tdep.c:
1436 * m68k-tdep.c:
1437 * m68klinux-tdep.c:
1438 * mi/mi-main.c:
1439 * microblaze-tdep.c:
1440 * mips-linux-tdep.c:
1441 * mips-tdep.c:
1442 * mn10300-tdep.c:
1443 * p-valprint.c:
1444 * parse.c:
1445 * ppc-linux-tdep.c:
1446 * ppc-sysv-tdep.c:
1447 * printcmd.c:
1448 * python/py-finishbreakpoint.c:
1449 * python/py-inferior.c:
1450 * python/py-infthread.c:
1451 * python/py-type.c:
1452 * python/python.c:
1453 * remote-fileio.c:
1454 * remote-m32r-sdi.c:
1455 * remote-mips.c:
1456 * reverse.c:
1457 * rl78-tdep.c:
1458 * rs6000-aix-tdep.c:
1459 * rs6000-tdep.c:
1460 * s390-tdep.c:
1461 * score-tdep.c:
1462 * sh64-tdep.c:
1463 * skip.c:
1464 * solib-darwin.c:
1465 * solib-dsbt.c:
1466 * solib-frv.c:
1467 * sparc-tdep.c:
1468 * spu-multiarch.c:
1469 * spu-tdep.c:
1470 * stack.c:
1471 * symfile.c:
1472 * symtab.c:
1473 * tic6x-tdep.c:
1474 * tracepoint.c:
1475 * v850-tdep.c:
1476 * valarith.c:
1477 * valprint.c:
1478 * value.c:
1479 * xcoffread.c:
1480 * xtensa-tdep.c:
1481 * ada-lang.c:
1482 * ada-tasks.c:
1483 * ada-varobj.c:
1484 * amd64-darwin-tdep.c:
1485 * arm-symbian-tdep.c:
1486 * arm-tdep.c: Delete unused variables.
1487
1488 2012-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
1489
1490 Rename $ddir to $datadir.
1491 * NEWS (--with-auto-load-dir): Rename $ddir to $datadir.
1492 * auto-load.c (auto_load_safe_path_vec_update)
1493 (auto_load_gdb_datadir_changed, auto_load_objfile_script): Likewise.
1494 * configure: Regenerate.
1495 * configure.ac (--with-auto-load-dir, --with-auto-load-safe-path):
1496 Likewise. Remove the 'use $ddir' help string.
1497
1498 2012-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
1499
1500 * auto-load.c (show_auto_load_safe_path): Accept any combination of
1501 DIRNAME_SEPARATOR and IS_DIR_SEPARATOR for wild-match.
1502
1503 2012-05-18 Tom Tromey <tromey@redhat.com>
1504
1505 PR exp/13907:
1506 * valprint.h (struct value_print_options) <symbol_print>: New
1507 field.
1508 * valprint.c (user_print_options): Add default for symbol_print.
1509 (show_symbol_print): New function.
1510 (generic_val_print): Respect symbol_print.
1511 (_initialize_valprint): Add "print symbol" setting.
1512 * f-valprint.c (f_val_print): Respect symbol_print.
1513 * c-valprint.c (c_val_print): Respect symbol_print.
1514 * NEWS: Update.
1515 * printcmd.c (print_address_symbolic): Return int. Ignore some
1516 zero-size symbols.
1517 (print_address_demangle): Return int.
1518 * defs.h: (print_address_symbolic): Return int.
1519 * value.h (print_address_demangle): Return int.
1520
1521 2012-05-18 Tom Tromey <tromey@redhat.com>
1522
1523 * valprint.c (val_print_string): Don't print leading space.
1524 * p-valprint.c (pascal_val_print) <TYPE_CODE_PTR>: Optionally
1525 print space before string or vtbl.
1526 * m2-valprint.c (print_unpacked_pointer): Optionally print space
1527 before string.
1528 * jv-valprint.c (java_value_print): Print space before string.
1529 * go-valprint.c (print_go_string): Print space before string.
1530 * f-valprint.c (f_val_print) <TYPE_CODE_PTR>: Optionally print
1531 space before string.
1532 * c-valprint.c (c_val_print) <TYPE_CODE_PTR>: Optionally print
1533 space before string or vtbl.
1534 * auxv.c (fprint_target_auxv): Print space after address.
1535
1536 2012-05-18 Tom Tromey <tromey@redhat.com>
1537
1538 * printcmd.c (print_address_demangle): Remove special case for 0.
1539
1540 2012-05-18 Tom Tromey <tromey@redhat.com>
1541
1542 * printcmd.c (print_address_demangle): Add 'opts' argument.
1543 * p-valprint.c (pascal_val_print): Update.
1544 * jv-valprint.c (java_val_print): Update.
1545 * value.h: Update.
1546 * valprint.c (generic_val_print): Update.
1547 (print_function_pointer_address): Add 'options' argument. Remove
1548 'addressprint' argument. Update.
1549 * m2-valprint.c (print_unpacked_pointer): Update.
1550 * gnu-v3-abi.c (print_one_vtable): Update.
1551 (gnuv3_print_method_ptr): Update.
1552 * f-valprint.c (f_val_print): Update.
1553 * cp-valprint.c (cp_print_value_fields): Update.
1554 * valprint.h (print_function_pointer_address): Update.
1555 * c-valprint.c (c_val_print): Update.
1556
1557 2012-05-18 Tom Tromey <tromey@redhat.com>
1558
1559 * psymtab.c (find_pc_sect_symtab_from_partial): Return the symtab
1560 directly corresponding to the found psymtab.
1561 * dwarf2read.c (recursively_find_pc_sect_symtab): New function.
1562 (dw2_find_pc_sect_symtab): Use it.
1563 * block.h (blockvector_contains_pc): Declare.
1564 * block.c (find_block_in_blockvector): New function.
1565 (blockvector_for_pc_sect): Use it.
1566 (blockvector_contains_pc): New function.
1567
1568 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
1569
1570 * mips-tdep.h (mips_write_pc): New prototype.
1571 * mips-tdep.c (mips_write_pc): Make external, add description.
1572 * mips-linux-tdep.c (mips_linux_write_pc): Use mips_write_pc,
1573 add description.
1574
1575 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
1576
1577 * mips-tdep.c (mips_read_pc): Use gdbarch_pc_regnum instead of
1578 mips_regnum->pc.
1579 (mips_unwind_pc, mips_write_pc): Likewise.
1580 (mips_gdbarch_init): Remove a comment on gdbarch_pc_regnum and
1581 gdbarch_read_pc.
1582
1583 2012-05-17 Joel Brobecker <brobecker@adacore.com>
1584
1585 * procfs.c (procfs_find_new_threads, procfs_pid_to_str,
1586 proc_warn, proc_error, proc_get_status, proc_flags,
1587 proc_why, proc_what, proc_nsysarg, proc_sysargs,
1588 proc_set_run_on_last_close, proc_unset_run_on_last_close,
1589 proc_unset_inherit_on_fork, proc_set_async, proc_unset_async,
1590 proc_stop_process, proc_wait_for_stop, proc_run_process,
1591 proc_set_traced_signals, proc_set_traced_faults,
1592 proc_set_traced_sysentry, proc_set_traced_sysexit,
1593 proc_set_held_signals, proc_get_held_signals,
1594 proc_get_traced_signals, proc_get_traced_faults,
1595 proc_get_traced_sysentry, proc_get_traced_sysexit,
1596 proc_clear_current_fault, proc_set_current_signal,
1597 proc_clear_current_signal, proc_get_gregs, proc_get_fpregs,
1598 proc_set_gregs, proc_set_fpregs, proc_kill, proc_parent_pid,
1599 proc_get_nthreads, proc_get_nthreads, proc_get_nthreads,
1600 proc_get_current_thread, proc_get_current_thread,
1601 proc_get_current_thread, proc_update_threads,
1602 proc_update_threads, proc_update_threads, proc_update_threads,
1603 proc_iterate_over_threads, procfs_find_new_threads,
1604 procfs_pid_to_str): Make static. Remove advance declaration.
1605 (proc_cursig): Make static. Conditionalized defintion on
1606 PROCFS_DONT_PIOCSSIG_CURSIG being defined.
1607 (proc_syscall, proc_set_kill_on_last_close,
1608 proc_unset_kill_on_last_close, proc_set_inherit_on_fork,
1609 proc_get_pending_signals, proc_get_signal_actions,
1610 proc_trace_signal, proc_ignore_signal): Delete.
1611
1612 2012-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
1613
1614 * coffread.c (cs_section_address): Passing proper argument for
1615 `bfd_get_section_vma'.
1616 * dwarf2read.c (dwarf2_locate_sections): Likewise, for
1617 `bfd_get_section_flags'.
1618 * remote.c (remote_trace_set_readonly_regions): Likewise, for
1619 `bfd_get_section_vma'.
1620
1621 2012-05-16 Tom Tromey <tromey@redhat.com>
1622
1623 PR macros/13205:
1624 * macrotab.h: (macro_define_special): Declare.
1625 (enum macro_special_kind): New.
1626 (struct macro_definition) <argc, replacement>: Update comments.
1627 * macrotab.c (new_macro_definition): Unconditionally set 'argc'.
1628 (macro_define_object_internal): New function.
1629 (macro_define_object): Use it.
1630 (macro_define_special): New function.
1631 (fixup_definition): New function.
1632 (macro_lookup_definition, foreach_macro_in_scope)
1633 (foreach_macro): Use fixup_definition.
1634 * macroexp.h (macro_stringify): Declare.
1635 * macroexp.c (free_buffer_return_text): New function.
1636 (stringify): Constify "arg".
1637 (macro_stringify): New function.
1638 * dwarf2read.c (macro_start_file): Call macro_define_special.
1639
1640 2012-05-16 Maciej W. Rozycki <macro@codesourcery.com>
1641 Maciej W. Rozycki <macro@mips.com>
1642
1643 * breakpoint.h (bp_location): Add related_address member.
1644 * inferior.h (get_return_value): Take a pointer to struct value
1645 instead of struct type for the function requested.
1646 * value.h (using_struct_return): Likewise.
1647 * gdbarch.sh (return_value): Take a pointer to struct value
1648 instead of struct type for the function requested.
1649 * breakpoint.c (set_breakpoint_location_function): Initialize
1650 related_address for bp_gnu_ifunc_resolver breakpoints.
1651 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Pass the
1652 requested function's address to gdbarch_return_value.
1653 * eval.c (evaluate_subexp_standard): Pass the requested
1654 function's address to using_struct_return.
1655 * infcall.c (call_function_by_hand): Pass the requested
1656 function's address to using_struct_return and
1657 gdbarch_return_value.
1658 * infcmd.c (get_return_value): Take a pointer to struct value
1659 instead of struct type for the function requested.
1660 (print_return_value): Update accordingly.
1661 (finish_command_continuation): Likewise.
1662 * stack.c (return_command): Pass the requested function's
1663 address to using_struct_return and gdbarch_return_value.
1664 * value.c (using_struct_return): Take a pointer to struct value
1665 instead of struct type for the function requested. Pass the
1666 requested function's address to gdbarch_return_value.
1667 * python/py-finishbreakpoint.c (finish_breakpoint_object):
1668 New function_value member, replacing function_type.
1669 (bpfinishpy_dealloc): Update accordingly.
1670 (bpfinishpy_pre_stop_hook): Likewise.
1671 (bpfinishpy_init): Likewise. Record the requested function's
1672 address.
1673 * mips-tdep.c (mips_fval_reg): New enum.
1674 (mips_o32_push_dummy_call): For MIPS16 FP doubles do not swap
1675 words put in GP registers.
1676 (mips_o64_push_dummy_call): Update a comment.
1677 (mips_o32_return_value): Take a pointer to struct value instead
1678 of struct type for the function requested and use it to check if
1679 using the MIPS16 calling convention. Return the designated
1680 general purpose registers for floating-point values returned in
1681 MIPS16 mode.
1682 (mips_o64_return_value): Likewise.
1683 * ppc-tdep.h (ppc_sysv_abi_return_value): Update prototype.
1684 (ppc_sysv_abi_broken_return_value): Likewise.
1685 (ppc64_sysv_abi_return_value): Likewise.
1686 * alpha-tdep.c (alpha_return_value): Take a pointer to struct
1687 value instead of struct type for the function requested.
1688 * amd64-tdep.c (amd64_return_value): Likewise.
1689 * amd64-windows-tdep.c (amd64_windows_return_value): Likewise.
1690 * arm-tdep.c (arm_return_value): Likewise.
1691 * avr-tdep.c (avr_return_value): Likewise.
1692 * bfin-tdep.c (bfin_return_value): Likewise.
1693 * cris-tdep.c (cris_return_value): Likewise.
1694 * frv-tdep.c (frv_return_value): Likewise.
1695 * h8300-tdep.c (h8300_return_value): Likewise.
1696 (h8300h_return_value): Likewise.
1697 * hppa-tdep.c (hppa32_return_value): Likewise.
1698 (hppa64_return_value): Likewise.
1699 * i386-tdep.c (i386_return_value): Likewise.
1700 * ia64-tdep.c (ia64_return_value): Likewise.
1701 * iq2000-tdep.c (iq2000_return_value): Likewise.
1702 * lm32-tdep.c (lm32_return_value): Likewise.
1703 * m32c-tdep.c (m32c_return_value): Likewise.
1704 * m32r-tdep.c (m32r_return_value): Likewise.
1705 * m68hc11-tdep.c (m68hc11_return_value): Likewise.
1706 * m68k-tdep.c (m68k_return_value): Likewise.
1707 (m68k_svr4_return_value): Likewise.
1708 * m88k-tdep.c (m88k_return_value): Likewise.
1709 * mep-tdep.c (mep_return_value): Likewise.
1710 * microblaze-tdep.c (microblaze_return_value): Likewise.
1711 * mn10300-tdep.c (mn10300_return_value): Likewise.
1712 * moxie-tdep.c (moxie_return_value): Likewise.
1713 * mt-tdep.c (mt_return_value): Likewise.
1714 * ppc-linux-tdep.c (ppc_linux_return_value): Likewise.
1715 * ppc-sysv-tdep.c (ppc_sysv_abi_return_value): Likewise.
1716 (ppc_sysv_abi_broken_return_value): Likewise.
1717 (ppc64_sysv_abi_return_value): Likewise.
1718 * ppcnbsd-tdep.c (ppcnbsd_return_value): Likewise.
1719 * rl78-tdep.c (rl78_return_value): Likewise.
1720 * rs6000-aix-tdep.c (rs6000_return_value): Likewise.
1721 * rx-tdep.c (rx_return_value): Likewise.
1722 * s390-tdep.c (s390_return_value): Likewise.
1723 * score-tdep.c (score_return_value): Likewise.
1724 * sh-tdep.c (sh_return_value_nofpu): Likewise.
1725 (sh_return_value_fpu): Likewise.
1726 * sh64-tdep.c (sh64_return_value): Likewise.
1727 * sparc-tdep.c (sparc32_return_value): Likewise.
1728 * sparc64-tdep.c (sparc64_return_value): Likewise.
1729 * spu-tdep.c (spu_return_value): Likewise.
1730 * tic6x-tdep.c (tic6x_return_value): Likewise.
1731 * v850-tdep.c (v850_return_value): Likewise.
1732 * vax-tdep.c (vax_return_value): Likewise.
1733 * xstormy16-tdep.c (xstormy16_return_value): Likewise.
1734 * xtensa-tdep.c (xtensa_return_value): Likewise.
1735 * gdbarch.c: Regenerate.
1736 * gdbarch.h: Regenerate.
1737
1738 2012-05-15 Tom Tromey <tromey@redhat.com>
1739
1740 * python/python.c (gdbpy_find_pc_line): Use gdb_py_ulongest.
1741
1742 2012-05-15 Joel Brobecker <brobecker@adacore.com>
1743
1744 * breakpoint.c (init_breakpoint_sal): Add quotes around part
1745 of command in two error message.
1746
1747 2012-05-15 Joel Brobecker <brobecker@adacore.com>
1748
1749 * breakpoint.c (init_breakpoint_sal): Remove trailing spaces.
1750
1751 2012-05-15 Joel Brobecker <brobecker@adacore.com>
1752
1753 * breakpoint.c (find_condition_and_thread): Minor reformatting.
1754
1755 2012-05-15 Jan Kratochvil <jan.kratochvil@redhat.com>
1756
1757 * NEWS (show auto-load scripts-directory): Add forgotten command.
1758
1759 2012-05-15 Jan Kratochvil <jan.kratochvil@redhat.com>
1760
1761 * spu-tdep.c (spu_catch_start): Update create_breakpoint caller
1762 parameters.
1763
1764 2012-05-14 H.J. Lu <hongjiu.lu@intel.com>
1765
1766 * amd64-tdep.c: Include features/i386/x32.c and
1767 features/i386/x32-avx.c.
1768 (_initialize_amd64_tdep): Call initialize_tdesc_x32 and
1769 initialize_tdesc_x32_avx.
1770
1771 2012-05-14 Stan Shebs <stan@codesourcery.com>
1772
1773 Add dynamic printf.
1774 * breakpoint.h (enum bptype): New type bp_dprintf.
1775 (struct breakpoint): New field extra_string.
1776 (struct breakpoint_ops): Add arg to create_breakpoints_sal.
1777 (create_breakpoint): Add extra_string arg.
1778 * breakpoint.c (dprintf_breakpoint_ops): New.
1779 (is_breakpoint): Add bp_dprintf.
1780 (bpstat_what): Add dprintf case.
1781 (bptype_string): Ditto.
1782 (print_one_breakpoint_location): Ditto.
1783 (init_bp_location): Ditto.
1784 (bkpt_print_mention): Ditto.
1785 (dprintf_style_enums): New array.
1786 (dprintf_style): New global.
1787 (dprintf_function): New global.
1788 (dprintf_channel): New global.
1789 (update_dprintf_command_list): New function.
1790 (update_dprintf_commands): New function.
1791 (init_breakpoint_sal): Add extra_string argument, handle it.
1792 (create_breakpoint_sal): Add extra_string argument.
1793 (create_breakpoints_sal): Add extra_string argument, update callers.
1794 (find_condition_and_thread): Add extra argument.
1795 (create_breakpoint): Add extra_string argument, record it.
1796 (dprintf_command): New function.
1797 (break_command_1): Add arg to create_breakpoint call.
1798 (handle_gnu_v3_exceptions): Ditto.
1799 (trace_command): Ditto.
1800 (ftrace_command): Ditto.
1801 (strace_command): Ditto.
1802 (bkpt_print_mention): Add dprintf case.
1803 (create_breakpoint_sal_default): Add extra_string argument.
1804 (_initialize_breakpoint): Add new commands.
1805 * mi/mi-cmd-break.c (mi_cmd_break_insert): Add arg to call.
1806 * python/py-breakpoint.c (bppy_init): Ditto.
1807 * python/py-finishbreakpoint.c (bpfinishpy_init): Ditto.
1808
1809 2012-05-14 Maciej W. Rozycki <macro@codesourcery.com>
1810
1811 * mips-tdep.c (mips_push_dummy_code): Correct description typo.
1812
1813 2012-05-14 Siva Chandra Reddy <sivachandra@google.com>
1814
1815 * python/python.c (gdbpy_find_pc_line): Use ULONGEST instead of
1816 unsigned long long.
1817
1818 2012-05-13 Siva Chandra Reddy <sivachandra@google.com>
1819
1820 Add a new function gdb.find_pc_line to the Python API.
1821 * NEWS (Python Scripting): Add entry about the new function.
1822 * python/python.c (gdbpy_find_pc_line): New function which
1823 implements gdb.find_pc_line.
1824 (GdbMethods): Add entry for the new function.
1825
1826 2012-05-12 Pedro Alves <palves@redhat.com>
1827
1828 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Call
1829 initialize_tdesc_x32_linux and initialize_tdesc_x32_avx_linux.
1830
1831 2012-05-12 Eli Zaretskii <eliz@gnu.org>
1832
1833 * inferior.c: Include completer.h
1834 (initialize_inferiors): Set completer of add-inferior to
1835 filename_completer.
1836
1837 2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
1838
1839 * amd64-linux-tdep.c (amd64_linux_core_read_description): Check
1840 gdbarch_ptr_bit for x32 core dump.
1841
1842 2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
1843
1844 * amd64-linux-tdep.c: Include features/i386/x32-linux.c
1845 and features/i386/x32-avx-linux.c.
1846
1847 2012-05-11 Stan Shebs <stan@codesourcery.com>
1848 Kwok Cheung Yeung <kcy@codesourcery.com>
1849
1850 * NEWS: Describe new info os commands.
1851 * common/linux-osdata.c (PID_T, TIME_T): Define.
1852 (MAX_PID_T_STRLEN): New.
1853 (linux_common_core_of_thread): Add comment. Change to use PID_T and
1854 MAX_PID_T_STRLEN.
1855 (command_from_pid): Add comment. Change to use PID_T.
1856 (commandline_from_pid): Change to use PID_T.
1857 (user_from_pid): Add comment.
1858 (get_process_owner): Add comment. Change to use PID_T and
1859 MAX_PID_T_STRLEN.
1860 (get_number_of_cpu_cores): Add comment.
1861 (get_cores_used_by_process): Add comment. Change to use PID_T and
1862 MAX_PID_T_STRLEN.
1863 (linux_xfer_osdata_processes): Change to use PID_T and
1864 MAX_PID_T_STRLEN.
1865 (compare_processes): New function.
1866 (linux_xfer_osdata_processgroups): New function.
1867 (linux_xfer_osdata_threads): Change to use PID_T.
1868 (linux_xfer_osdata_fds): New function.
1869 (format_socket_state, print_sockets): New functions.
1870 (union socket_addr): New union.
1871 (linux_xfer_osdata_isockets): New function.
1872 (time_from_time_t, group_from_gid): New functions.
1873 (linux_xfer_osdata_shm): New function.
1874 (linux_xfer_osdata_sem): New function.
1875 (linux_xfer_osdata_msg): New function.
1876 (linux_xfer_osdata_modules): New function.
1877 (osdata_table): Add new entries.
1878 * common/buffer.c (buffer_xml_printf): Add support for long and
1879 long long format specifiers.
1880
1881 2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
1882
1883 * amd64-linux-tdep.h (tdesc_x32_linux): New.
1884 (tdesc_x32_avx_linux): Likewise.
1885
1886 2012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1887
1888 Implement multi-component --with-auto-load-dir.
1889 * NEWS (set auto-load scripts-directory, --with-auto-load-dir): New
1890 entries.
1891 (--with-auto-load-safe-path): Update the default value description.
1892 * auto-load.c (auto_load_dir, set_auto_load_dir, show_auto_load_dir):
1893 New.
1894 (auto_load_objfile_script): Add DEBUG_AUTO_LOAD output. Remove
1895 GDB_DATADIR NULL check. Replace GDB_DATADIR/auto-load by
1896 AUTO_LOAD_DIR. Support $ddir and multiple components in it.
1897 (_initialize_auto_load): Initialize also auto_load_dir. Install new
1898 "set auto-load scripts-directory".
1899 * config.in: Regenerate.
1900 * configure: Regenerate.
1901 * configure.ac (--with-auto-load-dir): New configure option.
1902 (--auto-load-safe-path): Change the default to --with-auto-load-dir.
1903
1904 2012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1905
1906 Provide $ddir substitution for --with-auto-load-safe-path.
1907 * NEWS (--with-auto-load-safe-path, --without-auto-load-safe-path): New
1908 entries.
1909 * auto-load.c: Include observer.h.
1910 (auto_load_safe_path_vec_update): Call substitute_path_component for
1911 each component. New variable ddir_subst.
1912 (auto_load_gdb_datadir_changed): New function.
1913 (set_auto_load_safe_path): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
1914 AUTO_LOAD_SAFE_PATH. New comment.
1915 (_initialize_auto_load): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
1916 AUTO_LOAD_SAFE_PATH. Install auto_load_gdb_datadir_changed.
1917 * config.in: Regenerate.
1918 * configure: Regenerate.
1919 * configure.ac (--auto-load-safe-path): Rename
1920 DEFAULT_AUTO_LOAD_SAFE_PATH to AUTO_LOAD_SAFE_PATH. Default to
1921 GDB_DATADIR/auto-load.
1922 * defs.h (substitute_path_component): New declaration.
1923 * top.c: Include observer.h.
1924 (set_gdb_datadir): New function.
1925 (init_main): Install it for "set data-directory".
1926 * utils.c (substitute_path_component): New function.
1927
1928 2012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1929
1930 Make auto-load handle multiple components of DEBUG_FILE_DIRECTORY.
1931 * auto-load.c (auto_load_objfile_script): Remove check for NULL
1932 DEBUG_FILE_DIRECTORY. Handle multiple components of
1933 DEBUG_FILE_DIRECTORY.
1934
1935 2012-05-10 Tom Tromey <tromey@redhat.com>
1936
1937 * dwarf2read.c (recursively_write_psymbols): New function.
1938 (write_psymtabs_to_index): Use it.
1939
1940 * dwarf2read.c (struct dwarf2_queue_item) <pretend_language>: New
1941 field.
1942 (load_cu, dw2_do_instantiate_symtab, process_psymtab_comp_unit)
1943 (load_partial_comp_unit): Update.
1944 (queue_comp_unit): Add argument 'pretend_language'.
1945 (process_queue): Update.
1946 (psymtab_to_symtab_1): Skip dependencies that have a user.
1947 (load_partial_comp_unit_reader): Give meaning to the 'data'
1948 argument.
1949 (load_full_comp_unit): Add 'pretend_language' argument.
1950 (process_full_comp_unit): Add 'pretend_language' argument. Set
1951 language on CU.
1952 (process_imported_unit_die, read_file_scope, read_type_unit_scope):
1953 Update.
1954 (maybe_queue_comp_unit): Add 'pretend_language' argument.
1955 (follow_die_offset, follow_die_sig, read_signatured_type_reader):
1956 Update.
1957 (prepare_one_comp_unit): Add 'pretend_language' argument.
1958
1959 * dwarf2read.c: (dwarf2_per_cu_ptr): New typedef.
1960 (struct dwarf2_per_objfile) <just_read_cus>: New field.
1961 (struct dwarf2_per_cu_data) <imported_symtabs>: New field.
1962 (dw2_do_instantiate_symtab): Check whether symtab was read in
1963 before queueing.
1964 (dw2_instantiate_symtab): Add assertion. Call
1965 process_cu_includes.
1966 (process_psymtab_comp_unit): Compute 'dependencies' for psymtab.
1967 (partial_symtab_p): New typedef.
1968 (set_partial_user): New function.
1969 (dwarf2_build_psymtabs_hard): Use set_partial_user.
1970 (scan_partial_symbols): Add imported CU to imported_symtabs.
1971 (dwarf2_psymtab_to_symtab): Call process_cu_includes.
1972 (psymtab_to_symtab_1): Do nothing if psymtab is readin.
1973 (get_symtab, recursively_compute_inclusions)
1974 (compute_symtab_includes, process_cu_includes)
1975 (process_imported_unit_die): New functions.
1976 (process_die) <DW_TAG_imported_unit>: New case.
1977 (dwarf2_per_objfile_free): Free 'imported_symtabs'.
1978
1979 * dwarf2read.c (struct dwarf2_per_cu_data) <psymtab>: Update
1980 comment.
1981 (struct partial_die_info) <locdesc>: Remove.
1982 <d>: New field.
1983 (process_psymtab_comp_unit): Add 'read_partial' argument.
1984 Update.
1985 (process_type_comp_unit, dwarf2_build_psymtabs_hard): Update.
1986 (scan_partial_symbols): Handle DW_TAG_imported_unit.
1987 (add_partial_symbol): Update.
1988 (process_die): Handle DW_TAG_partial_unit.
1989 (read_file_scope): Update comment.
1990 (load_partial_dies): Handle DW_TAG_imported_unit.
1991 (read_partial_die): Handle DW_TAG_partial_unit, DW_AT_import.
1992 (determine_prefix, dwarf2_name): Handle DW_TAG_partial_unit.
1993
1994 2012-05-10 Tom Tromey <tromey@redhat.com>
1995
1996 * cc-with-dwz.sh: New file.
1997
1998 2012-05-10 Tom Tromey <tromey@redhat.com>
1999
2000 * symtab.h (struct symtab) <includes, user>: New fields.
2001 * block.h (struct block_iterator) <d, idx, which>: New fields.
2002 * block.c (initialize_block_iterator, find_iterator_symtab)
2003 (block_iterator_step, block_iter_name_step)
2004 (block_iter_match_step): New functions.
2005 (block_iterator_first, block_iterator_next)
2006 (block_iter_name_first, block_iter_name_next)
2007 (block_iter_match_first, block_iter_match_next): Rewrite.
2008 (get_block_symtab): New function.
2009
2010 2012-05-10 Tom Tromey <tromey@redhat.com>
2011
2012 * jv-lang.c (get_java_class_symtab): Use allocate_global_block,
2013 set_block_symtab.
2014 * jit.c (finalize_symtab): Use allocate_global_block,
2015 set_block_symtab.
2016 * buildsym.c (finish_block_internal): New function, from old
2017 finish_block.
2018 (finish_block): Rewrite.
2019 (end_symtab): Use finish_block_internal, set_block_symtab.
2020 * block.h (struct global_block): New.
2021 (allocate_global_block, set_block_symtab): Declare.
2022 * block.c (allocate_global_block, set_block_symtab): New
2023 functions.
2024
2025 2012-05-10 Tom Tromey <tromey@redhat.com>
2026
2027 * psymtab.c (partial_map_expand_apply): Add assertion.
2028 (partial_map_symtabs_matching_filename): Skip included psymtabs.
2029 (psymtab_to_symtab): Find unshared psymtab.
2030 (dump_psymtab): Print including psymtabs.
2031 (recursively_search_psymtabs): New function.
2032 (expand_symtabs_matching_via_partial): Use it.
2033 * psympriv.h (struct partial_symtab) <user, searched_flag>: New
2034 fields.
2035 (enum psymtab_search_status): New.
2036
2037 2012-05-10 Tom Tromey <tromey@redhat.com>
2038
2039 * tracepoint.c (scope_info): Update.
2040 * symtab.c (lookup_block_symbol, iterate_over_symbols)
2041 (find_pc_sect_symtab, search_symbols)
2042 (default_make_symbol_completion_list_break_on)
2043 (make_file_symbol_completion_list): Update.
2044 * symmisc.c (dump_symtab_1): Update.
2045 * stack.c (print_frame_args, iterate_over_block_locals)
2046 (print_frame_labels, iterate_over_block_arg_vars): Update.
2047 * python/py-block.c (block_object) <dict>: Remove.
2048 <block>: New field.
2049 <iter>: Change type.
2050 (blpy_iter): Update.
2051 (blpy_block_syms_iternext): Update.
2052 * psymtab.c (map_block): Use block iterators.
2053 * objfiles.c (objfile_relocate1): Use ALL_DICT_SYMBOLS.
2054 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
2055 * mdebugread.c (parse_symbol, mylookup_symbol): Update.
2056 * infrun.c (check_exception_resume): Update.
2057 * cp-support.c (make_symbol_overload_list_block): Update.
2058 * coffread.c (patch_opaque_types): Update.
2059 * buildsym.c (finish_block, end_symtab): Use ALL_DICT_SYMBOLS.
2060 * block.h (struct block_iterator): New.
2061 (block_iterator_first, block_iterator_next, block_iter_name_first)
2062 (block_iter_name_next, block_iter_match_first)
2063 (block_iter_match_next): Declare.
2064 (ALL_BLOCK_SYMBOLS): Redefine.
2065 * block.c (block_iterator_first, block_iterator_next)
2066 (block_iter_name_first, block_iter_name_next)
2067 (block_iter_match_first, block_iter_match_next): New functions.
2068 * ada-lang.c (ada_add_block_symbols)
2069 (ada_make_symbol_completion_list): Use block iterator.
2070
2071 2012-05-10 Tom Tromey <tromey@redhat.com>
2072
2073 * psymtab.c (PSYMTAB_TO_SYMTAB): Remove.
2074 (find_pc_sect_symtab_from_partial, lookup_symbol_aux_psymtabs)
2075 (lookup_partial_symbol, find_last_source_symtab_from_partial)
2076 (read_psymtabs_with_filename, map_matching_symbols_psymtab)
2077 (expand_symtabs_matching_via_partial, maintenance_check_symtabs):
2078 Update.
2079
2080 2012-05-10 Joel Brobecker <brobecker@adacore.com>
2081
2082 * config/djgpp/fnchange.lst: Add entries for print-file-var-lib1.c,
2083 print-file-var-lib2.c, print-file-var-main.c and
2084 print-file-var.exp (located in gdb/testsuite/gdb.base).
2085
2086 2012-05-10 Joel Brobecker <brobecker@adacore.com>
2087
2088 * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
2089 try locating the symbol in the symbol's own objfile first, before
2090 extending the search to all objfiles.
2091 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
2092 out of lookup_symbol_aux_symtabs.
2093 (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
2094 Replace extracted-out code by call to lookup_symbol_aux_objfile.
2095 Do not search EXCLUDE_OBJFILE.
2096 (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
2097 (lookup_symbol_global): Search for matches in the block's objfile
2098 first, before searching all other objfiles.
2099
2100 2012-05-10 Tristan Gingold <gingold@adacore.com>
2101
2102 * printcmd.c (set_command): Add pre/post inc/dec.
2103
2104 2012-05-09 Frank Ch. Eigler <fche@redhat.com>
2105
2106 * gdb.1: Document -ex option.
2107
2108 2012-05-09 Joel Brobecker <brobecker@adacore.com>
2109
2110 * infcall.c (call_function_by_hand): Remove AT_SYMBOL handling.
2111 * inferior.h (AT_SYMBOL): Delete.
2112
2113 2012-05-09 Joel Brobecker <brobecker@adacore.com>
2114
2115 * mips-tdep.c (mips_push_dummy_code): New function.
2116 (mips_gdbarch_init): Set the gdbarch call_dummy_location to
2117 ON_STACK and install mips_push_dummy_code as our gdbarch
2118 push_dummy_code routine.
2119
2120 2012-05-09 Pedro Alves <palves@redhat.com>
2121
2122 * target.c (set_maintenance_target_async_permitted): Rename to ...
2123 (set_target_async_command): ... this.
2124 (show_maintenance_target_async_permitted): Rename to ...
2125 (show_target_async_command): ... this.
2126 (initialize_targets): Adjust.
2127
2128 2012-05-08 Doug Evans <dje@google.com>
2129
2130 * go-exp.y (classify_name): Add missing assignment of fields of
2131 yylval.ssym.
2132
2133 2012-05-08 Eli Zaretskii <eliz@gnu.org>
2134
2135 Display the ">" prompt in interactive mode while reading canned
2136 commands, even when the current interpreter is MI.
2137
2138 * interps.c (interp_set_temp): New function.
2139
2140 * interps.h (interp_set_temp): Add prototype.
2141
2142 * cli/cli-script.c (restore_interp): New cleanup function.
2143 (read_command_lines): Temporarily override the current interpreter
2144 with CLI and arrange for restoring the original one.
2145
2146 2012-05-12 Joel Sherrill <joel.sherrill@oarcorp.com>
2147
2148 * microblaze-rom.c (_initialize_picobug_rom): Add prototype.
2149
2150 2012-05-07 Sergio Durigan Junior <sergiodj@redhat.com>
2151
2152 * probe.c (parse_probes): Move conditional to check for
2153 debuginfo files from here...
2154 * stap-probe.c (stap_get_probes): ... to here.
2155
2156 2012-05-07 Mark Kettenis <kettenis@gnu.org>
2157 H.J. Lu <hongjiu.lu@intel.com>
2158
2159 * amd64-tdep.c (amd64_analyze_prologue): Additionally check for
2160 `movl %esp, %ebp' for the X32 ABI.
2161
2162 2012-05-07 Tom Tromey <tromey@redhat.com>
2163
2164 * dwarf2read.c (dwarf_tag_name): Return const char *. Use
2165 get_DW_TAG_name.
2166 (dwarf_attr_name): Return const char *. Use get_DW_AT_name.
2167 (dwarf_form_name): Return const char *. Use get_DW_FORM_name.
2168 (dwarf_stack_op_name): Remove.
2169 (dwarf_cfi_name): Return const char *. Use get_DW_ATE_name.
2170 (decode_locdesc): Use get_DW_OP_name.
2171 * dwarf2loc.c (unimplemented): Use get_DW_OP_name.
2172 (dwarf2_compile_expr_to_ax): Likewise.
2173 (disassemble_dwarf_expression): Likewise.
2174 * dwarf2expr.h: (dwarf_stack_op_name): Remove.
2175
2176 2012-05-07 Chung-Lin Tang <cltang@codesourcery.com>
2177
2178 * sh-linux-tdep.c: Include trad-frame.h and tramp-frame.h.
2179 (sh_linux_sigtramp_cache): New function.
2180 (sh_linux_sigreturn_init): New function.
2181 (sh_linux_rt_sigreturn_init): New function.
2182 (SH_MOVW,SH_TRAP,SH_OR_R0_R0): New symbols for instruction
2183 patterns.
2184 (SH_NR_SIGRETURN,SH_NR_RT_SIGRETURN): New symbols for sigreturn
2185 syscall codes.
2186 (sh_linux_sigreturn_tramp_frame): New tramp_frame definition.
2187 (sh_linux_rt_sigreturn_tramp_frame): Likewise.
2188 (sh_linux_init_abi): Add init calls to register new tramp_frame
2189 definitions under 32-bit SH, update comments.
2190
2191 2012-05-07 Pedro Alves <palves@redhat.com>
2192
2193 PR gdb/10952
2194
2195 * amd64-linux-tdep.c: Include glibc-tdep.h.
2196 (amd64_linux_init_abi): Install glibc_skip_solib_resolver as
2197 gdbarch_skip_solib_resolver callback.
2198
2199 2012-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
2200
2201 * auto-load.c (set_auto_load_safe_path): Reset AUTO_LOAD_SAFE_PATH
2202 back to DEFAULT_AUTO_LOAD_SAFE_PATH if it is being set to "".
2203 (show_auto_load_safe_path): Check any-directory by comparison with "/".
2204 (add_auto_load_safe_path): Change the error message.
2205 (_initialize_auto_load): Change the "safe-path" help text.
2206 * configure: Regenerate
2207 * configure.ac (--without-auto-load-safe-path): Set
2208 WITH_AUTO_LOAD_SAFE_PATH to /.
2209
2210 2012-05-05 Sergio Durigan Junior <sergiodj@redhat.com>
2211
2212 * stap-probe.h: Do not include unecessary `probe.h'.
2213
2214 2012-05-05 Alan Modra <amodra@gmail.com>
2215
2216 * elfread.c (elf_symtab_read): Use bfd_abs_section_ptr and
2217 bfd_und_section_ptr.
2218 * machoread.c (macho_symtab_add_minsym): Use bfd_abs_section_ptr
2219 and bfd_com_section_ptr.
2220
2221 2012-05-04 Joel Brobecker <brobecker@adacore.com>
2222
2223 * MAINTAINERS (Past Maintainers): Add Chris Faylor.
2224
2225 2012-05-04 Joel Brobecker <brobecker@adacore.com>
2226
2227 * windows-nat.h (segment_register_p_ftype): New typedef.
2228 (windows_set_segment_register_p): Add declaration.
2229 * windows-nat.c (segment_register_p): New static global.
2230 (windows_set_segment_register_p): New function.
2231 (do_windows_fetch_inferior_registers): Add special handling
2232 for segment registers.
2233 * amd64-windows-nat.c: #include "amd64-tdep.h".
2234 (amd64_windows_segment_register_p): New function.
2235 (_initialize_amd64_windows_nat): Call windows_set_segment_register_p.
2236 * i386-windows-nat.c: #include "i386-tdep.h".
2237 (i386_windows_segment_register_p): New function.
2238 (_initialize_i386_windows_nat): Call windows_set_segment_register_p.
2239
2240 2012-05-04 Tristan Gingold <gingold@adacore.com>
2241
2242 * printcmd.c (set_command): Emit a warning if the expression is not
2243 an assignment.
2244
2245 2012-05-03 Joel Brobecker <brobecker@adacore.com>
2246
2247 * nto-procfs.c (procfs_find_new_threads, procfs_pid_to_str):
2248 Make static.
2249
2250 2012-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
2251
2252 * stap-probe.c (stap_is_operator): Change declaration.
2253 (stap_get_opcode): Change return value.
2254 (stap_parse_argument_1): Update calls to `stap_get_opcode' and
2255 `stap_parse_argument_1'.
2256
2257 2012-05-03 Pedro Alves <pedro@codesourcery.com>
2258
2259 * infrun.c (displaced_step_fixup): Add "displaced:" prefix to
2260 debug log.
2261
2262 2012-05-03 Siva Chandra Reddy <sivachandra@google.com>
2263
2264 Add two new methods global_block and static_block to gdb.Symtab
2265 objects.
2266 * NEWS (Python scripting): Add entry about the new methods.
2267 * python/py-symtab.c (stpy_global_block): New function which
2268 implements the gdb.Symtab.global_block() method.
2269 (stpy_static_block): New function which implements the
2270 gdb.Symtab.static_block() method.
2271 (symtab_object_methods): Add entries for the two new methods.
2272
2273 2012-05-03 Doug Evans <dje@google.com>
2274
2275 * dwarf2read.c (dw2_find_symbol_file): Don't crash if there are no
2276 files.
2277
2278 2012-05-03 Yao Qi <yao@codesourcery.com>
2279
2280 * i386-tdep.c (i386_fetch_pointer_argument): Remove extra
2281 space.
2282 (i386_process_record): Ditto.
2283
2284 2012-05-02 Joel Brobecker <brobecker@adacore.com>
2285
2286 * infcall.c (unwind_on_signal_p): Make static.
2287
2288 2012-05-02 Joel Brobecker <brobecker@adacore.com>
2289
2290 * sol-thread.c (solaris_pid_to_str): Make static.
2291 (_initialize_sol_thread): Add prototype.
2292
2293 2012-05-02 Joel Brobecker <brobecker@adacore.com>
2294
2295 * sol-thread.c (procfs_pid_to_str): Delete extern declaration.
2296
2297 2012-05-02 Christopher Faylor <me.cygwin2012@cgf.cx>
2298
2299 * MAINTAINERS: Remove myself.
2300
2301 2012-05-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2302
2303 Fix --without-auto-load-safe-path for MS-Windows host platform.
2304 * auto-load.c (filename_is_in_dir): Return 1 for DIR_LEN 0.
2305
2306 2012-05-02 Eli Zaretskii <eliz@gnu.org>
2307
2308 * gdb_curses.h: Undefine KEY_EVENT before including curses
2309 headers. Move "#undef MOUSE_MOVED" before any curses header
2310 inclusion.
2311
2312 2012-05-02 Sergio Durigan Junior <sergiodj@gmail.com>
2313
2314 * features/i386/i386-mmx-linux.c: Regenerate.
2315 * features/rs6000/powerpc-32.c: Likewise.
2316 * features/rs6000/powerpc-32l.c: Likewise.
2317 * features/rs6000/powerpc-403.c: Likewise.
2318 * features/rs6000/powerpc-403gc.c: Likewise.
2319 * features/rs6000/powerpc-405.c: Likewise.
2320 * features/rs6000/powerpc-505.c: Likewise.
2321 * features/rs6000/powerpc-601.c: Likewise.
2322 * features/rs6000/powerpc-602.c: Likewise.
2323 * features/rs6000/powerpc-603.c: Likewise.
2324 * features/rs6000/powerpc-604.c: Likewise.
2325 * features/rs6000/powerpc-64.c: Likewise.
2326 * features/rs6000/powerpc-64l.c: Likewise.
2327 * features/rs6000/powerpc-750.c: Likewise.
2328 * features/rs6000/powerpc-860.c: Likewise.
2329 * features/rs6000/powerpc-e500.c: Likewise.
2330 * features/rs6000/powerpc-e500l.c: Likewise.
2331 * features/rs6000/powerpc-isa205-32l.c: Likewise.
2332 * features/rs6000/powerpc-isa205-64l.c: Likewise.
2333 * features/rs6000/rs6000.c: Likewise.
2334
2335 2012-05-02 Sergio Durigan Junior <sergiodj@gmail.com>
2336
2337 * i386-tdep.c (i386_stap_parse_special_token) <s>: Remove unused
2338 variable.
2339 * stap-probe.c (stap_parse_single_operand) <reg_suffix,
2340 reg_ind_suffix, reg_suffix_len, reg_ind_suffix_len>: Likewise.
2341 (stap_parse_argument) <e>: Likewise.
2342 (handle_stap_probe) <byte_order>: Likewise.
2343
2344 2012-04-30 Doug Evans <dje@google.com>
2345
2346 * dwarf2read.c (init_cutu_and_read_dies): Renamed from
2347 init_and_read_dies_worker. All callers updated.
2348 (init_cu_and_read_dies, init_tu_and_read_dies): Delete. All calls
2349 replaced with init_cutu_and_read_dies.
2350 (load_partial_comp_unit): Pass 1 for use_existing_cu.
2351 (find_partial_die): Remove FIXME. Don't free current CU.
2352
2353 2012-04-30 Sterling Augustine <saugustine@google.com>
2354
2355 * contrib: New directory.
2356 * contrib/test_pubnames_and_indexes.py: New file.
2357
2358 2012-04-30 Doug Evans <dje@google.com>
2359
2360 * dwarf2read.c (dwarf_decode_macros): New arg section_name.
2361 All callers updated.
2362 (init_cu_die_reader): Verify the section is non-empty.
2363 (dwarf_decode_line_header): Don't dereference section->asection
2364 until we know the section is present.
2365
2366 2012-04-29 Sergio Durigan Junior <sergiodj@redhat.com>
2367
2368 * tracepoint.c (start_tracing, stop_tracing): Checking for NULL
2369 probes.
2370
2371 2012-04-29 Yao Qi <yao@codesourcery.com>
2372
2373 * gdb-code-style.el: New hook gdb-markup-hook
2374 and gdb-comment-hook.
2375
2376 2012-04-28 Doug Evans <dje@google.com>
2377
2378 Initial support for Fission. http://gcc.gnu.org/wiki/DebugFission
2379 * symfile.c (default_symfile_relocate): Use sectp->owner instead of
2380 objfile->obfd.
2381 * symfile.h (dwarf2_debug_sections): New member addr.
2382 * dwarf2expr.c (execute_stack_op): New case DW_OP_GNU_addr_index.
2383 (ctx_no_get_addr_index): New function.
2384 * dwarf2expr.h (dwarf_expr_context_funcs): New member get_addr_index.
2385 (ctx_no_get_addr_index): Declare.
2386 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): Update.
2387 * dwarf2loc.c (dwarf_expr_get_addr_index): New function.
2388 (dwarf_expr_ctx_funcs): Update.
2389 (needs_get_addr_index): New function.
2390 (needs_frame_ctx_funcs): Update.
2391 * dwarf2loc.h (dwarf2_read_addr_index): Declare.
2392 * dwarf2read.c: #include "gdbcore.h".
2393 (dwarf2_per_objfile): New members addr, dwo_files.
2394 (dwarf2_elf_names): Add entry for addr.
2395 (struct dwo_section_names): New type.
2396 (dwo_section_names): New static global.
2397 (dwarf2_cu): New members dwo_unit, addr_base, have_addr_base.
2398 (dwarf2_per_cu_data): New member is_debug_types, all boolean uses of
2399 old debug_types_section member updated to use this.
2400 Rename member debug_types_section to info_or_types_section,
2401 all uses updated.
2402 (signatured_type): Rename member type_offset to type_offset_in_tu,
2403 all uses updated. New member type_offset_in_section.
2404 (struct dwo_sections): New type.
2405 (struct dwo_unit): New type.
2406 (struct dwo_file): New type.
2407 (die_reader_specs): New member dwo_file.
2408 (dwarf2_locate_sections): Watch for .debug_addr.
2409 (zlib_decompress_section): Use sectp->owner instead of objfile->obfd.
2410 (dwarf2_read_section): Get bfd of section from bfd's asection,
2411 instead of objfile.
2412 (create_cus_from_index): Initialize the_cu->info_or_types_section.
2413 (create_signatured_type_table_from_index): Initialize
2414 sig_type->info_or_types_section.
2415 (dw2_get_file_names): Statement lists for type units with DWO files
2416 live in the DWO file.
2417 (create_debug_types_hash_table): New function.
2418 (create_all_type_units): Rewrite.
2419 (init_cu_die_reader): New arg dwo_file, all callers updated.
2420 (init_and_read_dies_worker): Get section from
2421 this_cu->info_or_types_section. Set sig_type->type_offset_in_section.
2422 Watch for DW_AT_GNU_dwo_name and if present lookup the file and
2423 continue reading the CU/TU from there.
2424 (init_cutu_and_read_dies_no_follow): New arg dwo_file, all callers
2425 updated. Get section from this_cu->info_or_types_section.
2426 (create_all_comp_units): Initialize this_cu->info_or_types_section.
2427 (skip_one_die): New cases DW_FORM_GNU_addr_index,
2428 DW_FORM_GNU_str_index.
2429 (hash_dwo_file, eq_dwo_file): New functions.
2430 (allocate_dwo_file_hash_table): New function.
2431 (hash_dwo_unit, eq_dwo_unit): New functions.
2432 (allocate_dwo_unit_table): New function.
2433 (dwarf2_locate_dwo_sections): New function.
2434 (struct create_dwo_info_table_data): New type.
2435 (create_debug_info_hash_table_reader): New function.
2436 (create_debug_info_hash_table): New function.
2437 (try_open_dwo_file, open_dwo_file, init_dwo_file): New function.
2438 (lookup_dwo_file): New function.
2439 (lookup_dwo_comp_unit, lookup_dwo_type_unit): New functions.
2440 (free_dwo_file, free_dwo_file_cleanup): New functions.
2441 (free_dwo_file_from_slot, free_dwo_files): New functions.
2442 (dwarf2_get_pc_bounds): Handle DW_FORM_GNU_addr_index.
2443 (dwarf2_record_block_ranges): Ditto.
2444 (read_partial_die): Ditto.
2445 (process_enumeration_scope): Update to use type_offset_in_section.
2446 (read_full_die_1): New function.
2447 (read_full_die): Rewrite.
2448 (read_attribute_value): New cases DW_FORM_GNU_addr_index,
2449 DW_FORM_GNU_str_index.
2450 (read_addr_index_1, read_addr_index): New functions.
2451 (read_addr_index_from_leb128): New function.
2452 (struct dwarf2_read_addr_index_data): New type.
2453 (dwarf2_read_addr_index_reader): New function.
2454 (dwarf2_read_addr_index): New function.
2455 (read_str_index): New function.
2456 (leb128_size): New function.
2457 (dwarf_decode_line_header): Delete arg abfd, all callers updated.
2458 If processing a type unit from a DWO file, get the line section
2459 from the DWO file.
2460 (var_decode_location): Watch for DW_OP_GNU_addr_index.
2461 (dwarf2_const_value_attr): New cases DW_FORM_GNU_addr_index,
2462 DW_FORM_GNU_str_index.
2463 (lookup_die_type): Check whether section offset of type's die is
2464 known before looking it up. Remove assert. Condition can
2465 legimately happen for inter-cu type references.
2466 (dwarf_attr_name): Handle Fission attributes.
2467 (dwarf_form_name): Handle Fission forms.
2468 (dump_die_shallow): New cases DW_FORM_GNU_addr_index,
2469 DW_FORM_GNU_str_index.
2470 (follow_die_sig): Update to use type_offset_in_section.
2471 (decode_locdesc): New case DW_OP_GNU_addr_index.
2472 (skip_form_bytes): New cases DW_FORM_GNU_addr_index,
2473 DW_FORM_GNU_str_index.
2474 (cu_debug_loc_section): New function.
2475 (fill_in_loclist_baton, dwarf2_symbol_mark_computed): Call it.
2476 (dwarf2_per_objfile_free): Unmap .debug_addr section.
2477 Free DWO files if present.
2478 * xcoffread.c (dwarf2_xcoff_names): Add .debug_addr.
2479
2480 Refactor DIE reading.
2481 * dwarf2read.c (dwarf2_per_objfile): Replace members
2482 debug_info_type_hash and debug_types_type_hash with die_type_hash.
2483 (die_reader_specs): New member "die_section". Temporarily make
2484 member "buffer" non-const, pending constifying all info_ptr uses.
2485 (die_reader_func_ftype): New typedef.
2486 (dw2_get_file_names_reader): New function.
2487 (dw2_get_file_names): Rewrite.
2488 (read_and_check_type_unit_head): Rename arg type_offset to
2489 type_offset_in_tu.
2490 (create_all_type_units): Improve debugging message.
2491 Improve dummy type unit check.
2492 (init_cu_die_reader): New arg "section". All callers updated.
2493 (init_and_read_dies_worker): New function.
2494 (init_cu_and_read_dies, init_tu_and_read_dies): New functions.
2495 (init_cutu_and_read_dies_no_follow): New function.
2496 (init_cutu_and_read_dies_simple): New function.
2497 (process_psymtab_comp_unit_reader): New function.
2498 (process_psymtab_comp_unit): Delete args section,
2499 is_debug_types_section. Rewrite. All callers updated.
2500 (process_psymtab_type_unit): Renamed from process_type_comp_unit.
2501 All callers updated. Rewrite.
2502 (load_partial_comp_unit_reader): New function.
2503 (load_partial_comp_unit): Rewrite.
2504 (skip_children): New arg reader. Delete args buffer, cu.
2505 All callers updated.
2506 (skip_one_die): New arg reader. Delete args buffer, cu.
2507 All callers updated.
2508 (locate_pdi_sibling): New arg reader. Delete args buffer, abfd, cu.
2509 All callers updated.
2510 (load_full_comp_unit_reader): New function.
2511 (load_full_comp_unit): Rewrite.
2512 (read_comp_unit): Delete.
2513 (read_die_and_children_1): Delete, contents moved ...
2514 (read_die_and_children): ... here.
2515 (dwarf2_read_abbrevs): New arg abbrev_section. All callers updated.
2516 (load_partial_dies): New arg reader. Delete args abfd, buffer, cu.
2517 All callers updated.
2518 (read_partial_die): New arg reader. Delete args abfd, buffer, cu.
2519 All callers updated.
2520 (find_partial_die): Rewrite load_all_dies support.
2521 (read_attribute_value): New arg reader. Delete args abfd, cu.
2522 All callers updated.
2523 (read_attribute): New arg reader. Delete args abfd, cu.
2524 All callers updated.
2525 (load_full_type_unit): Add assert.
2526 (read_signatured_type_reader): New function.
2527 (read_signatured_type): Rewrite.
2528 (free_stack_comp_unit): Remove call to age_cached_comp_units.
2529 (free_one_cached_comp_unit): Change target_cu arg to target_per_cu.
2530 All callers updated. Set per_cu->cu = NULL after freeing it.
2531 (dwarf2_per_cu_offset_and_type): Renamed from dwarf2_offset_and_type.
2532 (per_cu_offset_and_type_hash): Renamed from offset_and_type_hash.
2533 (per_cu_offset_and_type_eq): Renamed from offset_and_type_eq.
2534 (set_die_type): Update.
2535 (get_die_type_at_offset): Update.
2536 (read_file_scope): Call prepare_one_comp_unit.
2537 (read_type_unit_scope): Ditto.
2538 (prepare_one_comp_unit): Set producer if present.
2539
2540 2012-04-28 Sergio Durigan Junior <sergiodj@redhat.com>
2541
2542 * probe.c (compile_rx_or_error): Silence ARI warning about missing
2543 gettext function on `error'.
2544
2545 2012-04-27 Doug Evans <dje@google.com>
2546
2547 * dwarf2read.c (dwarf2_read_index): Don't use index if symbol table
2548 is empty.
2549
2550 2012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
2551 Tom Tromey <tromey@redhat.com>
2552
2553 * breakpoint.c (struct breakpoint_objfile_data)
2554 <longjmp_searched>,<longjmp_probes>,<exception_searched>,
2555 <exception_probes>: New fields.
2556 (free_breakpoint_probes): New function.
2557 (create_longjmp_master_breakpoint): Prefer SystemTap probe over
2558 `_Unwind_DebugHook'.
2559 (create_exception_master_breakpoint): Likewise.
2560 (_initialize_breakpoint): Registering cleanup for SystemTap probes.
2561 * infrun.c: Including necessary header files for handling SystemTap
2562 probes.
2563 (handle_inferior_event): Handling longjmp breakpoint and exceptions
2564 via SystemTap probes.
2565 (check_exception_resume): Remove `func' argument. Handle exception
2566 unwinding breakpoint set via a SystemTap probe.
2567 (insert_exception_resume_from_probe): New function.
2568
2569 2012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
2570 Tom Tromey <tromey@redhat.com>
2571 Jan Kratochvil <jan.kratochvil@redhat.com>
2572
2573 * Makefile.in (SFILES): Add `probe' and `stap-probe'.
2574 (COMMON_OBS): Likewise.
2575 (HFILES_NO_SRCDIR): Add `probe'.
2576 * NEWS: Mention support for static and SystemTap probes.
2577 * amd64-tdep.c (amd64_init_abi): Initializing proper fields used by
2578 SystemTap probes' arguments parser.
2579 * arm-linux-tdep.c: Including headers needed to perform the parsing
2580 of SystemTap probes' arguments.
2581 (arm_stap_is_single_operand): New function.
2582 (arm_stap_parse_special_token): Likewise.
2583 (arm_linux_init_abi): Initializing proper fields used by SystemTap
2584 probes' arguments parser.
2585 * ax-gdb.c (require_rvalue): Removing static declaration.
2586 (gen_expr): Likewise.
2587 * ax-gdb.h (gen_expr): Declaring function.
2588 (require_rvalue): Likewise.
2589 * breakpoint.c: Include `gdb_regex.h' and `probe.h'.
2590 (bkpt_probe_breakpoint_ops): New variable.
2591 (momentary_breakpoint_from_master): Set the `probe' value.
2592 (add_location_to_breakpoint): Likewise.
2593 (break_command_1): Using proper breakpoint_ops according to the
2594 argument passed by the user in the command line.
2595 (bkpt_probe_insert_location): New function.
2596 (bkpt_probe_remove_location): Likewise.
2597 (bkpt_probe_create_sals_from_address): Likewise.
2598 (bkpt_probe_decode_linespec): Likewise.
2599 (tracepoint_probe_create_sals_from_address): Likewise.
2600 (tracepoint_probe_decode_linespec): Likewise.
2601 (tracepoint_probe_breakpoint_ops): New variable.
2602 (trace_command): Using proper breakpoint_ops according to the
2603 argument passed by the user in the command line.
2604 (initialize_breakpoint_ops): Initializing breakpoint_ops for
2605 static probes on breakpoints and tracepoints.
2606 * breakpoint.h (struct bp_location) <probe>: New field.
2607 * cli-utils.c (skip_spaces_const): New function.
2608 (extract_arg): Likewise.
2609 * cli-utils.h (skip_spaces_const): Likewise.
2610 (extract_arg): Likewise.
2611 * coffread.c (coff_sym_fns): Add `sym_probe_fns' value.
2612 * configure.ac: Append `stap-probe.o' to be generated when ELF
2613 support is present.
2614 * configure: Regenerate.
2615 * dbxread.c (aout_sym_fns): Add `sym_probe_fns' value.
2616 * elfread.c: Include `probe.h' and `arch-utils.h'.
2617 (probe_key): New variable.
2618 (elf_get_probes): New function.
2619 (elf_get_probe_argument_count): Likewise.
2620 (elf_evaluate_probe_argument): Likewise.
2621 (elf_compile_to_ax): Likewise.
2622 (elf_symfile_relocate_probe): Likewise.
2623 (stap_probe_key_free): Likewise.
2624 (elf_probe_fns): New variable.
2625 (elf_sym_fns): Add `sym_probe_fns' value.
2626 (elf_sym_fns_lazy_psyms): Likewise.
2627 (elf_sym_fns_gdb_index): Likewise.
2628 (_initialize_elfread): Initialize objfile cache for static
2629 probes.
2630 * gdb_vecs.h (struct probe): New forward declaration.
2631 (probe_p): New VEC declaration.
2632 * gdbarch.c: Regenerate.
2633 * gdbarch.h: Regenerate.
2634 * gdbarch.sh (stap_integer_prefix): New variable.
2635 (stap_integer_suffix): Likewise.
2636 (stap_register_prefix): Likewise.
2637 (stap_register_suffix): Likewise.
2638 (stap_register_indirection_prefix): Likewise.
2639 (stap_register_indirection_suffix): Likewise.
2640 (stap_gdb_register_prefix): Likewise.
2641 (stap_gdb_register_suffix): Likewise.
2642 (stap_is_single_operand): New function.
2643 (stap_parse_special_token): Likewise.
2644 (struct stap_parse_info): Forward declaration.
2645 * i386-tdep.c: Including headers needed to perform the parsing
2646 of SystemTap probes' arguments.
2647 (i386_stap_is_single_operand): New function.
2648 (i386_stap_parse_special_token): Likewise.
2649 (i386_elf_init_abi): Initializing proper fields used by SystemTap
2650 probes' arguments parser.
2651 * i386-tdep.h (i386_stap_is_single_operand): New function.
2652 (i386_stap_parse_special_token): Likewise.
2653 * machoread.c (macho_sym_fns): Add `sym_probe_fns' value.
2654 * mipsread.c (ecoff_sym_fns): Likewise.
2655 * objfiles.c (objfile_relocate1): Support relocation for static
2656 probes.
2657 * parse.c (prefixify_expression): Remove static declaration.
2658 (initialize_expout): Likewise.
2659 (reallocate_expout): Likewise.
2660 * parser-defs.h (initialize_expout): Declare function.
2661 (reallocate_expout): Likewise.
2662 (prefixify_expression): Likewise.
2663 * ppc-linux-tdep.c: Including headers needed to perform the parsing
2664 of SystemTap probes' arguments.
2665 (ppc_stap_is_single_operand): New function.
2666 (ppc_stap_parse_special_token): Likewise.
2667 (ppc_linux_init_abi): Initializing proper fields used by SystemTap
2668 probes' arguments parser.
2669 * probe.c: New file, for generic statically defined probe support.
2670 * probe.h: Likewise.
2671 * s390-tdep.c: Including headers needed to perform the parsing of
2672 SystemTap probes' arguments.
2673 (s390_stap_is_single_operand): New function.
2674 (s390_gdbarch_init): Initializing proper fields used by SystemTap
2675 probes' arguments parser.
2676 * somread.c (som_sym_fns): Add `sym_probe_fns' value.
2677 * stap-probe.c: New file, for SystemTap probe support.
2678 * stap-probe.h: Likewise.
2679 * symfile.h: Include `gdb_vecs.h'.
2680 (struct sym_probe_fns): New struct.
2681 (struct sym_fns) <sym_probe_fns>: New field.
2682 * symtab.c (init_sal): Initialize `probe' field.
2683 * symtab.h (struct probe): Forward declaration.
2684 (struct symtab_and_line) <probe>: New field.
2685 * tracepoint.c (start_tracing): Adjust semaphore on breakpoints
2686 locations.
2687 (stop_tracing): Likewise.
2688 * xcoffread.c (xcoff_sym_fns): Add `sym_probe_fns' value.
2689
2690 2012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
2691 Tom Tromey <tromey@redhat.com>
2692
2693 * ax-gdb.c (gen_expr): Clean up code to handle internal variables
2694 and to compile agent expressions.
2695 * infrun.c (siginfo_make_value): New argument `ignore'.
2696 (siginfo_funcs): New struct.
2697 (_initialize_infrun): New argument when calling
2698 `create_internalvar_type_lazy'.
2699 * thread.c (thread_id_make_value): New argument `ignore'.
2700 (thread_funcs): New struct.
2701 (_initialize_thread): New argument when calling
2702 `create_internalvar_type_lazy'.
2703 * tracepoint.c (sdata_make_value): New argument `ignore'.
2704 (sdata_funcs): New struct.
2705 (_initialize_tracepoint): New argument when calling
2706 `create_internalvar_type_lazy'.
2707 * value.c (make_value): New struct.
2708 (create_internalvar_type_lazy): New argument `data'.
2709 (compile_internalvar_to_ax): New function.
2710 (value_of_internalvar): Properly handling `make_value' case.
2711 (clear_internalvar): Likewise.
2712 (show_convenience): Adding `TRY_CATCH' block.
2713 * value.h (internalvar_make_value): Delete, replace by...
2714 (struct internalvar_funcs): ... this.
2715 (create_internalvar_type_lazy) <fun>: Delete argument.
2716 (create_internalvar_type_lazy) <funcs>, <data>: New arguments.
2717 (compile_internalvar_to_ax): New function.
2718 * windows-tdep.c (tlb_make_value): New argument `ignore'.
2719 (tlb_funcs): New struct.
2720 (_initialize_windows_tdep): New argument when calling
2721 `create_internalvar_type_lazy'.
2722
2723 2012-04-27 Mark Wielaard <mjw@redhat.com>
2724
2725 * dwarf2read.c (dwarf2_get_pc_bounds): Check DW_AT_high_pc form to
2726 see whether it is an address or a constant offset from DW_AT_low_pc.
2727 (dwarf2_record_block_ranges): Likewise.
2728 (read_partial_die): Likewise.
2729
2730 2012-04-26 Mark Wielaard <mjw@redhat.com>
2731
2732 * MAINTAINERS (Write After Approval): Add myself to the list.
2733
2734 2012-04-26 Maciej W. Rozycki <macro@codesourcery.com>
2735
2736 * proc-utils.h (proc_prettyprint_signalset): New prototype.
2737 (proc_prettyprint_signal): Likewise.
2738 (proc_prettyprint_faultset): Likewise.
2739 (proc_prettyprint_fault): Likewise.
2740 (proc_prettyprint_actionset): Likewise.
2741 (proc_prettyprint_flags): Move to new proc-flags.c section.
2742 (proc_prettyfprint_flags): New prototype.
2743 * procfs.c (proc_nsysarg, proc_sysargs): Add prototypes.
2744 (proc_syscall, proc_cursig): Likewise.
2745 (proc_set_kill_on_last_close): Likewise.
2746 (proc_unset_kill_on_last_close): Likewise.
2747 (proc_set_watchpoint): Make static.
2748 (proc_delete_dead_threads): Likewise.
2749 (procfs_set_watchpoint): Likewise.
2750 (_initialize_procfs): Add prototype.
2751 * proc-events.c: Include proc-utils.h.
2752 (init_syscall_table): Make static.
2753 * proc-api.c (_initialize_proc_api): Add prototype.
2754 * proc-flags.c: Include proc-utils.h.
2755
2756 2012-04-26 Maciej W. Rozycki <macro@codesourcery.com>
2757
2758 * configure.ac: Add AC_ARG_PROGRAM.
2759 * configure: Regenerate.
2760
2761 2012-04-26 Jan Kratochvil <jan.kratochvil@redhat.com>
2762
2763 Fix DW_AT_lower_bound defaults for DWARF-4+.
2764 * dwarf2read.c (read_subrange_type): Remove initialization of low and
2765 high. New variable low_default_is_valid. Implement DWARF-4+
2766 DW_AT_lower_bound defaults. Print complaint for DW_AT_lower_bound with
2767 no default by the DWARF standard.
2768
2769 2012-04-26 Maciej W. Rozycki <macro@mips.com>
2770 Maciej W. Rozycki <macro@codesourcery.com>
2771
2772 * infrun.c (handle_inferior_event): Move the check for return
2773 trampolines ahead of the check for function trampolines.
2774 * mips-tdep.h (MIPS_S2_REGNUM, MIPS_GP_REGNUM): New macros.
2775 * mips-tdep.c (mips_str_mips16_call_stub): New variable.
2776 (mips_str_mips16_ret_stub): Likewise.
2777 (mips_str_call_fp_stub): Likewise.
2778 (mips_str_call_stub): Likewise.
2779 (mips_str_fn_stub): Likewise.
2780 (mips_str_pic): Likewise.
2781 (mips_in_frame_stub): New function.
2782 (mips_unwind_pc): Return the return address rather than the PC
2783 if the PC of an intermediate frame is inside a call thunk.
2784 (mips_is_stub_suffix): New function.
2785 (mips_is_stub_mode): Likewise.
2786 (mips_get_mips16_fn_stub_pc): Likewise.
2787 (mips_skip_mips16_trampoline_code): Update to handle all the
2788 currently generated stub types. Don't recurse into __fn_stub
2789 thunks. Remove heuristics to handle stubs beyond etext/_etext.
2790 Use cooked register accesses.
2791 (mips_in_return_stub): Reintroduce function.
2792 (mips_skip_trampoline_code): Traverse trampolines recursively.
2793 (mips_gdbarch_init): Handle MIPS16 return trampolines.
2794
2795 2012-04-26 Joel Brobecker <brobecker@adacore.com>
2796
2797 GDB 7.4.1 released.
2798
2799 2012-04-26 Jonathan Larmour <jifl@eCosCentric.com>
2800
2801 * arm-tdep.h (VFP_REGISTER_SIZE): Define.
2802 * features/arm-with-m-vfp-d16.xml: New file. Describes
2803 Cortex-M with VFPv4-sp-d16 FPU register layout.
2804 * features/Makefile (WHICH): Add arm-with-m-vfp-d16.
2805 * features/arm-with-m-vfp-d16.c: New. Generated from above.
2806 * arm-tdep.c: Include arm-with-m-vfp-d16.c.
2807 (arm-register_g_packet_guesses): Add vfp-d16 guess.
2808 (_initialise_arm_tdep): Initialize arm-with-m-vfp-d16 tdesc.
2809
2810 2012-04-25 Doug Evans <dje@google.com>
2811
2812 * cli/cli-decode.c (print_doc_line): Use stream instead of
2813 current_uiout.
2814
2815 2012-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
2816
2817 * features/arm-with-iwmmxt.c: Regenerate.
2818 * features/arm-with-m-fpa-layout.c: Likewise.
2819 * features/arm-with-m.c: Likewise.
2820 * features/arm-with-neon.c: Likewise.
2821 * features/arm-with-vfpv2.c: Likewise.
2822 * features/arm-with-vfpv3.c: Likewise.
2823 * features/mips-dsp-linux.c: Likewise.
2824 * features/mips-linux.c: Likewise.
2825 * features/mips64-dsp-linux.c: Likewise.
2826 * features/mips64-linux.c: Likewise.
2827 * features/s390-linux32.c: Likewise.
2828 * features/s390-linux32v1.c: Likewise.
2829 * features/s390-linux32v2.c: Likewise.
2830 * features/s390-linux64.c: Likewise.
2831 * features/s390-linux64v1.c: Likewise.
2832 * features/s390-linux64v2.c: Likewise.
2833 * features/s390x-linux64.c: Likewise.
2834 * features/s390x-linux64v1.c: Likewise.
2835 * features/s390x-linux64v2.c: Likewise.
2836 * features/tic6x-c62x-linux.c: Likewise.
2837 * features/tic6x-c62x.c: Likewise.
2838 * features/tic6x-c64x-linux.c: Likewise.
2839 * features/tic6x-c64x.c: Likewise.
2840 * features/tic6x-c64xp-linux.c: Likewise.
2841 * features/tic6x-c64xp.c: Likewise.
2842 * target-descriptions.c: Only generate `field_type' and `type'
2843 variables when needed.
2844
2845 2012-04-25 Fredrik Hederstierna <fredrikh.hederstierna@securitas-direct.com>
2846
2847 * cli/cli-cmds.c (cd_command): Use memmove instead of strcpy.
2848
2849 2012-04-25 Doug Evans <dje@google.com>
2850
2851 Initial pass at Go language support.
2852 * NEWS: Mention Go.
2853 * Makefile.in (SFILES): Add go-exp.y, go-lang.c, go-typeprint.c,
2854 go-valprint.c.
2855 (COMMON_OBS): Add go-lang.o, go-val.print.o, go-typeprint.o.
2856 (YYFILES): Add go-exp.c.
2857 (YYOBJ): Add go-exp.o.
2858 (local-maintainer-clean): Delete go-exp.c.
2859 * defs.h (enum language): Add language_go.
2860 * dwarf2read.c: #include "go-lang.h".
2861 (fixup_go_packaging): New function.
2862 (process_full_comp_unit): Call it when processing Go CUs.
2863 (dwarf2_physname): Add Go support.
2864 (read_file_scope): Handle missing language spec for GNU Go.
2865 (set_cu_language): Handle DW_LANG_Go.
2866 * go-exp.y: New file.
2867 * go-lang.h: New file.
2868 * go-lang.c: New file.
2869 * go-typeprint.c: New file.
2870 * go-valprint.c: New file.
2871 * symtab.c: #include "go-lang.h".
2872 (symbol_set_language): Handle language_go.
2873 (symbol_find_demangled_name, symbol_set_names): Ditto.
2874 (symbol_natural_name, demangle_for_lookup, find_main_name): Ditto.
2875
2876 2012-04-24 Jim Meyering <meyering@redhat.com>
2877
2878 avoid a few strncpy-induced buffer overruns
2879 * procfs.c (procfs_make_note_section): Be sure to NUL-terminate
2880 fname and psargs before trying to concatenate.
2881 * tui/tui-stack.c (tui_get_function_from_frame): NUL-terminate
2882 "name" before applying strchr.
2883
2884 2012-04-25 Siva Chandra Reddy <sivachandra@google.com>
2885
2886 * CONTRIBUTE: Use unified diff instead of context diff when
2887 generating patches.
2888
2889 2012-04-24 Maciej W. Rozycki <macro@codesourcery.com>
2890
2891 * mips-tdep.c (mips_about_to_return): Remove dead MIPS16 support
2892 code. Handle JR.HB correctly.
2893
2894 2012-04-24 Maciej W. Rozycki <macro@codesourcery.com>
2895
2896 * mips-tdep.c
2897 (is_mips16_addr, unmake_mips16_addr, make_mips16_addr): Group
2898 with the other MIPS16 helpers.
2899
2900 2012-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
2901
2902 * observer.sh: Conditionally declare `args', thus cleaning up
2903 unused instances of this variable.
2904
2905 2012-04-24 Yao Qi <yao@codesourcery.com>
2906
2907 Revert this patch to allow breakpoint always-inserted
2908 in record target.
2909 2011-12-05 Pedro Alves <pedro@codesourcery.com>
2910 * breakpoint.c: Include record.h.
2911 (breakpoints_always_inserted_mode): Return false when the record
2912 target is in use.
2913
2914 * breakpoint.c (iterate_over_bp_locations): New.
2915 * breakpoint.h: Declare.
2916 New typedef walk_bp_location_callback.
2917 * record.c (record_open): Call record_init_record_breakpoints.
2918 (record_sync_record_breakpoints): New.
2919 (record_init_record_breakpoints): New.
2920 * NEWS: Mention supporting breakpoint always-inserted mode in
2921 record target.
2922
2923 2012-04-24 Marc Khouzam <marc.khouzam@ericsson.com>
2924
2925 * mi/mi-main.c (mi_cmd_execute): Choose a live thread not just
2926 any thread.
2927
2928 2012-04-24 Yao Qi <yao@codesourcery.com>
2929
2930 * breakpoint.c (ep_is_catchpoint): Renamed to ...
2931 (is_catchpoint): ... it.
2932 (print_one_breakpoint_location): Caller update.
2933 * breakpoint.h: Update declaration.
2934
2935 2012-04-23 David S. Miller <davem@davemloft.net>
2936
2937 * configure.tgt (sparc-*-linux*): Set build_gdbserver to yes.
2938
2939 2012-04-23 Tom Tromey <tromey@redhat.com>
2940
2941 * buildsym.c (add_free_pendings): Remove.
2942 * buildsym.h (add_free_pendings): Remove.
2943
2944 2012-04-23 Doug Evans <dje@google.com>
2945
2946 * dwarf2read.c (partial_die_full_name): Record DW_FORM_ref_addr in
2947 attr.u.unsnd instead of attr.u.addr.
2948 (read_attribute_value) Ditto for cases DW_FORM_ref_addr,
2949 DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4, DW_FORM_reg8,
2950 DW_FORM_ref_udata.
2951 (dump_die_shallow): Update cases DW_FORM_ref_addr,
2952 DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4. Add cases DW_FORM_ref8,
2953 DW_FORM_ref_udata.
2954 (dwarf2_get_ref_die_offset): Use DW_UNSND for reference attributes.
2955
2956 2012-04-23 Maciej W. Rozycki <macro@codesourcery.com>
2957
2958 * mips-tdep.c (mips_n32n64_return_value): Fix coding style.
2959 (mips_o32_return_value): Likewise.
2960 (mips_o64_return_value): Likewise.
2961
2962 2012-04-21 Paul Hilfinger <hilfinger@adacore.com>
2963
2964 * ada-lang.c (ada_evaluate_subexp): Add cases for
2965 TYPE_CODE_INTERNAL_FUNCTION and for TYPE_GNU_IFUNC, following
2966 their treatment in eval.c.
2967
2968 2012-04-21 David S. Miller <davem@davemloft.net>
2969
2970 * sparc-tdep.c (X_DISP10): Define.
2971 (sparc_analyze_control_transfer): Handle compare-and-branch.
2972
2973 2012-04-21 Jonathan Larmour <jifl@eCosCentric.com>
2974
2975 * features/Makefile (WHICH): Add arm-with-m and arm-with-m-fpa-layout.
2976 * arm-tdep.c (arm_register_g_packet_guesses): Fix comment.
2977
2978 2012-04-20 Nigel Stephens <nigel@mips.com>
2979 Maciej W. Rozycki <macro@codesourcery.com>
2980
2981 * mips-tdep.c (mips_float_register_p): New function.
2982 (mips_convert_register_float_case_p): Use mips_float_register_p.
2983 (mips_register_type): Likewise.
2984 (mips_print_register): Likewise.
2985 (print_gp_register_row): Likewise.
2986 (mips_print_registers_info): Likewise.
2987
2988 2012-04-20 Shun-Yen Lu <dark.asparagus@gmail.com>
2989
2990 * mips-tdep.c (mips_elf_make_msymbol_special): Fix identification
2991 of mips16 symbols.
2992
2993 2012-04-20 Andrew Pinski <apinski@cavium.com>
2994
2995 * MAINTAINERS (Write After Approval): Add myself to the list.
2996
2997 2012-04-20 Sergio Durigan Junior <sergiodj@redhat.com>
2998
2999 * MAINTAINERS: Update my e-mail address.
3000
3001 2012-04-20 Pedro Alves <palves@redhat.com>
3002
3003 * acx_configure_dir.m4 (ACX_CONFIGURE_DIR): Handle absolute
3004 $srcdir.
3005 * configure: Regenerate.
3006
3007 2012-04-20 Sergio Durigan Junior <sergiodj@redhat.com>
3008
3009 * cp-support.h: Include `gdb_vecs.h'. Delete `const_char_ptr' VEC
3010 declaration.
3011 * gdb_vecs.h: Declare `const_char_ptr' VEC.
3012
3013 2012-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
3014
3015 Fix compilation compatibility with python-2.4
3016 * python/py-type.c (convert_field): Cast ADDRSTRING for
3017 PyObject_SetAttrString as non-const. New comment.
3018
3019 2012-04-19 Tom Tromey <tromey@redhat.com>
3020
3021 * top.c (quit_target): Use all_cleanups.
3022 * main.c (captured_command_loop): Use all_cleanups.
3023 * exceptions.c (throw_exception): Use all_cleanups.
3024
3025 2012-04-19 Pedro Alves <palves@redhat.com>
3026
3027 * Makefile.in (GNULIB_BUILDDIR): New.
3028 (LIBGNU, INCGNU, GNULIB_H): Adjust.
3029 (SUBDIRS): Add $(GNULIB_BUILDDIR).
3030 (CLEANDIRS). Remove gnulib/import.
3031 (REQUIRED_SUBDIRS): Replace gnulib/import with $(GNULIB_BUILDDIR).
3032 (all-lib): Ditto.
3033 (distclean): Remove the $(GNULIB_BUILDDIR) directory.
3034 (gnulib/import/Makefile): Replace gnulib/import with
3035 $(GNULIB_BUILDDIR). Set CONFIG_FILES to just Makefile.
3036 (ACLOCAL_AMFLAGS): Remove '-I gnulib/import/m4'.
3037 (aclocal_m4_deps): Remove the gnulib dependencies. Add
3038 acx_configure_dir.m4.
3039 * acinclude.m4: Include acx_configure_dir.m4.
3040 * acx_configure_dir.m4: New file.
3041 * aclocal.m4: Regenerate.
3042 * configure.ac: Remove gl_EARLY, gl_INIT and AM_INIT_AUTOMAKE
3043 calls. Configure gnulib using ACX_CONFIGURE_DIR.
3044 (GNULIB): New variable.
3045 (GNULIB_STDINT_H): Adjust.
3046 (AC_OUTPUT): Don't output gnulib/Makefile.
3047 * gdb/defs.h: Include build-gnulib/config.h.
3048 * aclocal.m4: Regenerate.
3049 * config.in: Regenerate.
3050 * configure: Regenerate.
3051
3052 * gnulib/Makefile.in: New file.
3053 * gnulib/configure.ac: New file.
3054 * gnulib/aclocal.m4: New file.
3055 * gnulib/config.in: New file.
3056 * gnulib/configure: New file.
3057 * gnulib/: Re-run gnulib-tool to adjust.
3058
3059 2012-04-19 Doug Evans <dje@google.com>
3060
3061 * cleanups.h (struct cleanup): Move to cleanups.c.
3062 (make_cleanup_dtor_ftype): New typedef.
3063 (make_cleanup_dtor): Use it.
3064 (ALL_CLEANUPS): Replace with ...
3065 (all_cleanups): ... this. Declare. All uses updated.
3066 * cleanups.c: #include "gdb_assert.h".
3067 (sentinel_cleanup): New static global.
3068 (SENTINEL_CLEANUP): Define.
3069 (cleanup_chain, final_cleanup_chain): Initialize to SENTINEL_CLEANUP.
3070 (make_my_cleanup2): Assert result is non-NULL.
3071 (all_cleanups): New function.
3072 (save_my_cleanups): Initialize new chain to SENTINEL_CLEANUP instead
3073 of NULL.
3074
3075 2012-04-19 Pedro Alves <palves@redhat.com>
3076
3077 * Makefile.in (HFILES_NO_SRCDIR): Remove gnulib/wchar.in.h.
3078 Adjust paths to gnulib imported files.
3079
3080 2012-04-19 Pedro Alves <palves@redhat.com>
3081
3082 * gnulib/: Move whole directory ...
3083 * gnulib/import/: ... here, and re-rerun gnulib-tool to adjust.
3084 * Makefile.in (LIBGNU, INCGNU, GNULIB_H, CLEANDIRS)
3085 (REQUIRED_SUBDIRS, all-lib, gnulib/Makefile, ACLOCAL_AMFLAGS)
3086 (aclocal_m4_deps): Adjust.
3087 * aclocal.m4: Regenerate.
3088 * configure: Regenerate.
3089 * configure.ac: Adjust AC_OUTPUT output.
3090
3091 2012-04-19 Yao Qi <yao@codesourcery.com>
3092
3093 * Makefile.in (SFILES): Add common/vec.c and remove vec.c.
3094 (vec.o): New rule.
3095 * vec.c: Move it ...
3096 * common/vec.c: ... here.
3097 * vec.h: Move it ...
3098 * common/vec.h: ... here.
3099
3100 2012-04-19 Yao Qi <yao@codesourcery.com>
3101
3102 * gdb-code-style.el: New.
3103
3104 2012-04-18 Pedro Alves <palves@redhat.com>
3105
3106 Update gnulib from latest git.
3107 (639ea5ae15e39fe48d43e04864b2997301e4b969)
3108
3109 * gnulib/Makefile.am: Update.
3110 * gnulib/dummy.c: Update.
3111 * gnulib/extra/arg-nonnull.h: Update.
3112 * gnulib/extra/c++defs.h: Update.
3113 * gnulib/extra/update-copyright: Update.
3114 * gnulib/extra/warn-on-use.h: Update.
3115 * gnulib/inttypes.in.h: Update.
3116 * gnulib/m4/00gnulib.m4: Update.
3117 * gnulib/m4/extensions.m4: Update.
3118 * gnulib/m4/gnulib-cache.m4: Update.
3119 * gnulib/m4/gnulib-common.m4: Update.
3120 * gnulib/m4/gnulib-comp.m4: Update.
3121 * gnulib/m4/gnulib-tool.m4: Update.
3122 * gnulib/m4/include_next.m4: Update.
3123 * gnulib/m4/inttypes-pri.m4: Update.
3124 * gnulib/m4/inttypes.m4: Update.
3125 * gnulib/m4/longlong.m4: Update.
3126 * gnulib/m4/memchr.m4: Update.
3127 * gnulib/m4/memmem.m4: Update.
3128 * gnulib/m4/mmap-anon.m4: Update.
3129 * gnulib/m4/multiarch.m4: Update.
3130 * gnulib/m4/onceonly.m4: Update.
3131 * gnulib/m4/stddef_h.m4: Update.
3132 * gnulib/m4/stdint.m4: Update.
3133 * gnulib/m4/string_h.m4: Update.
3134 * gnulib/m4/warn-on-use.m4: Update.
3135 * gnulib/m4/wchar_h.m4: Update.
3136 * gnulib/m4/wchar_t.m4: Update.
3137 * gnulib/m4/wint_t.m4: Update.
3138 * gnulib/memchr.c: Update.
3139 * gnulib/memmem.c: Update.
3140 * gnulib/stddef.in.h: Update.
3141 * gnulib/stdint.in.h: Update.
3142 * gnulib/str-two-way.h: Update.
3143 * gnulib/string.in.h: Update.
3144 * gnulib/wchar.in.h: Update.
3145
3146 * gnulib/extra/arg-nonnull.h: Delete.
3147 * gnulib/extra/c++defs.h: Delete.
3148 * gnulib/extra/warn-on-use.h: Delete.
3149 * gnulib/m4/wchar_h.m4: Delete.
3150 * gnulib/m4/wint_t.m4: Delete.
3151 * gnulib/wchar.in.h: Delete.
3152
3153 * gnulib/extra/snippets/arg-nonnull.h: New.
3154 * gnulib/extra/snippets/c++defs.h: New.
3155 * gnulib/extra/snippets/warn-on-use.h: New.
3156
3157 * aclocal.m4: Regenerate.
3158 * config.in: Regenerate.
3159 * configure: Regenerate.
3160 * gnulib/Makefile.in: Regenerate.
3161
3162 2012-04-18 Pedro Alves <palves@redhat.com>
3163
3164 Reimport the update-copyright module from gnulib
3165 (250b80067c1e1d8faa0c42fb572f721975b929c5).
3166
3167 * configure: Regenerate.
3168 * gnulib/Makefile.am: Update.
3169 * gnulib/Makefile.in: Regenerate.
3170 * gnulib/extra/update-copyright: Update.
3171 * gnulib/m4/gnulib-cache.m4: Update.
3172 * gnulib/m4/gnulib-comp.m4: Update.
3173
3174 2012-04-18 Tristan Gingold <gingold@adacore.com>
3175
3176 * configure.ac (aix): Put -lpthread into libs.
3177 * configure: Regenerate.
3178
3179 2012-04-18 Tom Tromey <tromey@redhat.com>
3180
3181 * linespec.c (convert_linespec_to_sals): Don't use
3182 SYMBOL_OBJ_SECTION.
3183 (compare_msymbols): Arguments are minsym_and_objfile, not
3184 minimal_symbol*. Don't use SYMBOL_OBJ_SECTION.
3185
3186 2012-04-18 Pedro Alves <palves@redhat.com>
3187
3188 Revert gnulib/ part of:
3189 2011-01-01 Joel Brobecker <brobecker@adacore.com>
3190 Copyright year update in most files (performed by copyright.sh).
3191
3192 2012-04-18 Jan Kratochvil <jan.kratochvil@redhat.com>
3193
3194 Fix 64-bit constants on 32-bit hosts.
3195 * dwarf2read.c (read_unsigned_leb128): Change declaration return type
3196 from unsigned long to ULONGEST.
3197 (read_signed_leb128): Change declaration return type from long to
3198 LONGEST.
3199 (dwarf2_const_value_attr): Change declaration parameter value from long
3200 to LONGEST.
3201 (dwarf2_compute_name): Change variable value from long to LONGEST.
3202 (read_unsigned_leb128): Change return type, variable result and some
3203 casts from unsigned long to ULONGEST.
3204 (read_signed_leb128): Change return type, variable result and some
3205 casts from long to LONGEST.
3206 (dwarf2_const_value_data, dwarf2_const_value_attr): Change parameter
3207 value from long to LONGEST.
3208 (dwarf2_const_value): Change variable value from long to LONGEST.
3209 * symmisc.c (print_symbol): Change SYMBOL_VALUE format strings to use
3210 plongest and hex_string.
3211 * symtab.h (struct general_symbol_info): Change ivalue from long to
3212 LONGEST, remove the comment.
3213 * tracepoint.c (validate_actionline, collect_symbol, scope_info):
3214 Change SYMBOL_VALUE format strings to use plongest and hex_string.
3215
3216 2012-04-18 Siddhesh Poyarekar <siddhesh@redhat.com>
3217
3218 PR symtab/7259:
3219 * ada-exp.y (convert_char_literal): Use TYPE_FIELD_ENUMVAL.
3220 * ada-lang.c (ada_discrete_type_high_bound)
3221 (ada_discrete_type_low_bound): Fix function comment. Use
3222 TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
3223 (ada_identical_enum_types_p): Use TYPE_FIELD_ENUMVAL.
3224 (pos_atr, value_val_atr): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
3225 * ada-typeprint.c (print_enum_type): Change variable lastval to LONGEST.
3226 Use TYPE_FIELD_ENUMVAL.
3227 * ada-valprint.c (print_optional_low_bound, ada_print_scalar)
3228 (ada_val_print_1): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
3229 * c-typeprint.c (c_type_print_base): Move variable lastval to inner
3230 block, change it to LONGEST. Use TYPE_FIELD_ENUMVAL for
3231 TYPE_CODE_ENUM.
3232 * coffread.c (coff_read_enum_type): Use SET_FIELD_ENUMVAL.
3233 * dwarf2read.c (process_enumeration_scope): Likewise.
3234 * gdb-gdb.py (TypeFlagsPrinter): Use field.enumval instead of
3235 field.bitpos.
3236 (class StructMainTypePrettyPrinter): Support also
3237 FIELD_LOC_KIND_ENUMVAL.
3238 * gdbtypes.c (get_discrete_bounds): Use TYPE_FIELD_ENUMVAL for
3239 TYPE_CODE_ENUM.
3240 (recursive_dump_type): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
3241 (copy_type_recursive): Support also FIELD_LOC_KIND_ENUMVAL.
3242 * gdbtypes.h (enum field_loc_kind): New FIELD_LOC_KIND_ENUMVAL.
3243 (struct main_type.flds_bnds.fields.loc): Adjust bitpos comment. New
3244 field enumval.
3245 (struct main_type.flds_bnds.bields): Adjust loc_kind and bitsize to
3246 accommodate enumval.
3247 (struct call_site): Adjust loc_kind to accommodate enumval.
3248 (FIELD_ENUMVAL, FIELD_ENUMVAL_LVAL, SET_FIELD_ENUMVAL)
3249 (TYPE_FIELD_ENUMVAL): New macros.
3250 * m2-typeprint.c (m2_enum): Use TYPE_FIELD_ENUMVAL.
3251 * mdebugread.c (parse_symbol): Use TYPE_FIELD_ENUMVAL for
3252 TYPE_CODE_ENUM.
3253 * p-typeprint.c (pascal_type_print_base): Likewise.
3254 * python/lib/gdb/printing.py (class FlagEnumerationPrinter): Use
3255 enumval.
3256 * python/lib/gdb/types.py (make_enum_dict): Likewise.
3257 * python/py-type.c (convert_field): New variable addrstring. Use
3258 TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
3259 (check_types_equal): Support also FIELD_LOC_KIND_ENUMVAL.
3260 * stabsread.c (read_enum_type): Use SET_FIELD_ENUMVAL.
3261 * typepint.c (print_type_scalar): Use TYPE_FIELD_ENUMVAL for
3262 TYPE_CODE_ENUM.
3263 * valprint.c (generic_val_print): Likewise.
3264
3265 2012-04-17 Doug Evans <dje@google.com>
3266
3267 * dwarf2read.c (lookup_signatured_type): Return NULL instead of 0.
3268
3269 * dwarf2read.c: Whitespace fixes.
3270 (lookup_signatured_type): Tweak comment.
3271 (get_die_type_at_offset): Fix comment.
3272
3273 2012-04-17 Joel Brobecker <brobecker@adacore.com>
3274
3275 * xcoffread.c (xcoff_secnum_to_sections): New function.
3276 (secnum_to_section, secnum_to_bfd_section): Reimplement
3277 using xcoff_secnum_to_sections. Rename "secnum" parameter
3278 into "n_scnum".
3279 (RECORD_MINIMAL_SYMBOL): Delete.
3280 (record_minimal_symbol): New function.
3281 (scan_xcoff_symtab): Replace uses of RECORD_MINIMAL_SYMBOL
3282 by call to record_minimal_symbol and set misc_func_recorded
3283 to 1. Set last_csect_sec to the XCOFF section index instead
3284 of GDB's section_offset index. Update calls to
3285 prim_record_minimal_symbol_and_info to pass the BFD section
3286 as well.
3287
3288 2012-04-17 Joel Brobecker <brobecker@adacore.com>
3289
3290 * xcoffread.c (read_xcoff_symtab): Delete variables
3291 last_csect_val and last_csect_sec and associated code.
3292
3293 2012-04-17 Doug Evans <dje@google.com>
3294
3295 * cleanups.c (make_my_cleanup,make_my_cleanup2): Make static.
3296 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
3297 * cleanups.h (make_my_cleanup,make_my_cleanup2): Delete
3298 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Delete.
3299
3300 * cleanups.h: New file.
3301 * cleanups.c: New file.
3302 * Makefile.in (SFILES): Add cleanups.c.
3303 (HFILES_NO_SRCDIR): Add cleanups.h.
3304 (COMMON_OBS): Add cleanups.o.
3305 * defs.h (struct cleanup): Moved to cleanups.h.
3306 (do_cleanups,do_final_cleanups): Ditto.
3307 (discard_cleanups,discard_final_cleanups): Ditto
3308 (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
3309 (save_cleanups,save_final_cleanups): Ditto.
3310 (restore_cleanups,restore_final_cleanups): Ditto.
3311 (null_cleanup): Ditto.
3312 (make_my_cleanup,make_my_cleanup2): Ditto.
3313 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
3314 * utils.c (cleanup_chain,final_cleanup_chain): Moved to cleanups.c.
3315 (do_cleanups,do_final_cleanups): Ditto.
3316 (discard_cleanups,discard_final_cleanups): Ditto
3317 (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
3318 (save_cleanups,save_final_cleanups): Ditto.
3319 (restore_cleanups,restore_final_cleanups): Ditto.
3320 (null_cleanup): Ditto.
3321 (make_my_cleanup,make_my_cleanup2): Ditto.
3322 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
3323
3324 * utils.c (make_cleanup_freeargv): Use make_cleanup instead of
3325 make_my_cleanup.
3326 (make_cleanup_dyn_string_delete): Ditto.
3327 (make_cleanup_ui_file_delete): Ditto.
3328 (make_cleanup_ui_out_redirect_pop): Ditto.
3329 (make_cleanup_free_section_addr_info): Ditto.
3330 (make_cleanup_restore_integer): Ditto.
3331 (make_cleanup_unpush_target): Ditto.
3332 (make_cleanup_value_free_to_mark): Ditto.
3333 (make_cleanup_value_free): Ditto.
3334 (make_cleanup_free_so): Ditto.
3335
3336 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
3337
3338 New option "set debug auto-load".
3339 * NEWS: New commands "set debug auto-load" and "show debug auto-load".
3340 * auto-load.c (debug_auto_load, show_debug_auto_load: New.
3341 (auto_load_safe_path_vec_update)
3342 (filename_is_in_auto_load_safe_path_vec): Call fprintf_unfiltered
3343 if DEBUG_AUTO_LOAD.
3344 (file_is_auto_load_safe): New parameters debug_fmt and ....
3345 Call fprintf_unfiltered if DEBUG_AUTO_LOAD.
3346 (source_gdb_script_for_objfile): Extend the file_is_auto_load_safe
3347 caller by explanatory string.
3348 (_initialize_auto_load): Register "set debug auto-load".
3349 * auto-load.h (file_is_auto_load_safe): New parameters debug_fmt
3350 and ....
3351 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
3352 (try_thread_db_load_from_dir): Extend the file_is_auto_load_safe caller
3353 by explanatory string.
3354 * main.c (captured_main): Likewise.
3355 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile)
3356 (source_section_scripts): Likewise.
3357
3358 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
3359
3360 New option "set auto-load safe-path".
3361 * NEWS: New commands "set auto-load safe-path"
3362 and "show auto-load safe-path".
3363 * auto-load.c: Include gdb_vecs.h, readline/tilde.h and completer.h.
3364 (auto_load_safe_path, auto_load_safe_path_vec)
3365 (auto_load_safe_path_vec_update, set_auto_load_safe_path)
3366 (show_auto_load_safe_path, add_auto_load_safe_path, filename_is_in_dir)
3367 (filename_is_in_auto_load_safe_path_vec, file_is_auto_load_safe): New.
3368 (source_gdb_script_for_objfile): New variable is_safe. Call
3369 file_is_auto_load_safe. Return if it is not.
3370 (struct loaded_script): New field loaded.
3371 (maybe_add_script): Add parameter loaded. Initialize SLOT with it.
3372 (print_script): Use LOADED indicator instead of FULL_PATH. Change
3373 output "Missing" to "No".
3374 (_initialize_auto_load): New variable cmd. Initialize
3375 auto_load_safe_path. Register "set auto-load safe-path",
3376 "show auto-load safe-path" and "add-auto-load-safe-path".
3377 * auto-load.h (maybe_add_script): Add parameter loaded.
3378 (file_is_auto_load_safe): New declaration.
3379 * config.in: Regenerate.
3380 * configure: Regenerate.
3381 * configure.ac: New parameters --with-auto-load-safe-path
3382 and --without-auto-load-safe-path.
3383 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
3384 (try_thread_db_load_from_dir): Check file_is_auto_load_safe first.
3385 * main.c (captured_main): Check file_is_auto_load_safe for
3386 LOCAL_GDBINIT.
3387 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile): New
3388 variable is_safe. Call file_is_auto_load_safe. Return if it is not.
3389 (source_section_scripts): Call file_is_auto_load_safe. Return if it is
3390 not.
3391
3392 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
3393
3394 auto-load: Implementation.
3395 * NEWS: New descriptions for "info auto-load",
3396 "info auto-load gdb-scripts", "info auto-load python-scripts",
3397 "info auto-load local-gdbinit" and "info auto-load libthread-db".
3398 Deprecate "info auto-load-scripts", "set auto-load-scripts on|off"
3399 and "show auto-load-scripts". New description for "set auto-load",
3400 "show auto-load", "set auto-load gdb-scripts",
3401 "show auto-load gdb-scripts", "set auto-load python-scripts",
3402 "show auto-load python-scripts", "set auto-load local-gdbinit",
3403 "show auto-load local-gdbinit", "set auto-load libthread-db" and
3404 "show auto-load libthread-db".
3405 * auto-load.c: Remove include python/python-internal.h. Add includes
3406 exceptions.h, cli/cli-script.h, gdbcmd.h, cli/cli-decode.h and
3407 cli/cli-setshow.h.
3408 (GDB_AUTO_FILE_NAME, source_gdb_script_for_objfile)
3409 (auto_load_gdb_scripts, show_auto_load_gdb_scripts): New.
3410 (gdbpy_global_auto_load): Rename to ...
3411 (global_auto_load): ... here.
3412 (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
3413 (auto_load_local_gdbinit_loaded, show_auto_load_local_gdbinit)
3414 (script_language_gdb, source_gdb_script_for_objfile): New.
3415 (struct loaded_script): New field language.
3416 (hash_loaded_script_entry, eq_loaded_script_entry): Calculate also
3417 LANGUAGE.
3418 (maybe_add_script): Add parameter language. Drop redundant
3419 entry.full_path initialization. Initialize entry.language and
3420 (*slot)->language.
3421 (auto_load_objfile_script): Change parameter suffix to language.
3422 Remove the call of maybe_add_script.
3423 Call language->source_script_for_objfile.
3424 (load_auto_scripts_for_objfile, struct collect_matching_scripts_data):
3425 New.
3426 (collect_matching_scripts): Adjust it for
3427 struct collect_matching_scripts_data.
3428 (auto_load_info_scripts_pattern_nl): New variable.
3429 (info_auto_load_scripts): Rename to ...
3430 (auto_load_info_scripts): ... here, add parameter language. Adjust it
3431 for struct collect_matching_scripts_data.
3432 (info_auto_load_gdb_scripts, info_auto_load_local_gdbinit)
3433 (set_auto_load_cmd, auto_load_set_cmdlist_get, show_auto_load_cmd)
3434 (auto_load_show_cmdlist_get, info_auto_load_cmd)
3435 (auto_load_info_cmdlist_get): New.
3436 (_initialize_auto_load): Move add_info of "auto-load-scripts" to
3437 python/py-auto-load.c. New installment for "set auto-load gdb-scripts",
3438 "info auto-load gdb-scripts", "set auto-load local-gdbinit" and
3439 "info auto-load local-gdbinit".
3440 * auto-load.h (struct script_language): New.
3441 (gdbpy_global_auto_load): Rename to ...
3442 (global_auto_load): ... here.
3443 (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
3444 (auto_load_local_gdbinit_loaded): New declarations.
3445 (maybe_add_script): New parameter language.
3446 (auto_load_objfile_script): Change parameter suffix to language.
3447 (load_auto_scripts_for_objfile, auto_load_info_scripts_pattern_nl)
3448 (auto_load_info_scripts, auto_load_set_cmdlist_get)
3449 (auto_load_show_cmdlist_get, auto_load_info_cmdlist_get): New
3450 declarations.
3451 * linux-thread-db.c: Include auto-load.h and ctype.h.
3452 (auto_load_thread_db, show_auto_load_thread_db): New.
3453 (struct thread_db_info): New field filename.
3454 (delete_thread_db_info): Call xfree for FILENAME.
3455 (try_thread_db_load): Initialize FILENAME.
3456 (try_thread_db_load_from_pdir, try_thread_db_load_from_dir): Return
3457 if !AUTO_LOAD_THREAD_DB.
3458 (info_auto_load_libthread_db_compare, info_auto_load_libthread_db): New.
3459 (_initialize_thread_db): Install auto_load_thread_db
3460 as "set auto-load libthread-db" and install info_auto_load_libthread_db
3461 as "info auto-load libthread-db".
3462 * main.c (captured_main): Rename gdbpy_global_auto_load to
3463 global_auto_load. Initialize AUTO_LOAD_LOCAL_GDBINIT_PATHNAME and
3464 AUTO_LOAD_LOCAL_GDBINIT_LOADED.
3465 (print_gdb_help): Extend the help for 'local init file'.
3466 * python/py-auto-load.c: Remove a comment about gdb scripts extension.
3467 (GDBPY_AUTO_SECTION_NAME): Extend the comment it is Python specific.
3468 (auto_load_scripts): Rename to ...
3469 (auto_load_python_scripts): ... here, update the comment.
3470 (gdbpy_load_auto_script_for_objfile): New declaration.
3471 (show_auto_load_python_scripts, script_language_python)
3472 (gdbpy_load_auto_script_for_objfile): New.
3473 (source_section_scripts): Refactor the code.
3474 (load_auto_scripts_for_objfile): Rename to ...
3475 (gdbpy_load_auto_scripts_for_objfile): ... here, update the
3476 auto_load_objfile_script caller, drop GDBPY_GLOBAL_AUTO_LOAD checking.
3477 (info_auto_load_python_scripts): New.
3478 (gdbpy_initialize_auto_load): New variables cmd and cmd_name.
3479 Rename "set auto-load-scripts" to "set auto-load python-scripts".
3480 Register "set auto-load-scripts" as its deprecated alias. Register
3481 "info auto-load python-scripts". Register "info auto-load-scripts" as
3482 its deprecated alias.
3483 (load_auto_scripts_for_objfile): Rename to ...
3484 (gdbpy_load_auto_scripts_for_objfile): ... here.
3485 * python/python.h (load_auto_scripts_for_objfile): Rename to ...
3486 (gdbpy_load_auto_scripts_for_objfile): ... here.
3487
3488 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
3489
3490 auto-load: Move files.
3491 * Makefile.in (SFILES): Add auto-load.c.
3492 (HFILES_NO_SRCDIR): Add auto-load.h.
3493 (COMMON_OBS): Add auto-load.o.
3494 (distclean): Change .gdbinit for gdb-gdb.gdb.
3495 * auto-load.c: New file, with parts from python/py-auto-load.c.
3496 * auto-load.h: New file, with parts from python/python.h.
3497 * configure: Regenerate.
3498 * configure.ac (AC_OUTPUT): Change .gdbinit for gdb-gdb.gdb.
3499 * gdb-gdb.gdb.in: New file, renamed from gdbinit.in.
3500 * gdbinit.in: Remove file, rename it to gdb-gdb.gdb.in.
3501 * main.c: Include auto-load.h.
3502 * python/py-auto-load.c: Move include filenames.h, gdb_regex.h,
3503 command.h, observer.h and progspace.h to auto-load.c. Add include
3504 auto-load.h.
3505 (gdbpy_global_auto_load, struct auto_load_pspace_info)
3506 (struct loaded_script, auto_load_pspace_data)
3507 (auto_load_pspace_data_cleanup, get_auto_load_pspace_data)
3508 (hash_loaded_script_entry, eq_loaded_script_entry)
3509 (init_loaded_scripts_info, get_auto_load_pspace_data_for_loading)
3510 (maybe_add_script): Move to auto-load.c.
3511 (source_section_scripts): Change maybe_add_script parameters passing,
3512 use script_not_found_warning_print.
3513 (clear_section_scripts, auto_load_objfile_script)
3514 (auto_load_new_objfile, loaded_script_ptr)
3515 (DEF_VEC_P (loaded_script_ptr), collect_matching_scripts, print_script)
3516 (sort_scripts_by_name, info_auto_load_scripts): Move to auto-load.c.
3517 (gdbpy_initialize_auto_load): Move auto_load_pspace_data,
3518 auto_load_new_objfile and info_auto_load_scripts initizations to
3519 auto-load.c.
3520 * python/python.h (gdbpy_global_auto_load): Move to auto-load.h.
3521
3522 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
3523
3524 Code cleanup.
3525 * charset.c (find_charset_names): Remove variables ix and elt.
3526 Use free_char_ptr_vec.
3527 * elfread.c (build_id_to_debug_filename): New variables debugdir_vec,
3528 back_to and ix. Use dirnames_to_char_ptr_vec. Remove variable
3529 debugdir_end. New variable debugdir_len.
3530 * gdb_vecs.h (free_char_ptr_vec, make_cleanup_free_char_ptr_vec)
3531 (dirnames_to_char_ptr_vec_append, dirnames_to_char_ptr_vec): New
3532 declarations.
3533 * progspace.c (clear_program_space_solib_cache): Remove variables ix
3534 and elt. Use free_char_ptr_vec.
3535 * source.c (add_path): Remove variables argv, arg and argv_index.
3536 New variables dir_vec, back_to, ix and name.
3537 Use dirnames_to_char_ptr_vec_append. Use freeargv instead of
3538 make_cleanup_freeargv. Remove variable separator. Simplify the code
3539 no longer expecting DIRNAME_SEPARATOR.
3540 (openp): Remove variable p, p1 and len. New variables dir_vec,
3541 back_to, ix and dir. Use dirnames_to_char_ptr_vec. Simplify the code
3542 no longer expecting DIRNAME_SEPARATOR.
3543 * symfile.c (find_separate_debug_file): New variables debugdir_vec,
3544 back_to and ix. Use dirnames_to_char_ptr_vec. Remove variable
3545 debugdir_end.
3546 * utils.c (free_char_ptr_vec, do_free_char_ptr_vec)
3547 (make_cleanup_free_char_ptr_vec, dirnames_to_char_ptr_vec_append)
3548 (dirnames_to_char_ptr_vec): New functions.
3549
3550 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
3551
3552 Code cleanup.
3553 * source.c (add_path): Remove always true conditional 'p == 0' and
3554 unindent its code block.
3555
3556 2012-04-17 Pedro Alves <palves@redhat.com>
3557
3558 * gdbtypes.h (FIELD_BITPOS): Rename to ...
3559 (FIELD_BITPOS_LVAL): ... this.
3560 (FIELD_BITPOS): New.
3561 (SET_FIELD_BITPOS): Adjust to use FIELD_BITPOS_LVAL.
3562 * dwarf2read.c (dwarf2_add_field): Use SET_FIELD_BITPOS.
3563 * gdbtypes.c (append_composite_type_field_aligned): Adjust to use
3564 SET_FIELD_BITPOS.
3565 * gnu-v3-abi.c (build_gdb_vtable_type): Adjust to use
3566 SET_FIELD_BITPOS.
3567 * stabsread.c (read_cpp_abbrev, read_one_struct_field)
3568 (read_baseclasses): Adjust to use SET_FIELD_BITPOS.
3569 * target-descriptions.c (tdesc_gdb_type): Adjust to use
3570 SET_FIELD_BITPOS.
3571
3572 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
3573
3574 Do not rely on FIELD_LOC_KIND_BITPOS being zero.
3575 * ada-lang.c (ada_template_to_fixed_record_type_1): Replace
3576 TYPE_FIELD_BITPOS used as lvalue by SET_FIELD_BITPOS.
3577 * gdbtypes.c (append_flags_type_flag): Likewise, twice.
3578 * jv-lang.c (java_link_class_type): Likewise, once.
3579 * stabsread.c (read_enum_type): Likewise.
3580
3581 2012-04-16 Yao Qi <yao@codesourcery.com>
3582
3583 * common/agent.c (agent_run_command): Add one more parameter `len'.
3584 Update callers.
3585 * common/agent.h: Update declaration.
3586 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
3587 Update.
3588 (linux_child_static_tracepoint_markers_by_strid): Ditto.
3589
3590 2012-04-14 Anton Gorenkov <xgsa@yandex.ru>
3591
3592 PR mi/13393
3593 * value.c (value_actual_type): New function.
3594 * value.h (value_actual_type): New declaration.
3595 * varobj.c (update_type_if_necessary): New function.
3596 (varobj_create): Call value_actual_type instead of
3597 value_type.
3598 (install_dynamic_child): distinct changed and type changed MI variable
3599 objects.
3600 (update_dynamic_varobj_children): Updated for install_dynamic_child
3601 change. All callers updated.
3602 (varobj_update): Support for MI variable object type change if
3603 the value changed and RTTI is used to determine the type.
3604 (create_child_with_value): Call value_actual_type instead of
3605 value_type.
3606 (adjust_value_for_child_access): Extended with a new parameter which
3607 specify whether the given value should be casted to enclosing type.
3608 All callers updated.
3609
3610 2012-04-14 Yao Qi <yao@codesourcery.com>
3611
3612 Import gnulib module inttypes from git
3613 (250b80067c1e1d8faa0c42fb572f721975b929c5)
3614 * Makefile.in (HFILES_NO_SRCDIR): Add gnulib/inttypes.in.h.
3615 (aclocal_m4_deps): Add gnulib/m4/inttypes.m4 and
3616 gnulib/m4/inttypes-pri.m4
3617 * aclocal.m4, config.in, configure: Regenerated.
3618 * gnulib/Makefile.am: Update.
3619 * gnulib/Makefile.in: Update.
3620 * gnulib/m4/gnulib-cache.m4: Update.
3621 * gnulib/m4/gnulib-comp.m4: Update.
3622 * gnulib/inttypes.in.h: New.
3623 * gnulib/m4/inttypes-pri.m4: New.
3624 * gnulib/m4/inttypes.m4: New.
3625
3626 2012-04-13 Luis Machado <lgustavo@codesourcery.com>
3627
3628 * infrun.c (resume): Update PC address to the real PC after
3629 preparing to do displaced stepping.
3630
3631 2012-04-12 Doug Evans <dje@google.com>
3632
3633 * dwarf2read.c (lookup_signatured_type): Remove arg "objfile", unused.
3634 All callers updated.
3635
3636 2012-04-12 Mark Kettenis <kettenis@gnu.org>
3637
3638 * i386bsd-nat.c (_initialize_i386bsd_nat): Add missing prototype.
3639
3640 2012-04-12 Doug Evans <dje@google.com>
3641
3642 * dwarf2read.c (create_all_type_units): Renamed from
3643 create_debug_types_hash_table. All callers updated.
3644
3645 * dwarf2read.c (create_signatured_type_table_from_index): Rename
3646 local type_sig to sig_type, type_offset to type_offset_in_tu.
3647 (hash_signatured_type): Renamed from hash_type_signature,
3648 all callers updated.
3649 (eq_signatured_type): Renamed from eq_type_signature,
3650 all callers updated.
3651 (create_debug_types_hash_table): Rename local type_sig to sig_type.
3652 (process_enumeration_scope): Ditto.
3653 (lookup_signatured_type_at_offset): Ditto.
3654 (load_full_type_unit, read_signatured_type): Ditto.
3655
3656 2012-04-12 Yao Qi <yao@codesourcery.com>
3657
3658 * remote.c (async_remote_interrupt): Correct function name in
3659 debug message.
3660 (async_remote_interrupt_twice): Ditto.
3661
3662 2012-04-11 Yuanhui Zhang <asmwarrior@gmail.com>
3663
3664 * source.c (find_and_open_source): Consistently pass resulting
3665 full path through xfullpath.
3666
3667 2012-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
3668
3669 Provide more specific displaced-stepping memory error message.
3670 * infrun.c (displaced_step_prepare): New variable status. Call
3671 target_read_memory instead of read_memory, provide more specific
3672 error message.
3673
3674 2012-04-11 Tristan Gingold <gingold@adacore.com>
3675
3676 PR gdb/13901
3677 * darwin-nat.c (darwin_execvp): Revert previous patch.
3678
3679 2012-04-11 Tristan Gingold <gingold@adacore.com>
3680
3681 PR gdb/13901
3682 * darwin-nat.c (darwin_resume_thread): Call darwin_set_sstep only
3683 in case of change.
3684
3685 2012-04-11 Tristan Gingold <gingold@adacore.com>
3686
3687 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
3688 warning.
3689
3690 2012-04-11 Siva Chandra Reddy <sivachandra@google.com>
3691
3692 New command 'explore' which helps explore values and types in
3693 scope.
3694 * NEWS: Add an entry about the new 'explore' command.
3695 * data-directory/Makefile.in: Add gdb/command/explore.py
3696 * python/lib/gdb/command/explore.py: Implemention of the 'explore'
3697 command using the GDB Python API.
3698
3699 2012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
3700
3701 * mips-tdep.c (mips_skip_pic_trampoline_code): Correct sign
3702 extension in jump target calculation.
3703
3704 2012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
3705
3706 * mips-tdep.c (mips32_next_pc): Handle JALX.
3707
3708 2012-04-10 Yao Qi <yao@codesourcery.com>
3709
3710 * Makefile.in (gnulib/Makefile): Remove duplicated dependency.
3711
3712 2012-04-10 Yao Qi <yao@codesourcery.com>
3713
3714 * Makefile.in (aclocal_m4_deps): Add gnulib/m4/gnulib-cache.m4
3715 and gnulib/m4/gnulib-tool.m4.
3716
3717 2012-04-10 Doug Evans <dje@google.com>
3718
3719 * dwarf2read.c (dwarf2_per_cu_data). Clarify comment.
3720 (load_partial_dies): Clarify comment.
3721 (find_partial_die): Support rereading type units.
3722 Clarify CU handling, if we know offset is in CU, don't search for the
3723 containing CU. Add comment regarding memory waste.
3724
3725 2012-04-10 H.J. Lu <hongjiu.lu@intel.com>
3726
3727 * features/Makefile (WHICH): Add i386/x32, i386/x32-linux,
3728 i386/x32-avx and i386/x32-avx-linux.
3729 (i386/x32-expedite): New.
3730 (i386/x32-linux-expedite): Likewise.
3731 (i386/x32-avx-expedite): Likewise.
3732 (i386/x32-avx-linux-expedite): Likewise.
3733 ($(outdir)/i386/x32.dat): Likewise.
3734 ($(outdir)/i386/x32-linux.dat): Likewise.
3735 ($(outdir)/i386/x32-avx.dat): Likewise.
3736 ($(outdir)/i386/x32-avx-linux.dat): Likewise.
3737
3738 * features/i386/x32-avx-linux.xml: New file.
3739 * features/i386/x32-avx.xml: Likewise.
3740 * features/i386/x32-core.xml: Likewise.
3741 * features/i386/x32-linux.xml: Likewise.
3742 * features/i386/x32.xml: Likewise.
3743
3744 * features/i386/x32-avx-linux.c: New. Generated.
3745 * features/i386/x32-avx.c: Likewise.
3746 * features/i386/x32-linux.c: Likewise.
3747 * features/i386/x32.c: Likewise.
3748 * regformats/i386/x32-avx-linux.dat: Likewise.
3749 * regformats/i386/x32-avx.dat: Likewise.
3750 * regformats/i386/x32-linux.dat: Likewise.
3751 * regformats/i386/x32.dat: Likewise.
3752
3753 2012-04-10 Tristan Gingold <gingold@adacore.com>
3754
3755 * darwin-nat.c (darwin_kill_inferior): Always use the no ptrace
3756 code to kill the inferior.
3757
3758 2012-04-09 Mark Kettenis <kettenis@gnu.org>
3759
3760 * ada-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
3761 defines.
3762 * c-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
3763 defines.
3764 * cp-name-parser.y (yyss, yysslim, yyssp, yystacksize, yyvs)
3765 (yyvsp): New defines.
3766 * f-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
3767 defines.
3768 * jv-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
3769 defines.
3770 * m2-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
3771 defines.
3772 * objc-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
3773 defines.
3774 * p-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
3775 defines.
3776
3777 2012-04-09 Mark Kettenis <kettenis@gnu.org>
3778
3779 * sparc64-tdep.c (sparc64_store_arguments)
3780 (sparc64_store_arguments): Fix coding style.
3781
3782 2012-04-07 Mark Kettenis <kettenis@gnu.org>
3783
3784 * sparc64-tdep.c (sparc64_store_arguments): Fix handling of
3785 complex floats, adjust some related comments and tighten a related
3786 assertion.
3787 (sparc64_extract_return_value): Handle complex floats.
3788
3789 2012-04-07 Doug Evans <dje@google.com>
3790
3791 * dwarf2read.c (load_partial_dies): Change condition to assert.
3792
3793 2012-04-06 Doug Evans <dje@google.com>
3794
3795 * amd64-tdep.c (amd64_analyze_prologue): Recognize both variations of
3796 "mov %rsp,%rbp".
3797
3798 2012-04-05 Kevin Buettner <kevinb@redhat.com>
3799
3800 * v850-tdep.c (E_NUM_OF_V850_REGS, E_NUM_OF_V850E_REGS): Fix
3801 fencepost error.
3802 (v850_frame_cache): Use gdbarch_num_regs() instead of E_NUM_REGS.
3803 (v850_gdbarch_init): Set `num_regs' as appropriate for the
3804 architecture.
3805
3806 2012-04-05 Keith Seitz <keiths@redhat.com>
3807
3808 * linespec.c (decode_compound): Remove.
3809 (enum offset_relative_sign): New enum.
3810 (struct line_offset): New struct.
3811 (struct linespec): New struct.
3812 (struct linespec_state): Move file_symtabs,
3813 user_filename, and user_function into struct linespec.
3814 Make result an anonymous struct holding vectors of
3815 symbolp and minsym_and_objfile_d.
3816 Add language member.
3817 (enum ls_token_type): New enum.
3818 (linespec_keywords): New array.
3819 (struct ls_token): New struct.
3820 (struct ls_parser): New struct.
3821 (linespec_lexer_lex_number): New function.
3822 (linespec_lexer_lex_keyword): New function.
3823 (is_ada_operator): New function.
3824 (skip_quote_char): New function.
3825 (copy_token_string): New function.
3826 (is_closing_quote_enclosed): New function.
3827 (find_parameter_list_end): New function.
3828 (linespec_lexer_lex_string): New function.
3829 (linespec_lexer_lex_one): New function.
3830 (linespec_lexer_consume_token): New function.
3831 (linespec_lexer_peek_token): New function.
3832 (cplusplus_error): Remove unused function.
3833 (find_methods): Update comment.
3834 (find_toplevel_char): Return const.
3835 (is_objc_method_format): Remove unused function.
3836 (find_toplevel_string): New function.
3837 (is_linespec_boundary): Remove.
3838 (symbol_not_found_error): New function.
3839 (find_method_overload_end): Remove function.
3840 (unexpected_linespec_error): New function.
3841 (keep_name_info): Remove.
3842 (linespec_parse_line_offset): New function.
3843 (linespec_parse_basic): New function.
3844 (canonicalize_linespec): New function.
3845 (decode_line_internal): Remove.
3846 (create_sals_line_offset): New function adapted from
3847 decode_all_digits.
3848 (convert_linespec_to_sals): New function.
3849 (parse_linespec): New function.
3850 (linespec_parser_new): New function.
3851 (linespec_state_destructor): Change parameter type to
3852 struct linespec_state *.
3853 Add language parameter.
3854 Remove freeing of moved members.
3855 (linespec_parser_delete): New function.
3856 (decode_line_full): Use parse_linespec and linespec_parser_new.
3857 (decode_line_1): Likewise.
3858 (decode_indirect): Rename to ...
3859 (linespec_expression_to_pc): ... this and rewrite
3860 to simply find CORE_ADDR, storing this result for later
3861 conversion to SALs.
3862 (locate_first_half): Remove.
3863 (deocde_objc): Add parameter LS.
3864 Initialize new struct collect_info members.
3865 Handle minimal symbols, too.
3866 (decode_compound): Delete.
3867 (lookup_prefix_sym): Rewrite.
3868 (compare_msymbols): New function.
3869 (find_method): Rewrite.
3870 Do not call cplusplus_error.
3871 (symtabs_from_filename): Rewrite.
3872 (collect_function_symbols): Delete.
3873 (find_function_symbols): Rewrite without ARGPTR-style
3874 processing.
3875 (decode_all_digits): Delete. (Rewritten as create_sals_line_offset.)
3876 (decode_dollar): Adapted and renamed to ...
3877 (linespec_parse_variable): ... this.
3878 (find_linespec_symbols): New function.
3879 (decode_label): Adapted and renamed to ...
3880 (find_label_symbols): ... this.
3881 (decode_digits_list_mode): Add and use LS argument.
3882 (decode_digits_ordinary): Likewise.
3883 (collect_symbols): Do not collect SALs, just symbols and msymbols.
3884 If in list mode, allow any symbol class. Otherwise, only
3885 permit LOC_BLOCK symbols.
3886 (minsym_found): Update comments.
3887 (search_minsyms_for_name): Do not convert the matching symbol
3888 into a SAL. Simply push the symbol and objfile into the
3889 result vector.
3890 (decode_variable): Delete. Contents adapted into
3891 find_linespec_symbols.
3892
3893 * cp-support.c (SKIP_SPACE): Remove.
3894 (operator_tokens): Remove unused global.
3895 (cp_validate_operator): Remove.
3896 * cp-support.h (cp_validate_operator): Remove declaration.
3897
3898 2012-04-03 Jan Kratochvil <jan.kratochvil@redhat.com>
3899
3900 * cp-valprint.c (cp_print_value_fields): Check valprint_check_validity
3901 for TYPE_VPTR_FIELDNO.
3902 * valprint.c (valprint_check_validity): Make it global, move the
3903 function comment ...
3904 * value.h (valprint_check_validity): ... to this new declaration.
3905
3906 2012-04-02 Tristan Gingold <gingold@adacore.com>
3907
3908 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Use
3909 the STATE32 api for i386 state.
3910 (i386_darwin_store_inferior_registers): Likewise.
3911
3912 2012-04-02 Tristan Gingold <gingold@adacore.com>
3913
3914 * i386-darwin-tdep.c (i386_darwin_thread_state_reg_offset): Fix
3915 SS offset.
3916 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
3917 format_string.
3918
3919 2012-04-02 Tristan Gingold <gingold@adacore.com>
3920
3921 PR gdb/13901
3922 * darwin-nat.c (darwin_execvp): Set binary preference.
3923
3924 2012-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3925
3926 * NEWS (set breakpoint condition-evaluation): Use imperative mood.
3927
3928 2012-03-30 Tom Tromey <tromey@redhat.com>
3929
3930 * python/python.c (gdbpy_decode_line): Move cleanup creation out
3931 of TRY_CATCH. Fix error handling.
3932 * python/py-value.c (convert_value_from_python): Move 'old'
3933 declaration to innermost scope.
3934
3935 2012-03-29 Joel Brobecker <brobecker@adacore.com>
3936 Andrey Smirnov <andrew.smirnov@gmail.com>
3937
3938 -Wshadow warning fix.
3939 * ada-lang.c (ada_make_symbol_completion_list): Rename parameters
3940 "wild_match" and "encoded" into "wild_match_p" and "encoded_p".
3941 Adjust code accordingly.
3942
3943 2012-03-29 Joel Brobecker <brobecker@adacore.com>
3944
3945 * ada-lang.c (symbol_completion_add): Rename parameter
3946 "encoded" into "encoded_p". Ajust code and documentation
3947 accordingly.
3948
3949 2012-03-29 Joel Brobecker <brobecker@adacore.com>
3950 Andrey Smirnov <andrew.smirnov@gmail.com>
3951
3952 -Wshadow warning fix.
3953 * ada-lang.c (symbol_completion_add): Rename parameter
3954 "wild_match" into wild_match_p. Update code and documentation
3955 accordingly.
3956
3957 2012-03-29 Joel Brobecker <brobecker@adacore.com>
3958
3959 * ada-lang.c (symbol_completion_match): Rename parameter
3960 "encoded" into "encoded_p". Ajust code and documentation
3961 accordingly.
3962
3963 2012-03-29 Joel Brobecker <brobecker@adacore.com>
3964 Andrey Smirnov <andrew.smirnov@gmail.com>
3965
3966 -Wshadow warning fix.
3967 * ada-lang.c (symbol_completion_match): Rename parameter
3968 "wild_match" into "wild_match_p". Adjust code and function
3969 documentation accordingly.
3970
3971 2012-03-29 Joel Brobecker <brobecker@adacore.com>
3972 Andrey Smirnov <andrew.smirnov@gmail.com>
3973
3974 -Wshadow warning fix.
3975 * ada-lang.c (ada_lookup_encoded_symbol): Rename parameter
3976 "symbol_info" into "info". Adjust code accordingly.
3977 (ada_lookup_symbol): Likewise.
3978
3979 2012-03-29 Joel Brobecker <brobecker@adacore.com>
3980
3981 * ada-lang.c (ada_lookup_symbol_list): Minor reformatting
3982 of this function's documentation.
3983
3984 2012-03-29 Joel Brobecker <brobecker@adacore.com>
3985 Andrey Smirnov <andrew.smirnov@gmail.com>
3986
3987 -Wshadow warning fix.
3988 * ada-lang.c (ada_lookup_symbol_list): Rename "wild_match"
3989 variable into "wild_match_p". Adjust code accordingly.
3990
3991 2012-03-29 Joel Brobecker <brobecker@adacore.com>
3992 Andrey Smirnov <andrew.smirnov@gmail.com>
3993
3994 -Wshadow warning fix.
3995 * ada-lang.c (ada_add_local_symbols): Rename "wild_match"
3996 parameter into "wild_match_p". Adjust code accordingly.
3997 Document this parameter in the function description.
3998
3999 2012-03-29 Joel Brobecker <brobecker@adacore.com>
4000 Andrey Smirnov <andrew.smirnov@gmail.com>
4001
4002 -Wshadow warning fix.
4003 * ada-lang.c (add_symbols_from_enclosing_procs): Rename
4004 "wild_match" parameter to "wild_match_p" (-Wshadow).
4005
4006 2012-03-29 Joel Brobecker <brobecker@adacore.com>
4007
4008 * ada-lang.c (ada_lookup_simple_minsym): Remove trailing spaces
4009 in function documentation.
4010
4011 2012-03-29 Joel Brobecker <brobecker@adacore.com>
4012 Andrey Smirnov <andrew.smirnov@gmail.com>
4013
4014 -Wshadow warning fix.
4015 * ada-lang.c (ada_lookup_simple_minsym): Rename wild_match local
4016 variable into wild_match_p. Adjust code accordingly.
4017
4018 2012-03-29 Joel Brobecker <brobecker@adacore.com>
4019 Andrey Smirnov <andrew.smirnov@gmail.com>
4020
4021 * ada-valprint.c (ada_val_print_1): Move the code handling
4022 TYPE_CODE_ENUM inside its own lexical block. Declare
4023 variables len and val there, instead of in the function's
4024 top level block. Avoid declaring deref_val again in a way
4025 that shadows another variable of the same name declared
4026 in one of the up-level blocks. Just re-use the up-level
4027 variable instead.
4028
4029 2012-03-29 Joel Brobecker <brobecker@adacore.com>
4030
4031 * ada-lang.c (ada_lookup_encoded_symbol): Now returns void.
4032 Replace block_found argument by symbol_info. Adjust
4033 implementation accordingly. Add function documentation.
4034 (ada_lookup_symbol): Adjust to new ada_lookup_encoded_symbol.
4035 Fix documentation.
4036 * ada-lang.h (ada_lookup_encoded_symbol): Update declaration.
4037 * ada-exp.y (write_object_renaming): Adjust to new
4038 ada_lookup_encoded_symbol API.
4039
4040 2012-03-29 Joel Brobecker <brobecker@adacore.com>
4041
4042 * ada-lang.h (struct ada_symbol_info): Reformat. Improve
4043 documentation.
4044
4045 2012-03-28 Rathish C <rathish.c@kpitcummins.com>
4046
4047 * v850-tdep.c: Add the enum values for mpu and fpu registers.
4048 (v850_register_name): Add the mpu and fpu register names.
4049 (v850e_register_name): Add the mpu and fpu register names.
4050 (v850e2_register_name): New function.
4051 (v850_gdbarch_init): Add case for bfd_mach_v850e2 and
4052 bfd_mach_v850e2v3.
4053
4054 2012-03-28 Joel Brobecker <brobecker@adacore.com>
4055
4056 * NEWS: Add entry for Ada varobj support.
4057
4058 2012-03-28 Joel Brobecker <brobecker@adacore.com>
4059
4060 * varobj.c (default_value_is_changeable_p): New function,
4061 extracted from varobj_value_is_changeable_p. Add declaration.
4062 (ada_value_is_changeable_p): New function, extracted from
4063 varobj_value_is_changeable_p. Add declaration.
4064 (struct language_specific): New field "value_is_changeable_p".
4065 (languages): Add entries for new field.
4066 (varobj_create): Set language before calling install_new_value.
4067 (varobj_value_is_changeable_p): Reimplement to call the varobj's
4068 "value_is_changeable_p" language callback.
4069
4070 2012-03-28 Joel Brobecker <brobecker@adacore.com>
4071
4072 * ada-varobj.h, ada-varobj.c: New files.
4073 * Makefile.in (SFILES): Add ada-varobj.c.
4074 (HFILES_NO_SRCDIR): Add ada-varobj.h.
4075 (COMMON_OBS): Add ada-varobj.o.
4076
4077 2012-03-28 Joel Brobecker <brobecker@adacore.com>
4078
4079 * varobj.c (ada_value_has_mutated): Add declaration. New function.
4080 (struct language_specific): New field "value_has_mutated".
4081 (languages): Set field "value_has_mutated" in each entry of array.
4082 (varobj_value_has_mutated): New function.
4083 (varobj_udpdate): Add handling of type mutation.
4084 (value_of_root): Add handling of type mutation.
4085 (ada_value_has_mutated): New function.
4086
4087 2012-03-28 Pedro Alves <palves@redhat.com>
4088
4089 * ia64-linux-nat.c (supply_fpregset, ia64_linux_fetch_register):
4090 Always supply $fr0 as 0.0 and $fr1 as 1.0.
4091
4092 2012-03-28 Tom Tromey <tromey@redhat.com>
4093
4094 * python/py-inferior.c (infpy_read_memory): Remove cleanups and
4095 explicitly free 'buffer' on exit paths. Decref 'membuf_object'
4096 before returning.
4097
4098 2012-03-28 Tom Tromey <tromey@redhat.com>
4099
4100 * .dir-locals.el: New file.
4101
4102 2012-03-28 Pedro Alves <palves@redhat.com>
4103
4104 * ia64-linux-nat.c (u_offsets): Map IA64_EC_REGNUM to PT_AR_EC.
4105
4106 2012-03-28 Joel Brobecker <brobecker@adacore.com>
4107
4108 * ia64-linux-nat.c (ia64_linux_fetch_register): Add special
4109 handling for r0.
4110
4111 2012-03-27 Pedro Alves <palves@redhat.com>
4112
4113 Eliminate struct ui_stream.
4114
4115 * ui-out.h (struct ui_stream): Delete.
4116 (ui_out_field_stream): Adjust prototype.
4117 (ui_out_stream_new, ui_out_stream_delete)
4118 (make_cleanup_ui_out_stream_delete): Delete declarations.
4119 * ui-out.c (ui_out_field_stream): Change prototype to take a
4120 ui_file instead of a ui_stream. Adjust.
4121 (ui_out_stream_new, ui_out_stream_delete, do_stream_delete)
4122 (make_cleanup_ui_out_stream_delete): Delete.
4123 * breakpoint.c (print_breakpoint_location)
4124 (print_one_detail_ranged_breakpoint, print_it_watchpoint): Use
4125 ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
4126 * disasm.c (dump_insns): Ditto.
4127 (do_mixed_source_and_assembly, do_assembly_only): Adjust
4128 prototype.
4129 (gdb_disassembly): Use ui_file/mem_fileopen instead of
4130 ui_stream/ui_out_stream_new.
4131 * infcmd.c (print_return_value): Ditto.
4132 * osdata.c (info_osdata_command): Don't allocate a local
4133 ui_stream.
4134 * stack.c (print_frame_arg, print_frame_args, print_frame): Use
4135 ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
4136 * tracepoint.c (print_one_static_tracepoint_marker): Don't
4137 allocate a local ui_stream.
4138 * mi/mi-cmd-stack.c (list_arg_or_local): Use ui_file/mem_fileopen
4139 instead of ui_stream/ui_out_stream_new.
4140 (list_args_or_locals): Don't allocate a local ui_stream.
4141 * mi/mi-main.c (get_register, mi_cmd_data_evaluate_expression)
4142 (mi_cmd_data_read_memory): Use ui_file/mem_fileopen instead of
4143 ui_stream/ui_out_stream_new.
4144 * cli/cli-setshow.c (do_setshow_command): Ditto.
4145
4146 2012-03-27 Oza Pawandeep <oza.pawandeep@gmail.com>
4147
4148 * arm-linux-tdep.c (arm_linux_init_abi): Call
4149 set_gdbarch_process_record. Initialize `arm_swi_record' field.
4150 * arm-tdep.c (arm_process_record): New function.
4151 (deallocate_reg_mem): New function.
4152 (decode_insn): New function.
4153 (thumb_record_branch): New function.
4154 (thumb_record_ldm_stm_swi(): New function.
4155 (thumb_record_misc): New function.
4156 (thumb_record_ld_st_stack): New function.
4157 (thumb_record_ld_st_imm_offset): New function.
4158 (thumb_record_ld_st_reg_offset(): New function.
4159 (thumb_record_add_sub_cmp_mov): New function.
4160 (thumb_record_shift_add_sub): New function.
4161 (arm_record_coproc_data_proc): New function.
4162 (arm_record_coproc): New function.
4163 (arm_record_b_bl): New function.
4164 (arm_record_ld_st_multiple): New function.
4165 (arm_record_ld_st_reg_offset): New function.
4166 (arm_record_ld_st_imm_offset): New function.
4167 (arm_record_data_proc_imm): New function.
4168 (arm_record_data_proc_misc_ld_str): New function.
4169 (arm_record_extension_space): New function.
4170 (arm_record_strx): New function.
4171 (sbo_sbz): New function.
4172 (struct insn_decode_record): New structure for arm insn record.
4173 (REG_ALLOC): New macro for reg allocations.
4174 (MEM_ALLOC): New macro for memory allocations.
4175 * arm-tdep.h (struct gdbarch_tdep): New field 'arm_swi_record'.
4176
4177 2012-03-27 Andreas Schwab <schwab@linux-m68k.org>
4178
4179 * m68klinux-nat.c (fetch_register): Fix strict-aliasing violation.
4180 (store_register): Likewise.
4181
4182 2012-03-26 Oza Pawandeep <oza.pawandeep@gmail.com>
4183
4184 * MAINTAINERS (Write After Approval): Add myself to the list.
4185
4186 2012-03-25 Jan Kratochvil <jan.kratochvil@redhat.com>
4187
4188 * NEWS (set breakpoint condition-evaluation): Change "gdb" to "host".
4189 Describe also the option "auto".
4190
4191 2012-03-22 Richard Henderson <rth@redhat.com>
4192
4193 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Fix prototype.
4194 * sparc-nat.c (sparc_xfer_wcookie): Make static.
4195
4196 2012-03-22 Richard Henderson <rth@redhat.com>
4197
4198 * jit.c (jit_read_code_entry): Compute alignment and offset of
4199 int64_t member before computing entry_size.
4200
4201 2012-03-22 Siva Chandra Reddy <sivachandra@google.com>
4202
4203 Python scripting: Add new method Value.referenced_value to
4204 gdb.Value which can dereference pointer as well as reference
4205 values.
4206 * NEWS: Add entry under 'Python scripting' about the new method
4207 Value.referenced_value on gdb.Value objects.
4208 * python/py-value.c (valpy_referenced_value): New function
4209 defining a new method on gdb.Value objects which can dereference
4210 pointer and reference values.
4211
4212 2012-03-22 Siva Chandra Reddy <sivachandra@google.com>
4213
4214 * MAINTAINERS (Write After Approval): Add myself to the list.
4215
4216 2012-03-21 Kevin Buettner <kevinb@redhat.com>
4217
4218 * symtab.c (skip_prologue_sal): Change test to check for "main()"
4219 in addition to "main".
4220
4221 2012-03-21 Joel Brobecker <brobecker@adacore.com>
4222
4223 * expression.h (op_name): Add declaration.
4224 * expprint.c (op_name): Remove declaration. Make non-static.
4225 * ax-gdb.c (gen_expr): Use op_name instead of op_string.
4226
4227 2012-03-21 Thomas Schwinge <thomas@codesourcery.com>
4228
4229 * amd64-linux-nat.c (amd64_linux_siginfo_fixup): Use siginfo_t instead
4230 of struct siginfo.
4231 * arm-linux-nat.c (arm_linux_stopped_data_address): Likewise.
4232 * ia64-linux-nat.c (ia64_linux_stopped_data_address): Likewise.
4233 * linux-nat.c (linux_nat_siginfo_fixup, siginfo_fixup)
4234 (linux_xfer_siginfo, linux_nat_set_siginfo_fixup)
4235 (linux_nat_get_siginfo): Likewise.
4236 * linux-nat.h (struct lwp_info, linux_nat_set_siginfo_fixup)
4237 (linux_nat_get_siginfo): Likewise.
4238 * linux-tdep.c (linux_get_siginfo_type): Likewise.
4239 * ppc-linux-nat.c (ppc_linux_stopped_data_address): Likewise.
4240 * procfs.c (gdb_siginfo_t): Likewise.
4241
4242 2012-03-21 Mike Frysinger <vapier@gentoo.org>
4243
4244 * .gitignore: Ignore more files.
4245
4246 2012-03-20 Pedro Alves <palves@redhat.com>
4247
4248 * remote.c (remote_start_remote): Clear `rs->starting_up' on early
4249 returns.
4250
4251 2012-03-20 Yao Qi <yao@codesourcery.com>
4252
4253 * amd64-tdep.c (amd64_displaced_step_copy_insn): Complete missing "}" in
4254 comment.
4255
4256 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
4257
4258 Code cleanupp: Use cu_offset and sect_offset compile time type checking.
4259 * dwarf2expr.c (add_piece, dwarf_get_base_type, execute_stack_op)
4260 (ctx_no_dwarf_call, ctx_no_get_base_type): Use cu_offset and
4261 sect_offset.
4262 * dwarf2expr.h (cu_offset, sect_offset): New types.
4263 (struct dwarf_expr_context_funcs) <dwarf_call>
4264 (struct dwarf_expr_context_funcs) <get_base_type>: Use cu_offset and
4265 sect_offset.
4266 (struct dwarf_expr_context) <len>: Improve the comment.
4267 (struct dwarf_expr_piece, ctx_no_dwarf_call, ctx_no_get_base_type): Use
4268 cu_offset and sect_offset.
4269 * dwarf2loc.c (per_cu_dwarf_call, dwarf_expr_dwarf_call)
4270 (dwarf_expr_get_base_type, needs_frame_dwarf_call)
4271 (dwarf2_compile_expr_to_ax, disassemble_dwarf_expression): Likewise.
4272 * dwarf2loc.h: Include dwarf2expr.h.
4273 (dwarf2_fetch_die_location_block, dwarf2_get_die_type): Use cu_offset
4274 and sect_offset.
4275 * dwarf2read.c (struct dwarf2_per_objfile) <debug_types_type_hash>:
4276 Improve the comment.
4277 (struct comp_unit_head, struct dwarf2_cu, struct dwarf2_per_cu_data)
4278 (struct signatured_type, struct line_header, struct partial_die_info)
4279 (struct die_info, find_partial_die, dwarf2_get_ref_die_offset)
4280 (lookup_signatured_type_at_offset, dwarf2_find_containing_comp_unit)
4281 (get_die_type_at_offset, create_cus_from_index)
4282 (create_signatured_type_table_from_index, dw2_get_file_names)
4283 (offset_in_cu_p, read_comp_unit_head, error_check_comp_unit_head)
4284 (read_and_check_comp_unit_head, read_and_check_type_unit_head)
4285 (create_debug_types_hash_table, process_psymtab_comp_unit)
4286 (load_partial_comp_unit, create_all_comp_units)
4287 (partial_die_parent_scope, partial_die_full_name, skip_one_die)
4288 (load_full_comp_unit, dwarf2_physname, read_import_statement)
4289 (inherit_abstract_dies, read_func_scope, read_call_site_scope)
4290 (dwarf2_add_member_fn, process_enumeration_scope, read_module_type)
4291 (read_typedef, die_hash, die_eq, read_full_die, dwarf2_read_abbrevs)
4292 (load_partial_dies, read_partial_die, find_partial_die_in_comp_unit)
4293 (find_partial_die, read_attribute_value, lookup_die_type)
4294 (dump_die_shallow, store_in_ref_table): Use cu_offset and sect_offset.
4295 (is_ref_attr): New function comment.
4296 (dwarf2_get_ref_die_offset): New function comment, new variable retval.
4297 Use cu_offset and sect_offset.
4298 (follow_die_offset, follow_die_ref, dwarf2_fetch_die_location_block)
4299 (dwarf2_get_die_type, follow_die_sig, lookup_signatured_type_at_offset)
4300 (load_full_type_unit, read_signatured_type, per_cu_header_read_in)
4301 (dwarf2_find_containing_comp_unit, struct dwarf2_offset_and_type)
4302 (offset_and_type_hash, offset_and_type_eq, set_die_type)
4303 (get_die_type_at_offset, partial_die_hash, partial_die_eq)
4304 (write_one_signatured_type, write_psymtabs_to_index): Use cu_offset and
4305 sect_offset.
4306
4307 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
4308
4309 Code cleanup.
4310 * python/py-auto-load.c (source_section_scripts): New variable back_to.
4311 Turn fclose and xfree calls into make_cleanup_fclose and make_cleanup
4312 with xfree.
4313 (auto_load_objfile_script): Turn fclose into make_cleanup_fclose.
4314
4315 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
4316
4317 * NEWS: Describe new options --init-command=FILE, -ix and
4318 --init-eval-command=COMMAND, -iex.
4319 * main.c (struct cmdarg): New enum items CMDARG_INIT_FILE and
4320 CMDARG_INIT_COMMAND.
4321 (captured_main): New enum items OPT_IX and OPT_IEX. Add
4322 "init-command", "init-eval-command", "ix" and "iex" to the variable
4323 long_options. Handle OPT_IX and OPT_IEX. Process them from CMDARG_VEC.
4324 New comment for CMDARG_FILE and CMDARG_COMMAND processing.
4325 (print_gdb_help): Describe --init-command=FILE, -ix and
4326 --init-eval-command=COMMAND, -iex.
4327
4328 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
4329
4330 Code cleanup.
4331 * main.c (struct cmdarg): Move it here from main. Add more comments.
4332 (cmdarg_s, VEC (cmdarg_s)): New.
4333 (main): Move struct cmdarg from here. New variables cmdarg_vec and
4334 cmdarg_p. Remove variables cmdsize and ncmd and their initialization.
4335 Install cleanup for cmdarg_vec. Update filling for options 'x' and
4336 'X'. Replace cmdarg processing by cmdarg_vec processing. Remove xfree
4337 of CMDARG.
4338
4339 2012-03-19 Tom Tromey <tromey@redhat.com>
4340
4341 * gnu-v3-abi.c (gnuv3_print_vtable): Initialize 'result_vec'.
4342
4343 2012-03-16 Jan Kratochvil <jan.kratochvil@redhat.com>
4344
4345 PR symtab/13777
4346 * dwarf2read.c (process_full_comp_unit): Set LOCATIONS_VALID only for
4347 GCC >=4.5.
4348
4349 2012-03-16 Chris January <chris.january@allinea.com>
4350
4351 * tui-tui.win.c (tui_resize_all): Use erase and clearok instead
4352 of clear.
4353
4354 2012-03-16 Chris January <chris.january@allinea.com>
4355
4356 * source.c (add_path): Use memmove instead of strcpy because the
4357 strings overlap.
4358
4359 2012-03-16 Joel Brobecker <brobecker@adacore.com>
4360
4361 * value.h (set_value_parent): Add declaration.
4362 * value.c (set_value_parent): New function.
4363 (value_address): If VALUE->PARENT is not NULL, then use it as
4364 the base address instead of VALUE->LOCATION.address.
4365 * ada-lang.c (ada_value_primitive_packed_val): Keep V's address
4366 the same as OBJ's address. Adjust V's offset accordingly.
4367 Set V's parent.
4368
4369 2012-03-16 Gary Benson <gbenson@redhat.com>
4370
4371 PR breakpoints/10738
4372 * dwarf2read.c (use_deprecated_index_sections): New global.
4373 (struct partial_die_info): New member may_be_inlined.
4374 (read_partial_die): Set may_be_inlined where appropriate.
4375 (add_partial_subprogram): Add partial symbols for partial
4376 DIEs that may be inlined.
4377 (new_symbol_full): Add inlined subroutines to the current
4378 scope.
4379 (write_psymtabs_to_index): Bump version number.
4380 (dwarf2_read_index): Read only version 6 indices unless
4381 use_deprecated_index_sections is set.
4382 * linespec.c (symbol_and_data_callback): New structure.
4383 (iterate_inline_only): New function.
4384 (iterate_over_all_matching_symtabs): New argument
4385 "include_inline". If nonzero, also call the callback for
4386 symbols representing inlined subroutines.
4387 (lookup_prefix_sym): Pass extra argument to the above.
4388 (find_function_symbols): Likewise.
4389 (add_matching_symbols_to_info): Likewise.
4390 * NEWS: Mention that GDB can now set breakpoints on inlined
4391 functions.
4392
4393 2012-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
4394
4395 * p-typeprint.c (pascal_type_print_method_args):
4396 Fix display of parameter of methods.
4397
4398 2012-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
4399
4400 * amd64-windows-nat.c (_initialize_amd64_windows_nat):
4401 Add missing prototype.
4402
4403 2012-03-16 Yao Qi <yao@codesourcery.com>
4404 Jan Kratochvil <jan.kratochvil@redhat.com>
4405
4406 Fix false compilation warning.
4407 * gnu-v3-abi.c (print_one_vtable): Initialize ADDR.
4408
4409 2012-03-15 Jonathan Larmour <jifl@eCosCentric.com>
4410 Pedro Alves <pedro@codesourcery.com>
4411
4412 * arm-tdep.c: Include "remote.h" and "features/arm-with-m-fpa-layout.c".
4413 (arm_register_g_packet_guesses): New function.
4414 (arm_gdbarch_init): Don't force a target description with
4415 registers when the executable is detected as M-profile. Instead
4416 set gdbarch->tdep->is_m. Register `g' packet guesses.
4417 (_initialize_arm_tdep): Initialize the new target description.
4418 * features/arm-with-m-fpa-layout.xml: New description.
4419 * features/arm-with-m-fpa-layout.c: New, generated.
4420
4421 2012-03-15 Joel Brobecker <brobecker@adacore.com>
4422
4423 * breakpoint.c (breakpoint_xfer_memory): Add assertion.
4424 Update function description.
4425 (insert_bp_location): Do not wipe bl->target_info out.
4426 * mem-break.c: #include "gdb_string.h".
4427 (default_memory_insert_breakpoint): Do not call target_read_memory
4428 with a pointer to the breakpoint's shadow_contents buffer. Use
4429 a local buffer instead.
4430 * m32r-tdep.c (m32r_memory_insert_breakpoint): Ditto.
4431
4432 2012-03-15 Tom Tromey <tromey@redhat.com>
4433
4434 * NEWS: Mention "info vtbl", not "info vtable".
4435 * cp-support.c (info_vtbl_command): Fix comment.
4436 (_initialize_cp_support): Fix text.
4437
4438 2012-03-15 Tom Tromey <tromey@redhat.com>
4439
4440 * cp-valprint.c (cp_print_value_fields): Use
4441 print_function_pointer_address for vtable slot.
4442
4443 2012-03-15 Tom Tromey <tromey@redhat.com>
4444
4445 * gnu-v3-abi.c (struct value_and_voffset): New.
4446 (hash_value_and_voffset, eq_value_and_voffset)
4447 (compare_value_and_voffset, compute_vtable_size)
4448 (print_one_vtable, gnuv3_print_vtable): New functions.
4449 (init_gnuv3_ops): Initialize 'print_vtable' field.
4450 * cp-support.c (info_vtbl_command): New function.
4451 (_initialize_cp_support): Add "info vtbl".
4452 * cp-abi.h (cplus_print_vtable): Declare.
4453 (struct cp_abi_ops) <print_vtable>: New field.
4454 * cp-abi.c (cplus_print_vtable): New function.
4455 * NEWS: Update.
4456
4457 2012-03-15 Tom Tromey <tromey@redhat.com>
4458
4459 * d-lang.c (d_language_defn) <la_iterate_over_symbols>: Set to
4460 iterate_over_symbols.
4461
4462 2012-03-14 Doug Evans <dje@google.com>
4463
4464 * dwarf2read.c (dwarf_stack_op_name): Add DW_OP_GNU_encoded_addr,
4465 DW_OP_GNU_parameter_ref.
4466
4467 2012-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
4468
4469 Fix double prompt of 'interpreter-exec mi'.
4470 * mi/mi-interp.c (mi_execute_command_input_handler): New prototype.
4471 (mi_interpreter_resume): use it.
4472 (mi_execute_command_input_handler): New function.
4473 * mi/mi-main.c (mi_execute_command): Move prompt printing to
4474 mi_execute_command_input_handler.
4475
4476 2012-03-13 Josh Matthews <josh@joshmatthews.net> (tiny change)
4477
4478 * darwin-nat-info.c (_initialize_darwin_info_commands): Add
4479 prototype.
4480 (darwin_debug_port_info): Make static.
4481 * darwin-nat.c (_initialize_darwin_inferior): Add prototype.
4482 * machoread.c (_initialize_machoread): Add prototype.
4483 * i386-darwin-nat.c (i386_darwin_dr_set, i386_darwin_dr_get)
4484 (i386_darwin_set_control, i386_darwin_get_control)
4485 i386_darwin_dr_set_addr, i386_darwin_get_addr)
4486 i386_darwin_get_status, i386_darwin_get_control):
4487 Comment out with HW_WATCHPOINT_NOT_YET_ENABLED macro.
4488
4489 2012-03-13 Joel Brobecker <brobecker@adacore.com>
4490
4491 * ax-gdb.c (gen_usual_unary): Remove special handling of
4492 enum and bool types.
4493
4494 2012-03-13 Joel Brobecker <brobecker@adacore.com>
4495
4496 * ax-gdb.c (gen_fetch): Add handling for TYPE_CODE_RANGE types.
4497
4498 2012-03-13 Joel Brobecker <brobecker@adacore.com>
4499
4500 * aix-thread.c (supply_fprs): Make more consistent with fill_fprs.
4501
4502 2012-03-13 Chris January <chris.january@allinea.com>
4503
4504 * aix-thread.c (fill_sprs): Store the floating point registers
4505 at the correct offsets into vals.
4506
4507 2012-03-13 Doug Evans <dje@google.com>
4508
4509 * NEWS: Mention symbol-reloading has been deleted.
4510 * symfile.c (symbol_reloading): Delete.
4511 (show_symbol_reloading): Delete.
4512 (_initialize_symfile): Delete set/show symbol-reloading.
4513
4514 * dwarf2read.c (load_partial_comp_unit): Defer adding cu to
4515 read_in_chain until we have successfully read it in.
4516 (load_full_comp_unit): Ditto.
4517 (read_signatured_type): Add comment.
4518
4519 2012-03-13 Chris January <chris.january@allinea.com>
4520
4521 * stabsread.c (fix_common_block): Change type of valu argument
4522 to CORE_ADDR.
4523
4524 2012-03-13 Chris January <chris.january@allinea.com>
4525
4526 * rs6000-tdep.c (skip_prologue): Support the oril r29, r1, 0x0
4527 instruction.
4528
4529 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
4530
4531 * common/linux-procfs.c (linux_proc_get_int): New, from
4532 linux_proc_get_tgid, change its LWPID type to pid_t, add parameter
4533 field.
4534 (linux_proc_get_tgid): Only call linux_proc_get_int.
4535 (linux_proc_get_tracerpid): New.
4536 (linux_proc_pid_has_state): New, from linux_proc_pid_is_zombie.
4537 (linux_proc_pid_is_stopped, linux_proc_pid_is_zombie): Only call
4538 linux_proc_pid_has_state.
4539 * common/linux-procfs.h (linux_proc_get_tracerpid): New declaration.
4540 * common/linux-ptrace.c: Include linux-procfs.h and buffer.h.
4541 (linux_ptrace_attach_warnings): New.
4542 * common/linux-ptrace.h (struct buffer, linux_ptrace_attach_warnings):
4543 New declaration.
4544 * linux-nat.c: Include exceptions.h, linux-ptrace.h and buffer.h.
4545 (linux_nat_attach): New variables ex, buffer, message and message_s.
4546 Wrap to_attach by TRY_CATCH and call linux_ptrace_attach_warnings.
4547
4548 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
4549
4550 * Makefile.in (linux-ptrace.o): New.
4551 * common/linux-procfs.c (linux_proc_pid_is_zombie): New,
4552 from linux-nat.c.
4553 * common/linux-procfs.h (linux_proc_pid_is_zombie): New declaration.
4554 * common/linux-ptrace.c: New file.
4555 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-ptrace.o.
4556 * config/arm/linux.mh: Likewise.
4557 * config/i386/linux.mh: Likewise.
4558 * config/i386/linux64.mh: Likewise.
4559 * config/ia64/linux.mh: Likewise.
4560 * config/m32r/linux.mh: Likewise.
4561 * config/m68k/linux.mh: Likewise.
4562 * config/mips/linux.mh: Likewise.
4563 * config/pa/linux.mh: Likewise.
4564 * config/powerpc/linux.mh: Likewise.
4565 * config/powerpc/ppc64-linux.mh: Likewise.
4566 * config/powerpc/spu-linux.mh: Likewise.
4567 * config/s390/s390.mh: Likewise.
4568 * config/sparc/linux.mh: Likewise.
4569 * config/sparc/linux64.mh: Likewise.
4570 * config/xtensa/linux.mh: Likewise.
4571 * linux-nat.c (linux_lwp_is_zombie): Remove, move it to
4572 common/linux-procfs.c.
4573 (wait_lwp): Rename linux_lwp_is_zombie to linux_proc_pid_is_zombie.
4574
4575 2012-03-13 Hui Zhu <teawater@gmail.com>
4576 Pedro Alves <palves@redhat.com>
4577
4578 * breakpoint.c (init_breakpoint_sal): New flags parameter. Handle
4579 CREATE_BREAKPOINT_FLAGS_INSERTED.
4580 (create_breakpoint_sal, create_breakpoints_sal)
4581 (base_breakpoint_create_breakpoints_sal)
4582 (tracepoint_create_breakpoints_sal)
4583 (strace_marker_create_breakpoints_sal): New flags parameter. Pass
4584 down.
4585 (break_command_1, handle_gnu_v3_exceptions, trace_command)
4586 (ftrace_command, strace_command): Adjust.
4587 (create_tracepoint_from_upload): Pass
4588 CREATE_BREAKPOINT_FLAGS_INSERTED.
4589 * breakpoint.h (enum breakpoint_create_flags): New.
4590 (create_breakpoint): New flags parameter.
4591 * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust.
4592 * python/py-breakpoint.c (bppy_init): Adjust.
4593 * python/py-finishbreakpoint.c (bpfinishpy_init): Adjust.
4594 * spu-tdep.c (spu_catch_start): Adjust.
4595
4596 2012-03-13 Pedro Alves <palves@redhat.com>
4597 Hui Zhu <teawater@gmail.com>
4598 Yao Qi <yao@codesourcery.com>
4599
4600 * remote.c (struct remote_state): New field `starting_up'.
4601 (remote_start_remote): Set and clear it.
4602 (remote_can_download_tracepoint): If starting up, return false.
4603
4604 2012-03-13 Yao Qi <yao@codesourcery.com>
4605
4606 * inferior.h (struct inferior): Remove fields any_syscall_count,
4607 syscalls_counts and total_syscalls_count. Move them to new
4608 struct catch_syscall_inferior_data in breakpoint.c.
4609 * breakpoint.c: Call DEF_VEC_I(int).
4610 (struct catch_syscall_inferior_data): New.
4611 (get_catch_syscall_inferior_data): New.
4612 (catch_syscall_inferior_data_cleanup): New.
4613 (insert_catch_syscall): Update to access data in
4614 struct catch_syscall_inferior_data.
4615 (insert_catch_syscall): Likewise.
4616 (remove_catch_syscall): Likewise.
4617 (remove_catch_syscall): Likewise.
4618 (is_syscall_catchpoint_enabled): Likewise.
4619 (add_catch_command): Likewise.
4620 (_initialize_breakpoint): Register cleanup.
4621 * breakpoint.h: Removed DEF_VEC_I(int).
4622 * dwarf2loc.c: Call DEF_VEC_I(int).
4623 * mi/mi-main.c: Likewise.
4624
4625 2012-03-12 Mark Kettenis <kettenis@gnu.org>
4626
4627 * inf-ptrace.c (inf_ptrace_post_attach): Make static.
4628
4629 2012-03-12 Chris January <chris.january@allinea.com>
4630
4631 * aix-thread.c (_initialize_aix_thread): Add prototype.
4632 * rs6000-nat.c (_initialize_rs6000_nat): Ditto.
4633 * xcoffsolib.c (_initialize_xcoffsolib): Ditto.
4634
4635 2012-03-12 Joel Brobecker <brobecker@adacore.com>
4636
4637 * amd64bsd-nat.c: Move #include of "amd64bsd-nat.h" after
4638 include of "amd64-nat.h".
4639
4640 2012-03-12 Tom Tromey <tromey@redhat.com>
4641
4642 * buildsym.c (record_pending_block): Now static.
4643 * buildsym.h: (record_pending_block): Remove.
4644
4645 2012-03-12 Andreas Tobler <andreast@fgznet.ch>
4646
4647 * amd64bsd-nat.c: Include amd64bsd-nat.h.
4648
4649 2012-03-09 Tom Tromey <tromey@redhat.com>
4650
4651 * dwarf2read.c (struct dwarf2_cu) <checked_producer,
4652 producer_is_gxx_lt_4_6>: New fields.
4653 (producer_is_gxx_lt_4_6): Use and update producer cache fields.
4654
4655 2012-03-09 Tom Tromey <tromey@redhat.com>
4656
4657 * dwarf2read.c (dwarf2_attr): Avoid tail-recursive call.
4658
4659 2012-03-08 Joel Brobecker <brobecker@adacore.com>
4660
4661 * ravenscar-sparc-thread.c (_initialize_ravenscar_sparc): Add
4662 prototype.
4663
4664 2012-03-08 Joel Brobecker <brobecker@adacore.com>
4665
4666 * ravenscar-thread.c (_initialize_ravenscar): Add prototype.
4667
4668 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
4669
4670 Fix -Wmissing-prototypes build.
4671 * arm-linux-nat.c (get_thread_id): Make it static.
4672 * xtensa-linux-nat.c (get_thread_id): Likewise.
4673
4674 2012-03-08 Joel Brobecker <brobecker@adacore.com>
4675
4676 * server.c (process_point_options): If a conditional expression
4677 is found, only print a message if remote_debug is nonzero.
4678
4679 2012-03-08 Luis Machado <lgustavo@codesourcery.com>
4680
4681 * ax-gdb.c (gen_fetch): Fail gracefully and use error instead
4682 of internal error for unknown/unsupported types.
4683
4684 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
4685
4686 Fix CU relative vs. absolute DIE offsets.
4687 * dwarf2loc.h (dwarf2_fetch_die_location_block): Rename parameter
4688 offset to offset_in_cu.
4689 * dwarf2read.c (process_enumeration_scope): Add CU offset to
4690 TYPE_OFFSET.
4691 (dwarf2_fetch_die_location_block): Rename parameter offset to
4692 offset_in_cu. New variable offset, add CU offset to OFFSET_IN_CU.
4693
4694 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
4695
4696 * libunwind-frame.c: Rename to ...
4697 * ia64-libunwind-tdep.c: ... here.
4698 * libunwind-frame.h: Rename to ...
4699 * ia64-libunwind-tdep.h: ... here.
4700 * Makefile.in (HFILES_NO_SRCDIR): Rename libunwind-frame.h to
4701 ia64-libunwind-tdep.h.
4702 (ALLDEPFILES): Rename libunwind-frame.c to ia64-libunwind-tdep.c.
4703 * README (--with-libunwind): Rename to ...
4704 (--with-libunwind-ia64): ... here, note it is ia64 specific now.
4705 * config.in: Regenerate.
4706 * configure: Regenerate.
4707 * configure.ac: New option --with-libunwind-ia64, make the
4708 AS_HELP_STRING ia64 specific. Deprecate option --with-libunwind.
4709 Remove AC_DEFINE for HAVE_LIBUNWIND.
4710 * ia64-libunwind-tdep.c: Make the file top comment ia64 specific.
4711 Rename libunwind-frame.h #include to ia64-libunwind-tdep.h.
4712 Rename libunwind-frame in the general comment.
4713 * ia64-libunwind-tdep.h: Make the file top comment ia64 specific.
4714 Rename symbol LIBUNWIND_FRAME_H to IA64_TDEP_LIBUNWIND_FRAME_H.
4715 Move forward declarations inside #ifndef. Rename libunwind-frame in
4716 the general comment.
4717 * ia64-tdep.c: Rename libunwind-frame.h #include to
4718 ia64-libunwind-tdep.h.
4719 (ia64_gdb2uw_regnum, ia64_uw2gdb_regnum, ia64_is_fpreg)
4720 (ia64_libunwind_descr): Rename libunwind-frame to
4721 ia64-libunwind-tdep in these function comments.
4722 * ia64-tdep.h: Rename libunwind-frame.h #include to
4723 ia64-libunwind-tdep.h.
4724 * ia64-vms-tdep.c (ia64_vms_libunwind_descr): Rename libunwind-frame to
4725 ia64-libunwind-tdep in that data comment.
4726
4727 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
4728
4729 * libunwind-frame.h (struct frame_unwind): New declaration.
4730
4731 2012-03-08 Joel Brobecker <brobecker@adacore.com>
4732
4733 * breakpoint.c (_initialize_breakpoint): Fix error in help of
4734 "set breakpoint condition-evaluation" command.
4735
4736 2012-03-08 Tristan Gingold <gingold@adacore.com>
4737
4738 * sparc-stub.c: Move to stubs/
4739 * sh-stub.c: Likewise.
4740 * m68k-stub.c: Likewise.
4741 * m32r-stub.c: Likewise.
4742 * i386-stub.c: Likewise.
4743
4744 2012-03-08 Andreas Schwab <schwab@linux-m68k.org>
4745
4746 * m68klinux-tdep.c (m68k_linux_init_abi): Register
4747 linux_get_siginfo_type.
4748
4749 * m68klinux-nat.c: Include "gdb_proc_service.h".
4750 (PTRACE_GET_THREAD_AREA): Define.
4751 (ps_get_thread_area): New function.
4752
4753 2012-03-08 Yao Qi <yao@codesourcery.com>
4754
4755 * remote.c (remote_get_noisy_reply): Replace `sprintf' with
4756 `xsnprintf'.
4757 (remote_query_attached): Likewise.
4758 (remote_static_tracepoint_marker_at): Likewise.
4759 (remote_set_permissions): Likewise.
4760 (remote_detach_1, extended_remote_attach_1): Likewise.
4761 (send_g_packet, remote_vkill): Likewise.
4762 (extended_remote_disable_randomization): Likewise.
4763 (remote_add_target_side_condition): Likewise.
4764 (remote_insert_breakpoint): Likewise.
4765 (remote_remove_breakpoint): Likewise.
4766 (remote_insert_watchpoint): Likewise.
4767 (remote_remove_watchpoint): Likewise.
4768 (remote_insert_hw_breakpoint): Likewise.
4769 (remote_insert_hw_breakpoint): Likewise.
4770 (remote_remove_hw_breakpoint): Likewise.
4771 (remote_download_command_source): Likewise.
4772 (remote_download_tracepoint): Likewise.
4773 (remote_download_trace_state_variable): Likewise.
4774 (remote_disable_tracepoint): Likewise.
4775 (remote_trace_set_readonly_regions): Likewise.
4776 (remote_get_tracepoint_status): Likewise.
4777 (remote_trace_find): Likewise.
4778 (remote_get_trace_state_variable_value): Likewise.
4779 (remote_set_disconnected_tracing): Likewise.
4780 (remote_set_circular_trace_buffer): Likewise.
4781 (remote_get_min_fast_tracepoint_insn_len): Likewise.
4782 (remote_use_agent): Likewise.
4783 (remote_add_target_side_condition): Add one parameter BUF_SIZE.
4784 Update callers.
4785
4786 2012-03-07 Pedro Alves <palves@redhat.com>
4787
4788 * NEWS: Mention QProgramSignals.
4789 * inferior.h (update_signals_program_target): Declare.
4790 * infrun.c: (update_signals_program_target): New.
4791 (handle_command): Update the target of the new program signals
4792 array changes.
4793 * remote.c (PACKET_QProgramSignals): New enum.
4794 (last_program_signals_packet): New global.
4795 (remote_program_signals): New.
4796 (remote_start_remote): Update the target with the program signals
4797 list.
4798 (remote_protocol_features): Add entry for QPassSignals.
4799 (remote_open_1): Free anc clear last_program_signals_packet.
4800 (init_remote_ops): Install remote_program_signals.
4801 * target.c (update_current_target): Adjust.
4802 (target_program_signals): New.
4803 * target.h (struct target_ops) <to_program_signals>: New field.
4804 (target_program_signals): Declare.
4805
4806 2012-03-07 Pedro Alves <palves@redhat.com>
4807
4808 * NEWS: Add subtitle for new z0/z1 conditional breakpoint
4809 extensions.
4810
4811 2012-03-07 Andreas Schwab <schwab@linux-m68k.org>
4812
4813 * m68klinux-nat.c (getregs_supplies): Make static.
4814 (getfpregs_supplies): Likewise.
4815 (have_ptrace_getregs): Likewise.
4816
4817 2012-03-06 Joel Brobecker <brobecker@adacore.com>
4818
4819 * dwarf2read.c (dwarf2_get_die_type): Pass absolute offset
4820 in call to get_die_type_at_offset.
4821
4822 2012-03-06 Stan Shebs <stan@codesourcery.com>
4823
4824 * mi/mi-cmd-break.c: Enforce coding standards, fix comments.
4825 * mi/mi-cmd-disas.c: Ditto.
4826 * mi/mi-cmd-env.c: Ditto.
4827 * mi/mi-cmd-file.c: Ditto.
4828 * mi/mi-cmd-stack.c: Ditto.
4829 * mi/mi-cmd-target.c: Ditto.
4830 * mi/mi-cmd-var.c: Ditto.
4831 * mi/mi-cmds.c: Ditto.
4832 * mi/mi-cmds.h: Ditto.
4833 * mi/mi-console.c: Ditto.
4834 * mi/mi-getopt.c: Ditto.
4835 * mi/mi-getopt.h: Ditto.
4836 * mi/mi-interp.c: Ditto.
4837 * mi/mi-main.c: Ditto.
4838 * mi/mi-out.c: Ditto.
4839 * mi/mi-parse.c: Ditto.
4840 * mi/mi-parse.h: Ditto.
4841 * mi/mi-symbol-cmds.c: Ditto.
4842
4843 * mi/mi-getopt.h: Move mi_opt struct up.
4844 * mi/mi-main.c (captured_mi_execute_command): Remove redundant
4845 return.
4846 * mi/mi-out.c (_initialize_mi_out): Remove empty initialize.
4847
4848 2012-03-06 Tom Tromey <tromey@redhat.com>
4849
4850 * proc-service.c (ps_pglobal_lookup): Set the current program
4851 space.
4852
4853 2012-03-06 Pedro Alves <palves@redhat.com>
4854
4855 * gregset.h [HAVE_SYS_PROCFS_H]: Include <sys/procfs.h>.
4856
4857 2012-03-05 Joel Brobecker <brobecker@adacore.com>
4858
4859 * MAINTAINERS: List Maciej W. Rozycki as the mips maintainer.
4860
4861 2012-03-05 Jan Kratochvil <jan.kratochvil@redhat.com>
4862
4863 Code cleanup.
4864 * common/linux-osdata.c (linux_common_core_of_thread): New function
4865 comment.
4866 * linux-nat.c (linux_nat_wait_1): Replace linux_nat_core_of_thread_1
4867 call by linux_common_core_of_thread.
4868 (linux_nat_core_of_thread_1): Remove.
4869 * linux-nat.h (linux_nat_core_of_thread_1): Remove declaration.
4870 * linux-thread-db.c: Include linux-osdata.h.
4871 (update_thread_core): Replace linux_nat_core_of_thread_1 call by
4872 linux_common_core_of_thread.
4873
4874 2012-03-05 Tom Tromey <tromey@redhat.com>
4875
4876 * value.c (value_primitive_field): Don't fetch contents for
4877 non-virtual bases.
4878
4879 2012-03-05 Tom Tromey <tromey@redhat.com>
4880
4881 * jv-valprint.c (java_value_print): Correctly compute 'obj_addr'.
4882
4883 2012-03-05 Andreas Arnez <arnez@linux.vnet.ibm.com>
4884
4885 * s390-nat.c: Include "gregset.h".
4886
4887 2012-03-05 Jan Kratochvil <jan.kratochvil@redhat.com>
4888
4889 * libunwind-frame.c (LIBUNWIND_SO): Change .7 to .8.
4890 [!LIBUNWIND_SO] (LIBUNWIND_SO_7): New #define.
4891 (libunwind_load): New variable so_error, use it for dlerror. Try to
4892 load also LIBUNWIND_SO_7.
4893
4894 2012-03-05 Pedro Alves <palves@redhat.com>
4895
4896 * i387-tdep.c (i387_supply_xsave): Assert the xsave section buffer
4897 is not NULL, and remove resulting dead code.
4898
4899 2012-03-05 Thomas Schwinge <thomas@codesourcery.com>
4900
4901 * sh-tdep.c (sh_skip_prologue): Provide an upper limit on the function
4902 prologue to sh_analyze_prologue.
4903 (sh_analyze_prologue): Make better use of such an upper limit, and
4904 generally be more cautious about accessing memory.
4905
4906 2012-03-05 Tom Tromey <tromey@redhat.com>
4907
4908 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Rename from
4909 _initialize_ia64_hpux_tdep.
4910
4911 2012-03-05 Pedro Alves <palves@redhat.com>
4912
4913 PR gdb/13766
4914
4915 * i387-tdep.c (i387_supply_xsave): If we have an xsave buffer, and
4916 the register state is clear, supply explicit zero, instead of
4917 marking the register unavailable.
4918
4919 2012-03-05 Tristan Gingold <gingold@adacore.com>
4920
4921 * NEWS: Mention OpenVMS ia64 new target.
4922
4923 2012-03-05 Tristan Gingold <gingold@adacore.com>
4924
4925 * ia64-tdep.h: Include libunwind-frame.h and libunwind-ia64.h.
4926 (ia64_unw_accessors, ia64_unw_rse_accessors)
4927 (ia64_libunwind_descr): Declare.
4928 * ia64-vms-tdep.c: New file.
4929 * ia64-tdep.c (ia64_unw_accessors, ia64_unw_rse_accessors)
4930 (ia64_libunwind_descr): Make them public.
4931 * configure.tgt: Add ia64-*-*vms*.
4932 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-vms-tdep.o
4933 (ALLDEPFILES): Add ia64-vms-tdep.c
4934
4935 2012-03-05 Tristan Gingold <gingold@adacore.com>
4936
4937 * target.h (target_object): Add TARGET_OBJECT_OPENVMS_UIB.
4938 * remote.c (PACKET_qXfer_uib): New enum value.
4939 (remote_protocol_features): Add entry for PACKET_qXfer_uib.
4940 (remote_xfer_partial): Handle TARGET_OBJECT_OPENVMS_UIB.
4941 (_initialize_remote): Call add_packet_config_cmd for
4942 xfer:uib packet.
4943
4944 2012-03-05 Tristan Gingold <gingold@adacore.com>
4945
4946 * osabi.c (gdb_osabi_names): Add OpenVMS.
4947 (generic_elf_osabi_sniffer): Likewise.
4948 * defs.h (gdb_osabi): Add GDB_OSABI_OPENVMS.
4949
4950 2012-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
4951
4952 Removed unused code.
4953 * libunwind-frame.c (libunwind_frame_unwind)
4954 (libunwind_frame_base_address): Remove.
4955 * libunwind-frame.h (libunwind_frame_base_address): Remove declaration.
4956
4957 2012-03-04 Yao Qi <yao@codesourcery.com>
4958
4959 * common/agent.c (gdb_connect_sync_socket): Add _ markup and
4960 remove trailing new line.
4961 (agent_run_command, agent_run_command): Add _ markup.
4962 (agent_capability_check): Likewise.
4963
4964 2012-03-03 Jan Kratochvil <jan.kratochvil@redhat.com>
4965
4966 * breakpoint.c (set_condition_evaluation_mode): Set
4967 CONDITION_EVALUATION_MODE unconditionally.
4968
4969 2012-03-03 Yao Qi <yao@codesourcery.com>
4970
4971 * common/agent.c (agent_look_up_symbols): Add one parameter 'arg'.
4972 * common/agent.h: Update declaration.
4973 * inf-child.c (inf_child_use_agent): New.
4974 (inf_child_can_use_agent): New.
4975 (inf_child_target): Initialize fields `to_use_agent'
4976 and `to_can_use_agent'.
4977 * agent.c (agent_new_objfile): New.
4978 (_initialize_agent): Add agent_new_objfile to new_objfile
4979 observer.
4980
4981 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
4982 New.
4983 (linux_target_install_ops): Initialize field
4984 `to_static_tracepoint_markers_by_strid'.
4985 * remote.c (free_current_marker): Move it to ...
4986 * tracepoint.c (free_current_marker): ... here. New.
4987 (cleanup_target_stop): New.
4988 * tracepoint.h: Declare free_current_marker.
4989 * NEWS: Add one entry about `info static-tracepoint-marker'.
4990
4991 2012-03-03 Yao Qi <yao@codesourcery.com>
4992
4993 * common/agent.c (agent_loaded_p): New.
4994 (agent_look_up_symbols): New global.
4995 * common/agent.h: Declare agent_loaded_p.
4996
4997 2012-03-03 Yao Qi <yao@codesourcery.com>
4998
4999 * common/agent.c (struct ipa_sym_addresses) <addr_capability>: New.
5000 (agent_capability_check, agent_capability_invalidate): New.
5001 (symbol_list): New array element.
5002 * common/agent.h (enum agent_capa): New.
5003 * target.c (target_pre_inferior): Call agent_capability_invalidate.
5004
5005 2012-03-03 Yao Qi <yao@codesourcery.com>
5006
5007 * target.h (struct target_ops) <to_use_agent>: New field.
5008 (struct target_ops) <to_can_use_agent>: New field.
5009 (target_use_agent, target_can_use_agent): New macro.
5010 * target.c (update_current_target): Update.
5011 * remote.c: New enum `PACKET_QAgent'.
5012 (remote_protocol_features): Add a new element.
5013 (remote_use_agent, remote_can_use_agent): New.
5014 (init_remote_ops): Initialize field `can_use_agent' with
5015 remote_can_use_agent. Intiailize field `use_agent' with
5016 remote_use_agent.
5017 * common/agent.c (use_agent): New global.
5018 * common/agent.h: Declare it.
5019 * tracepoint.c (info_static_tracepoint_markers_command): Add
5020 comment.
5021 * Makefile.in (SFILES): Add common/agent.c and agent.c.
5022 (COMMON_OBS): Add common/agent.o and agent.o
5023 (common-agent.o): New rule.
5024 * agent.c: New.
5025
5026 2012-03-03 Yao Qi <yao@codesourcery.com>
5027
5028 * common/agent.c: New.
5029 * common/agent.h: New.
5030 * configure.ac: Add `sys/socket.h' and `sys/un.h' to
5031 AC_CHECK_HEADERS.
5032 * configure, configh.in: Regenerated.
5033
5034 2012-03-02 Kevin Buettner <kevinb@redhat.com>
5035
5036 * sh-tdep.c (sh_frame_cache): Don't fetch the FPSCR register
5037 unless it exists for this architecture.
5038
5039 2012-03-02 Joel Brobecker <brobecker@adacore.com>
5040
5041 * language.h (struct language_defn): New "method" la_read_var_value.
5042 * findvar.c: #include "language.h".
5043 (default_read_var_value): Renames read_var_value. Rewrite
5044 function description.
5045 (read_var_value): New function.
5046 * value.h (default_read_var_value): Add prototype.
5047 * ada-lang.c (ada_read_renaming_var_value, ada_read_var_value):
5048 New functions.
5049 (ada_language_defn): Add entry for la_read_var_value.
5050 * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, language.c,
5051 * m2-lang.c, objc-lang.c, opencl-lang.c, p-lang.c: Update
5052 language_defn structures to add entry for new la_read_var_value
5053 field.
5054
5055 2012-03-02 Tom Tromey <tromey@redhat.com>
5056 Pedro Alves <palves@redhat.com>
5057
5058 PR breakpoints/13776:
5059 * breakpoint.c (breakpoint_init_inferior): Delete step-resume
5060 breakpoints.
5061 (delete_longjmp_breakpoint_at_next_stop): New.
5062 * breakpoint.h (delete_longjmp_breakpoint_at_next_stop): Declare.
5063 * target.c (generic_mourn_inferior): Call mark_breakpoints_out
5064 before deleting the inferior. Add comments.
5065 * thread.c (clear_thread_inferior_resources): Don't delete lonjmp
5066 breakpoints immediately, but only on next stop. Move that code
5067 next to where we mark other breakpoints for deletion.
5068
5069 2012-03-02 Joel Brobecker <brobecker@adacore.com>
5070
5071 * mips-linux-nat.c (mips_linux_read_description): Add missing i18n
5072 marker.
5073 * mips-tdep.c (mips_linux_reg_names): Improve comment to avoid ARI
5074 violation.
5075
5076 2012-03-02 Pedro Alves <palves@redhat.com>
5077
5078 * linux-thread-db.c (attach_thread): Avoid in_thread_list call.
5079
5080 2012-03-02 Ulrich Weigand <uweigand@de.ibm.com>
5081
5082 Fix -Wmissing-prototypes build.
5083 * ppc-linux-nat.c (ppc_linux_get_hwcap): Make static.
5084 * remote-sim.c (gdbsim_has_all_memory): Likewise.
5085 (gdbsim_has_memory): Likewise.
5086
5087 2012-03-02 Yao Qi <yao@codesourcery.com>
5088
5089 Fix -Wmissing-prototypes build.
5090 * charset.c (phony_iconv_open): Make static.
5091 (phony_iconv_close, phony_iconv): Likewise.
5092 * i386-linux-nat.c (_initialize_i386_linux_nat): New prototype.
5093 * i386-windows-nat.c (_initialize_i386_windows_nat): New
5094 prototype.
5095 * mingw-hdep.c (_initialize_mingw_hdep): New prototype.
5096 * ser-mingw.c (create_select_thread): Make static.
5097 * windows-termcap.c (tgetent): New prototype.
5098 (tgetnum, tgetflag, tgetstr, tputs, tgoto): Likewise.
5099
5100 2012-03-02 Zhang Yuanhui <asmwarrior@gmail.com>
5101
5102 Fix -Wmissing-prototypes build.
5103 * windows-nat.c (dll_symbol_command, ctrl_c_handler): Make them static.
5104 (_initialize_windows_nat, _initialize_check_for_gdb_ini)
5105 (_initialize_loadable): New prototypes.
5106
5107 2012-03-02 Doug Evans <dje@google.com>
5108
5109 * dwarf2read.c (load_full_comp_unit): Remove unnecessary reading of
5110 abbrev table, read_comp_unit will do it.
5111
5112 2012-03-02 Jan Kratochvil <jan.kratochvil@redhat.com>
5113
5114 Fix -Wmissing-prototypes build.
5115 * alpha-tdep.c (alpha_deal_with_atomic_sequence): Make it static.
5116 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): New prototype.
5117 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Likewise.
5118 * arm-symbian-tdep.c (arm_symbian_skip_trampoline_code): Make it static.
5119 (_initialize_arm_symbian_tdep): New prototype.
5120 * arm-wince-tdep.c (arm_wince_skip_main_prologue): Make it static.
5121 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): New prototype.
5122 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Make it
5123 static.
5124 * lm32-tdep.c (_initialize_lm32_tdep): New prototype.
5125 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): New
5126 prototype.
5127 * microblaze-tdep.c (microblaze_debug, microblaze_fetch_instruction)
5128 (microblaze_skip_prologue, microblaze_frame_cache): Make them static.
5129 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Make it
5130 static.
5131 * moxie-tdep.c (moxie_process_record): Likewise.
5132 * remote-mips.c (mips_can_use_watchpoint, mips_insert_watchpoint)
5133 (mips_remove_watchpoint, mips_stopped_by_watchpoint): Make them static.
5134 * rl78-tdep.c (rl78_breakpoint_from_pc): Make it static.
5135 (_initialize_rl78_tdep): New prototype.
5136 * rx-tdep.c (rx_breakpoint_from_pc): Make it static.
5137 (_initialize_rx_tdep): New prototype.
5138 * solib-darwin.c (darwin_in_dynsym_resolve_code): Make it static.
5139 (_initialize_darwin_solib): New prototype.
5140 * solib-spu.c: Include solib-spu.h.
5141 (_initialize_spu_solib): New prototype.
5142 * spu-multiarch.c (_initialize_spu_multiarch): New prototype.
5143 * tic6x-tdep.c (tic6x_analyze_prologue, tic6x_skip_prologue)
5144 (tic6x_breakpoint_from_pc, tic6x_frame_unwind_cache)
5145 (tic6x_software_single_step): Make it static.
5146 (_initialize_tic6x_tdep): New prototype.
5147
5148 2012-03-02 Jan Kratochvil <jan.kratochvil@redhat.com>
5149
5150 Fix -Wmissing-prototypes build.
5151 * cris-tdep.c (cris_can_use_hardware_watchpoint)
5152 (cris_region_ok_for_watchpoint, cris_stopped_data_address): Remove.
5153
5154 2012-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
5155
5156 Fix -Wmissing-prototypes build.
5157 * frv-tdep.c (frv_check_watch_resources, frv_stopped_data_address)
5158 (frv_have_stopped_data_address): Remove.
5159
5160 2012-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
5161
5162 Fix -Wmissing-prototypes build.
5163 * Makefile.in (HFILES_NO_SRCDIR): Add sh64-tdep.h.
5164 * sh-tdep.c: Include sh64-tdep.h.
5165 * sh-tdep.h (sh64_gdbarch_init, sh64_show_regs): Remove declarations.
5166 * sh64-tdep.c: Include sh64-tdep.h.
5167 * sh64-tdep.h: New file.
5168
5169 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
5170
5171 * mips-tdep.c (mips32_scan_prologue): Correct indentation.
5172
5173 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
5174
5175 * mips-tdep.c (mips_gdbarch_init): Only set pc_regnum and
5176 sp_regnum once the gdbarch_init_osabi hook has been called.
5177
5178 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
5179
5180 * mips-tdep.c (mips32_bc1_pc): New function.
5181 (mips32_next_pc): Handle BC1ANY2F, BC1ANY2T, BC1ANY4F, BC1ANY4T,
5182 BPOSGE32 and BPOSGE64 instructions.
5183 (deal_with_atomic_sequence): Likewise.
5184 (mips32_instruction_has_delay_slot): Likewise.
5185
5186 2012-03-01 Maciej W. Rozycki <macro@mips.com>
5187 Chris Dearman <chris@mips.com>
5188 Maciej W. Rozycki <macro@codesourcery.com>
5189 Joseph Myers <joseph@codesourcery.com>
5190
5191 * features/mips-dsp.xml: New file.
5192 * features/mips64-dsp.xml: New file.
5193 * features/mips-dsp-linux.xml: New file.
5194 * features/mips64-dsp-linux.xml: New file.
5195 * features/Makefile (WHICH): Add mips-dsp-linux and
5196 mips64-dsp-linux.
5197 (mips-dsp-expedite, mips64-dsp-expedite): New variables.
5198 * features/mips-dsp-linux.c: New file.
5199 * features/mips64-dsp-linux.c: New file.
5200 * regformats/mips-dsp-linux.dat: New file.
5201 * regformats/mips64-dsp-linux.dat: New file.
5202 * mips-linux-nat.c (mips_linux_register_addr): Handle DSP
5203 registers.
5204 (mips64_linux_register_addr): Likewise.
5205 (mips64_linux_regsets_fetch_registers): Likewise.
5206 (mips64_linux_regsets_store_registers): Likewise.
5207 (mips64_linux_fetch_registers): Update call to
5208 mips64_linux_regsets_fetch_registers.
5209 (mips64_linux_store_registers): Update call to
5210 mips64_linux_regsets_store_registers.
5211 (mips_linux_read_description): Probe for DSP registers.
5212 (_initialize_mips_linux_nat): Call initialize_tdesc_mips_dsp_linux
5213 and initialize_tdesc_mips64_dsp_linux.
5214 * mips-linux-tdep.c (supply_gregset, mips64_supply_gregset):
5215 Remove padding of no longer used embedded register slots.
5216 * mips-linux-tdep.h (DSP_BASE, DSP_CONTROL): New macros.
5217 (MIPS_RESTART_REGNUM): Redefine enum value.
5218 * mips-tdep.c (mips_generic_reg_names): Remove trailing null
5219 strings.
5220 (mips_tx39_reg_names): Likewise.
5221 (mips_linux_reg_names): New array of register names for Linux
5222 targets.
5223 (mips_register_name): Check for a null pointer in
5224 mips_processor_reg_names and return an empty string.
5225 (mips_register_type): Exclude embedded registers for the IRIX
5226 and Linux ABIs.
5227 (mips_pseudo_register_type): Likewise. Use dynamic numbers to
5228 refer to FP registers, LO, HI, BadVAddr, Cause and PC. Handle
5229 DSP registers.
5230 (mips_stab_reg_to_regnum): Handle DSP accumulators.
5231 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Likewise.
5232 (mips_gdbarch_init): Likewise. Initialize internal register
5233 indices for the Linux ABI. Use dynamic numbers to refer to
5234 registers, as applicable, while parsing the target description.
5235 * mips-tdep.h (struct mips_regnum): Add dspacc/dspctl offsets.
5236
5237 2012-03-01 Joel Brobecker <brobecker@adacore.com>
5238
5239 * frame.h (read_frame_register_unsigned): Fix typo in function
5240 description.
5241
5242 2012-03-01 Pedro Alves <palves@redhat.com>
5243
5244 * jit-reader.in [!__cplusplus]
5245 (GDB_DECLARE_GPL_COMPATIBLE_READER): Add missing backslash.
5246
5247 2012-03-01 Pedro Alves <palves@redhat.com>
5248
5249 * configure.ac (build_warnings): Add -Wmissing-prototypes.
5250 * configure: Regenerate.
5251
5252 2012-03-01 Pedro Alves <palves@redhat.com>
5253
5254 * amd64-linux-tdep.c (amd64_linux_record_signal): Make static.
5255 * breakpoint.c (create_exception_master_breakpoint, trace_command)
5256 (ftrace_command, strace_command): Make static.
5257 * d-lang.c (_initialize_d_language): Declare.
5258 * dwarf2expr.c (_initialize_dwarf2expr): Declare.
5259 * dwarf2loc.c (_initialize_dwarf2loc):
5260 * dwarf2read.c (process_psymtab_comp_unit): Make static.
5261 * exec.c (exec_get_section_table): Make static.
5262 * i386-linux-tdep.c (i386_linux_record_signal): Make static.
5263 * infcmd.c (ensure_valid_thread, ensure_not_tfind_mode): Make static.
5264 * inferior.c (remove_inferior_command, add_inferior_command)
5265 (clone_inferior_command): Make static.
5266 * linux-nat.c (linux_nat_thread_address_space)
5267 (linux_nat_core_of_thread): Make static.
5268 * linux-tdep.c (_initialize_linux_tdep): Declare.
5269 * objc-lang.c (_initialize_objc_lang): Declare.
5270 * opencl-lang.c (builtin_opencl_type, opencl_language_arch_info):
5271 Make static.
5272 (_initialize_opencl_language): Declare.
5273 * record.c (_initialize_record): Declare.
5274 * remote.c (demand_private_info, remote_get_tib_address)
5275 (remote_supports_cond_tracepoints)
5276 (remote_supports_fast_tracepoints, remote_get_tracepoint_status):
5277 Make static.
5278 * skip.c (_initialize_step_skip): Declare.
5279 * symtab.c (skip_prologue_using_lineinfo): Make static.
5280 * tracepoint.c (delete_trace_state_variable)
5281 (trace_variable_command, delete_trace_variable_command)
5282 (get_uploaded_tsv, find_matching_tracepoint_location)
5283 (find_matching_tsv, create_tsv_from_upload, get_traceframe_info):
5284 Make static.
5285 * value.c (pack_unsigned_long): Make static.
5286 * varobj.c (varobj_ensure_python_env): Make static.
5287 * windows-tdep.c (_initialize_windows_tdep): Declare.
5288 * xml-syscall.c (make_cleanup_free_syscalls_info): Make static.
5289
5290 2012-03-01 Pedro Alves <palves@redhat.com>
5291
5292 * linux-tdep.c (linux_has_shared_address_space): Make static. Add
5293 gdbarch parameter.
5294 (linux_init_abi): Install it as has_shared_address_space gdbarch
5295 callback.
5296
5297 2012-03-01 Pedro Alves <palves@redhat.com>
5298
5299 * observer.c (observer_test_first_notification_function)
5300 (observer_test_second_notification_function)
5301 (observer_test_third_notification_function): Add declarations.
5302
5303 2012-03-01 Pedro Alves <palves@redhat.com>
5304
5305 * common/signals.c (default_target_signal_to_host)
5306 (default_target_signal_from_host): Move ...
5307 * arch-utils.c: ... here.
5308 * arch-utils.h (default_target_signal_to_host)
5309 (default_target_signal_from_host): Declare.
5310
5311 * common/signals.c (target_signal_from_command): Move ...
5312 * infrun.c: ... here.
5313 * inferior.h (target_signal_from_command): Declare.
5314 * target.h (target_signal_from_command)
5315 (default_target_signal_from_host, default_target_signal_to_host):
5316 Delete declarations.
5317
5318 * common/signals.c (_initialize_signals): Delete.
5319
5320 2012-03-01 Pedro Alves <palves@redhat.com>
5321
5322 * jit-reader.in (plugin_is_GPL_compatible): Add declarations for
5323 both __cplusplus and !__cplusplus.
5324
5325 2012-03-01 Pedro Alves <palves@redhat.com>
5326
5327 * psymtab.c (find_and_open_source): Delete declaration.
5328 * source.c (find_and_open_source): Move comment ...
5329 * source.h (find_and_open_source): ... to this new declaration.
5330
5331 2012-03-01 Pedro Alves <palves@redhat.com>
5332
5333 * inline-frame.c: Include inline-frame.h.
5334
5335 2012-03-01 Pedro Alves <palves@redhat.com>
5336
5337 * tui/tui-data.c (set_gen_win_origin): Delete.
5338 * tui/tui-data.h (tui_set_gen_win_origin): Delete declaration.
5339 * tui/tui-regs.c (tui_last_reg_element_no_in_line): Delete.
5340
5341 2012-03-01 Pedro Alves <palves@redhat.com>
5342
5343 * remote.c (encode_actions): Delete declaration.
5344 * tracepoint.c (encode_actions): Make extern.
5345 * tracepoint.h (encode_actions): Declare.
5346
5347 2012-03-01 Pedro Alves <palves@redhat.com>
5348
5349 * python/py-breakpoint.c: Include python.h.
5350 * python/py-continueevent.c (create_continue_event_object): Make
5351 static.
5352 * python/py-lazy-string.c (stpy_get_type): Make static.
5353 * python/py-newobjfileevent.c (create_new_objfile_event_object):
5354 Make static.
5355 * python/py-utils.c (unicode_to_target_python_string): Make
5356 static.
5357 * python/py-value.c: Include python.h.
5358
5359 2012-03-01 Pedro Alves <palves@redhat.com>
5360
5361 * inferior.c (delete_threads_of_inferior): Delete.
5362
5363 2012-03-01 Pedro Alves <palves@redhat.com>
5364
5365 Import fallback definitions from glibc.
5366
5367 * gdb_proc_service.h [!HAVE_PROC_SERVICE_H] (struct
5368 ps_prochandle): Forward declare.
5369 (ps_err_e): Use glibc's comments.
5370 [!HAVE_PROC_SERVICE_H] (ps_pdread, ps_pdwrite, ps_ptread)
5371 (ps_ptwrite, ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
5372 (ps_lsetfpregs, ps_getpid, ps_get_thread_area, ps_pglobal_lookup)
5373 (ps_pstop, ps_pcontinue, ps_lstop, ps_lcontinue, ps_lgetxregsize)
5374 (ps_lgetxregs, ps_lsetxregs, ps_plog): Declare.
5375 (struct ps_prochandle): Adjust comment.
5376
5377 2012-03-01 Pedro Alves <palves@redhat.com>
5378
5379 * ada-lang.c (ada_modulus_from_name): Delete.
5380 * ada-lex.l (lexer_init): Make static.
5381
5382 2012-03-01 Pedro Alves <palves@redhat.com>
5383
5384 PR gdb/13767
5385
5386 * frame.c (read_frame_register_unsigned): New.
5387 * frame.h (read_frame_register_unsigned): Declare.
5388 * i387-tdep.c (print_i387_status_word): New parameter `status_p'.
5389 Handle it.
5390 (print_i387_control_word): New parameter `control_p'. Handle it.
5391 (i387_print_float_info): Handle unavailable float registers.
5392
5393 2012-03-01 Keith Seitz <keiths@redhat.com>
5394
5395 * linespec.c (decode_line_2): Sort the list of methods
5396 alphabetically before presenting the user with a selection
5397 menu.
5398
5399 2012-03-01 Doug Evans <dje@google.com>
5400
5401 * dwarf2read.c (dwarf2_cu): Remove unused members has_form_ref_addr,
5402 has_namespace_info.
5403 (dwarf2_read_abbrevs): Remove corresponding initialization.
5404
5405 2012-03-01 Scott J. Goldman <scottjg@vmware.com>
5406
5407 * NEWS: Mention new python command class gdb.COMMAND_USER.
5408 * cli/cli-cmds.c (show_user): Print error when used on a python
5409 command.
5410 (init_cli_cmds): Update documentation strings for "show user" and
5411 "set/show max-user-call-depth" to clarify that it does not apply to
5412 python commands.
5413 * python/py-cmd.c (cmdpy_init): Treat class_user as a valid class in
5414 error check.
5415 (gdbpy_initialize_commands): Add COMMAND_USER as a constant in
5416 gdb python api.
5417 * top.c (execute_command): Only execute a user-defined command as a
5418 legacy macro if c->user_commands is set.
5419
5420 2012-03-01 Tom Tromey <tromey@redhat.com>
5421
5422 * valprint.h (struct generic_val_print_decorations): New.
5423 (generic_val_print): Declare.
5424 * valprint.c (generic_val_print): New function.
5425 * p-valprint.c (p_decorations): New global.
5426 (pascal_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM,
5427 TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_RANGE, TYPE_CODE_INT,
5428 TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ERROR, TYPE_CODE_UNDEF,
5429 TYPE_CODE_BOOL, TYPE_CODE_CHAR>: Call generic_val_print.
5430 * m2-valprint.c (m2_decorations): New global.
5431 (m2_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM, TYPE_CODE_FUNC,
5432 TYPE_CODE_BOOL, TYPE_CODE_RANGE, TYPE_CODE_INT, TYPE_CODE_CHAR,
5433 TYPE_CODE_FLT, TYPE_CODE_METHOD, TYPE_CODE_VOID, TYPE_CODE_UNDEF,
5434 TYPE_CODE_ERROR>: Call generic_val_print.
5435 * f-valprint.c (f_decorations): New global.
5436 (f_val_print): Use print_function_pointer_address.
5437 <TYPE_CODE_REF, TYPE_CODE_FUNC, TYPE_CODE_CHAR, TYPE_CODE_FLAGS,
5438 TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ENUM, TYPE_CODE_RANGE,
5439 TYPE_CODE_BOOL, TYPE_CODE_COMPLEX, TYPE_CODE_UNDEF>: Call
5440 generic_val_print.
5441 * c-valprint.c (c_decorations): New global.
5442 (c_val_print) <TYPE_CODE_MEMBERPTR, TYPE_CODE_REF, TYPE_CODE_ENUM,
5443 TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_METHOD, TYPE_CODE_BOOL,
5444 TYPE_CODE_RANGE, TYPE_CODE_CHAR, TYPE_CODE_FLT,
5445 TYPE_CODE_DECFLOAT, TYPE_CODE_VOID, TYPE_CODE_ERROR,
5446 TYPE_CODE_UNDEF, TYPE_CODE_COMPLEX>: Call generic_val_print.
5447 * ada-valprint.c (ada_val_print_1) <TYPE_CODE_FLAGS>: Remove
5448 case.
5449
5450 2012-03-01 Tom Tromey <tromey@redhat.com>
5451
5452 * valprint.c (val_print): Update.
5453 * p-valprint (pascal_val_print): Return void.
5454 * p-lang.h (pascal_val_print): Return void.
5455 * m2-valprint.c (m2_val_print): Return void.
5456 * m2-lang.h (m2_val_print): Return void.
5457 * language.h (struct language_defn) <la_val_print>: Return void.
5458 * language.c (unk_lang_val_print): Return void.
5459 * jv-valprint.c (java_val_print): Return void.
5460 * jv-lang.h (java_val_print): Return void.
5461 * f-valprint.c (f_val_print): Return void.
5462 * f-lang.h (f_val_print): Return void.
5463 * d-valprint.c (d_val_print): Return void.
5464 (dynamic_array_type): Update.
5465 * d-lang.h (d_val_print): Return void.
5466 * c-valprint.c (c_val_print): Return void.
5467 * c-lang.h (c_val_print): Return void.
5468 * ada-valprint.c (ada_vada_val_print, ada_val_print_1): Return
5469 void.
5470 * ada-lang.h (ada_val_print): Return void.
5471
5472 2012-03-01 Tom Tromey <tromey@redhat.com>
5473
5474 * value.h (val_print): Return void.
5475 * valprint.c (val_print): Return void.
5476
5477 2012-03-01 Tom Tromey <tromey@redhat.com>
5478
5479 * value.h (common_val_print): Return void.
5480 * valprint.c (common_val_print): Return void.
5481
5482 2012-03-01 Tom Tromey <tromey@redhat.com>
5483
5484 * value.h (value_print): Return void.
5485 * valprint.c (value_print): Return void.
5486 * p-valprint.c (pascal_value_print): Return void.
5487 * p-lang.h (pascal_value_print): Return void.
5488 * language.h (struct language_defn) <la_value_print>: Return
5489 void.
5490 * language.c (unk_lang_value_print): Return void.
5491 * jv-valprint.c (java_value_print): Return void.
5492 * jv-lang.h (java_value_print): Return void.
5493 * f-valprint.c (c_value_print): Don't declare.
5494 Include c-lang.h.
5495 * c-valprint.c (c_value_print): Return void.
5496 * c-lang.h (c_value_print): Return void.
5497 * ada-valprint.c (ada_value_print): Return void.
5498 * ada-lang.h (ada_value_print): Return void.
5499
5500 2012-03-01 Tom Tromey <tromey@redhat.com>
5501
5502 * value.c (value_primitive_field): Handle virtual base classes.
5503
5504 2012-03-01 Tom Tromey <tromey@redhat.com>
5505
5506 * gdbtypes.h (struct vbase): Remove.
5507
5508 2012-03-01 Tom Tromey <tromey@redhat.com>
5509
5510 * c-valprint.c (print_function_pointer_address): Move...
5511 * valprint.c: ... here. Make non-static.
5512 * m2-valprint.c (print_function_pointer_address): Remove.
5513 * valprint.h (print_function_pointer_address): Declare.
5514
5515 2012-03-01 Joel Brobecker <brobecker@adacore.com>
5516
5517 * NEWS: Document the fact that one can provide a condition when
5518 creating an Ada exception catchpoint.
5519
5520 2012-03-01 Tom Tromey <tromey@redhat.com>
5521
5522 * valprint.c (val_print_type_code_flags): Fix placement of
5523 trailing brace.
5524
5525 2012-03-01 Joel Brobecker <brobecker@adacore.com>
5526
5527 * copyright.py (MULTILINE_COMMENT_PREFIXES): Delete.
5528 (update_files): Do not set MULTILINE_COMMENT_PREFIXES
5529 environment variable before calling update-copyright.
5530
5531 2012-03-01 Joel Brobecker <brobecker@adacore.com>
5532
5533 * gnulib/extra/update-copyright: Update to the latest from
5534 gnulib's git repository.
5535 * copyright.py: Set UPDATE_COPYRIGHT_USE_INTERVALS environment
5536 variable to 2 instead of 1.
5537
5538 2012-02-29 Joel Brobecker <brobecker@adacore.com>
5539
5540 * varobj.c (c_value_of_variable): Remove dead code.
5541
5542 2012-02-29 Joel Brobecker <brobecker@adacore.com>
5543
5544 * ada-lex.p (processId): Do not modify already encoded IDs.
5545 Update function documentation.
5546
5547 2012-02-29 Joel Brobecker <brobecker@adacore.com>
5548
5549 * ada-lang.h (ada_find_renaming_symbol): Replace parameter
5550 "name" with "struct symbol *name_sym".
5551 * ada-exp.y (write_var_or_type): Update call to
5552 ada_find_renaming_symbol.
5553 "name" with "struct symbol *name_sym". Adjust Implementation
5554 accordingly. Adjust the function documentation.
5555
5556 2012-02-29 Joel Brobecker <brobecker@adacore.com>
5557
5558 * ada-lang.h (ada_find_any_symbol, ada_find_any_type): Delete.
5559 * ada-lang.c (ada_find_any_type): Add advance declaration.
5560 Make static. Replace ada_find_any_symbol by
5561 ada_find_any_type_symbol.
5562 (ada_find_any_type_symbol): Renames ada_find_any_symbol.
5563 Improve function description. Make static.
5564 (ada_find_renaming_symbol, find_old_style_renaming_symbol):
5565 Replace ada_find_any_symbol by ada_find_any_type_symbol.
5566
5567 2012-02-29 Joel Brobecker <brobecker@adacore.com>
5568
5569 * ada-lang.c (struct tag_args): Delete.
5570 (ada_get_tsd_type): Function body moved up in source file.
5571 (ada_tag_name_1, ada_tag_name_2): Delete.
5572 (ada_get_tsd_from_tag): New function.
5573 (ada_tag_name_from_tsd): New function.
5574 (ada_tag_name): Use a TRY_CATCH block instead of catch_errors
5575 to determine the tag name.
5576
5577 2012-02-29 Joel Brobecker <brobecker@adacore.com>
5578
5579 * ada-lang.h (ada_get_decoded_value, ada_get_decoded_type): Add
5580 declaration.
5581 * ada-lang.c (ada_get_decoded_value, ada_get_decoded_type): New
5582 function.
5583
5584 2012-02-29 Joel Brobecker <brobecker@adacore.com>
5585
5586 * ada-lang.c (ada_is_ignored_field): Rewrite wrong comment.
5587
5588 2012-02-29 Joel Brobecker <brobecker@adacore.com>
5589
5590 * ada-lang.c (ada_lookup_symbol_list): Only cache the result of
5591 full searches.
5592
5593 2012-02-29 Joel Brobecker <brobecker@adacore.com>
5594
5595 * ada-lang.c (constrained_packed_array_type): If there is a
5596 parallel XA type, use it to determine the array index type.
5597
5598 2012-02-29 Joel Brobecker <brobecker@adacore.com>
5599
5600 * ada-valprint.c (ada_val_print_1): If our value is a reference
5601 to an array descriptor, dereference it before converting it
5602 to a simple array.
5603
5604 2012-02-29 Joel Brobecker <brobecker@adacore.com>
5605
5606 * ada-lang.c (ada_to_fixed_value): Call unwrap_value before
5607 creating fixed value.
5608 (ada_value_ind, ada_coerce_ref, assign_component)
5609 (ada_evaluate_subexp): Remove call to unwrap_value before
5610 call to ada_to_fixed_value.
5611
5612 2012-02-29 Joel Brobecker <brobecker@adacore.com>
5613
5614 * ada-lang.c (to_fixed_array_type): Set result's type name.
5615
5616 2012-02-29 Joel Brobecker <brobecker@adacore.com>
5617
5618 * ada-lang.c (catch_ada_exception_command_split): Add new
5619 argument cond_string. Add support for condition at end of
5620 "catch exception" commands.
5621 (ada_decode_exception_location): Add new argument cond_string.
5622 Update call to catch_ada_exception_command_split.
5623 (create_ada_exception_catchpoint): Add new argument cond_string.
5624 Set the breakpoint condition if needed.
5625 (catch_ada_exception_command): Update call to
5626 ada_decode_exception_location.
5627 (ada_decode_assert_location): Add function documentation.
5628 Add support for condition at end of "catch assert" command.
5629 (catch_assert_command): Update calls to ada_decode_assert_location
5630 and create_ada_exception_catchpoint.
5631
5632 2012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
5633
5634 Fix disp-step-syscall.exp: fork: single step over fork.
5635 * i386-linux-tdep.c (-i386_linux_get_syscall_number): Rename to ...
5636 (i386_linux_get_syscall_number_from_regcache): ... here, new function
5637 comment, change parameters gdbarch and ptid to regcache. Remove
5638 parameter regcache, initialize gdbarch from regcache here.
5639 (i386_linux_get_syscall_number, i386_linux_displaced_step_copy_insn):
5640 New functions.
5641 (i386_linux_init_abi): Install i386_linux_displaced_step_copy_insn
5642 instead.
5643 * i386-tdep.c (i386_syscall_p): Check also for 'sysenter' and
5644 'syscall'. Make the 'int' check more strict.
5645
5646 2012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
5647
5648 Fix reverse mode for syscall on AMD CPUs in 32-bit mode.
5649 * i386-linux-tdep.c (i386_linux_intx80_sysenter_record): Rename to ...
5650 (i386_linux_intx80_sysenter_syscall_record): ... here.
5651 (i386_linux_init_abi): Initialize also I386_SYSCALL_RECORD.
5652 Use the renamed function name.
5653
5654 2012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
5655
5656 * arm-linux-tdep.c (arm_linux_copy_svc): Reset stale FRAME.
5657 * breakpoint.c (until_break_command): Likewise.
5658 * elfread.c (elf_gnu_ifunc_resolver_stop): Likewise.
5659 * infcall.c (call_function_by_hand): Likewise.
5660 * infcmd.c (finish_forward): Likewise.
5661 * infrun.c (insert_exception_resume_breakpoint): Likewise.
5662
5663 2012-02-28 Tristan Gingold <gingold@adacore.com>
5664
5665 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Rework code to
5666 avoid variable assignments inside condition.
5667
5668 2012-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
5669
5670 Fix static analysis issue found by cppcheck.
5671 * microblaze-tdep.c (microblaze_extract_return_value): Fix
5672 uninitialized BUF for size 2.
5673
5674 2012-02-27 Chris Dearman <chris@mips.com>
5675 Nathan Froyd <froydnj@codesourcery.com>
5676 Maciej W. Rozycki <macro@codesourcery.com>
5677
5678 * mips-tdep.c (mips32_instruction_has_delay_slot): New function.
5679 (mips16_instruction_has_delay_slot): Likewise.
5680 (mips_segment_boundary): Likewise.
5681 (mips_adjust_breakpoint_address): Likewise.
5682 (mips_gdbarch_init): Use mips_adjust_breakpoint_address.
5683
5684 2012-02-27 Maciej W. Rozycki <macro@mips.com>
5685 Maciej W. Rozycki <macro@codesourcery.com>
5686
5687 * infrun.c (handle_inferior_event): Don't proceed through
5688 shared library trampolines if stepping at the machine
5689 instruction level.
5690
5691 2012-02-27 Maciej W. Rozycki <macro@codesourcery.com>
5692
5693 * mips-linux-tdep.c (mips_linux_init_abi): Set num_pseudo_regs
5694 too.
5695
5696 2012-02-27 Thomas Schwinge <thomas@codesourcery.com>
5697
5698 * sh-tdep.c (sh_make_stub_cache, sh_stub_this_id)
5699 (sh_stub_unwind_sniffer): New functions.
5700 (sh_stub_unwind): New variable.
5701 (sh_gdbarch_init): Wire everything.
5702
5703 2012-02-27 Pedro Alves <palves@redhat.com>
5704
5705 * linux-nat.c (pid_is_stopped): Delete, moved to common/.
5706 (linux_nat_post_attach_wait): Adjust to use
5707 linux_proc_pid_is_stopped.
5708 * common/linux-procfs.h (linux_proc_pid_is_stopped): Declare.
5709 * common/linux-procfs.c (linux_proc_pid_is_stopped): New function,
5710 based on pid_is_stopped from both linux-nat.c and
5711 gdbserver/linux-low.c, and renamed.
5712
5713 2012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
5714
5715 * remote.c (remote_watchpoint_addr_within_range): New function.
5716 (init_remote_ops): Use it.
5717
5718 2012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
5719
5720 * target.h (target_watchpoint_addr_within_range): Document macro.
5721
5722 2012-02-24 Pedro Alves <palves@redhat.com>
5723
5724 * stack.c (set_last_displayed_sal): Issue internal_error instead
5725 of warning, and issue it after clearing the last displayed sal.
5726
5727 2012-02-24 Jan Kratochvil <jan.kratochvil@redhat.com>
5728 Pedro Alves <palves@redhat.com>
5729
5730 * breakpoint.c (until_break_command): Install breakpoints after
5731 all frame manipulations.
5732
5733 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
5734
5735 * remote.c (remote_supports_cond_breakpoints): New forward
5736 declaration.
5737 (remote_add_target_side_condition): New function.
5738 (remote_insert_breakpoint): Add target-side breakpoint
5739 conditional if supported.
5740 (remote_insert_hw_breakpoint): Likewise.
5741 (init_remote_ops): Set to_supports_evaluation_of_breakpoint_conditions
5742 hook.
5743
5744 * target.c (update_current_target): Inherit
5745 to_supports_evaluation_of_breakpoint_conditions.
5746 Default to_supports_evaluation_of_breakpoint_conditions to return_zero.
5747
5748 * target.h (struct target_ops)
5749 <to_supports_evaluation_of_breakpoint_conditions>: New field.
5750 (target_supports_evaluation_of_breakpoint_conditions): New #define.
5751
5752 * breakpoint.c (get_first_locp_gte_addr): New forward declaration.
5753 (condition_evaluation_both, condition_evaluation_auto,
5754 condition_evaluation_host, condition_evaluation_target,
5755 condition_evaluation_enums, condition_evaluation_mode_1,
5756 condition_evaluation_mode): New static globals.
5757 (translate_condition_evaluation_mode): New function.
5758 (breakpoint_condition_evaluation_mode): New function.
5759 (gdb_evaluates_breakpoint_condition_p): New function.
5760 (ALL_BP_LOCATIONS_AT_ADDR): New helper macro.
5761 (mark_breakpoint_modified): New function.
5762 (mark_breakpoint_location_modified): New function.
5763 (set_condition_evaluation_mode): New function.
5764 (show_condition_evaluation_mode): New function.
5765 (bp_location_compare_addrs): New function.
5766 (get_first_location_gte_addr): New helper function.
5767 (set_breakpoint_condition): Free condition bytecode if locations
5768 has become unconditional. Call mark_breakpoint_modified (...).
5769 (condition_command): Call update_global_location_list (1) for
5770 breakpoints.
5771 (breakpoint_xfer_memory): Use is_breakpoint (...).
5772 (is_breakpoint): New function.
5773 (parse_cond_to_aexpr): New function.
5774 (build_target_condition_list): New function.
5775 (insert_bp_location): Handle target-side conditional
5776 breakpoints and call build_target_condition_list (...).
5777 (update_inserted_breakpoint_locations): New function.
5778 (insert_breakpoint_locations): Handle target-side conditional
5779 breakpoints.
5780 (bpstat_check_breakpoint_conditions): Add comment.
5781 (bp_condition_evaluator): New function.
5782 (bp_location_condition_evaluator): New function.
5783 (print_breakpoint_location): Print information on where the condition
5784 will be evaluated.
5785 (print_one_breakpoint_location): Likewise.
5786 (init_bp_location): Call mark_breakpoint_location_modified (...) for
5787 breakpoint location.
5788 (force_breakpoint_reinsertion): New functions.
5789 (update_global_location_list): Handle target-side breakpoint
5790 conditions.
5791 Reinsert locations that are already inserted if conditions have
5792 changed.
5793 (bp_location_dtor): Free agent expression bytecode.
5794 (disable_breakpoint): Call mark_breakpoint_modified (...).
5795 Call update_global_location_list (...) with parameter 1 for breakpoints.
5796 (disable_command): Call mark_breakpoint_location_modified (...).
5797 Call update_global_location_list (...) with parameter 1 for breakpoints.
5798 (enable_breakpoint_disp): Call mark_breakpoint_modified (...).
5799 (enable_command): mark_breakpoint_location_modified (...).
5800 (_initialize_breakpoint): Update documentation and add
5801 condition-evaluation breakpoint subcommand.
5802
5803 * breakpoint.h: Include ax.h.
5804 (condition_list): New data structure.
5805 (condition_status): New enum.
5806 (bp_target_info) <cond_list>: New field.
5807 (bp_location) <condition_changed, cond_bytecode>: New fields.
5808 (is_breakpoint): New prototype.
5809
5810 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
5811
5812 * remote.c (remote_state) <cond_breakpoints>: New field.
5813 (PACKET_ConditionalBreakpoints): New enum.
5814 (remote_cond_breakpoint_feature): New function.
5815 (remote_protocol_features): Add new ConditionalBreakpoints entry.
5816 (remote_supports_cond_breakpoints): New function.
5817 (_initialize_remote): Add new packet configuration for
5818 target-side conditional breakpoints.
5819
5820 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
5821
5822 * NEWS: Mention target-side conditional breakpoint support,
5823 new condition-evaluation breakpoint subcommand and remote
5824 packet extensions.
5825
5826 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
5827
5828 * breakpoint.c (bp_location_compare): Sort by pspace before sorting by
5829 number.
5830
5831 2012-02-24 Thomas Schwinge <thomas@codesourcery.com>
5832
5833 * sh-tdep.c (sh_skip_prologue): Use skip_prologue_using_sal.
5834 (after_prologue): Remove.
5835
5836 2012-02-23 Tom Tromey <tromey@redhat.com>
5837
5838 * jv-valprint.c (java_val_print): Remove dead code.
5839
5840 2012-02-23 Tristan Gingold <gingold@adacore.com>
5841
5842 * ada-tasks.c (struct ada_tasks_inferior_data): Add
5843 known_tasks_element and known_tasks_length fields.
5844 (read_known_tasks_array): Change argument type. Use pointer type
5845 and number of elements from DATA. Adjust.
5846 (read_known_tasks_list): Likewise.
5847 (get_known_tasks_addr): Remove.
5848 (ada_set_current_inferior_known_tasks_addr): Renamed to ...
5849 (ada_tasks_inferior_data_sniffer): ... this. Use symtab for element
5850 type and array length. Merge former get_known_tasks_addr code.
5851
5852 2012-02-23 Jan Kratochvil <jan.kratochvil@redhat.com>
5853
5854 PR backtrace/13716
5855 * infcmd.c (finish_forward): New variable frame_id, initialize it, use
5856 it after set_momentary_breakpoint.
5857
5858 2012-02-22 Sterling Augustine <saugustine@google.com>
5859
5860 PR 13689:
5861 * breakpoint.c (watchpoint_exp_is_constant): Add UNOP_CAST to switch.
5862
5863 2012-02-22 Gary Benson <gbenson@redhat.com>
5864
5865 * dwarf2read.c (dwarf2_read_index): Correct misspelling.
5866 (find_slot_in_mapped_hash): Likewise.
5867
5868 2012-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
5869
5870 PR build/13638
5871 * configure.ac (MAKEINFO): Replace AC_CHECK_PROG by AC_ARG_VAR.
5872 (MAKEINFOFLAGS): Replace static string by AC_ARG_VAR.
5873 * configure: Regenerate.
5874
5875 2012-02-21 Tristan Gingold <gingold@adacore.com>
5876 Pedro Alves <palves@redhat.com>
5877
5878 * ia64-tdep.c: Do not include libunwind-ia64.h.
5879 * libunwind-frame.h: Remove #ifdef HAVE_LIBUNWIND_H guard.
5880 Include libunwind-ia64.h instead of libunwind.h.
5881 * configure.ac (--with-libunwind, $enable_libunwind): Don't check
5882 for libunwind.h existence.
5883 * configure, config.in: Regenerate.
5884
5885 2012-02-21 Anton Gorenkov <xgsa@yandex.ru>
5886
5887 * c-valprint.c (c_value_print): Use value_rtti_indirect_type
5888 instead of value_rtti_target_type.
5889 * eval.c (evaluate_subexp_standard): Use value_rtti_indirect_type
5890 instead of value_rtti_target_type.
5891 * typeprint.c (whatis_exp): Use value_rtti_indirect_type instead of
5892 value_rtti_target_type.
5893 * valops.c (value_ind): Extract function readjust_indirect_value_type.
5894 (value_rtti_target_type): Rename to ...
5895 (value_rtti_indirect_type): ... here and make it indirect. Update
5896 function comment.
5897 * value.c (readjust_indirect_value_type): New function.
5898 (coerce_ref): Support for enclosing type setting for references
5899 with readjust_indirect_value_type.
5900 * value.h (readjust_value_type): New declaration.
5901 (value_rtti_target_type): Rename to ...
5902 (value_rtti_indirect_type): ... here.
5903
5904 2012-02-21 Anton Gorenkov <xgsa@yandex.ru>
5905
5906 * MAINTAINERS (Write After Approval): Add myself to the list.
5907
5908 2012-02-20 Doug Evans <dje@google.com>
5909
5910 * objfiles.c (add_to_objfile_sections): Remove outdated comments.
5911 Rename objfile_p_char parameter to objfilep.
5912 (build_objfile_section_table): Result is now void. All callers
5913 updated.
5914 * objfiles.h (struct objfile): Tweak comments, whitespace.
5915 (build_objfile_section_table): Update.
5916
5917 * elfread.c (elf_symfile_segments): Fix warning text.
5918
5919 2012-02-20 Tom Tromey <tromey@redhat.com>
5920
5921 PR gdb/13498:
5922 * dwarf2read.c (dw2_expand_symtabs_matching): Only visit a
5923 particular set of file names once.
5924 (dw2_map_symbol_filenames): Likewise.
5925
5926 2012-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
5927
5928 Code cleanup.
5929 * main.c (write_files): Remove the declaration.
5930 (external_editor_command): Move the declaration ...
5931 [GDBTK] (external_editor_command): ... here. Fix the comment.
5932
5933 2012-02-20 Tom Tromey <tromey@redhat.com>
5934
5935 * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove
5936 extraneous block.
5937
5938 2012-02-20 Tristan Gingold <gingold@adacore.com>
5939
5940 * darwin-nat.h (enum darwin_msg_state): Add comments.
5941
5942 2012-02-20 Tristan Gingold <gingold@adacore.com>
5943
5944 * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Fix jb_pc_offset
5945 value.
5946
5947 2012-20-18 Joel Brobecker <brobecker@adacore.com>
5948
5949 * breakpoint.c (watchpoint_exp_is_const): Add missing empty line
5950 between function description and implementation.
5951
5952 2012-02-17 Tom Tromey <tromey@redhat.com>
5953
5954 PR python/12070:
5955 * python/py-event.c (event_object_getset): New global.
5956 (event_object_type): Reference it.
5957 * python/py-type.c (field_object_getset): New global.
5958 (field_object_type): Reference it.
5959 * python/python-internal.h (gdb_py_generic_dict): Declare.
5960 * python/py-utils.c (gdb_py_generic_dict): New function.
5961
5962 2012-02-17 Tristan Gingold <gingold@adacore.com>
5963
5964 * solib-darwin.c (darwin_current_sos): Check magic and filetype
5965
5966 2012-02-17 Thomas Schwinge <thomas@codesourcery.com>
5967
5968 * sh-tdep.c (sh_is_renesas_calling_convention): Fix handling of
5969 TYPE_CALLING_CONVENTION annotation.
5970
5971 2012-02-16 Kevin Buettner <kevinb@redhat.com>
5972
5973 * MAINTAINERS: Add rx to target ISA section.
5974 * Makefile.in (ALL_TARGET_OBS): Add rx-tdep.o.
5975 (ALLDEPFILES): Add rx-tdep.c.
5976
5977 2012-02-16 Tom Tromey <tromey@redhat.com>
5978
5979 * symfile.c (symbol_file_add_main_1): Use inferior's
5980 symfile_flags.
5981 * solib.c (solib_read_symbols): Use inferior's symfile_flags.
5982 * linux-nat.c (linux_child_follow_fork): Set symfile_flags on
5983 inferior.
5984 * infrun.c (handle_vfork_child_exec_or_exit): Set symfile_flags on
5985 inferior.
5986 (follow_exec): Use inferior's symfile_flags.
5987 * inferior.h (struct inferior) <symfile_flags>: New field.
5988
5989 2012-02-16 Mike Frysinger <vapier@gentoo.org>
5990
5991 PR gdb/9734:
5992 * remote-sim.c (gdbsim_create_inferior): Call error() when
5993 sim_create_inferior() fails.
5994
5995 2012-02-16 Josh Matthews <josh@joshmatthews.net>
5996
5997 * machoread.c: Initialize nbr_syms to avoid warnings-as-errors failure.
5998
5999 2012-02-16 Tom Tromey <tromey@redhat.com>
6000
6001 PR c++/13653:
6002 * thread.c (struct current_thread_cleanup) <was_removable>: New
6003 field.
6004 (restore_current_thread_cleanup_dtor): Restore 'removable' field.
6005 (make_cleanup_restore_current_thread): Initialize new field.
6006
6007 2012-02-15 Kevin Buettner <kevinb@redhat.com>
6008
6009 * MAINTAINERS: Add rl78 to target ISA section.
6010 * Makefile.in (ALL_TARGET_OBS): Add rl78-tdep.o.
6011 (ALLDEPFILES): Add rl78-tdep.c.
6012 * NEWS: Mention rl78 as a new target.
6013
6014 2012-02-15 Aleksandar Ristovski <aristovski@qnx.com>
6015
6016 * frame.c (find_frame_sal): Initialize sal->pspace field from frame
6017 data.
6018 * stack.c (set_last_displayed_sal): Validate that PSPACE is not NULL.
6019
6020 2012-02-15 Tom Tromey <tromey@redhat.com>
6021
6022 PR gdb/12659:
6023 * infcmd.c (registers_info): Print just the current register's
6024 name.
6025
6026 2012-02-15 Tom Tromey <tromey@redhat.com>
6027
6028 * python/py-symbol.c (sympy_value): Use _().
6029
6030 2012-02-15 Pedro Alves <palves@redhat.com>
6031
6032 * remote.c (remote_detach_1, extended_remote_attach_1): Tweak
6033 output to be like native targets'.
6034 (remote_pid_to_str): Special case the null ptid.
6035
6036 2012-02-14 Stan Shebs <stan@codesourcery.com>
6037
6038 * NEWS: Mention enable count command.
6039 * breakpoint.h (struct breakpoint): New field enable_count.
6040 * breakpoint.c (enable_breakpoint_disp): Add count argument.
6041 (enable_breakpoint): Add arg to call.
6042 (struct disp_data): New struct.
6043 (do_enable_breakpoint_disp): Interp arg as disp_data and unpack.
6044 (do_map_enable_once_breakpoint): Create a struct and pass it.
6045 (do_map_enable_delete_breakpoint): Ditto.
6046 (do_map_enable_count_breakpoint): New function.
6047 (enable_count_command): New function.
6048 (bpstat_stop_status): Decrement enable_count.
6049 (print_one_breakpoint_location): Report enable count.
6050 (_initialize_breakpoint): Add enable count command.
6051
6052 2012-02-14 Kevin Buettner <kevinb@redhat.com>
6053
6054 * rl78-tdep.c (reggroups.h): Include.
6055 (RL78_RAW_BANK0_R0_REGNUM, RL78_RAW_BANK0_R1_REGNUM)
6056 (RL78_RAW_BANK0_R2_REGNUM, RL78_RAW_BANK0_R3_REGNUM)
6057 (RL78_RAW_BANK0_R4_REGNUM, RL78_RAW_BANK0_R5_REGNUM)
6058 (RL78_RAW_BANK0_R6_REGNUM, RL78_RAW_BANK0_R7_REGNUM)
6059 (RL78_RAW_BANK1_R0_REGNUM, RL78_RAW_BANK1_R1_REGNUM)
6060 (RL78_RAW_BANK1_R2_REGNUM, RL78_RAW_BANK1_R3_REGNUM)
6061 (RL78_RAW_BANK1_R4_REGNUM, RL78_RAW_BANK1_R5_REGNUM)
6062 (RL78_RAW_BANK1_R6_REGNUM, RL78_RAW_BANK1_R7_REGNUM)
6063 (RL78_RAW_BANK2_R0_REGNUM, RL78_RAW_BANK2_R1_REGNUM)
6064 (RL78_RAW_BANK2_R2_REGNUM, RL78_RAW_BANK2_R3_REGNUM)
6065 (RL78_RAW_BANK2_R4_REGNUM, RL78_RAW_BANK2_R5_REGNUM)
6066 (RL78_RAW_BANK2_R6_REGNUM, RL78_RAW_BANK2_R7_REGNUM)
6067 (RL78_RAW_BANK3_R0_REGNUM, RL78_RAW_BANK3_R1_REGNUM)
6068 (RL78_RAW_BANK3_R2_REGNUM, RL78_RAW_BANK3_R3_REGNUM)
6069 (RL78_RAW_BANK3_R4_REGNUM, RL78_RAW_BANK3_R5_REGNUM)
6070 (RL78_RAW_BANK3_R6_REGNUM, RL78_RAW_BANK3_R7_REGNUM): Add to
6071 beginning of register list.
6072 (RL78_BANK0_R0_REGNUM, RL78_BANK0_R1_REGNUM, RL78_BANK0_R2_REGNUM)
6073 (RL78_BANK0_R3_REGNUM, RL78_BANK0_R4_REGNUM, RL78_BANK0_R5_REGNUM)
6074 (RL78_BANK0_R6_REGNUM, RL78_BANK0_R7_REGNUM, RL78_BANK1_R0_REGNUM)
6075 (RL78_BANK1_R1_REGNUM, RL78_BANK1_R2_REGNUM, RL78_BANK1_R3_REGNUM)
6076 (RL78_BANK1_R4_REGNUM, RL78_BANK1_R5_REGNUM, RL78_BANK1_R6_REGNUM)
6077 (RL78_BANK1_R7_REGNUM, RL78_BANK2_R0_REGNUM, RL78_BANK2_R1_REGNUM)
6078 (RL78_BANK2_R2_REGNUM, RL78_BANK2_R3_REGNUM, RL78_BANK2_R4_REGNUM)
6079 (RL78_BANK2_R5_REGNUM, RL78_BANK2_R6_REGNUM, RL78_BANK2_R7_REGNUM)
6080 (RL78_BANK3_R0_REGNUM, RL78_BANK3_R1_REGNUM, RL78_BANK3_R2_REGNUM)
6081 (RL78_BANK3_R3_REGNUM, RL78_BANK3_R4_REGNUM, RL78_BANK3_R5_REGNUM)
6082 (RL78_BANK3_R6_REGNUM, RL78_BANK3_R7_REGNUM): Move these into
6083 the pseudo registers. Rearrange other pseudo registers too so
6084 that the bank registers appear at the end.
6085 (rl78_register_type): Account for the fact that the byte sized
6086 bank registers are now pseudo-registers.
6087 (rl78_register_name): Rearrange the register name array. Make
6088 initial set of raw banked registers inaccessible.
6089 (rl78_register_reggroup_p, rl78_register_sim_regno): New functions.
6090 (rl78_pseudo_register_read, rl78_pseudo_register_write): Add
6091 case for copying bytes back and forth between raw and pseudo
6092 versions of the banked registers. Update other cases to reflect
6093 the changed names.
6094 (rl78_return_value): Update to account for changed names of
6095 raw registers.
6096 (rl78_gdbarch_init): Register rl78_register_reggroup_p() and
6097 rl78_register_sim_regno().
6098
6099 2012-02-14 Kevin Buettner <kevinb@redhat.com>
6100
6101 * rl78-tdep.c (rl78_skip_prologue): Make `const' the type of
6102 the name parameter being passed to find_pc_partial_function().
6103
6104 2012-02-14 Jan Kratochvil <jan.kratochvil@redhat.com>
6105
6106 * MAINTAINERS: Step down from being ia64 target maintainer.
6107
6108 2012-02-12 Jan Kratochvil <jan.kratochvil@redhat.com>
6109
6110 * ppc-linux-nat.c (fetch_register, store_register): Fix GCC aliasing
6111 compilation warning.
6112
6113 2012-02-12 Jan Kratochvil <jan.kratochvil@redhat.com>
6114
6115 Fix crash on loaded shlibs without loaded exec_bfd.
6116 * exec.c (exec_files_info): Do not crash on NULL EXEC_BFD.
6117 (set_section_command): Replace exec_bfd by p->bfd.
6118
6119 2012-02-10 Tom Tromey <tromey@redhat.com>
6120
6121 * linespec.c (decode_line_internal): Skip symtabs_from_filename
6122 when we have a C++ qualified name.
6123
6124 2012-02-10 Pedro Alves <palves@redhat.com>
6125
6126 * inferior.c (inferior_pid_to_str): New.
6127 (print_inferior, inferior_command): Use it.
6128
6129 2012-02-10 Pedro Alves <palves@redhat.com>
6130
6131 * configure.ac (HAVE_ELF test): Put the old CFLAGS at the end of
6132 the test CFLAGS.
6133 * configure: Regenerate.
6134
6135 2012-02-10 Jan Kratochvil <jan.kratochvil@redhat.com>
6136
6137 * linespec.c (decode_line_internal): Fix comment correctness.
6138
6139 2012-02-09 Valery Khromov <valery.khromov@gmail.com>
6140
6141 PR gdb/12953
6142 * Makefile.in (HFILES_NO_SRCDIR): Add amd64bsd-nat.h.
6143 * amd64bsd-nat.c: Add support for debug registers (adapted from
6144 i386bsd-nat.c).
6145 [HAVE_PT_GETDBREGS] (amd64bsd_dr_get, amd64bsd_dr_set)
6146 (amd64bsd_dr_set_control, amd64bsd_dr_set_addr)
6147 (amd64bsd_dr_get_addr, amd64bsd_dr_get_status)
6148 (amd64bsd_dr_get_control): New functions.
6149 * amd64bsd-nat.h: New file (adapted from i386bsd-nat.h).
6150 * amd64fbsd-nat.c: Include "amd64bsd-nat.h", "i386-nat.h".
6151 [HAVE_PT_GETDBREGS] (_initialize_amd64fbsd_nat): Add hardware
6152 watchpoints initialization.
6153 * config/i386/fbsd64.mh (NATDEPFILES): Add i386-nat.o.
6154
6155 2012-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
6156
6157 * gdb-gdb.py (StructMainTypePrettyPrinter) <struct_field_img>: Print
6158 flds_bnds.fields.
6159 (StructMainTypePrettyPrinter) <bounds_img>: Print flds_bnds.bounds.
6160
6161 2012-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
6162
6163 * breakpoint.c (bp_location_compare): Fix comment. Reindent the code.
6164
6165 2012-02-08 Joel Brobecker <brobecker@adacore.com>
6166
6167 * language.h (symbol_name_cmp_ftype): Renames
6168 symbol_name_match_p_ftype.
6169 (struct language_defn)[la_get_symbol_name_cmp]: Renames
6170 la_get_symbol_name_match_p.
6171 * ada-lang.c (ada_get_symbol_name_cmp): Renames
6172 ada_get_symbol_name_match_p. Update comment.
6173 (ada_language_defn)[la_get_symbol_name_cmp]: Update value.
6174 * linespec.c (struct symbol_matcher_data)[symbol_name_cmp]:
6175 Renames symbol_name_match_p. Update field type.
6176 (iterate_name_matcher, iterate_over_all_matching_symtabs): Adjust.
6177 * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
6178 opencl-lang.c, p-lang.c: Replace "la_get_symbol_name_match_p" by
6179 "la_get_symbol_name_cmp" in comments.
6180 * language.c: Likewise.
6181
6182 2012-02-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6183
6184 * amd64-sol2-tdep.c (amd64_sol2_gregset_reg_offset): Correct
6185 %eflags offset.
6186 * i386-sol2-nat.c (amd64_sol2_gregset64_reg_offs)
6187 (amd64_sol2_gregset32_reg_offs): Likewise.
6188
6189 2012-02-08 Joel Brobecker <brobecker@adacore.com>
6190
6191 * solib-darwin.c (darwin_bfd_open): Make sure that the filename
6192 of the returned BFD is allocated by GDB.
6193
6194 2012-02-07 Tom Tromey <tromey@redhat.com>
6195
6196 PR python/12027:
6197 * python/python-internal.h (frame_object_type): Declare.
6198 * python/py-symbol.c (sympy_needs_frame): New function.
6199 (sympy_value): New function.
6200 (symbol_object_getset): Add "needs_frame".
6201 (symbol_object_methods): Add "value".
6202 * python/py-frame.c (frame_object_type): No longer static.
6203
6204 2012-02-07 Tom Tromey <tromey@redhat.com>
6205
6206 PR python/13599:
6207 * python/py-symbol.c (sympy_line): New function.
6208 (symbol_object_getset): Add "line".
6209
6210 2012-02-07 Tom Tromey <tromey@redhat.com>
6211
6212 * charset.c (find_charset_names): Check 'in' against NULL.
6213
6214 2012-02-06 Doug Evans <dje@google.com>
6215
6216 * gdbtypes.h (struct main_type): Change type of name,tag_name,
6217 and fields.name members from char * to const char *. All uses updated.
6218 (struct cplus_struct_type): Change type of fn_fieldlists.name member
6219 from char * to const char *. All uses updated.
6220 (type_name_no_tag): Update.
6221 (lookup_unsigned_typename, lookup_signed_typename): Update.
6222 * gdbtypes.c (type_name_no_tag): Change result type
6223 from char * to const char *. All callers updated.
6224 (lookup_unsigned_typename, lookup_signed_typename): Change type of
6225 name parameter from char * to const char *.
6226 * symtab.h (struct cplus_specific): Change type of demangled_name
6227 member from char * to const char *. All uses updated.
6228 (struct general_symbol_info): Change type of name and
6229 mangled_lang.demangled_name members from char * to const char *.
6230 All uses updated.
6231 (symbol_get_demangled_name, symbol_natural_name): Update.
6232 (symbol_demangled_name, symbol_search_name): Update.
6233 * symtab.c (symbol_get_demangled_name): Change result type
6234 from char * to const char *. All callers updated.
6235 (symbol_natural_name, symbol_demangled_name): Ditto.
6236 (symbol_search_name): Ditto.
6237 (completion_list_add_name): Change type of symname,sym_text,
6238 text,word parameters from char * to const char *.
6239 (completion_list_objc_symbol): Change type of sym_text,
6240 text,word parameters from char * to const char *.
6241 * ada-lang.c (find_struct_field): Change type of name parameter
6242 from char * to const char *.
6243 (encoded_ordered_before): Similarly for N0,N1 parameters.
6244 (old_renaming_is_invisible): Similarly for function_name parameter.
6245 (ada_type_name): Change result type from char * to const char *.
6246 All callers updated.
6247 * ada-lang.h (ada_type_name): Update.
6248 * buildsym.c (hashname): Change type of name parameter
6249 from char * to const char *.
6250 * buildsym.h (hashname): Update.
6251 * dbxread.c (end_psymtab): Change type of include_list parameter
6252 from char ** to const char **.
6253 * dwarf2read.c (determine_prefix): Change result type
6254 from char * to const char *. All callers updated.
6255 * f-lang.c (find_common_for_function): Change type of name, funcname
6256 parameters from char * to const char *.
6257 * f-lang.c (find_common_for_function): Update.
6258 * f-valprint.c (list_all_visible_commons): Change type of funcname
6259 parameters from char * to const char *.
6260 * gdbarch.sh (static_transform_name): Change type of name parameter
6261 and result from char * to const char *.
6262 * gdbarch.c: Regenerate.
6263 * gdbarch.h: Regenerate.
6264 * i386-sol2-tdep.c (i386_sol2_static_transform_name): Change type
6265 of name parameter from char * to const char *.
6266 * jv-lang.c (java_primitive_type_from_name): Ditto.
6267 (java_demangled_signature_length): Similarly for signature parameter.
6268 (java_demangled_signature_copy): Ditto.
6269 (java_demangle_type_signature): Ditto.
6270 * jv-lang.h (java_primitive_type_from_name): Update.
6271 (java_demangle_type_signature): Update.
6272 * objc-lang.c (specialcmp): Change type of a,b parameters
6273 from char * to const char *.
6274 * p-lang.c (is_pascal_string_type): Change type of arrayname parameter
6275 from char * to const char *. All callers updated.
6276 * p-lang.h (is_pascal_string_type): Update.
6277 * solib-frv.c (find_canonical_descriptor_in_load_object): Change type
6278 of name parameter from char * to const char *.
6279 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Ditto.
6280 * utils.c (fprintf_symbol_filtered): Ditto.
6281 * defs.h (fprintf_symbol_filtered): Update.
6282 * sparc-tdep.h (sparc_sol2_static_transform_name): Update.
6283 * stabsread.h (end_psymtab): Update.
6284 * stack.c (find_frame_funname): Change type of funname parameter
6285 from char ** to const char **.
6286 * stack.h (find_frame_funname): Update.
6287 * typeprint.c (type_print): Change type of varstring parameter
6288 from char * to const char *.
6289 * value.h (type_print): Update.
6290 * xcoffread.c (xcoff_start_psymtab): Change type of filename parameter
6291 from char * to const char *. All callers updated.
6292 (xcoff_end_psymtab): Change type of include_list parameter
6293 from char ** to const char **. All callers updated.
6294 (swap_sym): Similarly for name parameter. All callers updated.
6295 * coffread.c (patch_type): Add (char*) cast to xfree parameter.
6296 Use xstrdup.
6297 (process_coff_symbol): Use xstrdup.
6298 * stabsread.c (stabs_method_name_from_physname): Renamed from
6299 update_method_name_from_physname. Change result type from void
6300 to char *. All callers updated.
6301 (read_member_functions): In has_destructor case, store name in objfile
6302 obstack instead of malloc space. In !has_stub case, fix mem leak.
6303
6304 2012-02-06 Luca Pizzamiglio <luca.pizzamiglio@gmail.com>
6305
6306 * configure: Rebuild.
6307 * configure.ac: Put -L../bfd and -L../libiberty at the front of
6308 LDFLAGS.
6309
6310 2012-02-03 Kevin Buettner <kevinb@redhat.com>
6311
6312 * configure.tgt (rl78-*-elf): New target.
6313 * rl78-tdep.c: New file.
6314
6315 2012-02-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6316
6317 * remote.c (remote_rcmd): Use getpkt_sane to detect timeout
6318 and continue the loop. Add QUIT statement.
6319
6320 2012-02-03 Tom Tromey <tromey@redhat.com>
6321
6322 PR gdb/13596:
6323 * solib.h (gdb_bfd_lookup_symbol_from_symtab): Rename from
6324 bfd_lookup_symbol_from_symtab.
6325 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
6326 gdb_bfd_lookup_symbol_from_symtab.
6327
6328 2012-02-03 Joel Brobecker <brobecker@adacore.com>
6329
6330 * mi/mi-cmd-stack.c (list_args_or_locals): For argument symbols,
6331 use SYMBOL_LINKAGE_NAME to find the corresponding non-argument
6332 symbol. Add assertion that sym2 is never NULL.
6333
6334 2012-02-02 Doug Evans <dje@google.com>
6335
6336 * blockframe.c (find_pc_partial_function_gnu_ifunc): Change type of
6337 "name" parameter to const char ** from char **. All callers updated.
6338 (find_pc_partial_function): Ditto.
6339 (cache_pc_function_name): Change type to const char * from char *.
6340 * symtab.h ((find_pc_partial_function_gnu_ifunc): Update.
6341 (find_pc_partial_function): Update.
6342 * alpha-tdep.h (struct gdbarch_tdep, member pc_in_sigtramp): Change
6343 type of "name" parameter to const char * from char *.
6344 All uses updated.
6345 * arch-utils.c (generic_in_solib_return_trampoline): Change
6346 type of "name" parameter to const char * from char *.
6347 * arch-utils.h (generic_in_solib_return_trampoline): Update.
6348 * frv-linux-tdep.c (frv_linux_pc_in_sigtramp): Change
6349 type of "name" parameter to const char * from char *.
6350 * gdbarch.sh (in_solib_return_trampoline): Ditto.
6351 * gdbarch.c: Regenerate.
6352 * gdbarch.h: Regenerate.
6353 * hppa-hpux-tdep.c (hppa_hpux_in_solib_return_trampoline): Update.
6354 * rs6000-tdep.c (rs6000_in_solib_return_trampoline): Update.
6355 * m32r-linux-tdep.c (m32r_linux_pc_in_sigtramp): Change
6356 type of "name" parameter to const char * from char *.
6357 * skip.c (skip_function_pc): Ditto.
6358 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Ditto.
6359 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp): Update.
6360 * sparc64fbsd-tdep.c (sparc64fbsd_pc_in_sigtramp): Ditto.
6361 * sparc64nbsd-tdep.c (sparc64nbsd_pc_in_sigtramp): Ditto.
6362 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Ditto.
6363 * sparcnbsd-tdep.c (sparc32nbsd_pc_in_sigtramp): Ditto.
6364 * sparcobsd-tdep.c (sparc32obsd_pc_in_sigtramp): Ditto.
6365 * nbsd-tdep.c (nbsd_pc_in_sigtramp): Similary for "func_name".
6366 * nbsd-tdep.h (nbsd_pc_in_sigtramp): Update.
6367
6368 2012-02-02 Pedro Alves <palves@redhat.com>
6369
6370 * remote.c (remote_get_min_fast_tracepoint_insn_len): Return 0 if
6371 the current inferior has no execution. Make sure the current
6372 remote process matches gdb's current inferior.
6373
6374 2012-02-02 Tom Tromey <tromey@redhat.com>
6375
6376 PR gdb/13405:
6377 * tui/tui-win.c (parse_scrolling_args): Don't write to possibly
6378 read-only memory.
6379
6380 2012-02-02 Tom Tromey <tromey@redhat.com>
6381
6382 PR gdb/9307:
6383 * symtab.c (lookup_language_this): Set block_found.
6384
6385 2012-02-01 Tom Tromey <tromey@redhat.com>
6386
6387 PR gdb/13431:
6388 * jit.c (struct jit_inferior_data): Rewrite.
6389 (struct jit_objfile_data): New.
6390 (get_jit_objfile_data): New function.
6391 (add_objfile_entry): Update.
6392 (jit_read_descriptor): Return int. Replace descriptor_addr
6393 argument with inf_data. Update. Don't call error.
6394 (jit_breakpoint_re_set_internal): Reorder logic. Update. Look up
6395 descriptor here.
6396 (jit_inferior_init): Don't look up descriptor. Don't call error.
6397 (jit_reset_inferior_data_and_breakpoints)
6398 (jit_inferior_created_observer): Remove.
6399 (jit_inferior_exit_hook): Update.
6400 (jit_executable_changed_observer): Remove.
6401 (jit_event_handler): Update.
6402 (free_objfile_data): Reset inferior data if needed.
6403 (_initialize_jit): Update.
6404
6405 2012-02-01 Tom Tromey <tromey@redhat.com>
6406
6407 * jit.c (bfd_open_from_target_memory): Move higher in file.
6408
6409 2012-02-01 Tristan Gingold <gingold@adacore.com>
6410
6411 * libunwind-frame.c (libunwind_load): Display message if dlopen
6412 failed.
6413
6414 2012-02-01 Gary Benson <gbenson@redhat.com>
6415
6416 * symtab.h (symbol_found_callback_ftype): New typedef.
6417 (iterate_over_symbols): Use the above.
6418 * symtab.c (iterate_over_symbols): Likewise.
6419 * language.h (language_defn->la_iterate_over_symbols): Likewise.
6420 * ada-lang.c (ada_iterate_over_symbols): Likewise.
6421 * linespec.c (iterate_over_all_matching_symtabs): Likewise.
6422 (iterate_name_matcher): Document return values.
6423 (collect_one_symbol): Likewise.
6424 (collect_function_symbols): Likewise.
6425 (collect_symbols): Likewise.
6426
6427 2012-02-01 Tom Tromey <tromey@redhat.com>
6428
6429 * ada-lang.c (resolve_subexp): Update.
6430 (ada_lookup_symbol_list): Add 'full_search' argument.
6431 (ada_iterate_over_symbols): Pass 0 as full_search argument to
6432 ada_lookup_symbol_list.
6433 (ada_lookup_encoded_symbol): Update.
6434 (get_var_value): Update.
6435 * ada-exp.y (block_lookup): Update.
6436 (write_var_or_type): Update.
6437 (write_name_assoc): Update.
6438 * ada-lang.h (ada_lookup_symbol_list): Update.
6439
6440 2012-01-31 Tom Tromey <tromey@redhat.com>
6441
6442 * language.h (struct language_defn) <la_iterate_over_symbols>: Fix
6443 comment.
6444
6445 2012-01-31 Doug Evans <dje@google.com>
6446
6447 * symtab.h: Remove outdated comment.
6448 (SYMBOL_MATCHES_NATURAL_NAME): Delete.
6449
6450 2012-02-01 Josh Matthews <josh@joshmatthews.net> (tiny change)
6451
6452 Fix build error in Darwin port.
6453 * i386-darwin-nat.c: Include i386-nat.h.
6454
6455 2012-01-30 Tom Tromey <tromey@redhat.com>
6456
6457 PR breakpoints/13568:
6458 * dwarf2read.c (dwarf_decode_macro_bytes): Add 'include_hash'
6459 argument. Check for recursive includes.
6460 (dwarf_decode_macros): Create an include hash.
6461
6462 2012-01-30 Michael Eager <eager@eagercon.com>
6463
6464 * configure.tgt (powerpc-*-linux*): Add glibc-tdep.o.
6465 * ppc-linux-tdep.c: Include glibc-tdep.h.
6466 (powerpc32_plt_stub, powerpc32_plt_stub_so): Add PLT stub templates.
6467 (powerpc_linux_in_plt_stub): New function.
6468 (powerpc_linux_in_dynsym_resolve_code): New function.
6469 (ppc_skip_trampoline_code): New function.
6470 (ppc_linux_init_abi): Use PPC specific functions rather than generic.
6471 Use glibc_skip_solib_resolver.
6472
6473 2012-01-28 Jan Kratochvil <jan.kratochvil@redhat.com>
6474
6475 Code cleanup: Make 1440 bytes of data segment read-only.
6476 * arch-utils.c (endian_enum): Make it const char *const [].
6477 * arm-tdep.c (fp_model_strings, arm_abi_strings, arm_mode_strings):
6478 Likewise.
6479 * breakpoint.c (always_inserted_enums): Likewise.
6480 * cli/cli-cmds.c (script_ext_enums): Likewise.
6481 * cli/cli-decode.c (add_setshow_enum_cmd, complete_on_enum): Make the
6482 enumlist parameter const char *const *.
6483 * cli/cli-decode.h (struct cmd_list_element): Make the enums field
6484 const char *const *.
6485 * command.h (complete_on_enum, add_setshow_enum_cmd): Make the enumlist
6486 parameter const char *const *.
6487 * cris-tdep.c (cris_modes): Make it const char *const [].
6488 * filesystem.c (target_file_system_kinds): Likewise.
6489 * i386-tdep.c (valid_flavors, valid_conventions): Likewise.
6490 * infrun.c (follow_fork_mode_kind_names, follow_exec_mode_names)
6491 (can_use_displaced_stepping_enum, scheduler_enums)
6492 (exec_direction_names): Likewise.
6493 * language.c (_initialize_language): Make the type_or_range_names and
6494 case_sensitive_names variables const char *const [].
6495 * mips-tdep.c (mips_abi_strings): Make it const char *const [].
6496 * python/python.c (python_excp_enums): Likewise.
6497 * remote.c (interrupt_sequence_modes): Likewise.
6498 * rs6000-tdep.c (powerpc_vector_strings): Likewise.
6499 * serial.c (logbase_enums): Likewise.
6500 * sh-tdep.c (sh_cc_enum): Likewise.
6501 * stack.c (print_frame_arguments_choices, print_entry_values_choices):
6502 Likewise.
6503 * symtab.c (multiple_symbols_modes): Likewise.
6504 * tui/tui-win.c (tui_border_kind_enums, tui_border_mode_enums):
6505 Likewise.
6506 * utils.c (internal_problem_modes): Likewise.
6507
6508 2012-01-27 Jan Kratochvil <jan.kratochvil@redhat.com>
6509
6510 Fix the 2012-01-26 regression by la_get_symbol_name_match_p.
6511 * linespec.c (iterate_name_matcher): Negate the SYMBOL_NAME_MATCH_P
6512 result.
6513
6514 2012-01-27 Doug Evans <dje@google.com>
6515
6516 * configure.ac (with_python): Fix absolute path handling for win32.
6517 * configure: Regenerate.
6518
6519 2012-01-26 Doug Evans <dje@google.com>
6520
6521 * symtab.c: Whitespace cleanup, no code changes.
6522
6523 * symtab.c (lookup_symbol_in_language): Improve comment.
6524 (lookup_symbol_aux): Fix comment.
6525
6526 * psymtab.c (add_psymbol_to_list): Result is now "void".
6527 * psympriv.h (add_psymbol_to_list): Update.
6528
6529 * dwarf2read.c (add_partial_symbol): Delete local psym, unused.
6530
6531 2012-01-26 Jan Kratochvil <jan.kratochvil@redhat.com>
6532
6533 Do not open script filenames twice.
6534 * cli/cli-cmds.c (source_script_from_stream): Pass to
6535 source_python_script also STREAM.
6536 * python/py-auto-load.c (source_section_scripts): Pass to
6537 source_python_script_for_objfile also STREAM.
6538 (auto_load_objfile_script): Pass to source_python_script_for_objfile
6539 also INPUT.
6540 * python/python-internal.h (source_python_script_for_objfile): New
6541 parameter file, rename parameter file to filename.
6542 * python/python.c (python_run_simple_file): Call PyRun_SimpleFile
6543 instead if !_WIN32. Update the function comment.
6544 (source_python_script, source_python_script_for_objfile)
6545 (source_python_script): New parameter file, rename parameter file to
6546 filename. Pass FILENAME to python_run_simple_file.
6547 * python/python.h (source_python_script): New parameter file, rename
6548 parameter file to filename.
6549
6550 2012-01-26 Pedro Alves <palves@redhat.com>
6551
6552 * corelow.c (core_has_fake_pid): Delete.
6553 (core_close): Delete references to `core_has_fake_pid'.
6554 (add_to_thread_list): Adjust to mark the inferior's pid as fake.
6555 (core_open): Delete references to `core_has_fake_pid'.
6556 (core_pid_to_str): Adjust to check inferior->fake_pid_p instead of
6557 the removed global.
6558
6559 2012-01-26 Joel Brobecker <brobecker@adacore.com>
6560
6561 * symfile.h (struct quick_symbol_functions) [expand_symtabs_matching]:
6562 Remove language parameter from name_matcher. Adjust the comment.
6563 * symtab.c (search_symbols_name_matches, expand_partial_symbol_name):
6564 Remove language parameter.
6565 * ada-lang.c (ada_expand_partial_symbol_name): Likewise.
6566 * linespec.c (iterate_name_matcher): Likewise.
6567 * dwarf2read.c (dw2_expand_symtabs_matching): Adjust type of
6568 name_matcher. Adjust call accordingly.
6569 * psymtab.c (expand_symtabs_matching_via_partial): Likewise.
6570 (maintenance_check_symtabs): Adjust type of parameter "fun".
6571 * psymtab.h (maintenance_check_symtabs): Likewise.
6572
6573 2012-01-26 Joel Brobecker <brobecker@adacore.com>
6574
6575 * language.h (symbol_name_match_p_ftype): New typedef.
6576 (struct language_defn): Replace field la_symbol_name_compare
6577 by la_get_symbol_name_match_p.
6578 * ada-lang.c (ada_get_symbol_name_match_p): New function.
6579 (ada_language_defn): Use it.
6580 * linespec.c (struct symbol_matcher_data): New type.
6581 (iterate_name_matcher): Rewrite.
6582 (iterate_over_all_matching_symtabs): Pass a pointer to
6583 a symbol_matcher_data struct to expand_symtabs_matching
6584 instead of just the lookup name.
6585 * c-lang.c, d-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
6586 opencl-lang.c, p-lang.c, language.c: Delete field
6587 la_symbol_name_compare, and replace by NULL for new field
6588 la_get_symbol_name_match_p.
6589 * symfile.h (struct quick_symbol_functions): Update comment.
6590
6591 2012-01-25 Tom Tromey <tromey@redhat.com>
6592
6593 * breakpoint.c (bpstat_stop_status): Check 'breakpoint_at' before
6594 dereferencing.
6595
6596 2012-01-24 Tom Tromey <tromey@redhat.com>
6597
6598 PR symtab/12406:
6599 * solib.c (update_solib_list): Update the program space's
6600 added_solibs and deleted_solibs fields.
6601 * progspace.h (struct program_space) <added_solibs,
6602 deleted_solibs>: New fields.
6603 (clear_program_space_solib_cache): Declare.
6604 * progspace.c (release_program_space): Call
6605 clear_program_space_solib_cache.
6606 (clear_program_space_solib_cache): New function.
6607 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>: Call
6608 bpstat_stop_status. Use handle_solib_event.
6609 * breakpoint.c: Include gdb_regex.h.
6610 (print_solib_event): New function.
6611 (bpstat_print): Use print_solib_event.
6612 (bpstat_stop_status): Add special case for bp_shlib_event.
6613 (handle_solib_event): New function.
6614 (bpstat_what): Use handle_solib_event.
6615 (struct solib_catchpoint): New.
6616 (dtor_catch_solib, insert_catch_solib, remove_catch_solib)
6617 (breakpoint_hit_catch_solib, check_status_catch_solib)
6618 (print_it_catch_solib, print_one_catch_solib)
6619 (print_mention_catch_solib, print_recreate_catch_solib): New
6620 functions.
6621 (catch_solib_breakpoint_ops): New global.
6622 (catch_load_or_unload, catch_load_command_1)
6623 (catch_unload_command_1): New functions.
6624 (internal_bkpt_check_status): Add special case for
6625 bp_shlib_event.
6626 (internal_bkpt_print_it): Use print_solib_event.
6627 (initialize_breakpoint_ops): Initialize
6628 catch_solib_breakpoint_ops.
6629 (_initialize_breakpoint): Register "catch load" and "catch
6630 unload".
6631 * breakpoint.h (handle_solib_event): Declare.
6632 * NEWS: Add entry for "catch load" and "catch unload".
6633
6634 2012-01-24 Tom Tromey <tromey@redhat.com>
6635
6636 * ada-lang.c: Include gdb_vecs.h.
6637 * charset.c: Include gdb_vecs.h.
6638 * tracepoint.h: Include gdb_vecs.h.
6639 * gdb_vecs.h: New file.
6640
6641 2012-01-24 Pedro Alves <pedro@codesourcery.com>
6642
6643 * breakpoint.c (breakpoint_hit_catch_fork)
6644 (breakpoint_hit_catch_vfork, breakpoint_hit_catch_syscall)
6645 (breakpoint_hit_catch_exec): Make use of the `ws' argument.
6646 * infrun.c (inferior_has_forked, inferior_has_vforked)
6647 (inferior_has_execd, inferior_has_called_syscall): Delete.
6648 (handle_syscall_event): Get syscall_number from the execution
6649 control state's wait status.
6650 (wait_for_inferior): Don't clear syscall_number.
6651
6652 2012-01-24 Pedro Alves <palves@redhat.com>
6653
6654 * breakpoint.c (bpstat_check_location, bpstat_stop_status,
6655 pc_at_non_inline_function): Add `ws' parameter, and pass it down.
6656 (breakpoint_hit_catch_fork, breakpoint_hit_catch_vfork)
6657 (breakpoint_hit_catch_syscall, breakpoint_hit_catch_exec): Add
6658 `ws' parameter.
6659 (breakpoint_hit_ranged_breakpoint): Add `ws' parameter. Return
6660 false for events other than TARGET_SIGNAL_TRAP.
6661 (breakpoint_hit_watchpoint, base_breakpoint_breakpoint_hit):
6662 Add `ws' parameter.
6663 (bkpt_breakpoint_hit): Add `ws' parameter. Return false for
6664 events other than TARGET_SIGNAL_TRAP.
6665 (tracepoint_breakpoint_hit): Add `ws' parameter.
6666 * breakpoint.h (struct breakpoint_ops) <breakpoint_hit>: Add `ws'
6667 parameter.
6668 (bpstat_stop_status): Same.
6669 (pc_at_non_inline_function): Same.
6670 * infrun.c (handle_syscall_event, handle_inferior_event): Adjust
6671 to pass the current event's waitstatus to bpstat_stop_status
6672 and pc_at_non_inline_function.
6673
6674 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
6675
6676 Code cleanup.
6677 * cli/cli-cmds.c (source_script_from_stream): Never fclose STREAM.
6678 Update the function comment for it.
6679 (source_script_with_search): Call make_cleanup_fclose for STREAM.
6680 * cli/cli-script.c (script_from_file): Do not call make_cleanup_fclose
6681 for STREAM.
6682
6683 2012-01-24 Pedro Alves <palves@redhat.com>
6684
6685 * breakpoint.c (bpstat_stop_status): Moving clearing print_it
6686 outside `bs->stop' block.
6687 (bpstat_what): Rework bp_shlib_event handling.
6688 (internal_bkpt_check_status): If the breakpoint is a
6689 bp_shlib_event, then set bs->stop and bs->print if
6690 stop_on_solib_events is set.
6691
6692 2012-01-24 Gary Benson <gbenson@redhat.com>
6693
6694 Delete #if 0'd out code.
6695 * stack.c (print_frame_label_vars): Remove.
6696 (catch_info): Likewise.
6697 (_initialize_stack): Remove "info catch" command.
6698 * NEWS: Mention the above.
6699
6700 2012-01-24 Pedro Alves <palves@redhat.com>
6701
6702 * remote.c (remote_add_inferior): New `fake_pid_p' parameter. Use
6703 it.
6704 (remote_notice_new_inferior): If the remote end doesn't support
6705 the multiprocess extensions, then the PID is fake.
6706 (add_current_inferior_and_thread): New.
6707 (remote_start_remote): Use it.
6708 (extended_remote_attach_1): Adjust.
6709 (extended_remote_create_inferior_1): Use
6710 add_current_inferior_and_thread.
6711
6712 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
6713
6714 Fix watchpoints to be specific for each inferior.
6715 * breakpoint.c (watchpoint_in_thread_scope): Verify also
6716 current_program_space.
6717 * i386-nat.c (i386_inferior_data_cleanup): New.
6718 (i386_inferior_data_get): Replace variable inf_data_local by an
6719 inferior_data call.
6720 (i386_use_watchpoints): Initialize i386_inferior_data.
6721 * linux-nat.c (linux_nat_iterate_watchpoint_lwps): Use INFERIOR_PTID
6722 specific iterate_over_lwps.
6723
6724 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
6725
6726 Fix watchpoints across inferior fork.
6727 * amd64-linux-nat.c (update_debug_registers_callback): Update the
6728 comment for linux_nat_iterate_watchpoint_lwps.
6729 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
6730 linux_nat_iterate_watchpoint_lwps.
6731 (amd64_linux_prepare_to_resume): New comment on Linux kernel.
6732 * i386-linux-nat.c (update_debug_registers_callback): Update the
6733 comment for linux_nat_iterate_watchpoint_lwps.
6734 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
6735 linux_nat_iterate_watchpoint_lwps.
6736 (i386_linux_prepare_to_resume): New comment on Linux kernel.
6737 * i386-nat.c: Include inferior.h.
6738 (dr_mirror): Remove.
6739 (i386_inferior_data, struct i386_inferior_data)
6740 (i386_inferior_data_get): New.
6741 (i386_debug_reg_state): Use i386_inferior_data_get.
6742 (i386_cleanup_dregs, i386_update_inferior_debug_regs)
6743 (i386_insert_watchpoint, i386_remove_watchpoint)
6744 (i386_stopped_data_address, i386_insert_hw_breakpoint)
6745 (i386_remove_hw_breakpoint): New variable state, use
6746 i386_debug_reg_state instead of DR_MIRROR.
6747 * linux-nat.c (delete_lwp): New declaration.
6748 (num_lwps): Move here from downwards.
6749 (delete_lwp_cleanup): New.
6750 (linux_child_follow_fork): Create new child_lp, call
6751 linux_nat_new_thread and linux_nat_prepare_to_resume before calling
6752 PTRACE_DETACH.
6753 (num_lwps): Move upwards.
6754 (linux_nat_iterate_watchpoint_lwps): New.
6755 * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): New.
6756 (linux_nat_iterate_watchpoint_lwps_ftype): New declaration.
6757
6758 2012-01-24 Joel Brobecker <brobecker@adacore.com>
6759
6760 GDB 7.4 released.
6761
6762 2012-01-23 Pedro Alves <palves@redhat.com>
6763
6764 * top.c (caution): Rename to ...
6765 (confirm): ... this.
6766 (show_caution): Rename to ...
6767 (show_confirm): ... this.
6768 (quit_cover): Adjust.
6769 (init_main): Adjust.
6770 * top.h (caution): Rename to ...
6771 (confirm): ... this.
6772 * utils.c (internal_vproblem, defaulted_query): Adjust.
6773
6774 2012-01-23 Pedro Alves <palves@redhat.com>
6775
6776 * top.c (caution): Update comment.
6777 (execute_command): Don't consider the current value of `caution'.
6778
6779 2012-01-23 Jan Kratochvil <jan.kratochvil@redhat.com>
6780
6781 * cli/cli-cmds.c (find_and_open_script): Handle failure of fdopen.
6782
6783 2012-01-23 Ulrich Weigand <ulrich.weigand@linaro.org>
6784
6785 * inf-child.c: Include "gdb_stat.h" instead of <sys/stat.h>.
6786 * linux-tdep.c (linux_info_proc): Avoid ARI coding style warning.
6787 * target.c (target_fileio_pwrite): Remove buffer address from
6788 debug output.
6789 (target_fileio_pread): Likewise.
6790
6791 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
6792
6793 * NEWS: Document remote "info proc" and "generate-core-file".
6794
6795 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
6796
6797 * gdbarch.sh (find_memory_regions): New callback.
6798 * gdbarch.c, gdbarch.h: Regenerate.
6799
6800 * gcore.c (gcore_memory_sections): Try gdbarch find_memory_regions
6801 callback before falling back to target method.
6802
6803 * linux-nat.c (read_mapping, linux_nat_find_memory_regions): Remove.
6804 (linux_target_install_ops): No longer install it.
6805
6806 * linux-tdep.c (linux_find_memory_regions): New function.
6807 (linux_init_abi): Install it.
6808
6809 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
6810
6811 * gdbarch.sh (make_corefile_notes): New architecture callback.
6812 * gdbarch.c: Regenerate.
6813 * gdbarch.h: Likewise.
6814
6815 * gcore.c (write_gcore_file): Try gdbarch_make_corefile_notes
6816 before target_make_corefile_notes. If NULL is returned, the
6817 target does not support core file generation.
6818
6819 * linux-nat.c: Include "linux-tdep.h".
6820 (find_signalled_thread, find_stop_signal): Remove.
6821 (linux_nat_do_thread_registers): Likewise.
6822 (struct linux_nat_corefile_thread_data): Likewise.
6823 (linux_nat_corefile_thread_callback): Likewise.
6824 (iterate_over_spus): Likewise.
6825 (struct linux_spu_corefile_data): Likewise.
6826 (linux_spu_corefile_callback): Likewise.
6827 (linux_spu_make_corefile_notes): Likewise.
6828 (linux_nat_collect_thread_registers): New function.
6829 (linux_nat_make_corefile_notes): Replace contents by call to
6830 linux_make_corefile_notes passing linux_nat_collect_thread_registers
6831 as native-only callback.
6832
6833 * linux-tdep.h: Include "bfd.h".
6834 (struct regcache): Add forward declaration.
6835 (linux_collect_thread_registers_ftype): New typedef.
6836 (linux_make_corefile_notes): Add prototype.
6837 * linux-tdep.c: Include "gdbthread.h", "gdbcore.h", "regcache.h",
6838 "regset.h", and "elf-bfd.h".
6839 (find_signalled_thread, find_stop_signal): New functions.
6840 (linux_spu_make_corefile_notes): Likewise.
6841 (linux_collect_thread_registers): Likewise.
6842 (struct linux_corefile_thread_data): New data structure.
6843 (linux_corefile_thread_callback): New funcion.
6844 (linux_make_corefile_notes): Likewise.
6845 (linux_make_corefile_notes_1): Likewise.
6846 (linux_init_abi): Install it.
6847
6848 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
6849
6850 * gdbarch.sh (info_proc): New callback.
6851 * gdbarch.c, gdbarch.h: Regenerate.
6852
6853 * infcmd.c (info_proc_cmd_1): Try gdbarch info_proc callback
6854 before falling back to the target info_proc callback.
6855
6856 * linux-nat.c: Do not include "cli/cli-utils.h".
6857 (linux_nat_info_proc): Remove.
6858 (linux_target_install_ops): No longer install it.
6859
6860 * linux-tdep.c: Include "cli/cli-utils.h" and <ctype.h>.
6861 (read_mapping): New function.
6862 (linux_info_proc): Likewise.
6863 (linux_init_abi): Install it.
6864
6865 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
6866
6867 * defs.h (enum info_proc_what): Moved here from linux-nat.c
6868 * infcmd.c: (info_proc_cmd_1): New function.
6869 (info_proc_cmd): New function, moved here from equivalent routine
6870 orignally in linux-nat.c.
6871 (info_proc_cmd_mappings): Likewise.
6872 (info_proc_cmd_stat): Likewise.
6873 (info_proc_cmd_status): Likewise.
6874 (info_proc_cmd_cwd): Likewise.
6875 (info_proc_cmd_cmdline): Likewise.
6876 (info_proc_cmd_exe): Likewise.
6877 (info_proc_cmd_all): Likewise.
6878 (_initialize_infcmd): Install "info proc" command and subcommands.
6879
6880 * target.h (struct target_ops): Add to_info_proc.
6881 (target_info_proc): Add prototype.
6882 * target.c (target_info_proc): New function.
6883
6884 * procfs.c (procfs_info_proc): Add prototype.
6885 (info_proc_cmd): Rename into ...
6886 (procfs_info_proc): ... this. Update argument types as appropriate
6887 for a to_info_proc implementation. Handle "what" argument.
6888 (procfs_target): Install procfs_info_proc.
6889 (_initialize_procfs): No longer install "info proc" command.
6890
6891 * linux-nat.c: (enum info_proc_what): Remove.
6892 (linux_nat_info_proc_cmd_1): Rename into ...
6893 (linux_nat_info_proc): ... this. Update argument types as appropriate
6894 for a to_info_proc implementation.
6895 (linux_nat_info_proc_cmd): Remove.
6896 (linux_nat_info_proc_cmd_mappings): Likewise.
6897 (linux_nat_info_proc_cmd_stat): Likewise.
6898 (linux_nat_info_proc_cmd_status): Likewise.
6899 (linux_nat_info_proc_cmd_cwd): Likewise.
6900 (linux_nat_info_proc_cmd_cmdline): Likewise.
6901 (linux_nat_info_proc_cmd_exe): Likewise.
6902 (linux_nat_info_proc_cmd_all): Likewise.
6903 (linux_target_install_ops): Install linux_nat_info_proc.
6904 (_initialize_linux_nat): No longer install "info proc" command
6905 and subcommands.
6906
6907 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
6908
6909 * configure.ac [AC_CHECK_FUNCS]: Check for readlink.
6910 * config.in, configure: Regenerate.
6911
6912 * target.h (struct target_ops): Add to_fileio_readlink.
6913 (target_fileio_readlink): Add prototype.
6914 * target.c (target_fileio_readlink): New function.
6915
6916 * inf-child.c: Conditionally include <sys/param.h>.
6917 (inf_child_fileio_readlink): New function.
6918 (inf_child_target): Install it.
6919
6920 * remote.c (PACKET_vFile_readlink): New enum value.
6921 (remote_hostio_readlink): New function.
6922 (init_remote_ops): Install it.
6923 (_initialize_remote): Handle vFile:readlink packet type.
6924
6925 2012-01-20 Pedro Alves <palves@redhat.com>
6926 Ulrich Weigand <ulrich.weigand@linaro.org>
6927
6928 * configure.ac [AC_CHECK_FUNCS]: Check for pread and pwrite.
6929 * config.in, configure: Regenerate.
6930
6931 * target.h (struct target_ops): Add to_fileio_open, to_fileio_pwrite,
6932 to_fileio_pread, to_fileio_close, to_fileio_unlink.
6933 (target_fileio_open): Add prototype.
6934 (target_fileio_pwrite): Likewise.
6935 (target_fileio_pread): Likewise.
6936 (target_fileio_close): Likewise.
6937 (target_fileio_unlink): Likewise.
6938 (target_fileio_read_alloc): Likewise.
6939 (target_fileio_read_stralloc): Likewise.
6940
6941 * target.c: Include "gdb/fileio.h".
6942 (target_read_stralloc): Accept trailing, but not embedded NUL bytes.
6943 (default_fileio_target): New function.
6944 (target_fileio_open): Likewise.
6945 (target_fileio_pwrite): Likewise.
6946 (target_fileio_pread): Likewise.
6947 (target_fileio_close): Likewise.
6948 (target_fileio_unlink): Likewise.
6949 (target_fileio_close_cleanup): Likewise.
6950 (target_fileio_read_alloc_1): Likewise.
6951 (target_fileio_read_alloc): Likewise.
6952 (target_fileio_read_stralloc): Likewise.
6953
6954 * inf-child.c: Include "gdb/fileio.h", <sys/types.h>, <sys/stat.h>,
6955 <fcntl.h>, and <unistd.h>.
6956 (inf_child_fileio_open_flags_to_host): New function.
6957 (inf_child_errno_to_fileio_error): Likewise.
6958 (inf_child_fileio_open): Likewise.
6959 (inf_child_fileio_pwrite): Likewise.
6960 (inf_child_fileio_pread): Likewise.
6961 (inf_child_fileio_close): Likewise.
6962 (inf_child_fileio_unlink): Likewise.
6963 (inf_child_target): Install to_fileio routines.
6964
6965 * remote.c (init_remote_ops): Install to_fileio routines.
6966
6967 2012-01-20 Pedro Alves <palves@redhat.com>
6968 Ulrich Weigand <ulrich.weigand@linaro.org>
6969
6970 * remote.c (remote_multi_process_p): Only check for multi-process
6971 protocol feature, do not check for extended protocol.
6972 (remote_supports_multi_process): Check for extended protocol here.
6973 (set_general_process): Likewise.
6974 (extended_remote_kill): Likewise.
6975 (remote_pid_to_str): Likewise.
6976 (remote_query_supported): Always query multiprocess mode.
6977
6978 2012-01-20 Pedro Alves <palves@redhat.com>
6979 Ulrich Weigand <ulrich.weigand@linaro.org>
6980
6981 * inferior.h (struct inferior): Add fake_pid_p.
6982 * inferior.c (exit_inferior_1): Clear fake_pid_p.
6983 * remote.c (remote_start_remote): Set fake_pid_p if we have to use
6984 magic_null_ptid since the remote side doesn't provide a real PID.
6985
6986 2012-01-19 Tom Tromey <tromey@redhat.com>
6987
6988 * NEWS: Combine the two Python sections.
6989
6990 2012-01-19 Jan Kratochvil <jan.kratochvil@redhat.com>
6991
6992 * target.h (target_close): Update comment on the target's unpush state.
6993
6994 2012-01-19 Pedro Alves <palves@redhat.com>
6995
6996 * linux-nat.c (linux_nat_close): Call linux_nat_is_async_p and
6997 linux_nat_async directly instead of going through the target
6998 vector.
6999 * target.c (unpush_target): Close target after unpushing it, not
7000 before.
7001
7002 2012-01-19 Gary Benson <gbenson@redhat.com>
7003
7004 * mdebugread.c (sort_blocks): Replace integer constants with ones
7005 derived from FIRST_LOCAL_BLOCK.
7006
7007 2012-01-18 Paul Pluzhnikov <ppluzhnikov@google.com>
7008 Jan Kratochvil <jan.kratochvil@redhat.com>
7009
7010 PR gdb/9538
7011 * symfile.c (find_separate_debug_file): New function.
7012 (terminate_after_last_dir_separator): Likewise.
7013 (find_separate_debug_file_by_debuglink): Also try realpath.
7014 * configure.ac (AC_CHECK_FUNCS): Add lstat.
7015 * configure: Regenerate.
7016 * config.in: Regenerate.
7017
7018 2012-01-18 Doug Evans <dje@google.com>
7019
7020 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): Delete.
7021 (main.o): Remove rule.
7022 * configure.ac (BINDIR): Define with AC_DEFINE_DIR.
7023 (--with-sysroot): Rewrite.
7024 * configure: Regenerate.
7025 * config.in: Regenerate.
7026
7027 2012-01-18 Sergio Durigan Junior <sergiodj@redhat.com>
7028
7029 * parse.c (initialize_expout): New function.
7030 (reallocate_expout): Likewise.
7031 (parse_exp_in_context): Use `initialize_expout' and
7032 `reallocate_expout' when appropriate.
7033
7034 2012-01-18 Pedro Alves <palves@redhat.com>
7035
7036 * record.c (struct record_breakpoint, record_breakpoint_p)
7037 (record_breakpoints): New.
7038 (record_insert_breakpoint, record_remove_breakpoint): Manage
7039 record breakpoints list. Only remove breakpoints from the
7040 inferior if they had been inserted there in the first place.
7041
7042 2012-01-17 Doug Evans <dje@google.com>
7043
7044 * linespec.c (decode_line_internal): Don't call symtabs_from_filename
7045 if we know we don't have a file name to look for.
7046
7047 2012-01-17 Pedro Alves <palves@redhat.com>
7048
7049 * dwarf2-frame.c (dwarf2_frame_cfa): Throw NOT_AVAILABLE_ERROR, if
7050 the frame's stop reason is UNWIND_UNAVAILABLE.
7051
7052 2012-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7053
7054 Fix compilation error.
7055 * m2-exp.y (yyerror): Use ANSI C prototype.
7056
7057 2012-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
7058
7059 * f-exp.y (parse_number): Convert prototype from K&R to ANSI C.
7060 (growbuf_by_size): Likewise.
7061 (yyerror): Likewise.
7062 * m2-exp.y (make_qualname): Remove function (was #if 0'ed).
7063 (modblock): Remove variable (was #if 0'ed).
7064 (parse_number): Convert prototype from K&R to ANSI C.
7065 (yyerror): Likewise.
7066 * objc-exp.y (parse_number): Likewise.
7067 (yyerror): Likewise.
7068 (yylex): Remove #if 0'ed code.
7069 * p-exp.y (uptok): Convert prototype from K&R to ANSI C.
7070 (yyerror): Likewise.
7071
7072 2012-01-16 Tom Tromey <tromey@redhat.com>
7073
7074 * NEWS: Add item.
7075 * symtab.h (compare_filenames_for_search): Declare.
7076 * symtab.c (compare_filenames_for_search): New function.
7077 (iterate_over_some_symtabs): Use it.
7078 * symfile.h (struct quick_symbol_functions)
7079 <map_symtabs_matching_filename>: Change spec.
7080 * psymtab.c (partial_map_symtabs_matching_filename): Use
7081 compare_filenames_for_search. Update for new spec.
7082 * dwarf2read.c (dw2_map_symtabs_matching_filename): Use
7083 compare_filenames_for_search. Update for new spec.
7084 * breakpoint.c (clear_command): Use compare_filenames_for_search.
7085
7086 2012-01-16 Tom Tromey <tromey@redhat.com>
7087
7088 PR python/13281:
7089 * gdbtypes.h (TYPE_FLAG_ENUM): New macro.
7090 (struct main_type) <flag_flag_enum>: New field.
7091 * dwarf2read.c (process_enumeration_scope): Detect "flag" enums.
7092 * NEWS: Add entries.
7093 * c-valprint.c (c_val_print) <TYPE_CODE_ENUM>: Handle "flag"
7094 enums.
7095 * python/lib/gdb/printing.py (_EnumInstance): New class.
7096 (FlagEnumerationPrinter): Likewise.
7097
7098 2012-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
7099
7100 * breakpoint.c (create_sals_from_address_default): New function.
7101 (create_breakpoints_sal_default): Likewise.
7102 (decode_linespec_default): Likewise.
7103 (is_marker_spec): Removed.
7104 (strace_marker_p): New function.
7105 (init_breakpoint_sal): Using `strace_marker_p' instead of
7106 `is_marker_spec'.
7107 (create_breakpoint): Call method `create_sals_from_address' from
7108 breakpoint_ops, replacing code that created SALs conditionally
7109 on the type of the breakpoint. Call method `create_breakpoints_sal',
7110 replacing code that created breakpoints conditionally on the type
7111 wanted.
7112 (base_breakpoint_create_sals_from_address): New function.
7113 (base_breakpoint_create_breakpoints_sal): Likewise.
7114 (base_breakpoint_decode_linespec): Likewise.
7115 (base_breakpoint_ops): Add methods
7116 `base_breakpoint_create_sals_from_address',
7117 `base_breakpoint_create_breakpoints_sal' and
7118 `base_breakpoint_decode_linespec'.
7119 (bkpt_create_sals_from_address): New function.
7120 (bkpt_create_breakpoints_sal): Likewise.
7121 (bkpt_decode_linespec): Likewise.
7122 (tracepoint_create_sals_from_address): Likewise.
7123 (tracepoint_create_breakpoints_sal): Likewise.
7124 (tracepoint_decode_linespec): Likewise.
7125 (strace_marker_create_sals_from_address): Likewise.
7126 (strace_marker_create_breakpoints_sal): Likewise.
7127 (strace_marker_decode_linespec): Likewise.
7128 (strace_marker_breakpoint_ops): New variable.
7129 (addr_string_to_sals): Remove `marker_spec'. Call method
7130 `decode_linespec' from breakpoint_ops, replacing code that decoded
7131 an address string into a SAL. Use `strace_marker_p' instead of
7132 `marker_spec'.
7133 (strace_command): Decide whether we are dealing with a static
7134 tracepoint with marker or not. Use the appropriate breakpoint_ops.
7135 (initialize_breakpoint_ops): Initialize new fields of breakpoint_ops.
7136 * breakpoint.h (linespec_result, linespec_sals): New forward
7137 declarations.
7138 (breakpoint_ops) <create_sals_from_address>,
7139 <create_breakpoints_sal>, <decode_linespec>: New methods.
7140
7141 2012-01-14 Doug Evans <dje@google.com>
7142
7143 * NEWS: Update text for "maint set python print-stack".
7144 It is deprecated in gdb 7.4 and deleted in 7.5.
7145
7146 2012-01-13 Eli Zaretskii <eliz@gnu.org>
7147
7148 * gdb_curses.h (MOUSE_MOVED) [__MINGW32__]: Undefine before
7149 including curses.h.
7150
7151 2012-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
7152
7153 * configure: Regenerate.
7154 * config.in: Regenerate.
7155
7156 2012-01-12 Keith Seitz <keiths@redhat.com>
7157
7158 PR mi/10586
7159 * varobj.c (ANONYMOUS_STRUCT_NAME): Define.
7160 (ANONYMOUS_UNION_NAME): Define.
7161 (is_path_expr_parent): New function.
7162 (get_path_expr_parent): New function.
7163 (is_anonymous_child): New function.
7164 (create_child_with_value): If the child is anonymous and without
7165 a name, assign an object name to it.
7166 (c_describe_child): Use get_path_expr_parent to determine
7167 the parent expression.
7168 If there field represents an anonymous struct or union and
7169 has no name, set an appropriate display name and expression.
7170 (cplus_describe_child): Likewise.
7171
7172 2012-01-12 Pedro Alves <palves@redhat.com>
7173
7174 * i386-tdep.c (i386_frame_cache_1): Also mark the frame base as
7175 available when %ebp is found to be zero (outermost).
7176
7177 2012-01-11 Andreas Tobler <andreast@fgznet.ch>
7178
7179 * common/gdb_assert.h (gdb_static_assert): Rename static_assert to
7180 an internal gdb_static_assert.
7181 * mi/mi-common.c: Rename static_assert to gdb_static_assert.
7182
7183 2012-01-11 Tom Tromey <tromey@redhat.com>
7184
7185 PR gdb/9598:
7186 * breakpoint.c (_initialize_breakpoint): Fix help for "catch
7187 catch" and "catch throw".
7188
7189 2012-01-11 Paul Hilfinger <hilfingr@adacore.com>
7190
7191 * blockframe.c (block_innermost_frame): Start search from selected
7192 frame, if present, or otherwise the current frame.
7193
7194 * c-exp.y (variable): Update innermost_block for
7195 'block COLONCOLON NAME' clause.
7196 * m2-exp.y (variable): Ditto.
7197 * objc-exp.y (variable): Ditto.
7198
7199 2012-01-10 Tom Tromey <tromey@redhat.com>
7200
7201 PR python/13199:
7202 * python/python.c (finish_python_initialization): Set sys.argv.
7203
7204 2012-01-10 Doug Evans <dje@google.com>
7205
7206 * dwarf2read.c (dwarf_decode_lines): Remove arg "abfd". New arg
7207 "want_line_info". All callers updated.
7208 (dwarf_decode_lines_1): New function.
7209 (handle_DW_AT_stmt_list): Add function comment.
7210 New arg "want_line_info". All callers updated.
7211 (read_file_scope,read_type_unit_scope): Move comment from
7212 handle_DW_AT_stmt_list to here.
7213
7214 2012-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
7215
7216 Fix regression after libiberty/ update for GCC PR 6057 and others.
7217 * c-exp.y (operator) <OPERATOR DELETE>
7218 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
7219 * cp-name-parser.y (fill_comp, make_operator, make_dtor)
7220 (make_builtin_type, make_name): New variable i, add gdb_assert.
7221 (operator) <OPERATOR NEW>: Update ARGS to 3.
7222 (operator) <OPERATOR DELETE>: Add trailing space.
7223 (operator) <OPERATOR NEW '[' ']'>: Update ARGS to 3.
7224 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
7225 * cp-support.c (cp_canonicalize_string): Check NULL from
7226 cp_comp_to_string, call warning and return.
7227
7228 2012-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
7229
7230 Fix duplicate .o files after omitting libbfd.a.
7231 * Makefile.in (ALL_TARGET_OBS): Remove corelow.o.
7232 (SFILES): Add corelow.c.
7233 (COMMON_OBS): Add corelow.o.
7234 (ALLDEPFILES): Remove corelow.c.
7235 * config/alpha/alpha-linux.mh (NATDEPFILES): Remove corelow.o.
7236 * config/alpha/alpha-osf3.mh: Likewise.
7237 * config/alpha/fbsd.mh: Likewise.
7238 * config/arm/nbsdaout.mh: Likewise.
7239 * config/arm/nbsdelf.mh: Likewise.
7240 * config/i386/i386gnu.mh: Likewise.
7241 * config/ia64/hpux.mh: Likewise.
7242 * config/ia64/linux.mh: Likewise.
7243 * config/m32r/linux.mh: Likewise.
7244 * config/m68k/linux.mh: Likewise.
7245 * config/mips/irix5.mh: Likewise.
7246 * config/mips/irix6.mh: Likewise.
7247 * config/pa/hpux.mh: Likewise.
7248 * config/pa/linux.mh: Likewise.
7249 * config/powerpc/aix.mh: Likewise.
7250 * config/sparc/linux.mh: Likewise.
7251 * config/sparc/linux64.mh: Likewise.
7252 * config/sparc/sol2.mh: Likewise.
7253 * config/vax/vax.mh: Likewise.
7254 * configure.tgt (alpha*-*-freebsd* alpha*-*-kfreebsd*-gnu)
7255 (alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu, alpha*-*-openbsd*)
7256 (am33_2.0*-*-linux*, arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-linux*)
7257 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-netbsd*)
7258 (hppa*-*-openbsd*, i[34567]86-*-dicos*, i[34567]86-*-freebsd*)
7259 (i[34567]86-*-kfreebsd*-gnu, i[34567]86-*-netbsd*)
7260 (i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*, i[34567]86-*-nto*)
7261 (i[34567]86-*-solaris2.1[0-9]*, x86_64-*-solaris2.1[0-9]*)
7262 (i[34567]86-*-solaris*, i[34567]86-*-linux*, i[34567]86-*-cygwin*)
7263 (i[34567]86-*-mingw32*, m68*-*-netbsd*, m68*-*-knetbsd*-gnu)
7264 (m68*-*-openbsd*, m88*-*-openbsd*, microblaze*-linux-*)
7265 (microblaze*-*-linux*, mips*-*-linux*, mips*-*-netbsd*)
7266 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
7267 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-linux*)
7268 (powerpc64-*-linux*, s390*-*-*, score-*-*, sh*-*-linux*)
7269 (sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
7270 (sparc*-*-freebsd*, sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*)
7271 (sparc-*-knetbsd*-gnu, sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu)
7272 (sparc-*-openbsd*, sparc64-*-openbsd*, tic6x-*-*linux, vax-*-netbsd*)
7273 (vax-*-knetbsd*-gnu, vax-*-openbsd*, x86_64-*-dicos*, x86_64-*-linux*)
7274 (x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu, x86_64-*-netbsd*)
7275 (x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*, xtensa*-*-linux*): Remove
7276 corelow.o from gdb_target_obs.
7277 * corefile.c (core_target): Update the comment on NULL value.
7278 (core_file_command): Replace error by gdb_assert on CORE_TARGET.
7279 * corelow.c (sniff_core_bfd): Call error instead of warning on zero
7280 MATCHES. Drop YUMMY set on NULL.
7281 (core_close): Do not call exit_inferior_silent on zero PID. Do not
7282 reclaim CORE_DATA if it is already NULL.
7283
7284 2012-01-09 Doug Evans <dje@google.com>
7285
7286 * gdbtypes.c (safe_parse_type): Initialize type to keep gcc happy.
7287 * varobj.c (varobj_set_value): Initialize val,value to keep gcc happy.
7288
7289 2012-01-09 Keith Seitz <keiths@redhat.com>
7290
7291 * breakpoint.c (wrapper.h): Don't include.
7292
7293 2012-01-09 Keith Seitz <keiths@redhat.com>
7294
7295 * Makefile.in (SFILES): Remove wrapper.c.
7296 (HFILES_NO_SRCDIR): Remove wrapper.h.
7297 (COMMON_OBS): Remove wrapper.o.
7298 * cli/cli-interp.c: Don't inlude wrapper.h.
7299 * corelow.c: Likewise.
7300 (core_open): Replace gdb_target_find_new_threads with
7301 TRY_CATCH around target_find_new_threads.
7302 * eval.c (fetch_subexp_value): Likewise for value_fetch_lazy.
7303 * gdbtypes.c (safe_parse_type): Likewise for parse_and_eval_type.
7304 * varobj.c (varobj_create): Likewise for parse_exp_1 and
7305 evaluate_expression.
7306 (varobj_set_value): Likewise for evaluate_expression and
7307 value_assign.
7308 (install_new_variable): Likewise for value_fetch_lazy.
7309 (adjust_value_for_child_access): Likewise for value_ind.
7310 (c_describe_child): Likewise for value_subscript and
7311 value_ind.
7312 (c_value_of_root): Likewise for evaluate_expression.
7313 * wrapper.c: Remove.
7314 * wrapper.h: Remove.
7315
7316 2012-01-09 Doug Evans <dje@google.com>
7317
7318 * dwarf2read.c (read_and_check_comp_unit_head): Renamed from
7319 partial_read_comp_unit_head. Replace "buffer", "buffer_size" and
7320 "abfd" args with "section". All callers updated.
7321 Error checking code moved ...
7322 (error_check_comp_unit_head): ... here. New function.
7323 (read_and_check_type_unit_head): Renamed from read_type_unit_head.
7324 Delete arg "abfd". New arg "type_offset". All callers updated.
7325 (create_debug_types_hash_table): Simplify by using
7326 read_and_check_type_unit_head.
7327
7328 * parser-defs.h (namecopy): Delete.
7329 * parse.c (namecopy, namecopy_size): Move into copy_name.
7330
7331 2012-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
7332
7333 Partially fix duplicate .o files after omitting libbfd.a.
7334 * config/alpha/alpha-osf3.mh (NATDEPFILES): Remove solib.o.
7335 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
7336 * config/i386/obsdaout.mh (NATDEPFILES): Remove solib.o.
7337 * config/m68k/nbsdaout.mh (NATDEPFILES): Remove solib.o.
7338 * config/m68k/obsd.mh (NATDEPFILES): Remove solib.o.
7339 * config/powerpc/aix.mh (NATDEPFILES): Remove xcoffread.o.
7340 * config/vax/nbsdaout.mh (NATDEPFILES): Remove solib.o.
7341
7342 2012-01-09 Pedro Alves <palves@redhat.com>
7343
7344 * MAINTAINERS: Update my email address.
7345
7346 2012-01-08 Doug Evans <dje@google.com>
7347
7348 * dwarf2read.c (dwarf2_per_objfile): Rename n_type_comp_units to
7349 n_type_units. Rename type_comp_units to all_type_units.
7350 All uses updated.
7351 (add_signatured_type_cu_to_table): Renamed from
7352 add_signatured_type_cu_to_list. All callers updated.
7353
7354 * gdbtypes.h (struct cplus_struct_type): Delete member
7355 nfn_fields_total. All uses removed.
7356
7357 2012-01-06 Doug Evans <dje@google.com>
7358
7359 * dwarf2read.c: Move FIXME from dwarf2_build_psymtabs_hard
7360 to top of file.
7361 (dwarf2_find_comp_unit): Delete.
7362 (process_psymtab_comp_unit): Make result "void".
7363 Delete args buffer, info_ptr, buffer_size, and replace with
7364 "section". All callers updated.
7365 (dwarf2_build_psymtabs_hard): Simplify.
7366
7367 2012-01-06 Sergio Durigan Junior <sergiodj@redhat.com>
7368 Thiago Jung Bauermann <bauerman@br.ibm.com>
7369
7370 * ada-lang.c (ada_exception_name_addr): Add `volatile' keyword
7371 before `struct gdb_exception'.
7372 * breakpoint.c (update_global_location_list_nothrow)
7373 (update_breakpoint_locations, enable_breakpoint_disp): Likewise.
7374 * cp-abi.c (value_rtti_type): Likewise.
7375 * cp-support.c (cp_validate_operator): Likewise.
7376 * infrun.c (insert_exception_resume_breakpoint)
7377 (check_exception_resume, keep_going): Likewise.
7378 * mi-interp.c (mi_breakpoint_created)
7379 (mi_breakpoint_modified): Likewise.
7380 * rs6000-aix-tdep.c (rs6000_convert_from_func_ptr_addr): Likewise.
7381 * solib-ia64-hpux.c (ia64_hpux_at_dld_breakpoint_p)
7382 (ia64_hpux_handle_dld_breakpoint_1): Likewise.
7383
7384 2012-01-05 Doug Evans <dje@google.com>
7385
7386 * dwarf2read.c (statement_prologue): Delete, unused.
7387
7388 * dwarf2read.c (dwarf2_per_cu_addr_size): Make result type an int.
7389 * dwarf2loc.h (dwarf2_per_cu_addr_size): Update.
7390
7391 * dwarf2read.c (comp_unit_header): Delete, unused.
7392
7393 2012-01-05 Ulrich Weigand <uweigand@de.ibm.com>
7394
7395 * configure.tgt [s390*-*-*] (gdb_target_obs): Add corelow.o.
7396 * config/s390/s390.mh (NATDEPFILES): Remove corelow.o.
7397
7398 2012-01-05 Khoo Yit Phang <khooyp@cs.umd.edu>
7399
7400 * infrun.c (normal_stop): Don't skip calling the normal_stop
7401 observers if the thread was doing a multi-step, but stopped for
7402 some reason other than stepping.
7403
7404 2012-01-05 Pedro Alves <alves.ped@gmail.com>
7405
7406 * cli/cli-decode.h: Add comments.
7407 (CMD_LIST_AMBIGUOUS): Moved to command.h
7408 (add_cmd, add_alias_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
7409 (set_cmd_cfunc, set_cmd_sfunc, set_cmd_completer, cmd_cfunc_eq)
7410 (set_cmd_context, get_cmd_context, lookup_cmd, lookup_cmd_1)
7411 (deprecate_cmd, deprecated_cmd_warning, lookup_cmd_composition)
7412 (add_com, add_com_alias, add_info, add_info_alias)
7413 (complete_on_cmdlist, complete_on_enum, help_list): Remove
7414 declarations.
7415 * command.h: Add and adjust comments.
7416 (CMD_LIST_AMBIGUOUS): Moved here.
7417 (help_cmd, help_cmd_list): Delete declarations.
7418
7419 2012-01-04 Doug Evans <dje@google.com>
7420
7421 * dwarf2read.c (dwarf2_read_abbrevs): Delete arg "abfd".
7422 All callers updated.
7423 (load_full_type_unit): Renamed from read_signatured_type_at_offset.
7424 Replace all arguments with "per_cu". All callers updated.
7425
7426 * dwarf2read.c (dwarf2_per_cu_data): Remove outdated comment.
7427
7428 * dwarf2read.c (init_one_comp_unit): Delete arg "objfile".
7429 New arg "per_cu". All callers updated.
7430
7431 Delete #if 0'd out code.
7432 * language.c (binop_result_type): Delete.
7433 (simple_type, ordered_type, same_type, integral_type): Delete.
7434 (numeric_type, character_type, string_type, boolean_type): Delete.
7435 (float_type, structured_type): Delete.
7436 * language.h: Update.
7437
7438 2012-01-04 Tom Tromey <tromey@redhat.com>
7439
7440 * python/py-value.c (valpy_binop): Initialize 'res_val'.
7441
7442 2012-01-04 Joel Brobecker <brobecker@adacore.com>
7443
7444 * corefile.c (close_exec_file): Delete.
7445 (reopen_exec_file): Remove commented out code that seems related
7446 to close_exec_file, which is being deleted here.
7447 * inferior.h (close_exec_file): Delete.
7448 * fork-child.c (fork_inferior): Remove call to fork_inferior.
7449
7450 2012-01-04 Joel Brobecker <brobecker@adacore.com>
7451
7452 * ada-lang.c: #include "cli/cli-utils.h".
7453 (get_selections): Use skip_spaces.
7454 (ada_get_next_arg): Use skip_spaces and skip_to_space.
7455 (catch_ada_exception_command_split): Use skip_spaces.
7456 (ada_decode_assert_location): Likewise.
7457
7458 2012-01-04 Joel Brobecker <brobecker@adacore.com>
7459
7460 * linespec.c (decode_line_internal): Check for C++ or Java
7461 compound constructs only if the current language is C, C++
7462 or Java.
7463
7464 2012-01-04 Jan Kratochvil <jan.kratochvil@redhat.com>
7465
7466 Revert:
7467 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
7468 Joel Brobecker <brobecker@adacore.com>
7469 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
7470 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
7471 3 times.
7472 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
7473 fall through into AT_ENTRY_POINT.
7474 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
7475 DUMMY_ADDR with it.
7476 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
7477 PPC_INSN_SIZE skip to 3 times.
7478
7479 2012-01-04 Joel Brobecker <brobecker@adacore.com>
7480
7481 * linespec.c (add_minsym): Preserve function descriptors.
7482
7483 2012-01-04 Ulrich Weigand <uweigand@de.ibm.com>
7484
7485 * breakpoint.c (all_locations_are_pending): Consider locations
7486 in program spaces executing during startup pending as well.
7487
7488 2012-01-04 Joel Brobecker <brobecker@adacore.com>
7489
7490 Copyright year update in most files of the GDB Project.
7491
7492 2012-01-04 Joel Brobecker <brobecker@adacore.com>
7493
7494 * copyright.sh: Delete.
7495 * copyright.py: Rewrite.
7496
7497 2012-01-04 Joel Brobecker <brobecker@adacore.com>
7498
7499 * gnulib/extra/update-copyright: New file, imported from gnulib.
7500
7501 2012-01-04 Joel Brobecker <brobecker@adacore.com>
7502
7503 * README (Copyright and License Notices): New section.
7504
7505 2012-01-03 Tom Tromey <tromey@redhat.com>
7506
7507 PR python/12533:
7508 * python/py-value.c (valpy_dereference, valpy_get_address
7509 valpy_get_dynamic_type, valpy_lazy_string, valpy_do_cast)
7510 (valpy_getitem, valpy_call, valpy_binop, valpy_negative)
7511 (valpy_absolute, valpy_richcompare): Free intermediate values.
7512
7513 2011-01-03 Joel Brobecker <brobecker@adacore.com>
7514
7515 * ada-lang.c: Reformat the copyright notice.
7516
7517 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
7518
7519 * Makefile.in (ALL_TARGET_OBS): Remove solib-target.o.
7520 * configure.tgt (arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-symbianelf*)
7521 (i[34567]86-*-dicos*, i[34567]86-*-cygwin*, i[34567]86-*-mingw32*)
7522 (x86_64-*-dicos*, x86_64-*-mingw*): Remove solib-target.o.
7523 Revert this part of:
7524 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
7525 Build gdb directly from *.o files not using libgdb.a.
7526 * Makefile.in (COMMON_OBS): Remove solib-target.o.
7527
7528 2012-01-02 Joel Brobecker <brobecker@adacore.com>
7529
7530 * gdb/common/gdb_thread_db.h, gdb/dbxread.c, gdb/environ.c,
7531 gdb/gcore.h, gdb/rs6000-tdep.h, gdb/s390-nat.c, gdb/tic6x-tdep.c:
7532 Reformat the copyright header.
7533
7534 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
7535
7536 Revert this part of:
7537 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
7538 Remove the gdbtui binary.
7539 * gdb.c (main): Remove args.interpreter_p initialization.
7540 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
7541 * main.h (struct captured_main_args): Remove interpreter_p.
7542
7543 2012-01-02 Joel Brobecker <brobecker@adacore.com>
7544
7545 * config/djgpp/fnchange.lst: Add entry for ChangeLog-2011.
7546
7547 2012-01-02 Joel Brobecker <brobecker@adacore.com>
7548
7549 * top.c (print_gdb_version): Update copyright year.
7550
7551 2012-01-02 Yao Qi <yao@codesourcery.com>
7552
7553 * inf-ptrace.c (inf_ptrace_xfer_partial): Reindent.
7554
7555 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
7556 Joel Brobecker <brobecker@adacore.com>
7557
7558 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
7559 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
7560 3 times.
7561 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
7562 fall through into AT_ENTRY_POINT.
7563 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
7564 DUMMY_ADDR with it.
7565 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
7566 PPC_INSN_SIZE skip to 3 times.
7567
7568 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
7569
7570 * amd64-linux-nat.c (update_debug_registers_callback): New comment on
7571 the return value.
7572 * i386-linux-nat.c (update_debug_registers_callback): Likewise.
7573
7574 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
7575
7576 Build gdb directly from *.o files not using libgdb.a.
7577 * Makefile.in (SUBDIR_TUI_OBS): Remove duplicate tui.o.
7578 (COMMON_OBS): Remove solib-target.o.
7579 (LIBGDB_OBS, libgdb.a): Move it before the gdb$(EXEEXT) rule.
7580 (gdb$(EXEEXT)): Replace libgdb.a with $(LIBGDB_OBS).
7581 (LIBGDB_OBS, libgdb.a): Move it above.
7582 * configure.tgt (alpha*-*-linux*, alpha*-*-freebsd*)
7583 (alpha*-*-kfreebsd*-gnu, alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu)
7584 (alpha*-*-openbsd*, am33_2.0*-*-linux*, arm*-wince-pe)
7585 (arm*-*-mingw32ce*, arm*-*-linux*, arm*-*-netbsd*, arm*-*-knetbsd*-gnu)
7586 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-linux*)
7587 (hppa*-*-netbsd*, hppa*-*-openbsd*, i[34567]86-*-darwin*)
7588 (i[34567]86-*-dicos*, i[34567]86-*-freebsd*, i[34567]86-*-kfreebsd*-gnu)
7589 (i[34567]86-*-netbsd*, i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*)
7590 (i[34567]86-*-nto*, i[34567]86-*-solaris2.1[0-9]*)
7591 (x86_64-*-solaris2.1[0-9]*, i[34567]86-*-solaris*, i[34567]86-*-linux*)
7592 (i[34567]86-*-gnu*, ia64-*-linux*, m32r*-*-linux*, m68*-*-linux*)
7593 (m68*-*-netbsd*, m68*-*-knetbsd*-gnu, m68*-*-openbsd*)
7594 (microblaze*-linux-*, microblaze*-*-linux*, mips*-sgi-irix5*)
7595 (mips*-sgi-irix6*, mips*-*-linux*, mips*-*-netbsd*)
7596 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
7597 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-aix*, rs6000-*-*)
7598 (powerpc-*-linux*, powerpc64-*-linux*, powerpc*-*-*, s390*-*-*)
7599 (sh*-*-linux*, sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
7600 (sparc-*-linux*, sparc64-*-linux*, sparc*-*-freebsd*)
7601 (sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*, sparc-*-knetbsd*-gnu)
7602 (sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu, sparc-*-openbsd*)
7603 (sparc64-*-openbsd*, sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*)
7604 (sparc-*-solaris2*, sparcv9-*-solaris2*, sparc64-*-solaris2*)
7605 (vax-*-netbsd*, vax-*-knetbsd*-gnu, x86_64-*-darwin*, x86_64-*-dicos*)
7606 (x86_64-*-linux*, x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu)
7607 (x86_64-*-netbsd*, x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*)
7608 (xtensa*-*-linux*, xtensa*): Remove solib.o from gdb_target_obs.
7609
7610 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
7611
7612 Remove the gdbtui binary.
7613 * .gitignore (/gdbtui): Remove.
7614 * Makefile.in (TUI): Remove.
7615 (SUBDIR_TUI_OBS): Remove tui-main.o.
7616 (SUBDIR_TUI_SRCS): Remove tui/tui-main.c.
7617 (all-tui, install-tui, uninstall-tui, $(TUI)$(EXEEXT), clean-tui)
7618 (tui-main.o): Remove.
7619 (all_object_files): Remove tui-main.o.
7620 * NEWS: New note for the gdbtui removal.
7621 * configure: Rebuilt.
7622 * configure.ac: No longer add all-tui, clean-tui, install-tui and
7623 uninstall-tui to CONFIG_ALL, CONFIG_CLEAN, CONFIG_INSTALL and
7624 CONFIG_UNINSTALL respectively.
7625 * gdb.c (main): Remove args.interpreter_p initialization.
7626 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
7627 * main.h (struct captured_main_args): Remove interpreter_p.
7628 * tui/tui-main.c: Remove.
7629
7630 2012-01-01 Doug Evans <dje@google.com>
7631
7632 * dwarf2read.c (dwarf2_compute_name): Simplify objfile references.
7633 (dwarf2_physname, read_import_statement): Ditto.
7634 (read_call_site_scope, dwarf2_record_block_ranges): Ditto.
7635 (process_structure_scope read_subroutine_type): Ditto.
7636 (read_typedef, load_partial_dies, read_partial_die): Ditto.
7637 (find_partial_die, dwarf_decode_lines, lookup_die_type): Ditto.
7638 (dwarf2_fetch_die_location_block): Ditto.
7639 (dwarf_decode_macros, dwarf2_symbol_mark_computed): Ditto.
7640
7641 * dwarf2read.c (read_signatured_type): Delete `objfile' arg.
7642 All callers updated.
7643 (load_full_comp_unit, queue_comp_unit, process_queue): Ditto.
7644 (dw2_do_instantiate_symtab, dw2_instantiate_symtab): Ditto.
7645 (process_psymtab_comp_unit, load_partial_comp_unit): Ditto.
7646
7647 * dwarf2read.c (load_cu): Move assert to more useful location.
7648
7649 * dwarf2read.c (free_heap_comp_unit): Renamed from free_one_comp_unit.
7650 All callers updated.
7651
7652 * dwarf2read.c (dwarf2_per_objfile): Add comment.
7653 (dwarf2_elf_names): Minor reformat.
7654 (dwarf2_per_cu_data): Tweak comment.
7655 (dwarf2_read_section): Fix comment.
7656 (create_all_comp_units): Fix comment.
7657 (load_full_comp_unit): Fix comment.
7658 (process_full_comp_unit): Fix comment.
7659 (read_signatured_type): Fix comment.
7660
7661 For older changes see ChangeLog-2011.
7662 \f
7663 Local Variables:
7664 mode: change-log
7665 left-margin: 8
7666 fill-column: 74
7667 version-control: never
7668 coding: utf-8
7669 End:
This page took 0.204498 seconds and 4 git commands to generate.