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