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