2012-02-24 Jan Kratochvil <jan.kratochvil@redhat.com>
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2012-02-24 Jan Kratochvil <jan.kratochvil@redhat.com>
2 Pedro Alves <palves@redhat.com>
3
4 * breakpoint.c (until_break_command): Install breakpoints after
5 all frame manipulations.
6
7 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
8
9 * remote.c (remote_supports_cond_breakpoints): New forward
10 declaration.
11 (remote_add_target_side_condition): New function.
12 (remote_insert_breakpoint): Add target-side breakpoint
13 conditional if supported.
14 (remote_insert_hw_breakpoint): Likewise.
15 (init_remote_ops): Set to_supports_evaluation_of_breakpoint_conditions
16 hook.
17
18 * target.c (update_current_target): Inherit
19 to_supports_evaluation_of_breakpoint_conditions.
20 Default to_supports_evaluation_of_breakpoint_conditions to return_zero.
21
22 * target.h (struct target_ops)
23 <to_supports_evaluation_of_breakpoint_conditions>: New field.
24 (target_supports_evaluation_of_breakpoint_conditions): New #define.
25
26 * breakpoint.c (get_first_locp_gte_addr): New forward declaration.
27 (condition_evaluation_both, condition_evaluation_auto,
28 condition_evaluation_host, condition_evaluation_target,
29 condition_evaluation_enums, condition_evaluation_mode_1,
30 condition_evaluation_mode): New static globals.
31 (translate_condition_evaluation_mode): New function.
32 (breakpoint_condition_evaluation_mode): New function.
33 (gdb_evaluates_breakpoint_condition_p): New function.
34 (ALL_BP_LOCATIONS_AT_ADDR): New helper macro.
35 (mark_breakpoint_modified): New function.
36 (mark_breakpoint_location_modified): New function.
37 (set_condition_evaluation_mode): New function.
38 (show_condition_evaluation_mode): New function.
39 (bp_location_compare_addrs): New function.
40 (get_first_location_gte_addr): New helper function.
41 (set_breakpoint_condition): Free condition bytecode if locations
42 has become unconditional. Call mark_breakpoint_modified (...).
43 (condition_command): Call update_global_location_list (1) for
44 breakpoints.
45 (breakpoint_xfer_memory): Use is_breakpoint (...).
46 (is_breakpoint): New function.
47 (parse_cond_to_aexpr): New function.
48 (build_target_condition_list): New function.
49 (insert_bp_location): Handle target-side conditional
50 breakpoints and call build_target_condition_list (...).
51 (update_inserted_breakpoint_locations): New function.
52 (insert_breakpoint_locations): Handle target-side conditional
53 breakpoints.
54 (bpstat_check_breakpoint_conditions): Add comment.
55 (bp_condition_evaluator): New function.
56 (bp_location_condition_evaluator): New function.
57 (print_breakpoint_location): Print information on where the condition
58 will be evaluated.
59 (print_one_breakpoint_location): Likewise.
60 (init_bp_location): Call mark_breakpoint_location_modified (...) for
61 breakpoint location.
62 (force_breakpoint_reinsertion): New functions.
63 (update_global_location_list): Handle target-side breakpoint
64 conditions.
65 Reinsert locations that are already inserted if conditions have
66 changed.
67 (bp_location_dtor): Free agent expression bytecode.
68 (disable_breakpoint): Call mark_breakpoint_modified (...).
69 Call update_global_location_list (...) with parameter 1 for breakpoints.
70 (disable_command): Call mark_breakpoint_location_modified (...).
71 Call update_global_location_list (...) with parameter 1 for breakpoints.
72 (enable_breakpoint_disp): Call mark_breakpoint_modified (...).
73 (enable_command): mark_breakpoint_location_modified (...).
74 (_initialize_breakpoint): Update documentation and add
75 condition-evaluation breakpoint subcommand.
76
77 * breakpoint.h: Include ax.h.
78 (condition_list): New data structure.
79 (condition_status): New enum.
80 (bp_target_info) <cond_list>: New field.
81 (bp_location) <condition_changed, cond_bytecode>: New fields.
82 (is_breakpoint): New prototype.
83
84 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
85
86 * remote.c (remote_state) <cond_breakpoints>: New field.
87 (PACKET_ConditionalBreakpoints): New enum.
88 (remote_cond_breakpoint_feature): New function.
89 (remote_protocol_features): Add new ConditionalBreakpoints entry.
90 (remote_supports_cond_breakpoints): New function.
91 (_initialize_remote): Add new packet configuration for
92 target-side conditional breakpoints.
93
94 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
95
96 * NEWS: Mention target-side conditional breakpoint support,
97 new condition-evaluation breakpoint subcommand and remote
98 packet extensions.
99
100 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
101
102 * breakpoint.c (bp_location_compare): Sort by pspace before sorting by
103 number.
104
105 2012-02-24 Thomas Schwinge <thomas@codesourcery.com>
106
107 * sh-tdep.c (sh_skip_prologue): Use skip_prologue_using_sal.
108 (after_prologue): Remove.
109
110 2012-02-23 Tom Tromey <tromey@redhat.com>
111
112 * jv-valprint.c (java_val_print): Remove dead code.
113
114 2012-02-23 Tristan Gingold <gingold@adacore.com>
115
116 * ada-tasks.c (struct ada_tasks_inferior_data): Add
117 known_tasks_element and known_tasks_length fields.
118 (read_known_tasks_array): Change argument type. Use pointer type
119 and number of elements from DATA. Adjust.
120 (read_known_tasks_list): Likewise.
121 (get_known_tasks_addr): Remove.
122 (ada_set_current_inferior_known_tasks_addr): Renamed to ...
123 (ada_tasks_inferior_data_sniffer): ... this. Use symtab for element
124 type and array length. Merge former get_known_tasks_addr code.
125
126 2012-02-23 Jan Kratochvil <jan.kratochvil@redhat.com>
127
128 PR backtrace/13716
129 * infcmd.c (finish_forward): New variable frame_id, initialize it, use
130 it after set_momentary_breakpoint.
131
132 2012-02-22 Sterling Augustine <saugustine@google.com>
133
134 PR 13689:
135 * breakpoint.c (watchpoint_exp_is_constant): Add UNOP_CAST to switch.
136
137 2012-02-22 Gary Benson <gbenson@redhat.com>
138
139 * dwarf2read.c (dwarf2_read_index): Correct misspelling.
140 (find_slot_in_mapped_hash): Likewise.
141
142 2012-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
143
144 PR build/13638
145 * configure.ac (MAKEINFO): Replace AC_CHECK_PROG by AC_ARG_VAR.
146 (MAKEINFOFLAGS): Replace static string by AC_ARG_VAR.
147 * configure: Regenerate.
148
149 2012-02-21 Tristan Gingold <gingold@adacore.com>
150 Pedro Alves <palves@redhat.com>
151
152 * ia64-tdep.c: Do not include libunwind-ia64.h.
153 * libunwind-frame.h: Remove #ifdef HAVE_LIBUNWIND_H guard.
154 Include libunwind-ia64.h instead of libunwind.h.
155 * configure.ac (--with-libunwind, $enable_libunwind): Don't check
156 for libunwind.h existence.
157 * configure, config.in: Regenerate.
158
159 2012-02-21 Anton Gorenkov <xgsa@yandex.ru>
160
161 * c-valprint.c (c_value_print): Use value_rtti_indirect_type
162 instead of value_rtti_target_type.
163 * eval.c (evaluate_subexp_standard): Use value_rtti_indirect_type
164 instead of value_rtti_target_type.
165 * typeprint.c (whatis_exp): Use value_rtti_indirect_type instead of
166 value_rtti_target_type.
167 * valops.c (value_ind): Extract function readjust_indirect_value_type.
168 (value_rtti_target_type): Rename to ...
169 (value_rtti_indirect_type): ... here and make it indirect. Update
170 function comment.
171 * value.c (readjust_indirect_value_type): New function.
172 (coerce_ref): Support for enclosing type setting for references
173 with readjust_indirect_value_type.
174 * value.h (readjust_value_type): New declaration.
175 (value_rtti_target_type): Rename to ...
176 (value_rtti_indirect_type): ... here.
177
178 2012-02-21 Anton Gorenkov <xgsa@yandex.ru>
179
180 * MAINTAINERS (Write After Approval): Add myself to the list.
181
182 2012-02-20 Doug Evans <dje@google.com>
183
184 * objfiles.c (add_to_objfile_sections): Remove outdated comments.
185 Rename objfile_p_char parameter to objfilep.
186 (build_objfile_section_table): Result is now void. All callers
187 updated.
188 * objfiles.h (struct objfile): Tweak comments, whitespace.
189 (build_objfile_section_table): Update.
190
191 * elfread.c (elf_symfile_segments): Fix warning text.
192
193 2012-02-20 Tom Tromey <tromey@redhat.com>
194
195 PR gdb/13498:
196 * dwarf2read.c (dw2_expand_symtabs_matching): Only visit a
197 particular set of file names once.
198 (dw2_map_symbol_filenames): Likewise.
199
200 2012-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
201
202 Code cleanup.
203 * main.c (write_files): Remove the declaration.
204 (external_editor_command): Move the declaration ...
205 [GDBTK] (external_editor_command): ... here. Fix the comment.
206
207 2012-02-20 Tom Tromey <tromey@redhat.com>
208
209 * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove
210 extraneous block.
211
212 2012-02-20 Tristan Gingold <gingold@adacore.com>
213
214 * darwin-nat.h (enum darwin_msg_state): Add comments.
215
216 2012-02-20 Tristan Gingold <gingold@adacore.com>
217
218 * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Fix jb_pc_offset
219 value.
220
221 2012-20-18 Joel Brobecker <brobecker@adacore.com>
222
223 * breakpoint.c (watchpoint_exp_is_const): Add missing empty line
224 between function description and implementation.
225
226 2012-02-17 Tom Tromey <tromey@redhat.com>
227
228 PR python/12070:
229 * python/py-event.c (event_object_getset): New global.
230 (event_object_type): Reference it.
231 * python/py-type.c (field_object_getset): New global.
232 (field_object_type): Reference it.
233 * python/python-internal.h (gdb_py_generic_dict): Declare.
234 * python/py-utils.c (gdb_py_generic_dict): New function.
235
236 2012-02-17 Tristan Gingold <gingold@adacore.com>
237
238 * solib-darwin.c (darwin_current_sos): Check magic and filetype
239
240 2012-02-17 Thomas Schwinge <thomas@codesourcery.com>
241
242 * sh-tdep.c (sh_is_renesas_calling_convention): Fix handling of
243 TYPE_CALLING_CONVENTION annotation.
244
245 2012-02-16 Kevin Buettner <kevinb@redhat.com>
246
247 * MAINTAINERS: Add rx to target ISA section.
248 * Makefile.in (ALL_TARGET_OBS): Add rx-tdep.o.
249 (ALLDEPFILES): Add rx-tdep.c.
250
251 2012-02-16 Tom Tromey <tromey@redhat.com>
252
253 * symfile.c (symbol_file_add_main_1): Use inferior's
254 symfile_flags.
255 * solib.c (solib_read_symbols): Use inferior's symfile_flags.
256 * linux-nat.c (linux_child_follow_fork): Set symfile_flags on
257 inferior.
258 * infrun.c (handle_vfork_child_exec_or_exit): Set symfile_flags on
259 inferior.
260 (follow_exec): Use inferior's symfile_flags.
261 * inferior.h (struct inferior) <symfile_flags>: New field.
262
263 2012-02-16 Mike Frysinger <vapier@gentoo.org>
264
265 PR gdb/9734:
266 * remote-sim.c (gdbsim_create_inferior): Call error() when
267 sim_create_inferior() fails.
268
269 2012-02-16 Josh Matthews <josh@joshmatthews.net>
270
271 * machoread.c: Initialize nbr_syms to avoid warnings-as-errors failure.
272
273 2012-02-16 Tom Tromey <tromey@redhat.com>
274
275 PR c++/13653:
276 * thread.c (struct current_thread_cleanup) <was_removable>: New
277 field.
278 (restore_current_thread_cleanup_dtor): Restore 'removable' field.
279 (make_cleanup_restore_current_thread): Initialize new field.
280
281 2012-02-15 Kevin Buettner <kevinb@redhat.com>
282
283 * MAINTAINERS: Add rl78 to target ISA section.
284 * Makefile.in (ALL_TARGET_OBS): Add rl78-tdep.o.
285 (ALLDEPFILES): Add rl78-tdep.c.
286 * NEWS: Mention rl78 as a new target.
287
288 2012-02-15 Aleksandar Ristovski <aristovski@qnx.com>
289
290 * frame.c (find_frame_sal): Initialize sal->pspace field from frame
291 data.
292 * stack.c (set_last_displayed_sal): Validate that PSPACE is not NULL.
293
294 2012-02-15 Tom Tromey <tromey@redhat.com>
295
296 PR gdb/12659:
297 * infcmd.c (registers_info): Print just the current register's
298 name.
299
300 2012-02-15 Tom Tromey <tromey@redhat.com>
301
302 * python/py-symbol.c (sympy_value): Use _().
303
304 2012-02-15 Pedro Alves <palves@redhat.com>
305
306 * remote.c (remote_detach_1, extended_remote_attach_1): Tweak
307 output to be like native targets'.
308 (remote_pid_to_str): Special case the null ptid.
309
310 2012-02-14 Stan Shebs <stan@codesourcery.com>
311
312 * NEWS: Mention enable count command.
313 * breakpoint.h (struct breakpoint): New field enable_count.
314 * breakpoint.c (enable_breakpoint_disp): Add count argument.
315 (enable_breakpoint): Add arg to call.
316 (struct disp_data): New struct.
317 (do_enable_breakpoint_disp): Interp arg as disp_data and unpack.
318 (do_map_enable_once_breakpoint): Create a struct and pass it.
319 (do_map_enable_delete_breakpoint): Ditto.
320 (do_map_enable_count_breakpoint): New function.
321 (enable_count_command): New function.
322 (bpstat_stop_status): Decrement enable_count.
323 (print_one_breakpoint_location): Report enable count.
324 (_initialize_breakpoint): Add enable count command.
325
326 2012-02-14 Kevin Buettner <kevinb@redhat.com>
327
328 * rl78-tdep.c (reggroups.h): Include.
329 (RL78_RAW_BANK0_R0_REGNUM, RL78_RAW_BANK0_R1_REGNUM)
330 (RL78_RAW_BANK0_R2_REGNUM, RL78_RAW_BANK0_R3_REGNUM)
331 (RL78_RAW_BANK0_R4_REGNUM, RL78_RAW_BANK0_R5_REGNUM)
332 (RL78_RAW_BANK0_R6_REGNUM, RL78_RAW_BANK0_R7_REGNUM)
333 (RL78_RAW_BANK1_R0_REGNUM, RL78_RAW_BANK1_R1_REGNUM)
334 (RL78_RAW_BANK1_R2_REGNUM, RL78_RAW_BANK1_R3_REGNUM)
335 (RL78_RAW_BANK1_R4_REGNUM, RL78_RAW_BANK1_R5_REGNUM)
336 (RL78_RAW_BANK1_R6_REGNUM, RL78_RAW_BANK1_R7_REGNUM)
337 (RL78_RAW_BANK2_R0_REGNUM, RL78_RAW_BANK2_R1_REGNUM)
338 (RL78_RAW_BANK2_R2_REGNUM, RL78_RAW_BANK2_R3_REGNUM)
339 (RL78_RAW_BANK2_R4_REGNUM, RL78_RAW_BANK2_R5_REGNUM)
340 (RL78_RAW_BANK2_R6_REGNUM, RL78_RAW_BANK2_R7_REGNUM)
341 (RL78_RAW_BANK3_R0_REGNUM, RL78_RAW_BANK3_R1_REGNUM)
342 (RL78_RAW_BANK3_R2_REGNUM, RL78_RAW_BANK3_R3_REGNUM)
343 (RL78_RAW_BANK3_R4_REGNUM, RL78_RAW_BANK3_R5_REGNUM)
344 (RL78_RAW_BANK3_R6_REGNUM, RL78_RAW_BANK3_R7_REGNUM): Add to
345 beginning of register list.
346 (RL78_BANK0_R0_REGNUM, RL78_BANK0_R1_REGNUM, RL78_BANK0_R2_REGNUM)
347 (RL78_BANK0_R3_REGNUM, RL78_BANK0_R4_REGNUM, RL78_BANK0_R5_REGNUM)
348 (RL78_BANK0_R6_REGNUM, RL78_BANK0_R7_REGNUM, RL78_BANK1_R0_REGNUM)
349 (RL78_BANK1_R1_REGNUM, RL78_BANK1_R2_REGNUM, RL78_BANK1_R3_REGNUM)
350 (RL78_BANK1_R4_REGNUM, RL78_BANK1_R5_REGNUM, RL78_BANK1_R6_REGNUM)
351 (RL78_BANK1_R7_REGNUM, RL78_BANK2_R0_REGNUM, RL78_BANK2_R1_REGNUM)
352 (RL78_BANK2_R2_REGNUM, RL78_BANK2_R3_REGNUM, RL78_BANK2_R4_REGNUM)
353 (RL78_BANK2_R5_REGNUM, RL78_BANK2_R6_REGNUM, RL78_BANK2_R7_REGNUM)
354 (RL78_BANK3_R0_REGNUM, RL78_BANK3_R1_REGNUM, RL78_BANK3_R2_REGNUM)
355 (RL78_BANK3_R3_REGNUM, RL78_BANK3_R4_REGNUM, RL78_BANK3_R5_REGNUM)
356 (RL78_BANK3_R6_REGNUM, RL78_BANK3_R7_REGNUM): Move these into
357 the pseudo registers. Rearrange other pseudo registers too so
358 that the bank registers appear at the end.
359 (rl78_register_type): Account for the fact that the byte sized
360 bank registers are now pseudo-registers.
361 (rl78_register_name): Rearrange the register name array. Make
362 initial set of raw banked registers inaccessible.
363 (rl78_register_reggroup_p, rl78_register_sim_regno): New functions.
364 (rl78_pseudo_register_read, rl78_pseudo_register_write): Add
365 case for copying bytes back and forth between raw and pseudo
366 versions of the banked registers. Update other cases to reflect
367 the changed names.
368 (rl78_return_value): Update to account for changed names of
369 raw registers.
370 (rl78_gdbarch_init): Register rl78_register_reggroup_p() and
371 rl78_register_sim_regno().
372
373 2012-02-14 Kevin Buettner <kevinb@redhat.com>
374
375 * rl78-tdep.c (rl78_skip_prologue): Make `const' the type of
376 the name parameter being passed to find_pc_partial_function().
377
378 2012-02-14 Jan Kratochvil <jan.kratochvil@redhat.com>
379
380 * MAINTAINERS: Step down from being ia64 target maintainer.
381
382 2012-02-12 Jan Kratochvil <jan.kratochvil@redhat.com>
383
384 * ppc-linux-nat.c (fetch_register, store_register): Fix GCC aliasing
385 compilation warning.
386
387 2012-02-12 Jan Kratochvil <jan.kratochvil@redhat.com>
388
389 Fix crash on loaded shlibs without loaded exec_bfd.
390 * exec.c (exec_files_info): Do not crash on NULL EXEC_BFD.
391 (set_section_command): Replace exec_bfd by p->bfd.
392
393 2012-02-10 Tom Tromey <tromey@redhat.com>
394
395 * linespec.c (decode_line_internal): Skip symtabs_from_filename
396 when we have a C++ qualified name.
397
398 2012-02-10 Pedro Alves <palves@redhat.com>
399
400 * inferior.c (inferior_pid_to_str): New.
401 (print_inferior, inferior_command): Use it.
402
403 2012-02-10 Pedro Alves <palves@redhat.com>
404
405 * configure.ac (HAVE_ELF test): Put the old CFLAGS at the end of
406 the test CFLAGS.
407 * configure: Regenerate.
408
409 2012-02-10 Jan Kratochvil <jan.kratochvil@redhat.com>
410
411 * linespec.c (decode_line_internal): Fix comment correctness.
412
413 2012-02-09 Valery Khromov <valery.khromov@gmail.com>
414
415 PR gdb/12953
416 * Makefile.in (HFILES_NO_SRCDIR): Add amd64bsd-nat.h.
417 * amd64bsd-nat.c: Add support for debug registers (adapted from
418 i386bsd-nat.c).
419 [HAVE_PT_GETDBREGS] (amd64bsd_dr_get, amd64bsd_dr_set)
420 (amd64bsd_dr_set_control, amd64bsd_dr_set_addr)
421 (amd64bsd_dr_get_addr, amd64bsd_dr_get_status)
422 (amd64bsd_dr_get_control): New functions.
423 * amd64bsd-nat.h: New file (adapted from i386bsd-nat.h).
424 * amd64fbsd-nat.c: Include "amd64bsd-nat.h", "i386-nat.h".
425 [HAVE_PT_GETDBREGS] (_initialize_amd64fbsd_nat): Add hardware
426 watchpoints initialization.
427 * config/i386/fbsd64.mh (NATDEPFILES): Add i386-nat.o.
428
429 2012-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
430
431 * gdb-gdb.py (StructMainTypePrettyPrinter) <struct_field_img>: Print
432 flds_bnds.fields.
433 (StructMainTypePrettyPrinter) <bounds_img>: Print flds_bnds.bounds.
434
435 2012-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
436
437 * breakpoint.c (bp_location_compare): Fix comment. Reindent the code.
438
439 2012-02-08 Joel Brobecker <brobecker@adacore.com>
440
441 * language.h (symbol_name_cmp_ftype): Renames
442 symbol_name_match_p_ftype.
443 (struct language_defn)[la_get_symbol_name_cmp]: Renames
444 la_get_symbol_name_match_p.
445 * ada-lang.c (ada_get_symbol_name_cmp): Renames
446 ada_get_symbol_name_match_p. Update comment.
447 (ada_language_defn)[la_get_symbol_name_cmp]: Update value.
448 * linespec.c (struct symbol_matcher_data)[symbol_name_cmp]:
449 Renames symbol_name_match_p. Update field type.
450 (iterate_name_matcher, iterate_over_all_matching_symtabs): Adjust.
451 * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
452 opencl-lang.c, p-lang.c: Replace "la_get_symbol_name_match_p" by
453 "la_get_symbol_name_cmp" in comments.
454 * language.c: Likewise.
455
456 2012-02-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
457
458 * amd64-sol2-tdep.c (amd64_sol2_gregset_reg_offset): Correct
459 %eflags offset.
460 * i386-sol2-nat.c (amd64_sol2_gregset64_reg_offs)
461 (amd64_sol2_gregset32_reg_offs): Likewise.
462
463 2012-02-08 Joel Brobecker <brobecker@adacore.com>
464
465 * solib-darwin.c (darwin_bfd_open): Make sure that the filename
466 of the returned BFD is allocated by GDB.
467
468 2012-02-07 Tom Tromey <tromey@redhat.com>
469
470 PR python/12027:
471 * python/python-internal.h (frame_object_type): Declare.
472 * python/py-symbol.c (sympy_needs_frame): New function.
473 (sympy_value): New function.
474 (symbol_object_getset): Add "needs_frame".
475 (symbol_object_methods): Add "value".
476 * python/py-frame.c (frame_object_type): No longer static.
477
478 2012-02-07 Tom Tromey <tromey@redhat.com>
479
480 PR python/13599:
481 * python/py-symbol.c (sympy_line): New function.
482 (symbol_object_getset): Add "line".
483
484 2012-02-07 Tom Tromey <tromey@redhat.com>
485
486 * charset.c (find_charset_names): Check 'in' against NULL.
487
488 2012-02-06 Doug Evans <dje@google.com>
489
490 * gdbtypes.h (struct main_type): Change type of name,tag_name,
491 and fields.name members from char * to const char *. All uses updated.
492 (struct cplus_struct_type): Change type of fn_fieldlists.name member
493 from char * to const char *. All uses updated.
494 (type_name_no_tag): Update.
495 (lookup_unsigned_typename, lookup_signed_typename): Update.
496 * gdbtypes.c (type_name_no_tag): Change result type
497 from char * to const char *. All callers updated.
498 (lookup_unsigned_typename, lookup_signed_typename): Change type of
499 name parameter from char * to const char *.
500 * symtab.h (struct cplus_specific): Change type of demangled_name
501 member from char * to const char *. All uses updated.
502 (struct general_symbol_info): Change type of name and
503 mangled_lang.demangled_name members from char * to const char *.
504 All uses updated.
505 (symbol_get_demangled_name, symbol_natural_name): Update.
506 (symbol_demangled_name, symbol_search_name): Update.
507 * symtab.c (symbol_get_demangled_name): Change result type
508 from char * to const char *. All callers updated.
509 (symbol_natural_name, symbol_demangled_name): Ditto.
510 (symbol_search_name): Ditto.
511 (completion_list_add_name): Change type of symname,sym_text,
512 text,word parameters from char * to const char *.
513 (completion_list_objc_symbol): Change type of sym_text,
514 text,word parameters from char * to const char *.
515 * ada-lang.c (find_struct_field): Change type of name parameter
516 from char * to const char *.
517 (encoded_ordered_before): Similarly for N0,N1 parameters.
518 (old_renaming_is_invisible): Similarly for function_name parameter.
519 (ada_type_name): Change result type from char * to const char *.
520 All callers updated.
521 * ada-lang.h (ada_type_name): Update.
522 * buildsym.c (hashname): Change type of name parameter
523 from char * to const char *.
524 * buildsym.h (hashname): Update.
525 * dbxread.c (end_psymtab): Change type of include_list parameter
526 from char ** to const char **.
527 * dwarf2read.c (determine_prefix): Change result type
528 from char * to const char *. All callers updated.
529 * f-lang.c (find_common_for_function): Change type of name, funcname
530 parameters from char * to const char *.
531 * f-lang.c (find_common_for_function): Update.
532 * f-valprint.c (list_all_visible_commons): Change type of funcname
533 parameters from char * to const char *.
534 * gdbarch.sh (static_transform_name): Change type of name parameter
535 and result from char * to const char *.
536 * gdbarch.c: Regenerate.
537 * gdbarch.h: Regenerate.
538 * i386-sol2-tdep.c (i386_sol2_static_transform_name): Change type
539 of name parameter from char * to const char *.
540 * jv-lang.c (java_primitive_type_from_name): Ditto.
541 (java_demangled_signature_length): Similarly for signature parameter.
542 (java_demangled_signature_copy): Ditto.
543 (java_demangle_type_signature): Ditto.
544 * jv-lang.h (java_primitive_type_from_name): Update.
545 (java_demangle_type_signature): Update.
546 * objc-lang.c (specialcmp): Change type of a,b parameters
547 from char * to const char *.
548 * p-lang.c (is_pascal_string_type): Change type of arrayname parameter
549 from char * to const char *. All callers updated.
550 * p-lang.h (is_pascal_string_type): Update.
551 * solib-frv.c (find_canonical_descriptor_in_load_object): Change type
552 of name parameter from char * to const char *.
553 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Ditto.
554 * utils.c (fprintf_symbol_filtered): Ditto.
555 * defs.h (fprintf_symbol_filtered): Update.
556 * sparc-tdep.h (sparc_sol2_static_transform_name): Update.
557 * stabsread.h (end_psymtab): Update.
558 * stack.c (find_frame_funname): Change type of funname parameter
559 from char ** to const char **.
560 * stack.h (find_frame_funname): Update.
561 * typeprint.c (type_print): Change type of varstring parameter
562 from char * to const char *.
563 * value.h (type_print): Update.
564 * xcoffread.c (xcoff_start_psymtab): Change type of filename parameter
565 from char * to const char *. All callers updated.
566 (xcoff_end_psymtab): Change type of include_list parameter
567 from char ** to const char **. All callers updated.
568 (swap_sym): Similarly for name parameter. All callers updated.
569 * coffread.c (patch_type): Add (char*) cast to xfree parameter.
570 Use xstrdup.
571 (process_coff_symbol): Use xstrdup.
572 * stabsread.c (stabs_method_name_from_physname): Renamed from
573 update_method_name_from_physname. Change result type from void
574 to char *. All callers updated.
575 (read_member_functions): In has_destructor case, store name in objfile
576 obstack instead of malloc space. In !has_stub case, fix mem leak.
577
578 2012-02-06 Luca Pizzamiglio <luca.pizzamiglio@gmail.com>
579
580 * configure: Rebuild.
581 * configure.ac: Put -L../bfd and -L../libiberty at the front of
582 LDFLAGS.
583
584 2012-02-03 Kevin Buettner <kevinb@redhat.com>
585
586 * configure.tgt (rl78-*-elf): New target.
587 * rl78-tdep.c: New file.
588
589 2012-02-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
590
591 * remote.c (remote_rcmd): Use getpkt_sane to detect timeout
592 and continue the loop. Add QUIT statement.
593
594 2012-02-03 Tom Tromey <tromey@redhat.com>
595
596 PR gdb/13596:
597 * solib.h (gdb_bfd_lookup_symbol_from_symtab): Rename from
598 bfd_lookup_symbol_from_symtab.
599 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
600 gdb_bfd_lookup_symbol_from_symtab.
601
602 2012-02-03 Joel Brobecker <brobecker@adacore.com>
603
604 * mi/mi-cmd-stack.c (list_args_or_locals): For argument symbols,
605 use SYMBOL_LINKAGE_NAME to find the corresponding non-argument
606 symbol. Add assertion that sym2 is never NULL.
607
608 2012-02-02 Doug Evans <dje@google.com>
609
610 * blockframe.c (find_pc_partial_function_gnu_ifunc): Change type of
611 "name" parameter to const char ** from char **. All callers updated.
612 (find_pc_partial_function): Ditto.
613 (cache_pc_function_name): Change type to const char * from char *.
614 * symtab.h ((find_pc_partial_function_gnu_ifunc): Update.
615 (find_pc_partial_function): Update.
616 * alpha-tdep.h (struct gdbarch_tdep, member pc_in_sigtramp): Change
617 type of "name" parameter to const char * from char *.
618 All uses updated.
619 * arch-utils.c (generic_in_solib_return_trampoline): Change
620 type of "name" parameter to const char * from char *.
621 * arch-utils.h (generic_in_solib_return_trampoline): Update.
622 * frv-linux-tdep.c (frv_linux_pc_in_sigtramp): Change
623 type of "name" parameter to const char * from char *.
624 * gdbarch.sh (in_solib_return_trampoline): Ditto.
625 * gdbarch.c: Regenerate.
626 * gdbarch.h: Regenerate.
627 * hppa-hpux-tdep.c (hppa_hpux_in_solib_return_trampoline): Update.
628 * rs6000-tdep.c (rs6000_in_solib_return_trampoline): Update.
629 * m32r-linux-tdep.c (m32r_linux_pc_in_sigtramp): Change
630 type of "name" parameter to const char * from char *.
631 * skip.c (skip_function_pc): Ditto.
632 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Ditto.
633 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp): Update.
634 * sparc64fbsd-tdep.c (sparc64fbsd_pc_in_sigtramp): Ditto.
635 * sparc64nbsd-tdep.c (sparc64nbsd_pc_in_sigtramp): Ditto.
636 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Ditto.
637 * sparcnbsd-tdep.c (sparc32nbsd_pc_in_sigtramp): Ditto.
638 * sparcobsd-tdep.c (sparc32obsd_pc_in_sigtramp): Ditto.
639 * nbsd-tdep.c (nbsd_pc_in_sigtramp): Similary for "func_name".
640 * nbsd-tdep.h (nbsd_pc_in_sigtramp): Update.
641
642 2012-02-02 Pedro Alves <palves@redhat.com>
643
644 * remote.c (remote_get_min_fast_tracepoint_insn_len): Return 0 if
645 the current inferior has no execution. Make sure the current
646 remote process matches gdb's current inferior.
647
648 2012-02-02 Tom Tromey <tromey@redhat.com>
649
650 PR gdb/13405:
651 * tui/tui-win.c (parse_scrolling_args): Don't write to possibly
652 read-only memory.
653
654 2012-02-02 Tom Tromey <tromey@redhat.com>
655
656 PR gdb/9307:
657 * symtab.c (lookup_language_this): Set block_found.
658
659 2012-02-01 Tom Tromey <tromey@redhat.com>
660
661 PR gdb/13431:
662 * jit.c (struct jit_inferior_data): Rewrite.
663 (struct jit_objfile_data): New.
664 (get_jit_objfile_data): New function.
665 (add_objfile_entry): Update.
666 (jit_read_descriptor): Return int. Replace descriptor_addr
667 argument with inf_data. Update. Don't call error.
668 (jit_breakpoint_re_set_internal): Reorder logic. Update. Look up
669 descriptor here.
670 (jit_inferior_init): Don't look up descriptor. Don't call error.
671 (jit_reset_inferior_data_and_breakpoints)
672 (jit_inferior_created_observer): Remove.
673 (jit_inferior_exit_hook): Update.
674 (jit_executable_changed_observer): Remove.
675 (jit_event_handler): Update.
676 (free_objfile_data): Reset inferior data if needed.
677 (_initialize_jit): Update.
678
679 2012-02-01 Tom Tromey <tromey@redhat.com>
680
681 * jit.c (bfd_open_from_target_memory): Move higher in file.
682
683 2012-02-01 Tristan Gingold <gingold@adacore.com>
684
685 * libunwind-frame.c (libunwind_load): Display message if dlopen
686 failed.
687
688 2012-02-01 Gary Benson <gbenson@redhat.com>
689
690 * symtab.h (symbol_name_match_p_ftype): New typedef.
691 (iterate_over_symbols): Use the above.
692 * symtab.c (iterate_over_symbols): Likewise.
693 * language.h (language_defn->la_iterate_over_symbols): Likewise.
694 * ada-lang.c (ada_iterate_over_symbols): Likewise.
695 * linespec.c (iterate_over_all_matching_symtabs): Likewise.
696 (iterate_name_matcher): Document return values.
697 (collect_one_symbol): Likewise.
698 (collect_function_symbols): Likewise.
699 (collect_symbols): Likewise.
700
701 2012-02-01 Tom Tromey <tromey@redhat.com>
702
703 * ada-lang.c (resolve_subexp): Update.
704 (ada_lookup_symbol_list): Add 'full_search' argument.
705 (ada_iterate_over_symbols): Pass 0 as full_search argument to
706 ada_lookup_symbol_list.
707 (ada_lookup_encoded_symbol): Update.
708 (get_var_value): Update.
709 * ada-exp.y (block_lookup): Update.
710 (write_var_or_type): Update.
711 (write_name_assoc): Update.
712 * ada-lang.h (ada_lookup_symbol_list): Update.
713
714 2012-01-31 Tom Tromey <tromey@redhat.com>
715
716 * language.h (struct language_defn) <la_iterate_over_symbols>: Fix
717 comment.
718
719 2012-01-31 Doug Evans <dje@google.com>
720
721 * symtab.h: Remove outdated comment.
722 (SYMBOL_MATCHES_NATURAL_NAME): Delete.
723
724 2012-02-01 Josh Matthews <josh@joshmatthews.net> (tiny change)
725
726 Fix build error in Darwin port.
727 * i386-darwin-nat.c: Include i386-nat.h.
728
729 2012-01-30 Tom Tromey <tromey@redhat.com>
730
731 PR breakpoints/13568:
732 * dwarf2read.c (dwarf_decode_macro_bytes): Add 'include_hash'
733 argument. Check for recursive includes.
734 (dwarf_decode_macros): Create an include hash.
735
736 2012-01-30 Michael Eager <eager@eagercon.com>
737
738 * configure.tgt (powerpc-*-linux*): Add glibc-tdep.o.
739 * ppc-linux-tdep.c: Include glibc-tdep.h.
740 (powerpc32_plt_stub, powerpc32_plt_stub_so): Add PLT stub templates.
741 (powerpc_linux_in_plt_stub): New function.
742 (powerpc_linux_in_dynsym_resolve_code): New function.
743 (ppc_skip_trampoline_code): New function.
744 (ppc_linux_init_abi): Use PPC specific functions rather than generic.
745 Use glibc_skip_solib_resolver.
746
747 2012-01-28 Jan Kratochvil <jan.kratochvil@redhat.com>
748
749 Code cleanup: Make 1440 bytes of data segment read-only.
750 * arch-utils.c (endian_enum): Make it const char *const [].
751 * arm-tdep.c (fp_model_strings, arm_abi_strings, arm_mode_strings):
752 Likewise.
753 * breakpoint.c (always_inserted_enums): Likewise.
754 * cli/cli-cmds.c (script_ext_enums): Likewise.
755 * cli/cli-decode.c (add_setshow_enum_cmd, complete_on_enum): Make the
756 enumlist parameter const char *const *.
757 * cli/cli-decode.h (struct cmd_list_element): Make the enums field
758 const char *const *.
759 * command.h (complete_on_enum, add_setshow_enum_cmd): Make the enumlist
760 parameter const char *const *.
761 * cris-tdep.c (cris_modes): Make it const char *const [].
762 * filesystem.c (target_file_system_kinds): Likewise.
763 * i386-tdep.c (valid_flavors, valid_conventions): Likewise.
764 * infrun.c (follow_fork_mode_kind_names, follow_exec_mode_names)
765 (can_use_displaced_stepping_enum, scheduler_enums)
766 (exec_direction_names): Likewise.
767 * language.c (_initialize_language): Make the type_or_range_names and
768 case_sensitive_names variables const char *const [].
769 * mips-tdep.c (mips_abi_strings): Make it const char *const [].
770 * python/python.c (python_excp_enums): Likewise.
771 * remote.c (interrupt_sequence_modes): Likewise.
772 * rs6000-tdep.c (powerpc_vector_strings): Likewise.
773 * serial.c (logbase_enums): Likewise.
774 * sh-tdep.c (sh_cc_enum): Likewise.
775 * stack.c (print_frame_arguments_choices, print_entry_values_choices):
776 Likewise.
777 * symtab.c (multiple_symbols_modes): Likewise.
778 * tui/tui-win.c (tui_border_kind_enums, tui_border_mode_enums):
779 Likewise.
780 * utils.c (internal_problem_modes): Likewise.
781
782 2012-01-27 Jan Kratochvil <jan.kratochvil@redhat.com>
783
784 Fix the 2012-01-26 regression by la_get_symbol_name_match_p.
785 * linespec.c (iterate_name_matcher): Negate the SYMBOL_NAME_MATCH_P
786 result.
787
788 2012-01-27 Doug Evans <dje@google.com>
789
790 * configure.ac (with_python): Fix absolute path handling for win32.
791 * configure: Regenerate.
792
793 2012-01-26 Doug Evans <dje@google.com>
794
795 * symtab.c: Whitespace cleanup, no code changes.
796
797 * symtab.c (lookup_symbol_in_language): Improve comment.
798 (lookup_symbol_aux): Fix comment.
799
800 * psymtab.c (add_psymbol_to_list): Result is now "void".
801 * psympriv.h (add_psymbol_to_list): Update.
802
803 * dwarf2read.c (add_partial_symbol): Delete local psym, unused.
804
805 2012-01-26 Jan Kratochvil <jan.kratochvil@redhat.com>
806
807 Do not open script filenames twice.
808 * cli/cli-cmds.c (source_script_from_stream): Pass to
809 source_python_script also STREAM.
810 * python/py-auto-load.c (source_section_scripts): Pass to
811 source_python_script_for_objfile also STREAM.
812 (auto_load_objfile_script): Pass to source_python_script_for_objfile
813 also INPUT.
814 * python/python-internal.h (source_python_script_for_objfile): New
815 parameter file, rename parameter file to filename.
816 * python/python.c (python_run_simple_file): Call PyRun_SimpleFile
817 instead if !_WIN32. Update the function comment.
818 (source_python_script, source_python_script_for_objfile)
819 (source_python_script): New parameter file, rename parameter file to
820 filename. Pass FILENAME to python_run_simple_file.
821 * python/python.h (source_python_script): New parameter file, rename
822 parameter file to filename.
823
824 2012-01-26 Pedro Alves <palves@redhat.com>
825
826 * corelow.c (core_has_fake_pid): Delete.
827 (core_close): Delete references to `core_has_fake_pid'.
828 (add_to_thread_list): Adjust to mark the inferior's pid as fake.
829 (core_open): Delete references to `core_has_fake_pid'.
830 (core_pid_to_str): Adjust to check inferior->fake_pid_p instead of
831 the removed global.
832
833 2012-01-26 Joel Brobecker <brobecker@adacore.com>
834
835 * symfile.h (struct quick_symbol_functions) [expand_symtabs_matching]:
836 Remove language parameter from name_matcher. Adjust the comment.
837 * symtab.c (search_symbols_name_matches, expand_partial_symbol_name):
838 Remove language parameter.
839 * ada-lang.c (ada_expand_partial_symbol_name): Likewise.
840 * linespec.c (iterate_name_matcher): Likewise.
841 * dwarf2read.c (dw2_expand_symtabs_matching): Adjust type of
842 name_matcher. Adjust call accordingly.
843 * psymtab.c (expand_symtabs_matching_via_partial): Likewise.
844 (maintenance_check_symtabs): Adjust type of parameter "fun".
845 * psymtab.h (maintenance_check_symtabs): Likewise.
846
847 2012-01-26 Joel Brobecker <brobecker@adacore.com>
848
849 * language.h (symbol_name_match_p_ftype): New typedef.
850 (struct language_defn): Replace field la_symbol_name_compare
851 by la_get_symbol_name_match_p.
852 * ada-lang.c (ada_get_symbol_name_match_p): New function.
853 (ada_language_defn): Use it.
854 * linespec.c (struct symbol_matcher_data): New type.
855 (iterate_name_matcher): Rewrite.
856 (iterate_over_all_matching_symtabs): Pass a pointer to
857 a symbol_matcher_data struct to expand_symtabs_matching
858 instead of just the lookup name.
859 * c-lang.c, d-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
860 opencl-lang.c, p-lang.c, language.c: Delete field
861 la_symbol_name_compare, and replace by NULL for new field
862 la_get_symbol_name_match_p.
863 * symfile.h (struct quick_symbol_functions): Update comment.
864
865 2012-01-25 Tom Tromey <tromey@redhat.com>
866
867 * breakpoint.c (bpstat_stop_status): Check 'breakpoint_at' before
868 dereferencing.
869
870 2012-01-24 Tom Tromey <tromey@redhat.com>
871
872 PR symtab/12406:
873 * solib.c (update_solib_list): Update the program space's
874 added_solibs and deleted_solibs fields.
875 * progspace.h (struct program_space) <added_solibs,
876 deleted_solibs>: New fields.
877 (clear_program_space_solib_cache): Declare.
878 * progspace.c (release_program_space): Call
879 clear_program_space_solib_cache.
880 (clear_program_space_solib_cache): New function.
881 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>: Call
882 bpstat_stop_status. Use handle_solib_event.
883 * breakpoint.c: Include gdb_regex.h.
884 (print_solib_event): New function.
885 (bpstat_print): Use print_solib_event.
886 (bpstat_stop_status): Add special case for bp_shlib_event.
887 (handle_solib_event): New function.
888 (bpstat_what): Use handle_solib_event.
889 (struct solib_catchpoint): New.
890 (dtor_catch_solib, insert_catch_solib, remove_catch_solib)
891 (breakpoint_hit_catch_solib, check_status_catch_solib)
892 (print_it_catch_solib, print_one_catch_solib)
893 (print_mention_catch_solib, print_recreate_catch_solib): New
894 functions.
895 (catch_solib_breakpoint_ops): New global.
896 (catch_load_or_unload, catch_load_command_1)
897 (catch_unload_command_1): New functions.
898 (internal_bkpt_check_status): Add special case for
899 bp_shlib_event.
900 (internal_bkpt_print_it): Use print_solib_event.
901 (initialize_breakpoint_ops): Initialize
902 catch_solib_breakpoint_ops.
903 (_initialize_breakpoint): Register "catch load" and "catch
904 unload".
905 * breakpoint.h (handle_solib_event): Declare.
906 * NEWS: Add entry for "catch load" and "catch unload".
907
908 2012-01-24 Tom Tromey <tromey@redhat.com>
909
910 * ada-lang.c: Include gdb_vecs.h.
911 * charset.c: Include gdb_vecs.h.
912 * tracepoint.h: Include gdb_vecs.h.
913 * gdb_vecs.h: New file.
914
915 2012-01-24 Pedro Alves <pedro@codesourcery.com>
916
917 * breakpoint.c (breakpoint_hit_catch_fork)
918 (breakpoint_hit_catch_vfork, breakpoint_hit_catch_syscall)
919 (breakpoint_hit_catch_exec): Make use of the `ws' argument.
920 * infrun.c (inferior_has_forked, inferior_has_vforked)
921 (inferior_has_execd, inferior_has_called_syscall): Delete.
922 (handle_syscall_event): Get syscall_number from the execution
923 control state's wait status.
924 (wait_for_inferior): Don't clear syscall_number.
925
926 2012-01-24 Pedro Alves <palves@redhat.com>
927
928 * breakpoint.c (bpstat_check_location, bpstat_stop_status,
929 pc_at_non_inline_function): Add `ws' parameter, and pass it down.
930 (breakpoint_hit_catch_fork, breakpoint_hit_catch_vfork)
931 (breakpoint_hit_catch_syscall, breakpoint_hit_catch_exec): Add
932 `ws' parameter.
933 (breakpoint_hit_ranged_breakpoint): Add `ws' parameter. Return
934 false for events other than TARGET_SIGNAL_TRAP.
935 (breakpoint_hit_watchpoint, base_breakpoint_breakpoint_hit):
936 Add `ws' parameter.
937 (bkpt_breakpoint_hit): Add `ws' parameter. Return false for
938 events other than TARGET_SIGNAL_TRAP.
939 (tracepoint_breakpoint_hit): Add `ws' parameter.
940 * breakpoint.h (struct breakpoint_ops) <breakpoint_hit>: Add `ws'
941 parameter.
942 (bpstat_stop_status): Same.
943 (pc_at_non_inline_function): Same.
944 * infrun.c (handle_syscall_event, handle_inferior_event): Adjust
945 to pass the current event's waitstatus to bpstat_stop_status
946 and pc_at_non_inline_function.
947
948 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
949
950 Code cleanup.
951 * cli/cli-cmds.c (source_script_from_stream): Never fclose STREAM.
952 Update the function comment for it.
953 (source_script_with_search): Call make_cleanup_fclose for STREAM.
954 * cli/cli-script.c (script_from_file): Do not call make_cleanup_fclose
955 for STREAM.
956
957 2012-01-24 Pedro Alves <palves@redhat.com>
958
959 * breakpoint.c (bpstat_stop_status): Moving clearing print_it
960 outside `bs->stop' block.
961 (bpstat_what): Rework bp_shlib_event handling.
962 (internal_bkpt_check_status): If the breakpoint is a
963 bp_shlib_event, then set bs->stop and bs->print if
964 stop_on_solib_events is set.
965
966 2012-01-24 Gary Benson <gbenson@redhat.com>
967
968 Delete #if 0'd out code.
969 * stack.c (print_frame_label_vars): Remove.
970 (catch_info): Likewise.
971 (_initialize_stack): Remove "info catch" command.
972 * NEWS: Mention the above.
973
974 2012-01-24 Pedro Alves <palves@redhat.com>
975
976 * remote.c (remote_add_inferior): New `fake_pid_p' parameter. Use
977 it.
978 (remote_notice_new_inferior): If the remote end doesn't support
979 the multiprocess extensions, then the PID is fake.
980 (add_current_inferior_and_thread): New.
981 (remote_start_remote): Use it.
982 (extended_remote_attach_1): Adjust.
983 (extended_remote_create_inferior_1): Use
984 add_current_inferior_and_thread.
985
986 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
987
988 Fix watchpoints to be specific for each inferior.
989 * breakpoint.c (watchpoint_in_thread_scope): Verify also
990 current_program_space.
991 * i386-nat.c (i386_inferior_data_cleanup): New.
992 (i386_inferior_data_get): Replace variable inf_data_local by an
993 inferior_data call.
994 (i386_use_watchpoints): Initialize i386_inferior_data.
995 * linux-nat.c (linux_nat_iterate_watchpoint_lwps): Use INFERIOR_PTID
996 specific iterate_over_lwps.
997
998 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
999
1000 Fix watchpoints across inferior fork.
1001 * amd64-linux-nat.c (update_debug_registers_callback): Update the
1002 comment for linux_nat_iterate_watchpoint_lwps.
1003 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
1004 linux_nat_iterate_watchpoint_lwps.
1005 (amd64_linux_prepare_to_resume): New comment on Linux kernel.
1006 * i386-linux-nat.c (update_debug_registers_callback): Update the
1007 comment for linux_nat_iterate_watchpoint_lwps.
1008 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
1009 linux_nat_iterate_watchpoint_lwps.
1010 (i386_linux_prepare_to_resume): New comment on Linux kernel.
1011 * i386-nat.c: Include inferior.h.
1012 (dr_mirror): Remove.
1013 (i386_inferior_data, struct i386_inferior_data)
1014 (i386_inferior_data_get): New.
1015 (i386_debug_reg_state): Use i386_inferior_data_get.
1016 (i386_cleanup_dregs, i386_update_inferior_debug_regs)
1017 (i386_insert_watchpoint, i386_remove_watchpoint)
1018 (i386_stopped_data_address, i386_insert_hw_breakpoint)
1019 (i386_remove_hw_breakpoint): New variable state, use
1020 i386_debug_reg_state instead of DR_MIRROR.
1021 * linux-nat.c (delete_lwp): New declaration.
1022 (num_lwps): Move here from downwards.
1023 (delete_lwp_cleanup): New.
1024 (linux_child_follow_fork): Create new child_lp, call
1025 linux_nat_new_thread and linux_nat_prepare_to_resume before calling
1026 PTRACE_DETACH.
1027 (num_lwps): Move upwards.
1028 (linux_nat_iterate_watchpoint_lwps): New.
1029 * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): New.
1030 (linux_nat_iterate_watchpoint_lwps_ftype): New declaration.
1031
1032 2012-01-24 Joel Brobecker <brobecker@adacore.com>
1033
1034 GDB 7.4 released.
1035
1036 2012-01-23 Pedro Alves <palves@redhat.com>
1037
1038 * top.c (caution): Rename to ...
1039 (confirm): ... this.
1040 (show_caution): Rename to ...
1041 (show_confirm): ... this.
1042 (quit_cover): Adjust.
1043 (init_main): Adjust.
1044 * top.h (caution): Rename to ...
1045 (confirm): ... this.
1046 * utils.c (internal_vproblem, defaulted_query): Adjust.
1047
1048 2012-01-23 Pedro Alves <palves@redhat.com>
1049
1050 * top.c (caution): Update comment.
1051 (execute_command): Don't consider the current value of `caution'.
1052
1053 2012-01-23 Jan Kratochvil <jan.kratochvil@redhat.com>
1054
1055 * cli/cli-cmds.c (find_and_open_script): Handle failure of fdopen.
1056
1057 2012-01-23 Ulrich Weigand <ulrich.weigand@linaro.org>
1058
1059 * inf-child.c: Include "gdb_stat.h" instead of <sys/stat.h>.
1060 * linux-tdep.c (linux_info_proc): Avoid ARI coding style warning.
1061 * target.c (target_fileio_pwrite): Remove buffer address from
1062 debug output.
1063 (target_fileio_pread): Likewise.
1064
1065 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
1066
1067 * NEWS: Document remote "info proc" and "generate-core-file".
1068
1069 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
1070
1071 * gdbarch.sh (find_memory_regions): New callback.
1072 * gdbarch.c, gdbarch.h: Regenerate.
1073
1074 * gcore.c (gcore_memory_sections): Try gdbarch find_memory_regions
1075 callback before falling back to target method.
1076
1077 * linux-nat.c (read_mapping, linux_nat_find_memory_regions): Remove.
1078 (linux_target_install_ops): No longer install it.
1079
1080 * linux-tdep.c (linux_find_memory_regions): New function.
1081 (linux_init_abi): Install it.
1082
1083 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
1084
1085 * gdbarch.sh (make_corefile_notes): New architecture callback.
1086 * gdbarch.c: Regenerate.
1087 * gdbarch.h: Likewise.
1088
1089 * gcore.c (write_gcore_file): Try gdbarch_make_corefile_notes
1090 before target_make_corefile_notes. If NULL is returned, the
1091 target does not support core file generation.
1092
1093 * linux-nat.c: Include "linux-tdep.h".
1094 (find_signalled_thread, find_stop_signal): Remove.
1095 (linux_nat_do_thread_registers): Likewise.
1096 (struct linux_nat_corefile_thread_data): Likewise.
1097 (linux_nat_corefile_thread_callback): Likewise.
1098 (iterate_over_spus): Likewise.
1099 (struct linux_spu_corefile_data): Likewise.
1100 (linux_spu_corefile_callback): Likewise.
1101 (linux_spu_make_corefile_notes): Likewise.
1102 (linux_nat_collect_thread_registers): New function.
1103 (linux_nat_make_corefile_notes): Replace contents by call to
1104 linux_make_corefile_notes passing linux_nat_collect_thread_registers
1105 as native-only callback.
1106
1107 * linux-tdep.h: Include "bfd.h".
1108 (struct regcache): Add forward declaration.
1109 (linux_collect_thread_registers_ftype): New typedef.
1110 (linux_make_corefile_notes): Add prototype.
1111 * linux-tdep.c: Include "gdbthread.h", "gdbcore.h", "regcache.h",
1112 "regset.h", and "elf-bfd.h".
1113 (find_signalled_thread, find_stop_signal): New functions.
1114 (linux_spu_make_corefile_notes): Likewise.
1115 (linux_collect_thread_registers): Likewise.
1116 (struct linux_corefile_thread_data): New data structure.
1117 (linux_corefile_thread_callback): New funcion.
1118 (linux_make_corefile_notes): Likewise.
1119 (linux_make_corefile_notes_1): Likewise.
1120 (linux_init_abi): Install it.
1121
1122 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
1123
1124 * gdbarch.sh (info_proc): New callback.
1125 * gdbarch.c, gdbarch.h: Regenerate.
1126
1127 * infcmd.c (info_proc_cmd_1): Try gdbarch info_proc callback
1128 before falling back to the target info_proc callback.
1129
1130 * linux-nat.c: Do not include "cli/cli-utils.h".
1131 (linux_nat_info_proc): Remove.
1132 (linux_target_install_ops): No longer install it.
1133
1134 * linux-tdep.c: Include "cli/cli-utils.h" and <ctype.h>.
1135 (read_mapping): New function.
1136 (linux_info_proc): Likewise.
1137 (linux_init_abi): Install it.
1138
1139 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
1140
1141 * defs.h (enum info_proc_what): Moved here from linux-nat.c
1142 * infcmd.c: (info_proc_cmd_1): New function.
1143 (info_proc_cmd): New function, moved here from equivalent routine
1144 orignally in linux-nat.c.
1145 (info_proc_cmd_mappings): Likewise.
1146 (info_proc_cmd_stat): Likewise.
1147 (info_proc_cmd_status): Likewise.
1148 (info_proc_cmd_cwd): Likewise.
1149 (info_proc_cmd_cmdline): Likewise.
1150 (info_proc_cmd_exe): Likewise.
1151 (info_proc_cmd_all): Likewise.
1152 (_initialize_infcmd): Install "info proc" command and subcommands.
1153
1154 * target.h (struct target_ops): Add to_info_proc.
1155 (target_info_proc): Add prototype.
1156 * target.c (target_info_proc): New function.
1157
1158 * procfs.c (procfs_info_proc): Add prototype.
1159 (info_proc_cmd): Rename into ...
1160 (procfs_info_proc): ... this. Update argument types as appropriate
1161 for a to_info_proc implementation. Handle "what" argument.
1162 (procfs_target): Install procfs_info_proc.
1163 (_initialize_procfs): No longer install "info proc" command.
1164
1165 * linux-nat.c: (enum info_proc_what): Remove.
1166 (linux_nat_info_proc_cmd_1): Rename into ...
1167 (linux_nat_info_proc): ... this. Update argument types as appropriate
1168 for a to_info_proc implementation.
1169 (linux_nat_info_proc_cmd): Remove.
1170 (linux_nat_info_proc_cmd_mappings): Likewise.
1171 (linux_nat_info_proc_cmd_stat): Likewise.
1172 (linux_nat_info_proc_cmd_status): Likewise.
1173 (linux_nat_info_proc_cmd_cwd): Likewise.
1174 (linux_nat_info_proc_cmd_cmdline): Likewise.
1175 (linux_nat_info_proc_cmd_exe): Likewise.
1176 (linux_nat_info_proc_cmd_all): Likewise.
1177 (linux_target_install_ops): Install linux_nat_info_proc.
1178 (_initialize_linux_nat): No longer install "info proc" command
1179 and subcommands.
1180
1181 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
1182
1183 * configure.ac [AC_CHECK_FUNCS]: Check for readlink.
1184 * config.in, configure: Regenerate.
1185
1186 * target.h (struct target_ops): Add to_fileio_readlink.
1187 (target_fileio_readlink): Add prototype.
1188 * target.c (target_fileio_readlink): New function.
1189
1190 * inf-child.c: Conditionally include <sys/param.h>.
1191 (inf_child_fileio_readlink): New function.
1192 (inf_child_target): Install it.
1193
1194 * remote.c (PACKET_vFile_readlink): New enum value.
1195 (remote_hostio_readlink): New function.
1196 (init_remote_ops): Install it.
1197 (_initialize_remote): Handle vFile:readlink packet type.
1198
1199 2012-01-20 Pedro Alves <palves@redhat.com>
1200 Ulrich Weigand <ulrich.weigand@linaro.org>
1201
1202 * configure.ac [AC_CHECK_FUNCS]: Check for pread and pwrite.
1203 * config.in, configure: Regenerate.
1204
1205 * target.h (struct target_ops): Add to_fileio_open, to_fileio_pwrite,
1206 to_fileio_pread, to_fileio_close, to_fileio_unlink.
1207 (target_fileio_open): Add prototype.
1208 (target_fileio_pwrite): Likewise.
1209 (target_fileio_pread): Likewise.
1210 (target_fileio_close): Likewise.
1211 (target_fileio_unlink): Likewise.
1212 (target_fileio_read_alloc): Likewise.
1213 (target_fileio_read_stralloc): Likewise.
1214
1215 * target.c: Include "gdb/fileio.h".
1216 (target_read_stralloc): Accept trailing, but not embedded NUL bytes.
1217 (default_fileio_target): New function.
1218 (target_fileio_open): Likewise.
1219 (target_fileio_pwrite): Likewise.
1220 (target_fileio_pread): Likewise.
1221 (target_fileio_close): Likewise.
1222 (target_fileio_unlink): Likewise.
1223 (target_fileio_close_cleanup): Likewise.
1224 (target_fileio_read_alloc_1): Likewise.
1225 (target_fileio_read_alloc): Likewise.
1226 (target_fileio_read_stralloc): Likewise.
1227
1228 * inf-child.c: Include "gdb/fileio.h", <sys/types.h>, <sys/stat.h>,
1229 <fcntl.h>, and <unistd.h>.
1230 (inf_child_fileio_open_flags_to_host): New function.
1231 (inf_child_errno_to_fileio_error): Likewise.
1232 (inf_child_fileio_open): Likewise.
1233 (inf_child_fileio_pwrite): Likewise.
1234 (inf_child_fileio_pread): Likewise.
1235 (inf_child_fileio_close): Likewise.
1236 (inf_child_fileio_unlink): Likewise.
1237 (inf_child_target): Install to_fileio routines.
1238
1239 * remote.c (init_remote_ops): Install to_fileio routines.
1240
1241 2012-01-20 Pedro Alves <palves@redhat.com>
1242 Ulrich Weigand <ulrich.weigand@linaro.org>
1243
1244 * remote.c (remote_multi_process_p): Only check for multi-process
1245 protocol feature, do not check for extended protocol.
1246 (remote_supports_multi_process): Check for extended protocol here.
1247 (set_general_process): Likewise.
1248 (extended_remote_kill): Likewise.
1249 (remote_pid_to_str): Likewise.
1250 (remote_query_supported): Always query multiprocess mode.
1251
1252 2012-01-20 Pedro Alves <palves@redhat.com>
1253 Ulrich Weigand <ulrich.weigand@linaro.org>
1254
1255 * inferior.h (struct inferior): Add fake_pid_p.
1256 * inferior.c (exit_inferior_1): Clear fake_pid_p.
1257 * remote.c (remote_start_remote): Set fake_pid_p if we have to use
1258 magic_null_ptid since the remote side doesn't provide a real PID.
1259
1260 2012-01-19 Tom Tromey <tromey@redhat.com>
1261
1262 * NEWS: Combine the two Python sections.
1263
1264 2012-01-19 Jan Kratochvil <jan.kratochvil@redhat.com>
1265
1266 * target.h (target_close): Update comment on the target's unpush state.
1267
1268 2012-01-19 Pedro Alves <palves@redhat.com>
1269
1270 * linux-nat.c (linux_nat_close): Call linux_nat_is_async_p and
1271 linux_nat_async directly instead of going through the target
1272 vector.
1273 * target.c (unpush_target): Close target after unpushing it, not
1274 before.
1275
1276 2012-01-19 Gary Benson <gbenson@redhat.com>
1277
1278 * mdebugread.c (sort_blocks): Replace integer constants with ones
1279 derived from FIRST_LOCAL_BLOCK.
1280
1281 2012-01-18 Paul Pluzhnikov <ppluzhnikov@google.com>
1282 Jan Kratochvil <jan.kratochvil@redhat.com>
1283
1284 PR gdb/9538
1285 * symfile.c (find_separate_debug_file): New function.
1286 (terminate_after_last_dir_separator): Likewise.
1287 (find_separate_debug_file_by_debuglink): Also try realpath.
1288 * configure.ac (AC_CHECK_FUNCS): Add lstat.
1289 * configure: Regenerate.
1290 * config.in: Regenerate.
1291
1292 2012-01-18 Doug Evans <dje@google.com>
1293
1294 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): Delete.
1295 (main.o): Remove rule.
1296 * configure.ac (BINDIR): Define with AC_DEFINE_DIR.
1297 (--with-sysroot): Rewrite.
1298 * configure: Regenerate.
1299 * config.in: Regenerate.
1300
1301 2012-01-18 Sergio Durigan Junior <sergiodj@redhat.com>
1302
1303 * parse.c (initialize_expout): New function.
1304 (reallocate_expout): Likewise.
1305 (parse_exp_in_context): Use `initialize_expout' and
1306 `reallocate_expout' when appropriate.
1307
1308 2012-01-18 Pedro Alves <palves@redhat.com>
1309
1310 * record.c (struct record_breakpoint, record_breakpoint_p)
1311 (record_breakpoints): New.
1312 (record_insert_breakpoint, record_remove_breakpoint): Manage
1313 record breakpoints list. Only remove breakpoints from the
1314 inferior if they had been inserted there in the first place.
1315
1316 2012-01-17 Doug Evans <dje@google.com>
1317
1318 * linespec.c (decode_line_internal): Don't call symtabs_from_filename
1319 if we know we don't have a file name to look for.
1320
1321 2012-01-17 Pedro Alves <palves@redhat.com>
1322
1323 * dwarf2-frame.c (dwarf2_frame_cfa): Throw NOT_AVAILABLE_ERROR, if
1324 the frame's stop reason is UNWIND_UNAVAILABLE.
1325
1326 2012-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1327
1328 Fix compilation error.
1329 * m2-exp.y (yyerror): Use ANSI C prototype.
1330
1331 2012-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
1332
1333 * f-exp.y (parse_number): Convert prototype from K&R to ANSI C.
1334 (growbuf_by_size): Likewise.
1335 (yyerror): Likewise.
1336 * m2-exp.y (make_qualname): Remove function (was #if 0'ed).
1337 (modblock): Remove variable (was #if 0'ed).
1338 (parse_number): Convert prototype from K&R to ANSI C.
1339 (yyerror): Likewise.
1340 * objc-exp.y (parse_number): Likewise.
1341 (yyerror): Likewise.
1342 (yylex): Remove #if 0'ed code.
1343 * p-exp.y (uptok): Convert prototype from K&R to ANSI C.
1344 (yyerror): Likewise.
1345
1346 2012-01-16 Tom Tromey <tromey@redhat.com>
1347
1348 * NEWS: Add item.
1349 * symtab.h (compare_filenames_for_search): Declare.
1350 * symtab.c (compare_filenames_for_search): New function.
1351 (iterate_over_some_symtabs): Use it.
1352 * symfile.h (struct quick_symbol_functions)
1353 <map_symtabs_matching_filename>: Change spec.
1354 * psymtab.c (partial_map_symtabs_matching_filename): Use
1355 compare_filenames_for_search. Update for new spec.
1356 * dwarf2read.c (dw2_map_symtabs_matching_filename): Use
1357 compare_filenames_for_search. Update for new spec.
1358 * breakpoint.c (clear_command): Use compare_filenames_for_search.
1359
1360 2012-01-16 Tom Tromey <tromey@redhat.com>
1361
1362 PR python/13281:
1363 * gdbtypes.h (TYPE_FLAG_ENUM): New macro.
1364 (struct main_type) <flag_flag_enum>: New field.
1365 * dwarf2read.c (process_enumeration_scope): Detect "flag" enums.
1366 * NEWS: Add entries.
1367 * c-valprint.c (c_val_print) <TYPE_CODE_ENUM>: Handle "flag"
1368 enums.
1369 * python/lib/gdb/printing.py (_EnumInstance): New class.
1370 (FlagEnumerationPrinter): Likewise.
1371
1372 2012-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
1373
1374 * breakpoint.c (create_sals_from_address_default): New function.
1375 (create_breakpoints_sal_default): Likewise.
1376 (decode_linespec_default): Likewise.
1377 (is_marker_spec): Removed.
1378 (strace_marker_p): New function.
1379 (init_breakpoint_sal): Using `strace_marker_p' instead of
1380 `is_marker_spec'.
1381 (create_breakpoint): Call method `create_sals_from_address' from
1382 breakpoint_ops, replacing code that created SALs conditionally
1383 on the type of the breakpoint. Call method `create_breakpoints_sal',
1384 replacing code that created breakpoints conditionally on the type
1385 wanted.
1386 (base_breakpoint_create_sals_from_address): New function.
1387 (base_breakpoint_create_breakpoints_sal): Likewise.
1388 (base_breakpoint_decode_linespec): Likewise.
1389 (base_breakpoint_ops): Add methods
1390 `base_breakpoint_create_sals_from_address',
1391 `base_breakpoint_create_breakpoints_sal' and
1392 `base_breakpoint_decode_linespec'.
1393 (bkpt_create_sals_from_address): New function.
1394 (bkpt_create_breakpoints_sal): Likewise.
1395 (bkpt_decode_linespec): Likewise.
1396 (tracepoint_create_sals_from_address): Likewise.
1397 (tracepoint_create_breakpoints_sal): Likewise.
1398 (tracepoint_decode_linespec): Likewise.
1399 (strace_marker_create_sals_from_address): Likewise.
1400 (strace_marker_create_breakpoints_sal): Likewise.
1401 (strace_marker_decode_linespec): Likewise.
1402 (strace_marker_breakpoint_ops): New variable.
1403 (addr_string_to_sals): Remove `marker_spec'. Call method
1404 `decode_linespec' from breakpoint_ops, replacing code that decoded
1405 an address string into a SAL. Use `strace_marker_p' instead of
1406 `marker_spec'.
1407 (strace_command): Decide whether we are dealing with a static
1408 tracepoint with marker or not. Use the appropriate breakpoint_ops.
1409 (initialize_breakpoint_ops): Initialize new fields of breakpoint_ops.
1410 * breakpoint.h (linespec_result, linespec_sals): New forward
1411 declarations.
1412 (breakpoint_ops) <create_sals_from_address>,
1413 <create_breakpoints_sal>, <decode_linespec>: New methods.
1414
1415 2012-01-14 Doug Evans <dje@google.com>
1416
1417 * NEWS: Update text for "maint set python print-stack".
1418 It is deprecated in gdb 7.4 and deleted in 7.5.
1419
1420 2012-01-13 Eli Zaretskii <eliz@gnu.org>
1421
1422 * gdb_curses.h (MOUSE_MOVED) [__MINGW32__]: Undefine before
1423 including curses.h.
1424
1425 2012-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
1426
1427 * configure: Regenerate.
1428 * config.in: Regenerate.
1429
1430 2012-01-12 Keith Seitz <keiths@redhat.com>
1431
1432 PR mi/10586
1433 * varobj.c (ANONYMOUS_STRUCT_NAME): Define.
1434 (ANONYMOUS_UNION_NAME): Define.
1435 (is_path_expr_parent): New function.
1436 (get_path_expr_parent): New function.
1437 (is_anonymous_child): New function.
1438 (create_child_with_value): If the child is anonymous and without
1439 a name, assign an object name to it.
1440 (c_describe_child): Use get_path_expr_parent to determine
1441 the parent expression.
1442 If there field represents an anonymous struct or union and
1443 has no name, set an appropriate display name and expression.
1444 (cplus_describe_child): Likewise.
1445
1446 2012-01-12 Pedro Alves <palves@redhat.com>
1447
1448 * i386-tdep.c (i386_frame_cache_1): Also mark the frame base as
1449 available when %ebp is found to be zero (outermost).
1450
1451 2012-01-11 Andreas Tobler <andreast@fgznet.ch>
1452
1453 * common/gdb_assert.h (gdb_static_assert): Rename static_assert to
1454 an internal gdb_static_assert.
1455 * mi/mi-common.c: Rename static_assert to gdb_static_assert.
1456
1457 2012-01-11 Tom Tromey <tromey@redhat.com>
1458
1459 PR gdb/9598:
1460 * breakpoint.c (_initialize_breakpoint): Fix help for "catch
1461 catch" and "catch throw".
1462
1463 2012-01-11 Paul Hilfinger <hilfingr@adacore.com>
1464
1465 * blockframe.c (block_innermost_frame): Start search from selected
1466 frame, if present, or otherwise the current frame.
1467
1468 * c-exp.y (variable): Update innermost_block for
1469 'block COLONCOLON NAME' clause.
1470 * m2-exp.y (variable): Ditto.
1471 * objc-exp.y (variable): Ditto.
1472
1473 2012-01-10 Tom Tromey <tromey@redhat.com>
1474
1475 PR python/13199:
1476 * python/python.c (finish_python_initialization): Set sys.argv.
1477
1478 2012-01-10 Doug Evans <dje@google.com>
1479
1480 * dwarf2read.c (dwarf_decode_lines): Remove arg "abfd". New arg
1481 "want_line_info". All callers updated.
1482 (dwarf_decode_lines_1): New function.
1483 (handle_DW_AT_stmt_list): Add function comment.
1484 New arg "want_line_info". All callers updated.
1485 (read_file_scope,read_type_unit_scope): Move comment from
1486 handle_DW_AT_stmt_list to here.
1487
1488 2012-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
1489
1490 Fix regression after libiberty/ update for GCC PR 6057 and others.
1491 * c-exp.y (operator) <OPERATOR DELETE>
1492 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
1493 * cp-name-parser.y (fill_comp, make_operator, make_dtor)
1494 (make_builtin_type, make_name): New variable i, add gdb_assert.
1495 (operator) <OPERATOR NEW>: Update ARGS to 3.
1496 (operator) <OPERATOR DELETE>: Add trailing space.
1497 (operator) <OPERATOR NEW '[' ']'>: Update ARGS to 3.
1498 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
1499 * cp-support.c (cp_canonicalize_string): Check NULL from
1500 cp_comp_to_string, call warning and return.
1501
1502 2012-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
1503
1504 Fix duplicate .o files after omitting libbfd.a.
1505 * Makefile.in (ALL_TARGET_OBS): Remove corelow.o.
1506 (SFILES): Add corelow.c.
1507 (COMMON_OBS): Add corelow.o.
1508 (ALLDEPFILES): Remove corelow.c.
1509 * config/alpha/alpha-linux.mh (NATDEPFILES): Remove corelow.o.
1510 * config/alpha/alpha-osf3.mh: Likewise.
1511 * config/alpha/fbsd.mh: Likewise.
1512 * config/arm/nbsdaout.mh: Likewise.
1513 * config/arm/nbsdelf.mh: Likewise.
1514 * config/i386/i386gnu.mh: Likewise.
1515 * config/ia64/hpux.mh: Likewise.
1516 * config/ia64/linux.mh: Likewise.
1517 * config/m32r/linux.mh: Likewise.
1518 * config/m68k/linux.mh: Likewise.
1519 * config/mips/irix5.mh: Likewise.
1520 * config/mips/irix6.mh: Likewise.
1521 * config/pa/hpux.mh: Likewise.
1522 * config/pa/linux.mh: Likewise.
1523 * config/powerpc/aix.mh: Likewise.
1524 * config/sparc/linux.mh: Likewise.
1525 * config/sparc/linux64.mh: Likewise.
1526 * config/sparc/sol2.mh: Likewise.
1527 * config/vax/vax.mh: Likewise.
1528 * configure.tgt (alpha*-*-freebsd* alpha*-*-kfreebsd*-gnu)
1529 (alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu, alpha*-*-openbsd*)
1530 (am33_2.0*-*-linux*, arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-linux*)
1531 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-netbsd*)
1532 (hppa*-*-openbsd*, i[34567]86-*-dicos*, i[34567]86-*-freebsd*)
1533 (i[34567]86-*-kfreebsd*-gnu, i[34567]86-*-netbsd*)
1534 (i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*, i[34567]86-*-nto*)
1535 (i[34567]86-*-solaris2.1[0-9]*, x86_64-*-solaris2.1[0-9]*)
1536 (i[34567]86-*-solaris*, i[34567]86-*-linux*, i[34567]86-*-cygwin*)
1537 (i[34567]86-*-mingw32*, m68*-*-netbsd*, m68*-*-knetbsd*-gnu)
1538 (m68*-*-openbsd*, m88*-*-openbsd*, microblaze*-linux-*)
1539 (microblaze*-*-linux*, mips*-*-linux*, mips*-*-netbsd*)
1540 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
1541 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-linux*)
1542 (powerpc64-*-linux*, s390*-*-*, score-*-*, sh*-*-linux*)
1543 (sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
1544 (sparc*-*-freebsd*, sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*)
1545 (sparc-*-knetbsd*-gnu, sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu)
1546 (sparc-*-openbsd*, sparc64-*-openbsd*, tic6x-*-*linux, vax-*-netbsd*)
1547 (vax-*-knetbsd*-gnu, vax-*-openbsd*, x86_64-*-dicos*, x86_64-*-linux*)
1548 (x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu, x86_64-*-netbsd*)
1549 (x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*, xtensa*-*-linux*): Remove
1550 corelow.o from gdb_target_obs.
1551 * corefile.c (core_target): Update the comment on NULL value.
1552 (core_file_command): Replace error by gdb_assert on CORE_TARGET.
1553 * corelow.c (sniff_core_bfd): Call error instead of warning on zero
1554 MATCHES. Drop YUMMY set on NULL.
1555 (core_close): Do not call exit_inferior_silent on zero PID. Do not
1556 reclaim CORE_DATA if it is already NULL.
1557
1558 2012-01-09 Doug Evans <dje@google.com>
1559
1560 * gdbtypes.c (safe_parse_type): Initialize type to keep gcc happy.
1561 * varobj.c (varobj_set_value): Initialize val,value to keep gcc happy.
1562
1563 2012-01-09 Keith Seitz <keiths@redhat.com>
1564
1565 * breakpoint.c (wrapper.h): Don't include.
1566
1567 2012-01-09 Keith Seitz <keiths@redhat.com>
1568
1569 * Makefile.in (SFILES): Remove wrapper.c.
1570 (HFILES_NO_SRCDIR): Remove wrapper.h.
1571 (COMMON_OBS): Remove wrapper.o.
1572 * cli/cli-interp.c: Don't inlude wrapper.h.
1573 * corelow.c: Likewise.
1574 (core_open): Replace gdb_target_find_new_threads with
1575 TRY_CATCH around target_find_new_threads.
1576 * eval.c (fetch_subexp_value): Likewise for value_fetch_lazy.
1577 * gdbtypes.c (safe_parse_type): Likewise for parse_and_eval_type.
1578 * varobj.c (varobj_create): Likewise for parse_exp_1 and
1579 evaluate_expression.
1580 (varobj_set_value): Likewise for evaluate_expression and
1581 value_assign.
1582 (install_new_variable): Likewise for value_fetch_lazy.
1583 (adjust_value_for_child_access): Likewise for value_ind.
1584 (c_describe_child): Likewise for value_subscript and
1585 value_ind.
1586 (c_value_of_root): Likewise for evaluate_expression.
1587 * wrapper.c: Remove.
1588 * wrapper.h: Remove.
1589
1590 2012-01-09 Doug Evans <dje@google.com>
1591
1592 * dwarf2read.c (read_and_check_comp_unit_head): Renamed from
1593 partial_read_comp_unit_head. Replace "buffer", "buffer_size" and
1594 "abfd" args with "section". All callers updated.
1595 Error checking code moved ...
1596 (error_check_comp_unit_head): ... here. New function.
1597 (read_and_check_type_unit_head): Renamed from read_type_unit_head.
1598 Delete arg "abfd". New arg "type_offset". All callers updated.
1599 (create_debug_types_hash_table): Simplify by using
1600 read_and_check_type_unit_head.
1601
1602 * parser-defs.h (namecopy): Delete.
1603 * parse.c (namecopy, namecopy_size): Move into copy_name.
1604
1605 2012-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1606
1607 Partially fix duplicate .o files after omitting libbfd.a.
1608 * config/alpha/alpha-osf3.mh (NATDEPFILES): Remove solib.o.
1609 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
1610 * config/i386/obsdaout.mh (NATDEPFILES): Remove solib.o.
1611 * config/m68k/nbsdaout.mh (NATDEPFILES): Remove solib.o.
1612 * config/m68k/obsd.mh (NATDEPFILES): Remove solib.o.
1613 * config/powerpc/aix.mh (NATDEPFILES): Remove xcoffread.o.
1614 * config/vax/nbsdaout.mh (NATDEPFILES): Remove solib.o.
1615
1616 2012-01-09 Pedro Alves <palves@redhat.com>
1617
1618 * MAINTAINERS: Update my email address.
1619
1620 2012-01-08 Doug Evans <dje@google.com>
1621
1622 * dwarf2read.c (dwarf2_per_objfile): Rename n_type_comp_units to
1623 n_type_units. Rename type_comp_units to all_type_units.
1624 All uses updated.
1625 (add_signatured_type_cu_to_table): Renamed from
1626 add_signatured_type_cu_to_list. All callers updated.
1627
1628 * gdbtypes.h (struct cplus_struct_type): Delete member
1629 nfn_fields_total. All uses removed.
1630
1631 2012-01-06 Doug Evans <dje@google.com>
1632
1633 * dwarf2read.c: Move FIXME from dwarf2_build_psymtabs_hard
1634 to top of file.
1635 (dwarf2_find_comp_unit): Delete.
1636 (process_psymtab_comp_unit): Make result "void".
1637 Delete args buffer, info_ptr, buffer_size, and replace with
1638 "section". All callers updated.
1639 (dwarf2_build_psymtabs_hard): Simplify.
1640
1641 2012-01-06 Sergio Durigan Junior <sergiodj@redhat.com>
1642 Thiago Jung Bauermann <bauerman@br.ibm.com>
1643
1644 * ada-lang.c (ada_exception_name_addr): Add `volatile' keyword
1645 before `struct gdb_exception'.
1646 * breakpoint.c (update_global_location_list_nothrow)
1647 (update_breakpoint_locations, enable_breakpoint_disp): Likewise.
1648 * cp-abi.c (value_rtti_type): Likewise.
1649 * cp-support.c (cp_validate_operator): Likewise.
1650 * infrun.c (insert_exception_resume_breakpoint)
1651 (check_exception_resume, keep_going): Likewise.
1652 * mi-interp.c (mi_breakpoint_created)
1653 (mi_breakpoint_modified): Likewise.
1654 * rs6000-aix-tdep.c (rs6000_convert_from_func_ptr_addr): Likewise.
1655 * solib-ia64-hpux.c (ia64_hpux_at_dld_breakpoint_p)
1656 (ia64_hpux_handle_dld_breakpoint_1): Likewise.
1657
1658 2012-01-05 Doug Evans <dje@google.com>
1659
1660 * dwarf2read.c (statement_prologue): Delete, unused.
1661
1662 * dwarf2read.c (dwarf2_per_cu_addr_size): Make result type an int.
1663 * dwarf2loc.h (dwarf2_per_cu_addr_size): Update.
1664
1665 * dwarf2read.c (comp_unit_header): Delete, unused.
1666
1667 2012-01-05 Ulrich Weigand <uweigand@de.ibm.com>
1668
1669 * configure.tgt [s390*-*-*] (gdb_target_obs): Add corelow.o.
1670 * config/s390/s390.mh (NATDEPFILES): Remove corelow.o.
1671
1672 2012-01-05 Khoo Yit Phang <khooyp@cs.umd.edu>
1673
1674 * infrun.c (normal_stop): Don't skip calling the normal_stop
1675 observers if the thread was doing a multi-step, but stopped for
1676 some reason other than stepping.
1677
1678 2012-01-05 Pedro Alves <alves.ped@gmail.com>
1679
1680 * cli/cli-decode.h: Add comments.
1681 (CMD_LIST_AMBIGUOUS): Moved to command.h
1682 (add_cmd, add_alias_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
1683 (set_cmd_cfunc, set_cmd_sfunc, set_cmd_completer, cmd_cfunc_eq)
1684 (set_cmd_context, get_cmd_context, lookup_cmd, lookup_cmd_1)
1685 (deprecate_cmd, deprecated_cmd_warning, lookup_cmd_composition)
1686 (add_com, add_com_alias, add_info, add_info_alias)
1687 (complete_on_cmdlist, complete_on_enum, help_list): Remove
1688 declarations.
1689 * command.h: Add and adjust comments.
1690 (CMD_LIST_AMBIGUOUS): Moved here.
1691 (help_cmd, help_cmd_list): Delete declarations.
1692
1693 2012-01-04 Doug Evans <dje@google.com>
1694
1695 * dwarf2read.c (dwarf2_read_abbrevs): Delete arg "abfd".
1696 All callers updated.
1697 (load_full_type_unit): Renamed from read_signatured_type_at_offset.
1698 Replace all arguments with "per_cu". All callers updated.
1699
1700 * dwarf2read.c (dwarf2_per_cu_data): Remove outdated comment.
1701
1702 * dwarf2read.c (init_one_comp_unit): Delete arg "objfile".
1703 New arg "per_cu". All callers updated.
1704
1705 Delete #if 0'd out code.
1706 * language.c (binop_result_type): Delete.
1707 (simple_type, ordered_type, same_type, integral_type): Delete.
1708 (numeric_type, character_type, string_type, boolean_type): Delete.
1709 (float_type, structured_type): Delete.
1710 * language.h: Update.
1711
1712 2012-01-04 Tom Tromey <tromey@redhat.com>
1713
1714 * python/py-value.c (valpy_binop): Initialize 'res_val'.
1715
1716 2012-01-04 Joel Brobecker <brobecker@adacore.com>
1717
1718 * corefile.c (close_exec_file): Delete.
1719 (reopen_exec_file): Remove commented out code that seems related
1720 to close_exec_file, which is being deleted here.
1721 * inferior.h (close_exec_file): Delete.
1722 * fork-child.c (fork_inferior): Remove call to fork_inferior.
1723
1724 2012-01-04 Joel Brobecker <brobecker@adacore.com>
1725
1726 * ada-lang.c: #include "cli/cli-utils.h".
1727 (get_selections): Use skip_spaces.
1728 (ada_get_next_arg): Use skip_spaces and skip_to_space.
1729 (catch_ada_exception_command_split): Use skip_spaces.
1730 (ada_decode_assert_location): Likewise.
1731
1732 2012-01-04 Joel Brobecker <brobecker@adacore.com>
1733
1734 * linespec.c (decode_line_internal): Check for C++ or Java
1735 compound constructs only if the current language is C, C++
1736 or Java.
1737
1738 2012-01-04 Jan Kratochvil <jan.kratochvil@redhat.com>
1739
1740 Revert:
1741 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1742 Joel Brobecker <brobecker@adacore.com>
1743 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
1744 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
1745 3 times.
1746 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
1747 fall through into AT_ENTRY_POINT.
1748 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
1749 DUMMY_ADDR with it.
1750 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
1751 PPC_INSN_SIZE skip to 3 times.
1752
1753 2012-01-04 Joel Brobecker <brobecker@adacore.com>
1754
1755 * linespec.c (add_minsym): Preserve function descriptors.
1756
1757 2012-01-04 Ulrich Weigand <uweigand@de.ibm.com>
1758
1759 * breakpoint.c (all_locations_are_pending): Consider locations
1760 in program spaces executing during startup pending as well.
1761
1762 2012-01-04 Joel Brobecker <brobecker@adacore.com>
1763
1764 Copyright year update in most files of the GDB Project.
1765
1766 2012-01-04 Joel Brobecker <brobecker@adacore.com>
1767
1768 * copyright.sh: Delete.
1769 * copyright.py: Rewrite.
1770
1771 2012-01-04 Joel Brobecker <brobecker@adacore.com>
1772
1773 * gnulib/extra/update-copyright: New file, imported from gnulib.
1774
1775 2012-01-04 Joel Brobecker <brobecker@adacore.com>
1776
1777 * README (Copyright and License Notices): New section.
1778
1779 2012-01-03 Tom Tromey <tromey@redhat.com>
1780
1781 PR python/12533:
1782 * python/py-value.c (valpy_dereference, valpy_get_address
1783 valpy_get_dynamic_type, valpy_lazy_string, valpy_do_cast)
1784 (valpy_getitem, valpy_call, valpy_binop, valpy_negative)
1785 (valpy_absolute, valpy_richcompare): Free intermediate values.
1786
1787 2011-01-03 Joel Brobecker <brobecker@adacore.com>
1788
1789 * ada-lang.c: Reformat the copyright notice.
1790
1791 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1792
1793 * Makefile.in (ALL_TARGET_OBS): Remove solib-target.o.
1794 * configure.tgt (arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-symbianelf*)
1795 (i[34567]86-*-dicos*, i[34567]86-*-cygwin*, i[34567]86-*-mingw32*)
1796 (x86_64-*-dicos*, x86_64-*-mingw*): Remove solib-target.o.
1797 Revert this part of:
1798 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1799 Build gdb directly from *.o files not using libgdb.a.
1800 * Makefile.in (COMMON_OBS): Remove solib-target.o.
1801
1802 2012-01-02 Joel Brobecker <brobecker@adacore.com>
1803
1804 * gdb/common/gdb_thread_db.h, gdb/dbxread.c, gdb/environ.c,
1805 gdb/gcore.h, gdb/rs6000-tdep.h, gdb/s390-nat.c, gdb/tic6x-tdep.c:
1806 Reformat the copyright header.
1807
1808 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1809
1810 Revert this part of:
1811 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1812 Remove the gdbtui binary.
1813 * gdb.c (main): Remove args.interpreter_p initialization.
1814 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
1815 * main.h (struct captured_main_args): Remove interpreter_p.
1816
1817 2012-01-02 Joel Brobecker <brobecker@adacore.com>
1818
1819 * config/djgpp/fnchange.lst: Add entry for ChangeLog-2011.
1820
1821 2012-01-02 Joel Brobecker <brobecker@adacore.com>
1822
1823 * top.c (print_gdb_version): Update copyright year.
1824
1825 2012-01-02 Yao Qi <yao@codesourcery.com>
1826
1827 * inf-ptrace.c (inf_ptrace_xfer_partial): Reindent.
1828
1829 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1830 Joel Brobecker <brobecker@adacore.com>
1831
1832 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
1833 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
1834 3 times.
1835 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
1836 fall through into AT_ENTRY_POINT.
1837 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
1838 DUMMY_ADDR with it.
1839 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
1840 PPC_INSN_SIZE skip to 3 times.
1841
1842 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1843
1844 * amd64-linux-nat.c (update_debug_registers_callback): New comment on
1845 the return value.
1846 * i386-linux-nat.c (update_debug_registers_callback): Likewise.
1847
1848 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1849
1850 Build gdb directly from *.o files not using libgdb.a.
1851 * Makefile.in (SUBDIR_TUI_OBS): Remove duplicate tui.o.
1852 (COMMON_OBS): Remove solib-target.o.
1853 (LIBGDB_OBS, libgdb.a): Move it before the gdb$(EXEEXT) rule.
1854 (gdb$(EXEEXT)): Replace libgdb.a with $(LIBGDB_OBS).
1855 (LIBGDB_OBS, libgdb.a): Move it above.
1856 * configure.tgt (alpha*-*-linux*, alpha*-*-freebsd*)
1857 (alpha*-*-kfreebsd*-gnu, alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu)
1858 (alpha*-*-openbsd*, am33_2.0*-*-linux*, arm*-wince-pe)
1859 (arm*-*-mingw32ce*, arm*-*-linux*, arm*-*-netbsd*, arm*-*-knetbsd*-gnu)
1860 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-linux*)
1861 (hppa*-*-netbsd*, hppa*-*-openbsd*, i[34567]86-*-darwin*)
1862 (i[34567]86-*-dicos*, i[34567]86-*-freebsd*, i[34567]86-*-kfreebsd*-gnu)
1863 (i[34567]86-*-netbsd*, i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*)
1864 (i[34567]86-*-nto*, i[34567]86-*-solaris2.1[0-9]*)
1865 (x86_64-*-solaris2.1[0-9]*, i[34567]86-*-solaris*, i[34567]86-*-linux*)
1866 (i[34567]86-*-gnu*, ia64-*-linux*, m32r*-*-linux*, m68*-*-linux*)
1867 (m68*-*-netbsd*, m68*-*-knetbsd*-gnu, m68*-*-openbsd*)
1868 (microblaze*-linux-*, microblaze*-*-linux*, mips*-sgi-irix5*)
1869 (mips*-sgi-irix6*, mips*-*-linux*, mips*-*-netbsd*)
1870 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
1871 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-aix*, rs6000-*-*)
1872 (powerpc-*-linux*, powerpc64-*-linux*, powerpc*-*-*, s390*-*-*)
1873 (sh*-*-linux*, sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
1874 (sparc-*-linux*, sparc64-*-linux*, sparc*-*-freebsd*)
1875 (sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*, sparc-*-knetbsd*-gnu)
1876 (sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu, sparc-*-openbsd*)
1877 (sparc64-*-openbsd*, sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*)
1878 (sparc-*-solaris2*, sparcv9-*-solaris2*, sparc64-*-solaris2*)
1879 (vax-*-netbsd*, vax-*-knetbsd*-gnu, x86_64-*-darwin*, x86_64-*-dicos*)
1880 (x86_64-*-linux*, x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu)
1881 (x86_64-*-netbsd*, x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*)
1882 (xtensa*-*-linux*, xtensa*): Remove solib.o from gdb_target_obs.
1883
1884 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1885
1886 Remove the gdbtui binary.
1887 * .gitignore (/gdbtui): Remove.
1888 * Makefile.in (TUI): Remove.
1889 (SUBDIR_TUI_OBS): Remove tui-main.o.
1890 (SUBDIR_TUI_SRCS): Remove tui/tui-main.c.
1891 (all-tui, install-tui, uninstall-tui, $(TUI)$(EXEEXT), clean-tui)
1892 (tui-main.o): Remove.
1893 (all_object_files): Remove tui-main.o.
1894 * NEWS: New note for the gdbtui removal.
1895 * configure: Rebuilt.
1896 * configure.ac: No longer add all-tui, clean-tui, install-tui and
1897 uninstall-tui to CONFIG_ALL, CONFIG_CLEAN, CONFIG_INSTALL and
1898 CONFIG_UNINSTALL respectively.
1899 * gdb.c (main): Remove args.interpreter_p initialization.
1900 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
1901 * main.h (struct captured_main_args): Remove interpreter_p.
1902 * tui/tui-main.c: Remove.
1903
1904 2012-01-01 Doug Evans <dje@google.com>
1905
1906 * dwarf2read.c (dwarf2_compute_name): Simplify objfile references.
1907 (dwarf2_physname, read_import_statement): Ditto.
1908 (read_call_site_scope, dwarf2_record_block_ranges): Ditto.
1909 (process_structure_scope read_subroutine_type): Ditto.
1910 (read_typedef, load_partial_dies, read_partial_die): Ditto.
1911 (find_partial_die, dwarf_decode_lines, lookup_die_type): Ditto.
1912 (dwarf2_fetch_die_location_block): Ditto.
1913 (dwarf_decode_macros, dwarf2_symbol_mark_computed): Ditto.
1914
1915 * dwarf2read.c (read_signatured_type): Delete `objfile' arg.
1916 All callers updated.
1917 (load_full_comp_unit, queue_comp_unit, process_queue): Ditto.
1918 (dw2_do_instantiate_symtab, dw2_instantiate_symtab): Ditto.
1919 (process_psymtab_comp_unit, load_partial_comp_unit): Ditto.
1920
1921 * dwarf2read.c (load_cu): Move assert to more useful location.
1922
1923 * dwarf2read.c (free_heap_comp_unit): Renamed from free_one_comp_unit.
1924 All callers updated.
1925
1926 * dwarf2read.c (dwarf2_per_objfile): Add comment.
1927 (dwarf2_elf_names): Minor reformat.
1928 (dwarf2_per_cu_data): Tweak comment.
1929 (dwarf2_read_section): Fix comment.
1930 (create_all_comp_units): Fix comment.
1931 (load_full_comp_unit): Fix comment.
1932 (process_full_comp_unit): Fix comment.
1933 (read_signatured_type): Fix comment.
1934
1935 For older changes see ChangeLog-2011.
1936 \f
1937 Local Variables:
1938 mode: change-log
1939 left-margin: 8
1940 fill-column: 74
1941 version-control: never
1942 coding: utf-8
1943 End:
This page took 0.07001 seconds and 4 git commands to generate.