Add missing _() marker in error message.
[binutils-gdb.git] / gdb / ChangeLog
1 2010-12-23 Joel Brobecker <brobecker@adacore.com>
2
3 * mi/mi-main.c (mi_cmd_remove_inferior): Use _() marker for error
4 message. Change spelling of "can not" into "cannot".
5
6 2010-12-23 Yao Qi <yao@codesourcery.com>
7
8 * arm-tdep.c (arm_gdbarch_init): Remove invoke to
9 set_gdbarch_deprecated_fp_regnum.
10
11 2010-12-22 Marc Khouzam <marc.khouzam@ericsson.com>
12
13 * inferior.c (remove_inferior_command): Don't remove an active inferior.
14 * mi/mi-main.c (mi_cmd_remove_inferior): Ditto.
15
16 2010-12-21 Tom Tromey <tromey@redhat.com>
17
18 * thread.c (print_thread_info): Make a ui-out table in CLI mode.
19
20 2010-12-20 Yao Qi <yao@codesourcery.com>
21
22 * arm-tdep.c (arm_register_reggroup_p): New.
23 (arm_gdbarch_init): Set arm_register_reggroup_p for hook
24 register_reggroup_p.
25
26 2010-12-20 Yao Qi <yao@codesourcery.com>
27
28 * features/arm-core.xml: Add attribute type to reg from r0 to r12.
29 * features/arm-with-iwmmxt.c: Regenerate.
30 * features/arm-with-neon.c: Regenerate.
31 * features/arm-with-vfpv2.c: Regenerate.
32 * features/arm-with-vfpv3.c: Regenerate.
33
34 2010-12-17 Marc Khouzam <marc.khouzam@ericsson.com>
35
36 * mi/mi-main.c (mi_cmd_remove_inferior): Don't delete current inferior.
37 (get_other_inferior): New.
38
39 2010-12-17 Marc Khouzam <marc.khouzam@ericsson.com>
40
41 * python/py-progspace.c (py_free_pspace): Obtain arch another
42 way to avoid dereferencing a null pointer.
43
44 2010-12-17 Michael Snyder <msnyder@vmware.com>
45
46 * utils.c (do_my_cleanups): Comment fix-up.
47
48 2010-12-17 Kevin Buettner <kevinb@redhat.com>
49
50 * mips-tdep.c (make_mips16_addr): New function.
51 (mips_elf_make_msymbol_special): Don't set the low bit in the
52 symbol's address.
53 (mips_read_pc, mips_unwind_pc, mips_addr_bits_remove): Strip bit
54 indicating mips16 address, if present.
55 (mips_write_pc): Set bit indicating mips16 address when in a mips16
56 function.
57 (mips_eabi_push_dummy_call, mips_o64_push_dummy_call): Likewise,
58 but for each function pointer argument to inferior function call.
59
60 2010-12-17 Tom Tromey <tromey@redhat.com>
61
62 * psympriv.h (struct partial_symtab) <readin>: Move field
63 earlier.
64
65 2010-12-16 Kevin Buettner <kevinb@redhat.com>
66
67 * mips-tdep.c (mips_convert_register_float_case_p)
68 (mips_convert_register_gpreg_case_p): New functions.
69 (mips_convert_register_p): Invoke new functions above.
70 (mips_register_to_value): Add case for fetching value shorter
71 than 64 bits from a 64-bit register.
72 (mips_value_to_register): Add case for storing value shorter
73 than 64 bits into a 64-bit register.
74
75 2010-12-16 Joel Borggrén-Franck <joel.borggren.franck@gmail.com>
76
77 * python/py-value.c (value_object_type) <tp_flags>: Add
78 Py_TPFLAGS_BASETYPE.
79
80 2010-12-16 Mike Frysinger <vapier@gentoo.org>
81
82 * NEWS: Mention new sim --map-info flag.
83
84 2010-12-15 Doug Evans <dje@google.com>
85
86 * dwarf2read.c (_initialize_dwarf2_read): Fix help text of
87 "save gdb-index" command.
88
89 2010-12-15 Tom Tromey <tromey@redhat.com>
90
91 * infrun.c (save_infcall_control_state): Handle the
92 exception-resume breakpoint.
93 (restore_infcall_control_state): Likewise.
94 (discard_infcall_control_state): Likewise.
95
96 2010-12-15 Kevin Buettner <kevinb@redhat.com>
97
98 * mips-tdep.c (mips_pseudo_register_write): Sign extend 32-bit
99 cooked values that are being transferred to 64-bit raw registers.
100 (mips_pseudo_register_read): Revise to preserve symmetry with
101 mips_pseudo_register_write().
102
103 2010-12-15 Greg Watson <g.watson@computer.org>
104
105 * f-exp.y (yylex): Check entire token against keywords.
106
107 2010-12-15 Doug Evans <dje@google.com>
108
109 Rename "maint set python auto-load" to "set auto-load-scripts".
110 * NEWS: Mention it.
111 * python/py-auto-load.c (auto_load_scripts): Renamed from
112 gdbpy_auto_load.
113 (load_auto_scripts_for_objfile): Update.
114 (gdbpy_initialize_auto_load): Rename "maint set python auto-load" to
115 "set auto-load-scripts".
116
117 2010-12-14 Kevin Buettner <kevinb@redhat.com>
118
119 * mips-tdep.c (mips_eabi_push_dummy_call): Place signed, rather
120 than unsigned, values in registers.
121
122 2010-12-14 Ken Werner <ken.werner@de.ibm.com>
123
124 * valops.c (value_one): Use get_array_bounds to compute the number
125 of array elements instead of dividing the length of the array by the
126 length of the element types.
127 * valarith.c (value_complement, value_neg): Likewise.
128
129 2010-12-14 Joel Brobecker <brobecker@adacore.com>
130
131 * irix5-nat.c: Replace fp_r, fp_regs and fp_scr by __fp_r, __fp_regs
132 and __fp_scr respectively throughout.
133 * configure.ac: Compile with -Dsiginfo=__siginfo if building with
134 Python using GCC on IRIX.
135 * configure: Regenerate.
136
137 2010-12-13 Kevin Buettner <kevinb@redhat.com>
138
139 * solib-svr4.c (enable_break): Don't attempt to place breakpoints,
140 when attaching, on the names in bkpt_names: _start, __start, and
141 main.
142
143 2010-12-12 Stan Shebs <stan@codesourcery.com>
144
145 * value.c (value_of_internalvar): Add case for trace state
146 variables.
147
148 2010-12-12 Doug Evans <dje@google.com>
149
150 * dwarf2read.c (dwarf2_per_objfile): New member quick_file_names_table.
151 (dwarf2_per_cu_quick_data): Move definition down to "quick functions"
152 section. Delete members lines full_names. Rename read_lines to
153 no_file_data.
154 (quick_file_names): New struct.
155 (hash_file_name_entry, eq_file_name_entry): New functions.
156 (delete_file_name_entry, create_quick_file_names_table): New functions.
157 (dwarf2_read_index): Initialize quick_file_names_table.
158 (dw2_get_file_names): Renamed from dw2_require_line_header.
159 Return pointer to quick_file_names entry. All callers updated.
160 (dw2_get_real_path): Renamed from dw2_require_full_path.
161 Replace per_cu arg with pointer to quick_file_names entry.
162 All callers updated.
163 (dw2_free_cached_file_names): New function.
164 (dw2_forget_cached_source_info): Call it (via htab_traverse_noresize).
165 (dwarf2_initialize_objfile): Initialize quick_file_names_table in
166 the OBJF_READNOW case.
167 (dwarf2_free_objfile): Rewrite freeing of quick file names tables.
168
169 2010-12-12 Mark Kettenis <kettenis@gnu.org>
170
171 * mips64obsd-tdep.c (floatformats_mips64_quad): New define.
172 (mips64obsd_init_abi): Set long_double_bit and long_double_format.
173
174 2010-12-12 Mark Kettenis <kettenis@gnu.org>
175
176 * sparc-tdep.c: Fix typo in comment.
177
178 2010-12-10 Doug Evans <dje@google.com>
179
180 * dwarf2read.c: Whitespace cleanup, plus comment additions.
181 No code changes.
182
183 2010-12-10 Tom Tromey <tromey@redhat.com>
184
185 * NEWS: Document exception-handling change.
186
187 2010-12-09 Marc Khouzam <marc.khouzam@ericsson.com>
188
189 * mi/mi-parse.c (mi_parse): Wrong error message.
190
191 2010-12-09 Doug Evans <dje@google.com>
192
193 * symfile.h (quick_symbol_functions): Clarify usage of
194 map_symbol_filenames.
195
196 2010-12-09 Tom Tromey <tromey@redhat.com>
197
198 * mi/mi-parse.h (mi_parse): Update.
199 * mi/mi-parse.c (mi_parse_cleanup): New function.
200 (mi_parse): Add 'token' argument. Throw exception on error.
201 * mi/mi-main.c (mi_print_exception): New function.
202 (mi_execute_command): Use mi_print_exception. Catch exceptions
203 from mi_parse.
204
205 2010-12-09 Tom Tromey <tromey@redhat.com>
206
207 PR c++/9593:
208 * thread.c (clear_thread_inferior_resources): Call
209 delete_longjmp_breakpoint.
210 * infrun.c (handle_inferior_event): Handle exception breakpoints.
211 (handle_inferior_event): Likewise.
212 (insert_exception_resume_breakpoint): New function.
213 (check_exception_resume): Likewise.
214 * inferior.h (delete_longjmp_breakpoint_cleanup): Declare.
215 * infcmd.c (delete_longjmp_breakpoint_cleanup): No longer static.
216 (step_1): Set thread's initiating frame.
217 (until_next_continuation): New function.
218 (until_next_command): Support exception breakpoints.
219 (finish_command_continuation): Delete longjmp breakpoint.
220 (finish_forward): Support exception breakpoints.
221 * gdbthread.h (struct thread_info) <initiating_frame>: New field.
222 * breakpoint.h (enum bptype) <bp_exception, bp_exception_resume,
223 bp_exception_master>: New constants.
224 (struct bpstat_what) <is_longjmp>: New field.
225 (set_longjmp_breakpoint): Update.
226 * breakpoint.c (create_exception_master_breakpoint): New function.
227 (update_breakpoints_after_exec): Handle bp_exception_master. Call
228 create_exception_master_breakpoint.
229 (print_it_typical): Handle bp_exception_master, bp_exception.
230 (bpstat_stop_status): Handle bp_exception_master.
231 (bpstat_what): Handle bp_exception_master, bp_exception,
232 bp_exception_resume.
233 (bptype_string): Likewise.
234 (print_one_breakpoint_location): Likewise.
235 (allocate_bp_location): Likewise.
236 (set_longjmp_breakpoint): Handle exception breakpoints. Change
237 interface.
238 (delete_longjmp_breakpoint): Handle exception breakpoints.
239 (mention): Likewise.
240 (struct until_break_command_continuation_args) <thread_num>: New
241 field.
242 (until_break_command_continuation): Call
243 delete_longjmp_breakpoint.
244 (until_break_command): Support exception breakpoints.
245 (delete_command): Likewise.
246 (breakpoint_re_set_one): Likewise.
247 (breakpoint_re_set): Likewise.
248
249 2010-12-08 Doug Evans <dje@google.com>
250
251 * gdbtypes.h (TYPE_IS_OPAQUE): Reformat.
252
253 * gdbtypes.c (check_typedef): Tweak comment.
254
255 PR symtab/12302
256 * dwarf2read.c (struct psymtab_cu_index_map): New struct.
257 (hash_psymtab_cu_index, eq_psymtab_cu_index): New functions.
258 (struct addrmap_index_data): New struct.
259 (add_address_entry): Remove arg `pst', new args `start', `end'.
260 (add_address_entry_worker, write_address_map): New functions.
261 (write_psymtabs_to_index): Address table generation moved to
262 write_address_map. Build a table mapping psymtab to CU index
263 to pass to it.
264
265 * dwarf2read.c (write_psymtabs_to_index): When stat fails, pass file
266 name to perror.
267
268 * symfile.h (quick_symbol_functions): Clarify usage of
269 expand_symtabs_with_filename.
270 * dwarf2read.c (dw2_expand_symtabs_with_filename): Only iterate over
271 comp units, ignore type units.
272
273 * dwarf2read.c (dw2_expand_symtabs_with_filename): Use FILENAME_CMP.
274
275 2010-12-07 Doug Evans <dje@google.com>
276
277 * dwarf2read.c (dw2_lookup_symtab): Remove duplicate call to
278 gdb_realpath.
279
280 PR python/12227
281 * NEWS: Mention -data-directory.
282 * main.c (captured_main): Recognize -data-directory.
283
284 2010-12-06 Marc Khouzam <marc.khouzam@ericsson.com>
285
286 * mi/mi-parse.c (mi_parse): Missing else.
287
288 2010-12-04 Masaki Muranaka <monaka@monami-software.com>
289
290 * configure.tgt: Accept microblaze*-*-linux* for linux target
291 and microblaze*-*-* for as target.
292
293 2010-12-02 Keith Seitz <keiths@redhat.com>
294
295 * linespec.c (find_method): Move name canonicalization outside
296 the loop.
297 Be paranoid and use a cleanup.
298
299 2010-12-01 Doug Evans <dje@google.com>
300
301 * dwarf2read.c (save_gdb_index_command): Add comment.
302
303 2010-12-01 Ulrich Weigand <uweigand@de.ibm.com>
304
305 * valops.c (value_assign): Returned value is never lazy. If a
306 C++ class type is returned, fix incorrect enclosing type / embedded
307 offset. If internal variable is returned, allocate new internalvar
308 value using value_of_internalvar.
309
310 * NEWS: Document changes in behavior of "print x = 0" and similar
311 expressions.
312
313 2010-11-29 Doug Evans <dje@google.com>
314
315 * python/lib/gdb/printing.py (register_pretty_printer): Change
316 printer-name:subprinter-name to printer-name;subprinter-name.
317 * python/lib/gdb/command/pretty_printers.py (parse_printer_regexps):
318 Ditto.
319 (InfoPrettyPrinter, EnablePrettyPrinter, DisablePrettyPrinter): Ditto.
320
321 2010-11-29 Tom Tromey <tromey@redhat.com>
322
323 * opencl-lang.c (lval_func_check_synthetic_pointer): New
324 function.
325 * value.h (struct lval_funcs) <indirect, check_synthetic_pointer>:
326 New fields.
327 (value_bits_synthetic_pointer): Declare.
328 * value.c (value_bits_synthetic_pointer): New function.
329 * valprint.c (valprint_check_validity): Handle synthetic
330 pointers.
331 * valops.c (value_ind): Use new 'indirect' lval_funcs method.
332 * valarith.c (value_ptradd): Use set_value_component_location.
333 * p-valprint.c (pascal_object_print_value_fields): Handle
334 synthetic pointers.
335 * jv-valprint.c (java_print_value_fields): Handle synthetic
336 pointers.
337 * dwarf2read.c (dwarf_stack_op_name): Add
338 DW_OP_GNU_implicit_pointer.
339 (dwarf2_fetch_die_location_block): Add get_frame_pc, baton
340 arguments. Handle location lists.
341 (fill_in_loclist_baton): New function.
342 (dwarf2_symbol_mark_computed): Use it.
343 * dwarf2loc.h (dwarf2_find_location_expression): Declare.
344 (dwarf2_fetch_die_location_block): Add get_frame_pc, baton
345 arguments.
346 * dwarf2loc.c (dwarf2_find_location_expression): Rename from
347 find_location_expression. No longer static. Update all callers.
348 (dwarf_expr_frame_pc): New function.
349 (per_cu_dwarf_call): Add get_frame_pc, baton arguments. Update
350 all callers.
351 (struct piece_closure) <per_cu>: New field.
352 (allocate_piece_closure): Add per_cu argument.
353 (read_pieced_value): Handle DWARF_VALUE_IMPLICIT_POINTER.
354 (check_pieced_value_bits): Remove validity argument, add check_for
355 argument. Handle DWARF_VALUE_IMPLICIT_POINTER.
356 (check_pieced_value_validity, check_pieced_value_invalid):
357 Update.
358 (check_pieced_synthetic_pointer): New function.
359 (get_frame_address_in_block_wrapper): New function.
360 (indirect_pieced_value): New function.
361 (pieced_value_funcs): Update.
362 (invalid_synthetic_pointer): New function.
363 (dwarf2_evaluate_loc_desc_full): Rename from
364 dwarf2_evaluate_loc_desc. Add byte_offset argument.
365 (dwarf2_evaluate_loc_desc): Rewrite.
366 (dwarf2_loc_desc_needs_frame): Set new field on context.
367 (get_ax_pc): New function.
368 (disassemble_dwarf_expression): Handle
369 DW_OP_GNU_implicit_pointer.
370 * dwarf2expr.h (enum dwarf_value_location)
371 <DWARF_VALUE_IMPLICIT_POINTER>: New constant.
372 (struct dwarf_expr_context) <get_frame_pc>: New field.
373 (struct dwarf_expr_piece) <v.ptr>: New field.
374 * dwarf2expr.c (add_piece): Handle DWARF_VALUE_IMPLICIT_POINTER.
375 (execute_stack_op): Handle DW_OP_GNU_implicit_pointer.
376 * dwarf2-frame.c (no_get_frame_pc): New function.
377 (execute_stack_op): Set new field on context.
378 * cp-valprint.c (cp_print_value_fields): Handle synthetic
379 pointers.
380
381 2010-11-29 Phil Muldoon <pmuldoon@redhat.com>
382
383 PR python/12199
384
385 * python/py-breakpoint.c (bppy_delete_breakpoint): New function.
386
387 2010-11-28 Jan Kratochvil <jan.kratochvil@redhat.com>
388
389 Fix step_resume_breakpoint unsaved during an infcall.
390 * gdbthread.h (struct thread_control_state): Move here field
391 step_resume_breakpoint ...
392 (struct thread_info): ... from here.
393 * infrun.c (save_infcall_control_state): Reset
394 control.step_resume_breakpoint to NULL.
395 (restore_infcall_control_state, discard_infcall_control_state): Delete
396 control.step_resume_breakpoint.
397 * arm-linux-tdep.c, infrun.c, thread.c: Update all the references to
398 the moved field.
399
400 2010-11-28 Jan Kratochvil <jan.kratochvil@redhat.com>
401
402 Rename and move inferior_thread_state and inferior_status.
403 * gdbthread.h (struct thread_control_state): New struct, move fields
404 step_range_start, step_range_end, step_frame_id, step_stack_frame_id,
405 trap_expected, proceed_to_finish, in_infcall, step_over_calls,
406 stop_step and stop_bpstat here from struct thread_info.
407 (struct thread_suspend_state): New struct, move field stop_signal here
408 from struct thread_info.
409 (struct thread_info): Move the fields above from this struct.
410 * inferior.h: Move the inferior_thread_state and inferior_status
411 declarations comment to their definitions at infrun.c.
412 (struct inferior_control_state): New struct, move field stop_soon from
413 struct inferior here.
414 (struct inferior_suspend_state): New empty struct.
415 (struct inferior): New fields control and suspend. Move out field
416 stop_soon.
417 * infrun.c (struct inferior_thread_state): Rename to ...
418 (infcall_suspend_state): ... here. Replace field stop_signal by
419 fields thread_suspend and inferior_suspend.
420 (save_inferior_thread_state): Rename to ...
421 (save_infcall_suspend_state): ... here. New variable inf. Update the
422 code for new fields.
423 (restore_inferior_thread_state): Rename to ...
424 (restore_infcall_suspend_state): ... here. New variable inf. Update
425 the code for new fields.
426 (do_restore_inferior_thread_state_cleanup): Rename to ...
427 (do_restore_infcall_suspend_state_cleanup): ... here.
428 (make_cleanup_restore_inferior_thread_state): Rename to ...
429 (make_cleanup_restore_infcall_suspend_state): ... here.
430 (discard_inferior_thread_state): Rename to ...
431 (discard_infcall_suspend_state): ... here.
432 (get_inferior_thread_state_regcache): Rename to ...
433 (get_infcall_suspend_state_regcache): ... here.
434 (struct inferior_status): Rename to ...
435 (struct infcall_control_state): ... here. Replace fields
436 step_range_start, step_range_end, step_frame_id, step_stack_frame_id,
437 trap_expected, proceed_to_finish, in_infcall, step_over_calls,
438 stop_step, stop_bpstat and stop_soon by fields thread_control and
439 inferior_control.
440 (save_inferior_status): Rename to ...
441 (save_infcall_control_state): ... here. Update the code for new
442 fields.
443 (restore_inferior_status): Rename to ...
444 (restore_infcall_control_state): ... here. Update the code for new
445 fields.
446 (do_restore_inferior_status_cleanup): Rename to ...
447 (do_restore_infcall_control_state_cleanup): ... here.
448 (make_cleanup_restore_inferior_status): Rename to ...
449 (make_cleanup_restore_infcall_control_state): ... here.
450 (discard_inferior_status): Rename to ...
451 (discard_infcall_control_state): ... here.
452 * alpha-tdep.c, breakpoint.c, dummy-frame.c, dummy-frame.h,
453 exceptions.c, fbsd-nat.c, gdbthread.h, infcall.c, infcmd.c,
454 inferior.c, inferior.h, infrun.c, linux-nat.c, mi/mi-interp.c,
455 mips-tdep.c, procfs.c, solib-irix.c, solib-osf.c, solib-spu.c,
456 solib-sunos.c, solib-svr4.c, thread.c, windows-nat.c: Update all the
457 references to the moved fields and renamed functions.
458
459 2010-11-26 Jan Kratochvil <jan.kratochvil@redhat.com>
460
461 * infcall.c (struct inferior_thread_state) <siginfo_gdbarch>: Fix up
462 the comment.
463 (save_inferior_thread_state): Reset tp->stop_signal.
464
465 2010-11-26 Jan Kratochvil <jan.kratochvil@redhat.com>
466
467 * infcall.c (call_function_by_hand): Remove variable
468 caller_state_cleanup.
469
470 2010-11-25 Marc Khouzam <marc.khouzam@ericsson.com>
471
472 PR breakpoints/12217
473
474 * breakpoint.c (is_marker_spec): Check for NULL.
475
476 2010-11-25 Pedro Alves <pedro@codesourcery.com>
477
478 * breakpoint.h: No longer include python.h or python-internal.h.
479 (struct breakpoint_object): Forward declare.
480 * defs.h (PyObject) [!HAVE_PYTHON]: Don't define.
481 * varobj.c (PyObject) [!HAVE_PYTHON]: Define.
482 * python/py-breakpoint.c (build_bp_list): Cast py_bp_object to
483 PyObject pointer.
484 (gdbpy_breakpoint_created): Remove casts around py_bp_object
485 accesses.
486
487 2010-11-24 Joel Brobecker <brobecker@adacore.com>
488
489 * rs6000-tdep.c (bfd_uses_spe_extensions): Use bfd_elf_get_obj_attr_int
490 only if HAVE_ELF is defined.
491
492 2010-11-24 Jan Kratochvil <jan.kratochvil@redhat.com>
493
494 Code cleanup.
495 * infrun.c (struct inferior_status) <stepping_over_breakpoint>
496 (save_inferior_status) <stepping_over_breakpoint>
497 (restore_inferior_status) <stepping_over_breakpoint>: Rename to
498 trap_expected.
499 (struct inferior_status) <step_resume_break_address>: Remove.
500
501 2010-11-24 Jan Kratochvil <jan.kratochvil@redhat.com>
502
503 Code cleanup.
504 * infrun.c (struct inferior_status, save_inferior_status)
505 (restore_inferior_status): Group and reorder the fields, comment their
506 groups.
507
508 2010-11-24 Jan Kratochvil <jan.kratochvil@redhat.com>
509
510 Code cleanup.
511 * dictionary.c
512 (struct dict_vector) <iter_match_first, iter_match_next>
513 (iter_match_first_hashed, iter_match_next_hashed)
514 (iter_match_first_linear, iter_match_next_linear)
515 (dict_iter_match_first, dict_iter_match_next, iter_match_first_hashed)
516 (iter_match_next_hashed, iter_match_first_linear)
517 (iter_match_next_linear): Use symbol_compare_ftype.
518 * dictionary.h: Include symfile.h.
519 (dict_iter_match_first, dict_iter_match_next): Use
520 symbol_compare_ftype.
521 * dwarf2read.c (dw2_map_matching_symbols): Likewise.
522 * psymtab.c (match_partial_symbol, match_partial_symbol, map_block)
523 (map_matching_symbols_psymtab): Likewise.
524 * symfile.h (symbol_compare_ftype): New typedef.
525 (struct quick_symbol_functions) <map_matching_symbols): Use
526 symbol_compare_ftype.
527
528 2010-11-23 Tom Tromey <tromey@redhat.com>
529
530 * configure: Rebuild.
531 * configure.ac (READLINE_TEXI_INCFLAG): New subst.
532
533 2010-11-19 Tom Tromey <tromey@redhat.com>
534
535 * Makefile.in (SUBDIRS): Add doc.
536 * configure: Rebuild.
537 * configure.ac: Don't configure in doc. Create doc/Makefile.
538
539 2010-11-23 Phil Muldoon <pmuldoon@redhat.com>
540
541 PR python/12212
542
543 * python/py-inferior.c (find_thread_object): Check if PIDGET
544 returns 0.
545
546 010-11-22 Joel Brobecker <brobecker@adacore.com>
547
548 * ada-lang.c (ada_template_to_fixed_record_type_1): Delete bit_incr.
549
550 2010-11-22 Joel Brobecker <brobecker@adacore.com>
551
552 * ada-lang.c (ada_to_fixed_type): Expand function documentation.
553 Return the original type if the main type portions match rather
554 than when the type themselves match.
555
556 2010-11-22 Joel Brobecker <brobecker@adacore.com>
557
558 * ada-lang.c (ada_template_to_fixed_record_type_1):
559 For dynamic fields, check the field size against the maximum
560 object size.
561
562 2010-11-22 Joel Brobecker <brobecker@adacore.com>
563
564 * mips-irix-tdep.c (mips_irix_n32_stack_tramp_frame_init): New
565 function.
566 (mips_irix_n32_stack_tramp_frame): New static global.
567 (mips_irix_init_abi): Add mips_irix_n32_stack_tramp_frame to
568 list of unwinder.
569
570 2010-11-22 Jerome Guitton <guitton@adacore.com>
571
572 * ada-tasks.c (get_tcb_types_info): Use C lookups to get
573 ATCB symbols.
574
575 2010-11-22 Joel Brobecker <brobecker@adacore.com>
576
577 * ada-lang.c (ada_check_typedef): Call ada_check_typedef only
578 if type1 is a typedef.
579
580 2010-11-22 Joel Brobecker <brobecker@adacore.com>
581
582 * ada-lang.h (ADA_KNOWN_AUXILIARY_FUNCTION_NAME_PATTERNS): Add
583 "_finalizer" to the list.
584
585 2010-11-22 Joel Brobecker <brobecker@adacore.com>
586
587 * symfile.c: Remove all "#if 0"/"#endif" blocks.
588
589 2010-11-22 Joel Brobecker <brobecker@adacore.com>
590
591 * symfile.c: Add missing second space after period in various comments.
592
593 2010-11-22 Joel Brobecker <brobecker@adacore.com>
594
595 * ada-typeprint.c (print_array_type): Fix formatting in comment.
596 (print_selected_record_field_types): Fix formatting in function
597 documentation.
598
599 2010-11-22 Joel Brobecker <brobecker@adacore.com>
600
601 * ravenscar-thread.c (_initialize_ravenscar): Fix copy/paste typo
602 in name of "show ravenscar" prefix command name.
603
604 2010-11-22 Joel Brobecker <brobecker@adacore.com>
605
606 * ravenscar-thread.c (show_ravenscar_task_switching_command):
607 Add missing '\n' in output.
608
609 2010-11-22 Joel Brobecker <brobecker@adacore.com>
610
611 * ravenscar-thread.c (running_thread_name): Change value.
612 (read_thread_id): Remove advance declaration.
613 (get_running_thread_msymbol): New function.
614 (has_ravenscar_runtime): Use get_running_thread_msymbol to
615 compute msym_running_thread.
616 (get_running_thread_id): Renames read_thread_id. Slight modifications
617 to not take any argument anymore, using get_running_thread_msymbol
618 to determine which symbol to use instead.
619 (ravenscar_running_thread): Use get_running_thread_id instead of
620 read_thread_id.
621
622 2010-11-22 Joel Brobecker <brobecker@adacore.com>
623
624 * ravenscar-sparc-thread.c (supply_register_at_address):
625 Fix passing of buf in call to regcache_raw_supply.
626
627 2010-11-22 Jan Kratochvil <jan.kratochvil@redhat.com>
628
629 * dwarf2read.c (dwarf2_read_index): Ignore higher .gdb_index versions.
630
631 2010-11-22 Tom Tromey <tromey@redhat.com>
632
633 * Makefile.in (.PRECIOUS): Reference ada-lex.c.
634
635 2010-11-19 Keith Seitz <keiths@redhat.com>
636
637 * data-directory/Makefile.in (SYSCALLS_INSTALL_DIR):
638 Remove extraneous '/' after $(DESTDIR).
639 (PYTHON_INSTALL_DIR): Likewise.
640
641 2010-11-19 Jan Kratochvil <jan.kratochvil@redhat.com>
642
643 Fix stale memory references.
644 * elfread.c (elf_symfile_read): Replace xmalloc by bfd_alloc, drop
645 xfree, new comment.
646
647 2010-11-19 Jan Kratochvil <jan.kratochvil@redhat.com>
648 Tom Tromey <tromey@redhat.com>
649
650 * Makefile.in (.y.c): Directly create $@ from YLWRAP.
651 (.PHONY): Remove for .y outputs.
652
653 2010-11-19 Will Drewry <wad@google.com>
654 Tavis Ormandy <taviso@google.com>
655 Jan Kratochvil <jan.kratochvil@redhat.com>
656
657 * dwarf2read.c (decode_locdesc): Enforce location description stack
658 boundaries.
659
660 2010-11-18 Pierre Muller <muller@ics.u-strasbg.fr>
661
662 * arm-tdep.c (arm_in_function_epilogue_p): Fix code when "MOV SP"
663 instruction is found.
664
665 2010-11-17 Tom Tromey <tromey@redhat.com>
666
667 * value.c (value_entirely_optimized_out): Check the
668 'check_any_valid' field.
669
670 2010-11-16 Jan Kratochvil <jan.kratochvil@redhat.com>
671
672 * ada-lang.c (modify_general_field): Remove.
673 (make_array_descriptor): Replace all modify_general_field calls by
674 modify_field.
675 * value.c (modify_field): Update comment. New variable bytesize.
676 Normalize BITPOS. Initialize BYTESIZE, use it.
677
678 2010-11-16 Jan Kratochvil <jan.kratochvil@redhat.com>
679
680 * dwarf2read.c (dw2_forget_cached_source_info): Clear the FULL_NAMES
681 elements after xfree.
682
683 2010-11-16 Tom Tromey <tromey@redhat.com>
684
685 * gdb-add-index.sh: Really remove.
686
687 2010-11-16 Jan Kratochvil <jan.kratochvil@redhat.com>
688
689 Code cleanup.
690 * dwarf2read.c (alloc_one_comp_unit): Rename prototype to ...
691 (init_one_comp_unit): ... this one.
692 (prepare_one_comp_unit): New prototype.
693 (dw2_require_line_header, process_psymtab_comp_unit): Use
694 init_one_comp_unit.
695 (process_psymtab_comp_unit): Use prepare_one_comp_unit.
696 (load_partial_comp_unit): Remove variable attr. Use
697 init_one_comp_unit with xmalloc. Use prepare_one_comp_unit.
698 (load_full_comp_unit): Use init_one_comp_unit with xmalloc. Use
699 prepare_one_comp_unit.
700 (read_signatured_type): Remove variable attr. Use init_one_comp_unit.
701 Use prepare_one_comp_unit.
702 (alloc_one_comp_unit): Rename to ...
703 (init_one_comp_unit): ... here and remove there calloc, new parameter
704 cu.
705 (prepare_one_comp_unit): New function.
706
707 2010-11-14 Pierre Muller <muller@ics.u-strasbg.fr>
708
709 * arm-tdep.c (arm_in_function_epilogue_p): Fix code to avoid
710 possible used of uninitialized variable.
711
712 2010-11-12 Nathan Froyd <froydnj@codesourcery.com>
713
714 * rs6000-tdep.c (bfd_uses_spe_extensions): New function.
715 (rs6000_gdbarch_init): Call it.
716
717 2010-11-12 Nathan Froyd <froydnj@codesourcery.com>
718
719 * rs6000-tdep.c (gdb_print_insn_powerpc): Disassemble e500
720 instructions if debugging an E500 binary.
721
722 2010-11-12 Tom Tromey <tromey@redhat.com>
723
724 * varobj.c (value_get_print_value): Rearrange. Pass stream to
725 apply_varobj_pretty_printer.
726 * c-lang.c: Include exceptions.h.
727 (c_get_string): Throw MEMORY_ERROR when appropriate.
728 * python/py-prettyprint.c (enum string_repr_result): New.
729 (print_stack_unless_memory_error): New function.
730 (print_string_repr): Change return type. Use
731 print_stack_unless_memory_error.
732 (print_children): Use print_stack_unless_memory_error.
733 (apply_val_pretty_printer): Update. Don't print children if
734 string representation threw an exception.
735 (apply_varobj_pretty_printer): Add 'stream' argument. Use
736 print_stack_unless_memory_error.
737 * python/python.c (gdbpy_gdb_error, gdbpy_gdb_memory_error): New
738 globals.
739 (_initialize_python): Initialize them.
740 * python/python-internal.h (GDB_PY_HANDLE_EXCEPTION): Use
741 gdbpy_convert_exception.
742 (GDB_PY_SET_HANDLE_EXCEPTION): Likewise.
743 (gdbpy_gdb_error, gdbpy_gdb_memory_error): Declare.
744 (gdbpy_convert_exception): Declare.
745 (apply_varobj_pretty_printer): Update.
746 * python/py-utils.c (gdbpy_convert_exception): New function.
747
748 2010-11-12 Marc Khouzam <marc.khouzam@ericsson.com>
749
750 * mi/mi-main.c (mi_cmd_target_detach): Accept new
751 thread-group id format.
752
753 2010-11-12 Jan Kratochvil <jan.kratochvil@redhat.com>
754
755 * spu-tdep.c (spu_catch_start): Fix compilation error typo.
756
757 2010-11-11 Phil Muldoon <pmuldoon@redhat.com>
758
759 * python/py-breakpoint.c (BPPY_REQUIRE_VALID): Check if bp is
760 NULL.
761 (BPPY_SET_REQUIRE_VALID): Ditto.
762 (bpnum_is_valid): Delete function.
763 (bppy_get_visibility): New function.
764 (bppy_new): Parse for, and validate internal keyword. Pass
765 internal keyword to breakpoint or watchpoint functions.
766 (build_bp_list): New function.
767 (gdbpy_breakpoints): Rewrite. Use build_bp_list and
768 iterate_over_breakpoints.
769 (gdbpy_breakpoint_created): Rewrite. Do not store breakpoints in a
770 look-aside vector.
771 (gdbpy_breakpoint_deleted): Rewrite, defer breakpoint management
772 to internal breakpoint chain.
773
774 * breakpoint.c (set_breakpoint_number): New function.
775 (breakpoint_1): Check if breakpoint number is more than zero.
776 (set_raw_breakpoint_without_location): Set py_bp_object to NULL.
777 (create_breakpoint_sal): Take a new parameter called internal.
778 Call set_breakpoint_number with internal parameter. Do not
779 mention internal breakpoints. All callers updated.
780 (create_breakpoint): Ditto.
781 (create_breakpoints_sal): Ditto.
782 (watch_command_1): Ditto.
783 (watch_command_wrapper): Take a new parameter called internal.
784 All callers updated.
785 (rwatch_command_wrapper): Ditto.
786 (awatch_command_wrapper): Ditto.
787 (save_breakpoints): Update breakpoint save condition check.
788 (iterate_over_breakpoints): New function.
789 * breakpoint.h: Add conditional python includes. Add py_bp_object
790 and comment to struct breakpoint. Update all callers.
791 * defs.h: Add PyObject definition for GDB builds without Python.
792
793 2010-11-10 Doug Evans <dje@google.com>
794
795 * python/lib/gdb/command/pretty_printers.py
796 (do_enable_pretty_printer_1): Handle printer.subprinters is None.
797
798 * value.c (set_value_enclosing_type): Renamed from
799 value_change_enclosing_type. All callers updated.
800 * value.h (set_value_enclosing_type): Update.
801 * valops.c (value_full_object): Always return a copy if we need to
802 make changes to the input value.
803
804 2010-11-09 Pedro Alves <pedro@codesourcery.com>
805
806 * breakpoint.c (watch_command_1): Get a pointer of the lazy
807 version of the expression's value, even if reading the value from
808 memory fails. When creating a -location watchpoint, get the
809 value's address from the lazy value pointer.
810
811 2010-11-07 Jan Kratochvil <jan.kratochvil@redhat.com>
812
813 * infrun.c (restore_inferior_thread_state): Use
814 discard_inferior_thread_state to free the data.
815 (discard_inferior_thread_state): xfree also siginfo_data.
816
817 2010-11-05 Doug Evans <dje@google.com>
818
819 Make gdb.parameter("directories") work.
820 New command "set directories".
821 * NEWS: Document them.
822 * source.c (set_directories_command): New function.
823 (show_directories_1): Renamed from show_directories.
824 All callers updated.
825 (show_directories_command): New function.
826 (_initialize_source): Install "directories" as a set/show
827 variable instead of just a show command.
828
829 2010-11-05 Ken Werner <ken.werner@de.ibm.com>
830
831 * NEWS: Mention OpenCL C language support.
832 * Makefile.in (SFILES): Add opencl-lang.c.
833 (COMMON_OBS): Add opencl-lang.o.
834 * opencl-lang.c: New File
835 * defs.h (enum language): Add language_opencl.
836 * dwarf2read.c (read_file_scope): Handle DW_AT_producer for the
837 IBM XL C OpenCL compiler.
838 * c-lang.h: Include "parser-defs.h".
839 (evaluate_subexp_c): Declare.
840 * c-lang.c (evaluate_subexp_c): Remove the static qualifier.
841 (c_op_print_tab): Add declaration.
842 * eval.c (binop_promote): Handle language_opencl.
843 * c-exp.y: Lookup the primitive types instead of referring to the
844 builtins.
845
846 2010-11-05 Jan Kratochvil <jan.kratochvil@redhat.com>
847
848 Fix configure --enable-plugins --without-python.
849 * configure.ac (for ELF support in BFD) <"$plugins" = "yes">: New.
850 * configure: Regenerate.
851
852 2010-11-05 Jan Kratochvil <jan.kratochvil@redhat.com>
853
854 * solib.c (solib_read_symbols): Call exception_fprintf even without
855 FROM_TTY. Print also so->so_name.
856
857 2010-11-04 Sami Wagiaalla <swagiaal@redhat.com>
858
859 * gdbtypes.h (struct rank): Created subrank.
860 * gdbtypes.c: Initialized subrank for all
861 'BADNESS' constants.
862 (distance_to_ancestor): New function.
863 (is_ancestor): Use distance_to_ancestor.
864 (is_public_ancestor): Ditto.
865 (sum_ranks): Handle subrank.
866 (compare_ranks): Ditto.
867 (rank_one_type): Subrank base conversions.
868
869 2010-11-04 Sami Wagiaalla <swagiaal@redhat.com>
870
871 * gdbtypes.h: Create struct rank.
872 Convert all 'BADNESS' macros to const struct rank declarations.
873 (sum_ranks): New function.
874 (compare_ranks): New function.
875 * valops.c (find_oload_champ): Updated.
876 (classify_oload_match): Use compare_ranks.
877 Improved comments.
878 (compare_parameters): Use compare_ranks.
879 * gdbtypes.c: Initialize 'BADNESS' constants.
880 (sum_ranks): New function.
881 (compare_ranks): New function.
882 (compare_badness): Use compare_ranks.
883 (rank_function): Use global constants instead of literals.
884 (rank_one_type): Ditto.
885 Return struct rank.
886 Use sum_ranks.
887
888 2010-11-04 Doug Evans <dje@google.com>
889
890 * python/py-prettyprint.c (find_pretty_printer_from_gdb): Fix comment.
891 (find_pretty_printer): Fix comments.
892
893 2010-11-04 Hui Zhu <teawater@gmail.com>
894
895 * tracepoint.c (remote_trace_set_readonly_regions): Change lma to vma.
896
897 2010-11-03 Joel Brobecker <brobecker@adacore.com>
898
899 * ada-valprint.c (ada_val_print_array): Move variables `eltlen'
900 and `len' declaration and computation inside block where they
901 are being used.
902
903 2010-11-03 Joel Brobecker <brobecker@adacore.com>
904
905 * valprint.c (val_print_array_elements): Put back handling of
906 empty arrays.
907
908 2010-11-03 Ken Werner <ken.werner@de.ibm.com>
909
910 * dwarf2read.c (read_array_type): Read the DW_AT_byte_size from the
911 DIE and set the length of the type.
912 * gdbtypes.h (get_array_bounds): Move here from valprint.h.
913 * gdbtypes.c (get_array_bounds): Move here from valprint.c and
914 return 0 if the corresponding bounds of the type are undefined.
915 * valprint.h (get_array_bounds): Move declaration to gdbtypes.h.
916 * valprint.c (get_array_bounds): Move implementation to gdbtypes.c.
917 (val_print_array_elements): Use get_array_bounds to compute the number
918 of array elements instead of dividing the length of the array by the
919 length of the element types.
920 * valarith.c (vector_binop): Likewise.
921 * valops.c (value_cast): Likewise.
922 * c-valprint.c (c_val_print): Likewise.
923 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
924
925 2010-11-03 Ken Werner <ken.werner@de.ibm.com>
926
927 * valarith.c (value_pos, value_neg, value_complement): Handle
928 vector types.
929 * valops.c (value_one): Likewise.
930
931 2010-11-03 Ken Werner <ken.werner@de.ibm.com>
932
933 * value.h (value_non_lval): Declare.
934 * value.c (value_non_lval): New function.
935 * eval.c (evaluate_subexp_standard) <UNOP_POSTINCREMENT,
936 UNOP_POSTDECREMENT>: Call value_non_lval to ensure to return a
937 non-lvalue.
938
939 2010-11-02 Doug Evans <dje@google.com>
940
941 New python module gdb.printing, and new commands info pretty-printer,
942 enable pretty-printer, disable pretty-printer.
943 * NEWS: Mention them.
944 * data-directory/Makefile.in (PYTHON_FILES): Add gdb/printing.py,
945 gdb/command/__init__.py, gdb/command/pretty_printers.py.
946 * python/lib/gdb/__init__.py: Install pretty-printer commands.
947 * python/lib/gdb/printing.py: New file.
948 * python/lib/gdb/command/__init__.py: New file.
949 * python/lib/gdb/command/pretty_printers.py: New file.
950
951 2010-11-02 Tom Tromey <tromey@redhat.com>
952
953 * NEWS: Mention Guile removal.
954 * defs.h (enum language) <language_scm>: Remove.
955 * Makefile.in (SFILES): Remove scm-exp.c, scm-lang.c,
956 scm-valprint.c.
957 (HFILES_NO_SRCDIR): Remove scm-lang.h, scm-tags.h.
958 (COMMON_OBS): Remove scm-exp.o, scm-lang.o, scm-valprint.o.
959 * scm-exp.c, scm-lang.c, scm-valprint.c, scm-lang.h, scm-tags.h:
960 Remove.
961
962 2010-11-02 Doug Evans <dje@google.com>
963
964 * top.c: #include "python/python.h".
965 (gdb_init): Add a comment regarding initialize_all_files.
966 Call finish_python_initialization at the end.
967 * python/python.h (finish_python_initialization): Declare.
968 * python/python.c (finish_python_initialization): New function.
969 (_initialize_python): Move python-implemented initialization there
970 and call it.
971 (GdbMethods): Use #ifdef HAVE_PYTHON for consistency.
972
973 2010-11-02 Jan Kratochvil <jan.kratochvil@redhat.com>
974
975 Revert:
976 2010-10-17 Jan Kratochvil <jan.kratochvil@redhat.com>
977 Pedro Alves <pedro@codesourcery.com>
978 * gdbthread.h (currently_stepping): New declaration.
979 * infrun.c (currently_stepping): Remove the forward declaration.
980 (currently_stepping): Make it global.
981 * linux-nat.c (resume_callback) <lp->stopped && lp->status == 0>: New
982 variables tp and step, initialized them. Pass STEP to to_resume.
983 Print also possibly "PTRACE_SINGLESTEP" if STEP. Initialize LP->STEP.
984 * remote.c (currently_stepping_callback): New.
985 (remote_vcont_resume)
986 <ptid_equal (ptid, minus_one_ptid) || ptid_is_pid (ptid)>:
987 New variable tp. Call currently_stepping_callback and step such
988 thread.
989
990 2010-11-01 Hui Zhu <teawater@gmail.com>
991
992 * tracepoint.c (tfile_xfer_partial): Change lma to vma.
993
994 2010-10-28 Hui Zhu <teawater@gmail.com>
995
996 * tracepoint.c (trace_save): Change utp->actions to
997 utp->step_actions.
998
999 2010-10-26 Joel Brobecker <brobecker@adacore.com>
1000
1001 * (_FILE_OFFSET_BITS): Fix typo in comment.
1002
1003 2010-10-26 Joel Brobecker <brobecker@adacore.com>
1004
1005 * python/python-internal.h (_FILE_OFFSET_BITS): Undefine.
1006 (PyEval_InitThreads): Remove duplicate. Define as nothing.
1007 (PyEval_ReleaseLock): Define as nothing.
1008
1009 2010-10-26 Joel Brobecker <brobecker@adacore.com>
1010
1011 * dwarf2read.c (psymtab_include_file_name): Replace call to strcmp
1012 by call to FILENAME_CMP.
1013
1014 2010-10-26 Joel Brobecker <brobecker@adacore.com>
1015
1016 * dictionary.c (dict_hash): Move assignment out of if condition.
1017
1018 2010-10-22 Jie Zhang <jie@codesourcery.com>
1019
1020 * Makefile.in (install): Remove dependency of install-only and
1021 recursively invoke make for install-only.
1022 * data-directory/Makefile.in: Add FLAGS_TO_PASS variable.
1023 (install): Pass FLAGS_TO_PASS when recursively make install-only.
1024
1025 2010-10-20 Hui Zhu <teawater@gmail.com>
1026
1027 * tracepoint.c (tfile_get_traceframe_address): Call
1028 extract_signed_integer.
1029 (tfile_trace_find): Call extract_signed_integer and
1030 extract_unsigned_integer. Change data_size to unsigned int.
1031 (tfile_fetch_registers): Call extract_unsigned_integer.
1032 (tfile_xfer_partial): Ditto.
1033 (tfile_get_trace_state_variable_value): Call
1034 extract_signed_integer and extract_unsigned_integer.
1035
1036 2010-10-20 Vladimir Prus <vladimir@codesourcery.com>
1037
1038 * remote.c (remote_get_threadlist): If we got empty
1039 response, bail out immediately, and don't emit any
1040 warnings.
1041
1042 2010-10-19 Ulrich Weigand <uweigand@de.ibm.com>
1043
1044 * arm-tdep.c (thumb_get_next_pc_raw): Handle Thumb-16 encoding
1045 for "mov pc, REG" as well.
1046 (thumb_instruction_changes_pc): Likewise.
1047
1048 2010-10-19 Sami Wagiaalla <swagiaal@redhat.com>
1049
1050 PR C++/11500:
1051 * valarith.c (value_x_unop): Handle STRUCTOP_PTR.
1052 * eval.c (evaluate_subexp_standard): Check for overload of
1053 'operator->'.
1054 * valarith.c (value_x_binop): Throw NOT_FOUND_ERROR.
1055 (value_x_unop): Ditto.
1056 * valops.c: Include "exceptions.h".
1057 (find_overload_match): Throw NOT_FOUND_ERROR.
1058 (value_struct_elt): Ditto.
1059
1060 2010-10-19 Tom Tromey <tromey@redhat.com>
1061
1062 * python/py-cmd.c (cmdpy_function): Unreference exception state.
1063
1064 2010-10-19 Sami Wagiaalla <swagiaal@redhat.com>
1065
1066 * gdbtypes.h: Introduce BOOL_PTR_CONVERSION_BADNESS.
1067 * gdbtypes.c (rank_one_type): Use BOOL_PTR_CONVERSION_BADNESS
1068 for conversion.
1069 Make all other conversions illegal.
1070
1071 2010-10-18 Doug Evans <dje@google.com>
1072
1073 * c-typeprint.c (c_type_print_base, case TYPE_CODE_TYPEDEF): Verify
1074 assumptions of when this case happens. Print "<unnamed typedef>".
1075
1076 2010-10-18 Tom Tromey <tromey@redhat.com>
1077
1078 * valprint.c (val_print_string): Pass 'encoding' to
1079 LA_PRINT_STRING.
1080
1081 2010-10-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1082
1083 Fix the `stopped language detection' testcase for gcc-4.5.
1084 * dwarf2read.c (read_partial_die): Set also LANGUAGE_OF_MAIN.
1085 * symfile.c (set_initial_language): Move variable filename to a more
1086 inner block. Prefer LANGUAGE_OF_MAIN.
1087 * symtab.c (language_of_main): New variable.
1088 (set_main_name): Always reset LANGUAGE_OF_MAIN.
1089 * symtab.h (language_of_main): New declaration.
1090
1091 2010-10-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1092 Pedro Alves <pedro@codesourcery.com>
1093
1094 * gdbthread.h (currently_stepping): New declaration.
1095 * infrun.c (currently_stepping): Remove the forward declaration.
1096 (currently_stepping): Make it global.
1097 * linux-nat.c (resume_callback) <lp->stopped && lp->status == 0>: New
1098 variables tp and step, initialized them. Pass STEP to to_resume.
1099 Print also possibly "PTRACE_SINGLESTEP" if STEP. Initialize LP->STEP.
1100 * remote.c (currently_stepping_callback): New.
1101 (remote_vcont_resume)
1102 <ptid_equal (ptid, minus_one_ptid) || ptid_is_pid (ptid)>:
1103 New variable tp. Call currently_stepping_callback and step such
1104 thread.
1105
1106 2010-10-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1107
1108 * infrun.c (follow_exec): Replace symbol_file_add_main by
1109 symbol_file_add with SYMFILE_DEFER_BP_RESET, set_initial_language and
1110 breakpoint_re_set.
1111 * m32r-rom.c (m32r_load, m32r_upload_command): Use parameter 0 for
1112 clear_symtab_users.
1113 * objfiles.c (free_all_objfiles): Likewise.
1114 * remote-m32r-sdi.c (m32r_load): Likewise.
1115 * solib-som.c (som_solib_create_inferior_hook): Likewise.
1116 * symfile.c (new_symfile_objfile): New comment for add_flags. Call
1117 clear_symtab_users with ADD_FLAGS.
1118 (reread_symbols): Use parameter 0 for clear_symtab_users.
1119 (clear_symtab_users): New parameter add_flags. Do not call
1120 breakpoint_re_set if SYMFILE_DEFER_BP_RESET.
1121 (clear_symtab_users_cleanup): Use parameter 0 for clear_symtab_users.
1122 * symtab.h (clear_symtab_users): New parameter add_flags.
1123
1124 2010-10-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1125
1126 Fix GCC false warning.
1127 * varobj.c (value_get_print_value) <str_addr>: Initialize it.
1128
1129 2010-10-16 Pierre Muller <muller@ics.u-strasbg.fr>
1130
1131 * p-typeprint.c (pascal_type_print_method_args): Fix problem in
1132 display of type of method arguments.
1133
1134 2010-10-15 Tom Tromey <tromey@redhat.com>
1135
1136 PR python/11948:
1137 * varobj.c (value_get_print_value): Use val_print_string to print
1138 lazy strings.
1139 * python/py-prettyprint.c (print_string_repr): Use
1140 val_print_string to print lazy strings. Fix cleanup logic.
1141 (print_children): Likewise.
1142 * python/python-internal.h (gdbpy_extract_lazy_string): Update.
1143 * python/py-lazy-string.c (gdbpy_extract_lazy_string): Rewrite.
1144 Change return type to 'void', add 'addr' argument.
1145 * value.h (val_print_string): Update.
1146 * valprint.c (val_print_string): Add 'encoding' argument.
1147 * printcmd.c (print_formatted): Update.
1148 * p-valprint.c (pascal_val_print): Update.
1149 * m2-valprint.c (print_unpacked_pointer): Update.
1150 (m2_print_array_contents): Likewise.
1151 * jv-valprint.c (java_value_print): Update.
1152 * f-valprint.c (f_val_print): Update.
1153 * c-valprint.c (c_val_print): Update.
1154 * auxv.c (fprint_target_auxv): Update.
1155
1156 2010-10-15 Doug Evans <dje@google.com>
1157 Jan Kratochvil <jan.kratochvil@redhat.com>
1158
1159 PR exp/12117
1160 * gdbtypes.c (check_typedef): Clean up function comment.
1161 Keep track of instance flags as we strip typedefs and create a new
1162 type to preserve them if necessary.
1163 * gdbtypes.h (type) <instance_flags>: Extend the comment.
1164
1165 2010-10-15 Pierre Muller <muller@ics.u-strasbg.fr>
1166
1167 * p-lang.c (is_pascal_string_type): Use TYPE_FIELD_NAME accessor.
1168
1169 2010-10-14 Sami Wagiaalla <swagiaal@redhat.com>
1170
1171 * gdbtypes.h: Create BASE_PTR_CONVERSION_BADNESS.
1172 * gdbtypes.c (rank_one_type): Move type comparison code out of here
1173 to...
1174 (types_equal): ...here. And changed it as follows:
1175 Outside of typedefs type must be of the same TYPE_CODE.
1176 When compairing two pointers or references they are equal if their
1177 targets are equal.
1178 Correct pointer conversions.
1179
1180 2010-10-14 Pierre Muller <muller@ics.u-strasbg.fr>
1181
1182 * p-lang.c (is_pascal_string_type): Avoid crashes on structures
1183 having fields without names.
1184
1185 2010-10-13 Tom Tromey <tromey@redhat.com>
1186
1187 * language.h (LA_PRINT_ARRAY_INDEX): Fix argument name.
1188
1189 2010-10-13 Doug Evans <dje@google.com>
1190
1191 New python module gdb.types.
1192 * NEWS: Document it.
1193 * data-directory/Makefile.in (PYTHON_FILES): Add gdb/types.py.
1194 * python/lib/gdb/types.py: New file.
1195
1196 * c-typeprint.c: Whitespace cleanup.
1197 (cp_type_print_method_args): Remove unnecessary forward decl.
1198 (cp_type_print_derivation_info): Ditto.
1199 (c_type_print_varspec_prefix): Mark as static at definition.
1200 (c_type_print_modifier): Fix arg descriptions.
1201
1202 2010-10-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1203
1204 * python/py-breakpoint.c (bppy_set_condition): New comment.
1205 * python/py-cmd.c (cmdpy_function): Call also gdbpy_print_stack for
1206 failed PyUnicode_Decode.
1207 (cmdpy_completer): Skip element for failed
1208 python_string_to_host_string.
1209 (cmdpy_init): Return -1 on failed python_string_to_host_string.
1210 * python/py-frame.c (frapy_read_var): Extend the function comment.
1211 * python/py-function.c (fnpy_init): Return -1 on failed
1212 python_string_to_host_string.
1213 * python/py-inferior.c (infpy_read_memory, infpy_write_memory): Extend
1214 the function comment.
1215 (infpy_search_memory): Extend the function comment. Remove the
1216 PyErr_SetString call on already set error state.
1217 * python/py-param.c (set_parameter_value): Extend the function
1218 comment. Return -1 on failed python_string_to_host_string, twice.
1219 (set_attr): Extend the function comment.
1220 (compute_enum_values): Extend the function comment. New variable
1221 back_to. Protect self->enumeration by BACK_TO cleanups. Return 0 on
1222 failed python_string_to_host_string.
1223 (get_doc_string): Call gdbpy_print_stack on failed
1224 python_string_to_host_string.
1225 (parmpy_init): Extend the function comment.
1226 * python/py-prettyprint.c (pretty_print_one_value): Likewise.
1227 (gdbpy_get_display_hint, print_children): Call gdbpy_print_stack on
1228 failed python_string_to_host_string.
1229 * python/py-value.c (valpy_new, valpy_getitem, valpy_call)
1230 (valpy_binop, valpy_richcompare): Extend the function comment.
1231 * python/python.c
1232 (struct python_env) <error_type, error_value, error_traceback>: New
1233 fields.
1234 (restore_python_env): Handle PyErr_Occurred. Call PyErr_Restore.
1235 (ensure_python_env): Call PyErr_Fetch.
1236 * varobj.c (update_dynamic_varobj_children): Call gdbpy_print_stack on
1237 failed convert_value_from_python.
1238 (value_get_print_value): Call gdbpy_print_stack on failed
1239 python_string_to_target_python_string.
1240
1241 2010-10-12 Tom Tromey <tromey@redhat.com>
1242
1243 * python/py-prettyprint.c (search_pp_list): Fix error checking.
1244
1245 2010-10-12 Sami Wagiaalla <swagiaal@redhat.com>
1246
1247 * gdbtypes.c (do_is_ancestor): New function.
1248 (is_ancestor): Use do_is_ancestor.
1249 (is_public_ancestor): Use do_is_ancestor.
1250
1251 2010-10-12 Pierre Muller <muller@ics.u-strasbg.fr>
1252
1253 * ser-go32.c (struct dos_ops): Add missing fdopen field.
1254
1255 2010-10-12 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
1256
1257 * arm-tdep.c (arm_mode_strings): Add NULL entry at end of array.
1258
1259 2010-10-11 Doug Evans <dje@google.com>
1260
1261 * c-typeprint.c (c_type_print_modifier): Add note that this prints
1262 the address space id too.
1263
1264 2010-10-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1265
1266 Fix attaching to re-prelinked executables on ppc64.
1267 * solib-svr4.c (svr4_exec_displacement): New variable plt2_asect,
1268 initialize it, try to adjust FILESZ field by it.
1269
1270 2010-10-08 Daniel Jacobowitz <dan@codesourcery.com>
1271
1272 * tracepoint.c (merge_uploaded_trace_state_variables): Only print
1273 messages if info_verbose.
1274
1275 2010-10-08 Ken Werner <ken.werner@de.ibm.com>
1276
1277 * valops.c (value_cast): Handle vector types.
1278 * valarith.c (value_binop): Widen scalar to vector if appropriate.
1279
1280 2010-10-08 Ulrich Weigand <uweigand@de.ibm.com>
1281
1282 * arm-tdep.c (thumb_expand_immediate): New function.
1283 (thumb_instruction_changes_pc): Likewise.
1284 (thumb2_instruction_changes_pc): Likewise.
1285 (thumb_analyze_prologue): Handle 32-bit Thumb instructions during
1286 prologue parsing. Improved support for optimized code.
1287 (thumb_scan_prologue): Do not reply on line-number information,
1288 use same heuristics as arm_scan_prologue insead.
1289 (skip_prologue_function): Accept functions
1290 "__tls_get_addr" and "__aeabi_read_tp".
1291
1292 2010-10-08 Ulrich Weigand <uweigand@de.ibm.com>
1293 Daniel Jacobowitz <dan@codesourcery.com>
1294
1295 * arm-tdep.c (thumb_in_function_epilogue_p)
1296 (arm_in_function_epilogue_p): New.
1297 (arm_gdbarch_init): Install arm_in_function_epilogue_p as
1298 gdbarch_in_function_epilogue_p callback.
1299
1300 2010-10-07 Doug Evans <dje@google.com>
1301
1302 * cc-with-index.sh (output_file): Default to a.out.
1303
1304 * dwarf2read.c (mapped_index): Rename member index_table to
1305 symbol_table and index_table_slots to symbol_table_slots.
1306 All uses updated.
1307 (create_symbol_hash_table): Renamed from create_index_table.
1308 All callers updated.
1309 (add_indices_to_cpool): Rename arg index_table to symbol_hash_table.
1310 (write_hash_table): Rename local index_table to symbol_hash_table.
1311
1312 * addrmap.h (addrmap_foreach_fn): New typedef.
1313 (addrmap_foreach): Declare.
1314 * addrmap.c (struct addrmap_funcs): New member foreach.
1315 (addrmap_foreach): New function.
1316 (addrmap_fixed_foreach): New function.
1317 (addrmap_fixed_funcs): Update.
1318 (struct mutable_foreach_data): New struct.
1319 (addrmap_mutable_foreach_worker): New function.
1320 (addrmap_mutable_foreach): New function.
1321 (addrmap_mutable_funcs): Update.
1322
1323 2010-10-07 Paul Hilfinger <hilfinger@adacore.com>
1324
1325 * dictionary.c (dict_hash): Revert to msymbol_hash_iw in
1326 more cases.
1327
1328 2010-10-07 Paul Hilfinger <hilfinger@adacore.com>
1329
1330 * ada-lang.c (full_match): Declare.
1331 (ada_match_name): Rename to match_name (we should avoid prefixing static
1332 symbols with "ada_").
1333 (match_name): New name for ada_match_name.
1334 (struct ada_psym_data): Remove and replace with...
1335 (struct match_data): User data for map_matching_symbols.
1336 (ada_add_psyms): Remove.
1337 (aux_add_nonlocal_symbols): New function, used as callback for
1338 map_matching_symbols.
1339 (compare_names): Ordering function adopted from strcmp_iw for Ada-encoded
1340 symbols.
1341 (ada_add_non_local_symbols): Rename to add_nonlocal_symbols.
1342 (add_nonlocal_symbols): Renamed from ada_add_non_local_symbols.
1343 Rework to use map_matching_symbols instead of map_ada_symtabs.
1344 (ada_lookup_symbol_list): Use add_nonlocal_symbols.
1345 * psymtab.c: Include dependency on dictionary.h.
1346 (match_partial_symbol): New function.
1347 (ada_lookup_partial_symbol): Remove.
1348 (map_block): New function, auxiliary to map_matching_symbols_psymtab.
1349 (map_matching_symbols_psymtab): New function.
1350 (psym_functions): Replace map_ada_symtabs with map_matching_symbols_psymtab.
1351 * symfile.h: Replace map_ada_symtabs definition with map_matching_symbols.
1352
1353 2010-10-06 Paul Hilfinger <hilfinger@adacore.com>
1354
1355 * ada-lang.c (ada_match_name): Use new API for wild_match.
1356 (wild_match): Change API to be consistent with that of strcmp_iw;
1357 return 0 for a match, and switch operand order.
1358 (full_match): New function.
1359 (ada_add_block_symbols): Use dict_iter_match_{first,next} for
1360 matching to allow use of hashing.
1361 * dictionary.c (struct dict_vector): Generalize iter_name_first,
1362 iter_name_next ot iter_match_first, iter_match_next.
1363 (iter_name_first_hashed): Replace with iter_match_first_hashed.
1364 (iter_name_next_hashed): Replace with iter_match_next_hashed.
1365 (iter_name_first_linear): Replace with iter_match_first_linear.
1366 (iter_name_next_linear): Replace with iter_match_next_linear.
1367 (dict_iter_name_first): Re-implement to use dict_iter_match_first.
1368 (dict_iter_name_next): Re-implement to use dict_iter_match_next.
1369 (dict_iter_match_first): New function.
1370 (dict_iter_match_next): New function.
1371 (dict_hash): New function.
1372 * dictionary.h (dict_iter_match_first, dict_iter_match_next): Declare.
1373 * psymtab.c (ada_lookup_partial_symbol): Use new wild_match API.
1374
1375 2010-10-06 Doug Evans <dje@google.com>
1376
1377 * data-directory/Makefile.in: Remove @host_makefile_frag@, @frags@.
1378
1379 2010-10-06 Ken Werner <ken.werner@de.ibm.com>
1380
1381 * dwarf2read.c (read_tag_const_type): Handle const arrays.
1382
1383 2010-10-06 Doug Evans <dje@google.com>
1384
1385 * Makefile.in (REQUIRED_SUBDIRS): New var.
1386 (subdir_do): Verify required subdir Makefiles exist.
1387
1388 Create subdir data-directory.
1389 * Makefile.in (XML_SYSCALL_DIR, XML_SYSCALL_FILES): Moved to
1390 data-directory/Makefile.in.
1391 (SUBDIRS): Add data-directory.
1392 (all): Remove xml-syscall-copy dependency.
1393 (xml-syscall-copy): Moved to data-directory/Makefile.in as
1394 stamp-syscalls.
1395 (xml-syscall-install): Moved to data-directory/Makefile.in as
1396 install-syscalls.
1397 (install-only): Remove xml-syscall-install dependency.
1398 (all-data-directory): New rule.
1399 (data-directory/Makefile): New rule.
1400 * configure.ac (AC_OUTPUT): Add data-directory/Makefile.
1401 * configure: Regenerate.
1402 * data-directory/Makefile.in: New file.
1403 * python/lib/gdb/__init__.py: New file.
1404
1405 2010-10-06 Joel Brobecker <brobecker@adacore.com>
1406
1407 Fix ARI warnings in advance_wild_match.
1408 * ada-lang.c (advance_wild_match): Delete local variable t2.
1409 Adjust code accordingly. Minor reformatting.
1410
1411 2010-10-06 Ken Werner <ken.werner@de.ibm.com>
1412
1413 * gdbtypes.h (struct main_type): Remove flag_nottext.
1414 (enum type_flag_value): Remove TYPE_FLAG_NOTTEXT.
1415 (enum type_instance_flag_value): Add TYPE_INSTANCE_FLAG_NOTTEXT.
1416 (TYPE_NOTTEXT): Use TYPE_INSTANCE_FLAG_NOTTEXT instead of flag_nottext.
1417 * gdbtypes.c (make_vector_type): Use TYPE_INSTANCE_FLAG_NOTTEXT instead
1418 of TYPE_FLAG_NOTTEXT.
1419 (init_type): Remove the initialization of the flag_nottext field.
1420 (gdbtypes_post_init): Use TYPE_INSTANCE_FLAG_NOTTEXT instead of
1421 TYPE_FLAG_NOTTEXT.
1422 * c-valprint.c (c_val_print): Remove TYPE_VECTOR check.
1423
1424 2010-10-04 Doug Evans <dje@google.com>
1425
1426 * cc-with-index.sh: New file.
1427
1428 * dwarf2read.c (dw2_do_instantiate_symtab): Insert blank line after
1429 function comment.
1430 (dw2_instantiate_symtab, dw2_get_cu, extract_cu_value): Ditto.
1431 (create_cus_from_index, create_addrmap_from_index): Ditto.
1432 (mapped_index_string_hash, find_slot_in_mapped_hash): Ditto.
1433 (dw2_setup, dw2_require_line_header, dw2_require_full_path): Ditto.
1434 (dw2_do_expand_symtabs_matching): Ditto.
1435 (eq_strtab_entry, create_strtab, add_string): Ditto.
1436 (hash_strtab_entry): Ditto.
1437 (hash_symtab_entry, eq_symtab_entry, delete_symtab_entry): Ditto.
1438 (create_index_table, create_mapped_symtab, find_slot): Ditto.
1439 (hash_expand, add_index_entry, add_indices_to_cpool): Ditto.
1440 (write_hash_table, add_address_entry, write_psymbols): Ditto.
1441 (write_obstack, unlink_if_set, write_one_signatured_type): Ditto.
1442 (write_psymtabs_to_index): Ditto.
1443
1444 2010-10-04 Joel Brobecker <brobecker@adacore.com>
1445
1446 * ada-lang.c: #include "value.h".
1447 (ensure_lval): Delete advance declaration. Remove gdbarch and sp
1448 arguments. Implement using value_allocate_space_in_inferior
1449 instead of allocating memory from the stack.
1450 (make_array_descriptor): Remove gdbarch and sp parameters. Update
1451 calls to ensure_lval.
1452 (ada_convert_actual): Remove gdbarch and sp parameters. Update
1453 calls to make_array_descriptor and ensure_lval.
1454 * ada-lang.h (ada_convert_actual): Update declaration.
1455 * infcall.c (value_arg_coerce): Update call to ada_convert_actual.
1456
1457 2010-10-04 Doug Evans <dje@google.com>
1458
1459 * python/python.c (_initialize_python): Define new function
1460 GdbSetPythonDirectory in python. Use it to update sys.path and
1461 gdb.__path__.
1462
1463 2010-10-03 Paul Hilfinger <hilfinger@adacore.com>
1464
1465 * gdb/ada-typeprint.c (print_selected_record_field_types): New function,
1466 incorporating and generalizing print_record_field_types.
1467 (print_record_field_types): Change return value and update comment.
1468 Re-implement using print_selected_record_field_types.
1469 (print_choices): Print "=>" here.
1470 Handle case of unencoded variant branch.
1471 (print_variant_clauses): Reformat comment.
1472 Special-case unencoded variant branch.
1473
1474 2010-10-03 Paul Hilfinger <hilfinger@adacore.com>
1475
1476 * ada-lang.c (wild_match): Reimplement.
1477 Change API to eliminate unused length argument, reverse arguments and
1478 make 0 the 'true' return value.
1479 (advance_wild_match): New auxiliary function for wild_match to improve
1480 readability.
1481 (ada_match_name, ada_add_block_symbols): Use new API for wild_match.
1482 * psymtab.c (ada_lookup_partial_symbol, map_ada_symtabs): Use new
1483 API for wild_match.
1484 * symfile.h (map_ada_symtabs): Modify declaration to use new API for
1485 wild_match.
1486 * dwarf2read.c (dw2_map_ada_symtabs): Ditto.
1487
1488 2010-10-01 Doug Evans <dje@google.com>
1489
1490 * dwarf2read.c (_initialize_dwarf2_read): Add usage info to help text
1491 for `save gdb-index' command.
1492
1493 2010-10-01 Tom Tromey <tromey@redhat.com>
1494
1495 * symfile.h (allocate_symtab): Update.
1496 * symfile.c (allocate_symtab): Make 'filename' const.
1497 * psymtab.c (add_psymbol_to_bcache): Make 'name' const.
1498 (add_psymbol_to_list): Likewise.
1499 * psympriv.h (struct partial_symtab) <filename, dirname>: Now
1500 const.
1501 (add_psymbol_to_list): Update.
1502 * mdebugread.c (new_symtab): Make 'name' const.
1503 (psymtab_to_symtab_1): Make 'filename' const.
1504 * elfread.c (elfstab_offset_sections): Update.
1505 * dwarf2read.c (dwarf_decode_lines): Make 'comp_dir' const.
1506 (dwarf2_start_subfile): Make 'dirname' and 'comp_dir' const.
1507 (psymtab_include_file_name): Update.
1508 * dbxread.c (find_stab_function_addr): Make 'filename' const.
1509 * buildsym.h (start_subfile): Update.
1510 * buildsym.c (start_subfile): Make arguments const.
1511
1512 2010-09-30 Ali Lakhia <lakhia@alumni.utexas.net>
1513
1514 * fork-child.c (breakup_args): Fix crash if shell forking is
1515 disabled at compile time.
1516
1517 2010-10-01 Joel Brobecker <brobecker@adacore.com>
1518
1519 * ada-lang.c (desc_bounds): Add handling of the case where
1520 the P_BOUNDS field is a pointer to a stub.
1521 (desc_data_target_type): Same for P_ARRAY field.
1522 (ada_check_typedef): Strip the typedef layers from the type
1523 found by ada_find_any_type.
1524
1525 2010-10-01 Joel Brobecker <brobecker@adacore.com>
1526
1527 * sparc-tdep.c (sparc32_frame_align): New function.
1528 (sparc32_gdbarch_init): Set the frame_align gdbarch method.
1529 * sparc64-tdep.c (sparc64_frame_align): New function.
1530 (sparc64_gdbarch_init): Set the frame_align gdbarch method.
1531
1532 2010-09-30 H.J. Lu <hongjiu.lu@intel.com>
1533
1534 * defs.h (MAX_REGISTER_SIZE): Set to 64.
1535
1536 2010-09-30 Tom Tromey <tromey@redhat.com>
1537
1538 * symfile.h (struct sym_fns) <next>: Remove.
1539 (add_symtab_fns): Update.
1540 * symfile.c (sym_fns_ptr): New typedef.
1541 (symtab_fns): Now a VEC.
1542 (add_symtab_fns): Update. Change argument type.
1543 (find_sym_fns): Update. Change return type.
1544 (get_symfile_segment_data): Update.
1545 * objfiles.h (struct objfile) <sf>: Now const.
1546 * somread.c (som_sym_fns): Now const. Update.
1547 * xcoffread.c (xcoff_sym_fns): Now const. Update.
1548 * mipsread.c (ecoff_sym_fns): Now const. Update.
1549 * machoread.c (macho_sym_fns): Now const. Update.
1550 * elfread.c (elf_sym_fns): Now const. Update.
1551 (elf_sym_fns_gdb_index): Likewise.
1552 * dbxread.c (aout_sym_fns): Now const. Update.
1553 * coffread.c (coff_sym_fns): Now const. Update.
1554
1555 2010-09-30 Tom Tromey <tromey@redhat.com>
1556
1557 * value.c (value_primitive_field): Take 'offset' into account for
1558 packed field.
1559
1560 2010-09-30 Tom Tromey <tromey@redhat.com>
1561
1562 * completer.c (count_struct_fields): Handle anonymous structs and
1563 unions.
1564 (add_struct_fields): Likewise.
1565
1566 2010-09-30 Jan Kratochvil <jan.kratochvil@redhat.com>
1567
1568 Fix printing parameters of inlined functions.
1569 * ada-lang.c (is_known_support_routine)
1570 (ada_unhandled_exception_name_addr_from_raise): Provide NULL parameter
1571 for find_frame_funname.
1572 * python/py-frame.c (frapy_name): Likewise.
1573 * stack.c (find_frame_funname): New parameter funcp. Update the
1574 function comment. Fill it in.
1575 (print_frame): New variable func. Initialize it by
1576 find_frame_funname. Print arguments only if FUNC is not NULL. Use
1577 FUNC as the parameter of print_args_stub.
1578 * stack.h (find_frame_funname): New parameter funcp. Remove the
1579 function declaration comment.
1580
1581 2010-09-30 Jan Kratochvil <jan.kratochvil@redhat.com>
1582
1583 PR corefiles/12071.
1584 * inferior.c (have_live_inferiors): New variables old_chain, inf and
1585 tp. Iterate INFERIOR_LIST and call target_has_execution.
1586
1587 2010-09-29 Jan Kratochvil <jan.kratochvil@redhat.com>
1588
1589 Fix GDB crash on inferior calls with self-referencing classes.
1590 * gnu-v3-abi.c (gnuv3_pass_by_reference): Do not call itself on static
1591 member fields.
1592
1593 2010-09-29 Doug Evans <dje@google.com>
1594
1595 Workaround for gcc/45682.
1596 * dwarf2read.c (partial_die_info): New fields fixup_called,
1597 linkage_name.
1598 (guess_partial_die_structure_name): Renamed from guess_structure_name.
1599 Move definition next to use. Use linkage_name to determine if class
1600 is in a namespace. All callers updated.
1601 (fixup_partial_die): Return early if already called.
1602 Set fixup_called when done.
1603 (guess_full_die_structure_name): New function.
1604 (determine_prefix): Call it for class/struct/union dies if c++ and
1605 .debug_types section is present and parent is DW_TAG_compile_unit.
1606
1607 2010-09-28 Joel Brobecker <brobecker@adacore.com>
1608
1609 * configure.tgt (sparc-*-*): Set gdb_sim to ../sim/erc32/libsim.a.
1610 (sparc-*-rtems*): Delete. Now redundant with sparc-*-*.
1611
1612 2010-09-28 Joel Brobecker <brobecker@adacore.com>
1613
1614 * NEWS: Announce Ravenscar Profile support.
1615
1616 2010-09-28 Joel Brobecker <brobecker@adacore.com>
1617 Jerome Guitton <guitton@adacore.com>
1618
1619 * ravenscar-thread.c, ravenscar-thread.h, ravenscar-sparc-thread.c:
1620 New files.
1621 * configure.tgt (sparc-*-*): Add ravenscar-thread.o and
1622 ravenscar-sparc-thread.o to gdb_target_obs.
1623
1624 2010-09-28 Joel Brobecker <brobecker@adacore.com>
1625
1626 * ada-tasks.c (iterate_over_live_ada_tasks): New function.
1627 * ada-lang.h (iterate_over_live_ada_tasks): Declare.
1628
1629 2010-09-27 Pierre Muller <muller@ics.u-strasbg.fr>
1630
1631 * amd64-windows-tdep.c (amd64_skip_main_prologue): New function.
1632 (amd64_windows_init_abi): Register amd64_skip_main_prologue as gdbarch
1633 skip_main_prologue method.
1634
1635 2010-09-27 Tom Tromey <tromey@redhat.com>
1636
1637 * dwarf2read.c (dwarf2_read_index): Only allow version 3.
1638 (write_psymbols): Add 'psyms_seen' and 'is_static' arguments.
1639 Only emit a given psymbol once.
1640 (struct signatured_type_index_data) <psyms_seen>: New field.
1641 (write_one_signatured_type): Update.
1642 (cleanup_htab): New function.
1643 (write_psymtabs_to_index): Update. Create psyms_seen hash. Bump
1644 version to 3.
1645 (save_gdb_index_command): Update index documentation.
1646
1647 2010-09-27 Tom Tromey <tromey@redhat.com>
1648
1649 * bcache.c (expand_hash_table): Use hash_function, not hash.
1650
1651 2010-09-27 Tom Tromey <tromey@redhat.com>
1652
1653 * gdb_wchar.h: Change minimum libiconv to 0x108.
1654
1655 2010-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1656
1657 Fix lost siginfo_t for inferior calls.
1658 * infrun.c
1659 (struct inferior_thread_state) <siginfo_gdbarch, siginfo_data>: New.
1660 (save_inferior_thread_state): New variables regcache, gdbarch and
1661 siginfo_data. Initialize SIGINFO_DATA if gdbarch_get_siginfo_type_p.
1662 Move INF_STATE allocation later, pre-clear it. Initialize REGISTERS
1663 using REGCACHE.
1664 (restore_inferior_thread_state): New variables regcache and gdbarch.
1665 Restore SIGINFO_DATA for matching GDBARCH. Restore REGISTERS using
1666 REGCACHE. Free also SIGINFO_DATA.
1667
1668 2010-09-24 Tom Tromey <tromey@redhat.com>
1669
1670 * dwarf2read.c (dw2_expand_symtabs_matching): Add missing
1671 MAYBE_SWAPs.
1672 (dw2_map_symbol_names): Likewise.
1673
1674 2010-09-24 Sami Wagiaalla <swagiaal@redhat.com>
1675
1676 * valops.c (find_oload_champ_namespace_loop): replace incorrect
1677 discard_cleanups do_cleanups.
1678
1679 2010-09-24 Pedro Alves <pedro@codesourcery.com>
1680
1681 PR gdb/11842
1682
1683 * amd64-linux-nat.c (compat_siginfo_from_siginfo)
1684 (siginfo_from_compat_siginfo): Also copy si_pid and si_uid when
1685 si_code is < 0. Check for si_code == SI_TIMER before checking for
1686 si_code < 0.
1687
1688 2010-09-24 Pedro Alves <pedro@codesourcery.com>
1689
1690 * objfiles.h (ALL_OBJSECTIONS): Handle breaks in the inner loop.
1691
1692 2010-09-22 Joel Brobecker <brobecker@adacore.com>
1693
1694 * ada-tasks.c (read_atcb): Do not compute the task ptid when
1695 debugging a core file.
1696
1697 2010-09-22 Jan Kratochvil <jan.kratochvil@redhat.com>
1698
1699 Code cleanup.
1700 * objfiles.c (allocate_objfile) <objfile->name != NULL>: Remove.
1701 (free_objfile) <objfile->name != NULL>: Remove the conditional around
1702 xfree.
1703 * objfiles.h (struct objfile) <name>: New comment it is never NULL.
1704 * python/py-auto-load.c (auto_load_new_objfile) <!objfile->name>:
1705 Remove.
1706 * python/py-objfile.c (objfpy_get_filename) <obj->objfile->name>
1707 Remove the conditional.
1708 * python/py-progspace.c (pspy_get_filename) <objfile->name>: Likewise.
1709
1710 2010-09-22 Jan Kratochvil <jan.kratochvil@redhat.com>
1711
1712 * main.c: Include objfiles.h.
1713 (captured_main): New variable objfile. Call
1714 load_auto_scripts_for_objfile for ALL_OBJFILES.
1715
1716 2010-09-22 Jan Kratochvil <jan.kratochvil@redhat.com>
1717
1718 * dwarf2read.c (die_needs_namespace) <DW_TAG_variable>: Add also
1719 DW_TAG_constant.
1720
1721 2010-09-22 Joel Brobecker <brobecker@adacore.com>
1722
1723 * dwarf2read.c (scan_partial_symbols): Add handling of
1724 DW_TAG_constant DIEs.
1725 (add_partial_symbol, load_partial_dies, new_symbol): Likewise.
1726
1727 2010-09-22 Joel Brobecker <brobecker@adacore.com>
1728
1729 * configure.ac: Add support for --enable-gdbserver.
1730 * configure: Regenerate.
1731
1732 2010-09-22 Sami Wagiaalla <swagiaal@redhat.com>
1733
1734 PR C++/12028
1735 * valops.c (find_oload_champ_namespace_loop): removed incorrect
1736 'old_cleanups' reassignment.
1737
1738 2010-09-16 Jan Kratochvil <jan.kratochvil@redhat.com>
1739
1740 * charset.c (wchar_iterate) <EILSEQ>: Return any possibly converted
1741 characters.
1742
1743 2010-09-16 Phil Muldoon <pmuldoon@redhat.com>
1744
1745 PR mi/11407
1746 * mi/mi-cmd-stack.c (list_args_or_locals): Catch exceptions from
1747 read_var_value and common_val_print and print a warning.
1748
1749 2010-09-15 Jan Kratochvil <jan.kratochvil@redhat.com>
1750
1751 * MAINTAINERS (GLOBAL MAINTAINERS) <Jan Kratochvil>: Move the entry to
1752 keep the list in alphabetical order. Use longer e-mail address.
1753
1754 2010-09-15 Tom Tromey <tromey@redhat.com>
1755
1756 * MAINTAINERS (GLOBAL MAINTAINERS): Add Jan Kratochvil.
1757
1758 2010-09-15 Tom Tromey <tromey@redhat.com>
1759
1760 * charset.c (iconv_open): New define.
1761 (iconv): Likewise.
1762 (iconv_close): Likewise.
1763 (phony_iconv_open): Add "phony_" prefix.
1764 (phony_iconv_close): Likewise.
1765 (phony_iconv): Likewise.
1766 * gdb_wchar.h: Check _LIBICONV_VERSION, __STDC_ISO_10646__.
1767 Change how INTERMEDIATE_ENCODING is defined.
1768
1769 2010-09-15 Doug Evans <dje@google.com>
1770
1771 * dwarf2read.c (struct die_info): Fix comment.
1772
1773 2010-09-15 Alan Modra <amodra@gmail.com>
1774
1775 PR 4606
1776 * gcore.c (gcore_create_callback): Clear SEC_HAS_CONTENTS rather
1777 than setting SEC_NEVER_LOAD on sections that need not be copied.
1778
1779 2010-09-14 Tom Tromey <tromey@redhat.com>
1780
1781 * psympriv.h (add_psymbol_to_list, init_psymbol_list)
1782 (start_psymtab_common, allocate_psymtab, discard_psymtab):
1783 Declare.
1784 * symfile.h (extend_psymbol_list): Remove.
1785 (add_psymbol_to_list, init_psymbol_list, start_psymtab_common)
1786 (allocate_psymtab, discard_psymtab): Move to psympriv.h.
1787 * psymtab.c (extend_psymbol_list): Move earlier. Now static.
1788
1789 2010-09-14 Jan Kratochvil <jan.kratochvil@redhat.com>
1790
1791 * dwarf2read.c (dw2_map_ada_symtabs): Remove the internal_error.
1792 Update the comment.
1793
1794 2010-09-14 Tom Tromey <tromey@redhat.com>
1795
1796 PR symtab/8399:
1797 * dwarf2loc.c (locexpr_describe_location_piece): Don't call error
1798 for unrecognized frame base expression.
1799
1800 2010-09-14 Tom Tromey <tromey@redhat.com>
1801
1802 PR exp/11803:
1803 * value.c (value_static_field): Use value_of_variable.
1804
1805 2010-09-14 Pierre Muller <muller@ics.u-strasbg.fr>
1806
1807 * m32r-rom.c: Replace winsock.h with winsock2.h header.
1808 * remote-m32r-sdi.c: Replace winsock.h by winsock2.h.
1809
1810 2010-09-13 Sami Wagiaalla <swagiaal@redhat.com>
1811
1812 PR symtab/11992:
1813 * c-exp.y (classify_name): Check is_a_member_of_this before returning
1814 UNKNOWN_CPP_NAME.
1815
1816 2010-09-13 Joel Brobecker <brobecker@adacore.com>
1817
1818 * NEWS: Add x86-lynxos to the list of platforms supported by
1819 gdbserver.
1820
1821 2010-09-13 Joel Brobecker <brobecker@adacore.com>
1822
1823 * NEWS: Announce GDBserver support for version 5.x of ppc-lynxos.
1824
1825 2010-09-13 Tom Tromey <tromey@redhat.com>
1826
1827 * Makefile.in (HFILES_NO_SRCDIR): Add progspace.h.
1828
1829 2010-09-13 H.J. Lu <hongjiu.lu@intel.com>
1830
1831 * i386-tdep.c (i386_ymm_type): Set type name to
1832 builtin_type_vec256i.
1833
1834 2010-09-12 Michael Snyder <msnyder@vmware.com>
1835
1836 * i386-tdep.c (i386_gdbarch_init): Fix typo in comments.
1837
1838 2010-09-12 H.J. Lu <hongjiu.lu@intel.com>
1839
1840 * i386-tdep.c (i386_gdbarch_init): Fix typo in comments.
1841
1842 2010-09-11 H.J. Lu <hongjiu.lu@intel.com>
1843
1844 * amd64-tdep.c (amd64_register_name): Removed.
1845 (amd64_init_abi): Don't call set_gdbarch_register_name.
1846
1847 * i386-tdep.c (i386_ymmh_regnum_p): Make it static.
1848
1849 * i386-tdep.h (i386_ymmh_regnum_p): Removed.
1850
1851 2010-09-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1852 Paul Bolle <pebolle@tiscali.nl>
1853
1854 Redirect also uiout and stdtarg{,err} in execute_command_to_string.
1855 * cli-logging.c (struct saved_output_files) <targerr>: New.
1856 (set_logging_redirect, pop_output_files, handle_redirections):
1857 Redirect also gdb_stdtargerr.
1858 * defs.h (struct ui_out, make_cleanup_ui_out_redirect_pop): New
1859 declarations.
1860 * event-top.c (gdb_setup_readline, gdb_disable_readline): Redirect
1861 also gdb_stdtargerr.
1862 * top.c (execute_command_to_string): Move make_cleanup_ui_file_delete
1863 to the top. Redirect also gdb_stdlog, gdb_stdtarg and gdb_stdtargerr.
1864 Use ui_out_redirect, register make_cleanup_ui_out_redirect_pop.
1865 * tui/tui-io.c (tui_setup_io): Redirect also gdb_stdtargerr.
1866 * utils.c (do_ui_out_redirect_pop, make_cleanup_ui_out_redirect_pop):
1867 New functions.
1868
1869 2010-09-10 Pierre Muller <muller@ics.u-strasbg.fr>
1870
1871 * hppa-tdep.c (unwind_command): Use host_address_to_string function
1872 to display a host address.
1873 * monitor.c (monitor_read_memory): Likewise.
1874 * xtensa-tdep.c (xtensa_push_dummy_call): Likewise.
1875
1876 2010-09-10 Pierre Muller <muller@ics.u-strasbg.fr>
1877
1878 * coffread.c (struct coff_symbol): Change c_value type from `long' to
1879 `CORE_ADDRESS' as it might contain target addresses.
1880
1881 2010-09-10 Pierre Muller <muller@ics.u-strasbg.fr>
1882
1883 * alpha-mdebug-tdep.c (find_proc_desc): Use SYMBOL_VALUE_BYTES macro
1884 before cast to pointer to avoid warning.
1885
1886 2010-09-09 Kevin Buettner <kevinb@redhat.com>
1887
1888 * v850-tdep.c (v850_gdbarch_init): Change the v850's `char'
1889 type to be signed.
1890
1891 2010-09-09 Ulrich Weigand <uweigand@de.ibm.com>
1892
1893 * dwarf2read.c (fixup_partial_die): Do not set dummy name for
1894 anonymous class partial DIEs.
1895
1896 2010-09-08 Daniel Jacobowitz <dan@codesourcery.com>
1897
1898 * dwarf2read.c (dwarf2_compute_name): Check that the first
1899 argument is a pointer.
1900
1901 2010-09-08 Daniel Jacobowitz <dan@codesourcery.com>
1902
1903 * dwarf2read.c (read_func_scope, read_structure_type)
1904 (read_common_block): Check for a NULL return from new_symbol.
1905
1906 2010-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
1907
1908 * dwarf2read.c (dwarf2_read_index): Return on no SEC_HAS_CONTENTS.
1909
1910 2010-09-08 Daniel Jacobowitz <dan@codesourcery.com>
1911
1912 * dwarf2read.c (read_structure_type): Move processing of
1913 fields and member functions from here...
1914 (process_structure_scope): ... to here.
1915
1916 2010-09-08 Daniel Jacobowitz <dan@codesourcery.com>
1917
1918 * gnu-v3-abi.c (gnuv3_print_method_ptr): Do not use
1919 the domain type.
1920 (gnuv3_make_method_ptr): Likewise.
1921
1922 2010-09-08 Tom Tromey <tromey@redhat.com>
1923
1924 * breakpoint.c (create_breakpoint): Add missing _().
1925
1926 2010-09-08 Doug Evans <dje@google.com>
1927
1928 * dwarf2-frame.h (dwarf2_frame_build_info): Delete, unused.
1929
1930 2010-09-08 Tom Tromey <tromey@redhat.com>
1931
1932 Revert:
1933 2010-09-01 Tom Tromey <tromey@redhat.com>
1934 * dwarf2read.c, gdbtypes.c, psymtab.c, symfile.h, symtab.c,
1935 symtab.h: Revert earlier change.
1936
1937 2010-09-09 Sami Wagiaalla <swagiaal@redhat.com>
1938
1939 * psymtab.c (add_psymbol_to_bcache): Initialize
1940 obj_section.
1941 memset psymbol.ginfo.value to 0.
1942
1943 2010-09-06 Pedro Alves <pedro@codesourcery.com>
1944
1945 * infrun.c (resume): Extend comment on ignoring single-step
1946 requests on vfork parents waiting for a vfork-done.
1947
1948 2010-09-06 Jan Kratochvil <jan.kratochvil@redhat.com>
1949 Pedro Alves <pedro@codesourcery.com>
1950
1951 * corelow.c (core_open): Use target_signal_from_host if CORE_GDBARCH
1952 is NULL.
1953 * fork-child.c (startup_inferior) <resume_signal>: Use enum
1954 target_signal type.
1955 * linux-nat.c (linux_nat_resume): Use target_signal_to_host before
1956 calling strsignal. Use enum target_signal type for saved_signo.
1957 (linux_handle_extended_wait) <signo>: Use enum target_signal type.
1958 (linux_nat_wait_1): Use enum target_signal type for signo. Use
1959 target_signal_to_host before calling strsignal.
1960 * remote-m32r-sdi.c (m32r_wait, m32r_detach): Replace 0 by
1961 TARGET_SIGNAL_0.
1962
1963 2010-09-06 Pedro Alves <pedro@codesourcery.com>
1964 Jan Kratochvil <jan.kratochvil@redhat.com>
1965
1966 * common/signals.c (ANY): Remove.
1967 (SET): No longer use ANY.
1968
1969 2010-09-06 Yao Qi <yao@codesourcery.com>
1970
1971 * infrunc(resume): When inferior is waiting_for_vfork_done,
1972 clear step and don't use displaced stepping.
1973
1974 2010-09-04 Daniel Jacobowitz <dan@codesourcery.com>
1975
1976 * breakpoint.c (can_use_hardware_watchpoint): Handle the first
1977 value specially.
1978
1979 2010-09-04 Jan Kratochvil <jan.kratochvil@redhat.com>
1980
1981 Code cleanup - split print_stop_reason.
1982 * infrun.c (enum inferior_stop_reason): Remove.
1983 (print_stop_reason): Remove by splitting into ...
1984 (print_exited_reason, print_signal_exited_reason)
1985 (print_no_history_reason, print_signal_received_reason)
1986 (print_end_stepping_range_reason): ... these new functions. Update
1987 the preceding comment.
1988 (handle_inferior_event): Change the calls to print_exited_reason,
1989 print_signal_exited_reason, print_no_history_reason,
1990 print_signal_received_reason, print_end_stepping_range_reason.
1991 (handle_step_into_function, handle_step_into_function_backward):
1992 Change the calls to print_end_stepping_range_reason.
1993
1994 2010-09-03 Jan Kratochvil <jan.kratochvil@redhat.com>
1995
1996 * breakpoint.c (save_breakpoints): Use RETURN_MASK_ALL.
1997 * cli-out.c: Include vec.h.
1998 (cli_field_fmt, cli_spaces, cli_text, cli_message, cli_flush): New
1999 variable stream, initialize it, use it.
2000 (cli_redirect): New function comment. Replace the stream and
2001 original_stream fields by the new streams field. Remove the
2002 original_stream != NULL conditional, assert error on NULL instead.
2003 (out_field_fmt, field_separator): New variable stream, initialize it, use it.
2004 (cli_out_data_ctor): Assert non-NULL stream. Replace the stream and
2005 original_stream fields by the new streams field.
2006 (cli_out_set_stream): Replace the stream field by the new streams
2007 field.
2008 * cli-out.h: Include vec.h.
2009 (ui_filep): New typedef, call DEF_VEC_P for it.
2010 (struct cli_ui_out_data): Replace the stream and original_stream
2011 fields by the new streams field.
2012 * cli/cli-logging.c (set_logging_redirect): Call ui_out_redirect with
2013 NULL first. Extend the comment.
2014 (handle_redirections): Call ui_out_redirect with output.
2015 * python/py-breakpoint.c (bppy_get_commands): Move ui_out_redirect
2016 calls outside of the TRY_CATCH block.
2017
2018 2010-09-03 Joel Brobecker <brobecker@adacore.com>
2019
2020 GDB 7.2 released.
2021
2022 2010-09-02 Joel Brobecker <brobecker@adacore.com>
2023
2024 Back out the following change:
2025 | 2010-06-29 Hui Zhu <teawater@gmail.com>
2026 | * record.c (set_record_pic_cmdlist,
2027 | show_record_pic_cmdlist): New variables.
2028 | (set_record_pic_command,
2029 | show_record_pic_command): New functions.
2030 | (record_pic_function, record_pic_line, record_pic_enum,
2031 | set_record_pic_type, record_pic_hide_nofunction,
2032 | record_pic_hide_nosource, record_pic_hide_same): New variables.
2033 | (record_pic_fputs): New function.
2034 | (function_list, node_list, edge_list): New struct.
2035 | (function_list, node_list, edge_list): New variables.
2036 | (record_pic_cleanups, record_pic_node,
2037 | record_pic_edge, cmd_record_pic): New functions.
2038 | (_initialize_record): Add new commands for record pic.
2039
2040 2010-09-02 Daniel Jacobowitz <dan@codesourcery.com>
2041
2042 * config.in, configure: Regenerated.
2043 * configure.ac: Check for waitpid.
2044 * ser-pipe.c (pipe_close): Wait for the program to exit.
2045
2046 2010-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2047
2048 * cli/cli-logging.c: Include gdb_assert.h.
2049 (set_logging_overwrite): New function.
2050 (logging_redirect): New comment.
2051 (logging_no_redirect_file, set_logging_redirect)
2052 (pop_output_files) <logging_no_redirect_file>: New.
2053 (handle_redirections) <!logging_redirect>: New variable
2054 no_redirect_file. Remove file autoclose for tee_file_new. No longer
2055 discard cleanup for the close of former OUTPUT. Set
2056 LOGGING_NO_REDIRECT_FILE.
2057 (handle_redirections) <logging_redirect>: gdb_assert
2058 LOGGING_NO_REDIRECT_FILE.
2059 (show_logging_command) <logging_redirect handling>: Adjust messages
2060 for SAVED_FILENAME not NULL.
2061 (_initialize_cli_logging): Install set_logging_overwrite and
2062 set_logging_redirect.
2063
2064 2010-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2065
2066 * iq2000-tdep.c (iq2000_scan_prologue): Initialize SAL.END.
2067
2068 2010-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2069
2070 * Makefile.in (GDB_WARN_CFLAGS_NO_FORMAT): Convert it to the no- form.
2071 (monitor.o): Replace $(INTERNAL_WARN_CFLAGS) by $(INTERNAL_CFLAGS) and
2072 add $(GDB_WARN_CFLAGS_NO_FORMAT).
2073 (printcmd.o): Replace $(INTERNAL_CFLAGS_BASE) by $(INTERNAL_CFLAGS).
2074
2075 2010-09-02 Yao Qi <yao@codesourcery.com>
2076
2077 * linux-nat.c (status_to_str): Use WTERMSIG to extract the signal
2078 number from a WIFSIGNALED status.
2079
2080 2010-09-01 Tom Tromey <tromey@redhat.com>
2081
2082 * symtab.h (lookup_type_symbol): Declare.
2083 * symtab.c (lookup_symbol_in_language_full): Rename from
2084 lookup_symbol_in_language. Add 'for_type' argument.
2085 (lookup_symbol_in_language): New function.
2086 (lookup_type_symbol): Likewise.
2087 (lookup_symbol_aux): Add 'for_type' argument.
2088 (match_symbol_aux): New function.
2089 (lookup_symbol_aux_symtabs): Use expand_one_symtab_matching.
2090 (match_transparent_type): New function.
2091 (basic_lookup_transparent_type): Use expand_one_symtab_matching.
2092 * symfile.h (struct quick_symbol_functions)
2093 <pre_expand_symtabs_matching>: Remove.
2094 <expand_one_symtab_matching>: New field.
2095 * psymtab.c (expand_one_symtab_matching_psymtabs): New function.
2096 (pre_expand_symtabs_matching_psymtabs): Remove.
2097 (psym_functions): Update.
2098 * gdbtypes.c (lookup_typename): Use lookup_type_symbol.
2099 * dwarf2read.c (dw2_lookup_symbol): Update comment.
2100 (dw2_pre_expand_symtabs_matching): Remove.
2101 (dw2_expand_one_symtab_matching): New function.
2102 (dwarf2_gdb_index_functions): Update.
2103
2104 2010-09-01 Joel Brobecker <brobecker@adacore.com>
2105
2106 * NEWS: Add entry announcing GDBserver support on powerpc-lynxos.
2107
2108 2010-09-01 Marc Khouzam <marc.khouzam@ericsson.com>
2109
2110 * mi/mi-main.c (mi_cmd_list_target_features): Add `reverse'
2111 as a feature reported by -list-target-features.
2112
2113 2010-09-01 Joel Brobecker <brobecker@adacore.com>
2114
2115 * features/Makefile (WHICH): Add rs6000/powerpc-32.
2116 (powerpc-32.o, powerpc-32.c): New rules.
2117 (clean): Also remove powerpc-32.c.
2118 * regformats/rs6000/powerpc-32.dat: Generate.
2119
2120 2010-08-31 Sami Wagiaalla <swagiaal@redhat.com>
2121
2122 * symfile.c (reread_symbols): Use psymbol_bcache_free, and
2123 psymbol_bcache_init.
2124 * psymtab.h (psymbol_bcache_init): New function prototype.
2125 (psymbol_bcache_free): New function prototype.
2126 (psymbol_bcache_get_bcache): New function prototype.
2127 * psymtab.c (psymbol_bcache_init): New function.
2128 (psymbol_bcache_free): New function.
2129 (psymbol_bcache_full): New function.
2130 (psymbol_bcache_get_bcache): New function.
2131 (add_psymbol_to_bcache): use psymbol_bcache_full.
2132 * objfiles.h (psymbol_cache): Change type of psymbol_cache to
2133 psymbol_bcache.
2134 * symmisc.c (print_symbol_bcache_statistics): Updated.
2135 (print_objfile_statistics): Updated.
2136 * objfiles.c (allocate_objfile): Use psymbol_bcache_init to initialize
2137 psymbol_cache.
2138 (free_objfile): Use psymbol_bcache_free.
2139
2140 2010-08-31 Tom Tromey <tromey@redhat.com>
2141
2142 PR c++/11961:
2143 * dwarf2read.c (new_symbol_full) <DW_TAG_template_type_param>:
2144 Don't set TYPE_NAME on the type.
2145
2146 2010-08-31 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
2147
2148 * infrun.c (set_exec_direction_func): Error out if target does not
2149 support reverse execution.
2150
2151 2010-08-31 Jan Kratochvil <jan.kratochvil@redhat.com>
2152
2153 Make linux_get_siginfo_type `type *' unique.
2154 * linux-tdep.c (linux_gdbarch_data_handle, struct linux_gdbarch_data)
2155 (init_linux_gdbarch_data, get_linux_gdbarch_data): New.
2156 (linux_get_siginfo_type): New variable linux_gdbarch_data. Initialize
2157 it. Use linux_gdbarch_data->siginfo_type as a persistent storage.
2158 (_initialize_linux_tdep): New.
2159
2160 2010-08-31 Jan Kratochvil <jan.kratochvil@redhat.com>
2161
2162 Code cleanup.
2163 * defs.h (find_memory_region_ftype): New typedef.
2164 (exec_set_find_memory_regions): Use it.
2165 * exec.c (exec_set_find_memory_regions): Use find_memory_region_ftype.
2166 * fbsd-nat.c (fbsd_find_memory_regions): Likewise.
2167 * gcore.c (objfile_find_memory_regions): Likewise.
2168 * gnu-nat.c (gnu_find_memory_regions): Likewise.
2169 * linux-nat.c (linux_nat_find_memory_regions): Likewise.
2170 * procfs.c (iterate_over_mappings_cb_ftype): Remove.
2171 (iterate_over_mappings): Rename iterate_over_mappings_cb_ftype to
2172 find_memory_region_ftype.
2173 (insert_dbx_link_bpt_in_region): Likewise.
2174 (iterate_over_mappings): Likewise. Drop the comment part about the
2175 function prototype.
2176 (find_memory_regions_callback): Use find_memory_region_ftype.
2177 (proc_find_memory_regions): Likewise.
2178 (info_mappings_callback): Rename iterate_over_mappings_cb_ftype to
2179 find_memory_region_ftype.
2180 * target.c (dummy_find_memory_regions): Use find_memory_region_ftype.
2181 * target.h (struct target_ops) <to_find_memory_regions>: Likewise.
2182
2183 2010-08-31 Sami Wagiaalla <swagiaal@redhat.com>
2184
2185 * psymtab.c (add_psymbol_to_bcache): Remove 'static' from
2186 'static partial_symbol psymbol'.
2187 (psymbol_hash): New function.
2188 (psymbol_compare): New function.
2189 * bcache.c (hash_continue): New.
2190 (hash): Use hash_continue.
2191 * bcache.c: Add hash_function and compare_function
2192 pointers to bcache struct.
2193 (bcache_full): Use bcache->hash_function, and
2194 bcache->compare_function.
2195 (bcache_compare): New function.
2196 (bcache_xmalloc): Take hash_function and
2197 compare_function arguments and initialize the
2198 bcach's pointers.
2199 Updated comment.
2200 * objfiles.c (allocate_objfile): Updated.
2201 * symfile.c (reread_symbols): Updated.
2202 * python/py-type.c (typy_richcompare): Updated.
2203
2204 2010-08-30 Andre Poenitz <andre.poenitz@nokia.com>
2205 Tom Tromey <tromey@redhat.com>
2206
2207 PR python/11792:
2208 * python/py-value.c (valpy_get_dynamic_type): New function.
2209 (value_object_getset): Add "dynamic_type".
2210 (valpy_get_type): Fail on error.
2211
2212 2010-08-30 Yao Qi <yao@codesourcery.com>
2213
2214 * arm-linux-tdep.c (arm_linux_sigreturn_return_addr): New.
2215 (arm_linux_syscall_next_pc): New.
2216 (arm_linux_copy_svc): Use arm_linux_sigreturn_return_addr instead.
2217 (arm_linux_init_abi): Initialize syscall_next_pc.
2218 * arm-tdep.c (thumb_get_next_pc_raw): Get next pc of SWI in Thumb mode.
2219 (arm_get_next_pc_raw): Get next pc of SWI in ARM mode.
2220 * arm-tdep.h (struct gdbarch_tdep): Add a function pointer syscall_next_pc.
2221 Declare arm_frame_is_thumb.
2222
2223 2010-08-30 Jan Kratochvil <jan.kratochvil@redhat.com>
2224
2225 Code cleanup.
2226 * breakpoint.c (bpstat_alloc): Remove unused prototype.
2227 (bpstat_alloc): Change parameters cbs to bs_link_pointer. Adjust the
2228 code.
2229 (bpstat_stop_status): Change root_bs into bs_head and bs_link. Adjust
2230 calls of bpstat_alloc. Remove explicit bs chain termination.
2231
2232 2010-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2233
2234 Code cleanup.
2235 * linux-nat.c (pull_pid_from_list): Rename status to statusp.
2236 (my_waitpid): Likewise.
2237
2238 2010-08-27 Doug Evans <dje@google.com>
2239
2240 * dwarf2read.c (dw2_require_line_header): Read from .debug_types
2241 as appropriate.
2242
2243 2010-08-27 Tom Tromey <tromey@redhat.com>
2244
2245 * dwarf2read.c (dwarf2_attach_fields_to_type): Don't set
2246 TYPE_FIELD_IGNORE_BITS.
2247
2248 2010-08-27 Doug Evans <dje@google.com>
2249
2250 * dwarf2read.c (dwarf2_per_objfile_free): Reorganize buffers to match
2251 the order they're defined in. munmap .debug_types buffer.
2252
2253 2010-08-26 Doug Evans <dje@google.com>
2254
2255 * dwarf2read.c (dw2_require_full_path): Rename parameter cu to per_cu.
2256 (dw2_forget_cached_source_info): Rename local cu to per_cu.
2257 (dw2_lookup_symtab, dw2_do_expand_symtabs_matching): Ditto.
2258 (dw2_print_stats, dw2_expand_all_symtabs): Ditto.
2259 (dw2_expand_symtabs_with_filename, dw2_find_symbol_file): Ditto.
2260 (dw2_find_symbol_file, dw2_expand_symtabs_matching): Ditto.
2261 (dw2_map_symbol_filenames, dwarf2_initialize_objfile): Ditto.
2262 (dwarf2_free_objfile, write_one_signatured_type): Ditto.
2263 (write_psymtabs_to_index): Ditto.
2264
2265 2010-08-26 Pedro Alves <pedro@codesourcery.com>
2266
2267 * NEWS: Mention libthread_db debugging with core files.
2268
2269 2010-08-26 Doug Evans <dje@google.com>
2270
2271 * dwarf2read.c (dwarf2_build_include_psymtabs): Remove unnecessary
2272 forward decl. Pass pst->dirname to dwarf_decode_lines.
2273 (psymtab_include_file_name): New function.
2274 (dwarf_decode_lines): Call it. Update comments.
2275
2276 2010-08-25 Pedro Alves <pedro@codesourcery.com>
2277
2278 * dwarf2read.c (inherit_abstract_dies): Handle origin die's
2279 compilation unit being different from target die's.
2280
2281 2010-08-24 Doug Evans <dje@google.com>
2282
2283 PR symtab/11942
2284 * dwarf2read.c (dwarf2_per_objfile): New members debug_info_type_hash,
2285 debug_types_type_hash.
2286 (dwarf2_cu, dwarf2_per_cu_data): Delete member type_hash.
2287 All uses updated.
2288 (lookup_die_type): Renamed from tag_type_to_tag. First look in
2289 appropriate type_hash table. All callers updated.
2290 (allocate_signatured_type_table): Renamed from
2291 allocate_signatured_type_hash_table. All callers updated.
2292 (create_signatured_type_table_from_index): Renamed from
2293 create_signatured_type_hash_from_index. All callers updated.
2294 (read_die_type): Add comment. Move actual reading to ...
2295 (read_die_type_1): ... here. New function.
2296 (follow_die_ref_or_sig): Tweak comment.
2297 (set_die_type): Rewrite to use appropriate choice of
2298 debug_info_type_hash or debug_types_type_hash.
2299 (get_die_type_at_offset): New function.
2300 (get_die_type): Call it.
2301
2302 2010-08-24 Jan Kratochvil <jan.kratochvil@redhat.com>
2303
2304 * python/py-type.c (typy_richcompare): Initialize worklist.
2305
2306 2010-08-24 Daniel Jacobowitz <dan@codesourcery.com>
2307 Kazu Hirata <kazu@codesourcery.com>
2308 Jonathan Larmour <jifl@eCosCentric.com>
2309
2310 * arm-tdep.c: Include features/arm-with-m.c.
2311 (arm_psr_thumb_bit): New. Update all uses of CPSR_T to
2312 call this function.
2313 (arm_pc_is_thumb): Add a gdbarch argument. Update all callers.
2314 Check is_m after force-mode.
2315 (arm_gdbarch_init): Check the binary before the target description.
2316 Add check for M profile attribute. If we have an M-profile device,
2317 but no target register description, use arm-with-m. Recognize the
2318 new org.gnu.gdb.arm.m-profile feature and its xpsr register.
2319 (_initialize_arm_tdep): Call initialize_tdesc_arm_with_m.
2320 * arm-tdep.h (XPSR_T): Define.
2321 (struct gdbarch_tdep): Add is_m member.
2322 * features/arm-m-profile.xml, features/arm-with-m.c,
2323 features/arm-with-m.xml: New files.
2324
2325 2010-08-23 Doug Evans <dje@google.com>
2326
2327 * dwarf2read.c (read_structure_type): Add comment.
2328 (read_enumeration_type): Add comment.
2329 (process_enumeration_scope): Move definition of some locals
2330 closer to their use.
2331 (read_namespace_type): Add comment.
2332 (set_die_type): Fix typo in comment.
2333
2334 2010-08-23 Tom Tromey <tromey@redhat.com>
2335
2336 PR python/11145:
2337 * python/py-value.c: Include expression.h.
2338 (valpy_do_cast): New function.
2339 (valpy_cast): Use it.
2340 (valpy_dynamic_cast): New function.
2341 (valpy_reinterpret_cast): Likewise.
2342 (value_object_methods): Add dynamic_cast, reinterpret_cast.
2343
2344 2010-08-23 Tom Tromey <tromey@redhat.com>
2345
2346 PR python/11391:
2347 * python/py-value.c (valpy_nonzero): Don't throw error for other
2348 Value types.
2349
2350 2010-08-23 Tom Tromey <tromey@redhat.com>
2351
2352 PR python/10676:
2353 * python/py-type.c: Include bcache.h, vec.h.
2354 (struct type_equality_entry): New.
2355 (compare_strings): New function.
2356 (check_types_equal): Likewise.
2357 (check_types_worklist): Likewise.
2358 (typy_richcompare): Likewise.
2359 (type_object_type): Set tp_richcompare field.
2360
2361 2010-08-23 Tom Tromey <tromey@redhat.com>
2362
2363 PR python/10953:
2364 * python/py-type.c (typy_fields): Call check_typedef.
2365 (typy_template_argument): Add TRY_CATCH.
2366
2367 2010-08-23 Tom Tromey <tromey@redhat.com>
2368
2369 PR python/11915:
2370 * python/py-type.c (typy_array): New function.
2371 (type_object_methods): Add "array".
2372
2373 2010-08-20 Pedro Alves <pedro@codesourcery.com>
2374
2375 * python/python.c: Include "serial.h".
2376 (gdbpy_event_fds): Change type to `struct serial *' a array from
2377 int array.
2378 (gdbpy_run_events): Change parameters. Use serial_readchar in
2379 place of read.
2380 (gdbpy_post_event): Use serial_write in place of write.
2381 (gdbpy_initialize_events): Use serial_pipe instead of pipe, and
2382 serial_async in place of add_file_handler.
2383
2384 2010-08-20 Pedro Alves <pedro@codesourcery.com>
2385
2386 * serial.h (gdb_pipe, serial_pipe): Declare.
2387 * serial.c (serial_interface_lookup): Take a const char pointer.
2388 (serial_fdopen): Rename to ...
2389 (serial_fdopen_ops): ... this. Add an OPS parameter and use it.
2390 Call the OPS' fdopen function if there is one.
2391 (serial_fdopen): Rewrite as wrapper to serial_fdopen_ops.
2392 (serial_pipe): New.
2393 (struct serial_ops) <fdopen>: New field.
2394
2395 * ser-mingw.c (free_pipe_state):
2396 (free_pipe_state): Close output on non-pex pipes.
2397 (pipe_windows_fdopen): New.
2398 (gdb_pipe): New.
2399 (_initialize_ser_windows): Register pipe_windows_fdopen.
2400 * ser-go32.c (gdb_pipe): New.
2401 * ser-pipe.c (pipe_close): Close file descriptor even if there's
2402 no state pointer.
2403 (pipe_ops): Delete.
2404 (gdb_pipe): New.
2405
2406 2010-08-20 Keith Seitz <keiths@redhat.com>
2407
2408 PR symtab/11465:
2409 * dwarf2read.c (struct delayed_method_info): New struct.
2410 (struct dwarf2_cu): Add vector method_list.
2411 (scan_partial_symbols): Count methods for union, class, structure,
2412 and interface types.
2413 (add_to_method_list): New function.
2414 (free_delayed_list): New function.
2415 (compute_delayed_physnames): New function.
2416 (process_full_comp_unit): Make a cleanup for the CU's delayed
2417 physname list, compute the delayed physnames, and free the
2418 the list.
2419 (dwarf2_add_member_fn): For C++ and Java, delay the computation
2420 of the physname until after the CU is read.
2421
2422 * dwarf2read.c (read_structure_type): Check if the current
2423 DIE's type was already completed after dwarf2_full_name
2424 was called.
2425
2426 2010-08-19 Stan Shebs <stan@codesourcery.com>
2427
2428 * NEWS: Mention some additional changes.
2429
2430 2010-08-19 Tom Tromey <tromey@redhat.com>
2431
2432 * Makefile.in (install-python): Add DESTDIR.
2433
2434 2010-08-19 Doug Evans <dje@google.com>
2435
2436 PR exp/11926
2437 * parser-defs.h (parse_float, parse_c_float): Declare.
2438 * parse.c (parse_float, parse_c_float): New function.
2439 * c-exp.y (parse_number): Call parse_c_float.
2440 * objc-exp.y (parse_number): Ditto.
2441 * p-exp.y (parse_number): Ditto. Use ANSI/ISO-style definition.
2442 * jv-exp.y (parse_number): Call parse_float, fix suffix handling.
2443
2444 2010-08-19 Joel Brobecker <brobecker@adacore.com>
2445
2446 * psymtab.c (map_symbol_filenames_psymtab): Call FUN with
2447 the arguments in the correct order.
2448 * symtab.c (maybe_add_partial_symtab_filename): Declare
2449 the arguments in the correct order.
2450
2451 2010-08-19 Jan Kratochvil <jan.kratochvil@redhat.com>
2452
2453 * varobj.c (varobj_create): Replace variable old_fi with old_id,
2454 initialize it by null_frame_id, wrap its usage by get_frame_id,
2455 frame_id_p and frame_find_by_id.
2456
2457 2010-08-18 Tom Tromey <tromey@redhat.com>
2458
2459 PR python/11900:
2460 * configure: Rebuild.
2461 * configure.ac: Add install-python to CONFIG_INSTALL.
2462 * Makefile.in (install-python): New.
2463
2464 2010-08-18 Doug Evans <dje@google.com>
2465
2466 * gdb_assert.h (gdb_assert_not_reached): New macro.
2467 (gdb_assert_fail): Fix typo in comment.
2468 * avr-tdep.c (avr_return_value): Use gdb_assert_not_reached instead of
2469 gdb_assert (0).
2470 * darwin-nat.c (darwin_check_new_threads): Ditto.
2471 * dwarf2read.c (dwarf2_get_section_info): Ditto.
2472 (munmap_section_buffer): Ditto.
2473 * m32c-tdep.c (make_types): Ditto.
2474 (m32c_decode_srcdest4, m32c_decode_sd23, m32c_frame_base): Ditto.
2475 * macroexp.c (get_character_constant): Ditto.
2476 (get_string_literal): Ditto.
2477 * mep-tdep.c (mep_pseudo_cr_size): Ditto.
2478 (mep_pseudo_cr_index, mep_register_type): Ditto.
2479 (mep_pseudo_register_read, mep_pseudo_register_write): Ditto.
2480 (mep_get_insn, mep_analyze_prologue): Ditto.
2481 * objfiles.c (qsort_cmp): Ditto.
2482 * prologue-value.c (pv_is_identical): Ditto.
2483 * record.c (record_get_loc): Ditto.
2484 * value.c (value_static_field): Ditto.
2485 * xtensa-tdep.c (call0_track_op): Ditto.
2486
2487 2010-08-18 Tom Tromey <tromey@redhat.com>
2488
2489 PR symtab/11919:
2490 * gdbtypes.c (lookup_struct_elt_type): Clean up error emission.
2491 * parse.c (parse_field_expression): Use RETURN_MASK_ERROR. Move
2492 name-copying lower. Document exception behavior.
2493 * completer.c (expression_completer): Catch exceptions from
2494 parse_field_expression.
2495
2496 2010-08-18 Pedro Alves <pedro@codesourcery.com>
2497
2498 PR corefile/8210
2499
2500 * linux-thread-db.c (add_thread_db_info): Skip glibc/BZ5983
2501 workaround on core files.
2502 (try_thread_db_load_1): Don't try enabling thread event reporting
2503 on core files.
2504 (thread_db_load): Allow thread_db on core files.
2505 (attach_thread): Don't check thread signals on core files, nor try
2506 really attaching to the thread, nor enabling thread event event
2507 reporting.
2508 (thread_db_detach): Don't try disabing thread event reporting or
2509 removing thread event breakpoints when debugging a core file.
2510 (find_new_threads_callback): Don't try enabling thread event
2511 reporting on core files.
2512 (thread_db_find_new_threads_2): Don't look for a stopped lwp when
2513 debugging a core file.
2514 (thread_db_find_new_threads): Don't update thread
2515 cores (processors) when debugging a core (dump).
2516
2517 2010-08-18 Pedro Alves <pedro@codesourcery.com>
2518
2519 PR corefile/8210
2520
2521 * corelow.c (add_to_thread_list): Don't use
2522 gdbarch_core_reg_section_encodes_pid. Use bfd_core_file_pid.
2523 (get_core_register_section): Don't use
2524 gdbarch_core_reg_section_encodes_pid.
2525
2526 * gdbarch.sh (core_reg_section_encodes_pid): Delete.
2527 * gdbarch.h, gdbarch.c: Regenerate.
2528 * amd64-sol2-tdep.c (amd64_sol2_init_abi): Don't set
2529 gdbarch_core_reg_section_encodes_pid.
2530 * i386-sol2-tdep.c (i386_sol2_init_abi): Ditto.
2531 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Ditto.
2532 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Ditto.
2533
2534 2010-08-18 Yao Qi <yao@codesourcery.com>
2535
2536 * MAINTAINERS : Add myself under Write After Approval.
2537
2538 2010-08-17 Tom Tromey <tromey@redhat.com>
2539
2540 * NEWS: Mention template parameter support.
2541
2542 2010-08-17 Pedro Alves <pedro@codesourcery.com>
2543
2544 PR breakpoints/11371
2545
2546 * breakpoint.c (decref_bp_location): Assert the reference count is
2547 sane.
2548
2549 2010-08-17 Pedro Alves <pedro@codesourcery.com>
2550
2551 PR breakpoints/11371
2552
2553 * breakpoint.c (breakpoint_init_inferior): Decrement the
2554 location's reference count instead of deleting right away.
2555 (bpstat_free): Decrement the location's reference count. Make
2556 static.
2557 (bpstat_copy): Increment the location's reference count.
2558 (bpstat_find_breakpoint): Adjust.
2559 (bpstat_num): Adjust.
2560 (print_it_typical): Adjust. Use the breakpoint pointer in the
2561 bpstat instead of the location's owner.
2562 (bpstat_alloc): Remove const qualifier from the 'bl' parameter.
2563 Adjust to record the location's owner in the bpstat.
2564 (watchpoint_check): Use the breakpoint pointer in the bpstat
2565 instead of the location's owner.
2566 (bpstat_check_breakpoint_conditions): Don't handle
2567 bp_watchpoint_scope here. Use the breakpoint pointer in the
2568 bpstat instead of the location's owner.
2569 (bpstat_stop_status): Defer inferior function calls to after
2570 building the bpstat list. Handle bp_watchpoint_scope here. Use
2571 the breakpoint pointer in the bpstat instead of the location's
2572 owner.
2573 (bpstat_what): Use the breakpoint pointer in the bpstat instead of
2574 the location's owner.
2575 (free_bp_location): Don't walk bpstats clearing locations.
2576 (incref_bp_location): New.
2577 (decref_bp_location): New.
2578 (breakpoint_auto_delete): Use the breakpoint pointer in the bpstat
2579 instead of the location's owner.
2580 (update_global_location_list): Clear the location's owner, and
2581 decrement the location's reference count instead of deleting it
2582 right away.
2583 (breakpoint_retire_moribund): Decrement the location's reference
2584 count instead of deleting it right away.
2585 (bpstat_remove_bp_location): Delete.
2586 (bpstat_remove_breakpoint): New.
2587 (bpstat_remove_bp_location_callback): Delete.
2588 (bpstat_remove_breakpoint_callback): New.
2589 (delete_breakpoint): Iterate over all threads' stop_bpstat's
2590 clearing references to the breakpoint that is being deleted.
2591
2592 * breakpoint.h (struct bp_location) <refc>: New field.
2593 <owner>: Update comments.
2594 (bpstat_free): Delete declaration.
2595 (struct bpstats): Change the type of the breakpoint_at field to
2596 struct breakpoint point, from struct bp_location pointer. Add new
2597 field bp_location_at.
2598
2599 2010-08-16 Tom Tromey <tromey@redhat.com>
2600
2601 * NEWS: Fix typo.
2602
2603 2010-08-16 Tom Tromey <tromey@redhat.com>
2604
2605 * NEWS: Mention watch -location.
2606
2607 2010-08-16 Jan Kratochvil <jan.kratochvil@redhat.com>
2608
2609 * breakpoint.c (update_watchpoint): Add source empty line. Prefer
2610 EXP_STRING_REPARSE to EXP_STRING.
2611 (watch_command_1): Set also EXP_STRING_REPARSE.
2612 (delete_breakpoint): Free also EXP_STRING_REPARSE.
2613 * breakpoint.h (struct breakpoint): New field exp_string_reparse.
2614 Update comment for exp_string.
2615
2616 2010-08-16 Tom Tromey <tromey@redhat.com>
2617
2618 * value.c (release_value): Clear 'next' pointer.
2619 * breakpoint.c (watch_command_1): Add 'just_location' argument.
2620 (watch_command_wrapper): Update.
2621 (watch_maybe_just_location): New function.
2622 (watch_command): Update.
2623 (rwatch_command_wrapper): Update.
2624 (rwatch_command): Update.
2625 (awatch_command_wrapper): Update.
2626 (awatch_command): Update.
2627 (check_for_argument): New function.
2628 (_initialize_breakpoint): Update help text.
2629
2630 2010-08-14 Ulrich Weigand <uweigand@de.ibm.com>
2631
2632 * arm-tdep.c (arm_push_dummy_call): Handle pointers to
2633 typedef'ed function types correctly.
2634
2635 2010-08-13 Tom Tromey <tromey@redhat.com>
2636
2637 * python/python-internal.h (gdbpy_get_hook_function): Don't
2638 declare.
2639
2640 2010-08-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2641
2642 * cli/cli-logging.c (logging_overwrite, logging_redirect): Make them
2643 static.
2644
2645 2010-08-13 Ken Werner <ken.werner@de.ibm.com>
2646
2647 * python/python.c (gdbpy_solib_name): Remove the const qualifier of
2648 the format strings to be compatible with Python 2.4.
2649
2650 2010-08-13 Vladimir Prus <vladimir@codesourcery.com>
2651
2652 Easier and more stubborn MI memory read commands.
2653
2654 * mi/mi-cmds.c (mi_cmds): Register data-read-memory-bytes
2655 and data-write-memory-bytes.
2656 * mi/mi-cmds.h (mi_cmd_data_read_memory_bytes)
2657 (mi_cmd_data_write_memory_bytes): New.
2658 * mi/mi-main.c (mi_cmd_data_read_memory): Use regular target_read.
2659 (mi_cmd_data_read_memory_bytes, mi_cmd_data_write_memory_bytes):
2660 New.
2661 (mi_cmd_list_features): Add "data-read-memory-bytes" feature.
2662 * target.c (target_read_until_error): Remove.
2663 (read_whatever_is_readable, free_memory_read_result_vector)
2664 (read_memory_robust): New.
2665 * target.h (target_read_until_error): Remove.
2666 (struct memory_read_result, free_memory_read_result_vector)
2667 (read_memory_robust): New.
2668
2669 2010-08-13 Hui Zhu <teawater@gmail.com>
2670
2671 * dwarf2read.c (load_partial_comp_unit): Initialize free_cu_cleanup.
2672 (read_comp_unit): Initialize back_to.
2673
2674 2010-08-12 Daniel Jacobowitz <dan@codesourcery.com>
2675 Pedro Alves <pedro@codesourcery.com>
2676
2677 * dwarf2read.c: Include "c-lang.h" and "valprint.h".
2678 (struct dwarf2_per_objfile) <reading_partial_symbols>: New field.
2679 (struct partial_die_info) <has_template_arguments>: New field.
2680 <num_attrs>: Change type to unsigned char.
2681 <building_fullname>: New field.
2682 (dwarf2_build_psymtabs_hard): Set reading_partial_symbols. Only
2683 allocate a CU if we don't have one already. Add a cleanup for the
2684 CU.
2685 (partial_die_full_name): Handle template arguments not in
2686 DW_AT_name.
2687 (dwarf2_psymtab_to_symtab): Clear reading_partial_symbols.
2688 (load_full_comp_unit): Only allocate a CU if we don't have one
2689 already.
2690 (do_ui_file_peek_last): New.
2691 (dwarf2_compute_name): Handle template parameters not in
2692 DW_AT_name.
2693 (read_comp_unit): Read and free abbrevs if not read yet.
2694 (load_partial_dies): Handle template arguments not in DW_AT_name.
2695 (find_partial_die): If we have a CU, but no a partial dies yet,
2696 also read in the CU.
2697 (dwarf2_const_value_attr): New, abstracted out from
2698 dwarf2_const_value.
2699 (dwarf2_const_value, dwarf2_const_value_data): Adjust to use
2700 dwarf2_const_value_attr.
2701 (determine_prefix): Detect and break loops created by RCVT's debug
2702 info.
2703 (maybe_queue_comp_unit): Bail out early if reading partial
2704 symbols.
2705 (follow_die_offset): Load full CU if we have no dies.
2706 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Make public.
2707 * dwarf2loc.h (dwarf2_evaluate_loc_desc): Declare.
2708
2709 2010-08-11 Tom Tromey <tromey@redhat.com>
2710 Phil Muldoon <pmuldoon@redhat.com>
2711
2712 * python/python.c (gdbpy_run_events): New function.
2713 (gdbpy_post_event): Likewise.
2714 (gdbpy_initialize_events): Likewise.
2715 (_initialize_python): Call gdbpy_initialize_events.
2716
2717 2010-08-11 Ken Werner <ken.werner@de.ibm.com>
2718
2719 * gdb/valarith.c (vector_binop): New function.
2720 (scalar_binop): Likewise.
2721 (value_binop): Call scalar_binop or vector_binop depending on the types.
2722 * gdb/eval.c (ptrmath_type_p): Return 0 in case of TYPE_VECTOR.
2723 (evaluate_subexp_with_coercion): Add vector check to not convert vectors
2724 to pointers.
2725 * gdb/value.c (coerce_array): Add vector check to not coerce vectors.
2726
2727 2010-08-11 Brad Roberts <braddr@puremagic.com>
2728
2729 * d-lang.c (extract_identifiers): Handle multiple digits.
2730
2731 2010-08-11 Jan Kratochvil <jan.kratochvil@redhat.com>
2732
2733 Code cleanup.
2734 * dummy-frame.c (dummy_frame_unwinder): Remove its static qualifier.
2735 Rename to dummy_frame_unwind.
2736 (dummy_frame_unwind): Remove.
2737 * dummy-frame.h (dummy_frame_unwind): Reference directly the struct.
2738 * frame-unwind.c (frame_unwind_init): Use address of
2739 dummy_frame_unwind and inline_frame_unwind.
2740 * frame.c (create_sentinel_frame): Use address of
2741 sentinel_frame_unwind.
2742 * inline-frame.c (inline_frame_unwinder): Rename to
2743 inline_frame_unwind.
2744 (inline_frame_unwind): Remove.
2745 * inline-frame.h (inline_frame_unwind): Reference directly the struct.
2746 * sentinel-frame.c (sentinel_frame_unwinder): Rename to
2747 sentinel_frame_unwind.
2748 (sentinel_frame_unwind): Remove.
2749 * sentinel-frame.h (sentinel_frame_unwind): Reference directly the
2750 struct.
2751
2752 2010-08-11 Jan Kratochvil <jan.kratochvil@redhat.com>
2753
2754 Code cleanup.
2755 * frame-unwind.c (frame_unwind_find_by_frame): Remove the return type
2756 and returned value. New comment from frame-unwind.h.
2757 * frame-unwind.h (frame_unwind_find_by_frame): Remove the return type.
2758 Extend the comment.
2759 * frame.c (get_frame_id, frame_unwind_register_value)
2760 (create_new_frame, get_prev_frame_1, frame_unwinder_is)
2761 (get_frame_type, frame_unwind_arch): Do not use the return value of
2762 frame_unwind_find_by_frame.
2763
2764 2010-08-11 Phil Muldoon <pmuldoon@redhat.com>
2765 Thiago Jung Bauermann <bauerman@br.ibm.com>
2766 Tom Tromey <tromey@redhat.com>
2767
2768 * python/python.c (gdbpy_solib_address): New function.
2769 (gdbpy_decode_line): Likewise.
2770
2771 2010-08-10 Tom Tromey <tromey@redhat.com>
2772
2773 Revert gdb-add-index addition:
2774 * Makefile.in (install-only): Don't install gdb-add-index.
2775 * gdb-add-index.sh: Remove.
2776
2777 2010-08-09 Kevin Buettner <kevinb@redhat.com>
2778
2779 * remote-sim.c (gdbsim_xfer_inferior_memory): Replace
2780 `target_has_execution' check with `to_has_memory' check.
2781 (gdbsim_has_all_memory, gdbsim_has_memory): New functions.
2782 (init_gdbsym_ops): Initialize relevant fields of `gdbsim_ops'
2783 with `gdbsim_has_all_memory' and `gdbsim_has_memory'.
2784
2785 2010-08-09 Kevin Buettner <kevinb@redhat.com>
2786
2787 * remote-sim.c (program_loaded, gdbsim_desc, remote_sim_ptid)
2788 (resume_siggnal, resume_step): Move these static globals...
2789 (struct sim_inferior_data): ...into this new struct.
2790 (sim_inferior_data_key, next_pid, sim_argv, gdbsim_is_open):
2791 New static globals.
2792 (gdb_callback, callbacks_initialized): Move these globals to
2793 a point earlier in the file.
2794 (check_for_duplicate_sim_descriptor, get_sim_inferior_data)
2795 (get_sim_inferior_data_by_ptid, sim_inferior_data_cleanup)
2796 (gdbsim_close_inferior, gdbsim_resume_inferior)
2797 (gdbsim_stop_inferior): New functions.
2798 (SIM_INSTANCE_NOT_NEEDED, SIM_INSTANCE_NEEDED, INITIAL_PID):
2799 New constants.
2800 (gdbsim_fetch_register, gdbsim_store_register, gdbsim_load)
2801 (gdbsim_create_inferior, gdbsim_open, gdbsim_close, gdbsim_resume)
2802 (gdbsim_stop, gdbsim_cntrl_c, gdbsim_wait)
2803 (gdbsim_xfer_inferior_memory, gdbsim_files_info)
2804 (gdbsim_mourn_inferior, simulator_command, gdbsim_thread_alive,
2805 (gdbsim_pid_to_str): Invoke `get_sim_inferior_data' to set
2806 new local variable `sim_data' in each of these functions. Use
2807 `sim_data' to reference former globals `program_loaded',
2808 `gdbsim_desc', `remote_sim_ptid', `resume_siggnal', and
2809 `resume_step'.
2810 (gdbsim_open): Remove local variable `argv'. Put results of call
2811 to `gdb_buildargv' in `sim_argv' rather than in `argv'. Don't
2812 make a cleanup for it. Free it though when a sim instance cannot
2813 be obtained.
2814 (gdbsim_close): Free sim_argv and null it out as appropriate.
2815 Close sim instances in all inferiors.
2816 (gdbsim_cntrl_c): Stop all inferiors.
2817 (gdbsim_wait):
2818 (_initialize_remote_sim): Initialize `sim_inferior_data_key'.
2819
2820 2010-08-09 Sami Wagiaalla <swagiaal@redhat.com>
2821
2822 * dwarf2read.c (new_symbol): Add symbol to variable list at end of
2823 function after symbol construction is complete.
2824 Do the same for template symbol addition to template_symbols list.
2825
2826 2010-08-09 Sami Wagiaalla <swagiaal@redhat.com>
2827
2828 * symtab.c (symbol_get_demangled_name): Remove assertion and
2829 return NULL when language_specific.cplus_specific is not initialized.
2830 * stabsread.c (define_symbol): Set the name before calling
2831 cp_scan_for_anonymous_namespaces.
2832
2833 2010-08-09 Sami Wagiaalla <swagiaal@redhat.com>
2834
2835 * symtab.h: Renamed SYMBOL_INIT_LANGUAGE_SPECIFIC to
2836 SYMBOL_SET_LANGUAGE.
2837 (symbol_init_language_specific): Renamed to symbol_set_language.
2838 * symtab.c (symbol_init_language_specific): Removed redundant check
2839 for language_cplus.
2840 Renamed to symbol_set_language.
2841 * stabsread.c (define_symbol): Updated.
2842 (read_enum_type): Updated
2843 * psymtab.c (add_psymbol_to_bcache): Updated.
2844 * minsyms.c (install_minimal_symbols): Updated.
2845 * coffread.c (process_coff_symbol): SYMBOL_SET_LANGUAGE instead of
2846 SYMBOL_LANGUAGE to set the language.
2847 * minsyms.c (prim_record_minimal_symbol_full): Ditto.
2848 * mdebugread.c (new_symbol): Ditto.
2849 * cp-namespace.c (check_one_possible_namespace_symbol): Ditto.
2850 * dwarf2read.c (new_symbol_full): Ditto.
2851 * jv-lang.c (add_class_symbol): Ditto.
2852
2853 2010-08-07 Jan Kratochvil <jan.kratochvil@redhat.com>
2854
2855 * defs.h (make_cleanup_restore_uinteger, make_cleanup_restore_ui_file)
2856 (make_cleanup_restore_page_info)
2857 (set_batch_flag_and_make_cleanup_restore_page_info): New declarations.
2858 * gdbcmd.h (execute_command_to_string): New declaration.
2859 * python/python.c (struct restore_ui_file_closure, restore_ui_file)
2860 (make_cleanup_restore_ui_file): Move to utils.c
2861 (execute_gdb_command) <to_string>: Move ...
2862 * top.c (execute_command_to_string): ... here. Call
2863 set_batch_flag_and_make_cleanup_restore_page_info.
2864 * utils.c (make_cleanup_restore_integer): New source file blank line.
2865 (make_cleanup_restore_uinteger): New.
2866 (struct restore_ui_file_closure, do_restore_ui_file)
2867 (make_cleanup_restore_ui_file): Move here from python/python.c.
2868 (init_page_info) <batch_flag>
2869 (do_restore_page_info_cleanup, make_cleanup_restore_page_info)
2870 (set_batch_flag_and_make_cleanup_restore_page_info): New.
2871
2872 2010-08-06 Maciej W. Rozycki <macro@codesourcery.com>
2873
2874 * thread.c (add_thread_silent): Use null_ptid instead of
2875 minus_one_ptid while getting rid of stale inferior_ptid.
2876
2877 2010-08-06 Corinna Vinschen <vinschen@redhat.com>
2878
2879 * dwarf2-frame.c (struct dwarf2_cie): Add ptr_size member.
2880 Throughout, call read_encoded_value with ptr_size rather than addr_size.
2881 (decode_frame_entry_1): Remove redundant setting of
2882 addr_size. Call gdbarch_dwarf2_addr_size rather than gdbarch_ptr_bit
2883 to determine addr_size in Dwarf versions < 4. Set ptr_size dependent
2884 on examined frame section. Add comment to explain why.
2885 * gdbarch.sh (dwarf2_addr_size): Define as variable. Add lengthy
2886 comment to explain usage.
2887 * gdbarch.c: Regenerate.
2888 * gdbarch.h: Regenerate.
2889
2890 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set dwarf2_addr_size to 4.
2891
2892 2010-08-06 Jan Kratochvil <jan.kratochvil@redhat.com>
2893
2894 Code cleanup.
2895 * varobj.c (varobj_create): Move variables fi, old_fi and block to
2896 a more inner block.
2897
2898 2010-08-05 Pedro Alves <pedro@codesourcery.com>
2899
2900 * configure.tgt (alpha*-*-linux*, am33_2.0*-*-linux*, frv-*-*)
2901 (hppa*-*-linux*, ia64-*-linux*, m32r*-*-linux*, m68*-*-linux*)
2902 (microblaze*-linux-*, mips*-*-linux*, sh*-*-linux*)
2903 (sparc-*-linux*, sparc64-*-linux*, xtensa*-*-linux*): Add
2904 linux-tdep.o to gdb_target_obs.
2905
2906 2010-08-05 Marc Khouzam <marc.khouzam@ericsson.com>
2907
2908 * mi/mi-main.c (mi_cmd_remove_inferior): Properly access first
2909 argument.
2910
2911 2010-08-05 Hui Zhu <teawater@gmail.com>
2912
2913 * mips-linux-tdep.c(regset.h): New include.
2914 (mips_supply_gregset_wrapper, mips_fill_gregset_wrapper,
2915 mips_supply_fpregset_wrapper, mips_fill_fpregset_wrapper,
2916 mips64_supply_gregset_wrapper, mips64_fill_gregset_wrapper,
2917 mips64_supply_fpregset_wrapper, mips64_fill_fpregset_wrapper,
2918 mips_linux_regset_from_core_section): New functions.
2919 (fetch_core_registers, regset_core_fns): Deleted.
2920 (mips_linux_init_abi): Add mips_linux_regset_from_core_section.
2921 Deleted regset_core_fns.
2922 * mips-tdep.c(mips_gdbarch_init): Initialize tdep->gregset,
2923 tdep->gregset64, tdep->fpregset and tdep->fpregset64.
2924 * mips-tdep.h(gdbarch_tdep): Add gregset, gregset64, fpregset
2925 and fpregset64.
2926
2927 2010-08-04 Pedro Alves <pedro@codesourcery.com>
2928
2929 * s390-tdep.c: Include linux-tdep.h.
2930 (s390_gdbarch_init): Call linux_init_abi.
2931
2932 2010-08-04 Pedro Alves <pedro@codesourcery.com>
2933
2934 * corelow.c (core_pid_to_str): Default to using normal_pid_to_str
2935 instead of printing "Thread" here.
2936 * linux-tdep.c: Include inferior.h.
2937 (linux_core_pid_to_str): New.
2938 (linux_init_abi): New.
2939 * linux-tdep.h (linux_init_abi): Declare.
2940 * alpha-linux-tdep.c: Include linux-tdep.h.
2941 (alpha_linux_init_abi): Call linux_init_abi.
2942 * amd64-linux-tdep.c (amd64_linux_init_abi): Call linux_init_abi.
2943 * arm-linux-tdep.c (arm_linux_init_abi): Call linux_init_abi.
2944 * frv-linux-tdep.c: Include linux-tdep.h
2945 (frv_linux_init_abi): Call linux_init_abi.
2946 * hppa-linux-tdep.c: Include linux-tdep.h
2947 (hppa_linux_init_abi): Call linux_init_abi.
2948 * i386-linux-tdep.c (i386_linux_init_abi): Call linux_init_abi.
2949 * ia64-linux-tdep.c: Include linux-tdep.h.
2950 (ia64_linux_init_abi): Call linux_init_abi.
2951 * m32r-linux-tdep.c: Include linux-tdep.h.
2952 (m32r_linux_init_abi): Call linux_init_abi.
2953 * m68klinux-tdep.c: Include linux-tdep.h.
2954 (m68k_linux_init_abi): Call linux_init_abi.
2955 * microblaze-linux-tdep.c: Include linux-tdep.h.
2956 (microblaze_linux_init_abi): Call linux_init_abi.
2957 * mips-linux-tdep.c: Include linux-tdep.h.
2958 (mips_linux_init_abi): Call linux_init_abi.
2959 * mn10300-linux-tdep.c: Include linux-tdep.h.
2960 (am33_linux_init_osabi): Call linux_init_abi. Rename the
2961 'gdbinfo' parameter to 'info'.
2962 * ppc-linux-tdep.c: Include linux-tdep.h.
2963 (ppc_linux_init_abi): Call linux_init_abi.
2964 * sh-linux-tdep.c: Include linux-tdep.h.
2965 (sh_linux_init_abi): Call linux_init_abi.
2966 * sparc-linux-tdep.c: Include linux-tdep.h.
2967 (sparc32_linux_init_abi): Call linux_init_abi.
2968 * sparc64-linux-tdep.c: Include linux-tdep.h.
2969 (sparc64_linux_init_abi): Call linux_init_abi.
2970 * xtensa-linux-tdep.c: Include linux-tdep.h.
2971 (xtensa_linux_init_abi): Call linux_init_abi.
2972 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): New.
2973 (i386_cygwin_init_abi): Install it as gdbarch_core_pid_to_str
2974 callback.
2975
2976 2010-08-03 Doug Evans <dje@google.com>
2977
2978 * breakpoint.c (bpdisp_text): Constify bpdisps.
2979 * solib-svr4.c (solib_break_names): Constify.
2980 (bkpt_names, main_name_list): Constify.
2981 (match_main): Constify soname arg.
2982 (bfd_lookup_symbol): Remove unnecessary forward decl.
2983 Constify symname arg.
2984 (enable_break): Constify bkpt_namep.
2985 * symtab.c (search_symbols): Constify types, types2, types3, types4.
2986 (symtab_symbol_info): Constify classnames.
2987
2988 2010-08-03 Phil Muldoon <pmuldoon@redhat.com>
2989
2990 * NEWS: Document Python value inferior function calls.
2991
2992 2010-08-02 Doug Evans <dje@google.com>
2993
2994 * dwarf2read.c (dwarf_attr_name): Add DW_AT_GNU_odr_signature.
2995
2996 2010-07-31 Paul Pluzhnikov <ppluzhnikov@google.com>
2997
2998 * linux-thread-db.c (libthread_db_debug): New variable.
2999 (thread_db_find_new_threads_silently): Control verbosity with it.
3000 (try_thread_db_load_1, try_thread_db_load): Likewise.
3001 (find_new_threads_once): Likewise.
3002 (_initialize_thread_db): Set/show it.
3003
3004 2010-07-31 Jan Kratochvil <jan.kratochvil@redhat.com>
3005
3006 * common/signals.c (signals): Move the content to signals.def.
3007 Include it. Remove the INDENT comments.
3008
3009 2010-07-30 Tom Tromey <tromey@redhat.com>
3010
3011 * Makefile.in (install-only): Install gdb-add-index.
3012 * gdb-add-index.sh: New file.
3013
3014 2010-07-31 Renquan Cheng <crq@gcc.gnu.org>
3015
3016 * MAINTAINERS: Add myself for write after approval privileges.
3017
3018 2010-07-30 Jan Kratochvil <jan.kratochvil@redhat.com>
3019
3020 * symfile.c (addr_section_name): New function.
3021 (addrs_section_compar): Use it.
3022 (addr_info_make_relative): Use it. Move variable sect_name into a more
3023 inner block. Make ".dynbss" and ".sdynbss" checks more strict.
3024
3025 2010-07-30 Tom Tromey <tromey@redhat.com>
3026
3027 * configure: Rebuild.
3028 * configure.ac: Add missing case for Python 2.7.
3029
3030 2010-07-29 DJ Delorie <dj@redhat.com>
3031
3032 * rx-tdep.c (rx_analyze_prologue): Don't require branches to have
3033 conditions.
3034
3035 2010-07-29 Pedro Alves <pedro@codesourcery.com>
3036
3037 * PROBLEMS: Remove mention of all problems.
3038
3039 2010-07-28 Pedro Alves <pedro@codesourcery.com>
3040
3041 PR build/11848
3042 * configure.ac: Check for wresize.
3043 * configure, config.in: Regenerate.
3044 * tui/tui-win.c (make_visible_with_new_height): Wrap wresize call
3045 with HAVE_WRESIZE.
3046
3047 2010-07-28 Tom Tromey <tromey@redhat.com>
3048
3049 PR python/11060:
3050 * python/py-type.c (typy_legacy_template_argument): New function,
3051 extracted from typy_template_argument.
3052 (typy_template_argument): Use TYPE_TEMPLATE_ARGUMENT. Return a
3053 value when needed.
3054
3055 2010-07-28 Oleg Nesterov <oleg@redhat.com>
3056
3057 * remote.c (readchar): Call pop_target in case of SERIAL_ERROR.
3058
3059 2010-07-27 Tom Tromey <tromey@redhat.com>
3060
3061 * dwarf2read.c (dwarf2_const_value_data): Never sign extend.
3062
3063 2010-07-28 Daniel Jacobowitz <dan@codesourcery.com>
3064
3065 * dwarf2read.c (read_subroutine_type): Improve THIS detection,
3066 handling DW_AT_object_pointer, and workaround GCC PR 43053.
3067
3068 2010-07-28 Tom Tromey <tromey@redhat.com>
3069
3070 * Makefile.in (HFILES_NO_SRCDIR): Remove link-warning.h.
3071
3072 2010-07-28 Joel Brobecker <brobecker@adacore.com>
3073
3074 * remote.c (remote_download_tracepoint): Add missing gettext markup.
3075 * tracepoint.c (parse_static_tracepoint_marker_definition): Likewise.
3076
3077 2010-07-28 Joel Brobecker <brobecker@adacore.com>
3078
3079 * breakpoint.c (breakpoint_re_set_one): Move call to set_language
3080 down, just before the block that parse the breakpoint addr_string.
3081
3082 2010-07-28 Tom Tromey <tromey@redhat.com>
3083
3084 PR c++/9946:
3085 * symfile.c (reread_symbols): Clear template_symbols.
3086 * symtab.h (struct symbol) <is_cplus_template_function>: New
3087 field.
3088 (SYMBOL_IS_CPLUS_TEMPLATE_FUNCTION): New macro.
3089 (struct template_symbol): New.
3090 * symtab.c (lookup_symbol_aux_local): Use
3091 cp_lookup_symbol_imports_or_template.
3092 * objfiles.h (struct objfile) <template_symbols>: New field.
3093 * objfiles.c (relocate_one_symbol): New function.
3094 (objfile_relocate1): Use it. Relocate isolated symbols.
3095 * gdbtypes.h (struct cplus_struct_type) <n_template_arguments,
3096 template_arguments>: New fields.
3097 (TYPE_N_TEMPLATE_ARGUMENTS): New macro.
3098 (TYPE_TEMPLATE_ARGUMENTS): Likewise.
3099 (TYPE_TEMPLATE_ARGUMENT): Likewise.
3100 (lookup_typename): Update.
3101 * gdbtypes.c (lookup_typename): Constify "block" argument.
3102 * dwarf2read.c: Include vec.h.
3103 (symbolp): New typedef.
3104 (read_func_scope): Read template arguments. Allocate a
3105 template_symbol when needed.
3106 (read_structure_type): Read template arguments.
3107 (new_symbol_full): New function, from new_symbol. Handle
3108 DW_TAG_template_type_param and DW_TAG_template_value_param.
3109 (new_symbol): Rewrite as wrapper.
3110 * cp-support.h (cp_lookup_symbol_imports_or_template): Declare.
3111 * cp-namespace.c: Include language.h.
3112 (search_symbol_list): New function.
3113 (cp_lookup_symbol_imports_or_template): Likewise.
3114
3115 2010-07-28 Balazs Kezes <rlblaster@gmail.com>
3116
3117 * tui/tui-win.c (make_visible_with_new_height): Resize and move
3118 the command window to the new size and position.
3119
3120 2010-07-28 Balazs Kezes <rlblaster@gmail.com>
3121
3122 * tui/tui-win.c (tui_resize_all): Update the locator's origin's
3123 coordinates.
3124
3125 2010-07-28 Balazs Kezes <rlblaster@gmail.com>
3126
3127 * tui/tui-io.c (tui_handle_resize_during_io): Call tui_resize_all
3128 after a detecting a resize.
3129 * tui/tui-win.c (tui_resize_all): Remove tui_set_win_resized_to
3130 call.
3131
3132 2010-07-28 Pedro Alves <pedro@codesourcery.com>
3133
3134 * configure.ac: Check for resize_term.
3135 * configure, config.in: Regenerate.
3136
3137 2010-07-27 Joel Brobecker <brobecker@adacore.com>
3138
3139 * MAINTAINERS (Write After Approval): Reorder a couple of entries.
3140
3141 2010-07-27 Daniel Jacobowitz <dan@codesourcery.com>
3142
3143 * dwarf2read.c (read_string): Rename to ...
3144 (read_direct_string): ... this.
3145 (skip_one_die, read_attribute_value, dwarf_decode_line_header)
3146 (dwarf_decode_lines, dwarf_decode_macros): Adjust.
3147
3148 2010-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3149
3150 * linux-nat.c (linux_nat_lp_status_is_event): New function.
3151 (count_events_callback, select_event_lwp_callback)
3152 (cancel_breakpoints_callback, linux_nat_wait_1): Use it.
3153
3154 2010-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3155
3156 * ia64-linux-nat.c (ia64_linux_status_is_event): New function.
3157 (_initialize_ia64_linux_nat): Install it.
3158 * linux-nat.c (sigtrap_is_event, linux_nat_status_is_event)
3159 (linux_nat_set_status_is_event): New.
3160 (stop_wait_callback, count_events_callback, select_event_lwp_callback)
3161 cancel_breakpoints_callback, linux_nat_filter_event)
3162 (linux_nat_wait_1): Use linux_nat_status_is_event.
3163 * linux-nat.h (linux_nat_set_status_is_event): New prototype.
3164
3165 2010-07-27 Tom Tromey <tromey@redhat.com>
3166
3167 * NEWS: Mention labels, .gdb_index.
3168
3169 2010-07-28 CHENG Renquan <rqcheng@smu.edu.sg>
3170
3171 * cli/cli-cmds.c (disassemble_command): Add support of disassemble
3172 "start,+length" form of arguments.
3173 * NEWS: Add "Changed commands" (disassemble) section for "Changes
3174 since GDB 7.1"; and merge two separated paragraphs of disassemble
3175 description in "Changes in GDB 7.0".
3176
3177 2010-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3178
3179 * top.c (input_from_terminal_p): Return 0 on BATCH_FLAG.
3180 * utils.c (defaulted_query): Do not explicitly check for BATCH_FLAG.
3181 (fputs_maybe_filtered): Do not do filtering also on
3182 ! INPUT_FROM_TERMINAL_P.
3183
3184 2010-07-27 Joel Brobecker <brobecker@adacore.com>
3185
3186 * dwarf2read.c (dw2_find_pc_sect_symtab): Remove trailing newline
3187 in warning message.
3188
3189 2010-07-27 Phil Muldoon <pmuldoon@redhat.com>
3190
3191 * python/py-value.c (valpy_call): New Function.
3192
3193 2010-07-27 Ken Werner <ken.werner@de.ibm.com>
3194
3195 * dwarf2read.c (dwarf2_read_index): Initialize the types_list and
3196 types_list_elements variables.
3197
3198 2010-07-26 Tom Tromey <tromey@redhat.com>
3199
3200 * dwarf2loc.c (locexpr_describe_location_piece): Also recognize
3201 TLS with DW_OP_const4u or DW_OP_const8u.
3202
3203 2010-07-26 Thiago Jung Bauermann <bauerman@br.ibm.com>
3204
3205 * ppc-linux-nat.c (store_vsx_register): Use PTRACE_GETVSXREGS to get
3206 VSX registers contents.
3207
3208 2010-07-26 Jerome Guitton <guitton@adacore.com>
3209
3210 * dwarf2read.c (add_partial_symbol): Do not add a global variable if
3211 its adress is null. Add comment to explain why.
3212 (new_symbol): Ditto.
3213
3214 2010-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
3215
3216 * linux-nat.c (linux_nat_do_thread_registers): Convert STOP_SIGNAL to
3217 the host signal first.
3218
3219 2010-07-23 Tom Tromey <tromey@redhat.com>
3220
3221 * dwarf2read.c (struct dwarf2_per_objfile) <n_type_comp_units,
3222 type_comp_units>: New fields.
3223 (dw2_get_cu): New function.
3224 (create_cus_from_index): Remove unused argument.
3225 (create_signatured_type_hash_from_index): New function.
3226 (create_addrmap_from_index): Update.
3227 (dwarf2_read_index): Handle version 2.
3228 (dw2_find_last_source_symtab, dw2_forget_cached_source_info)
3229 (dw2_lookup_symtab, dw2_do_expand_symtabs_matching)
3230 (dw2_print_stats, dw2_expand_all_symtabs)
3231 (dw2_expand_symtabs_with_filename, dw2_find_symbol_file)
3232 (dw2_expand_symtabs_matching, dw2_map_symbol_filenames): Update.
3233 (dwarf2_initialize_objfile): Call create_debug_types_hash_table.
3234 (allocate_signatured_type_hash_table): New function.
3235 (add_signatured_type_cu_to_list): Likewise.
3236 (create_debug_types_hash_table): Use them. Set type_comp_units.
3237 (read_signatured_type): Ensure section data is available.
3238 (add_address_entry): Don't record empty ranges.
3239 (struct signatured_type_index_data): New.
3240 (write_one_signatured_type): New function.
3241 (write_psymtabs_to_index): Write type CUs.
3242 (save_gdb_index_command): Update comment.
3243 (process_type_comp_unit): Move inititalization of
3244 from_debug_types...
3245 (create_debug_types_hash_table): ... here.
3246
3247 2010-07-23 Jan Kratochvil <jan.kratochvil@redhat.com>
3248
3249 * gdb_gcore.sh (tmpfile): Remove the variable, its initialization,
3250 cleanup and generating of gdb script to it.
3251 (gdb): Use redirection from /dev/null. Use --nx. Turn off pagination
3252 and terminal size. Convert $tmpfile to a series of -ex-es.
3253
3254 2010-07-23 Keith Seitz <keiths@redhat.com>
3255
3256 * symtab.c (basic_lookup_transparent_type): Call pre-expand
3257 hook for STATIC_BLOCK types, too.
3258
3259 2010-07-23 Keith Seitz <keiths@redhat.com>
3260
3261 * dwarf2read.c: Remove unused typedef dwarf2_cu_per_cu_data_ptr
3262 and vector definition.
3263
3264 2010-07-23 Jan Kratochvil <jan.kratochvil@redhat.com>
3265
3266 * linux-nat.c (cancel_breakpoint): Remove unused forward declaration.
3267
3268 2010-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
3269
3270 * dwarf2read.c: Include completer.h.
3271 (save_gdb_index_command): Use matching usage command name.
3272 (_initialize_dwarf2_read): New variable c, initialize it by add_cmd.
3273 Set filename_completer for it.
3274
3275 2010-07-22 Tom Tromey <tromey@redhat.com>
3276
3277 * dwarf2read.c (create_debug_types_hash_table): Set objfile on
3278 type signature's per-CU data.
3279
3280 2010-07-22 Pedro Alves <pedro@codesourcery.com>
3281
3282 * NEWS: Mention target reported shared libraries support by
3283 default.
3284
3285 2010-07-21 Pedro Alves <pedro@codesourcery.com>
3286
3287 PR symtab/11827
3288
3289 Revert:
3290 2010-05-21 Pierre Muller <muller@ics.u-strasbg.fr>
3291 * dwarf2read.c (process_die): Also allow DW_TAG_const_type
3292 and DW_TAG_volatile_type.
3293 (new_symbol): Likewise.
3294
3295 2010-07-21 Sami Wagiaalla <swagiaal@redhat.com>
3296
3297 * eval.c (evaluate_subexp_standard): Disabled evaluation of C++
3298 function symbols before overload resolution.
3299
3300 2010-07-21 Pedro Alves <pedro@codesourcery.com>
3301
3302 * breakpoint.c (bptype_string): New, abstracted out from
3303 print_one_breakpoint_location.
3304 (print_one_breakpoint_location): Adjust.
3305 (breakpoint_1): Adjust the type column width dynamically.
3306
3307 2010-07-20 Jan Kratochvil <jan.kratochvil@redhat.com>
3308
3309 * symfile.c (find_separate_debug_file_by_debuglink): Remove
3310 a gdb_assert call, new comment.
3311
3312 2010-07-20 Jan Kratochvil <jan.kratochvil@redhat.com>
3313
3314 * linux-nat.c (linux_handle_extended_wait): Handle case when
3315 event == PTRACE_EVENT_CLONE && stopping && WSTOPSIG (status) != SIGSTOP.
3316
3317 2010-07-20 Jan Kratochvil <jan.kratochvil@redhat.com>
3318
3319 Code cleanup.
3320 * linux-nat.c (linux_nat_wait_1): Reset STATUS after calling
3321 linux_nat_wait_1. Use always LP->STATUS afterwards.
3322
3323 2010-07-20 Hui Zhu <teawater@gmail.com>
3324
3325 * inf-ptrace.c (inf_ptrace_create_inferior): Initialize back_to.
3326 (inf_ptrace_attach): Ditto.
3327
3328 2010-07-19 Jan Kratochvil <jan.kratochvil@redhat.com>
3329
3330 Make core files the process_stratum.
3331 * corefile.c (core_target): New variable.
3332 (core_file_command): Remove variable t, use core_target.
3333 * corelow.c (core_ops): Make it static.
3334 (init_core_ops): Change to process_stratum. Initialize CORE_TARGET.
3335 * defs.h (make_cleanup_unpush_target): New prototype.
3336 * gdbarch.h: Regenerate.
3337 * gdbarch.sh (core_pid_to_str): Remove core_stratum from its comment.
3338 * gdbcore.h (core_target): New declaration.
3339 * inf-ptrace.c (inf_ptrace_create_inferior, inf_ptrace_attach): New
3340 variables ops_already_pushed and back_to. Use push_target,
3341 make_cleanup_unpush_target and discard_cleanups calls.
3342 * record.c (record_open): Replace core_stratum by a core_bfd check.
3343 * target.c (target_is_pushed): New function.
3344 (find_core_target): Remove.
3345 * target.h (enum strata) <core_stratum>: Remove.
3346 (target_is_pushed): New declaration.
3347 (find_core_target): Remove declaration.
3348 * tracepoint.c (init_tfile_ops) <to_stratum>: Remove comment.
3349 * utils.c (do_unpush_target, make_cleanup_unpush_target): New functions.
3350
3351 2010-07-19 Hui Zhu <teawater@gmail.com>
3352
3353 * breakpoint.c (single_step_breakpoints_inserted): New
3354 function.
3355 * breakpoint.h (single_step_breakpoints_inserted): Extern.
3356 * infrun.c (maybe_software_singlestep): Add check code.
3357 * record.c (record_resume): Add code for software single step.
3358 (record_wait): Ditto.
3359
3360 2010-07-18 Jan Kratochvil <jan.kratochvil@redhat.com>
3361
3362 * linux-nat.c (linux_handle_extended_wait): Move variable new_lp into
3363 a more inner block. Remove its unused declaration initializer.
3364
3365 2010-07-16 Thiago Jung Bauermann <bauerman@br.ibm.com>
3366
3367 * NEWS: Mention support for the new ptrace interface and hardware
3368 accelerated watchpoint conditions on powerpc-linux.
3369
3370 2010-07-16 Ozkan Sezer <sezeroz@gmail.com>
3371
3372 * target.c (debug_to_insert_breakpoint): Instead of casting to unsigned
3373 long and %ld, use core_addr_to_string() and %s to print CORE_ADDR vars
3374 and host_address_to_string() and %s for pointers.
3375 (debug_to_remove_breakpoint): Likewise.
3376 (debug_to_region_ok_for_hw_watchpoint): Likewise.
3377 (debug_to_can_accel_watchpoint_condition): Likewise.
3378 (debug_to_stopped_data_address): Likewise.
3379 (debug_to_watchpoint_addr_within_range): Likewise.
3380 (debug_to_insert_hw_breakpoint): Likewise.
3381 (debug_to_remove_hw_breakpoint): Likewise.
3382 (debug_to_insert_watchpoint): Likewise.
3383 (debug_to_remove_watchpoint): Likewise.
3384
3385 2010-07-16 Sami Wagiaalla <swagiaal@redhat.com>
3386
3387 * symtab.h (symbol_set_demangled_name): Now takes an optional objfile*
3388 argument.
3389 (cplus_specific): New struct.
3390 * symtab.c (symbol_set_demangled_name): Updated.
3391 Use cplus_specific for cplus symbols.
3392 (symbol_get_demangled_name): Retrive the name from the cplus_specific
3393 struct for cplus symbols.
3394 (symbol_init_language_specific): Set cplus_specific for cplus symbols.
3395 (symbol_set_names): Pass objfile to symbol_set_demangled_name.
3396 * symtab.c (symbol_init_cplus_specific): New function.
3397
3398 2010-07-16 Sami Wagiaalla <swagiaal@redhat.com>
3399
3400 * symtab.h (symbol_set_demangled_name): New function.
3401 (symbol_get_demangled_name): New function.
3402 * symtab.c (symbol_set_demangled_name): New function.
3403 (symbol_get_demangled_name): New function.
3404 (symbol_init_language_specific): Use demangled_name setter and getter.
3405 (symbol_set_names): Ditto.
3406 (symbol_natural_name): Ditto.
3407 (symbol_demangled_name): Ditto.
3408 * dwarf2read.c (new_symbol): Ditto.
3409
3410 2010-07-16 Sami Wagiaalla <swagiaal@redhat.com>
3411
3412 * symtab.h: Renamed cplus_specific to mangled_lang.
3413 * symtab.c (symbol_init_language_specific): Updated.
3414 (symbol_set_names): Updated.
3415 (symbol_natural_name): Updated.
3416 (symbol_demangled_name): Updated.
3417 * ada-lang.c (ada_decode_symbol): Updated.
3418 * dwarf2read.c (new_symbol): Updated.
3419
3420 2010-07-14 Ken Werner <ken.werner@de.ibm.com>
3421
3422 * valops.c (value_assign): Do not call to value_coerce_to_target.
3423 (value_must_coerce_to_target): Return 0 in case of TYPE_VECTOR.
3424
3425 2010-07-14 Ken Werner <ken.werner@de.ibm.com>
3426
3427 * MAINTAINERS: Add myself for write after approval privileges.
3428
3429 2010-07-13 Emmanuel Thomé <Emmanuel.Thome@gmail.com>
3430
3431 * c-valprint.c (c_val_print): Add embedded_offset to address in
3432 call to val_print_array_elements.
3433
3434 2010-07-13 Tom Tromey <tromey@redhat.com>
3435
3436 * dwarf2read.c (dwarf2_read_index): Correctly set 'total_size'.
3437
3438 2010-07-13 Tom Tromey <tromey@redhat.com>
3439
3440 * dwarf2read.c (dwarf2_per_cu_text_offset): Fix reference to
3441 objfile.
3442
3443 2010-07-13 Tom Tromey <tromey@redhat.com>
3444
3445 * symfile.c (set_initial_language): Update.
3446 (deduce_language_from_filename): Argument type now const.
3447 * symtab.h (find_main_filename): Update.
3448 (deduce_language_from_filename): Update.
3449 * symtab.c (find_main_filename): Make result const.
3450 * dwarf2read.c (dw2_find_symbol_file): Change return type.
3451 * psymtab.c (find_symbol_file_from_partial): Change return type.
3452 * symfile.h (struct quick_symbol_functions) <find_symbol_file>:
3453 Make result const.
3454
3455 2010-07-13 Tom Tromey <tromey@redhat.com>
3456
3457 * breakpoint.c (save_cmdlist): No longer static.
3458 * gdbcmd.h (save_cmdlist): Declare.
3459 * symfile.c (symbol_file_add_with_addrs_or_offsets): Set
3460 OBJF_READNOW on objfile if readnow_symbol_files.
3461 * elfread.c (elf_symfile_read): Use dwarf2_initialize_objfile.
3462 (elf_sym_fns_gdb_index): New global.
3463 * dwarf2read.c: Include exceptions.h.
3464 (offset_type): New.
3465 (struct mapped_index): New.
3466 (dwarf2_per_cu_data_ptr): New typedef.
3467 (struct dwarf2_per_objfile) <using_index, index_table, gdb_index>:
3468 New fields.
3469 (GDB_INDEX_SECTION): New define.
3470 (struct dwarf2_per_cu_quick_data): New.
3471 (struct dwarf2_per_cu_data) <objfile>: New field.
3472 <psymtab>: Removed.
3473 <v>: New field.
3474 (byte_swap): New function.
3475 (MAYBE_SWAP): New macro.
3476 (INDEX_SUFFIX): New macro.
3477 (dw2_do_instantiate_symtab): New function.
3478 (dw2_instantiate_symtab): Likewise.
3479 (create_cus_from_index): Likewise.
3480 (create_addrmap_from_index): Likewise.
3481 (mapped_index_string_hash): Likewise.
3482 (find_slot_in_mapped_hash): Likewise.
3483 (dwarf2_read_index): Likewise.
3484 (dw2_setup): Likewise.
3485 (dw2_require_line_header): Likewise.
3486 (dw2_require_full_path): Likewise.
3487 (dw2_find_last_source_symtab): Likewise.
3488 (dw2_forget_cached_source_info): Likewise.
3489 (dw2_lookup_symtab): Likewise.
3490 (dw2_lookup_symbol): Likewise.
3491 (dw2_do_expand_symtabs_matching): Likewise.
3492 (dw2_pre_expand_symtabs_matching): Likewise.
3493 (dw2_print_stats): Likewise.
3494 (dw2_dump): Likewise.
3495 (dw2_relocate): Likewise.
3496 (dw2_expand_symtabs_for_function): Likewise.
3497 (dw2_expand_all_symtabs): Likewise.
3498 (dw2_expand_symtabs_with_filename): Likewise.
3499 (dw2_find_symbol_file): Likewise.
3500 (dw2_map_ada_symtabs): Likewise.
3501 (dw2_expand_symtabs_matching): Likewise.
3502 (dw2_find_pc_sect_symtab): Likewise.
3503 (dw2_map_symbol_names): Likewise.
3504 (dw2_map_symbol_filenames): Likewise.
3505 (dw2_has_symbols): Likewise.
3506 (dwarf2_gdb_index_functions): New global.
3507 (dwarf2_initialize_objfile): New function.
3508 (process_psymtab_comp_unit): Update.
3509 (add_partial_subprogram): Likewise.
3510 (dwarf2_psymtab_to_symtab): Likewise.
3511 (psymtab_to_symtab_1): Use dw2_do_instantiate_symtab.
3512 (process_full_comp_unit): Update.
3513 (find_file_and_directory): New function.
3514 (read_file_scope): Use find_file_and_directory.
3515 (dwarf2_per_cu_objfile): Update.
3516 (dwarf2_per_cu_addr_size): Update.
3517 (dwarf2_per_cu_offset_size): Update.
3518 (dwarf2_free_objfile): Free the index, if needed.
3519 (dwarf2_per_objfile_free): Unmap the index, if needed.
3520 (struct strtab_entry): New.
3521 (hash_strtab_entry): New function.
3522 (eq_strtab_entry): Likewise.
3523 (create_strtab): Likewise.
3524 (add_string): Likewise.
3525 (struct symtab_index_entry): New.
3526 (struct mapped_symtab): New.
3527 (hash_symtab_entry): New function.
3528 (eq_symtab_entry): Likewise.
3529 (delete_symtab_entry): Likewise.
3530 (create_index_table): Likewise.
3531 (create_mapped_symtab): Likewise.
3532 (cleanup_mapped_symtab): Likewise.
3533 (find_slot): Likewise.
3534 (hash_expand): Likewise.
3535 (add_index_entry): Likewise.
3536 (add_indices_to_cpool): Likewise.
3537 (write_hash_table): Likewise.
3538 (add_address_entry): Likewise.
3539 (write_psymbols): Likewise.
3540 (write_obstack): Likewise.
3541 (unlink_if_set): Likewise.
3542 (write_psymtabs_to_index): Likewise.
3543 (save_gdb_index_command): Likewise.
3544 (_initialize_dwarf2_read): Install "save gdb-index"
3545 command.
3546 (create_all_comp_units): Initialize 'objfile' field of CU.
3547 (dwarf2_locate_sections): Check for .gdb_index.
3548 * psymtab.h (dwarf2_gdb_index_functions): Declare.
3549 * symfile.h (dwarf2_initialize_objfile): Declare.
3550
3551 2010-07-13 Tom Tromey <tromey@redhat.com>
3552
3553 * symtab.c (lookup_symbol_aux_symtabs): Call pre-expand hook.
3554 (basic_lookup_transparent_type): Likewise.
3555 * symfile.h (struct quick_symbol_functions)
3556 <pre_expand_symtabs_matching>: New field.
3557 * psymtab.c (pre_expand_symtabs_matching_psymtabs): New function.
3558 (psym_functions): Update.
3559
3560 2010-07-13 Tom Tromey <tromey@redhat.com>
3561
3562 PR breakpoints/8357:
3563 * symtab.h (domain_enum_tag) <LABEL_DOMAIN>: Update comment.
3564 * linespec.c (decode_line_1): Update comment. Call decode_label.
3565 (decode_label): New function.
3566 (symbol_found): Handle LOC_LABEL.
3567 * dwarf2read.c (new_symbol) <DW_TAG_label>: Set symbol's type and
3568 domain. Call add_symbol_to_list.
3569
3570 2010-07-13 Tom Tromey <tromey@redhat.com>
3571
3572 * dwarf2loc.h (dwarf2_per_cu_text_offset): Declare.
3573 * dwarf2loc.c (find_location_expression): Use
3574 dwarf2_per_cu_text_offset.
3575 (dwarf2_evaluate_loc_desc): Likewise.
3576 (dwarf2_loc_desc_needs_frame): Likewise.
3577 (compile_dwarf_to_ax): Likewise.
3578 (loclist_describe_location): Likewise.
3579 * dwarf2read.c (dwarf2_per_cu_text_offset): New function.
3580 (dwarf2_per_cu_objfile): Update comment.
3581
3582 2010-07-12 Jan Kratochvil <jan.kratochvil@redhat.com>
3583
3584 * dwarf2read.c (read_subrange_type): Call read_subrange_type.
3585 * p-lang.c (pascal_printstr): Likewise.
3586
3587 2010-07-09 Tom Tromey <tromey@redhat.com>
3588
3589 * python/py-prettyprint.c (gdbpy_get_display_hint): Don't use
3590 'hint' if it is NULL.
3591
3592 2010-07-09 Hui Zhu <teawater@gmail.com>
3593
3594 * source.c (print_source_lines_base): Add check for noprint.
3595
3596 2010-07-08 Joel Brobecker <brobecker@adacore.com>
3597
3598 * python/python-config.py: Resync with Python 2.7 version of this
3599 script.
3600
3601 2010-07-08 Joel Brobecker <brobecker@adacore.com>
3602
3603 * NEWS: Fix typo in section name (s/GDB 7.1/GDB 7.2).
3604
3605 2010-07-07 Joel Brobecker <brobecker@adacore.com>
3606
3607 * NEWS: Create a new section for the next release branch.
3608 Rename the section of the current branch, now that it has
3609 been cut.
3610
3611 2010-07-07 Joel Brobecker <brobecker@adacore.com>
3612
3613 GDB 7.2 branch created (branch timestamp: 2010-07-07 17:00 UTC)
3614 * version.in: Bump version to 7.2.50.20100707-cvs.
3615
3616 2010-07-07 Tom Tromey <tromey@redhat.com>
3617
3618 * dwarf2read.c (dwarf2_const_value) <DW_form_addr>: Create a
3619 LOC_COMPUTED symbol.
3620 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Set new field.
3621 (dwarf2_loc_desc_needs_frame): Likewise.
3622 (compile_dwarf_to_ax) <DW_OP_addr>: Use offset.
3623 * dwarf2expr.h (struct dwarf_expr_context) <offset>: New field.
3624 * dwarf2expr.c (execute_stack_op) <DW_OP_addr>: Use offset.
3625 * dwarf2-frame.c (execute_stack_op): Set 'offset' field. Add
3626 'offset' argument.
3627 (struct dwarf2_frame_cache) <text_offset>: New field.
3628 (dwarf2_frame_cache): Set new field.
3629 (dwarf2_frame_prev_register): Update.
3630 (dwarf2_frame_sniffer): Update.
3631 (dwarf2_frame_base_sniffer): Update.
3632 (dwarf2_frame_find_fde): Add 'out_offset' argument.
3633
3634 2010-07-07 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
3635 Thiago Jung Bauermann <bauerman@br.ibm.com>
3636
3637 Support for hw accelerated condition watchpoints in booke powerpc.
3638
3639 * breakpoint.c (fetch_watchpoint_value): Rename to fetch_subexp_value
3640 and move to eval.c. Change callers.
3641 (insert_bp_location): Pass watchpoint condition in
3642 target_insert_watchpoint.
3643 (remove_breakpoint_1) Pass watchpoint condition in
3644 target_remove_watchpoint.
3645 (watchpoint_locations_match): Call
3646 target_can_accel_watchpoint_condition.
3647 * eval.c: Include wrapper.h.
3648 (fetch_subexp_value): Moved from breakpoint.c.
3649 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint):
3650 Formatting fix.
3651 (can_use_watchpoint_cond_accel): New function.
3652 (calculate_dvc): Likewise.
3653 (num_memory_accesses): Likewise.
3654 (check_condition): Likewise.
3655 (ppc_linux_can_accel_watchpoint_condition): Likewise
3656 (ppc_linux_insert_watchpoint): Call can_use_watchpoint_cond_accel,
3657 check_condition and calculate_dvc.
3658 (ppc_linux_remove_watchpoint): Likewise.
3659 (_initialize_ppc_linux_nat): Set to_can_accel_watchpoint_condition to
3660 ppc_linux_can_accel_watchpoint_condition
3661 * target.c (debug_to_insert_watchpoint): Add argument for watchpoint
3662 condition.
3663 (debug_to_remove_watchpoint): Likewise.
3664 (debug_to_can_accel_watchpoint_condition): New function.
3665 (update_current_target): Set to_can_accel_watchpoint_condition.
3666 (setup_target_debug): Set to_can_accel_watchpoint_condition.
3667 * target.h: Add opaque declaration for struct expression.
3668 (struct target_ops) <to_insert_watchpoint>,
3669 <to_remove_watchpoint>: Add new arguments to pass the watchpoint
3670 <to_can_accel_watchpoint_condition>: New member.
3671 condition. Update all callers and implementations.
3672 (target_can_accel_watchpoint_condition): New macro.
3673 * value.c (free_value_chain): New function.
3674 * value.h (fetch_subexp_value): New prototype.
3675 (free_value_chain): Likewise.
3676
3677 2010-07-07 Ulrich Weigand <uweigand@de.ibm.com>
3678
3679 * linux-nat.c (linux_nat_do_thread_registers): Use section size
3680 from gdbarch_core_regset_sections also for .reg if present.
3681
3682 * amd64-linux-tdep.c (amd64_linux_regset_sections): Fix incorrect
3683 section size for .reg.
3684 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections): Likewise.
3685 (ppc_linux_vmx_regset_sections): Likewise.
3686 (ppc_linux_fp_regset_sections): Likewise.
3687 (ppc64_linux_vsx_regset_sections): New variable.
3688 (ppc64_linux_vmx_regset_sections): Likewise.
3689 (ppc64_linux_fp_regset_sections): Likewise.
3690 (ppc_linux_init_abi): Install core_regset_section lists appropriate
3691 for current word size.
3692
3693 2010-07-06 Joel Brobecker <brobecker@adacore.com>
3694
3695 * server.c (myresume): Make static.
3696
3697 2010-07-06 Tom Tromey <tromey@redhat.com>
3698
3699 * configure, config.in: Rebuild.
3700 * configure.ac (HAVE_LIBPYTHON2_7): New define.
3701 * python/python-internal.h: Handle HAVE_LIBPYTHON2_7.
3702
3703 2010-07-06 Andreas Schwab <schwab@linux-m68k.org>
3704
3705 * breakpoint.c (_initialize_breakpoint): Add "cl" as alias for
3706 "clear".
3707
3708 2010-07-06 Ken Werner <ken.werner@de.ibm.com>
3709
3710 * gdbtypes.h (floatformats_ieee_half): Add declaration.
3711 * gdbtypes.c (floatformats_ieee_half): New variable.
3712 * doublest.c (floatformat_from_length): Set format to
3713 gdbarch_half_format if length matches.
3714 * gdbarch.sh (half_bit): New architecture method.
3715 (half_format): Likewise.
3716 * gdbarch.h: Regenerate.
3717 * gdbarch.c: Likewise.
3718
3719 2010-07-05 Jan Kratochvil <jan.kratochvil@redhat.com>
3720 Joel Brobecker <brobecker@adacore.com>
3721
3722 Fix re-run of PIE executable, PR shlibs/11776.
3723 * solib-svr4.c (svr4_relocate_main_executable) <symfile_objfile>: Remove
3724 the part of pre-set SYMFILE_OBJFILE->SECTION_OFFSETS.
3725
3726 2010-07-05 Jan Kratochvil <jan.kratochvil@redhat.com>
3727 Joel Brobecker <brobecker@adacore.com>
3728
3729 * auxv.c (memory_xfer_auxv): Update attach comment.
3730 * solib-svr4.c (svr4_special_symbol_handling): Remove the call to
3731 svr4_relocate_main_executable.
3732 (svr4_solib_create_inferior_hook): Make the call to
3733 svr4_relocate_main_executable unconditional.
3734
3735 2010-07-05 Jan Kratochvil <jan.kratochvil@redhat.com>
3736 Joel Brobecker <brobecker@adacore.com>
3737
3738 * auxv.c (ld_so_xfer_auxv): Do not error on failed read of data_address.
3739
3740 2010-07-05 Jan Kratochvil <jan.kratochvil@redhat.com>
3741 Joel Brobecker <brobecker@adacore.com>
3742
3743 Fix attaching to PIEs prelinked on the disk after the process was
3744 started.
3745 * solib-svr4.c (svr4_exec_displacement): New variable arch_size.
3746 Verify it against bfd_get_arch_size. Try to match arbitrary
3747 displacement for the phdrs comparison.
3748
3749 2010-07-02 Tom Tromey <tromey@redhat.com>
3750
3751 PR exp/11780:
3752 * libunwind-frame.c (libunwind_frame_prev_register): Don't set
3753 value as optimized-out.
3754
3755 2010-07-02 Ulrich Weigand <uweigand@de.ibm.com>
3756 Thiago Jung Bauermann <bauerman@br.ibm.com>
3757
3758 * breakpoint.c (can_use_hardware_watchpoint): Answer "what does this
3759 represent?" question in comment. Change comment to a proper sentence.
3760
3761 2010-07-02 Ken Werner <ken.werner@de.ibm.com>
3762
3763 * c-valprint.c (c_val_print): Fix printing of character vectors.
3764
3765 2010-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3766
3767 * spu-tdep.c (spu_catch_start): Adjust the caller of changed
3768 create_breakpoint prototype.
3769
3770 2010-07-01 Pedro Alves <pedro@codesourcery.com>
3771
3772 * breakpoint.c (BREAK_ARGS_HELP, _initialize_breakpoint): Clarify
3773 usefulness suggestion of multiple breakpoints at same location.
3774
3775 2010-07-01 Pedro Alves <pedro@codesourcery.com>
3776
3777 * breakpoint.c (BREAK_ARGS_HELP): Add missing `the'.
3778
3779 2010-07-01 Pedro Alves <pedro@codesourcery.com>
3780
3781 * dwarf2loc.c (locexpr_tracepoint_var_ref)
3782 (loclist_tracepoint_var_ref): Handle optimized out values.
3783
3784 2010-07-01 Pedro Alves <pedro@codesourcery.com>
3785
3786 * breakpoint.c (update_watchpoint, _initialize_breakpoint): Remove
3787 unnecessary space in string.
3788 * filesystem.c (_initialize_filesystem): Ditto.
3789 * frame.c (_initialize_frame): Ditto.
3790 * infcmd.c (step_once): Ditto.
3791 * infrun.c (_initialize_infrun): Ditto.
3792 * linux-nat.c (linux_child_follow_fork): Ditto.
3793 * maint.c (maintenance_deprecate): Ditto.
3794 * memattr.c (_initialize_mem): Ditto.
3795 * mips-tdep.c (_initialize_mips_tdep): Ditto.
3796 * monitor.c (monitor_open): Ditto.
3797 * procfs.c (procfs_xfer_memory): Ditto.
3798 * reverse.c (bookmarks_info): Ditto.
3799 * sh64-tdep.c (sh64_show_media_regs, sh64_show_compact_regs): Ditto.
3800 * stack.c (_initialize_stack): Ditto.
3801 * tracepoint.c (_initialize_tracepoint): Ditto.
3802 * xtensa-tdep.c (xtensa_supply_gregset,
3803 xtensa_regset_from_core_section): Ditto.
3804
3805 2010-07-01 Tom Tromey <tromey@redhat.com>
3806
3807 * value.h (struct lval_funcs) <check_any_valid>: Rename from
3808 check_all_valid.
3809 * value.c (value_entirely_optimized_out): Invert result. Update
3810 for new function name.
3811
3812 2010-07-01 Pedro Alves <pedro@codesourcery.com>
3813
3814 Static tracepoints support.
3815
3816 * NEWS: Mention new support for static tracepoints.
3817 (New packets): Mention qTfSTM, qTsSTM, qTSTMat and
3818 qXfer:statictrace:read.
3819 (New features in the GDB remote stub, GDBserver): Mention static
3820 tracepoints support using an UST based backend.
3821 (New commands): Mention "info static-tracepoint-markers" and
3822 "strace".
3823 * breakpoint.c (is_marker_spec): New.
3824 (is_tracepoint): Handle static tracepoints.
3825 (validate_commands_for_breakpoint): Static tracepoints can't do
3826 while-stepping.
3827 (static_tracepoints_here): New.
3828 (bpstat_what): Handle static tracepoints.
3829 (print_one_breakpoint_location, allocate_bp_location, mention):
3830 Ditto.
3831 (create_breakpoint_sal): Ditto.
3832 (decode_static_tracepoint_spec): New.
3833 (create_breakpoint): Replace `hardwareflag', and `traceflag' with
3834 `type_wanted'. Adjust. Handle static tracepoint marker
3835 locations.
3836 (break_command_1): Adjust.
3837 (update_static_tracepoint): New.
3838 (update_breakpoint_locations): Handle static tracepoints.
3839 (breakpoint_re_set_one): Handle static tracepoint marker
3840 locations.
3841 (disable_command, enable_command): Handle static tracepoints.
3842 (trace_command, ftrace_command): Adjust.
3843 (strace_command): New.
3844 (create_tracepoint_from_upload): Adjust.
3845 (save_breakpoints): Handle static tracepoints.
3846 (_initialize_breakpoint): Install the "strace" command.
3847 * breakpoint.h (enum bptype): New bp_static_tracepoint type.
3848 (struct breakpoint): New fields static_trace_marker_id and
3849 static_trace_marker_id_idx.
3850 (breakpoints_here_p): Declare.
3851 (create_breakpoint): Adjust.
3852 (static_tracepoints_here): Declare.
3853 * remote.c (struct remote_state) <static_tracepoints>: New field.
3854 (PACKET_qXfer_statictrace_read, PACKET_StaticTracepoints): New.
3855 (remote_static_tracepoint_marker_at): New.
3856 (remote_static_tracepoint_markers_by_strid): New.
3857 (remote_static_tracepoint_feature): New.
3858 (remote_disconnected_tracing_feature): Handle "StaticTracepoints".
3859 (remote_xfer_partial): Handle TARGET_OBJECT_STATIC_TRACE_DATA.
3860 (remote_supports_static_tracepoints): New.
3861 (remote_download_tracepoint): Download static tracepoints.
3862 (init_remote_ops): Install remote_static_tracepoint_marker_at and
3863 remote_static_tracepoint_markers_by_strid.
3864 (_initialize_remote): Install set|show remote static-tracepoints,
3865 and set|show remote read-sdata-object commands.
3866 * target.c (update_current_target): Inherit and default
3867 to_static_tracepoint_marker_at, and
3868 to_static_tracepoint_markers_by_strid.
3869 * target.h (static_tracepoint_marker): Forward declare.
3870 (enum target_object): New object TARGET_OBJECT_STATIC_TRACE_DATA.
3871 (static_tracepoint_marker_p): New typedef.
3872 (DEF_VEC_P(static_tracepoint_marker_p)): New VEC type.
3873 (struct target_ops): New fields to_static_tracepoint_marker_at and
3874 to_static_tracepoint_markers_by_strid.
3875 (target_static_tracepoint_marker_at)
3876 (target_static_tracepoint_markers_by_strid): New.
3877 * tracepoint.c: Include source.h.
3878 (validate_actionline): Handle $_sdata.
3879 (struct collection_list): New field strace_data.
3880 (add_static_trace_data): New.
3881 (clear_collection_list): Clear strace_data.
3882 (stringify_collection_list): Account for a possible static trace
3883 data collection.
3884 (encode_actions_1): Encode an $_sdata collection.
3885 (parse_tracepoint_definition): Handle static tracepoints.
3886 (parse_static_tracepoint_marker_definition): New.
3887 (release_static_tracepoint_marker): New.
3888 (print_one_static_tracepoint_marker): New.
3889 (info_static_tracepoint_markers_command): New.
3890 (sdata_make_value): New.
3891 (_initialize_tracepoint): Create the $_sdata convenience variable.
3892 Add the "info static-tracepoint-markers" command.
3893 Mention $_sdata in the "collect" command's help output.
3894 * tracepoint.h (struct static_tracepoint_marker): New.
3895 (parse_static_tracepoint_marker_definition)
3896 (release_static_tracepoint_marker): Declare.
3897 * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust.
3898 * python/py-breakpoint.c (bppy_new): Adjust.
3899
3900 2010-06-30 Joel Brobecker <brobecker@adacore.com>
3901
3902 * python/python-internal.h (_XOPEN_SOURCE): Undefine before
3903 including Python.h.
3904
3905 2010-06-29 Doug Evans <dje@google.com>
3906
3907 PR gdb/11702
3908 * dwarf2read.c (dwarf2_add_field): Only create a symbol if
3909 DW_AT_external is present.
3910
3911 PR gdb/11702
3912 * NEWS: Add entry.
3913 * dwarf2read.c (dwarf2_add_field): If DW_AT_const_value is present,
3914 create a symbol for the field and record the value.
3915 (new_symbol): Handle DW_TAG_member.
3916 * gdbtypes.c (field_is_static): Remove FIXME.
3917 * symtab.c (search_symbols): When searching for VARIABLES_DOMAIN,
3918 only ignore LOC_CONST symbols that are enums.
3919
3920 * dwarf2read.c: Remove trailing whitespace.
3921
3922 Delete FIELD_LOC_KIND_DWARF_BLOCK, unused.
3923 * gdbtypes.h (enum field_loc_kind): Delete FIELD_LOC_KIND_DWARF_BLOCK.
3924 (struct main_type, field loc): Delete dwarf_block.
3925 (FIELD_DWARF_BLOCK): Delete.
3926 (SET_FIELD_DWARF_BLOCK): Delete.
3927 (TYPE_FIELD_DWARF_BLOCK): Delete.
3928 * gdb-gdb.py (StructMainTypePrettyPrinter.struct_field_location_img):
3929 Update.
3930
3931 2010-06-29 Hui Zhu <teawater@gmail.com>
3932
3933 * record.c (set_record_pic_cmdlist,
3934 show_record_pic_cmdlist): New variables.
3935 (set_record_pic_command,
3936 show_record_pic_command): New functions.
3937 (record_pic_function, record_pic_line, record_pic_enum,
3938 set_record_pic_type, record_pic_hide_nofunction,
3939 record_pic_hide_nosource, record_pic_hide_same): New variables.
3940 (record_pic_fputs): New function.
3941 (function_list, node_list, edge_list): New struct.
3942 (function_list, node_list, edge_list): New variables.
3943 (record_pic_cleanups, record_pic_node,
3944 record_pic_edge, cmd_record_pic): New functions.
3945 (_initialize_record): Add new commands for record pic.
3946
3947 2010-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3948
3949 * dwarf2read.c (read_structure_type) <fi.typedef_field_list>: Call
3950 ALLOCATE_CPLUS_STRUCT_TYPE.
3951
3952 2010-06-28 Phil Muldoon <pmuldoon@redhat.com>
3953 Tom Tromey <tromey@redhat.com>
3954 Thiago Jung Bauermann <bauerman@br.ibm.com>
3955
3956 * value.c (pack_unsigned_long): New function.
3957 (value_from_ulongest): New function.
3958 * value.h (value_from_ulongest): Declare.
3959 * python/python.c (_initialize_python): Call
3960 gdbpy_initialize_thread and gdbpy_initialize_inferior.
3961 * python/python-internal.h: Define thread_object.
3962 (gdbpy_inferiors, gdbpy_selected_thread)
3963 (frame_info_to_frame_object, create_thread_object)
3964 (find_thread_object, find_inferior_object)
3965 (gdbpy_initialize_thread, gdbpy_initialize_inferiors)
3966 (gdbpy_is_value_object, get_addr_from_python): Declare.
3967 * python/py-value.c (builtin_type_upylong): Define.
3968 (convert_value_from_python): Add logic for ulongest.
3969 (gdbpy_is_value_object): New function.
3970 * python/py-utils.c (get_addr_from_python): New function.
3971 * python/py-frame.c (frame_info_to_frame_object): Return a PyObject.
3972 (gdbpy_selected_frame): Use PyObject over frame_info.
3973 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-inferior and
3974 py-infthread.
3975 (SUBDIR_PYTHON_SRCS): Likewise.
3976 (py-inferior.o): New Rule.
3977 (py-infthread.o): New Rule.
3978 * python/py-inferior.c: New File.
3979 * python/py-infthread.c: New File.
3980
3981 2010-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3982
3983 * c-typeprint.c (c_type_print_base): For no fields check include also
3984 TYPE_TYPEDEF_FIELD_COUNT. Print new typedefs section.
3985 * dwarf2read.c (struct typedef_field_list)
3986 (struct field_info) <typedef_field_list, typedef_field_list_count>: New.
3987 (dwarf2_add_typedef): New.
3988 (read_structure_type): Call dwarf2_add_typedef for DW_TAG_typedef.
3989 Copy also FI.TYPEDEF_FIELD_LIST.
3990 * gdbtypes.h (struct typedef_field)
3991 (struct cplus_struct_type) <typedef_field, typedef_field_count>
3992 (TYPE_TYPEDEF_FIELD_ARRAY, TYPE_TYPEDEF_FIELD, TYPE_TYPEDEF_FIELD_NAME)
3993 (TYPE_TYPEDEF_FIELD_TYPE, TYPE_TYPEDEF_FIELD_COUNT): New.
3994
3995 2010-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3996
3997 * cp-namespace.c (cp_lookup_nested_type): New variable
3998 concatenated_name. Turn the current return condition into a reverse
3999 one. Call also lookup_static_symbol_aux on the constructed qualified
4000 name.
4001 * symtab.c (lookup_symbol_aux): Move variable objfile and searching in
4002 other files into a called ...
4003 (lookup_static_symbol_aux): ... new function here.
4004 * symtab.h (lookup_static_symbol_aux): New prototype.
4005 * valops.c (value_maybe_namespace_elt): Call also
4006 lookup_static_symbol_aux if we failed otherwise.
4007
4008 2010-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4009
4010 Fix PR c++/11703 and PR gdb/1448.
4011 * c-exp.y (yylex) <last_was_coloncolon && first_was_coloncolon>: Add
4012 FIRST_ITER check.
4013
4014 2010-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4015
4016 Fix modification of cplus_struct_default.
4017 * dwarf2read.c (dwarf2_add_member_fn) <no DW_AT_vtable_elem_location>:
4018 Call ALLOCATE_CPLUS_STRUCT_TYPE.
4019 * gdbtypes.c (cplus_struct_default): New empty initializer, comment it.
4020
4021 2010-06-28 Joel Brobecker <brobecker@adacore.com>
4022
4023 * NEWS: Add entry announcing the python directory.
4024
4025 2010-06-28 Tom Tromey <tromey@redhat.com>
4026
4027 * dwarf2read.c (read_structure_type): Allocate null cleanup later.
4028
4029 2010-06-28 Doug Evans <dje@google.com>
4030
4031 * breakpoint.c (breakpoint_sals_to_pc): Delete arg address, unused.
4032 All callers updated.
4033
4034 2010-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4035
4036 * cp-valprint.c (cp_print_value_fields) <recurse == 0>: Call
4037 obstack_begin after each obstack_free.
4038
4039 2010-06-27 Doug Evans <dje@google.com>
4040
4041 * value.c (value_static_field): Use `switch' instead of `if'.
4042 Assert-fail if passed invalid TYPE_FIELD_LOC_KIND.
4043
4044 * valops.c (search_struct_field): Fix typo in error message.
4045
4046 2010-06-26 Ulrich Weigand <uweigand@de.ibm.com>
4047
4048 * dwarf2expr.c (execute_stack_op): Place preprocessor
4049 directives at the start of the source line.
4050
4051 2010-06-25 Paul Hilfinger <hilfinger@adacore.com>
4052
4053 * defs.h (make_command_stats_cleanup): Declare.
4054 (set_display_time): Declare.
4055 (set_display_space): Declare.
4056 * event-top.c (command_handler): Use make_command_stats_cleanup.
4057 * main.c (display_time, display_space): Move definitions to utils.c.
4058 (captured_main): Use make_command_stats_cleanup to get start-up
4059 statistics.
4060 Use set_display_time and set_display_space for processing OPT_STATISTICS
4061 case.
4062 * maint.c (maintenance_time_display): Use set_display_time.
4063 (maintenance_space_display): Use set_display_space.
4064 * top.c (execute_command): Remove obsolete 'maint time' code.
4065 (command_loop): Use make_command_stats_cleanup.
4066 * utils.c (struct cmd_stats): Structure for storing initial time
4067 and space usage.
4068 (display_time, display_space): Move definitions here from utils.c.
4069 (set_display_time): New function.
4070 (set_display_space): New function.
4071 (make_command_stats_cleanup): New function.
4072 (report_command_stats): New auxiliary function for
4073 make_command_stats_cleanup.
4074
4075 2010-06-25 Ulrich Weigand <uweigand@de.ibm.com>
4076
4077 * solib-spu.c (append_ocl_sos): Fix xsnprintf statement for
4078 hosts where CORE_ADDR is long long.
4079
4080 2010-06-25 Tom Tromey <tromey@redhat.com>
4081
4082 PR python/10808:
4083 * python/python.c (execute_gdb_command): Add keywords. Accept
4084 "to_string" argument.
4085 (struct restore_ui_file_closure): New.
4086 (restore_ui_file): New function.
4087 (make_cleanup_restore_ui_file): Likewise.
4088 (GdbMethods) <execute>: Update.
4089
4090 2010-06-25 Ulrich Weigand <uweigand@de.ibm.com>
4091
4092 * s390-tdep.c (s390_push_dummy_call): Error on stack overflow
4093 during inferior call stack frame setup.
4094
4095 2010-06-25 Ken Werner <ken.werner@de.ibm.com>
4096
4097 * solib-spu.c: Include "exception.h".
4098 (ocl_program_data_key): New variable.
4099 (append_ocl_sos): New function.
4100 (ocl_enable_break): Likewise.
4101 (spu_current_sos): Call append_ocl_sos.
4102 (spu_solib_loaded): Call ocl_enable_break.
4103 (_initialize_spu_solib): Register ocl_program_data_key.
4104
4105 2010-06-25 Ulrich Weigand <uweigand@de.ibm.com>
4106
4107 * cp-support.c (reset_directive_searched): New function.
4108 (make_symbol_overload_list_using): Prevent recursive calls.
4109
4110 2010-06-25 Phil Muldoon <pmuldoon@redhat.com>
4111
4112 * printcmd.c (print_variable_and_value): Print error message on
4113 caught exception.
4114
4115 2010-06-25 Ulrich Weigand <uweigand@de.ibm.com>
4116
4117 * dwarf2expr.h (struct dwarf_value_location): Use ULONGEST as type
4118 of stack values.
4119 (struct dwarf_expr_piece): Rename "expr" member to "mem". Add new
4120 "value" member.
4121 (dwarf_expr_push): Change input type to ULONGEST.
4122 (dwarf_expr_fetch): Change return type to ULONGEST.
4123 (dwarf_expr_fetch_address): Add prototype.
4124 (dwarf2_read_address): Remove prototype.
4125 * dwarf2expr.c (dwarf_expr_push): Use ULONGEST as type of stack values.
4126 Truncate stack values to ctx->addr_size bytes.
4127 (dwarf_expr_fetch): Change return value to ULONGEST.
4128 (dwarf_expr_fetch_address): New function.
4129 (add_piece): Use dwarf_expr_fetch_address instead of dwarf_expr_fetch
4130 when appropriate. Update for struct dwarf_expr_piece changes.
4131 (dwarf2_read_address): Remove.
4132 (unsigned_address_type): Remove.
4133 (signed_address_type): Remove.
4134 (execute_stack_op): Use dwarf_expr_fetch_address instead of
4135 dwarf_expr_fetch when appropriate. Use ULONGEST as type of stack
4136 values. Perform operations on ULONGEST instead of on GDB values,
4137 sign-extending from ctx->addr_size bytes as needed. Read DW_OP_addr
4138 values and DW_OP_deref results as unsigned integers.
4139 * dwarf2loc.c (read_pieced_value): Update for struct dwarf_expr_piece
4140 changes.
4141 (write_pieced_value): Likewise.
4142 (dwarf2_evaluate_loc_desc): Use dwarf_expr_fetch_address instead of
4143 dwarf_expr_fetch when appropriate.
4144 (compile_dwarf_to_ax): Read DW_OP_addr values as unsigned integers.
4145 * dwarf2-frame.c (execute_stack_op): Use dwarf_expr_fetch_address
4146 instead of dwarf_expr_fetch when appropriate.
4147
4148 2010-06-25 Pierre Muller <muller@ics.u-strasbg.fr>
4149
4150 * c-typeprint.c (c_print_typedef): Append new type name for typedefs.
4151
4152 2010-06-24 Joel Brobecker <brobecker@adacore.com>
4153
4154 * python/python.c (_initialize_python): Add new "constant"
4155 PYTHONDIR in gdb module. Insert this path at the head of
4156 sys.path. Set gdb.__path__ to gdb.PYTHONDIR + '/gdb' and
4157 exec its __init__.py script if it exists in that directory.
4158
4159 2010-06-24 Kevin Buettner <kevinb@redhat.com>
4160
4161 * rx-tdep.c (RX_ACC_REGNUM): Define.
4162 (RX_NUM_REGS): Redefine to 26.
4163 (rx_register_name): Add register "acc". Change order of several
4164 registers. Change name of "vct" register to "fintv" to match RX
4165 documentation.
4166 (rx_register_type): Add case for RX_ACC_REGNUM.
4167
4168 2010-06-24 Tom Tromey <tromey@redhat.com>
4169
4170 * psymtab.c (lookup_partial_symbol): Mark definition as static.
4171
4172 2010-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
4173 Tom Tromey <tromey@redhat.com>
4174
4175 Fix GDB startup on readonly filesystem.
4176 * charset.c (find_charset_names): Use PEX_USE_PIPES for pex_init.
4177
4178 2010-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
4179 Pedro Alves <pedro@codesourcery.com>
4180
4181 Fix PR 9436.
4182 * breakpoint.c (handle_jit_event): New function.
4183 (bpstat_what): Remove enum class, kc, ss, sn, sgl, slr, clr, sr, shl,
4184 jit, err, table and bs_class. New variables shlib_event, jit_event,
4185 this_action and bptype. Change bs_class assignments to this_action
4186 assignments. new unhandled bptype internal error. Move here
4187 shlib_event and jit_event handling from handle_inferior_event.
4188 * breakpoint.h (enum bpstat_what_main_action): Extend the comment.
4189 Reorder items. Remove BPSTAT_WHAT_CHECK_SHLIBS and
4190 BPSTAT_WHAT_CHECK_JIT.
4191 * inferior.h (debug_infrun, stop_on_solib_events): New declarations.
4192 * infrun.c (debug_infrun, stop_on_solib_events): Remove static.
4193 (handle_inferior_event): Reinitialize frame and gdbarch after
4194 bpstat_what call. Move BPSTAT_WHAT_CHECK_SHLIBS and
4195 BPSTAT_WHAT_CHECK_JIT handling to bpstat_what. Reinitialize even
4196 gdbarch when frame gets reinitialized.
4197
4198 2010-06-24 Hui Zhu <teawater@gmail.com>
4199
4200 * printcmd.c (ui_printf): New function.
4201 (printf_command): Call ui_printf.
4202 (_initialize_printcmd): New command "eval".
4203
4204 2010-06-23 Ulrich Weigand <uweigand@de.ibm.com>
4205
4206 * infrun.c (handle_inferior_event): Handle presence of single-step
4207 breakpoints for TARGET_WAITKIND_FORKED and TARGET_WAITKIND_VFORKED.
4208 Cancel single-step breakpoints for TARGET_WAITKIND_EXITED,
4209 TARGET_WAITKIND_SIGNALED, and TARGET_WAITKIND_EXECD.
4210 * breakpoint.c (detach_single_step_breakpoints): New function.
4211 (detach_breakpoints): Call it.
4212 (cancel_single_step_breakpoints): New function.
4213 * breakpoint.h (cancel_single_step_breakpoints): Add prototype.
4214
4215 * spu-tdep.c (spu_memory_remove_breakpoint): New function.
4216 (spu_gdbarch_init): Install it.
4217
4218 2010-06-23 Jan Kratochvil <jan.kratochvil@redhat.com>
4219
4220 * configure.ac: Always set RDYNAMIC at least as `-rdynamic'.
4221 * configure: Regenerate.
4222
4223 2010-06-22 Hui Zhu <teawater@gmail.com>
4224
4225 * i386-tdep.c (i386_record_lea_modrm): Change warning to query.
4226 (i386_process_record): Ditto.
4227 * record.c (record_memory_query): New variable.
4228 (_initialize_record): New command "set record memory-query".
4229 * record.h (record_memory_query): New extern.
4230
4231 2010-06-21 Doug Evans <dje@google.com>
4232
4233 * i386-tdep.h (i386_displaced_step_copy_insn): Declare.
4234 * i386-tdep.c (i386_displaced_step_copy_insn): New function.
4235 (i386_syscall_p): Change type of lengthp to int.
4236 (i386_displaced_step_fixup): Handle kernels that run one past a
4237 syscall insn.
4238 * i386-linux-tdep.c (i386_linux_init_abi): Use
4239 i386_displaced_step_copy_insn instead of
4240 simple_displaced_step_copy_insn.
4241
4242 2010-06-21 Tom Tromey <tromey@redhat.com>
4243
4244 * dwarf2read.c (read_base_type): Handle DW_ATE_UTF.
4245 (dwarf_type_encoding_name): Likewise.
4246
4247 2010-06-21 Tom Tromey <tromey@redhat.com>
4248
4249 * p-valprint.c (pascal_val_print): Use TYPE_ERROR_NAME.
4250 * p-typeprint.c (pascal_type_print_base): Use TYPE_ERROR_NAME.
4251 * m2-valprint.c (m2_val_print): Use TYPE_ERROR_NAME.
4252 * gdbtypes.h (TYPE_ERROR_NAME): New macro.
4253 * f-valprint.c (f_val_print): Use TYPE_ERROR_NAME.
4254 * f-typeprint.c (f_type_print_base): Use TYPE_ERROR_NAME.
4255 * dwarf2read.c (tag_type_to_type): Create a new error type on
4256 failure.
4257 * c-valprint.c (c_val_print): Use TYPE_ERROR_NAME.
4258 * c-typeprint.c (c_type_print_base): Use TYPE_ERROR_NAME.
4259
4260 2010-06-21 Michael Snyder <msnyder@vmware.com>
4261
4262 * breakpoint.c (_initialize_breakpoint): Use add_prefix_cmd,
4263 not add_abbrev_prefix_cmd, for "enable breakpoints".
4264
4265 2010-06-21 Ulrich Weigand <uweigand@de.ibm.com>
4266
4267 * dwarf2loc.c (find_location_expression): Add relocation offset
4268 to base-address-selection entry base addresses. Read addresses
4269 (and offsets) as signed/unsigned integers, depending on the
4270 BFD's sign_extend_vma flag. Do not call dwarf2_read_address.
4271 (loclist_describe_location): Likewise.
4272 (disassemble_dwarf_expression): Read DW_OP_addr operand as
4273 unsigned integer. Do not call dwarf2_read_address.
4274 (locexpr_describe_location): Likewise for DW_OP_GNU_push_tls_address.
4275
4276 2010-06-19 Ulrich Weigand <uweigand@de.ibm.com>
4277
4278 * spu-tdep.c (spu_frame_unwind_cache): Use LSLR register
4279 value instead of hard-coded SPU_LS_SIZE.
4280 (spu_software_single_step): Likewise.
4281 * spu-tdep.h (SPU_LS_SIZE): Remove.
4282
4283 2010-06-19 Ulrich Weigand <uweigand@de.ibm.com>
4284
4285 * spu-multiarch.c (spu_xfer_partial): Wrap around local store
4286 limit on local store memory accesses.
4287 * spu-linux-nat.c (spu_xfer_partial): Likewise.
4288 * spu-tdep.c (spu_lslr): Remove.
4289 (spu_pointer_to_address): Do not truncate addresses.
4290 (spu_integer_to_address): Likewise.
4291 (spu_overlay_new_objfile): Use SPU_OVERLAY_LMA.
4292 * spu-tdep.h: Add comments.
4293 (SPUADDR_SPU): Respect SPU_OVERLAY_LMA bit.
4294 (SPU_OVERLAY_LMA): Define.
4295
4296 2010-06-18 Stan Shebs <stan@codesourcery.com>
4297
4298 * osdata.c (get_osdata): Warn separately if target does not report
4299 type list.
4300 (info_osdata_command): Allow empty type, report error if target
4301 does not return available types of OS data.
4302 * linux-nat.c (linux_nat_xfer_osdata): Report list of OS data
4303 types if no annex supplied.
4304
4305 * thread.c (thread_id_make_value): Make a value representing the
4306 current thread.
4307 (_initialize_thread): Create $_thread.
4308
4309 2010-06-17 Joel Brobecker <brobecker@adacore.com>
4310
4311 * dwarf2read.c (psymtabs_addrmap_cleanup): Add empty line after
4312 last local variable declaration. No real code change.
4313
4314 2010-06-17 Tom Tromey <tromey@redhat.com>
4315
4316 * dwarf2read.c (psymtabs_addrmap_cleanup): New function.
4317 (dwarf2_build_psymtabs_hard): Use it. Create addrmap on a
4318 temporary obstack.
4319
4320 2010-06-16 Sergio Durigan Junior <sergiodj@redhat.com>
4321 Jan Kratochvil <jan.kratochvil@redhat.com>
4322
4323 * breakpoint.c: Include parser-defs.h.
4324 (watchpoint_exp_is_const): New function.
4325 (watch_command_1): Call watchpoint_exp_is_const to check
4326 if the expression is constant.
4327
4328 2010-06-15 Andreas Schwab <schwab@linux-m68k.org>
4329
4330 * configure.ac: Check for RDYNAMIC also for cross builds.
4331 * configure: Regenerate.
4332
4333 2010-06-15 Pedro Alves <pedro@codesourcery.com>
4334
4335 * Makefile.in (ALL_TARGET_OBS): Remove solib-target.o.
4336 (SFILES): Remove solib-null.c, add solib-target.c.
4337 (COMMON_OBS): Remove solib-null.o, add solib-target.o.
4338 (ALLDEPFILES): Remove solib-target.c.
4339 * solib-target.c (_initialize_solib_target): Set
4340 current_target_so_ops to solib_target_so_ops if not already set.
4341 * solib-null.c: Delete.
4342
4343 2010-06-14 Pedro Alves <pedro@codesourcery.com>
4344
4345 * NEWS: Mention GDBserver's JIT compilation of tracepoint
4346 bytecode.
4347
4348 2010-06-14 Ulrich Weigand <uweigand@de.ibm.com>
4349
4350 * cp-valprint.c (cp_print_static_field): Members of
4351 dont_print_stat_array_obstack are of type "struct type *".
4352 (_initialize_cp_valprint): Likewise.
4353
4354 2010-06-14 Ulrich Weigand <uweigand@de.ibm.com>
4355
4356 * frame.c (frame_register_unwind): Do not access contents
4357 of "optimized out" unwound register value.
4358
4359 2010-06-14 Jan Kratochvil <jan.kratochvil@redhat.com>
4360
4361 * ada-lang.h (ada_print_type): Make varstring const.
4362 * ada-typeprint.c (print_func_type): Make name const.
4363 (ada_print_type): Make varstring const.
4364 * c-lang.h (c_print_type): Make varstring const.
4365 * c-typeprint.c (c_print_type): Likewise.
4366 * f-lang.h (f_print_type): Likewise.
4367 * f-typeprint.c (f_print_type): Likewise.
4368 * jv-lang.h (java_print_type): Likewise.
4369 * jv-typeprint.c (java_print_type): Likewise.
4370 * language.c (unk_lang_print_type): Likewise.
4371 * language.h (struct language_defn) <la_print_type>: Likewise.
4372 * m2-lang.h (m2_print_type): Likewise.
4373 * m2-typeprint.c (m2_print_type): Likewise.
4374 * p-lang.h (pascal_print_type): Likewise.
4375 * p-typeprint.c (pascal_print_type): Likewise.
4376
4377 2010-06-11 Stan Shebs <stan@codesourcery.com>
4378
4379 Add per-operation permission flags.
4380
4381 * target.h (struct target_ops): New method to_set_permissions.
4382 (target_set_permissions): New macro.
4383 (target_insert_breakpoint): Change macro to function.
4384 (target_remove_breakpoint): Ditto.
4385 (target_stop): Ditto.
4386 (may_write_registers): Declare.
4387 (may_write_memory): Declare.
4388 (may_insert_breakpoints): Declare.
4389 (may_insert_tracepoints): Declare.
4390 (may_insert_fast_tracepoints): Declare.
4391 (may_stop): Declare.
4392 * target.c (may_write_registers, may_write_registers_1): New globals.
4393 (may_write_memory, may_write_memory_1): New globals.
4394 (may_insert_breakpoints, may_insert_breakpoints_1): New globals.
4395 (may_insert_tracepoints, may_insert_tracepoints_1): New globals.
4396 (may_insert_fast_tracepoints, may_insert_fast_tracepoints_1): New
4397 globals.
4398 (may_stop, may_stop_1): New global.
4399 (target_xfer_partial): Test for write permission.
4400 (target_store_registers): Ditto.
4401 (target_insert_breakpoint): New function.
4402 (target_remove_breakpoint): New function.
4403 (target_stop): New function.
4404 (_initialize_targets): Add new set/show variables.
4405 (set_write_memory_permission): New function.
4406 (update_target_permissions): New function.
4407 (set_target_permissions): New function.
4408 (update_current_target): Default to_set_permissions.
4409 (_initialize_targets): Use new globals and setter function.
4410 * tracepoint.c (start_tracing): Test for permission.
4411 * inferior.h (update_observer_mode): Declare.
4412 * infrun.c (non_stop_1): Define earlier.
4413 (observer_mode, observer_mode_1): New globals.
4414 (set_observer_mode, show_observer_mode): New functions.
4415 (update_observer_mode): New function.
4416 (_initialize_infrun): Define "set observer" command.
4417 * remote.c (PACKET_QAllow): New optional packet.
4418 (remote_protocol_features): Add QAllow.
4419 (remote_set_permissions): New function.
4420 (remote_start_remote): Call it.
4421 (init_remote_ops): Add it to target vector.
4422 (_initialize_remote): Add config command for QAllow.
4423
4424 2010-06-11 Tom Tromey <tromey@redhat.com>
4425
4426 * dwarf2read.c (dwarf2_add_member_fn): Handle correct form of
4427 DW_AT_vtable_elem_location even when GCC extension is seen.
4428
4429 2010-06-11 Tom Tromey <tromey@redhat.com>
4430
4431 PR gdb/9977, PR exp/11636:
4432 * value.h (value_offset): Update.
4433 (struct lval_funcs) <check_validity>: New field.
4434 <copy_closure>: Make argument const.
4435 (value_computed_closure): Update.
4436 (value_contents_for_printing): Declare.
4437 (value_bits_valid): Likewise.
4438 (val_print): Likewise.
4439 (set_value_component_location): Update.
4440 (value_entirely_optimized_out): Declare.
4441 * value.c (value_offset): Argument now const.
4442 (require_not_optimized_out): New function.
4443 (value_contents_for_printing): New function.
4444 (value_contents_all): Call require_not_optimized_out.
4445 (value_contents): Likewise.
4446 (value_bits_valid): New function.
4447 (value_computed_closure): Argument now const.
4448 (set_value_component_location): Make 'whole' argument const.
4449 (value_entirely_optimized_out): New function.
4450 (value_bitsize): Argument now 'const'.
4451 (value_bitpos): Likewise.
4452 (value_type): Likewise.
4453 * valprint.h (val_print_array_elements): Update.
4454 * valprint.c (val_print): Add 'val' argument. Use
4455 valprint_check_validity.
4456 (valprint_check_validity): New function.
4457 (value_check_printable): Use value_entirely_optimized_out.
4458 (common_val_print): Update.
4459 (value_print): Likewise.
4460 (val_print_array_elements): Add 'val' argument.
4461 * valops.c (value_fetch_lazy): Use value_contents_for_printing,
4462 value_bits_valid. Reinit frame cache for lval_computed.
4463 * sh64-tdep.c (sh64_do_register): Update.
4464 * scm-valprint.c (scm_val_print): Add 'val' argument.
4465 * scm-lang.h (scm_val_print): Update.
4466 * python/python.h (apply_val_pretty_printer): Update.
4467 * python/py-prettyprint.c (apply_val_pretty_printer): Add 'val'
4468 argument. Call set_value_component_location.
4469 * printcmd.c (print_scalar_formatted): Update.
4470 * p-valprint.c (pascal_val_print): Add 'val' argument.
4471 (pascal_object_print_value_fields): Likewise.
4472 (pascal_object_print_value): Likewise.
4473 (pascal_object_print_static_field): Update.
4474 * p-lang.h (pascal_val_print): Update.
4475 (pascal_object_print_value_fields): Update.
4476 * mt-tdep.c (mt_registers_info): Update.
4477 * mi/mi-main.c (get_register): Update.
4478 (mi_cmd_data_evaluate_expression): Use common_val_print.
4479 * m2-valprint.c (m2_print_array_contents): Add 'val' argument.
4480 (m2_print_unbounded_array): Likewise.
4481 (m2_val_print): Likewise.
4482 * m2-lang.h (m2_val_print): Update.
4483 * language.h (struct language_defn) <la_val_print>: Add 'val'
4484 argument.
4485 (LA_VAL_PRINT): Likewise.
4486 * language.c (unk_lang_val_print): Add 'val' argument.
4487 * jv-valprint.c (java_print_value_fields): Add 'val' argument.
4488 (java_val_print): Likewise.
4489 * jv-lang.h (java_val_print): Add 'val' argument.
4490 * infcmd.c (default_print_registers_info): Update.
4491 * f-valprint.c (f77_print_array_1): Add 'val' argument.
4492 (f77_print_array): Likewise.
4493 (f_val_print): Likewise.
4494 * f-lang.h (f_val_print): Add 'val' argument.
4495 * dwarf2loc.c (read_pieced_value): Use value_bitsize and
4496 value_bitpos.
4497 <DWARF_VALUE_OPTIMIZED_OUT>: Don't print warning. Call
4498 set_value_optimized_out.
4499 (write_pieced_value): Use value_bitsize and value_bitpos.
4500 <default>: Don't exit loop.
4501 (check_pieced_value_validity): New function.
4502 (pieced_value_funcs): Reference check_pieced_value_validity,
4503 check_pieced_value_invalid.
4504 (copy_pieced_value_closure): Update.
4505 (check_pieced_value_bits): New function.
4506 (check_pieced_value_invalid): New function.
4507 * d-valprint.c (dynamic_array_type): Add 'val' argument.
4508 (d_val_print): Likewise.
4509 * d-lang.h (d_val_print): Update.
4510 * cp-valprint.c (cp_print_value_fields): Add 'val' argument.
4511 (cp_print_value_fields_rtti): Likewise.
4512 (cp_print_value): Likewise.
4513 (cp_print_static_field): Update.
4514 * c-valprint.c (c_val_print): Add 'val' argument.
4515 (c_value_print): Update.
4516 * c-lang.h (c_val_print): Update.
4517 (cp_print_value_fields): Likewise.
4518 (cp_print_value_fields_rtti): Likewise.
4519 * ada-valprint.c (struct ada_val_print_args): Remove.
4520 (val_print_packed_array_elements): Add 'val' argument.
4521 (ada_val_print): Likewise. Rewrite.
4522 (ada_val_print_stub): Remove.
4523 (ada_val_print_array): Add 'val' argument.
4524 (ada_val_print_1): Likewise.
4525 (print_variant_part): Likewise.
4526 (ada_value_print): Update.
4527 (print_record): Add 'val' argument.
4528 (print_field_values): Likewise.
4529 * ada-lang.h (ada_val_print): Update.
4530
4531 2010-06-11 Tom Tromey <tromey@redhat.com>
4532
4533 * vec.h (VEC_cleanup): New macro.
4534 (DEF_VEC_ALLOC_FUNC_I): Update.
4535 (DEF_VEC_ALLOC_FUNC_P): Likewise.
4536 (DEF_VEC_ALLOC_FUNC_O): Likewise.
4537 * dwarf2loc.c (struct axs_var_loc): Remove.
4538 (unimplemented): New function.
4539 (translate_register): Likewise.
4540 (access_memory): Likewise.
4541 (compile_dwarf_to_ax): Likewise.
4542 (dwarf2_tracepoint_var_loc): Remove.
4543 (dwarf2_tracepoint_var_access): Likewise.
4544 (dwarf2_tracepoint_var_ref): Likewise.
4545 (locexpr_tracepoint_var_ref): Use compile_dwarf_to_ax.
4546 (loclist_tracepoint_var_ref): Likewise.
4547 * dwarf2expr.h (dwarf_expr_require_composition): Declare.
4548 * dwarf2expr.c (dwarf_expr_require_composition): Rename from
4549 require_composition. No longer static.
4550 (execute_stack_op): Update.
4551 * ax-gdb.h (trace_kludge): Declare.
4552
4553 2010-06-11 Jan Kratochvil <jan.kratochvil@redhat.com>
4554
4555 * breakpoint.c (breakpoint_restore_shadows): New OWNER comment.
4556 (should_be_inserted): Return zero also on NULL OWNER.
4557 (breakpoint_program_space_exit): New OWNER comment.
4558 (insert_breakpoint_locations): Extend comment for OWNER.
4559 (remove_breakpoint_1, remove_breakpoint): Assert on OWNER.
4560 (breakpoint_init_inferior, breakpoint_here_p, breakpoint_thread_match):
4561 New OWNER comment.
4562 (print_it_typical): Return PRINT_UNKNOWN on NULL OWNER.
4563 (watchpoint_check): New assert on BREAKPOINT_AT and OWNER.
4564 (bpstat_check_location): New assert on OWNER.
4565 (bpstat_check_watchpoint, bpstat_check_breakpoint_conditions): Move BL
4566 and B initializations to the code block. New assert on them.
4567 (print_one_breakpoint_location): New OWNER comment.
4568 (watchpoint_locations_match): Assert on OWNER.
4569 (breakpoint_locations_match): Move HW_POINT1 and HW_POINT2
4570 initializations to the code block. New assert on OWNER.
4571 (set_breakpoint_location_function): New assert on OWNER.
4572 (disable_breakpoints_in_shlibs, disable_breakpoints_in_unloaded_shlib)
4573 (bp_location_compare, update_global_location_list)
4574 (update_global_location_list): New OWNER comment.
4575
4576 2010-06-09 Ulrich Weigand <uweigand@de.ibm.com>
4577
4578 * Makefile.in (HFILES_NO_SRCDIR): Remove config/i386/nm-linux.h
4579
4580 2010-06-09 Ulrich Weigand <uweigand@de.ibm.com>
4581
4582 * config/nm-linux.h (struct target_ops): Remove forward declaration.
4583 (lin_thread_get_thread_signals): Remove prototype.
4584 (GET_THREAD_SIGNALS): Remove.
4585 * linux-nat.h (lin_thread_get_thread_signals): Add prototype.
4586 * linux-thread-db.c (check_thread_signals): Directly call
4587 lin_thread_get_thread_signals; do not check GET_THREAD_SIGNALS.
4588
4589 2010-06-09 Ulrich Weigand <uweigand@de.ibm.com>
4590
4591 * gregset.h (GDB_FPXREGSET_T): Remove.
4592 (gdb_fpxregset_t): Likewise.
4593 (supply_fpxregset): Remove prototype.
4594 (fill_fpxregset): Likewise.
4595 * i386-linux-nat.c (supply_fpxregset): Remove.
4596 (fill_fpxregset): Likewise.
4597 (fetch_fpxregs): Inline supply_fpxregset call.
4598 (store_fpxregs): Inline fill_fpxregset call.
4599
4600 * config/i386/linux.mh: Set NAT_FILE to config/nm-linux.h.
4601 * config/i386/nm-linux.h: Remove file.
4602
4603 2010-06-09 Michael Snyder <msnyder@vmware.com>
4604
4605 * target.c (update_current_target): Fix spelling error in comment.
4606 (target_mourn_inferior): Fix spelling error in error message.
4607
4608 2010-06-08 Paul Hilfinger <hilfingr@adacore.com>
4609
4610 * dictionary.h (dict_iter_name_first, dict_iter_name_next): Refer to
4611 SYMBOL_SEARCH_NAME, not SYMBOL_BEST_NAME, in comments.
4612
4613 2010-06-08 Michael Snyder <msnyder@vmware.com>
4614
4615 * remote.c (remote_close): Set inferior_ptid to null_ptid.
4616
4617 2010-06-08 Jan Kratochvil <jan.kratochvil@redhat.com>
4618
4619 * configure.ac <"${have_libpython}" != no>: New workaround of
4620 python#4434.
4621 * configure: Regenerate.
4622
4623 2010-06-08 Hui Zhu <teawater@gmail.com>
4624
4625 * record.c (record_wait): Move signal out of replay code.
4626
4627 2010-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
4628
4629 Fix PR 10640.
4630 * dwarf2-frame.c (no_dwarf_call): New function.
4631 (execute_stack_op): Set CTX->DWARF_CALL.
4632 * dwarf2expr.c (execute_stack_op) <DW_OP_call2, DW_OP_call4>: New.
4633 * dwarf2expr.h (struct dwarf_expr_context) <dwarf_call>: New.
4634 (struct dwarf_expr_context) <get_subr>: Remove the #if0-ed field.
4635 * dwarf2loc.c (per_cu_dwarf_call, dwarf_expr_dwarf_call): New functions.
4636 (dwarf2_evaluate_loc_desc): Initialize CTX->DWARF_CALL.
4637 (needs_frame_dwarf_call): New function.
4638 (dwarf2_loc_desc_needs_frame): Initialize CTX->DWARF_CALL.
4639 * dwarf2read.c (follow_die_offset): Based on former follow_die_ref.
4640 Update the comment. Move variables die, offset and error call to ...
4641 (follow_die_ref): ... a new function.
4642 (dwarf2_fetch_die_location_block): New function.
4643 * dwarf2loc.h (dwarf2_fetch_die_location_block): New prototype.
4644
4645 2010-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
4646
4647 * dwarf2loc.c (struct dwarf_expr_baton) Replace objfile by per_cu.
4648 (dwarf_expr_tls_address): Use per_cu instead of objfile.
4649 (dwarf2_evaluate_loc_desc): Drop initialization of BATON.OBJFILE.
4650 Initialize new BATON.PER_CU. Adjust CTX->GDBARCH initialization for
4651 this change.
4652 (struct needs_frame_baton): New field per_cu.
4653 (dwarf2_loc_desc_needs_frame): Initialize new BATON.PER_CU.
4654 * dwarf2read.c (struct dwarf2_per_cu_data) <cu>: Extend the comment.
4655
4656 2010-06-07 Sami Wagiaalla <swagiaal@redhat.com>
4657
4658 * cp-support.c (make_symbol_overload_list_namespace): Only search
4659 static and global blocks.
4660 (make_symbol_overload_list_block): New function.
4661 (make_symbol_overload_list): Separate namespace search from block
4662 search.
4663 (make_symbol_overload_list_qualified): Use
4664 make_symbol_overload_list_block.
4665
4666 2010-06-07 Sami Wagiaalla <swagiaal@redhat.com>
4667
4668 * value.h: Created oload_search_type enum.
4669 (find_overload_match): Use oload_search_type enum.
4670 * valops.c (find_overload_match): Support combined member and
4671 non-member search.
4672 * eval.c (evaluate_subexp_standard): Calls to
4673 find_overload_match now use oload_search_type enum.
4674 (oload_method_static): Verify index is a proper value.
4675 * valarith.c (value_user_defined_cpp_op): Search for and handle
4676 both member and non-member operators.
4677 (value_user_defined_cpp_op): New function.
4678 (value_user_defined_op): New function.
4679 (value_x_unop): Use value_user_defined_op.
4680 (value_x_binop): Ditto.
4681 * cp-support.c (make_symbol_overload_list_using): Added block
4682 iteration.
4683 Add check for namespace aliases and imported declarations.
4684
4685 2010-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
4686
4687 * breakpoint.h (owner): Extend the comment.
4688
4689 2010-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
4690
4691 Clear stale specific bp_location from former whole breakpoint.
4692 * breakpoint.c (delete_breakpoint): Move the stale referencing clear
4693 code ...
4694 (free_bp_location): ... here. Rename there the called function to
4695 bpstat_remove_bp_location_callback.
4696 (bpstat_remove_breakpoint_callback): Rename to ...
4697 (bpstat_remove_bp_location_callback): ... here, change DATA resolution
4698 to struct bp_location. Change the called function to
4699 bpstat_remove_bp_location. Create new declaration for the function.
4700 (bpstat_remove_breakpoint): Rename to ...
4701 (bpstat_remove_bp_location): ..., change the parameter to loc, adjust
4702 code for the new parameter type.
4703
4704 2010-06-07 Nathan Sidwell <nathan@codesourcery.com>
4705
4706 * README: Make version-agnostic.
4707
4708 2010-06-05 Jan Kratochvil <jan.kratochvil@redhat.com>
4709
4710 Fix duplicate types for single DIE.
4711 * dwarf2read.c (read_structure_type): Move set_descriptive_type after
4712 set_die_type.
4713 (read_array_type): Remove type initialization. Recheck get_die_type
4714 after initial die_type. Move set_die_type before set_descriptive_type.
4715 (read_set_type): New variable domain_type. Recheck get_die_type after
4716 initial die_type. Move attr initialization later.
4717 (read_tag_pointer_type, read_tag_reference_type): New variable
4718 target_type. Recheck get_die_type after initial die_type.
4719 (read_tag_ptr_to_member_type): Recheck get_die_type after initial
4720 die_type and die_containing_type.
4721 (read_tag_const_type, read_tag_volatile_type, read_subroutine_type):
4722 Recheck get_die_type after initial die_type.
4723 (read_subrange_type): Recheck get_die_type after initial die_type.
4724 Move set_die_type before set_descriptive_type.
4725 (set_die_type): Extend the function comment. Call complaint if DIE has
4726 some type already set.
4727
4728 2010-06-05 Vladimir Prus <vladimir@codesourcery.com>
4729
4730 * mi/mi-main.c (mi_cmd_list_thread_groups): Adjust
4731 for current naming of thread groups (iN, not N).
4732
4733 2010-06-04 Sergio Durigan Junior <sergiodj@redhat.com>
4734
4735 * ada-lang.c (ada_operator_length): Constify `struct expression'.
4736 * parse.c (operator_length): Likewise.
4737 (operator_length_standard): Likewise.
4738 * parser-defs.h (operator_length): Likewise.
4739 (operator_length_standard): Likewise.
4740 (struct exp_descriptor <operator_length>): Likewise.
4741
4742 2010-06-04 Doug Evans <dje@google.com>
4743
4744 Add support for enabling/disabling individual pretty-printers.
4745 * python/py-prettyprint.c (search_pp_list): Skip disabled printers.
4746 * python/python-internal.h (gdbpy_enabled_cst): Declare.
4747 * python/python.c (gdbpy_enabled_cst): Define.
4748 (_initialize_python): Initialize gdbpy_enabled_cst.
4749 * NEWS: Add entry.
4750
4751 2010-06-04 Jan Kratochvil <jan.kratochvil@redhat.com>
4752
4753 * breakpoint.c (update_global_location_list): Fix comment typo.
4754
4755 2010-06-04 Hui Zhu <teawater@gmail.com>
4756
4757 * dwarf2loc.c (disassemble_dwarf_expression): Change ul to l.
4758
4759 2010-06-03 Doug Evans <dje@google.com>
4760
4761 * configure.ac: Don't fail if python is unusable when
4762 configured with --with-python=auto.
4763 * configure: Regenerate.
4764
4765 2010-06-03 Sami Wagiaalla <swagiaal@redhat.com>
4766
4767 * dwarf2read.c (new_symbol): Remove redundant naming of symbol.
4768
4769 2010-06-03 Pierre Muller <muller@ics.u-strasbg.fr>
4770
4771 * valprint.h (get_array_bounds): Change low and high parameter types
4772 to LONGEST *.
4773 * valprint.c (get_array_bounds): Use get_discrete_bounds call to
4774 compute bounds.
4775 (val_print_array_elements): Adapt to change above.
4776 * ada-valprint.c (print_optional_low_bound): Adapt to change above.
4777 * p-valprint.c (pascal_val_print): Likewise.
4778
4779 2010-06-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4780
4781 * symfile.c (init_filename_language_table): New extensions .for, .FOR,
4782 .ftn, .FTN, .fpp, .FPP, .f90, .F90, .f95, .F95, .f03, .F03, .f08 and
4783 .F08.
4784
4785 2010-06-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4786
4787 Support DW_TAG_module as separate namespaces.
4788 * dwarf2read.c (typename_concat): New parameter physname.
4789 (read_module_type): New function and declaration.
4790 (scan_partial_symbols): Scan also DW_TAG_module children.
4791 (partial_die_parent_scope): Accept scope even from DW_TAG_module. Pass
4792 to typename_concat backward compatible physname value 0.
4793 (partial_die_full_name, read_namespace_type): Pass to typename_concat
4794 backward compatible physname value 0.
4795 (add_partial_module, read_module): Remove FIXME comment.
4796 (process_die) <DW_TAG_module>: Set PROCESSING_HAS_NAMESPACE_INFO.
4797 (die_needs_namespace) <DW_TAG_variable>: Allow returning true even for
4798 DIEs under DW_TAG_module.
4799 (dwarf2_compute_name): Move the ada block for DW_AT_linkage_name and
4800 DW_AT_MIPS_linkage_name first, extend it for language_fortran
4801 && physname and return there instead of just setting NAME. Extend
4802 the main block for language_fortran. Pass physname parameter to the
4803 typename_concat call.
4804 (read_import_statement, read_func_scope, get_scope_pc_bounds)
4805 (load_partial_dies, determine_prefix): Support also DW_TAG_module.
4806 (new_symbol): Fill in cplus_specific.demangled_name if it is still
4807 missing from SYMBOL_SET_NAMES in the language_fortran case.
4808 (new_symbol) <DW_TAG_variable>: Force LOC_UNRESOLVED for gfortran module
4809 variables.
4810 (read_type_die) <DW_TAG_module>: New.
4811 (MAX_SEP_LEN): Increase to 7.
4812 (typename_concat): New parameter physname. New variable lead. Support
4813 also language_fortran.
4814 * f-exp.y (yylex): Consider : also as a symbol name character class.
4815 * f-lang.c: Include cp-support.h.
4816 (f_word_break_characters, f_make_symbol_completion_list): New functions.
4817 (f_language_defn): Use cp_lookup_symbol_nonlocal,
4818 f_word_break_characters and f_make_symbol_completion_list.
4819 * f-typeprint.c (f_type_print_base) <TYPE_CODE_MODULE>: New.
4820 * gdbtypes.h (enum type_code) <TYPE_CODE_MODULE>: New.
4821 * symtab.c (symbol_init_language_specific): Support language_fortran.
4822 (symbol_find_demangled_name): New comment on language_fortran.
4823 (symbol_natural_name, symbol_demangled_name): Use demangled_name even
4824 for language_fortran.
4825 (lookup_symbol_aux_local): Check imports also for language_fortran.
4826 (default_make_symbol_completion_list): Rename to ...
4827 (default_make_symbol_completion_list_break_on): ... this name. New
4828 parameter break_on, use it.
4829 (default_make_symbol_completion_list): New stub.
4830 * symtab.h (default_make_symbol_completion_list_break_on): New
4831 prototype.
4832
4833 2010-06-02 Joel Brobecker <brobecker@adacore.com>
4834
4835 * remote.c (remote_get_noisy_reply): Remove trailing "\n" in call
4836 to error.
4837
4838 2010-06-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4839
4840 * dwarf2read.c (typename_concat): Add const to the variable sep.
4841
4842 2010-06-02 Tom Tromey <tromey@redhat.com>
4843
4844 * dwarf2loc.h (dwarf2_per_cu_data): Declare.
4845 * dwarf2read.c (dwarf_stack_op_name): No longer static. Return
4846 type is const. Add 'def' argument. Add missing operators, remove
4847 unhandled ones.
4848 (decode_locdesc): Update.
4849 (dwarf2_always_disassemble): New global.
4850 (show_dwarf2_always_disassemble): New function.
4851 (_initialize_dwarf2_read): Add always-disassemble.
4852 (dwarf2_per_cu_offset_size): New function.
4853 * dwarf2loc.c (dwarf2_always_disassemble): Declare.
4854 (piece_end_p): New function.
4855 (locexpr_describe_location_piece): Replace 'size' argument with
4856 'end'. Use piece_end_p. Rewrite recognition of TLS. Recognize
4857 some constants. Remove errors.
4858 (disassemble_dwarf_expression): New function.
4859 (locexpr_describe_location_1): Use disassemble_dwarf_expression.
4860 Add 'offset_size' argument.
4861 (loclist_describe_location): Change output formatting.
4862 * dwarf2expr.h (dwarf_stack_op_name): Declare.
4863
4864 2010-06-02 Sami Wagiaalla <swagiaal@redhat.com>
4865
4866 * cp-support.c (make_symbol_overload_list_adl_namespace): Handle
4867 anonymous type case.
4868
4869 2010-06-02 Pierre Muller <muller@ics.u-strasbg.fr>
4870
4871 * dwarf2read.c (read_subrange_type): Handle missing base type
4872 according to Dwarf-2 specifications.
4873
4874 2010-06-01 Sergio Durigan Junior <sergiodj@redhat.com>
4875
4876 * expprint.c (print_subexp_standard): Remove exp_opcodes BINOP_INCL,
4877 BINOP_EXCL.
4878 (op_name_standard): Remove exp_opcodes BINOP_INCL, BINOP_EXCL,
4879 UNOP_LOWER, UNOP_UPPER, UNOP_LENGTH.
4880 (dump_subexp_body_standard): Remove exp_opcodes BINOP_INCL,
4881 BINOP_EXCL, UNOP_LOWER, UNOP_UPPER, UNOP_LENGTH, UNOP_CARD,
4882 UNOP_CHMAX, UNOP_CHMIN.
4883 * expression.h (enum exp_opcode) <BINOP_INCL, BINOP_EXCL,
4884 UNOP_LOWER, UNOP_UPPER, UNOP_LENGTH, UNOP_CARD, UNOP_CHMAX,
4885 UNOP_CHMIN>: Remove opcodes.
4886
4887 2010-06-01 Pierre Muller <muller@ics.u-strasbg.fr>
4888
4889 * dwarf2read.c (read_func_scope): Do not complain for
4890 external function if bounds are not found.
4891
4892 2010-06-01 Pedro Alves <pedro@codesourcery.com>
4893
4894 * NEWS: Mention gdbserver fast tracepoints support.
4895
4896 2010-05-31 Pierre Muller <muller@ics.u-strasbg.fr>
4897
4898 * windows-nat.c (GetConsoleFontSize, GetCurrentConsoleFont):
4899 New macros.
4900 (windows_set_console_info): New function.
4901 (windows_create_inferior): Call windows_set_console_info
4902 if NEW_CONSOLE is true.
4903 (bad_GetCurrentConsoleFont, bad_GetConsoleFontSize): New functions.
4904 (_initialize_loadable): Initialize GetConsoleFontSize and
4905 GetCurrentConsoleFont.
4906
4907 2010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4908
4909 * Makefile.in (RDYNAMIC): New.
4910 (SFILES): Add proc-service.list.
4911 * config/alpha/alpha-linux.mh (NAT_CDEPS): New.
4912 (LOADLIBES): Replace -rdynamic by $(RDYNAMIC).
4913 * config/arm/linux.mh: Likewise.
4914 * config/i386/linux.mh: Likewise.
4915 * config/i386/linux64.mh: Likewise.
4916 * config/ia64/linux.mh: Likewise.
4917 * config/m32r/linux.mh: Likewise.
4918 * config/m68k/linux.mh: Likewise.
4919 * config/mips/linux.mh: Likewise.
4920 * config/pa/linux.mh: Likewise.
4921 * config/powerpc/linux.mh: Likewise.
4922 * config/powerpc/ppc64-linux.mh: Likewise.
4923 * config/s390/s390.mh: Likewise.
4924 * config/sparc/linux.mh: Likewise.
4925 * config/sparc/linux64.mh: Likewise.
4926 * config/xtensa/linux.mh: Likewise.
4927 * configure.ac: New RDYNAMIC on native host and GCC.
4928 (solaris*): Replace -Wl,-export-dynamic by $RDYNAMIC.
4929 * configure: Regenerate.
4930 * proc-service.list: New.
4931
4932 2010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4933
4934 * linux-nat.c (linux_nat_core_of_thread_1): Fix crash on invalid
4935 CONTENT.
4936
4937 2010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4938
4939 * linux-nat.c (linux_nat_wait_1): Do not call
4940 linux_nat_core_of_thread_1 on TARGET_WAITKIND_EXITED or
4941 TARGET_WAITKIND_SIGNALLED.
4942
4943 2010-05-27 Joel Brobecker <brobecker@adacore.com>
4944
4945 * ada-lang.c (ada_inferior_data): New struct.
4946 (ada_inferior_data): New static global.
4947 (ada_inferior_data_cleanup, get_ada_inferior_data, ada_inferior_exit)
4948 (ada_get_tsd_type): New functions.
4949 (ada_tag_name_2): Use ada_get_tsd_type instead of ada_find_any_type
4950 to look the tsd type up.
4951 (_initialize_ada_language): Attach ada_inferior_exit to inferior_exit
4952 event. Set ada_inferior_data.
4953
4954 2010-05-27 Pedro Alves <pedro@codesourcery.com>
4955
4956 * remote.c (unpack_varlen_hex): Remove forward declaration.
4957 (remote_console_output): Make static, and add forward declaration.
4958 * remote.h: Drop FIXME comment.
4959 (unpack_varlen_hex): Declare.
4960 (remote_console_output, remote_cisco_objfile_relocate)
4961 (deprecated_target_resume_hook, deprecated_target_wait_loop_hook):
4962 Delete declarations.
4963 * tracepoint.c: Include "remote.h".
4964 (unpack_varlen_hex): Delete declaration.
4965
4966 2010-05-27 Tom Tromey <tromey@redhat.com>
4967
4968 * dwarf2loc.c (struct piece_closure) <refc>: New field.
4969 (allocate_piece_closure): Initialize refc.
4970 (copy_pieced_value_closure): Use refc.
4971 (free_pieced_value_closure): Likewise.
4972
4973 2010-05-27 Tom Tromey <tromey@redhat.com>
4974
4975 * arm-tdep.c (push_stack_item): 'contents' now const.
4976 (arm_push_dummy_call): Make 'val' const. Use value_contents, not
4977 value_contents_writeable. Introduce new temporary.
4978
4979 2010-05-27 Tom Tromey <tromey@redhat.com>
4980
4981 * findcmd.c (parse_find_args): Use value_contents, not
4982 value_contents_raw.
4983
4984 2010-05-27 Tom Tromey <tromey@redhat.com>
4985
4986 * alpha-tdep.c (alpha_push_dummy_call): Make alpha_arg.contents
4987 const. Use value_contents, not value_contents_writeable.
4988
4989 2010-05-27 Joel Brobecker <brobecker@adacore.com>
4990
4991 * ada-lang.c (ensure_lval): Replace call to value_contents_raw
4992 by call to value_contents.
4993
4994 2010-05-27 Ozkan Sezer <sezeroz@gmail.com>
4995
4996 * MAINTAINERS: Add myself for write after approval privileges.
4997
4998 2010-05-26 Doug Evans <dje@google.com>
4999
5000 Allow python to find its files if moved from original location.
5001 * acinclude.m4 (GDB_AC_DEFINE_RELOCATABLE): New function.
5002 (GDB_AC_WITH_DIR): Call it.
5003 * configure.ac: Define WITH_PYTHON_PATH if we can find the
5004 python installation directory.
5005 * config.in: Regenerate.
5006 * configure: Regenerate.
5007 * defs.h (python_libdir): Declare.
5008 * main.c (python_libdir): Define.
5009 (captured_main): Initialize python_libdir.
5010 * python/python.c (_initialize_python): #ifdef WITH_PYTHON_PATH,
5011 call Py_SetProgramName to make sure python can find its libraries
5012 and modules.
5013
5014 * configure.ac: Try to use python's distutils to fetch compilation
5015 parameters.
5016 * configure: Regenerate.
5017 * python/python-config.py: New file.
5018
5019 2010-05-26 Ozkan Sezer <sezeroz@gmail.com>
5020
5021 * ser-tcp.c (net_open): Check error return from socket() call by its
5022 equality to -1 not by it being negative.
5023 (net_close): Likewise.
5024
5025 2010-05-26 Pedro Alves <pedro@codesourcery.com>
5026
5027 * NEWS: Mention the `qRelocInsn' feature.
5028 * gdbarch.sh (relocate_instruction): New.
5029 * amd64-tdep.c (rip_relative_offset): New.
5030 (append_insns): New.
5031 (amd64_relocate_instruction): New.
5032 (amd64_init_abi): Install it.
5033 * i386-tdep.c (append_insns): New.
5034 (i386_relocate_instruction): New.
5035 (i386_gdbarch_init): Install it.
5036 * remote.c (remote_get_noisy_reply): Handle qRelocInsn requests.
5037 * gdbarch.h, gdbarch.c: Regenerate.
5038
5039 2010-05-26 Tom Tromey <tromey@redhat.com>
5040
5041 * dwarf2loc.h (struct dwarf2_locexpr_baton) <data>: Now const.
5042 (struct dwarf2_loclist_baton) <data>: Likewise.
5043 * dwarf2loc.c (find_location_expression): Constify return type.
5044 (dwarf2_evaluate_loc_desc): Make 'data' argument const.
5045 (dwarf2_loc_desc_needs_frame): Likewise.
5046 (loclist_read_variable): Constify.
5047 (loclist_describe_location): Likewise.
5048 (loclist_tracepoint_var_ref): Likewise.
5049
5050 2010-05-25 Tom Tromey <tromey@redhat.com>
5051
5052 * dwarf2loc.c (dwarf_expr_frame_base): Constify.
5053 (dwarf_expr_frame_base_1): Likewise.
5054 (read_pieced_value): Update.
5055 (needs_frame_frame_base): Constify.
5056 (dwarf2_tracepoint_var_loc): Likewise.
5057 (dwarf2_tracepoint_var_access): Likewise.
5058 (locexpr_describe_location_piece): Likewise.
5059 (locexpr_describe_location_1): Likewise.
5060 * dwarf2expr.h (struct dwarf_expr_context) <get_frame_base>:
5061 Constify.
5062 (data): Now const.
5063 (struct dwarf_expr_piece) <v.literal.data>: Likewise.
5064 (dwarf_expr_eval, read_uleb128, read_sleb128)
5065 (dwarf2_read_address): Update.
5066 * dwarf2expr.c (dwarf_expr_eval): Constify.
5067 (read_uleb128): Likewise.
5068 (read_sleb128): Likewise.
5069 (dwarf2_read_address): Likewise.
5070 (require_composition): Likewise.
5071 (execute_stack_op): Likewise.
5072 * dwarf2-frame.h (struct dwarf2_frame_state_reg) <loc.exp>: Now a
5073 "const gdb_byte *".
5074 * dwarf2-frame.c (struct dwarf2_frame_state_reg_info) <cfa_exp>:
5075 Now const.
5076 (no_get_frame_base): Constify.
5077 (execute_stack_op): Likewise.
5078 (execute_cfa_program): Likewise.
5079 (read_encoded_value): Likewise.
5080
5081 2010-05-25 Doug Evans <dje@google.com>
5082
5083 * ser-pipe.c (pipe_open): Ignore SIGINTs in child.
5084
5085 * event-loop.h (GDB_READABLE, GDB_WRITABLE, GDB_EXCEPTION): Move to ...
5086 * event-loop.c: ... here.
5087 * tui/tui-io.c (tui_readline_output): Rename parameter `code' to
5088 `error' for clarity.
5089 (tui_getc): Pass correct value for `error' parameter to
5090 tui_readline_output.
5091
5092 Add python gdb.GdbError and gdb.string_to_argv.
5093 * NEWS: Document them.
5094 * python/py-cmd.c (cmdpy_function): Don't print a traceback if
5095 the exception is gdb.GdbError. Print a second traceback if there's
5096 an error computing the error message.
5097 (gdbpy_string_to_argv): New function.
5098 * python/py-utils.c (gdbpy_obj_to_string): New function.
5099 (gdbpy_exception_to_string): New function.
5100 * python/python-internal.h (gdbpy_string_to_argv): Declare.
5101 (gdbpy_obj_to_string, gdbpy_exception_to_string): Declare.
5102 (gdbpy_gdberror_exc): Declare.
5103 * python/python.c (gdbpy_gdberror_exc): New global.
5104 (_initialize_python): Initialize gdbpy_gdberror_exc and create
5105 gdb.GdbError.
5106 (GdbMethods): Add string_to_argv.
5107
5108 2010-05-21 Pierre Muller <muller@ics.u-strasbg.fr>
5109
5110 * windows-nat.c (display_selector): Call GetLastError to give better
5111 failure explanation.
5112
5113 2010-05-24 Pedro Alves <pedro@codesourcery.com>
5114
5115 * config.in: Regenerate.
5116
5117 2010-05-23 Jan Kratochvil <jan.kratochvil@redhat.com>
5118
5119 Code cleanup.
5120 * target.c (push_target): Return only void. Remove the return value
5121 comment.
5122 * target.h (push_target): Return only void.
5123
5124 2010-05-23 Pedro Alves <pedro@codesourcery.com>
5125
5126 Update gnulib from latest git.
5127 (250b80067c1e1d8faa0c42fb572f721975b929c5)
5128
5129 * gnulib/memcmp.c: Removed.
5130 * gnulib/memchr.valgrind: New.
5131 * gnulib/stddef.in.h: New.
5132 * gnulib/Makefile.am: Updated.
5133 * gnulib/memchr.c: Updated.
5134 * gnulib/memmem.c: Updated.
5135 * gnulib/stdint.in.h: Updated.
5136 * gnulib/str-two-way.h: Updated.
5137 * gnulib/string.in.h: Updated.
5138 * gnulib/wchar.in.h: Updated.
5139
5140 * gnulib/extra/link-warning.h: Removed.
5141 * gnulib/extra/c++defs.h: New.
5142 * gnulib/extra/warn-on-use.h: New.
5143 * gnulib/extra/arg-nonnull.h: Updated.
5144
5145 * gnulib/m4/extensions.m4: Updated.
5146 * gnulib/m4/gnulib-cache.m4: Updated.
5147 * gnulib/m4/gnulib-common.m4: Updated.
5148 * gnulib/m4/gnulib-comp.m4: Updated.
5149 * gnulib/m4/gnulib-tool.m4: Updated.
5150 * gnulib/m4/include_next.m4: Updated.
5151 * gnulib/m4/longlong.m4: Updated.
5152 * gnulib/m4/memchr.m4: Updated.
5153 * gnulib/m4/memmem.m4: Updated.
5154 * gnulib/m4/stdint.m4: Updated.
5155 * gnulib/m4/string_h.m4: Updated.
5156 * gnulib/m4/memcmp.m4: Removed.
5157 * gnulib/m4/onceonly_2_57.m4: Removed.
5158 * gnulib/m4/00gnulib.m4: New.
5159 * gnulib/m4/mmap-anon.m4: New.
5160 * gnulib/m4/multiarch.m4: New.
5161 * gnulib/m4/onceonly.m4: New.
5162 * gnulib/m4/stddef_h.m4: New.
5163 * gnulib/m4/warn-on-use.m4: New.
5164 * gnulib/m4/wchar.m4: Removed.
5165 * gnulib/m4/wchar_h.m4: New.
5166 * gnulib/m4/wchar_t.m4: New.
5167 * gnulib/m4/wint_t.m4: New.
5168
5169 * aclocal.m4: Regenerate.
5170 * config.in: Likewise.
5171 * configure: Likewise.
5172 * gnulib/Makefile.in: Likewise.
5173
5174 2010-05-21 Tom Tromey <tromey@redhat.com>
5175
5176 * dwarf2loc.c (extract_bits_primitive): New function.
5177 (extract_bits): Likewise.
5178 (insert_bits): Likewise.
5179 (copy_bitwise): Likewise.
5180 (read_pieced_value): Do all operations in bits.
5181 (write_pieced_value): Likewise.
5182 * dwarf2expr.h (struct dwarf_expr_piece) <offset>: New field.
5183 * dwarf2expr.c (add_piece): New arguments bit_piece, offset.
5184 Always use xrealloc to resize piece array.
5185 (execute_stack_op) <DW_OP_reg0>: Handle DW_OP_bit_piece.
5186 <DW_OP_piece>: Update.
5187 <DW_OP_bit_piece>: New case.
5188
5189 2010-05-21 Tom Tromey <tromey@redhat.com>
5190
5191 * dwarf2loc.c (read_pieced_value): Exit loop when result is full.
5192 <DWARF_VALUE_OPTIMIZED_OUT>: New case.
5193 * dwarf2expr.h (enum dwarf_value_location)
5194 <DWARF_VALUE_OPTIMIZED_OUT>: New constant.
5195 * dwarf2expr.c (dwarf_expr_stack_empty_p): New function.
5196 (add_piece): Handle empty piece.
5197 (execute_stack_op) <DW_OP_piece>: Handle
5198 DWARF_VALUE_OPTIMIZED_OUT.
5199
5200 2010-05-21 Tom Tromey <tromey@redhat.com>
5201
5202 * eval.c (evaluate_subexp_standard) <BINOP_SUBSCRIPT>: Call
5203 evaluate_subexp, not evaluate_subexp_with_coercion.
5204
5205 2010-05-21 Pierre Muller <muller@ics.u-strasbg.fr>
5206
5207 * dwarf2read.c (new_symbol): Handle DW_AT_variable_parameter
5208 attribute.
5209
5210 2010-05-21 Tom Tromey <tromey@redhat.com>
5211
5212 * dwarf2loc.c (read_pieced_value): Work properly when 'v' has an
5213 offset.
5214 (write_pieced_value): Likewise.
5215
5216 2010-05-21 Pierre Muller <muller@ics.u-strasbg.fr>
5217
5218 * dwarf2read.c (process_die): Also allow DW_TAG_const_type
5219 and DW_TAG_volatile_type.
5220 (new_symbol): Likewise.
5221
5222 2010-05-20 Pierre Muller <muller@ics.u-strasbg.fr>
5223
5224 * p-valprint.c (pascal_val_print): Call get_array_bounds
5225 to obtain the number of elements in an array.
5226
5227 2010-05-19 Doug Evans <dje@google.com>
5228
5229 * python.c (gdbpy_print_stack): Ensure output ends with a newline.
5230
5231 * python.c (source_python_script): Add comment.
5232 (source_python_script_for_objfile): Remove unnecessary call to
5233 gdbpy_print_stack.
5234
5235 2010-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
5236 Sergio Durigan Junior <sergiodj@redhat.com>
5237
5238 Code cleanup.
5239 * parse.c (exp_iterate): Use operator_length wrapper function.
5240
5241 2010-05-18 Michael Snyder <msnyder@vmware.com>
5242
5243 * ada-lang.c: White space.
5244 * ada-typeprint.c: White space.
5245 * ada-valprint.c: White space.
5246 * addrmap.c: White space.
5247 * auxv.c: White space.
5248 * ax-gdb.c: White space.
5249
5250 2010-05-18 Hui Zhu <teawater@gmail.com>
5251
5252 * linux-fork.c (inferior_call_waitpid_cleanup): Add check
5253 for oldfp.
5254 (inferior_call_waitpid): Move make_cleanup out of check.
5255 Check the return of waitpid.
5256 (delete_checkpoint_command): Add pptid to save fi->parent_ptid.
5257
5258 2010-05-17 Michael Snyder <msnyder@vmware.com>
5259
5260 * tui/tui.c: White space.
5261 * tui/tui-data.c: White space.
5262 * tui/tui-disasm.c: White space.
5263 * tui/tui-file.c: White space.
5264 * tui/tui-interp.c: White space.
5265 * tui/tui-main.c: White space.
5266 * tui/tui-out.c: White space.
5267 * tui/tui-regs.c: White space.
5268 * tui/tui-source.c: White space.
5269 * tui/tui-stack.c: White space.
5270 * tui/tui-win.c: White space.
5271 * tui/tui-winsource.c: White space.
5272
5273 * procfs.c: White space.
5274
5275 * python/py-auto-load.c: White space.
5276 * python/py-block.c: White space.
5277 * python/py-breakpoint.c: White space.
5278 * python/py-cmd.c: White space.
5279 * python/py-function.c: White space.
5280 * python/py-lazy-string.c: White space.
5281 * python/py-objfile.c: White space.
5282 * python/py-param.c: White space.
5283 * python/py-prettyprint.c: White space.
5284 * python/py-progspace.c: White space.
5285 * python/py-symtab.c: White space.
5286 * python/python.c: White space.
5287 * python/py-type.c: White space.
5288 * python/py-utils.c: White space.
5289 * python/py-value.c: White space.
5290
5291 * mi/mi-cmd-break.c: White space.
5292 * mi/mi-cmd-env.c: White space.
5293 * mi/mi-cmds.c: White space.
5294 * mi/mi-cmd-stack.c: White space.
5295 * mi/mi-cmd-var.c: White space.
5296 * mi/mi-console.c: White space.
5297 * mi/mi-getopt.c: White space.
5298 * mi/mi-interp.c: White space.
5299 * mi/mi-main.c: White space.
5300 * mi/mi-out.c: White space.
5301 * mi/mi-parse.c: White space.
5302
5303 * cli/cli-cmds.c: White space.
5304 * cli/cli-decode.c: White space.
5305 * cli/cli-dump.c: White space.
5306 * cli/cli-interp.c: White space.
5307 * cli/cli-logging.c: White space.
5308 * cli/cli-script.c: White space.
5309 * cli/cli-setshow.c: White space.
5310
5311 * valarith.c: White space.
5312 * valops.c: White space.
5313 * valprint.c: White space.
5314 * value.c: White space.
5315 * varobj.c: White space.
5316 * xcoffread.c: White space.
5317 * xml-support.c: White space.
5318 * xml-tdesc.c: White space.
5319
5320 2010-05-17 Andreas Schwab <schwab@redhat.com>
5321
5322 PR gdb/11092
5323 * c-lang.c (c_printstr): Compute real length of NUL terminated
5324 string at first.
5325
5326 2010-05-17 Joel Brobecker <brobecker@adacore.com>
5327
5328 * parse.c (parse_exp_in_context): When block is not NULL, use
5329 its associated language to parse the expression instead of
5330 the current_language.
5331
5332 2010-05-17 Joel Brobecker <brobecker@adacore.com>
5333
5334 * jv-lang.c (java_lookup_class): Remove commented out code.
5335 (type_from_class): Likewise.
5336 (java_op_print_tab): Remove commented-out elements.
5337
5338 2010-05-17 Joel Brobecker <brobecker@adacore.com>
5339
5340 * ada-lang.c (to_fixed_range_type): The the raw index type as
5341 argument instead of the raw type name. Remove orig_type parameter.
5342 Update calls throughout.
5343 (ada_fixup_array_indexes_type): New function.
5344 (ada_array_bound_from_type): Add call to ada_fixup_array_indexes_type.
5345 * ada-lang.h (ada_fixup_array_indexes_type): Add declaration.
5346 * ada-typeprint.c (print_range_type): Renames print_range_type_named.
5347 Remove name parameter.
5348 (print_array_type): Add call to ada_fixup_array_indexes_type.
5349 Update calls to print_range_type.
5350 (ada_print_type): Update calls to print_range_type.
5351
5352 2010-05-17 Pierre Muller <muller@ics.u-strasbg.fr>
5353
5354 * dwarf2read.c (read_set_type): Set type length if
5355 DW_AT_byte_size attribute is present.
5356
5357 2010-05-17 Pierre Muller <muller@ics.u-strasbg.fr>
5358
5359 * p-valprint.c (pascal_val_print): Handle set type if range limits
5360 are undefined but size is known.
5361
5362 2010-05-17 Pedro Alves <pedro@codesourcery.com>
5363
5364 * procfs.c: Reformat.
5365
5366 2010-05-16 Michael Snyder <msnyder@vmware.com>
5367
5368 * target.c: White space.
5369 * target-descriptions.c: White space.
5370 * target-memory.c: White space.
5371 * thread.c: White space.
5372 * top.c: White space.
5373 * tracepoint.c: White space.
5374 * trad-frame.c: White space.
5375 * tramp-frame.c: White space.
5376 * ui-file.c: White space.
5377 * ui-out.c: White space.
5378 * user-regs.c: White space.
5379 * utils.c: White space.
5380
5381 * scm-exp.c: White space.
5382 * scm-lang.c: White space.
5383 * scm-valprint.c: White space.
5384 * sentinel-frame.c: White space.
5385 * ser-base.c: White space.
5386 * ser-go32.c: White space.
5387 * serial.c: White space.
5388 * ser-mingw.c: White space.
5389 * ser-pipe.c: White space.
5390 * ser-tcp.c: White space.
5391 * ser-unix.c: White space.
5392 * solib.c: White space.
5393 * solib-darwin.c: White space.
5394 * solib-frv.c: White space.
5395 * solib-irix.c: White space.
5396 * solib-osf.c: White space.
5397 * solib-pa64.c: White space.
5398 * solib-som.c: White space.
5399 * solib-spu.c: White space.
5400 * solib-svr4.c: White space.
5401 * solib-target.c: White space.
5402 * source.c: White space.
5403 * stabsread.c: White space.
5404 * stack.c: White space.
5405 * std-regs.c: White space.
5406 * symfile.c: White space.
5407 * symmisc.c: White space.
5408 * symtab.c: White space.
5409
5410 2010-05-16 Michael Snyder <msnyder@vmware.com>
5411
5412 * source.c (_initialize_source): Add "rev" as an abbreviation
5413 for the "reverse-search" command.
5414
5415 2010-05-16 Michael Snyder <msnyder@vmware.com>
5416
5417 * record.c: White space.
5418 * regcache.c: White space.
5419 * reggroups.c: White space.
5420 * remote-fileio.c: White space.
5421 * remote-m32r-sdi.c: White space.
5422 * remote-mips.c: White space.
5423 * remote-sim.c: White space.
5424 * remote.c: White space.
5425 (process_g_packet): Remove orphan braces.
5426
5427 2010-05-15 Michael Snyder <msnyder@vmware.com>
5428
5429 * parse.c: White space.
5430 * p-lang.c: White space.
5431 * posix-hdep.c: White space.
5432 * printcmd.c: White space.
5433 * progspace.c: White space.
5434 * prologue-value.c: White space.
5435 * psymtab.c: White space.
5436 * p-typeprint.c: White space.
5437 * p-valprint.c: White space.
5438
5439 * objc-lang.c: White space.
5440 * objfiles.c: White space.
5441 * observer.c: White space.
5442 * osabi.c: White space.
5443 * osdata.c: White space.
5444
5445 * m2-lang.c: White space.
5446 * m2-valprint.c: White space.
5447 * macrocmd.c: White space.
5448 * macroexp.c: White space.
5449 * macroscope.c: White space.
5450 * macrotab.c: White space.
5451 * main.c: White space.
5452 * maint.c: White space.
5453 * mdebugread.c: White space.
5454 * memattr.c: White space.
5455 * minsyms.c: White space.
5456 * monitor.c: White space.
5457
5458 2010-05-14 Michael Snyder <msnyder@vmware.com>
5459
5460 * jv-lang.c: White space.
5461 * jv-typeprint.c: White space.
5462 * jv-valprint.c: White space.
5463 * language.c: White space.
5464 * libunwind-frame.c: White space.
5465 * linespec.c: White space.
5466 * linux-nat.c: White space.
5467 * linux-record.c: White space.
5468 * linux-thread-db.c: White space.
5469
5470 * infcall.c: White space.
5471 * inf-child.c: White space.
5472 * infcmd.c: White space.
5473 * inferior.c: White space.
5474 * inf-loop.c: White space.
5475 * inflow.c: White space.
5476 * inline-frame.c: White space.
5477 * interps.c: White space.
5478
5479 * gcore.c: White space.
5480 * gdb.c: White space.
5481 * gdbtypes.c: White space.
5482 * gnu-nat.c: White space.
5483 * gnu-v2-abi.c: White space.
5484 * gnu-v3-abi.c: White space.
5485
5486 * findcmd.c: White space.
5487 * findvar.c: White space.
5488 * fork-child.c: White space.
5489 * frame-base.c: White space.
5490 * frame.c: White space.
5491 * frame-unwind.c: White space.
5492 * f-valprint.c: White space.
5493
5494 * elfread.c: White space.
5495 * environ.c: White space.
5496 * eval.c: White space.
5497 * event-loop.c: White space.
5498 * event-top.c: White space.
5499 * exceptions.c: White space.
5500 * exec.c: White space.
5501 * expprint.c: White space.
5502
5503 * dbxread.c: White space.
5504 * dcache.c: White space.
5505 * disasm.c: White space.
5506 * doublest.c: White space.
5507 * dsrec.c: White space.
5508 * dummy-frame.c: White space.
5509 * dwarf2expr.c: White space.
5510 * dwarf2-frame.c: White space.
5511 * dwarf2loc.c: White space.
5512 * dwarf2read.c: White space.
5513
5514 2010-05-14 Phil Muldoon <pmuldoon@redhat.com>
5515
5516 PR python/11482
5517
5518 * python/py-value.c (valpy_hash): New function.
5519 (value_object_type): Register valpy_hash.
5520
5521 2010-05-14 Hui Zhu <teawater@gmail.com>
5522 Michael Snyder <msnyder@vmware.com>
5523
5524 * linux-fork.c (gdbthread.h): New include.
5525 (fork_info): Add parent_ptid.
5526 (inferior_call_waitpid_cleanup, inferior_call_waitpid): New
5527 functions.
5528 (delete_checkpoint_command): Call inferior_call_waitpid.
5529 (checkpoint_command): Set parent_ptid.
5530
5531 2010-05-13 Michael Snyder <msnyder@vmware.com>
5532
5533 * dictionary.c: Re-indent to GNU coding standard.
5534
5535 * charset.c: White space.
5536 * c-lang.c: White space.
5537 * cli-out.c: White space.
5538 * coffread.c: White space.
5539 * complaints.c: White space.
5540 * completer.c: White space.
5541 * corefile.c: White space.
5542 * corelow.c: White space.
5543 * cp-abi.c: White space.
5544 * cp-namespace.c: White space.
5545 * cp-support.c: White space.
5546 * cp-valprint.c: White space.
5547 * c-typeprint.c: White space.
5548 * c-valprint.c: White space.
5549 * blockframe.c: White space.
5550 * breakpoint.c: White space.
5551 * buildsym.c: White space.
5552 * blockframe.c: White space.
5553 * bcache.c: White space.
5554 * gdbarch.sh: White space, add blank lines.
5555 * arch-utils.c: Ditto.
5556 * gdbarch.c: Regenerate.
5557 * frame.c: White space, add blank lines.
5558 * stack.c: White space, add blank lines.
5559 (initialize_stack): Remove long-dead code.
5560
5561 2010-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
5562
5563 Code cleanup.
5564 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Change the parameter to type.
5565 (locexpr_read_variable, loclist_read_variable): Update the callers.
5566
5567 2010-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
5568
5569 Code cleanup.
5570 * dwarf2read.c (die_type, die_descriptive_type): Remove variable type.
5571 Remove check of NULL returned by tag_type_to_type.
5572 (die_containing_type): Remove variable type. Remove type_die variable
5573 initialization. Remove check of NULL returned by tag_type_to_type.
5574
5575 2010-05-11 Pierre Muller <muller@ics.u-strasbg.fr>
5576
5577 PR exp/11530.
5578 * gdbtypes.c (lookup_struct_elt_type): Also lookup
5579 names of unnamed structures or unions.
5580
5581 2010-05-11 Pierre Muller <muller@ics.u-strasbg.fr>
5582
5583 * procfs.c (proc_watchpoint_address): New function.
5584 (procfs_stopped_by_watchpoint): Remove useless check after
5585 find_procinfo_or_die call.
5586 (procfs_stopped_data_address): New function.
5587 (procfs_use_watchpoints): Register new watchpoint related function.
5588
5589 2010-05-11 Tom Tromey <tromey@redhat.com>
5590
5591 * eval.c (evaluate_subexp_standard): Revert inadvertent change.
5592
5593 2010-05-10 Michael Snyder <msnyder@vmware.com>
5594
5595 * utils.c: White space cleanup.
5596
5597 2010-05-10 Tom Tromey <tromey@redhat.com>
5598
5599 * eval.c (ptrmath_type_p): Add 'lang' argument.
5600 (evaluate_subexp_standard): Update.
5601 (evaluate_subexp_with_coercion): Update.
5602 * language.h (CAST_IS_CONVERSION): Add 'LANG' argument.
5603
5604 2010-05-10 Michael Snyder <msnyder@vmware.com>
5605
5606 * utils.c (do_fclose_cleanup) Restore local variable.
5607
5608 2010-05-09 Doug Evans <dje@google.com>
5609
5610 * record.c (init_record_core_ops): Rename record_core to record-core.
5611
5612 2010-05-08 Joel Brobecker <brobecker@adacore.com>
5613
5614 Implement task switching on pa-hpux.
5615 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): New function.
5616 (inf_ttrace_target): Set t->to_get_ada_task_ptid.
5617
5618 2010-05-08 Pierre Muller <muller@ics.u-strasbg.fr>
5619
5620 * valops.c (find_overload_match): Add missing i18n markup.
5621
5622 2010-05-08 Pierre Muller <muller@ics.u-strasbg.fr>
5623
5624 * p-exp.y (exp : SIZEOF '(' exp ')'): New rule.
5625
5626 2010-05-08 Jan Kratochvil <jan.kratochvil@redhat.com>
5627
5628 * dwarf2read.c (typename_concat): Use (char *) NULL terminated stdarg
5629 list for the obconcat call.
5630 * mdebugread.c (parse_symbol): Likewise.
5631 * stabsread.c (define_symbol, read_member_functions, read_cpp_abbrev):
5632 Likewise.
5633 * symfile.c (obconcat): Replace the s1, s2 and s3 parameters by `...'.
5634 New variable ap. Remove variables len and val.
5635 * symfile.h (obconcat): Likewise for the prototype.
5636
5637 2010-05-07 Michael Snyder <msnyder@vmware.com>
5638
5639 * python/python.c (execute_gdb_command): Remove unused variables.
5640 * python/py-block.c (gdbpy_block_for_pc): Remove unused variable.
5641 * python/py-breakpoint.c (gdbpy_breakpoint_created):
5642 Remove unused variable.
5643 * python/py-cmd.c (cmdpy_function): Remove unused variable.
5644 (cmdpy_completer): Remove unused variable.
5645 * python/py-frame.c (frapy_find_sal): Remove unused variable.
5646 * python/py-function.c (fnpy_call): Remove unused variable.
5647 * python/py-objfile.c (objfile_to_objfile_object):
5648 Remove unused variable.
5649 * python/py-param.c (parmpy_init): Remove unused variable.
5650 * python/py-prettyprint.c (apply_varobj_pretty_printer):
5651 Remove unused variable.
5652 (gdbpy_default_visualizer): Remove unused variable.
5653 * python/py-progspace.c (pspace_to_pspace_object):
5654 Remove unused variable.
5655 * python/py-symtab.c (symtab_and_line_to_sal_object):
5656 Remove unused variable.
5657 * python/py-type.c (typy_template_argument):
5658 Remove unused variable.
5659 * python/py-value.c (valpy_string): Remove unused variable.
5660 (convert_value_from_python): Remove unused variables.
5661
5662 2010-05-07 Michael Snyder <msnyder@vmware.com>
5663
5664 * valops.c (value_cast_pointers): Restore unused variable 'type1',
5665 and use it to compute variable 't1'.
5666
5667 2010-05-07 Joel Brobecker <brobecker@adacore.com>
5668
5669 * ada-lang.c (assign_aggregate): Remove unused variable.
5670
5671 2010-05-07 Sami Wagiaalla <swagiaal@redhat.com>
5672
5673 PR C++/7943:
5674 * valops.c (find_overload_match): Handle fsym == NULL case.
5675 Add int no_adl argument.
5676 (find_oload_champ_namespace_loop): Call make_symbol_overload_list_adl
5677 when appropriate.
5678 Add int no_adl argument.
5679 (find_oload_champ_namespace): Add int no_adl argument.
5680 * parse.c (operator_length_standard): Return length for OP_ADL_FUNC
5681 expression.
5682 * expprint.c (op_name_standard): Added string for OP_ADL_FUNC case.
5683 * eval.c (evaluate_subexp_standard): Added OP_ADL_FUNC case.
5684 Evaluate arguments and use them to perform ADL lookup.
5685 Pass no_adl argument to find_overload_match.
5686 Disable adl lookup when evaluating a fully qualified OP_FUNCALL.
5687 * cp-support.h: Added prototype for
5688 make_symbol_overload_list_namespace.
5689 * cp-support.c (make_symbol_overload_list_namespace): New function.
5690 (make_symbol_overload_list_adl_namespace): New function.
5691 (make_symbol_overload_list_adl): New function.
5692 (make_symbol_overload_list_using): Moved code to add function to
5693 overload set to make_symbol_overload_list_namespace.
5694 * c-exp.y: create UNKNOWN_CPP_NAME token.
5695 Add parse rule for ADL functions.
5696 (classify_name): Recognize an UNKNOWN_CPP_NAME.
5697
5698 2010-05-07 Jan Kratochvil <jan.kratochvil@redhat.com>
5699
5700 * fbsd-nat.c (fbsd_make_corefile_notes): Add cast to NULL used as
5701 sentinel.
5702
5703 2010-05-07 Joel Brobecker <brobecker@adacore.com>
5704
5705 Implement task switching on solaris targets.
5706 * sol-thread.c (thread_db_find_thread_from_tid)
5707 (sol_get_ada_task_ptid): New functions.
5708 (init_sol_thread_ops): Set sol_thread_ops.to_get_ada_task_ptid.
5709
5710 2010-05-07 Pedro Alves <pedro@codesourcery.com>
5711
5712 * remote.c (remote_query_supported_append): Use reconcat.
5713 (remote_query_supported): Install a cleanup. Use reconcat.
5714
5715 2010-05-07 Pedro Alves <pedro@codesourcery.com>
5716
5717 * gdbarch.sh (qsupported): Delete.
5718 * gdbarch.h, gdbarch.c: Regenerate.
5719 * remote.c (remote_query_supported): Remove use of
5720 gdbarch_qsupported.
5721
5722 2010-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
5723
5724 * xml-syscall.c (syscall_start_syscalls_info): Remove unused
5725 function.
5726
5727 2010-05-06 Michael Snyder <msnyder@vmware.com>
5728
5729 * xml-support.c (xinclude_start_include): Delete unused variable.
5730 (xml_process_xincludes): Delete unused variable.
5731 * xml-syscall.c (syscall_parse_xml): Delete unused variable.
5732 * target-descriptions.c (tdesc_gdb_type): Delete unused variable.
5733 (tdesc_find_arch_register): Delete unused variable.
5734 (tdesc_use_registers): Delete unused variable.
5735 * xml-tdesc.c (tdesc_start_target): Delete unused variable.
5736 * inferior.c (print_inferior): Delete unused variable.
5737 * record.c (record_open_1): Delete unused variable.
5738 (record_restore): Delete unused variable.
5739 (cmd_record_save): Delete unused variable.
5740 * gcore.c (derive_heap_segment): Delete unused variable.
5741 (objfile_find_memory_regions): Use unused variable.
5742 * jit.c (jit_inferior_init): Delete unused variable.
5743 * progspace.c (clone_program_space): Delete unused variable.
5744 (pspace_empty_p): Delete unused variable.
5745
5746 * frame-unwind.c (frame_unwind_find_by_frame):
5747 Delete unused variable.
5748 * gnu-v2-abi.c (gnuv2_value_rtti_type): Delete unused variable.
5749 * cp-support.c (mangled_name_to_comp): Delete unused variable.
5750 (method_name_from_physname): Delete unused variable.
5751 (cp_func_name): Delete unused variable.
5752 (cp_validate_operator): Delete unused variable.
5753 * cp-namespace.c (cp_scan_for_anonymous_namespaces):
5754 Delete unused variable.
5755 * trad-frame.c (trad_frame_get_prev_register):
5756 Delete unused variable.
5757 * tramp-frame.c (tramp_frame_cache): Delete unused variable.
5758
5759 * serial.c (serial_for_fd): Delete unused variable.
5760 * mdebugread.c (psymtab_to_symtab_1): Delete unused variable.
5761 * top.c (execute_command): Delete unused variable.
5762 (init_main): Delete unused variable.
5763 * utils.c (do_fclose_cleanup): Delete unused variable.
5764 (do_all_inferior_continuations): Delete unused variable.
5765 (initialize_utils): Delete unused variable.
5766 (internal_problem_mode): Delete unused global.
5767 * frame.c (get_prev_frame): Delete unused global.
5768 (get_frame_locals_address): Delete unused global.
5769 (get_frame_args_address): Delete unused global.
5770
5771 * p-typeprint.c (pascal_type_print_base): Delete unused variable.
5772 (pascal_type_print_varspec_prefix): Delete unused variable.
5773 * f-typeprint.c (f_type_print_base): Delete unused variable.
5774 (f_type_print_varspec_suffix): Delete unused variable.
5775 * m2-typeprint.c (m2_print_type): Delete unused variable.
5776 (m2_long_set): Delete unused variable.
5777 * ada-valprint.c (ada_val_print_1): Delete unused variable.
5778 * d-valprint.c (dynamic_array_type): Delete unused variable.
5779 * f-valprint.c (f77_get_dynamic_length_of_aggregate):
5780 Delete unused variable.
5781 (f77_create_arrayprint_offset_tbl): Delete unused variable.
5782 * m2-valprint.c (m2_val_print): Delete unused variable.
5783
5784 * ui-out.c (ui_out_field_int): Delete unused variable.
5785 (ui_out_field_fmt_int): Delete unused variable.
5786 * varobj.c (varobj_list_children): Delete unused variable.
5787 (varobj_set_value): Delete unused variable.
5788 (install_new_value_visualizer): Delete unused variable.
5789 (varobj_set_visualizer): Delete unused variable.
5790 (varobj_update): Delete unused variable.
5791 (varobj_editable_p): Delete unused variable.
5792 (c_value_of_root): Delete unused variable.
5793 (cplus_describe_child): Delete unused variable.
5794
5795 * ada-lang.c (add_defn_to_vec): Delete unused variable.
5796 (decode_constrained_packed_array_type): Delete unused variable.
5797 (add_defn_to_vec): Delete unused variable.
5798 (symbol_completion_match): Delete unused variable.
5799 (value_tag_from_contents_and_address): Delete unused variable.
5800 (ada_evaluate_subexp): Delete unused variable.
5801 * c-lang.c (classify_type): Delete unused variable.
5802 * f-lang.c (f_printstr): Delete unused variable.
5803 * objc-lang.c (objc_printstr): Delete unused variable.
5804 * ada-tasks.c (get_known_tasks_addr): Delete unused variable.
5805 * jv-lang.c (type_from_class): ifdef unused variable.
5806 (java_class_name_from_physname): Delete unused variable.
5807 * m2-lang.c (m2_printstr): Delete unused variable.
5808
5809 * objfiles.c (objfile_relocate): Delete unused variable.
5810 * maint.c (_initialize_maint_cmds): Delete unused variable.
5811 * demangle.c (_initialize_demangler): Delete unused variable.
5812 * corefile.c (reopen_exec_file): Delete unused variable.
5813 * dwarf2expr.c (dwarf2_read_address): Delete unused variable.
5814 * dwarf2-frame.c (decode_frame_entry): Delete unused variable.
5815
5816 * osabi.c (_initialize_gdb_osabi): Delete unused variable.
5817 * memattr.c (mem_delete): Delete unused variable.
5818 (invalidate_target_mem_regions): Delete unused variable.
5819 * mem-break.c (default_memory_insert_breakpoint):
5820 Delete unused variable.
5821 * target.c (target_get_osdata): Delete unused variable.
5822 * parse.c (length_of_subexp): Delete unused variable.
5823 (prefixify_subexp): Delete unused variable.
5824 (exp_iterate): Delete unused variable.
5825 * reverse.c (delete_bookmark_command): Delete unused variable.
5826
5827 * macrocmd.c (_initialize_macrocmd): Delete unused variable.
5828 * macroexp.c (gather_arguments): Delete unused variable.
5829 (substitute_args): Delete unused variable.
5830 * completer.c (gdb_completer_loc_break_characters): Unused, delete.
5831 * gdbarch.sh (gdbarch_printable_names): Delete unused variable.
5832 (_initialize_gdbarch): Delete unused variable.
5833 * gdbarch.c, gdbarch.h: Regenerate.
5834 * arch-utils.c (initialize_current_architecture):
5835 Delete unused variable.
5836 (_initialize_gdbarch_utils): Delete unused variable.
5837 * gdbtypes.c (make_cv_type): Delete unused variable.
5838 (make_type_with_address_space): Delete unused variable.
5839
5840 * linespec.c (decode_compound): Delete unused variable.
5841 * dictionary.c (iterator_next_hashed): Delete unused variable.
5842 * infcall.c (call_function_by_hand): Delete unused variable.
5843 * infcmd.c (step_1): Delete unused variable.
5844 (registers_info): Delete unused variable.
5845 (attach_command): Delete unused variable.
5846 * infrun.c (follow_exec): Delete unused variable.
5847 (handle_step_into_function_backwards): Delete unused variable.
5848 (_initialize_infrun): Delete unused variable.
5849 * stack.c (parse_frame_specification_1): Delete unused variable.
5850 (frame_info): Delete unused variable.
5851 (backtrace_command_1): Delete unused variable.
5852 (catch_info): Delete unused variable.
5853
5854 * eval.c (evaluate_subexp_standard): Delete unused variable.
5855 * valops.c (value_cast_pointers): Delete unused variable.
5856 (value_dynamic_cast): Delete unused variable.
5857 (value_array): Delete unused variable.
5858 (find_overload_match): Delete unused variable.
5859 * valarith.c (value_subscript): Delete unused variable.
5860 (value_binop): Delete unused variable.
5861 * valprint.c (_initialize_valprint): Delete unused variable.
5862 * printcmd.c (print_command_1): Delete unused variable.
5863 (address_info): Delete unused variable.
5864 (printf_command): Delete unused variable.
5865
5866 * auxv.c (target_auxv_search): Delete unused variable.
5867 * blockframe.c (get_frame_block): Delete unused variable.
5868 * regcache.c (regcache_cpy): Delete unused variable.
5869 (regcache_cpy_no_passthrough): Delete unused variable.
5870 * charset.c (wchar_iterate): Delete unused variable.
5871 (find_charset_names): Delete unused variable.
5872 (_initialize_charset): Delete unused variable.
5873 * disasm.c (do_mixed_source_and_assembly):
5874 Delete unused variable.
5875 * source.c (set_default_source_symtab_and_line):
5876 Delete unused variable.
5877 (set_substitute_path_command): Delete unused variable.
5878 * value.c (preserve_values): Delete unused variable.
5879 (value_from_double): Delete unused variable.
5880
5881 2010-05-05 Michael Snyder <msnyder@vmware.com>
5882
5883 * psymtab.c (lookup_partial_symbol): Delete unused variable.
5884 (find_last_source_symtab_from_partial): Delete unused variable.
5885 * symfile.c (place_section): Delete unused variable.
5886 (default_symfile_offsets): Delete unused variable.
5887 (get_debug_link_info): Delete unused variable.
5888 (find_separate_debug_file_by_debuglink): Delete unused variable.
5889 (add_symbol_file_command): Delete unused variable.
5890 (symfile_find_segment_sections): Delete unused variable.
5891 * symmisc.c (free_symtab): Delete unused variable.
5892 (dump_symtab_1): Delete unused variable.
5893 * symtab.c (lookup_symbil_aux_quick): Delete unused variable.
5894 (find_pc_sect_symtab): Delete unused variable.
5895 (skip_prologue_using_lineinfo): Delete unused variable.
5896 (sources_info): Delete unused variable.
5897 (completion_list_add_name): Delete unused variable.
5898 (expand_line_sal): Delete unused variable.
5899
5900 * breakpoint.c (validate_commands_for_breakpoint):
5901 Delete unused variables.
5902 (insert_catchpoint): Delete unused variable.
5903 (update_watchpoint): Delete unused variable.
5904 (insert_bp_location): Delete unused variable.
5905 (insert_breakpoint_locations): Delete unused variable.
5906 (remove_breakpoint_1): Delete unused variable.
5907 (software_breakpoint_inserted_here_p): Delete unused variable.
5908 (watchpoints_triggered): Delete unused variable.
5909 (bpstat_check_watchpoint): Delete unused variable.
5910 (bpstat_stop_status): Delete unused variable.
5911 (print_one_breakpoint_location): Delete unused variable.
5912 (allocate_bp_location): Delete unused variable.
5913 (create_breakpoint): Delete unused variable.
5914 (watch_command_1): Delete unused variable.
5915 (catch_exception_command_1): Delete unused variable.
5916 (catch_ada_exception_command): Delete unused variable.
5917 (delete_breakpoint): Delete unused variable.
5918 (breakpoint_re_set_one): Delete unused variable.
5919 (do_enable_breakpoint): Delete unused variable.
5920
5921 2010-05-06 Pedro Alves <pedro@codesourcery.com>
5922
5923 * amd64-tdep.c: Include disasm.h.
5924 (amd64_insn_length_fprintf, amd64_insn_length_init_dis)
5925 (amd64_insn_length): Moved to disasm.c and renamed.
5926 (fixup_riprel): Adjust.
5927 * disasm.c (do_ui_file_delete): New.
5928 (gdb_insn_length): New.
5929 (gdb_buffered_insn_length_fprintf)
5930 (gdb_buffered_insn_length_init_dis)
5931 (gdb_buffered_insn_length): New, moved from amd64-tdep.c, and
5932 renamed.
5933 * disasm.h (gdb_insn_length): Declare.
5934 (gdb_buffered_insn_length): Declare.
5935
5936 2010-05-06 Pedro Alves <pedro@codesourcery.com>
5937
5938 * remote.c (clear_threads_parsing_context): New.
5939 (remote_threads_info): Delete unused null_cleanup. Install a
5940 cleanup to clear the threads_parsing_context in case parsing
5941 throws.
5942
5943 2010-05-05 Michael Snyder <msnyder@vmware.com>
5944
5945 * c-exp.y (parse_string_or_char): Delete unused variable.
5946 (c_lex): Delete unused variable.
5947 * cp-name-parser.y (cpname_lex): Delete unused variable.
5948 * ada-exp.y (find_primitive_type): Delete unused variable.
5949 (write_var_or_type): Delete unused variable.
5950 * jv-exp.y (java_parse): Delete unused variable.
5951 (push_expression_name): Delete unused variable.
5952 * p-exp.y (pascal_lex): Delete unused variable.
5953
5954 2010-05-05 Pedro Alves <pedro@codesourcery.com>
5955
5956 * remote.c (remote_threads_info): Really revert previous previous
5957 change.
5958
5959 2010-05-05 Michael Snyder <msnyder@vmware.com>
5960
5961 * elfread.c (elf_symtab_read): Delete unused variable.
5962 (find_separate_debug_file_by_buildid): Delete unused variables.
5963 (elf_symfile_read): Delete unused variable.
5964
5965 * coffread.c (coff_symfile_read): Delete unused variables.
5966
5967 * coff-pe-read.c (add_pe_exported_sym): Delete unused variable.
5968 (read_pe_exported_syms): Delete unused variable.
5969
5970 * stabsread.c (define_symbol): Delete unused variable.
5971
5972 * dwarf2read.c (read_type_comp_unit_head): Delete unused variable.
5973 (process_psymtab_comp_unit): Delete unused variable.
5974 (dwarf2_build_psymtabs_hard): Delete unused variable.
5975 (load_partial_comp_unit): Delete unused variable.
5976 (create_all_comp_units): Delete unused variable.
5977 (scan_partial_symbols): Delete unused variable.
5978 (add_partial_symbol): Delete unused variable.
5979 (add_partial_namespace): Delete unused variable.
5980 (add_partial_enumeration): Delete unused variable.
5981 (load_full_comp_unit): Delete unused variable.
5982 (process_full_comp_unit): Delete unused variable.
5983 (read_file_scope): Delete unused variable.
5984 (read_type_unit_scope): Delete unused variable.
5985 (process_structure_scope): Delete unused variable.
5986 (process_enumeration_scope): Delete unused variable.
5987 (read_tag_ptr_to_member_type): Delete unused variable.
5988 (read_typedef): Delete unused variable.
5989 (read_partial_die): Delete unused variable.
5990 (decode_locdesc): Delete unused variable.
5991 (zeroed_partial_die): Delete unused global variable.
5992
5993 * tui/tui-interp.c (_initialize_tui_interp):
5994 Delete unused variable.
5995 * tui/tui-regs.c tui_display_registers_from):
5996 Delete unused variable.
5997 (tui_check_register_values): Delete unused variable.
5998 (tui_register_format): Delete unused variable.
5999 * tui/tui-win.c (_initialize_tui_win): Delete unused variable.
6000 * tui/tui-windata.c (tui_display_data_from_line):
6001 Delete unused variables.
6002 (tui_vertical_data_scroll): Delete unused variables.
6003
6004 2010-05-05 Michael Snyder <msnyder@vmware.com>
6005
6006 * remote.c (remote_threads_info): Revert questionable part of
6007 the previous change.
6008
6009 2010-05-05 Michael Snyder <msnyder@vmware.com>
6010
6011 * mi/mi-out.c (mi_table_begin): Delete unused variable.
6012 * mi/mi-cmd-var.c (print_varobj): Delete unused variable.
6013 (mi_cmd_var_list_children): Delete unused variable.
6014 (varobj_update_one): Delete unused variable.
6015 * mi/mi-cmd-break.c (mi_cmd_break_insert): Delete unused variables.
6016 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals):
6017 Delete unused variable.
6018 (mi_cmd_stack_list_variables): Delete unused variable.
6019 (list_args_or_locals): Delete unused variable.
6020 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file):
6021 Delete unused variables.
6022 (mi_cmd_file_list_exec_source_files): Delete unused variable.
6023 * mi/mi-cmd-target.c (mi_cmd_target_file_delete):
6024 Delete unused variable.
6025 * mi/mi-interp.c (mi_interpreter_exec): Delete unused variable.
6026 (mi_cmd_interpreter_exec): Delete unused variable.
6027 (mi_on_normal_stop): Delete unused variable.
6028 * mi/mi-main.c (run_one_inferior): Delete unused variable.
6029 (print_one_inferior): Delete unused variables.
6030 (mi_execute_command): Delete unused variable.
6031 (mi_cmd_execute): Delete unused variable.
6032 (timestamp): Delete unused variable.
6033
6034 * cli/cli-dump.c (dump_memory_to_file): Delete unused variable.
6035 (restore_binary_file): Delete unused variable.
6036 * cli/cli-decode.c (deprecated_cmd_warning): Delete unused variables.
6037 * cli/cli-script.c (define_command): Delete unused variables.
6038 (recurse_read_control_structure): Delete unused variable.
6039 (script_from_file): Delete unused variable.
6040 * cli/cli-cmds.c (complete_command): Delete unused variable.
6041 (disassemble_command): Delete unused variable.
6042
6043 * ax-gdb.c (gen_struct_elt_for_reference): Delete unused variables.
6044 * tracepoint.c (delete_trace_variable_command):
6045 Delete unused variables.
6046 (encode_actions_1): Delete unused variables.
6047 (start_tracing): Delete unused variable.
6048 (trace_status_mi): Delete unused variable.
6049 (tfind_1): Delete unused variable.
6050 (trace_find_pc_command): Delete unused variable.
6051 (trace_find_line_command): Delete unused variables.
6052 (trace_find_range_command): Delete unused variables.
6053 (trace_find_outside_command): Delete unused variables.
6054 (parse_tracepoint_definition): Delete unused variables.
6055 (tfile_fetch_registers): Delete unused variable.
6056
6057 * dcache.c (dcache_init): Delete unused variable.
6058 (dcache_info): Delete unused variable.
6059
6060 * remote.c (remote_threads_info): Delete unused variable.
6061 (process_stop_reply) :Delete unused variable.
6062 (remote_get_trace_status): Delete unused variables.
6063
6064 * linux-thread-db.c (add_thread_db_info): Delete unused variable.
6065 (thread_from_lwp): Delete unused variable.
6066 (enable_thread_event_reporting): Delete unused variable.
6067 (check_for_thread_db): Delete unused variables.
6068 (thread_db_find_new_threads_2): Delete unused variable.
6069
6070 * linux-fork.c (info_checkpoints_command): Delete unused variables.
6071 (checkpoint_command): Delete unused variable.
6072 (linux_fork_context): Delete unused variables.
6073
6074 * linux-nat.c (linux_parent_pid): Delete unused global variable.
6075 (linux_tracefork_child): Delete unused variable.
6076 (linux_child_follow_fork): Delete unused variable.
6077 (linux_nat_detach): Delete unused variable.
6078 (linux_handle_extended_wait): Delete unused variable.
6079 (linux_nat_has_pending_sigint): Delete unused variable.
6080 (linux_nat_find_memory_regions): Delete unused variable.
6081 (linux_nat_make_corefile_notes): Delete unused variables.
6082 (linux_nat_info_proc_cmd): Delete unused variable.
6083 (linux_proc_pending_signals): Delete unused variable.
6084 (linux_nat_stop_lwp): Delete unused variables.
6085 (_initialize_linux_nat): Delete unused variable.
6086
6087 * ser-pipe.c (pipe_ops): Delete unused global variable.
6088
6089 * linux-record.c (record_linux_system_call):
6090 Delete unused variables.
6091
6092 * corelow.c (core_xfer_partial): Delete unused variables.
6093
6094 * solib-svr4.c (find_program_interpreter): Delete unused variable.
6095 (svr4_solib_create_inferior_hook): Add ifdef around
6096 conditionally-used variable declarations.
6097
6098 * solib.c (solib_find): Delete unused variable.
6099 (free_so_symbols): Delete unused variable.
6100 (info_sharedlibrary_command): Delete unused variable.
6101 (reload_shared_libraries_1): Delete unused variable.
6102 (_initialize_solib): Delete unused variable.
6103
6104 * i386-tdep.c (i386_supply_xstateregset) Delete unused variable.
6105 (i386_collect_xstateregset): Delete unused variable.
6106 * i387-tdep.c (i387_print_float_info): Delete unused variable.
6107
6108 * features/i386/i386-mmx.c (initialize_tdesc_i386_mmx):
6109 Delete unused variable 'type'.
6110
6111 2010-05-05 Joel Brobecker <brobecker@adacore.com>
6112
6113 * gdbtypes.h (MAX_OF_TYPE, MIN_OF_TYPE): Delete macros. *
6114 ada-lang.c: Remove comment mentioning these macros.
6115 * m2-exp.y: Delete commented out code.
6116
6117 2010-05-05 Joel Brobecker <brobecker@adacore.com>
6118
6119 * sparc-tdep.c (sparc_structure_or_union_p): Return non-zero
6120 for array types.
6121 * sparc64-tdep.c (sparc64_structure_or_union_p): Likewise.
6122
6123 2010-05-04 Pierre Muller <muller@ics.u-strasbg.fr>
6124
6125 ARI fix: Remove ATTRIBUTE_UNUSED throughout.
6126 * arm-linux-tdep.c (arm_linux_cleanup_svc): Remove
6127 ATTRIBUTE_UNUSED.
6128 (cleanup_kernel_helper_return): Likewise.
6129 * arm-tdep.c (copy_unmodified): Likewise.
6130 (copy_preload): Likewise.
6131 (copy_copro_load_store): Likewise.
6132 (cleanup_branch): Likewise.
6133 (copy_b_bl_blx): Likewise.
6134 (copy_bx_blx_reg): Likewise.
6135 (copy_alu_imm): Likewise.
6136 (copy_alu_reg): Likewise.
6137 (copy_alu_shifted_reg): Likewise.
6138 (cleanup_load): Likewise.
6139 (cleanup_store): Likewise.
6140 (cleanup_block_load_pc): Likewise.
6141 (cleanup_svc): Likewise.
6142 (copy_undef): Likewise.
6143 (copy_unpred): Likewise.
6144 * remote.c (register_remote_support_xml): Likewise.
6145
6146 2010-05-05 Hui Zhu <teawater@gmail.com>
6147
6148 * gdbarch.h (gdbarch_has_dos_based_file_system): Update comment.
6149
6150 2010-05-04 Mark Kettenis <kettenis@gnu.org>
6151
6152 * remote.c (register_remote_support_xml)
6153 (remote_query_supported_append, remote_query_supported): Add cast
6154 to NULL used as sentinel.
6155 * tracepoint.c (tvariables_info_1): Likewise.
6156 * utils.c (add_internal_problem_command): Likewise.
6157
6158 2010-05-04 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
6159
6160 * dwarf2loc.c (read_pieced_value, write_pieced_value,
6161 dwarf2_evaluate_loc_desc): Handle not being able to access DWARF
6162 registers gracefully.
6163
6164 2010-05-04 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
6165
6166 * exec.c (print_section_info): Display entry point without arch
6167 specific parts.
6168
6169 2010-05-04 Pierre Muller <muller@ics.u-strasbg.fr>
6170
6171 PR exp/11349.
6172 * printcmd.c (x_command): Only dereference once implicitly for
6173 TYPE_CODE_REF.
6174
6175 2010-05-03 Doug Evans <dje@google.com>
6176
6177 * event-loop.c (gdb_timer): Delete unused global.
6178 (create_timer): Update.
6179
6180 2010-05-03 Jan Kratochvil <jan.kratochvil@redhat.com>
6181
6182 * cp-namespace.c (cp_lookup_symbol_imports): Support ALIAS for the
6183 CURRENT->DECLARATION case.
6184 * cp-support.h (struct using_direct): Provide extended comment.
6185
6186 2010-05-03 Mark Kettenis <kettenis@gnu.org>
6187
6188 * hppaobsd-tdep.c (HPPAOBSD_SIZEOF_GREGS): Renamed from
6189 HPPABSD_SIZEOF_GREGS.
6190 (HPPAOBSD_SIZEOF_FPREGS): New define.
6191 (hppaobsd_supply_gregset): Renamed from hppabsd_supply_gregset.
6192 (hppaobsd_supply_fpregset): New function.
6193 (hppaobsd_gregset): Renamed from hppabsd_gregset.
6194 (hppaobsd_fpregset): New variable.
6195 (hppaobsd_regset_from_core_section): Handle floating-point registers.
6196 (_initialize_hppabsd_tdep): Remove spurious blank line.
6197
6198 2010-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
6199
6200 PR pascal/11349.
6201 * p-valprint.c (pascal_value_print): Always dereference a value with
6202 type code TYPE_CODE_REF.
6203
6204 2010-05-03 Pedro Alves <pedro@codesourcery.com>
6205
6206 * remote.c (remote_notice_signals): New.
6207 (remote_start_remote): In non-stop mode, update the remote end on
6208 which signals it can silently pass.
6209 (init_remote_ops): Install remote_notice_signals.
6210
6211 2010-05-02 Jan Kratochvil <jan.kratochvil@redhat.com>
6212
6213 * cli/cli-cmds.h (error_no_arg): Remove. Move the comment ...
6214 * command.h (error_no_arg): ... here. Remove NORETURN, change
6215 ATTR_NORETURN to ATTRIBUTE_NORETURN.
6216 * defs.h (NORETURN, ATTR_NORETURN): Remove.
6217 (perror_with_name, verror, error, error_stream, vfatal, fatal)
6218 (internal_verror, internal_error, nomem): Remove NORETURN, change
6219 ATTR_NORETURN to ATTRIBUTE_NORETURN.
6220 * exceptions.c (throw_exception, deprecated_throw_reason, throw_verror)
6221 (throw_vfatal, throw_error): Remove NORETURN.
6222 (throw_it): Remove NORETURN, change ATTR_NORETURN to ATTRIBUTE_NORETURN.
6223 * exceptions.h (throw_exception, throw_verror, throw_vfatal)
6224 (throw_error, deprecated_throw_reason): Remove NORETURN, change
6225 ATTR_NORETURN to ATTRIBUTE_NORETURN.
6226 * linespec.c (cplusplus_error): Remove NORETURN, change ATTR_NORETURN
6227 to ATTRIBUTE_NORETURN for prototype, for the definition only remove
6228 NORETURN.
6229 * remote-mips.c (mips_error): Change NORETURN to ATTRIBUTE_NORETURN.
6230 * remote-sim.c (gdb_os_error): Change ATTR_NORETURN to
6231 ATTRIBUTE_NORETURN.
6232 * target.c (tcomplain): Likewise.
6233 * target.h (noprocess): Remove NORETURN, change ATTR_NORETURN to
6234 ATTRIBUTE_NORETURN.
6235 * utils.c (verror, error, vfatal, fatal, error_stream, internal_verror)
6236 (internal_error, perror_with_name, nomem): Remove NORETURN.
6237 * xml-support.h (gdb_xml_error): Change ATTR_NORETURN to
6238 ATTRIBUTE_NORETURN.
6239
6240 2010-05-02 Jan Kratochvil <jan.kratochvil@redhat.com>
6241
6242 * ada-lang.c (lim_warning): Change ATTR_FORMAT to ATTRIBUTE_PRINTF.
6243 * amd64-tdep.c (amd64_insn_length_fprintf): Likewise.
6244 * cli-out.c (cli_field_fmt): New ATTRIBUTE_PRINTF.
6245 (cli_message, out_field_fmt): Change ATTR_FORMAT to ATTRIBUTE_PRINTF.
6246 * complaints.c (find_complaint): New ATTRIBUTE_PRINTF.
6247 (vcomplaint): Change ATTR_FORMAT to ATTRIBUTE_PRINTF.
6248 * complaints.h (complaint, internal_complaint): Likewise.
6249 * defs.h: Change ATTR_FORMAT to ATTRIBUTE_PRINTF in the top comment.
6250 (ATTR_FORMAT): Remove.
6251 (query, nquery, yquery, vprintf_filtered, vfprintf_filtered)
6252 (fprintf_filtered, fprintfi_filtered, printf_filtered, printfi_filtered)
6253 (vprintf_unfiltered, vfprintf_unfiltered, fprintf_unfiltered)
6254 (printf_unfiltered, xasprintf, xvasprintf, xstrprintf, xstrvprintf)
6255 (xsnprintf, verror, error, vfatal, fatal, internal_verror)
6256 (internal_error, internal_vwarning, internal_warning, warning)
6257 (vwarning): Change ATTR_FORMAT to ATTRIBUTE_PRINTF.
6258 * disasm.c (fprintf_disasm): Likewise.
6259 * exceptions.c (throw_it): Likewise.
6260 * exceptions.h (exception_fprintf, throw_verror, throw_vfatal)
6261 (throw_error): Likewise.
6262 * language.h (type_error, range_error): Likewise.
6263 * linespec.c (cplusplus_error): Likewise.
6264 * mi/mi-interp.c (mi_interp_query_hook): Likewise.
6265 * mi/mi-out.c (mi_field_fmt, mi_message): Likewise.
6266 * monitor.c (monitor_debug): Likewise.
6267 * parser-defs.h (parser_fprintf): Likewise.
6268 * serial.h (serial_printf): Likewise.
6269 * tui/tui-hooks.c (tui_query_hook): Likewise.
6270 * ui-out.c (default_field_fmt, default_message, uo_field_fmt)
6271 (uo_message): Likewise.
6272 * ui-out.h (ui_out_field_fmt, ui_out_message): Likewise.
6273 * utils.c (vfprintf_maybe_filtered, internal_vproblem, defaulted_query):
6274 Likewise.
6275 * xml-support.h (gdb_xml_debug, gdb_xml_error): Likewise.
6276
6277 2010-05-02 Pedro Alves <pedro@codesourcery.com>
6278
6279 * cli-out.c (cli_table_begin, cli_table_body, cli_table_end)
6280 (cli_table_header, cli_begin, cli_end, cli_field_int)
6281 (cli_field_skip, cli_field_string, cli_field_fmt, cli_spaces)
6282 (cli_text, cli_message, cli_wrap_hint, cli_flush, cli_redirect):
6283 Delete forward declarations.
6284 (cli_ui_out_impl): Move below the callbacks.
6285 (_initialize_cli_out): Delete.
6286
6287 2010-05-02 Pedro Alves <pedro@codesourcery.com>
6288
6289 * README: Use consistent `GDB' and `GDBserver' spellings.
6290
6291 2010-05-02 Jan Kratochvil <jan.kratochvil@redhat.com>
6292
6293 * cli/cli-dump.h (parse_and_eval_with_error): Remove the declaration.
6294
6295 2010-05-01 Pedro Alves <pedro@codesourcery.com>
6296
6297 * infrun.c (prepare_for_detach): In non-stop, context switch to
6298 the thread that got the event before handling the event.
6299
6300 2010-04-30 Tom Tromey <tromey@redhat.com>
6301
6302 * symtab.c (symbol_set_names): Fix typo.
6303
6304 2010-04-30 Pierre Muller <muller@ics.u-strasbg.fr>
6305
6306 * python/py-param.c (parm_constants): Avoid ARI warning
6307 by adding ARI comment.
6308 (parmpy_init): Likewise.
6309
6310 2010-04-30 Pierre Muller <muller@ics.u-strasbg.fr>
6311
6312 * windows-tdep.c (windows_get_tlb_type): Remember last GDBARCH
6313 and created type for re-use.
6314
6315 2010-04-30 Pierre Muller <muller@ics.u-strasbg.fr>
6316
6317 * NEWS: Mention gdbserver support for x86_64 Windows 64-bit.
6318
6319 2010-04-29 Doug Evans <dje@google.com>
6320
6321 * ser-base.h (reschedule): Delete prototype.
6322 * ser-base.c (reschedule): Make static.
6323
6324 2010-04-29 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
6325
6326 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Remove.
6327 (ARM_LINUX_JB_PC_FPA): Add, offset of PC in longjmp buffer for FPA.
6328 (ARM_LINUX_JB_PC_EABI): Add, offset of PC in longjmp buffer for
6329 EABI.
6330 (arm_linux_init_abi): Set up JB_PC field dependent on FP model in
6331 use.
6332
6333 2010-04-29 Pedro Alves <pedro@codesourcery.com>
6334
6335 PR gdb/11557
6336
6337 * regcache.c (registers_changed): Rename to ...
6338 (registers_changed_ptid): ... this, and only delete register cache
6339 entries matching the ptid filter argument.
6340 (registers_changed): Reimplement on top of registers_changed_ptid.
6341 * regcache.h (registers_changed_ptid): Declare.
6342 * target.c (target_resume): Flush register caches.
6343
6344 2010-04-29 Phil Muldoon <pmuldoon@redhat.com>
6345 Tom Tromey <tromey@redhat.com>
6346 Thiago Jung Bauermann <bauerman@br.ibm.com>
6347
6348 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-parameter.
6349 (SUBDIR_PYTHON_SRCS): Likewise.
6350 (py-parameter.o): New rule.
6351 * python/py-parameter.c: New file.
6352 * python/python-internal.h (gdbpy_initialize_parameter)
6353 (gdbpy_parameter, gdbpy_parameter_value)
6354 (gdbpy_parse_command_name): Declare.
6355 * python/py-cmd.c (parse_command_name): Rename to
6356 gdbpy_parse_command_name.
6357 (gdbpy_parse_command_name): Accept a starting list parameter and
6358 use over cmdlist.
6359 (cmdpy_init): Use gdbpy_parse_command_name.
6360 * python/python.c (parameter_to_python): Rename to
6361 gdbpy_parameter_to_python. Accept enum var_types and value.
6362 (gdbpy_parameter): Use gdbpy_parameter_value.
6363 (_initialize_python): Call gdbpy_initialize_parameters.
6364
6365 2010-04-29 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
6366
6367 * MAINTAINERS: Add myself for write after approval privileges.
6368
6369 2010-04-29 Mihail Zenkov <mihail.zenkov@gmail.com>
6370
6371 D language support.
6372 * Makefile.in (SFILES): Add d-lang.c d-valprint.c.
6373 (COMMON_OBS): Add d-lang.o d-valprint.o.
6374 (HFILES_NO_SRCDIR): Add d-lang.h.
6375 * NEWS: Mention D language support.
6376 * c-lang.c (c_emit_char, exp_descriptor_c): Make public.
6377 * c-lang.h (c_emit_char, exp_descriptor_c): Add declaration.
6378 * d-lang.c: New file.
6379 * d-lang.h: New file.
6380 * d-valprint.c: New file.
6381 * defs.h (enum language): Add language_d.
6382 * dwarf2read.c (set_cu_language): Add DW_LANG_D.
6383 * language.c (binop_result_type, integral_type, character_type)
6384 (string_type, boolean_type, structured_type): Add language_d.
6385 * symfile.c (init_filename_language_table): Add language_d.
6386 * symtab.c: Include d-lang.h.
6387 (symbol_init_language_specific, symbol_find_demangled_name)
6388 (symbol_natural_name, lookup_symbol_in_language)
6389 (symbol_demangled_name, symbol_matches_domain): Add language_d.
6390
6391 2010-04-27 Joel Brobecker <brobecker@adacore.com>
6392
6393 * solib-svr4.c (solib_svr4_r_map): Expand function description.
6394
6395 2010-04-27 Joel Brobecker <brobecker@adacore.com>
6396
6397 * symfile.c (init_filename_language_table): Register .dg files
6398 with language_ada.
6399
6400 2010-04-27 Joel Brobecker <brobecker@adacore.com>
6401
6402 * gdbtypes.h (struct main_type): Expand comment about target_type
6403 field.
6404
6405 2010-04-27 Pedro Alves <pedro@codesourcery.com>
6406 Tristan Gingold <gingold@adacore.com>
6407
6408 * symfile.c (reread_symbols): Also search for file in libraries.
6409 Update comment.
6410
6411 2010-04-27 Joel Brobecker <brobecker@adacore.com>
6412
6413 * configure.tgt: Treat x86-lynxos targets as x86 bareboard targets
6414 in terms of configuration.
6415
6416 2010-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
6417
6418 * objfiles.c: Include solist.h.
6419 (free_all_objfiles): New variable so. Check stale solist objfiles.
6420 * symfile.c (symbol_file_clear): Swap the order of free_all_objfiles
6421 and no_shared_libraries.
6422
6423 2010-04-27 Joel Brobecker <brobecker@adacore.com>
6424
6425 ARI warning fix.
6426 * python/py-auto-load.c (source_section_scripts): Remove trailing
6427 new-line in i18n string.
6428
6429 2010-04-26 Doug Evans <dje@google.com>
6430
6431 * serial.c (serial_write): Handle serial_debug_p akin to serial_read.
6432
6433 2010-04-26 Tom Tromey <tromey@redhat.com>
6434
6435 * cli/cli-decode.c (complete_on_cmdlist): Make two passes over the
6436 command list.
6437
6438 2010-04-26 Pierre Muller <muller@ics.u-strasbg.fr>
6439
6440 Removal of config/i386/nm-i386sol2.h native configuration file.
6441 * config/i386/nm-i386sol2.h: Remove file.
6442 * config/i386/i386sol2.mh: Remove NAT_FILE definition.
6443 * config/i386/sol2-64.mh: Idem.
6444 * config/djgpp/fnchange.lst: Remove reference to that file.
6445 * Makefile.in (HFILES_NO_SRCDIR): Idem.
6446
6447 2010-04-26 Pierre Muller <muller@ics.u-strasbg.fr>
6448
6449 PR breakpoints/11531.
6450 * config/i386/nm-i386sol2.h (CANNOT_STEP_HW_WATCHPOINTS): Remove
6451 macro definition and related comment.
6452 * infrun.c (CANNOT_STEP_HW_WATCHPOINTS): Remove macro.
6453 (resume): Remove code and comment related to this macro.
6454
6455 2010-04-26 Jan Kratochvil <jan.kratochvil@redhat.com>
6456
6457 * cp-namespace.c (cp_lookup_symbol_in_namespace): Fix alloca size.
6458 Fix whitespace.
6459
6460 2010-04-24 Pedro Alves <pedro@codesourcery.com>
6461
6462 * defs.h: Adjust comment.
6463 * filesystem.h, filesystem.c: New files.
6464 * Makefile.in (SFILES): Add filesystem.c.
6465 (COMMON_OBS): Add filesystem.o.
6466 * solib.c (solib_find): Handle DOS-based filesystems. Handle
6467 different target and host path flavours.
6468 * arm-symbian-tdep.c (arm_symbian_init_abi): Set
6469 has_dos_based_file_system on the gdbarch.
6470 * arm-wince-tdep.c (arm_wince_init_abi): Ditto.
6471 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Ditto.
6472 * i386-tdep.c (i386_go32_init_abi): Ditto.
6473 * gdbarch.sh (has_dos_based_file_system): New.
6474 * gdbarch.h, gdbarch.c: Regenerate.
6475 * NEWS: Mention improved support for remote targets with DOS-based
6476 filesystems. Mention new `set/show target-file-system-kind'
6477 commands.
6478
6479 2010-04-23 Stan Shebs <stan@codesourcery.com>
6480
6481 * ax.h (struct agent_expr): Merge in agent_reqs fields, add some
6482 comments.
6483 (struct agent_reqs): Remove.
6484 (ax_reg_mask): Declare.
6485 * ax-general.c (new_agent_expr): Add gdbarch argument, set new fields.
6486 (free_agent_expr): Free reg_mask.
6487 (ax_print): Add scope and register mask info.
6488 (ax_reqs): Remove agent_reqs argument, use agent expression
6489 fields, and move part of register mask computation to...
6490 (ax_reg_mask): New function.
6491 * ax-gdb.c (gen_trace_static_fields): Call it.
6492 (gen_traced_pop): Ditto.
6493 (is_nontrivial_conversion): Add dummy gdbarch to new_agent_expr.
6494 (gen_trace_for_var): Pass gdbarch to new_agent_expr.
6495 (gen_trace_for_expr): Ditto, and clear optimized_out flag.
6496 (gen_eval_for_expr): Ditto, and require an rvalue.
6497 (agent_command): Call ax_reqs.
6498 (agent_eval_command): Ditto.
6499 * tracepoint.c (report_agent_reqs_errors): Use agent expression fields.
6500 (validate_action_line): Ditto.
6501 (collect_symbol): Ditto.
6502 (encode_actions_1): Ditto.
6503
6504 2010-04-23 Daniel Jacobowitz <dan@codesourcery.com>
6505 Paul Pluzhnikov <ppluzhnikov@google.com>
6506 Jan Kratochvil <jan.kratochvil@redhat.com>
6507
6508 Fix deadlock on looped list of loaded shared objects.
6509 * solib-svr4.c (LM_PREV): New function.
6510 (IGNORE_FIRST_LINK_MAP_ENTRY): Use it.
6511 (svr4_current_sos): Check for correct l_prev. New variables prev_lm
6512 and next_lm. Clear prev_lm for solib_svr4_r_ldsomap.
6513 * config/djgpp/fnchange.lst: Add translation for solib-corrupted.exp.
6514
6515 2010-04-23 Doug Evans <dje@google.com>
6516
6517 * configure.ac (CONFIG_SRCS): Add py-auto-load.o even if not using
6518 python.
6519 * configure: Regenerate.
6520 * main.c: #include "python/python.h".
6521 (captured_main): Defer loading auto-loaded scripts until after
6522 local_gdbinit has been sourced.
6523 * python/py-auto-load.c (gdbpy_global_auto_load): New global.
6524 (load_auto_scripts_for_objfile): New function.
6525 (auto_load_new_objfile): Call it.
6526 * python/python.h (gdbpy_global_auto_load): Declare.
6527 (load_auto_scripts_for_objfile): Declare.
6528
6529 Add support for auto-loading scripts from .debug_gdb_scripts section.
6530 * NEWS: Add entry for .debug_gdb_scripts.
6531 * Makefile.in SUBDIR_PYTHON_OBS): Add py-auto-load.o.
6532 (SUBDIR_PYTHON_SRCS): Add py-auto-load.c.
6533 (py-auto-load.o): New rule.
6534 * cli/cli-cmds.c (find_and_open_script): Make externally visible.
6535 * cli/cli-cmds.h (find_and_open_script): Update prototype.
6536 * python/py-auto-load.c: New file.
6537 * python/python-internal.h: #include <stdio.h>.
6538 (set_python_list, show_python_list): Declare.
6539 (gdbpy_initialize_auto_load): Declare.
6540 (source_python_script_for_objfile): Declare.
6541 * python/python.c: Remove #include of observer.h.
6542 (gdbpy_auto_load): Moved to py-auto-load.c.
6543 (GDBPY_AUTO_FILENAME): Ditto.
6544 (gdbpy_new_objfile): Delete.
6545 (source_python_script_for_objfile): New function.
6546 (set_python_list, show_python_list): Make externally visible.
6547 (_initialize_python): Move "auto-load" command to py-auto-load.c
6548 and observer_attach_new_objfile to py-auto-load.c.
6549
6550 2010-04-23 Jerome Guitton <guitton@adacore.com>
6551
6552 * alpha-tdep.c (INSN_OPCODE, MEM_RA, MEM_RB, MEM_DISP, BR_RA)
6553 (OPR_FUNCTION, OPR_HAS_IMMEDIATE, OPR_RA, OPR_RC, OPR_LIT): New macros.
6554 (lda_opcode, stq_opcode, bne_opcode, subq_opcode, subq_function):
6555 New constants.
6556 (alpha_heuristic_analyze_probing_loop): New function.
6557 (alpha_heuristic_frame_unwind_cache): In the prologue analysis, detect
6558 and handle cases when a stack probe loop is generated.
6559 * alpha-mdebug-tdep.c (alpha_mdebug_frameless): New function.
6560 (alpha_mdebug_max_frame_size_exceeded): New function.
6561 (alpha_mdebug_after_prologue): Use alpha_mdebug_frameless.
6562 (alpha_mdebug_frame_sniffer, alpha_mdebug_frame_base_sniffer):
6563 Return 0 when the maximum debuggable frame size has been exceeded.
6564
6565 2010-04-23 Joel Brobecker <brobecker@adacore.com>
6566
6567 Fix ARI warning.
6568 * ppc-linux-nat.c (booke_cmp_hw_point): Do not mark inline.
6569
6570 2010-04-20 Chris Moller <cmoller@redhat.com>
6571
6572 PR 10179
6573
6574 * symtab.c (rbreak_command): Added code to include a filename
6575 specification in the rbreak argument.
6576 * NEWS: Added a brief description of filename-qualified rbreak.
6577
6578 2010-04-22 Jan Kratochvil <jan.kratochvil@redhat.com>
6579
6580 Fix crashes on dangling display expressions.
6581 * ada-lang.c (ada_operator_check): New function.
6582 (ada_exp_descriptor): Fill-in the field operator_check.
6583 * c-lang.c (exp_descriptor_c): Fill-in the field operator_check.
6584 * jv-lang.c (exp_descriptor_java): Likewise.
6585 * m2-lang.c (exp_descriptor_modula2): Likewise.
6586 * scm-lang.c (exp_descriptor_scm): Likewise.
6587 * parse.c (exp_descriptor_standard): Likewise.
6588 (operator_check_standard): New function.
6589 (exp_iterate, exp_uses_objfile_iter, exp_uses_objfile): New functions.
6590 * parser-defs.h (struct exp_descriptor): New field operator_check.
6591 (operator_check_standard, exp_uses_objfile): New declarations.
6592 * printcmd.c: Remove the inclusion of solib.h.
6593 (display_uses_solib_p): Remove the function.
6594 (clear_dangling_display_expressions): Call lookup_objfile_from_block
6595 and exp_uses_objfile instead of display_uses_solib_p.
6596 * solist.h (struct so_list) <objfile>: New comment.
6597 * symtab.c (lookup_objfile_from_block): Remove the static qualifier.
6598 * symtab.h (lookup_objfile_from_block): New declaration.
6599 (struct general_symbol_info) <obj_section>: Extend the comment.
6600
6601 2010-04-22 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
6602 Thiago Jung Bauermann <bauerman@br.ibm.com>
6603
6604 * ppc-linux-nat.c (PTRACE_GET_DEBUGREG): Update comment.
6605 (PPC_PTRACE_GETWDBGINFO, PPC_PTRACE_SETHWDEBUG, PPC_PTRACE_DELHWDEBUG,
6606 ppc_debug_info, PPC_DEBUG_FEATURE_INSN_BP_RANGE,
6607 PPC_DEBUG_FEATURE_INSN_BP_MASK, PPC_DEBUG_FEATURE_DATA_BP_RANGE,
6608 PPC_DEBUG_FEATURE_DATA_BP_MASK, ppc_hw_breakpoint,
6609 PPC_BREAKPOINT_TRIGGER_EXECUTE, PPC_BREAKPOINT_TRIGGER READ,
6610 PPC_BREAKPOINT_TRIGGER_WRITE, PPC_BREAKPOINT_TRIGGER_RW,
6611 PPC_BREAKPOINT_MODE_EXACT PPC_BREAKPOINT_MODE_RANGE_INCLUSIVE,
6612 PPC_BREAKPOINT_MODE_RANGE_EXCLUSIVE, PPC_BREAKPOINT_MODE_MASK,
6613 PPC_BREAKPOINT_CONDITION_NONE, PPC_BREAKPOINT_CONDITION_AND,
6614 PPC_BREAKPOINT_CONDITION_EXACT, PPC_BREAKPOINT_CONDITION_OR,
6615 PPC_BREAKPOINT_CONDITION_AND_OR, PPC_BREAKPOINT_CONDITION_BE_ALL,
6616 PPC_BREAKPOINT_CONDITION_BE_SHIFT, PPC_BREAKPOINT_CONDITION_BE):
6617 Define, in case <ptrace.h> doesn't provide it.
6618 (booke_debug_info): New variable.
6619 (max_slots_number): Ditto.
6620 (hw_break_tuple): New struct.
6621 (thread_points): Ditto.
6622 (ppc_threads): New variable.
6623 (PPC_DEBUG_CURRENT_VERSION): New define.
6624 (have_ptrace_new_debug_booke): New function.
6625 (ppc_linux_check_watch_resources): Renamed to ...
6626 (ppc_linux_can_use_hw_breakpoint): ... this. Handle BookE processors.
6627 (ppc_linux_region_ok_for_hw_watchpoint): Handle BookE processors.
6628 (booke_cmp_hw_point): New function.
6629 (booke_find_thread_points_by_tid): Ditto.
6630 (booke_insert_point): Ditto.
6631 (booke_remove_point): Ditto.
6632 (ppc_linux_insert_hw_breakpoint): Ditto.
6633 (ppc_linux_remove_hw_breakpoint): Ditto.
6634 (get_trigger_type): Ditto.
6635 (ppc_linux_insert_watchpoint): Handle BookE processors.
6636 (ppc_linux_remove_watchpoint): Ditto.
6637 (ppc_linux_new_thread): Ditto.
6638 (ppc_linux_thread_exit): New function..
6639 (ppc_linux_stopped_data_address): Handle BookE processors.
6640 (ppc_linux_watchpoint_addr_within_range): Ditto.
6641 (_initialize_ppc_linux_nat): Initialize to_insert_hw_breakpoint and
6642 to_remove_hw_breakpoint fields of the target operations struct.
6643 Add observe for the thread_exit event.
6644
6645 2010-04-22 H.J. Lu <hongjiu.lu@intel.com>
6646
6647 * i386-linux-nat.c (regmap): Removed.
6648 (fetch_register): Replace regmap with
6649 i386_linux_gregset_reg_offset.
6650 (store_register): Likewise.
6651 (supply_gregset): Likewise.
6652 (fill_gregset): Likewise.
6653
6654 * i386-linux-tdep.c (i386_linux_gregset_reg_offset): Make it
6655 global.
6656
6657 * i386-linux-tdep.h (i386_linux_gregset_reg_offset): New.
6658
6659 2010-04-22 Chris Moller <cmoller@redhat.com>
6660
6661 * cp-valprint.c (cp_print_value_fields): Replaced obstack_base()
6662 method of popping recursion-detection stack with a method based on
6663 obstack_object_size(). (Similar to the PR9167 patch below, but for
6664 the static array obstack rather than the static member obstack.)
6665
6666 2010-04-22 H.J. Lu <hongjiu.lu@intel.com>
6667
6668 * amd64-linux-nat.c (amd64_linux_gregset64_reg_offset): Removed.
6669 (_initialize_amd64_linux_nat): Replace
6670 amd64_linux_gregset64_reg_offset with
6671 amd64_linux_gregset_reg_offset.
6672
6673 * amd64-linux-tdep.c (amd64_linux_gregset_reg_offset): Make it
6674 global.
6675
6676 * amd64-tdep.h (amd64_linux_gregset_reg_offset): New.
6677
6678 2010-04-22 Pierre Muller <muller@ics.u-strasbg.fr>
6679
6680 PR stabs/11479.
6681 * stabsread.c (set_length_in_type_chain): New function.
6682 (read_struct_type): Call set_length_in_type_chain function.
6683 (read_enum_type): Idem.
6684
6685 2010-04-21 Stan Shebs <stan@codesourcery.com>
6686 Nathan Sidwell <nathan@codesourcery.com>
6687
6688 * tracepoint.c (trace_save): Open in binary mode.
6689
6690 2010-04-22 Pierre Muller <muller@ics.u-strasbg.fr>
6691
6692 * gdbtypes.h (builtin_type): Add builtin_char16 and builtin_char32
6693 fields.
6694 * gdbtypes.c (gdbtypes_post_init): Set builtin_char16 and
6695 builtin_char32 fields.
6696 * printcmd.c (decode_format): Set char size to '\0'
6697 for strings unless explicit size is given.
6698 (print_formatted): Correct calculation of NEXT_ADDRESS
6699 for 16 or 32 bit strings.
6700 (do_examine): Do not force byte size for strings.
6701 Use builtin_char16 and builtin_char32 types to display
6702 16 or 32 bit-wide strings.
6703 (x_command): Set LAST_SIZE to 'b' for string type.
6704
6705 2010-04-21 H.J. Lu <hongjiu.lu@intel.com>
6706
6707 PR corefiles/11523
6708 * amd64-linux-tdep.c (amd64_linux_core_read_description): Check
6709 XCR0 first.
6710
6711 * i386-linux-tdep.c (i386_linux_core_read_xcr0): Return 0 if
6712 there is no .reg-xstate section.
6713 (i386_linux_core_read_description): Check XCR0 first.
6714
6715 2010-04-21 Mike Frysinger <vapier@gentoo.org>
6716
6717 * gdb/sparc-tdep.c (sparc32_store_return_value): Add gdb_assert ()
6718 for len <= 8.
6719
6720 2010-04-21 Chris Moller <cmoller@redhat.com>
6721
6722 PR 9167
6723 * cp-valprint.c (cp_print_value_fields): Replaced obstack_base()
6724 method of popping recursion-detection stack with a method based on
6725 obstack_object_size().
6726
6727 2010-04-21 Pierre Muller <muller@ics.u-strasbg.fr>
6728
6729 PR pascal/11492.
6730 * p-valprint.c (pascal_val_print): Fix default printing of integer
6731 arrays.
6732
6733 2010-04-21 Pierre Muller <muller@ics.u-strasbg.fr>
6734
6735 Fix compilation warning on gcc-4.1.2.
6736 * rs6000-aix-tdep.c (rs6000_convert_from_func_ptr_addr): Initialize
6737 local variable`pc' to zero.
6738
6739 2010-04-20 Joel Brobecker <brobecker@adacore.com>
6740
6741 Implement thread support with core files on alpha-tru64.
6742 * dec-thread.c (dec_thread_find_new_threads): New function,
6743 extracted from resync_thread_list.
6744 (resync_thread_list): Add OPS parameter. Replace extracted-out
6745 code by call to dec_thread_find_new_threads.
6746 (dec_thread_wait): Update call to resync_thread_list.
6747 (init_dec_thread_ops): Set dec_thread_ops.to_find_new_threads.
6748
6749 2010-04-20 Joel Brobecker <brobecker@adacore.com>
6750
6751 * ada-lang.c (value_pointer): New function.
6752 (make_array_descriptor): Call value_pointer to convert addresses to
6753 pointers.
6754
6755 2010-04-20 Joel Brobecker <brobecker@adacore.com>
6756
6757 * rs6000-aix-tdep.c: #include exceptions.h.
6758 (rs6000_convert_from_func_ptr_addr): If an exception is thrown
6759 while reading the memory at ADDR, then ADDR cannot be a function
6760 descriptor.
6761
6762 2010-04-20 Joel Brobecker <brobecker@adacore.com>
6763
6764 * ada-typeprint.c (ada_print_typedef): New function.
6765 * ada-lang.h (ada_print_typedef): Add declaration.
6766 * ada-lang.c (ada_language_defn): set la_print_typdef field
6767 to ada_print_typedef.
6768
6769 2010-04-20 Joel Brobecker <brobecker@adacore.com>
6770
6771 * procfs.c (procfs_address_to_host_pointer): Only define when used.
6772
6773 2010-04-20 Joel Brobecker <brobecker@adacore.com>
6774
6775 * procfs.c (iterate_over_mappings_cb_ftype): New typedef.
6776 (iterate_over_mappings): Adjust function profile. Add declaration.
6777 (insert_dbx_link_bpt_in_region, info_mappings_callback):
6778 Adjust accordingly.
6779
6780 2010-04-20 Joel Brobecker <brobecker@adacore.com>
6781
6782 * procfs.c (solib_mappings_callback): Move function up to avoid
6783 a compiler warning.
6784
6785 2010-04-20 Joel Brobecker <brobecker@adacore.com>
6786
6787 * procfs.c (find_signalled_thread, find_stop_signal): Move
6788 these functions down to define them only when used.
6789
6790 2010-04-20 Joel Brobecker <brobecker@adacore.com>
6791
6792 * valprint.c (common_val_print): Fix the value before extracting
6793 its contents.
6794 * ada-lang.c (ada_to_fixed_value): Make this function extern.
6795 * ada-lang.h (ada_to_fixed_value): New function declaration.
6796 * ada-valprint.c (ada_value_print): Use ada_to_fixed_value
6797 to avoid code duplication and fix a bug in the handling of
6798 fixed types contents.
6799
6800 2010-04-20 Tom Tromey <tromey@redhat.com>
6801
6802 * dwarf2read.c (dwarf2_compute_name): Handle DW_AT_linkage_name.
6803 (read_partial_die): Likewise.
6804 (dwarf_attr_name): Likewise.
6805
6806 2010-04-20 Chris Moller <cmoller@redhat.com>
6807
6808 PR 10867
6809
6810 * cp-valprint.c (global): Adding new static array recursion
6811 detection obstack.
6812 (cp_print_value_fields, cp_print_static_field): Added new static
6813 array recursion detection code.
6814
6815 2010-04-20 Mark Kettenis <kettenis@gnu.org>
6816
6817 * i386-linux-tdep.c (i386_linux_regset_sections): Size of the
6818 general-purpose register set should be 68 instead of 144.
6819 (i386_linux_sse_regset_sections): Likewise.
6820 (i386_linux_avx_regset_sections): Likewise.
6821
6822 2010-04-20 Stan Shebs <stan@codesourcery.com>
6823 Nathan Sidwell <nathan@codesourcery.com>
6824
6825 * dwarf2loc.c (struct axs_var_loc): New struct.
6826 (dwarf2_tracepoint_var_loc): New function.
6827 (dwarf2_tracepoint_var_access): New function.
6828 (dwarf2_tracepoint_var_ref): Use dwarf2_tracepoint_var_loc, deal
6829 with DW_OP_piece.
6830 (locexpr_describe_location_piece): New function.
6831 (locexpr_describe_location_1): New function.
6832 (locexpr_describe_location): Call it, update signature.
6833 (loclist_describe_location): Rewrite to loop over locations,
6834 update signature.
6835 * symtab.h (struct symbol_computed_ops): Add address to
6836 describe_location arguments, return void.
6837 * printcmd.c (address_info): Get context PC, pass to computed
6838 location description.
6839 * tracepoint.c (scope_info): Ditto.
6840 * ax-gdb.c (trace_kludge): Export.
6841
6842 2010-04-20 Tom Tromey <tromey@redhat.com>
6843
6844 * dwarf2-frame.c (decode_frame_entry_1): Handle CIE version 4.
6845 (struct dwarf2_cie) <segment_size>: New field.
6846 * dwarf2read.c (partial_read_comp_unit_head): Accept DWARF 4.
6847 (skip_one_die): Handle DW_FORM_flag_present, DW_FORM_sec_offset,
6848 DW_FORM_exprloc.
6849 (read_attribute_value): Handle DW_FORM_flag_present,
6850 DW_FORM_sec_offset, DW_FORM_exprloc.
6851 (dump_die_shallow): Likewise.
6852 (attr_form_is_section_offset): Handle DW_FORM_sec_offset.
6853 (dwarf2_const_value): Handle DW_FORM_exprloc.
6854 (attr_form_is_block): Likewise.
6855 (struct line_header) <maximum_ops_per_instruction>: New field.
6856 (dwarf_decode_line_header): Set new field.
6857 (dwarf_decode_lines): Handle new field.
6858
6859 2010-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
6860
6861 * f-exp.y: Add new production to recognize the `logical*8' type.
6862 (LOGICAL_S8_KEYWORD): New token.
6863 * f-lang.c (enum f_primitive_types)
6864 <f_primitive_type_logical_s8>: New field.
6865 (f_language_arch_info): Handling `logical*8' type.
6866 (build_fortran_types): Building `logical*8' type.
6867 * f-lang.h (struct builtin_f_type) <builtin_logical_s8>: New field.
6868
6869 2010-04-19 Doug Evans <dje@google.com>
6870
6871 * ser-base.c (generic_readchar): Watch for EOF in read of error_fd.
6872 * ser-pipe.c (pipe_open): Fix file descriptor leaks.
6873 (pipe_close): Ditto.
6874
6875 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
6876
6877 * configure.tgt (x86_64-*-mingw*): Set BUILD_GDBSERVER to yes.
6878
6879 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
6880
6881 * windows-tdep.c (windows_get_tlb_type): Change current_seh.handle
6882 type to void function.
6883
6884 2010-04-19 Stan Shebs <stan@codesourcery.com>
6885 Vladimir Prus <vladimir@codesourcery.com>
6886
6887 * tracepoint.c (tfind_1): Add missing newline, report exit from
6888 tfind mode as such.
6889 * target.c (update_current_target): Make default
6890 to_trace_find return -1.
6891
6892 2010-04-19 Mike Frysinger <vapier@gentoo.org>
6893
6894 * objc-lang.c (find_methods): Move symname check up.
6895
6896 2010-04-19 Pedro Alves <pedro@codesourcery.com>
6897
6898 * ada-lang.c (print_recreate_exception)
6899 <ex_catch_exception_unhandled>: It's "catch exception unhandled",
6900 not "catch unhandled".
6901
6902 2010-04-19 Pedro Alves <pedro@codesourcery.com>
6903
6904 PR breakpoints/8554.
6905
6906 Implement `save-breakpoints'.
6907
6908 * breakpoint.c (save_cmdlist): New.
6909 (breakpoint_set_cmdlist, breakpoint_show_cmdlist): Moved up close
6910 to save_cmdlist.
6911 (print_recreate_catch_fork): New.
6912 (catch_fork_breakpoint_ops): Install it.
6913 (print_recreate_catch_vfork): New.
6914 (catch_vfork_breakpoint_ops): Install it.
6915 (print_recreate_catch_syscall): New.
6916 (catch_syscall_breakpoint_ops): Install it.
6917 (print_recreate_catch_exec): New.
6918 (catch_exec_breakpoint_ops): Install it.
6919 (print_recreate_exception_catchpoint): New.
6920 (gnu_v3_exception_catchpoint_ops): Install it.
6921 (save_breakpoints): New, based on tracepoint_save_command, but
6922 handle all breakpoint types.
6923 (save_breakpoints_command): New.
6924 (tracepoint_save_command): Rename to...
6925 (save_tracepoints_command): ... this, and reimplement using
6926 save_breakpoints.
6927 (save_command): New.
6928 (_initialize_breakpoints): Install the "save" command prefix.
6929 Install the "save breakpoints" command. Make "save-tracepoints" a
6930 deprecated alias for "save tracepoints".
6931 * breakpoint.h (struct breakpoint_ops): New field `print_recreate'.
6932 * ada-lang.c (print_recreate_exception): New.
6933 (print_recreate_catch_exception): New.
6934 (catch_exception_breakpoint_ops): Install it.
6935 (print_recreate_catch_exception_unhandled): New.
6936 (catch_exception_unhandled_breakpoint_ops): Install it.
6937 (print_recreate_catch_assert): New.
6938 (catch_assert_breakpoint_ops): Install it.
6939
6940 * NEWS: Mention the new `save breakpoints' command. Mention the
6941 new `save tracepoints' alias and that `save-tracepoints' is now
6942 deprecated.
6943
6944 2010-04-18 Pedro Alves <pedro@codesourcery.com>
6945
6946 PR tui/9217
6947
6948 * tui/tui-out.c: Include cli-out.h.
6949 (tui_table_begin, tui_table_body, tui_table_end, tui_table_header)
6950 (tui_begin, tui_end, tui_field_int, tui_field_skip)
6951 (tui_field_string, tui_field_fmt, tui_spaces, tui_text)
6952 (tui_message, tui_wrap_hint, tui_flush): Delete forward
6953 declarations.
6954 (struct ui_out_data): Rename to...
6955 (struct tui_ui_out_data): ... this. Remove `stream' and
6956 `suppress_output' fields, and inherit cli_ui_out_data.
6957 (tui_out_data): New typedef.
6958 (tui_ui_out_impl): Don't initialize fields staticaly.
6959 (tui_table_begin, tui_table_body, tui_table_end, tui_table_header)
6960 (tui_begin, tui_end): Delete.
6961 (tui_field_int): Adjust to delegate most work to the base type.
6962 (tui_field_skip): Delete.
6963 (tui_field_string, tui_field_fmt): Adjust comment. Adjust to
6964 delegate most work to the base type.
6965 (tui_spaces): Delete.
6966 (tui_text): Adjust to delegate most work to the base type.
6967 (tui_message): Delete.
6968 (tui_wrap_hint): Delete.
6969 (tui_flush): Delete.
6970 (out_field_fmt): Delete.
6971 (field_separator): Delete.
6972 (tui_out_new): Adjust to initialize the base type.
6973 (_initialize_tui_out): Initialize tui_ui_out_impl.
6974 * cli-out.c (struct ui_out_data): Moved out to cli-out.h, renamed
6975 cli_ui_out_data.
6976 (cli_out_data): Adjust.
6977 (cli_ui_out_impl): Make extern.
6978 (cli_table_header, cli_field_int, cli_field_skip): Use
6979 uo_field_string instead of cli_field_string.
6980 (cli_redirect): Adjust to use cli_out_data.
6981 (cli_out_data_ctor): New.
6982 (cli_out_new): Use it.
6983 * cli-out.h (struct ui_file): Remove forward declaration.
6984 (struct cli_ui_out_data): New, moved from cli-out.c, and renamed.
6985 (cli_ui_out_impl): Declare.
6986 (cli_out_data_ctor): Declare.
6987 * ui-out.c (struct ui_out) <data>: Change type to void pointer.
6988 (uo_field_string): No longer static.
6989 (ui_out_data): Change return type to void pointer.
6990 (ui_out_new): Change `data' parameter type to void pointer.
6991 * ui-out.h (struct ui_out_data): Don't forward declare.
6992 (ui_out_data): Change return type to void pointer.
6993 (ui_out_new): Change `data' parameter type to void pointer.
6994 (uo_field_string): Declare.
6995
6996 2010-04-17 Pedro Alves <pedro@codesourcery.com>
6997
6998 * ui-file.c (tee_file_isatty): Return whether `tee->one' is a tty,
6999 instead of always false.
7000
7001 2010-04-17 H.J. Lu <hongjiu.lu@intel.com>
7002
7003 PR corefiles/11511
7004 * amd64-linux-tdep.c (amd64_linux_gregset_reg_offset): Support
7005 orig_rax.
7006
7007 2010-04-17 Pedro Alves <pedro@codesourcery.com>
7008
7009 * breakpoint.c (watchpoints_triggered): Use
7010 is_hardware_watchpoint.
7011 (watchpoints_triggered): Ditto.
7012 (bpstat_check_location): Use is_watchpoint and
7013 is_hardware_watchpoint.
7014 (bpstat_check_watchpoint): Use is_watchpoint and
7015 is_hardware_watchpoint.
7016 (bpstat_stop_status): Fix comment.
7017 (user_settable_breakpoint): Use is_watchpoint.
7018 (hw_watchpoint_used_count): Use is_hardware_watchpoint.
7019 (disable_watchpoints_before_interactive_call_start): Use
7020 is_watchpoint.
7021 (enable_watchpoints_after_interactive_call_stop): Use
7022 is_watchpoint.
7023 (clear_command): Use is_watchpoint.
7024 (do_enable_breakpoint): Use is_watchpoint.
7025
7026 2010-04-16 Mike Frysinger <vapier@gentoo.org>
7027
7028 * solib-frv.c (enable_break1_done): Delete.
7029 (enable_break2): Do not check enable_break1_done. Move the
7030 enable_break2_done setting and call to
7031 remove_solib_event_breakpoints() to the end. Return without
7032 warning when the contents of _dl_debug_addr are 0.
7033 (enable_break): Do not set enable_break1_done.
7034 (frv_clear_solib): Likewise.
7035
7036 2010-04-16 Kevin Buettner <kevinb@redhat.com>
7037
7038 * m32c-tdep.c (m32c_m16c_address_to_pointer): Print warning
7039 instead of an error if no PLT entry is found. Return a
7040 potentially useful result.
7041 (m32c_m16c_pointer_to_address): Add code to search for function
7042 address when no .plt entry is found.
7043
7044 2010-04-16 Stan Shebs <stan@codesourcery.com>
7045
7046 * tracepoint.c (trace_variable_command): Run a cleanup.
7047
7048 2010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
7049
7050 * p-lang.c (pascal_one_char): Do not restrict C to 0..255 range.
7051
7052 2010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
7053
7054 Support for Windows OS Thread Information Block.
7055 * NEWS: Document new feature.
7056 * remote.c (PACKET_qGetTIBAddr): New enum element.
7057 (remote_get_tib_address): New function.
7058 (init_remote_ops): Set to_get_tib_address field
7059 to remote_get_tib_address.
7060 (_initialize_remote): Add add_packet_config_cmd
7061 for PACKET_qGetTIBAddr.
7062 * target.c (update_current_target): Set default value for
7063 new to_get_tib_address field.
7064 * target.h (target_ops): New field to_get_tib_address.
7065 (target_get_tib_address): New macro.
7066 * windows-nat.c (thread_info): Add thread_local_base field.
7067 (windows_add_thread): Add tlb argument of type 'void *'.
7068 (fake_create_process): Adapt windows_add_thread call.
7069 (get_windows_debug_event): Idem.
7070 (windows_get_tib_address): New function.
7071 (init_windows_ops): Set to_get_tib_address field
7072 to remote_get_tib_address.
7073 (_initialize_windows_nat): Replace info_w32_cmdlist
7074 initialization by a call to init_w32_command_list.
7075 (info_w32_command, info_w32_cmdlist): Removed from here...
7076 to windows-tdep.c file.
7077 * windows-tdep.h (info_w32_cmdlist): Declare.
7078 (init_w32_command_list): New external function
7079 declaration.
7080 * windows-tdep.c: Add several headers.
7081 (info_w32_cmdlist): to here, made global.
7082 (thread_information_32): New struct.
7083 (thread_information_64): New struct.
7084 (TIB_NAME): New char array.
7085 (MAX_TIB32, MAX_TIB64, FULL_TIB_SIZE): New constants.
7086 (maint_display_all_tib): New static variable.
7087 (windows_get_tlb_type): New function.
7088 (tlb_value_read, tlb_value_write): New functions.
7089 (tlb_value_funcs): New static struct.
7090 (tlb_make_value): New function.
7091 (display_one_tib): New function.
7092 (display_tib): New function.
7093 (show_maint_show_all_tib):New function.
7094 (info_w32_command): Moved from windows-nat.c.
7095 (init_w32_command_list): New function.
7096 (_initialize_windows_tdep): New function.
7097 New "maint set/show show-all-tib" command
7098 New "$_tlb" internal variable.
7099
7100 2010-04-16 Joel Brobecker <brobecker@adacore.com>
7101
7102 * tui/tui-regs.c (tui_display_register): Add comment about
7103 a couple of casts.
7104 * tui/tui-stack.c (tui_show_locator_content): Ditto.
7105
7106 2010-04-15 Stan Shebs <stan@codesourcery.com>
7107
7108 * frame.c: Include tracepoint.h.
7109 (get_current_frame): Allow a trace frame to be an alternate source
7110 of stack frame data.
7111 * tracepoint.c (tfind_1): Don't try to get current stack frame if
7112 it won't succeed.
7113
7114 2010-04-15 Pedro Alves <pedro@codesourcery.com>
7115
7116 * ppc-linux-tdep.c (bsd_uthread_solib_loaded): Always pass 0 for
7117 flags.
7118 * solib-spu.c (spu_solib_loaded): Always pass 0 for flags.
7119
7120 2010-04-15 Doug Evans <dje@google.com>
7121
7122 * NEWS: Add entry for python program space support.
7123 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-progspace.o.
7124 (SUBDIR_PYTHON_SRCS): Add py-progspace.c.
7125 (py-progspace.o): New rule.
7126 * python/py-prettyprint.c (find_pretty_printer_from_objfiles): New
7127 function.
7128 (find_pretty_printer_from_progspace): New function.
7129 (find_pretty_printer_from_gdb): New function.
7130 (find_pretty_printer): Rewrite.
7131 * python/py-progspace.c: New file.
7132 * python/python-internal.h (program_space): Add forward decl.
7133 (pspace_to_pspace_object, pspy_get_printers): Declare.
7134 (gdbpy_initialize_pspace): Declare.
7135 * python/python.c: #include "progspace.h".
7136 (gdbpy_get_current_progspace, gdbpy_progspaces): New functions.
7137 (_initialize_python): Call gdbpy_initialize_pspace.
7138 (GdbMethods): Add current_progspace, progspaces.
7139
7140 Add -s option to source command.
7141 * NEWS: Document new option.
7142 * cli/cli-cmds.c (find_and_open_script): Add function comment.
7143 Delete from_tty and cleanupp args. Split filep arg into file and
7144 full_pathp. New arg search_path.
7145 (source_script_from_stream): New function.
7146 (source_script_with_search): New function.
7147 (source_script): Rewrite.
7148 (source_command): Parse "-s" option.
7149 (init_cli_cmds): Add "-s" docs to source command help, and reformat.
7150 * python/python.c (source_python_script): Make file arg a const char *.
7151 Don't call fclose, leave for caller.
7152 * python/python.h (source_python_script): Update.
7153
7154 2010-04-14 Daniel Jacobowitz <dan@codesourcery.com>
7155 Pedro Alves <pedro@codesourcery.com>
7156
7157 Avoid rereading shared libraries that haven't changed.
7158
7159 * solib.c (free_so_symbols): New function, from ...
7160 (free_so): ... here. Call it.
7161 (solib_read_symbols): Don't warn here if symbols have already been
7162 loaded.
7163 (solib_add): Warn here instead, if a pattern was specified.
7164 (reload_shared_libraries_1): New.
7165 (reload_shared_libraries): Rewrite to not fetch the library list.
7166
7167 2010-04-14 Doug Evans <dje@google.com>
7168
7169 * source.c (openp): Strip DOS drive letter if present before
7170 concatenating string to search path.
7171
7172 2010-04-14 Pedro Alves <pedro@codesourcery.com>
7173
7174 * objfiles.h (gdb_bfd_close_or_warn): Declare.
7175 * objfiles.c (gdb_bfd_close_or_warn): New.
7176 * corelow.c: Include objfiles.h
7177 (core_close): Use gdb_bfd_close_or_warn.
7178 * elfread.c (build_id_verify): Ditto.
7179 * exec.c (exec_close, exec_close_1): Ditto.
7180
7181 2010-04-14 Daniel Jacobowitz <dan@codesourcery.com>
7182 Pedro Alves <pedro@codesourcery.com>
7183
7184 Group errors for many missing shared libraries.
7185
7186 * solist.h (struct so_list): Remove from_tty.
7187 * solib.c (solib_bfd_open): Return NULL if we failed to open a BFD.
7188 (solib_map_sections): Take so_list argument. Return 0 if we
7189 failed to open a BFD. Add target sections here.
7190 (symbol_add_stub): Delete.
7191 (solib_read_symbols): Inline symbol_add_stub. Use current flags,
7192 not from_tty copied from the so_list. Don't warn a second time
7193 for a missing library.
7194 (update_solib_list): Don't save from_tty. Use TRY_CATCH. Do not
7195 add to the section table here. Print out a single warning for all
7196 missing libraries.
7197 * bsd-uthread.c (bsd_uthread_solib_loaded): Always pass 0 for
7198 flags.
7199
7200 2010-04-14 Phil Muldoon <pmuldoon@redhat.com>
7201
7202 * python/py-block.c (gdbpy_block_for_pc): Use i8n to encompass
7203 error/warning messages. Capitalize and use complete sentences.
7204 (blpy_block_syms_iternext): Likewise.
7205 * python/py-cmd.c (parse_command_name, cmdpy_init): Likewise.
7206 * python/py-frame.c (FRAPY_REQUIRE_VALID, frapy_block)
7207 (frame_info_to_frame_object, frapy_read_var)
7208 (gdbpy_frame_stop_reason_string): Likewise.
7209 * python/py-lazy-string.c (stpy_convert_to_value)
7210 (gdbpy_create_lazy_string_object): Likewise.
7211 * python/py-objfile.c (objfpy_set_printers): Likewise.
7212 * python/py-prettyprint.c (gdbpy_default_visualizer): Likewise.
7213 * python/python.c (parameter_to_python): Likewise.
7214 * python/py-type.c (typy_range, typy_target): Likewise.
7215 * python/py-value.c (valpy_cast, valpy_length, valpy_getitem)
7216 (valpy_richcompare, valpy_int, valpy_long, valpy_float): Likewise.
7217
7218
7219 2010-04-14 Phil Muldoon <pmuldoon@redhat.com>
7220
7221 PR python/11381
7222
7223 * python/py-prettyprint.c (pretty_print_one_value): Test for
7224 Py_None.
7225 (print_string_repr): Test for Py_None. Set flags accordingly.
7226 Return value depending on return type.
7227 (print_children): Take a value indicating whether data was printed
7228 before this function was called. Alter output accordingly.
7229 (apply_val_pretty_printer): Capture return value from
7230 print_string_repr and pass to print_children.
7231
7232 2010-04-13 Mark Kettenis <kettenis@gnu.org>
7233
7234 PR corefiles/11481
7235 * i386-linux-tdep.c (i386_linux_regset_sections): Remove extended
7236 register note sections.
7237 (i386_linux_sse_regset_sections, i386_linux_avx_regset_sections):
7238 New variables.
7239 (i386_linux_init_abi): Install list of supported register note
7240 sections that matches the target description.
7241
7242 2010-04-13 Pedro Alves <pedro@codesourcery.com>
7243
7244 * remote.c (remote_get_noisy_reply): Don't error out on empty
7245 replies.
7246 (remote_start_remote): Update and merge tracepoints and trace
7247 state variables as long as the target supports tracepoints.
7248 (remote_trace_init): Fix prototype.
7249 (remote_download_trace_state_variable): Validate reply.
7250 (remote_trace_set_readonly_regions): Fix prototype.
7251 (remote_trace_start): Fix prototype. Check for empty reply.
7252 (remote_get_trace_status): Small cleanup.
7253 (remote_trace_stop): Fix prototype. Check for empty reply.
7254 (remote_trace_find): Check for empty reply.
7255 (remote_save_trace_data): Validate reply.
7256 (remote_set_disconnected_tracing): Check for empty reply, and
7257 validate reply.
7258 (remote_set_circular_trace_buffer): Ditto.
7259
7260 2010-04-13 Pierre Muller <muller@ics.u-strasbg.fr>
7261
7262 Suppress unused value warning during compilation.
7263 * tui/tui-regs.c (tui_display_register): Cast wstandout and wstandend
7264 calls to void.
7265 * tui/tui-stack.c (tui_show_locator_content): Likewise.
7266
7267 2010-04-12 Stan Shebs <stan@codesourcery.com>
7268
7269 * tracepoint.c (tfile_xfer_partial): Check read result.
7270
7271 2010-04-12 Mike Frysinger <vapier@gentoo.org>
7272
7273 * remote-m32r-sdi.c (m32r_files_info): Add const to local "file" var.
7274 * remote-sim.c (gdbsim_files_info): Likewise.
7275
7276 2010-04-12 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
7277
7278 * arm-tdep.h (gdb_regnum): Add ARM_FPSCR_REGNUM
7279 * arm-linux-nat.c (arm_linux_vfp_register_count): New
7280 variable.
7281 (fetch_vfp_registers): New function to fetch VFP registers.
7282 (store_vfp_registers): New function to store VFP registers.
7283 (arm_linux_fetch_inferior_registers): Add support for VFP
7284 registers.
7285 (arm_linux_store_inferior_registers): Likewise.
7286 (arm_linux_read_description): Likewise.
7287 (_initialize_arm_linux_nat): Delay initialising iWMMX tdesc
7288 until we need it.
7289
7290 2010-04-11 H.J. Lu <hongjiu.lu@intel.com>
7291
7292 * amd64-tdep.c (amd64_supply_xstateregset): Remove the unused
7293 tdep.
7294 (amd64_collect_xstateregset): Likewise.
7295
7296 2010-04-09 Stan Shebs <stan@codesourcery.com>
7297
7298 * tracepoint.c (trace_status_mi): Report frames created.
7299
7300 * tracepoint.c (trace_dump_command): Include default-collect
7301 expressions.
7302
7303 2010-04-09 Ulrich Weigand <uweigand@de.ibm.com>
7304
7305 * symtab.c (find_function_start_sal): Never return SAL pointing
7306 before function start address, even if line info is missing.
7307
7308 2010-04-09 Pedro Alves <pedro@codesourcery.com>
7309
7310 * NEWS: Mention tracepoints support.
7311
7312 2010-04-09 Pedro Alves <pedro@codesourcery.com>
7313
7314 * tracepoint.c (trace_status_mi): Report disconnected tracing and
7315 circular trace buffer statuses.
7316
7317 2010-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
7318
7319 * config/djgpp/fnchange.lst: Fix typo in translations for
7320 symbol-without-target_section.exp and symbol-without-target_section.c.
7321
7322 2010-04-09 Pedro Alves <pedro@codesourcery.com>
7323
7324 * breakpoint.c (condition_command): Pass condition expression to
7325 set_breakpoint_condition stripped from breakpoint number.
7326
7327 2010-04-09 Phil Muldoon <pmuldoon@redhat.com>
7328 Thiago Jung Bauermann <bauerman@br.ibm.com>
7329 Tom Tromey <tromey@redhat.com>
7330
7331 * breakpoint.c (condition_command): Simplify. Move condition
7332 setting code to ...
7333 (set_breakpoint_condition): ... here. New function.
7334 * breakpoint.h (set_breakpoint_condition): Declare.
7335 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-breakpoint.
7336 (SUBDIR_PYTHON_SRCS): Likewise.
7337 (py-breakpoint.o): New rule.
7338 * python/py-breakpoint.c: New file.
7339 * python/python-internal.h (gdbpy_breakpoints)
7340 (gdbpy_initialize_breakpoints): Declare.
7341 (GDB_PY_SET_HANDLE_EXCEPTION) Define.
7342
7343 2010-04-09 Pedro Alves <pedro@codesourcery.com>
7344
7345 * regformats/regdat.sh: Include server.h. Don't include
7346 regcache.h.
7347
7348 2010-04-08 Stan Shebs <stan@codesourcery.com>
7349 Pedro Alves <pedro@codesourcery.com>
7350
7351 * tracepoint.h (struct trace_status): New fields disconnected_tracing
7352 and circular_buffer.
7353 (disconnect_tracing): Rename from disconnect_or_stop_tracing.
7354 * tracepoint.c (trace_status_command): Display target's status for
7355 disconnected tracing and circular buffer.
7356 (disconnect_tracing): Rename from disconnect_or_stop_tracing, add
7357 query for non-disconnected-tracing case, remove the stop_tracing
7358 call.
7359 (tfile_open): Clear disconnected and circular buffer status.
7360 (trace_save): Save disconnected and circular buffer status.
7361 (parse_trace_status): Parse disconnected and circular buffer status,
7362 also recognize disconnected as a stop reason.
7363 * remote.c (remote_set_disconnected_tracing): Only set
7364 QTDisconnected if the remote end supports disconnected tracing.
7365 Warn otherwise, if trying to enable disconnected tracing.
7366 * infcmd.c (detach_command): Update disconnect_tracing call.
7367 * cli/cli-cmds.c (quit_command): Ditto.
7368
7369 2010-04-08 H.J. Lu <hongjiu.lu@intel.com>
7370
7371 * i387-tdep.c (i387_collect_xsave): Replace abort with
7372 internal_error.
7373
7374 2010-04-08 Stan Shebs <stan@codesourcery.com>
7375
7376 * breakpoint.c (default_collect_info): New function.
7377 (breakpoints_info): Call it.
7378 (maintenance_info_breakpoints): Ditto.
7379 (tracepoints_info): Ditto.
7380
7381 2010-04-08 H.J. Lu <hongjiu.lu@intel.com>
7382
7383 * i387-tdep.c (i387_collect_xsave): Re-indent.
7384
7385 2010-04-08 H.J. Lu <hongjiu.lu@intel.com>
7386
7387 * i386-linux-nat.c (have_ptrace_getfpxregs): Initialize to -1
7388 if HAVE_PTRACE_GETFPXREGS is defined.
7389 (i386_linux_read_description): Set have_ptrace_getfpxregs and
7390 have_ptrace_getregset to 0 if ptrace PTRACE_GETFPXREGS failed.
7391
7392 * i386-linux-tdep.c: Include "features/i386/i386-mmx-linux.c"
7393 (i386_linux_core_read_description): Return tdesc_i386_mmx_linux
7394 if .reg-xfp section doesn't exist.
7395 (_initialize_i386_linux_tdep): Call initialize_tdesc_i386_mmx_linux.
7396
7397 * i386-linux-tdep.h (tdesc_i386_mmx_linux): New.
7398
7399 * i386-tdep.c: Include "features/i386/i386-mmx.c".
7400 (i386_go32_init_abi): Set tdesc to tdesc_i386_mmx.
7401 (i386_validate_tdesc_p): Make org.gnu.gdb.i386.sse optional. Set
7402 xcr0 to I386_XSTATE_X87_MASK if SSE isn't available.
7403 (i386_gdbarch_init): Update comments.
7404 (_initialize_i386_tdep): Call initialize_tdesc_i386_mmx.
7405
7406 * common/i386-xstate.h (I386_XSTATE_X87_MASK): New.
7407
7408 * config/djgpp/fnchange.lst: Add i386 MMX XML files.
7409
7410 * features/Makefile (i386/i386-mmx-expedite): New.
7411 (i386/i386-mmx-linux-expedite): Likewise.
7412 ($(outdir)/i386/i386-mmx.dat): Likewise.
7413 ($(outdir)/i386/i386-mmx-linux.dat): Likewise.
7414
7415 * features/i386/i386-mmx-linux.c: New.
7416 * features/i386/i386-mmx-linux.xml: Likewise.
7417 * features/i386/i386-mmx.c: Likewise.
7418 * features/i386/i386-mmx.xml: Likewise.
7419 * regformats/i386/i386-mmx-linux.dat: Likewise.
7420 * regformats/i386/i386-mmx.dat: Likewise.
7421
7422 * features/Makefile (WHICH): Add i386/i386-mmx and
7423 i386/i386-mmx-linux.
7424
7425 2010-04-08 Doug Evans <dje@google.com>
7426
7427 * source.c (openp): Skip $cdir in PATH.
7428
7429 2010-04-08 Phil Muldoon <pmuldoon@redhat.com>
7430
7431 PR python/11417
7432 * python/py-lazy-string.c (stpy_convert_to_value): Check for
7433 a NULL address.
7434 (gdbpy_create_lazy_string_object): Allow strings with a NULL
7435 address and a zero length.
7436
7437 2010-04-08 Hui Zhu <teawater@gmail.com>
7438
7439 * i386-tdep.c (i386_process_record): Add support for insn
7440 rdtsc.
7441
7442 2010-04-07 Doug Evans <dje@google.com>
7443
7444 * python/python.c (source_python_script): Use ensure_python_env
7445 to prepare environment for script.
7446
7447 2010-04-07 H.J. Lu <hongjiu.lu@intel.com>
7448
7449 * amd64-linux-nat.c: Include "regset.h", "elf/common.h",
7450 <sys/uio.h> and "i386-xstate.h".
7451 (PTRACE_GETREGSET): New.
7452 (PTRACE_SETREGSET): Likewise.
7453 (have_ptrace_getregset): Likewise.
7454 (amd64_linux_gregset64_reg_offset): Include 16 upper YMM
7455 registers.
7456 (amd64_linux_gregset32_reg_offset): Include 8 upper YMM
7457 registers.
7458 (amd64_linux_fetch_inferior_registers): Support PTRACE_GETFPREGS.
7459 (amd64_linux_store_inferior_registers): Likewise.
7460 (amd64_linux_read_description): Check and enable AVX target
7461 descriptions.
7462
7463 * amd64-linux-tdep.c: Include "regset.h", "i386-linux-tdep.h"
7464 and "features/i386/amd64-avx-linux.c".
7465 (amd64_linux_regset_sections): New.
7466 (amd64_linux_core_read_description): Check and enable AVX
7467 target description.
7468 (amd64_linux_init_abi): Set xsave_xcr0_offset. Call
7469 set_gdbarch_core_regset_sections.
7470 (_initialize_amd64_linux_tdep): Call
7471 initialize_tdesc_amd64_avx_linux.
7472
7473 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Replace
7474 AMD64_MXCSR_REGNUM with AMD64_YMM15H_REGNUM.
7475 (tdesc_amd64_avx_linux): New.
7476 (amd64_linux_update_xstateregset): Likewise.
7477
7478 * amd64-tdep.c: Include "features/i386/amd64-avx.c".
7479 (amd64_ymm_names): New.
7480 (amd64_ymmh_names): Likewise.
7481 (amd64_register_name): Likewise.
7482 (amd64_supply_xstateregset): Likewise.
7483 (amd64_collect_xstateregset): Likewise.
7484 (amd64_supply_xsave): Likewise.
7485 (amd64_collect_xsave): Likewise.
7486 (AMD64_NUM_REGS): Removed.
7487 (amd64_dwarf_reg_to_regnum): Return %ymmN register number for
7488 %xmmN if AVX is available.
7489 (amd64_pseudo_register_name): Support pseudo YMM registers.
7490 (amd64_regset_from_core_section): Support .reg-xstate section.
7491 (amd64_init_abi): Set ymmh_register_names, num_ymm_regs
7492 and ymm0h_regnum. Call set_gdbarch_register_name.
7493 (amd64_init_abi): Call initialize_tdesc_amd64_avx.
7494
7495 * amd64-tdep.h (amd64_regnum): Add AMD64_YMM0H_REGNUM and
7496 AMD64_YMM15H_REGNUM.
7497 (AMD64_NUM_REGS): New.
7498 (amd64_supply_xsave): Likewise.
7499 (amd64_collect_xsave): Likewise.
7500 (amd64_register_name): Removed.
7501 (amd64_register_type): Likewise.
7502
7503 2010-04-07 H.J. Lu <hongjiu.lu@intel.com>
7504
7505 * i387-tdep.c: Include "i386-xstate.h".
7506 (XSAVE_XSTATE_BV_ADDR): New.
7507 (xsave_avxh_offset): Likewise.
7508 (XSAVE_AVXH_ADDR): Likewise.
7509 (i387_supply_xsave): Likewise.
7510 (i387_collect_xsave): Likewise.
7511
7512 * i387-tdep.h (I387_NUM_YMM_REGS): New.
7513 (I387_YMM0H_REGNUM): Likewise.
7514 (I387_YMMENDH_REGNUM): Likewise.
7515 (i387_supply_xsave): Likewise.
7516 (i387_collect_xsave): Likewise.
7517
7518 2010-04-07 H.J. Lu <hongjiu.lu@intel.com>
7519
7520 * i386-linux-nat.c: Include "regset.h", "elf/common.h",
7521 <sys/uio.h> and "i386-xstate.h".
7522 (PTRACE_GETREGSET): New.
7523 (PTRACE_SETREGSET): Likewise.
7524 (fetch_xstateregs): Likewise.
7525 (store_xstateregs): Likewise.
7526 (GETXSTATEREGS_SUPPLIES): Likewise.
7527 (regmap): Include 8 upper YMM registers.
7528 (i386_linux_fetch_inferior_registers): Support XSAVE extended
7529 state.
7530 (i386_linux_store_inferior_registers): Likewise.
7531 (i386_linux_read_description): Check and enable AVX target
7532 descriptions.
7533
7534 * i386-linux-tdep.c: Include "regset.h", "i387-tdep.h",
7535 "i386-xstate.h" and "features/i386/i386-avx-linux.c".
7536 (i386_linux_regset_sections): Add ".reg-xstate".
7537 (i386_linux_gregset_reg_offset): Include 8 upper YMM registers.
7538 (i386_linux_core_read_xcr0): New.
7539 (i386_linux_core_read_description): Check and enable AVX target
7540 description.
7541 (i386_linux_init_abi): Set xsave_xcr0_offset.
7542 (_initialize_i386_linux_tdep): Call
7543 initialize_tdesc_i386_avx_linux.
7544
7545 * i386-linux-tdep.h (I386_LINUX_ORIG_EAX_REGNUM): Replace
7546 I386_SSE_NUM_REGS with I386_AVX_NUM_REGS.
7547 (i386_linux_core_read_xcr0): New.
7548 (tdesc_i386_avx_linux): Likewise.
7549 (I386_LINUX_XSAVE_XCR0_OFFSET): Likewise.
7550
7551 * i386-tdep.c: Include "i386-xstate.h" and
7552 "features/i386/i386-avx.c".
7553 (i386_ymm_names): New.
7554 (i386_ymmh_names): Likewise.
7555 (i386_ymmh_regnum_p): Likewise.
7556 (i386_ymm_regnum_p): Likewise.
7557 (i386_xmm_regnum_p): Likewise.
7558 (i386_register_name): Likewise.
7559 (i386_ymm_type): Likewise.
7560 (i386_supply_xstateregset): Likewise.
7561 (i386_collect_xstateregset): Likewise.
7562 (i386_sse_regnum_p): Removed.
7563 (i386_pseudo_register_name): Support pseudo YMM registers.
7564 (i386_pseudo_register_type): Likewise.
7565 (i386_pseudo_register_read): Likewise.
7566 (i386_pseudo_register_write): Likewise.
7567 (i386_dbx_reg_to_regnum): Return %ymmN register number for
7568 %xmmN if AVX is available.
7569 (i386_regset_from_core_section): Support .reg-xstate section.
7570 (i386_register_reggroup_p): Supper upper YMM and YMM registers.
7571 (i386_process_record): Replace i386_sse_regnum_p with
7572 i386_xmm_regnum_p.
7573 (i386_validate_tdesc_p): Support org.gnu.gdb.i386.avx feature.
7574 Set ymmh_register_names, num_ymm_regs, ymm0h_regnum and xcr0.
7575 (i386_gdbarch_init): Set xstateregset. Set xsave_xcr0_offset.
7576 Call set_gdbarch_register_name. Replace I386_SSE_NUM_REGS with
7577 I386_AVX_NUM_REGS. Set ymmh_register_names, ymm0h_regnum and
7578 num_ymm_regs. Add num_ymm_regs to set_gdbarch_num_pseudo_regs.
7579 Set ymm0_regnum.
7580 (_initialize_i386_tdep): Call initialize_tdesc_i386_avx.
7581
7582 * i386-tdep.h (gdbarch_tdep): Add xstateregset, ymm0_regnum,
7583 xcr0, xsave_xcr0_offset, ymm0h_regnum, ymmh_register_names and
7584 i386_ymm_type.
7585 (i386_regnum): Add I386_YMM0H_REGNUM, and I386_YMM7H_REGNUM.
7586 (I386_AVX_NUM_REGS): New.
7587 (i386_xmm_regnum_p): Likewise.
7588 (i386_ymm_regnum_p): Likewise.
7589 (i386_ymmh_regnum_p): Likewise.
7590
7591 * common/i386-xstate.h: New.
7592
7593 2010-04-07 H.J. Lu <hongjiu.lu@intel.com>
7594
7595 * config/djgpp/fnchange.lst: Add x86 AVX XML files.
7596
7597 * features/Makefile (WHICH): Add i386/i386-avx,
7598 i386/i386-avx-linux, i386/x86-64-avx and i386/x86-64-avx-linux.
7599 (i386/i386-avx-expedite): New.
7600 (i386/i386-avx-linux-expedite): Likewise.
7601 (i386/x86-64-avx-expedite):Likewise.
7602 (i386/x86-64-avx-linux-expedite): Likewise.
7603 ($(outdir)/i386/i386-avx.dat): New dependency.
7604 ($(outdir)/i386/i386-avx-linux.dat): Likewise.
7605 ($(outdir)/i386/x86-avx-64.dat): Likewise.
7606 ($(outdir)/i386/x86-64-avx-linux.dat): Likewise.
7607
7608 * features/i386/32bit-avx.xml: New.
7609 * features/i386/64bit-avx.xml: Likewise.
7610 * features/i386/i386-avx-linux.c: Likewise.
7611 * features/i386/i386-avx-linux.xml: Likewise.
7612 * features/i386/i386-avx.c: Likewise.
7613 * features/i386/i386-avx.xml: Likewise.
7614 * features/i386/x86-64-avx-linux.c: Likewise.
7615 * features/i386/x86-64-avx-linux.xml: Likewise.
7616 * features/i386/x86-64-avx.c: Likewise.
7617 * features/i386/x86-64-avx.xml: Likewise.
7618 * regformats/i386/i386-avx-linux.dat: Likewise.
7619 * regformats/i386/i386-avx.dat: Likewise.
7620 * regformats/i386/x86-64-avx-linux.dat: Likewise.
7621 * regformats/i386/x86-64-avx.dat: Likewise.
7622
7623 2010-04-07 Doug Evans <dje@google.com>
7624
7625 * top.c (source_file_name): Make const char *.
7626 * top.h (source_file_name): Update.
7627 * cli/cli-script.c (source_cleanup_lines_args): Make old_file
7628 const char *.
7629 (script_from_file): Change `file' arg to const char *.
7630 * cli/cli-script.h (script_from_file): Update.
7631
7632 2010-04-06 Doug Evans <dje@google.com>
7633
7634 * cli/cli-cmds.c (source_command): Run cleanups.
7635
7636 2010-04-06 Stan Shebs <stan@codesourcery.com>
7637
7638 * defs.h (char_ptr): Move typedef here from...
7639 * ada-lang.c (char_ptr): Remove.
7640 * charset.c (char_ptr): Remove.
7641 * tracepoint.h (struct uploaded_string): Remove.
7642 (struct uploaded_tp): Use vectors for string arrays.
7643 * tracepoint.c (trace_save): Use vectors of actions.
7644 (parse_tracepoint_definition): Ditto.
7645 (get_uploaded_tp): Clear vectors.
7646 * breakpoint.c (create_tracepoint_from_upload): Use vectors.
7647 (next_cmd): Change to an int.
7648 (read_next_cmd): Use vector of command strings.
7649
7650 2010-04-06 Doug Evans <dje@google.com>
7651
7652 * top.h (source_script, cd_command): Delete.
7653 * main.c: #include "cli/cli-cmds.h"
7654
7655 2010-04-06 Kevin Buettner <kevinb@redhat.com>
7656
7657 * m32c-tdep.c (make_types): When calling `arch_type', pass size of
7658 type in bytes, not bits.
7659
7660 2010-04-06 Pierre Muller <muller@ics.u-strasbg.fr>
7661
7662 * stabsread.c (define_symbol): Add support for char
7663 and string constants.
7664
7665 2010-04-06 Pierre Muller <muller@ics.u-strasbg.fr>
7666
7667 Remove remaining "%ll" uses.
7668 * go32-nat.c (go32_pte_for_address): Replace "0x%llx" using
7669 hex_string call.
7670 * rs6000-nat.c (rs6000_ptrace64): Idem.
7671 * solib-pa64.c (pa64_current_sos): Idem.
7672 * solib-spu.c (spu_current_sos): Idem.
7673 * linux-nat.c (linux_nat_find_memory_regions): Replace "%lld" using
7674 plongest call.
7675 * nto-procfs.c (procfs_meminfo): Replace "0x%016llx" using
7676 phex (VAR, 8) call.
7677 * sh64-tdep.c (sh64_show_media_regs): Idem.
7678
7679 2010-04-05 Stan Shebs <stan@codesourcery.com>
7680
7681 * tracepoint.c: Include gdbcore.h.
7682 (tfile_xfer_partial): Return partial results, also try reading
7683 from executable.
7684 (tfile_has_all_memory): New function.
7685 (init_tfile_ops): Use it.
7686
7687 2010-04-05 Sergio Durigan Junior <sergiodj@redhat.com>
7688
7689 PR gdb/10736:
7690 * xml-syscall.c (my_gdb_datadir): New variable to keep track of
7691 the changes in data-directory.
7692 (init_sysinfo): Reload the syscall XML file if the data-directory
7693 has changed.
7694
7695 2010-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
7696
7697 Code cleanup.
7698 * breakpoint.c (bpstat_stop_status): Use bpstat_causes_stop.
7699
7700 2010-04-04 Stan Shebs <stan@codesourcery.com>
7701 Nathan Sidwell <nathan@codesourcery.com>
7702
7703 * breakpoint.c (breakpoint_1): Add filter argument, return number of
7704 breakpoints printed.
7705 (is_hardware_watchpoint): Make argument const.
7706 (is_watchpoint): Ditto.
7707 (is_tracepoint): Merge of tracepoint_type and breakpoint_is_tracepoint,
7708 use it everywhere.
7709 (breakpoints_info): Pass NULL to breakpoint_1.
7710 (maintenance_info_breakpoints): Ditto.
7711 (watchpoints_info): New function.
7712 (tracepoints_info): Use breakpoint_1 filter.
7713 (set_ignore_count): Warn that tracepoint ignore count will be ignored.
7714 (_initialize_breakpoint): Make "info watchpoints" its own command.
7715 * breakpoint.h (is_tracepoint): Rename from breakpoint_is_tracepoint.
7716 * mi/mi-cmd-break.c (mi_cmd_break_commands): Use is_tracepoint.
7717
7718 2010-04-04 Stan Shebs <stan@codesourcery.com>
7719
7720 * tracepoint.c (tfile_fetch_registers): Add fallback case.
7721
7722 2010-04-04 Jan Kratochvil <jan.kratochvil@redhat.com>
7723
7724 * infcmd.c (run_command_1): Call proceed with regcache_read_pc address.
7725 * config/djgpp/fnchange.lst: Add translation for break-entry.exp.
7726
7727 2010-04-04 Jan Kratochvil <jan.kratochvil@redhat.com>
7728
7729 * breakpoint.c (bpstat_find_step_resume_breakpoint): Remove.
7730 * breakpoint.h (bpstat_find_step_resume_breakpoint): Remove.
7731
7732 2010-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
7733
7734 * dwarf2read.c (read_namespace_type): Use common "return set_die_type"
7735 code form.
7736
7737 2010-04-02 Hui Zhu <teawater@gmail.com>
7738
7739 * i386-tdep.c (OT_DQUAD): New enum.
7740 (i386_process_record): Add code for MMX, 3DNow!, SSE, SSE2,
7741 SSE3, SSSE3 and SSE4.
7742
7743 2010-04-02 Hui Zhu <teawater@gmail.com>
7744
7745 * i386-tdep.c (i386_record_lea_modrm_addr): Remove useless
7746 "*addr = 0".
7747
7748 2010-04-02 Pedro Alves <pedro@codesourcery.com>
7749
7750 * tracepoint.c (trace_dump_actions): New, factored out from
7751 trace_dump_command, and adjusted to recurse into while-stepping's
7752 action list.
7753 (trace_dump_command): Use it.
7754
7755 2010-04-02 Pedro Alves <pedro@codesourcery.com>
7756
7757 * breakpoint.h (struct counted_command_line): Moved definition to
7758 breakpoint.c, and forward declare.
7759 (breakpoint_commands): Declare.
7760 * breakpoint.c (struct counted_command_line): Moved here.
7761 (breakpoint_commands): New.
7762 * tracepoint.c (encode_actions): Use breakpoint_commands.
7763 * remote.c (remote_download_tracepoint): Ditto.
7764
7765 2010-04-01 H.J. Lu <hongjiu.lu@intel.com>
7766
7767 * remote.c (remote_parse_stop_reply): Use hex_string instead
7768 of phex_nz for error.
7769
7770 2010-04-01 Stan Shebs <stan@codesourcery.com>
7771 Nathan Sidwell <nathan@codesourcery.com>
7772
7773 * tracepoint.h (enum actionline_type): Remove.
7774 (validate_actionline): Change return to void.
7775 * tracepoint.c (report_agent_reqs_errors): New function.
7776 (validate_actionline): Call it, change return to void, report errors
7777 more consistently.
7778 (collect_symbol): Call report_agent_reqs_errors.
7779 (encode_actions_1): Ditto.
7780 (encode_actions): Don't expect a result from validate_actionline.
7781
7782 2010-04-01 Stan Shebs <stan@codesourcery.com>
7783
7784 * tracepoint.c (trace_start_command): Confirm if trace is running.
7785 (trace_stop_command): Error if trace not running.
7786
7787 2010-04-01 H.J. Lu <hongjiu.lu@intel.com>
7788
7789 * amd64-tdep.c (amd64_byte_names): Add "ah", "bh", "ch", "dh".
7790 (AMD64_NUM_LOWER_BYTE_REGS): New.
7791 (amd64_pseudo_register_read): Handle "ah", "bh", "ch", "dh".
7792 (amd64_pseudo_register_write): Likewise.
7793 (amd64_init_abi): Set num_byte_regs to 20.
7794
7795 2010-04-01 Pedro Alves <pedro@codesourcery.com>
7796
7797 * breakpoint.c (multi_start, multi_end, last_was_multi): Delete.
7798 (prev_breakpoint_count): New.
7799 (set_breakpoint_count): Adjust.
7800 (rbreak_start_breakpoint_count): New.
7801 (start_rbreak_breakpoints): Adjust.
7802 (end_rbreak_breakpoints): Adjust.
7803 (struct commands_info) <arg>: New field.
7804 (do_map_commands_command): Tweak output to include breakpoint spec
7805 range.
7806 (commands_command_1): Adjust. Avoid setting an xfree cleanup if
7807 ARG was empty on entry. Set INFO's arg.
7808 (create_breakpoint): Adjust.
7809
7810 * NEWS: Clarify `commands' changes.
7811
7812 2010-04-01 Pedro Alves <pedro@codesourcery.com>
7813
7814 * tracepoint.c: Include stack.h.
7815 (struct add_local_symbols_data): New.
7816 (do_collect_symbol): New.
7817 (add_local_symbols): Rewrite using iterate_over_block_arg_vars and
7818 iterate_over_block_local_vars.
7819 * stack.c (print_block_frame_locals): Rewrite as ...
7820 (iterate_over_block_locals): ... this. Take a callback function
7821 pointer and generic data pointer, and call that instead of
7822 print_variable_and_value.
7823 (struct print_variable_and_value_data): New.
7824 (do_print_variable_and_value): New.
7825 (iterate_over_block_local_vars): New, abstracted out from
7826 print_frame_local_vars.
7827 (print_frame_local_vars): Rewrite using
7828 iterate_over_block_local_vars.
7829 (iterate_over_block_arg_vars): New, abstracted out from
7830 print_frame_arg_vars.
7831 (print_frame_arg_vars): Rewrite using iterate_over_block_arg_vars.
7832 * stack.h (iterate_over_block_arg_local_vars_cb): New typedef.
7833 (iterate_over_block_arg_vars, iterate_over_block_local_vars): Declare.
7834
7835 2010-03-31 Richard Earnshaw <rearnsha@arm.com>
7836
7837 * arm-tdep.c (thumb_get_next_pc_raw): Correctly detect TBH
7838 instructions. Use the PC+4 if the base of the TBB or TBH is the
7839 PC register.
7840
7841 2010-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
7842
7843 Fix crash on reading wrong function declaration DWARF.
7844 * dwarf2read.c (read_subroutine_type): New variable void_type.
7845 Pre-fill all TYPE_FIELD_TYPEs. Move nparams and iparams initialization
7846 more close to their use.
7847
7848 2010-03-31 Stan Shebs <stan@codesourcery.com>
7849
7850 * breakpoint.c (tracepoint_save_command): Include variables,
7851 conditionals, tracepoint types, and default-collect.
7852 * tracepoint.c (save_trace_state_variables): New function.
7853 * tracepoint.h (save_trace_state_variables): Declare it.
7854
7855 2010-03-31 Pierre Muller <muller@ics.u-strasbg.fr>
7856
7857 * remote.c (end_thread): ARI fix: Use xstrdup instead of strdup.
7858
7859 2010-03-30 Keith Seitz <keiths@redhat.com>
7860
7861 * c-typeprint.c (c_type_print_args): Don't print "void"
7862 for java, regardless of whether it is TYPE_PROTOTYPED.
7863 Use the passed-in language instead of current_language.
7864 (c_type_print_varspec_suffix): Use current_language instead
7865 of assuming language_c.
7866 * jv-typeprint.c (java_type_print_base): (bz 9320) Strip off
7867 any return type specifier from the physname.
7868
7869 2010-03-30 Pedro Alves <pedro@codesourcery.com>
7870
7871 * tui/tui-interp.c (tui_is_toplevel): New.
7872 (tui_init): Set it.
7873 (tui_allowed_p): New.
7874 * tui/tui.c (tui_enable): Check if the TUI is allowed before
7875 enabling it.
7876 * tui/tui.h (tui_allowed_p): Declare.
7877
7878 2010-03-30 Ozkan Sezer <sezeroz@gmail.com>
7879
7880 * serial.h: Include winsock2.h before windows.h.
7881
7882 2010-03-30 H.J. Lu <hongjiu.lu@intel.com>
7883
7884 * NEWS: Mention xmlRegisters= in qSupported packet.
7885
7886 * i386-tdep.c: Include "remote.h".
7887 (_initialize_i386_tdep): Call register_remote_support_xml.
7888
7889 * remote.c (remote_support_xml): New.
7890 (register_remote_support_xml): Likewise.
7891 (remote_query_supported_append): Likewise.
7892 (remote_query_supported): Support remote_support_xml.
7893
7894 * remote.h (register_remote_support_xml): New.
7895
7896 2010-03-29 Stan Shebs <stan@codesourcery.com>
7897
7898 * tracepoint.c (trace_find_line_command): Remove dead code.
7899
7900 * tracepoint.h (struct uploaded_string): New struct.
7901 (struct uploaded_tp): New fields for source strings.
7902 * breakpoint.c (this_utp, next_cmd): New globals.
7903 (read_uploaded_action): New function.
7904 (create_tracepoint_from_upload): Fill in more parts
7905 of a tracepoint.
7906 * tracepoint.c (encode_source_string): New function.
7907 (trace_save): Write out source strings, fix error checks.
7908 (parse_tracepoint_definition): Add source string parsing.
7909 * remote.c (PACKET_TracepointSource): New packet type.
7910 (remote_download_command_source): New function.
7911 (remote_download_tracepoint): Download source pieces also.
7912 (_initialize_remote): Add packet config command.
7913
7914 * tracepoint.c (collect_symbol): Send LOC_UNRESOLVED symbols to
7915 expression handler.
7916
7917 * tracepoint.c (start_tracing): Check tracepoints before sending
7918 commands to target, don't start if all tracepoints disabled.
7919
7920 2010-03-28 Pedro Alves <pedro@codesourcery.com>
7921
7922 * cli/cli-script.c (process_next_line): Handle 'stepping'.
7923
7924 2010-03-26 Stan Shebs <stan@codesourcery.com>
7925
7926 * tracepoint.c (disconnect_or_stop_tracing): Get out of tfind mode.
7927
7928 2010-03-26 Tom Tromey <tromey@redhat.com>
7929
7930 * breakpoint.c (commands_command_1): Duplicate 'arg'.
7931
7932 2010-03-26 Ulrich Weigand <uweigand@de.ibm.com>
7933
7934 * breakpoint.c (expand_line_sal_maybe): Always call skip_prologue_sal.
7935 (skip_prologue_sal): Remove local definition.
7936 (resolve_sal_pc): Remove now unnecessary code.
7937 * linespec.c (minsym_found): Call skip_prologue_sal.
7938 * symtab.c (find_function_start_pc): Remove.
7939 (find_function_start_sal): Extract prologue skipping into ...
7940 (skip_prologue_sal): ... this new function. Handle code both
7941 with and without debug info. Respect SAL's explicit_pc and
7942 explicit_line flags. Inline old find_function_start_pc.
7943 * symtab.h (find_function_start_pc): Remove.
7944 (skip_prologue_sal): Add prototype.
7945
7946 2010-03-26 Ulrich Weigand <uweigand@de.ibm.com>
7947
7948 * dwarf2read.c (read_func_scope): Also scan specification DIEs
7949 for DW_TAG_imported_module children.
7950
7951 2010-03-26 Ulrich Weigand <uweigand@de.ibm.com>
7952
7953 * dwarf2read.c (dwarf2_name): Work around GCC bugzilla debug/41828 by
7954 ignoring spurious DW_AT_name attributes for unnamed structs or unions.
7955 * completer.c (add_struct_fields): Fix inverted logic.
7956
7957 2010-03-26 Ulrich Weigand <uweigand@de.ibm.com>
7958
7959 * breakpoint.c (bpstat_clear_actions): Reset bs->commands_left.
7960
7961 2010-03-26 Pedro Alves <pedro@codesourcery.com>
7962
7963 * tracepoint.c (current_trace_status): Don't make sure error_desc
7964 is non-NULL here.
7965 (parse_trace_status): Release a previous error_desc string, and
7966 set it to NULL by default. If stop reason is tracepoint_error,
7967 make sure error_desc is not left NULL.
7968
7969 2010-03-26 Pedro Alves <pedro@codesourcery.com>
7970
7971 * tracepoint.c (trace_save): Remove X from tracepoint error
7972 description.
7973
7974 2010-03-26 Pedro Alves <pedro@codesourcery.com>
7975
7976 * tracepoint.c (parse_trace_status): Don't allow plain strings in
7977 the terror description. Don't expect an X prefix.
7978
7979 2010-03-25 Stan Shebs <stan@codesourcery.com>
7980
7981 * tracepoint.h (trace_stop_reason): Add tracepoint_error.
7982 (struct trace_status): New field error_desc.
7983 * tracepoint.c (stop_reason_names): Add terror.
7984 (current_trace_status): Ensure non-NULL error description.
7985 (trace_status_command): Add error report.
7986 (trace_status_mi): Ditto.
7987 (trace_save): Add special case for error description.
7988 (parse_trace_status): Add case for errors.
7989
7990 2010-03-25 Keith Seitz <keiths@redhat.com>
7991
7992 * dwarf2read.c (read_subroutine_type): If the compilation unit
7993 language is Java, mark any formal parameter named "this" as
7994 artificial (GCC/43521).
7995 (dwarf2_name): Add special handling for Java constructors.
7996
7997 2010-03-25 Tom Tromey <tromey@redhat.com>
7998
7999 PR gdb/11327, PR gdb/11328, PR breakpoints/11368:
8000 * infrun.c (handle_inferior_event): Change initialization of
8001 stop_stack_dummy.
8002 (handle_inferior_event): Change assignment to stop_stack_dummy.
8003 (normal_stop): Update use of stop_stack_dummy.
8004 (struct inferior_status) <stop_stack_dummy>: Change type.
8005 * inferior.h (stop_stack_dummy): Update.
8006 * infcmd.c (stop_stack_dummy): Change type.
8007 * infcall.c (cleanup_delete_std_terminate_breakpoint): New
8008 function.
8009 (call_function_by_hand): Call set_std_terminate_breakpoint.
8010 Rewrite std::terminate handling.
8011 * breakpoint.h (enum bptype) <bp_std_terminate,
8012 bp_std_terminate_master>: New.
8013 (enum stop_stack_kind): New.
8014 (struct bpstat_what) <call_dummy>: Change type.
8015 (set_std_terminate_breakpoint, delete_std_terminate_breakpoint):
8016 Declare.
8017 * breakpoint.c (create_std_terminate_master_breakpoint): New
8018 function.
8019 (update_breakpoints_after_exec): Handle bp_std_terminate_master.
8020 Call create_std_terminate_master_breakpoint.
8021 (print_it_typical): Handle new breakpoint kinds.
8022 (bpstat_stop_status): Handle bp_std_terminate_master.
8023 (bpstat_what): Correctly set call_dummy field. Handle
8024 bp_std_terminate_master and bp_std_terminate.
8025 (print_one_breakpoint_location): Update.
8026 (allocate_bp_location): Update.
8027 (set_std_terminate_breakpoint): New function.
8028 (delete_std_terminate_breakpoint): Likewise.
8029 (create_thread_event_breakpoint): Update.
8030 (delete_command): Update.
8031 (breakpoint_re_set_one): Update.
8032 (breakpoint_re_set): Call create_std_terminate_master_breakpoint.
8033
8034 2010-03-25 Jan Kratochvil <jan.kratochvil@redhat.com>
8035
8036 * symfile.c (build_section_addr_info_from_bfd): New.
8037 (build_section_addr_info_from_objfile): Base it on
8038 build_section_addr_info_from_bfd.
8039 (addrs_section_compar, addrs_section_sort): New.
8040 (addr_info_make_relative): New variables my_cleanup, abfd_addrs,
8041 addrs_sorted, abfd_addrs_sorted and addrs_to_abfd_addrs. Build
8042 addrs_to_abfd_addrs. Use it for recalculating ADDRS.
8043
8044 2010-03-24 Michael Snyder <msnyder@localhost.localdomain>
8045
8046 * elfread.c (find_separate_debug_file_by_buildid):
8047 Remove unused local variable.
8048
8049 2010-03-24 Tom Tromey <tromey@redhat.com>
8050
8051 PR breakpoints/9352:
8052 * NEWS: Mention changes to `commands' and `rbreak'.
8053 * symtab.c (do_end_rbreak_breakpoints): New function.
8054 (rbreak_command): Call start_rbreak_breakpoints; arrange to call
8055 end_rbreak_breakpoints.
8056 * breakpoint.c (breakpoint_count, tracepoint_count): Now static.
8057 (set_breakpoint_count): Likewise. Clear last_was_multi.
8058 (multi_start, multi_end, last_was_multi): New globals.
8059 (start_rbreak_breakpoints, end_rbreak_breakpoints): New
8060 functions.
8061 (struct commands_info): New
8062 (do_map_commands_command): New function.
8063 (commands_command_1): New function.
8064 (commands_command): Use it.
8065 (commands_from_control_command): Likewise.
8066 (do_delete_breakpoint): New function.
8067 (delete_command): Use it.
8068 (map_breakpoint_numbers): Add 'data' argument. Pass to callback.
8069 (do_map_disable_breakpoint): New function.
8070 (disable_command): Use it.
8071 (do_map_enable_breakpoint): New function.
8072 (enable_command): Use it.
8073 (enable_once_breakpoint): Add argument.
8074 (enable_once_command): Update.
8075 (enable_delete_breakpoint): Add argument.
8076 (enable_delete_command): Update.
8077 (break_command_really): Set last_was_multi when needed.
8078 (check_tracepoint_command): Fix formatting.
8079 (validate_commands_for_breakpoint): New function.
8080 (breakpoint_set_commands): Use it.
8081 (tracepoint_save_command): Update.
8082 * breakpoint.h (start_rbreak_breakpoints, end_rbreak_breakpoints):
8083 Declare.
8084
8085 2010-03-24 Tom Tromey <tromey@redhat.com>
8086
8087 * breakpoint.h (struct counted_command_line): New struct.
8088 (struct breakpoint) <commands>: Change type.
8089 (struct bpstats) <commands>: Change type.
8090 <commands_left>: New field.
8091 * breakpoint.c (alloc_counted_command_line): New function.
8092 (incref_counted_command_line): Likewise.
8093 (decref_counted_command_line): Likewise.
8094 (do_cleanup_counted_command_line): Likewise.
8095 (make_cleanup_decref_counted_command_line): Likewise.
8096 (breakpoint_set_commands): Use decref_counted_command_line and
8097 alloc_counted_command_line.
8098 (commands_command): Don't error if breakpoint commands are
8099 executing.
8100 (commands_from_control_command): Likewise.
8101 (bpstat_free): Update.
8102 (bpstat_copy): Likewise.
8103 (bpstat_clear_actions): Likewise.
8104 (bpstat_do_actions_1): Likewise.
8105 (bpstat_stop_status): Likewise.
8106 (print_one_breakpoint_location): Likewise.
8107 (delete_breakpoint): Likewise.
8108 (bpstat_alloc): Initialize new field.
8109 (tracepoint_save_command): Update.
8110 * tracepoint.c (encode_actions): Update.
8111 (trace_dump_command): Update.
8112
8113 2010-03-24 Daniel Jacobowitz <dan@codesourcery.com>
8114
8115 * dwarf2-frame.c (dwarf2_frame_find_quirks): Use producer_is_realview.
8116 * dwarf2read.c (load_full_comp_unit): Read DW_AT_producer.
8117 (read_structure_type): For RealView, set TYPE_STUB on structures with
8118 no byte size and no children.
8119 (read_subroutine_type): Mark functions as prototyped by default.
8120 * symtab.c (producer_is_realview): New function.
8121 * symtab.h (expand_line_sal): Fix declaration formatting.
8122 (producer_is_realview): Declare.
8123
8124 2010-03-24 Daniel Jacobowitz <dan@codesourcery.com>
8125
8126 * arm-tdep.c (skip_prologue_function): New function.
8127 (submask, bit, bits, sbits, BranchDest): Move higher in the file.
8128 (thumb_analyze_prologue): Document return value. Recognize more
8129 Thumb instructions, skippable calls, and some Thumb-2 instructions.
8130 Add debug output.
8131 (arm_skip_prologue): Remove call dummy check. Check the prologue
8132 for non-GNU compilers.
8133 (arm_instruction_changes_pc): New function.
8134 (arm_analyze_prologue): New function, broken out from
8135 arm_scan_prologue. Recognize more ARM instructions and skippable
8136 calls. Update comments. Handle NULL cache. Return the address
8137 of the first unrecognized instruction. Do not skip past other
8138 instructions which change control flow. Add debug output.
8139 (arm_scan_prologue): Use arm_analyze_prologue.
8140 (ARM_PC_32): Delete.
8141 (shifted_reg_val): Simplify ARM_PC_32 check.
8142
8143 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
8144
8145 * tracepoint.c (tvariables_info_1): Actually compute
8146 the number of rows in the result.
8147
8148 2010-03-24 Pedro Alves <pedro@codesourcery.com>
8149
8150 * remote.c (crc32): Constify `buf' parameter.
8151 (remote_verify_memory): New, abstracted out from...
8152 (compare_sections_command): ... this. Remove hardcoded target
8153 checks.
8154 (init_remote_ops): Install remote_verify_memory.
8155 * target.c (target_verify_memory): New.
8156 * target.h (struct target_ops) <to_verify_memory>: New field.
8157 (target_verify_memory): Declare.
8158
8159 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
8160
8161 Implement -trace-save.
8162
8163 * mi-cmds.h (mi_cmds_trace_save): Declare.
8164 * mi-cmds.c (mi_cmds): Register -trace-save.
8165 * mi/mi-main.c (mi_cmd_trace_save): New.
8166 * remote.c (remote_save_trace_data): Take const parameter.
8167 * target.h (struct target_ops::to_save_trace_data): Take
8168 const parameter.
8169 * target.c (update_current_target): Adjust to the above.
8170 * tracepoint.c (trave_save): New, extracted from
8171 (trace_save_command): ...this.
8172 (tfile_trace_find): Remove message that is unnecessary now
8173 that 'tfind' reports found frame.
8174 * tracepoint.h (trace_save): Declare.
8175
8176 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
8177
8178 Implement -trace-find.
8179
8180 * mi/mi-cmds.c (mi_cmds): Register -trace-find.
8181 * mi/mi-cmds.h (mi_cmd_trace_find): Declare.
8182 * mi/mi-main.c (mi_cmd_trace_find): New.
8183 * target.h (struct target_ops): Document to_trace_find.
8184 * tracepoint.h (tfind_1): Declare.
8185 * tracepoint.c (finish_tfind_command): Rename to...
8186 (tfind_1): ...this.
8187 * remote.c (remote_trace_find): Return -1 if target say
8188 there's no frame. Improve error diagnostics.
8189
8190 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
8191
8192 -trace-define-variable and -trace-list-variables.
8193
8194 * tracepoint.c (create_trace_state_variable): Make
8195 private copy of name, as opposed to assuming the
8196 pointer lives forever.
8197 (tvariables_info_1): New.
8198 (tvariables_info): Use the above.
8199 * tracepoint.h (create_trace_state_variable, tvariables_info_1):
8200 Declare.
8201 * mi/mi-cmds.c (mi_cmds): Register -trace-define-variable
8202 and -trace-list-variables.
8203 * mi/mi-cmds.h (mi_cmd_trace_define_variable)
8204 (mi_cmd_trace_list_variables): New.
8205 * mi/mi-main.c (mi_cmd_trace_define_variable)
8206 (mi_cmd_trace_list_variables): New.
8207
8208 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
8209
8210 Implement -break-passcount.
8211
8212 * mi/mi-cmd-break.c (mi_cmd_break_passcount): New.
8213 * mi/mi-cmds.c (mi_cmds): Register -break-passcount.
8214 * mi/mi-cmds.h (mi_cmd_break_passcount): Declare.
8215
8216 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
8217
8218 -trace-start/-trace-end/-trace-status.
8219
8220 * mi/mi-cmds.c (mi_cmds): Register -trace-start, -trace-status
8221 and -trace-stop.
8222 * mi/mi-cmds.h (mi_cmd_trace_start, mi_cmd_trace_status)
8223 (mi_cmd_trace_stop): Declare.
8224 * mi/mi-main.c (mi_cmd_trace_start, mi_cmd_trace_status)
8225 (mi_cmd_trace_stop): New.
8226 * tracepoint.c (start_tracing): New, extracted from...
8227 (trace_start_command): ...this.
8228 (trace_status_mi): New.
8229 * tracepoint.h (struct trace_status): Document
8230 stopping_tracepoint.
8231 (start_tracing, stop_tracing, trace_status_mi): Declare.
8232
8233 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
8234
8235 Implement creating tracepoints with -break-insert.
8236
8237 * mi/mi-cmd-break.c (mi_cmd_break_insert): Handle -a
8238 to mean that tracepoint should be created.
8239
8240 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
8241
8242 * breakpoint.c (check_no_tracepoint_commands): Use
8243 current spelling of 'teval'.
8244
8245 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
8246
8247 Unify actions and commands
8248
8249 * defs.h (read_command_lines, read_command_lines_1): New
8250 parameters validator and closure.
8251 * tracepoint.h (struct action_line): Remove.
8252 * breakpoint.h (struct breakpoint): Remove the 'actions'
8253 field.
8254 * defs.h (enum command_control_type): New value
8255 while_stepping_control.
8256 (struct command_line): Add comments.
8257 * breakpoint.c (breakoint_is_tracepoint): New.
8258 (breakpoint_set_commands): For tracepoints,
8259 verify the commands are permissible.
8260 (check_tracepoint_commands): New.
8261 (commands_command): Require that each new line is validated using
8262 check_tracepoint_command, if we set commands for a tracepoint.
8263 (create_tracepoint_from_upload): Likewise.
8264 (print_one_breakpoint_location): Remove the code to print
8265 actions specifically.
8266 (tracepoint_save_command): Relay to print_command_lines.
8267 * cli/cli-script.c (process_next_line): New parameters validator
8268 and closure. Handle 'while-stepping'. Call validator if not null.
8269 (read_command_lines, read_command_lines1): Likewise.
8270 (recurse_read_control_structure): New parameters validator and
8271 closure. Handle while_stepping_control.
8272 (print_command_lines): Handle while-stepping.
8273 (get_command_line, define_command, document_command): Adjust.
8274 * remote.c (remote_download_tracepoint): Adjust.
8275 * tracepoint.c (make_cleanup_free_actions, read_actions)
8276 (free_actions, do_free_actions_cleanup): Remove.
8277 (trace_actions_command): Use read_command_lines.
8278 (validate_actionline): Use error in one place.
8279 (encode_actions_1): New, extracted from...
8280 (encode_actions): ...this. Also use cleanups for exception
8281 safety.
8282 (trace_dump_command): Adjust.
8283 * mi/mi-cmd-break (mi_cmd_break_commands): Validate commands if
8284 it's tracepoint.
8285
8286 2010-03-23 Mike Frysinger <vapier@gentoo.org>
8287
8288 * Makefile.in (OPCODES_CFLAGS): Add -I$(OPCODES_SRC)/..
8289
8290 2010-03-22 Stan Shebs <stan@codesourcery.com>
8291
8292 * value.c (value_static_field): Be lazy about the field's value.
8293
8294 2010-03-22 Reid Kleckner <reid@kleckner.net>
8295
8296 PR gdb/11094
8297 * breakpoint.c (disable_breakpoints_in_unloaded_shlib): Add
8298 bp_jit_event.
8299 (disable_breakpoints_in_shlibs): Likewise.
8300
8301 2010-03-22 Ulrich Weigand <uweigand@de.ibm.com>
8302
8303 * dwarf2read.c (partial_die_parent_scope): Work around buggy
8304 GCC 4.1 debug info generation (GCC PR c++/28460).
8305 (determine_prefix): Likewise.
8306
8307 2010-03-20 Daniel Jacobowitz <dan@codesourcery.com>
8308
8309 * tui/tui-disasm.c (tui_get_begin_asm_address): Default to
8310 get_current_arch.
8311 * tui/tui-layout.c (extract_display_start_addr): Likewise.
8312
8313 2010-03-19 Stan Shebs <stan@codesourcery.com>
8314
8315 * ax-gdb.c (gen_fetch): Handle bool.
8316 (gen_usual_unary): Ditto.
8317 (gen_cast): Ditto.
8318 (gen_equal): New function.
8319 (gen_less): New function.
8320 (gen_expr_binop_rest): Call them, also return integer type from
8321 logical operations.
8322 (gen_expr): Ditto.
8323
8324 2010-03-19 Tom Tromey <tromey@redhat.com>
8325
8326 * jv-lang.c (jv_dynamics_objfile_data_key)
8327 (jv_type_objfile_data_key): New globals.
8328 (class_symtab): Move earlier.
8329 (jv_per_objfile_free): New function.
8330 (get_dynamics_objfile): Call set_objfile_data. Add 'gdbarch'
8331 parameter.
8332 Remove ancient #if 1.
8333 (add_class_symbol): Remove redundant declaration.
8334 (java_lookup_class): Use alloc_type, not alloc_type_arch.
8335 (java_link_class_type): Mark as static. Update.
8336 (jv_clear_object_type): New function.
8337 (set_java_object_type): Likewise.
8338 (get_java_object_type): Use set_java_object_type.
8339 (is_object_type): Likewise.
8340 (_initialize_java_language): Register new objfile keys.
8341 (get_java_class_symtab): Add 'gdbarch' parameter.
8342 (add_class_symtab_symbol): Update.
8343 (type_from_class): Update.
8344
8345 2010-03-19 Stan Shebs <stan@codesourcery.com>
8346
8347 * ax-general.c (ax_const_l): Fix a sizing bug.
8348
8349 2010-03-18 Joel Brobecker <brobecker@adacore.com>
8350
8351 GDB 7.1 released.
8352
8353 2010-03-18 Stan Shebs <stan@codesourcery.com>
8354 Pedro Alves <pedro@codesourcery.com>
8355
8356 * target.h (struct target_ops): New method
8357 to_set_circular_trace_buffer.
8358 (target_set_circular_trace_buffer): New macro.
8359 * target.c (update_current_target): Add
8360 to_set_circular_trace_buffer, fix to_set_disconnected_tracing
8361 default behavior.
8362 * remote.c (remote_set_circular_trace_buffer): New function.
8363 (init_remote_ops): Add it to vector.
8364 * tracepoint.h (struct trace_status): New field traceframes_created,
8365 change buffer_size and buffer_free to int.
8366 * tracepoint.c (circular_trace_buffer): New global.
8367 (start_tracing): Send values of disconnected tracing and circular
8368 trace buffer settings.
8369 (set_circular_trace_buffer): New function.
8370 (parse_trace_state): Handle total space and frames created.
8371 (trace_status_command): Display total space and total frames
8372 created.
8373 (trace_save): Write out new status values.
8374 (parse_trace_status): Set traceframe_count, traceframes_created,
8375 buffer_free and buffer_size to -1 by default.
8376 (_initialize_tracepoint): New setshow for circular-trace-buffer.
8377 * NEWS: Mention the circular trace buffer option.
8378
8379 2010-03-18 Tom Tromey <tromey@redhat.com>
8380
8381 * infcmd.c (finish_command_continuation): Wrap print_return_value
8382 in TRY_CATCH.
8383
8384 2010-03-18 Joel Brobecker <brobecker@adacore.com>
8385
8386 * dwarf2read.c (add_partial_subprogram): Make sure the subprogram
8387 DIE has a name before creating the associated partial symbol.
8388 (read_func_scope): Emit a complaint if the subprogram does not
8389 have a name or when we can't extract the subprogram PC bounds.
8390
8391 2010-03-18 Ulrich Weigand <uweigand@de.ibm.com>
8392
8393 * mi/mi-main.c (mi_cmd_list_thread_groups): Use get_current_arch
8394 instead of selected frame architecture.
8395
8396 2010-03-18 Pedro Alves <pedro@codesourcery.com>
8397
8398 * infcmd.c (until_command): Use ERROR_NO_INFERIOR. Ensure there's
8399 a valid selected thread, and that it is not running.
8400 (advance_command): Ditto.
8401 (finish_command): Ditto.
8402
8403 2010-03-17 Stan Shebs <stan@codesourcery.com>
8404
8405 * ax-gdb.c (require_rvalue): Disallow non-scalars.
8406
8407 * infcall.c: Include tracepoint.h.
8408 (call_function_by_hand): Disallow calls in tfind mode.
8409 * infcmd.c: Include tracepoint.h.
8410 (ensure_not_tfind_mode): New function.
8411 (continue_1): Call it.
8412 (step_1) Ditto.
8413 (jump_command): Ditto.
8414 (signal_command): Ditto.
8415 (advance_command): Ditto.
8416 (until_command): Ditto.
8417 (finish_command): Ditto.
8418 * tracepoint.h (disconnect_or_stop_tracing): Declare.
8419
8420 * ax-gdb.h (struct axs_value): New field optimized_out.
8421 (gen_trace_for_var): Add gdbarch argument.
8422 * ax-gdb.c (gen_trace_static_fields): New function.
8423 (gen_traced_pop): Call it, add gdbarch argument.
8424 (gen_trace_for_expr): Update call to it.
8425 (gen_trace_for_var): Ditto, and report optimized-out variables.
8426 (gen_struct_ref_recursive): Check for optimized-out value.
8427 (gen_struct_elt_for_reference): Ditto.
8428 (gen_static_field): Pass gdbarch instead of expression, assume
8429 optimization if field not found.
8430 (gen_var_ref): Set the optimized_out flag.
8431 (gen_expr): Error on optimized-out variable.
8432 * tracepoint.c (collect_symbol): Handle struct-valued vars as
8433 expressions, skip optimized-out variables with computed locations.
8434 * dwarf2loc.c (dwarf2_tracepoint_var_ref): Flag instead of
8435 erroring out if location expression missing.
8436 (loclist_tracepoint_var_ref): Don't error out here.
8437
8438 2010-03-17 Tom Tromey <tromey@redhat.com>
8439
8440 * dwarf2read.c (dwarf2_get_section_info): Handle case where no
8441 DWARF data is available.
8442
8443 2010-03-17 Daniel Jacobowitz <dan@codesourcery.com>
8444
8445 * symfile.c (generic_load): Reset breakpoints after loading.
8446
8447 2010-03-17 Tom Tromey <tromey@redhat.com>
8448
8449 * linux-nat.c (linux_nat_detach): Check debug_linux_nat.
8450
8451 2010-03-17 Jan Kratochvil <jan.kratochvil@redhat.com>
8452
8453 * spu-tdep.c (spu_catch_start): Replace set_breakpoint call with the
8454 create_breakpoint call, adjust the parameters.
8455
8456 2010-03-16 Jan Kratochvil <jan.kratochvil@redhat.com>
8457 Chandru <chandru@in.ibm.com>
8458
8459 * dwarf2read.c (read_subrange_type): Set TYPE_HIGH_BOUND_UNDEFINED.
8460 * valarith.c (value_subscripted_rvalue): Suppress error if
8461 TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED.
8462
8463 2010-03-16 Holger Hans Peter Freyther <zecke@selfish.org>
8464
8465 * linux-record.c (record_linux_msghdr): Remove unintended semicolons.
8466
8467 2010-03-16 Joel Brobecker <brobecker@adacore.com>
8468
8469 * ada-tasks.c (task_command_1): Check that the task ptid is valid
8470 before doing the associated thread switch.
8471
8472 2010-03-16 Daniel Jacobowitz <dan@codesourcery.com>
8473
8474 * MAINTAINERS: Update my email address.
8475
8476 2010-03-16 Vladimir Prus <vladimir@codesourcery.com>
8477
8478 Simplify MI breakpoint setting.
8479
8480 * breakpoint.c (break_command_really): Make nonstatic and
8481 rename to...
8482 (create_breakpoint): ...this. Rename prior function by this name
8483 to...
8484 (create_breakpoint_sal): ...this.
8485 (create_breakpoints): Rename to...
8486 (create_breakpoints_sal): ...this.
8487 (set_breakpoint): Remove.
8488 * breakpoint.h: Adjust to above changes.
8489 * mi/mi-cmd-break.c (mi_cmd_break_insert): Simplify.
8490
8491 2010-03-15 Stan Shebs <stan@codesourcery.com>
8492
8493 * ax-gdb.c: Include cp-support.h.
8494 (find_field): Remove.
8495 (gen_primitive_field): New function.
8496 (gen_struct_ref_recursive): New function.
8497 (gen_struct_ref): Rewrite to call gen_struct_ref_recursive instead
8498 of find_field.
8499 (gen_static_field): New function.
8500 (gen_struct_elt_for_reference): New.
8501 (gen_namespace_elt): New.
8502 (gen_maybe_namespace_elt): New.
8503 (gen_aggregate_elt_ref): New.
8504 (gen_expr): Add OP_SCOPE, display opcode name in error message.
8505
8506 2010-03-15 Tom Tromey <tromey@redhat.com>
8507
8508 * dwarf2read.c (die_needs_namespace): Also return 0 for
8509 DW_TAG_subprogram.
8510
8511 2010-03-15 Sami Wagiaalla <swagiaal@redhat.com>
8512
8513 PR c++/7936:
8514 * cp-support.h: Added char *declaration element to using_direct
8515 data struct.
8516 (cp_add_using): Added char *declaration argument.
8517 (cp_add_using_directive): Ditto.
8518 (cp_lookup_symbol_imports): made extern.
8519 * cp-namespace.c: Updated with the above changes.
8520 * dwarf2read.c (read_import_statement): Ditto.
8521 (read_namespace): Ditto.
8522 (read_import_statement): Support import declarations.
8523 * cp-namespace.c (cp_lookup_symbol_imports): Check for imported
8524 declarations.
8525 Added support for 'declaration_only' search.
8526 (cp_lookup_symbol_namespace): Attempt to search for the name as
8527 is before consideration of imports.
8528 * symtab.c (lookup_symbol_aux_local): Added a 'declaration_only'
8529 search at every block level search.
8530 Now takes language argument.
8531 (lookup_symbol_aux): Updated.
8532
8533 2010-03-15 Tom Tromey <tromey@redhat.com>
8534
8535 * c-exp.y (name_not_typename): Add 'operator' clause.
8536
8537 2010-03-15 Ralf Corsepius <ralf.corsepius@rtems.org> (tiny change)
8538
8539 * configure.ac: Exit if ${gdb_target_obs}" is not set.
8540 * configure: Regenerate.
8541
8542 2010-03-15 Jan Kratochvil <jan.kratochvil@redhat.com>
8543
8544 * symfile.c (addr_info_make_relative): Ignore also missing ".dynbss"
8545 and ".sdynbss". Update the comment.
8546
8547 2010-03-15 Jie Zhang <jie@codesourcery.com>
8548
8549 * MAINTAINERS: Update my email address.
8550
8551 2010-03-14 Daniel Jacobowitz <dan@codesourcery.com>
8552
8553 * gdbtypes.h (TYPE_IS_OPAQUE): Correct HAVE_CPLUS_STRUCT check.
8554
8555 2010-03-14 Daniel Jacobowitz <dan@codesourcery.com>
8556
8557 * charset.c [USE_WIN32API]: Include <windows.h>.
8558 (_initialize_charset): Correct type of w32_host_default_charset.
8559
8560 2010-03-14 Pedro Alves <pedro@codesourcery.com>
8561
8562 * infrun.c (ptid_match): Don't assert that PTID is not a pid ptid.
8563
8564 2010-03-12 Tom Tromey <tromey@redhat.com>
8565
8566 PR c++/9708:
8567 * dwarf2read.c (die_needs_namespace) <DW_TAG_variable>: A variable
8568 in a lexical block does not need a namespace.
8569 (new_symbol) <DW_TAG_variable>: Put extern variables on
8570 list_in_scope in all cases.
8571
8572 2010-03-12 Stan Shebs <stan@codesourcery.com>
8573
8574 * ax-gdb.c (gen_expr): Add shift expressions.
8575 (gen_expr_binop_rest): Ditto.
8576
8577 2010-03-12 Sami Wagiaalla <swagiaal@redhat.com>
8578
8579 * buildsym.c (finish_block): Reset using_directives pointer
8580 after block initialization.
8581
8582 2010-03-12 H.J. Lu <hongjiu.lu@intel.com>
8583
8584 * amd64-tdep.c (amd64_word_names): Replace "sp" with "".
8585 * i386-tdep.c (i386_word_names): Likewise.
8586
8587 2010-03-12 Pedro Alves <pedro@codesourcery.com>
8588
8589 * target.c (memory_xfer_partial): Don't use the stack cache if
8590 inspecting trace frames.
8591 * tracepoint.c (finish_tfind_command): Invalidate the target
8592 dcache.
8593
8594 2010-03-11 Jan Kratochvil <jan.kratochvil@redhat.com>
8595
8596 * solib-svr4.c (LM_ADDR_CHECK) <info_verbose>: Use printf_unfiltered
8597 for the PIC displacement, print also the displacement value.
8598 (svr4_exec_displacement): Print DISPLACEMENT if INFO_VERBOSE.
8599
8600 2010-03-10 Kevin Buettner <kevinb@redhat.com>
8601
8602 * remote-mips.c (close_ports, mips_initialize_cleanups)
8603 (mips_exit_cleanups, mips_send_command, mips_open, pmon_open)
8604 (ddb_open, lsi_open, mips_remove_breakpoint, mips_remove_watchpoint)
8605 (mips_stopped_by_watchpoint, send_srec, pmon_checkset)
8606 (pmon_make_fastrec, pmon_check_ack, mips_expect_download)
8607 (pmon_check_entry_address, pmon_check_total, pmon_end_download)
8608 (pmon_download, pmon_load_fast, _initialize_remote_mips): Add
8609 comments describing each of these functions.
8610 (mips_enter_debug, mips_exit_debug, common_open)
8611 (mips_signal_from_protocol, pmon_makeb64, pmon_zeroset): Add
8612 blank line after the comment describing the function.
8613
8614 2010-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
8615
8616 * solib-svr4.c (svr4_exec_displacement): Return now success, new
8617 parameter displacementp. Update comment.
8618 (svr4_relocate_main_executable): Return if non-zero SECTION_OFFSETS
8619 element exists. Return if svr4_exec_displacement was not successful.
8620 Update comment.
8621
8622 2010-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
8623 Daniel Jacobowitz <dan@codesourcery.com>
8624
8625 * solib-svr4.c (read_program_header): Support type == -1 to read
8626 all program headers.
8627 (read_program_headers_from_bfd): New function.
8628 (svr4_static_exec_displacement): Remove and move the comment ...
8629 (svr4_exec_displacement): ... here. Remove variable found. New
8630 variable displacement. Check also DYNAMIC. Verify DISPLACEMENT
8631 alignment for ELF targets. Compare target vs. exec_bfd PHDRs for ELF
8632 targets using read_program_headers_from_bfd. Remove the call of
8633 svr4_static_exec_displacement.
8634
8635 2010-03-10 Tom Tromey <tromey@redhat.com>
8636
8637 * dwarf2read.c (struct pubnames_header): Remove.
8638 (_PUBNAMES_HEADER): Remove.
8639 (_ACTUAL_PUBNAMES_HEADER_SIZE): Remove.
8640 (struct aranges_header): Remove.
8641 (_ARANGES_HEADER, _ACTUAL_ARANGES_HEADER_SIZE): Remove.
8642 (struct dwarf2_per_objfile) <pubnames, aranges>: Remove.
8643 (PUBNAMES_SECTION): Remove.
8644 (ARANGES_SECTION): Remove.
8645 (dwarf2_locate_sections): Don't handle pubnames or aranges.
8646 (dwarf2_build_psymtabs): Remove dead code.
8647 (dwarf2_build_psymtabs_easy): Remove.
8648
8649 2010-03-10 Tom Tromey <tromey@redhat.com>
8650
8651 * elfread.c (elf_symfile_read): Don't call
8652 dwarf2_build_frame_info.
8653 * dwarf2read.c (struct dwarf2_section_info) <readin>: New field.
8654 (struct dwarf2_per_objfile) <objfile>: New field.
8655 (dwarf2_has_info): Now idempotent. Set objfile field.
8656 (dwarf2_read_section): Check and set readin field. Call
8657 posix_madvise.
8658 (dwarf2_build_psymtabs): Don't read all sections.
8659 (read_type_comp_unit_head): Read types section.
8660 (create_debug_types_hash_table): Likewise.
8661 (init_cu_die_reader): Add asserts.
8662 (process_type_comp_unit): Add assert.
8663 (dwarf2_build_psymtabs_hard): Read info section.
8664 (load_partial_comp_unit): Add assert.
8665 (create_all_comp_units): Read info section.
8666 (load_full_comp_unit): Likewise.
8667 (dwarf2_ranges_read): Read ranges section.
8668 (dwarf2_record_block_ranges): Add assert.
8669 (dwarf2_read_abbrevs): Read abbrev section.
8670 (read_indirect_string): Read str section.
8671 (dwarf_decode_line_header): Read line section.
8672 (read_signatured_type_at_offset): Read types section.
8673 (dwarf_decode_macros): Read macinfo section.
8674 (dwarf2_symbol_mark_computed): Read loc section.
8675 * dwarf2-frame.c (dwarf2_frame_find_fde): Call
8676 dwarf2_build_frame_info.
8677 (dwarf2_build_frame_info): Unconditionally set
8678 dwarf2_frame_objfile_data on the objfile.
8679 * configure.ac: Check for posix_madvise.
8680 * config.in, configure: Rebuild.
8681
8682 2010-03-10 Tom Tromey <tromey@redhat.com>
8683
8684 * xcoffread.c (xcoff_start_psymtab): Update.
8685 (xcoff_end_psymtab): Update.
8686 * psymtab.c (allocate_psymtab): Remove dead code.
8687 * psympriv.h (struct partial_symtab) <read_symtab_private>: Now
8688 void*.
8689 * mdebugread.c (parse_partial_symbols): Update.
8690 (new_psymtab): Likewise.
8691 * dwarf2read.c (process_psymtab_comp_unit): Update.
8692 (psymtab_to_symtab_1): Update.
8693 * dbxread.c (start_psymtab): Update.
8694 (end_psymtab): Likewise.
8695
8696 2010-03-10 Tom Tromey <tromey@redhat.com>
8697
8698 * xcoffread.c: Include psymtab.h.
8699 (xcoff_sym_fns): Update.
8700 * symtab.h (struct partial_symbol): Remove.
8701 (PSYMBOL_DOMAIN, PSYMBOL_CLASS): Remove.
8702 (struct partial_symtab): Remove.
8703 (PSYMTAB_TO_SYMTAB): Remove.
8704 (lookup_partial_symbol, lookup_partial_symtab, find_pc_psymtab)
8705 (find_pc_sect_psymtab): Remove.
8706 (find_pc_sect_symtab_via_partial): Declare.
8707 (find_pc_psymtab, find_pc_sect_psymbol, psymtab_to_symtab)
8708 (find_main_psymtab): Remove.
8709 (find_main_filename): Declare.
8710 (fixup_psymbol_section): Remove.
8711 (fixup_section): Declare.
8712 * symtab.c: Include psymtab.h.
8713 (lookup_symtab): Use lookup_symtab method.
8714 (lookup_partial_symtab): Remove.
8715 (find_pc_sect_psymtab_closer): Remove.
8716 (find_pc_sect_psymtab): Remove.
8717 (find_pc_sect_symtab_via_partial): New function.
8718 (find_pc_psymtab, find_pc_sect_psymbol, find_pc_psymbol): Remove.
8719 (fixup_section): No longer static.
8720 (fixup_psymbol_section): Remove.
8721 (lookup_symbol_aux): Use lookup_symbol_aux_quick.
8722 (lookup_global_symbol_from_objfile): Likewise.
8723 (lookup_symbol_aux_psymtabs): Remove.
8724 (lookup_symbol_aux_quick): New function.
8725 (lookup_symbol_global): Use lookup_symbol_aux_quick.
8726 (lookup_partial_symbol): Remove.
8727 (basic_lookup_transparent_type_quick): New function.
8728 (basic_lookup_transparent_type): Use it.
8729 (find_main_psymtab): Remove.
8730 (find_main_filename): New function.
8731 (find_pc_sect_symtab): Use find_pc_sect_symtab method.
8732 (find_line_symtab): Use expand_symtabs_with_filename method.
8733 (output_partial_symbol_filename): New function.
8734 (sources_info): Use map_partial_symbol_filenames.
8735 (struct search_symbols_data): New type.
8736 (search_symbols_file_matches): New function.
8737 (search_symbols_name_matches): Likewise.
8738 (search_symbols): Use expand_symtabs_matching method.
8739 (struct add_name_data): Rename from add_macro_name_data.
8740 (add_macro_name): Update.
8741 (add_partial_symbol_name): New function.
8742 (default_make_symbol_completion_list): Use
8743 map_partial_symbol_names.
8744 (struct add_partial_symbol_name): New type.
8745 (maybe_add_partial_symtab_filename): New function.
8746 (make_source_files_completion_list): Use
8747 map_partial_symbol_filenames.
8748 (expand_line_sal): Use expand_symtabs_with_filename method.
8749 * symmisc.c: Include psymtab.h.
8750 (print_objfile_statistics): Use print_stats method.
8751 (dump_objfile): Use dump method.
8752 (dump_psymtab, maintenance_print_psymbols)
8753 (maintenance_info_psymtabs, maintenance_check_symtabs)
8754 (extend_psymbol_list): Remove.
8755 * symfile.h (struct quick_symbol_functions): New struct.
8756 (struct sym_fns) <qf>: New field.
8757 (sort_pst_symbols): Remove.
8758 (increment_reading_symtab): Declare.
8759 * symfile.c: Include psymtab.h.
8760 (compare_psymbols, sort_pst_symbols): Remove.
8761 (psymtab_to_symtab): Remove.
8762 (increment_reading_symtab): New function.
8763 (symbol_file_add_with_addrs_or_offsets): Use expand_all_symtabs
8764 method.
8765 (set_initial_language): Use find_main_filename.
8766 (allocate_psymtab, discard_psymtab, cashier_psymtab): Remove.
8767 (free_named_symtabs): Remove unused code.
8768 (start_psymtab_common, add_psymbol_to_bcache)
8769 (append_psymbol_to_list, add_psymbol_to_list, init_psymbol_list):
8770 Remove.
8771 * stack.c: Include psymtab.h, symfile.h.
8772 (backtrace_command_1): Use find_pc_sect_symtab_via_partial.
8773 * source.h (psymtab_to_fullname): Don't declare.
8774 * source.c: Include psymtab.h.
8775 (select_source_symtab): Use find_last_source_symtab method.
8776 (forget_cached_source_info): Use forget_cached_source_info
8777 method.
8778 (find_and_open_source): No longer static.
8779 (psymtab_to_fullname): Remove.
8780 * somread.c: Include psymtab.h.
8781 (som_sym_fns): Update.
8782 * psympriv.h: New file.
8783 * psymtab.h: New file.
8784 * psymtab.c: New file.
8785 * objfiles.h: (ALL_OBJFILE_PSYMTABS): Remove.
8786 (ALL_PSYMTABS, ALL_PSPACE_PSYMTABS): Likewise.
8787 * objfiles.c: Include psymtab.h.
8788 (objfile_relocate1): Use relocate method.
8789 (objfile_has_partial_symbols): Use has_symbols method.
8790 * mipsread.c: Include psymtab.h.
8791 (ecoff_sym_fns): Update.
8792 * mi/mi-cmd-file.c: Include psymtab.h.
8793 (print_partial_file_name): New function.
8794 (mi_cmd_file_list_exec_source_files): Use
8795 map_partial_symbol_filenames.
8796 * mdebugread.c: Include psympriv.h.
8797 * machoread.c: Include psympriv.h.
8798 (macho_sym_fns): Update.
8799 * m2-exp.y (yylex): Use lookup_symtab.
8800 * elfread.c: Include psympriv.h.
8801 (elf_sym_fns): Update.
8802 * dwarf2read.c: Include psympriv.h.
8803 * dbxread.c: Include psympriv.h.
8804 (aout_sym_fns): Update.
8805 * cp-support.c: Include psymtab.h.
8806 (read_in_psymtabs): Remove.
8807 (make_symbol_overload_list_qualified): Use
8808 expand_symtabs_for_function method.
8809 * coffread.c: Include psympriv.h.
8810 (coff_sym_fns): Update.
8811 * blockframe.c: Include psymtab.h.
8812 (find_pc_partial_function): Use find_pc_sect_symtab method.
8813 * ada-lang.h (ada_update_initial_language): Update.
8814 * ada-lang.c: Include psymtab.h.
8815 (ada_update_initial_language): Remove 'main_pst' argument.
8816 (ada_lookup_partial_symbol): Remove.
8817 (struct ada_psym_data): New type.
8818 (ada_add_psyms): New function.
8819 (ada_add_non_local_symbols): Use map_ada_symtabs method.
8820 (struct add_partial_datum): New type.
8821 (ada_add_partial_symbol_completions): New function.
8822 (ada_make_symbol_completion_list): Use map_partial_symbol_names.
8823 (ada_exception_support_info_sniffer): Update.
8824 * Makefile.in (SFILES): Add psymtab.c.
8825 (COMMON_OBS): Add psymtab.o.
8826 (HFILES_NO_SRCDIR): Add psymtab.h, psympriv.h.
8827
8828 2010-03-10 Pierre Muller <muller@ics.u-strasbg.fr>
8829
8830 * remote-fileio.c (cygwin_conv_path): Define macro for old cygwin API.
8831
8832 2010-03-10 Sami Wagiaalla <swagiaal@redhat.com>
8833
8834 PR C++/11236:
8835 * cp-namespace.c (cp_add_using): Deleted.
8836 (cp_add_using_directive): Use obstack allocations.
8837 Merged the function cp_add_using into this one.
8838 Added 'struct obstack *' argument.
8839 (cp_scan_for_anonymous_namespaces): Updated.
8840 * cp-support.h: Updated.
8841 * dwarf2read.c (read_import_statement): Updated.
8842 (read_namespace): Updated.
8843
8844 2010-03-10 Pierre Muller <muller@ics.u-strasbg.fr>
8845
8846 * windows-nat.c (cygwin_conv_path): Remove old macro.
8847
8848 2010-03-10 Pedro Alves <pedro@codesourcery.com>
8849
8850 * breakpoint.c (condition_command): Handle watchpoint conditions.
8851 (is_hardware_watchpoint): Add comment.
8852 (is_watchpoint): New.
8853 (update_watchpoint): Don't reparse the watchpoint's condition
8854 unless necessary.
8855 (WP_IGNORE): New.
8856 (watchpoint_check): Use it.
8857 (bpstat_check_watchpoint): Handle it.
8858 (bpstat_check_breakpoint_conditions): Evaluate watchpoint local
8859 conditions in a frame where it makes sense.
8860 (watch_command_1): Store the innermost block of the condition
8861 expression.
8862 (delete_breakpoint): Delete the watchpoint condition expression.
8863 * breakpoint.h (struct bp_location) <cond>: Update comment.
8864 (struct breakpoint): New field `cond_exp_valid_block'.
8865
8866 2010-03-09 Joel Brobecker <brobecker@adacore.com>
8867
8868 Adjust handling of Ada DIEs after dwarf2_physname patch.
8869 * dwarf2read.c (dwarf2_compute_name): Add handling of Ada DIEs.
8870
8871 2010-03-09 Christopher Faylor <me+cygwin@cgf.cx>
8872 Pierre Muller <muller@ics.u-strasbg.fr>
8873
8874 * windows-nat.c (cygwin_conv_path): Redefine to properly convert
8875 from/to posix/win32.
8876 (windows_make_so): Use non-Cygwin 1.7 specific function.
8877 (windows_create_inferior): Make sure that cygallargs points to
8878 original args in non Cygwin 1.7. case.
8879
8880 2010-03-09 Michael Snyder <msnyder@vmware.com>
8881
8882 * i386-tdep.c (i386_record_lea_modrm_addr): Use extract_signed_int
8883 after target_read_memory to get host byte order.
8884 (i386_process_record): Ditto.
8885
8886 2010-03-09 Keith Seitz <keiths@redhat.com>
8887
8888 Based on work from Daniel Jacobowitz <dan@codesourcery.com>
8889 * c-typeprint.c (cp_type_print_method_args): For non-static methods,
8890 print out const or volatile qualifiers, too.
8891 (c_type_print_args): Add parameters show_artificial and language.
8892 Skip artificial parameters when requested.
8893 Use the appropriate language printer.
8894 (c_type_print_varspec): Tell c_type_print_args to skip artificial
8895 parameters and pass language_c.
8896 * dwarf2read.c (die_list): New file global.
8897 (struct partial_die_info): Update comments for name field.
8898 (pdi_needs_namespace): Renamed to ...
8899 (die_needs_namespace): ... this. Rewrite.
8900 (dwarf2_linkage_name): Remove.
8901 (add_partial_symbol): Do not predicate the call to
8902 partial_die_full_name based on pdi_needs_namespace.
8903 Remove call to cp_check_possible_namespace_symbols and associated
8904 outdated comments.
8905 (guess_structure_name): Do not inspect child subprogram DIEs.
8906 (dwarf2_fullname): Update comments.
8907 Use die_needs_namespace to assist in computing the name.
8908 (read_func_scope): Use dwarf2_name to get the DIE's name.
8909 Use dwarf2_physname to get the "linkage name" of the DIE.
8910 (dwarf2_add_member_field): Use dwarf2_physname instead of
8911 dwarf2_linkage_name.
8912 (read_structure_type): For structs and classes, set TYPE_NAME, too.
8913 (determine_class): Remove.
8914 (read_partial_die): Ignore DW_AT_MIPS_linkage_name for all languages
8915 except Ada.
8916 (new_symbol): Unconditionally call dwarf2_name.
8917 Compute the "linkage name" using dwarf2_physname.
8918 Use dwarf2_name instead of dwarf2_full_name for enumerator DIEs.
8919 When determining to scan for anonymous C++ namespaces, ignore
8920 the linkage name.
8921 (dwarf2_physname): New function.
8922 (dwarf2_full_name): Move content to new function and call
8923 that.
8924 (dwarf2_compute_name): "New" function.
8925 (_initialize_dwarf2_read): Initialize die_list.
8926 * gnu-v3-eabi.c (gnu_v3_find_method_in): Remove unused variable
8927 physname.
8928 (gnu_v3_print_method_ptr): Use the physname for virtual methods
8929 without a demangled name.
8930 Print out type information for non-virtual methods.
8931 * linespec.c (decode_line_1): Force ANY string using "::" (or
8932 "." for java) to use decode_compound, and clean up any stray quoting.
8933 If we found a file symtab, re-evaluate whether the remainder is_quoted.
8934 (decode_compound): Stop consuming at an open parenthesis.
8935 Keep template parameters.
8936 Keep any overload information.
8937 Keep keywords like "const".
8938 Remove paren_pointer.
8939 Move is_quoted check from set_flags to here.
8940 Remove #if 0 code from 2000. Ten years is long enough.
8941 (find_method): Before comparing symbol names, canonicalize the string
8942 from the user.
8943 If a specific overload is requested, find it. Otherwise throw an error.
8944 (find_method_overload_end): New function.
8945 (set_flags): Remove.
8946 (decode_compound): Assume that parentheses are matched.
8947 It's a lot easier.
8948 * symtab.c (symbol_find_demangled_name): Add DMGL_VERBOSE flag
8949 to cplus_demangle.
8950 * linespec.c (decode_line_1): Keep important keywords like
8951 "const" and "volatile".
8952 * symtab.h (SYMBOL_CPLUS_DEMANGLED_NAME): Remove.
8953 * typeprint.h (c_type_print_args): Add declaration.
8954 * ui-file.c (do_ui_file_obsavestring): New function.
8955 (ui_file_obsavestring): New function.
8956 * ui-file.h (ui_file_obsavestring): Add declaration.
8957 * valops.c (find_overload_match): Resolve the object to
8958 a non-pointer type.
8959 If the object is a data member, search the object for the member
8960 and return with staticp set.
8961 Use SYMBOL_NATURAL_NAME instead of SYMBOL_CPLUS_DEMANGLED_NAME.
8962 Do not attempt to extract a function name from non-function types.
8963 If the extracted function name and the original name are the same,
8964 we don't have a C++ method.
8965
8966 From Jan Kratochvil <jan.kratochvil@redhat.com>:
8967 * dwarf2read.c (new_symbol <DW_TAG_enumerator>): Call dwarf2_full_name.
8968
8969 * ada-lang.c (ada_lookup_symbol): Remove linkage_name parameters
8970 and arguments from symbol lookups.
8971 * ax-gdb.c (gen_expr): Likewise.
8972 * cp-namespace.c (cp_lookup_symbol_nonlocal, lookup_namespace_scope,
8973 cp_lookup_symbol_namespace, lookup_symbol_file, lookup_nested_type,
8974 lookup_possible_namespace_symbol): Likewise.
8975 * cp-support.c (read_in_psymtabs): Likewise.
8976 * cp-support.h (cp_lookup_symbol_nonlocal): Likewise.
8977 * language.h (la_lookup_symbol_nonlocal): Likewise.
8978 * scm-valprint.c (scm_inferior_print): Likewise.
8979 * solib-darwin.c (darwin_relocate_section_addresses): Likewise.
8980 * solib-svr.c (elf_lookup_lib): Likewise.
8981 * solib.c (show_auto_solib_add): Likewise.
8982 * solist.h (lookup_lib_global, solib_global_lookup): Likewise.
8983 * symmisc.c (maintenance_check_symtabs): Likewise.
8984 * symtab.c (lookup_symbol_in_language, lookup_symbol_aux,
8985 lookup_symbol_aux_local, lookup_symbol_aux_block,
8986 lookup_symbol_from_objfile, lookup_symbol_aux_symtabs,
8987 lookup_symbol_aux_psymtabs,basic_lookup_symbol_nonlocal,
8988 lookup_symbol_static, lookup_symbol_global, symbol_matches_domain,
8989 basic_lookup_transparent_type, find_main_psymtab,
8990 lookup_block_symbol): Likewise.
8991 * symtab.h (basic_lookp_symbol_nonlocal, lookup_symbol_static,
8992 lookup_symbol_global, lookup_symbol_aux_block,
8993 lookup_symbol_partial_symbol, lookup_block_symbol,
8994 lookup_global_symbol, value_maybe_namespace_elt): Likewise.
8995
8996 2010-03-09 Pierre Muller <muller@ics.u-strasbg.fr>
8997
8998 * python/python-internal.h: Include symtab.h.
8999
9000 2010-03-09 Joel Brobecker <brobecker@adacore.com>
9001 Pierre Muller <muller@ics.u-strasbg.fr>
9002
9003 * p-lang.c (is_pascal_string_type): Remove unneeded parentheses.
9004 * p-valprint.c (pascal_val_print): Remove undeed block and fix
9005 indentation.
9006
9007 2010-03-08 Tom Tromey <tromey@redhat.com>
9008
9009 * breakpoint.c (breakpoint_1): Add "QUIT".
9010
9011 2010-03-08 Daniel Jacobowitz <dan@codesourcery.com>
9012 Pedro Alves <pedro@codesourcery.com>
9013
9014 * solib.c (solib_find): Replace extension if
9015 solib_symbols_extension is set in the target gdbarch.
9016 * arm-symbian-tdep.c (arm_symbian_init_abi): Set
9017 solib_symbols_extension to "sym".
9018 * gdbarch.sh (solib_symbols_extension): New variable.
9019 (pstring): New function.
9020 * gdbarch.h, gdbarch.c: Regenerate.
9021
9022 2010-03-08 Tom Tromey <tromey@redhat.com>
9023
9024 PR cli/9591:
9025 * NEWS: Update.
9026 * utils.c: Include main.h.
9027 (fputs_maybe_filtered): Don't paginate if `batch_flag'.
9028 (defaulted_query): Use default answer if `batch_flag'.
9029 * main.h (batch_flag): Declare.
9030 * main.c (batch_flag): New global.
9031 (captured_main): Remove 'batch'. Update.
9032
9033 2010-03-08 Kevin Buettner <kevinb@redhat.com>
9034
9035 From Richard Sandiford, Martin M. Hunt, Corinna Vinschen,
9036 and Kevin Buettner:
9037
9038 * remote-mips.c (rockhopper_ops): New target_ops struct.
9039 (MON_ROCKHOPPER): New mips_monitor_type.
9040 (read_hex_value): New function.
9041 (mips_request): Send 8-byte values with a 'T' packet. Read the
9042 packet argument as a string and use read_hex_value to parse it.
9043 (mips_exit_debug): Wait for response when using MON_ROCKHOPPER.
9044 (rockhopper_open): New function.
9045 (mips_wait): Read the PC, FP and SP fields as strings. Use
9046 read_hex_value to parse them and mips_set_register to commit them.
9047 (mips_set_register): New function.
9048 (mips_fetch_registers): Do not cast register value to "unsigned"
9049 when reading a MON_ROCKHOPPER 't' packet. Use mips_set_register.
9050 (mips_store_registers): Use a 'T' packet to set registers when
9051 using MON_ROCKHOPPER.
9052 (pmon_end_download): Don't run initEther if using MON_ROCKHOPPER
9053 and expect the total to be printed before the entry address.
9054 (_initialize_remote_mips): Initialize and add rockhopper_ops.
9055
9056 2010-03-08 Kevin Buettner <kevinb@redhat.com>
9057
9058 * remote-mips.c (mips_fetch_word): Add new parameter, `valp'.
9059 Change return value to int. Store value fetched in location
9060 addressed by `val'. Use function's return value as success
9061 or failure indicator. Adjust all callers.
9062
9063 2010-03-08 Pierre Muller <muller@ics.u-strasbg.fr>
9064
9065 * p-lang.c (is_pascal_string_type): Check that TYPE arg is non NULL.
9066
9067 2010-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
9068 Hui Zhu <teawater@gmail.com>
9069
9070 * record.c (record_open_1): Check tmp_to_stopped_by_watchpoint and
9071 tmp_to_stopped_data_address.
9072 (record_open): Reset tmp_to_stopped_by_watchpoint and
9073 tmp_to_stopped_data_address.
9074 * target.c (init_dummy_target): Add to_stopped_by_watchpoint and
9075 to_stopped_data_address.
9076
9077 2010-03-08 Hui Zhu <teawater@gmail.com>
9078
9079 * i386-tdep.c (i386_process_record): Initialize regnum.
9080
9081 2010-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
9082
9083 * symfile.c (addr_info_make_relative): New variable sect_name, use it.
9084 Do not warn on ".gnu.liblist" and ".gnu.conflict".
9085
9086 2010-03-08 Joel Brobecker <brobecker@adacore.com>
9087
9088 Memory error when reading wrong core file.
9089 * solib-svr4.c (solib_svr4_r_map): catch and print all exception
9090 errors while reading the inferior memory, and return zero if
9091 an exception was raised.
9092
9093 2010-03-07 Michael Snyder <msnyder@vmware.com>
9094
9095 * record.c (record_restore): Rename tmpu8 to rectype.
9096
9097 * i386-tdep.c (i386_record_lea_modrm_addr): Rename local variables
9098 tmpu8, tmpi16, tmpi32, tmpulongest to addr8, addr16, addr32, addr64.
9099
9100 (i386_record_push): Rename local tmpulongest to addr.
9101
9102 (i386_process_record): Rename local tmpulongest to addr.
9103
9104 Rename local variables tmpu16, tmpu32, tmpu64 to addr16, addr32,
9105 addr64.
9106
9107 Rename local variable tmpu8 to opcode8 and regnum.
9108
9109 2010-03-07 Joel Brobecker <brobecker@adacore.com>
9110
9111 * remote.c (remote_get_ada_task_ptid): New function.
9112 (init_remote_ops): Set remote_ops.to_get_ada_task_ptid.
9113
9114 2010-03-06 Christopher Faylor <me+cygwin@cgf.cx>
9115
9116 * windows-nat.c: Reorganize #ifdef __CYGWIN__ considerations into one
9117 block. Define helper macros to reduce ifdefs in code.
9118 (get_module_name): Use cygwin_buf_t for buffer and __PMAX for buffer
9119 size. Call unadorned GetModuleFileNameEx rather than
9120 GetModuleFileNameEx*.
9121 (windows_make_so): Use __PMAX to denote maximum buffer size and
9122 cygwin_buf_t for buffer type. Use GetSystemDirectory{W,A} as
9123 appropriate.
9124 (get_image_name): Use __PMAX to denote maximum buffer size.
9125 (handle_load_dll): Likewise.
9126 (windows_pid_to_exec_file): Likewise.
9127 (windows_create_inferior): Add many accommodations for older Cygwin and
9128 non-Cygwin.
9129 (bad_GetModuleFileNameExW): Control inclusion of this function based on
9130 __USEWIDE conditional.
9131 (bad_GetModuleFileNameExA): Likewise.
9132 (_initialize_loadable): Just use real function names without the dyn_
9133 part since they are defined earlier.
9134
9135 2010-03-05 Corinna Vinschen <vinschen@redhat.com>
9136 Tom Tromey <tromey@redhat.com>
9137
9138 * utils.c (host_char_to_target): Add 'gdbarch' argument.
9139 (parse_escape): Likewise.
9140 * python/py-utils.c (unicode_to_target_string): Update.
9141 (unicode_to_target_python_string): Update.
9142 (target_string_to_unicode): Update.
9143 * printcmd.c (printf_command): Update.
9144 * p-exp.y (yylex): Update.
9145 * objc-exp.y (yylex): Update.
9146 * mi/mi-parse.c: Include charset.h.
9147 (mi_parse_escape): New function.
9148 (mi_parse_argv): Use it.
9149 * jv-exp.y (yylex): Update.
9150 * i386-cygwin-tdep.c (i386_cygwin_auto_wide_charset): New
9151 function.
9152 (i386_cygwin_init_abi): Call set_gdbarch_auto_wide_charset.
9153 * gdbarch.sh (auto_charset, auto_wide_charset): New.
9154 * gdbarch.c: Rebuild.
9155 * gdbarch.h: Rebuild.
9156 * defs.h (parse_escape): Update.
9157 * cli/cli-setshow.c: Include arch-utils.h.
9158 (do_setshow_command): Update.
9159 * cli/cli-cmds.c (echo_command): Update.
9160 * charset.h (target_charset, target_wide_charset): Update.
9161 * charset.c: Include arch-utils.h.
9162 (target_charset_name): Default to "auto".
9163 (target_wide_charset_name): Likewise.
9164 (show_target_charset_name): Handle "auto".
9165 (show_target_wide_charset_name): Likewise.
9166 (be_le_arch): New global.
9167 (set_be_le_names): Add 'gdbarch' argument.
9168 (validate): Likewise. Don't call set_be_le_names.
9169 (set_charset_sfunc, set_host_charset_sfunc)
9170 (set_target_charset_sfunc, set_target_wide_charset_sfunc):
9171 Update.
9172 (target_charset): Add 'gdbarch' argument.
9173 (target_wide_charset): Likewise. Remove 'byte_order' argument.
9174 (auto_target_charset_name): New global.
9175 (default_auto_charset, default_auto_wide_charset): New functions.
9176 (_initialize_charset): Set auto_target_charset_name. Allow "auto"
9177 for target charsets. Copy result of nl_langinfo. Use GetACP if
9178 USE_WIN32API.
9179 * c-lang.c (charset_for_string_type): Add 'gdbarch' argument,
9180 remove 'byte_order' argument. Update.
9181 (classify_type): Likewise.
9182 (c_emit_char): Update.
9183 (c_printchar): Update.
9184 (c_printstr): Update.
9185 (c_get_string): Update.
9186 (evaluate_subexp_c): Update.
9187 * arch-utils.h (default_auto_charset, default_auto_wide_charset):
9188 Declare.
9189 * python/python.c (gdbpy_target_charset): New function.
9190 (gdbpy_target_wide_charset): Likewise.
9191 (GdbMethods): Update.
9192 * NEWS: Update.
9193
9194 2010-03-05 Ulrich Weigand <uweigand@de.ibm.com>
9195
9196 * symfile.c (build_section_addr_info_from_objfile): Do not mask
9197 off high address bits.
9198
9199 2010-03-05 Ulrich Weigand <uweigand@de.ibm.com>
9200
9201 * python/py-lazy-string.c (gdbpy_extract_lazy_string): Extract
9202 address as UnsignedLongLong, not LongLong.
9203
9204 2010-03-05 Kevin Buettner <kevinb@redhat.com>
9205 Pedro Alves <pedro@codesourcery.com>
9206
9207 * remote-mips.c (gdbthread.h): Include.
9208 (remote_mips_ptid): Declare.
9209 (mips_error): Only mourn the inferior when inferior_ptid is non-null.
9210 (common_open): Set inferior_ptid, add it as an inferior, and
9211 as a thread too. Delete FIXME comment regarding start_remote().
9212 (mips_close): Invoke generic_mourn_inferior().
9213 (mips_kill): Make sure that target_mourn_inferior is invoked.
9214 (mips_mourn_inferior): Don't invoke generic_mourn_inferior, as
9215 it's now invoked from mips_close().
9216 (mips_load): Don't null out inferior_ptid. Don't call
9217 clear_symtab_users().
9218 (mips_thread_alive, mips_pid_to_str): New functions.
9219 (_initialize_remote_mips): Initialize remote_mips_ptid. Initialize
9220 to_thread_alive and to_pid_to_str operations.
9221
9222 2010-03-04 Tom Tromey <tromey@redhat.com>
9223
9224 * dwarf2read.c (skip_one_die) <DW_FORM_ref_addr>: Use offset size
9225 in DWARF 3 and later.
9226 (read_attribute_value) <DW_FORM_ref_addr>: Likewise.
9227
9228 2010-03-04 Keith Seitz <keiths@redhat.com>
9229
9230 * linespec.c (decode_line_1): Update comments for is_quote_enclosed.
9231 If the filename portion of the linespec was quoted, recheck the
9232 remainder for additional quoting.
9233 (locate_first_half): Skip over completer chars, too.
9234
9235 2010-03-04 Tom Tromey <tromey@redhat.com>
9236
9237 * printcmd.c (printf_command): Pass dummy argument to
9238 printf_filtered.
9239
9240 2010-03-04 Doug Evans <dje@google.com>
9241
9242 * arm-tdep.c (arm_make_stub_cache): Delete unused locals reg,
9243 unwound_fp.
9244
9245 * arm-tdep.c (arm_stub_unwind_sniffer): Add comment.
9246
9247 2010-03-04 Pedro Alves <pedro@codesourcery.com>
9248
9249 * breakpoint.c (update_watchpoint): Create a sentinel location if
9250 the software watchpoint isn't watching any memory.
9251 (breakpoint_address_bits): Skip dummy software watchpoint locations.
9252
9253 2010-03-04 Pedro Alves <pedro@codesourcery.com>
9254
9255 * utils.c (fputs_maybe_filtered): Check if there's already a top
9256 level interpreter before dereferencing it. If there isn't one,
9257 don't paginate either.
9258
9259 2010-03-04 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
9260
9261 * arm-tdep.c (arm_pc_is_thumb): Add heuristic that tries to get
9262 the state right when single stepping.
9263 (arm_get_next_pc_raw, thumb_get_next_pc_raw): New functions.
9264 Get the next PC along with the instruction state.
9265 (thumb_get_next_pc): Remove.
9266 (arm_get_next_pc): Modified to use arm_get_next_pc_raw.
9267
9268 2010-03-04 Hui Zhu <teawater@gmail.com>
9269
9270 * i386-tdep.c (i386_process_record): Change "addr" to "tmpu64".
9271
9272 2010-03-03 Pedro Alves <pedro@codesourcery.com>
9273
9274 * utils.c (fputs_maybe_filtered): Always disable pagination if the
9275 top level interpreter is MI.
9276
9277 2010-03-03 Stan Shebs <stan@codesourcery.com>
9278
9279 * remote.c (remote_download_tracepoint): Iterate over locations.
9280 * tracepoint.c (validate_actionline): Ditto.
9281 (encode_actions): Add location argument.
9282 (trace_dump_command): Check all locations to see if stepping
9283 frame.
9284
9285 2010-03-03 H.J. Lu <hongjiu.lu@intel.com>
9286 Eli Zaretskii <eliz@gnu.org>
9287
9288 * NEWS: Add X86 general purpose registers section.
9289
9290 2010-03-03 Tom Tromey <tromey@redhat.com>
9291
9292 PR mi/11098:
9293 * varobj.c (install_new_value): Handle case where new print_value
9294 is NULL.
9295
9296 2010-03-03 Dainis Jonitis <jonitis@gmail.com>
9297
9298 PR gdb/11345:
9299 * printcmd.c (printf_command): Print end of format string using
9300 printf_filtered.
9301
9302 2010-03-02 Tom Tromey <tromey@redhat.com>
9303
9304 * mi/mi-cmd-break.c (mi_read_next_line): Add missing 'void'.
9305 * defs.h (read_command_lines_1): Add missing 'void'.
9306 * cli/cli-script.c (recurse_read_control_structure): Add missing
9307 'void'.
9308 (read_next_line): Likewise.
9309 (read_command_lines_1): Likewise.
9310
9311 2010-03-02 Ulrich Weigand <uweigand@de.ibm.com>
9312
9313 * spu-tdep.c (spu_analyze_prologue): Track instruction to
9314 store backchain as part of prologue.
9315
9316 2010-03-02 Daniel Jacobowitz <dan@codesourcery.com>
9317
9318 * progspace.c (update_address_spaces): Update inferior address spaces
9319 also.
9320
9321 2010-03-02 Doug Evans <dje@google.com>
9322
9323 * dwarf2read.c (add_partial_subprogram): Add missing baseaddr to
9324 lowpc,highpc args to addrmap_set_empty.
9325
9326 2010-03-02 H.J. Lu <hongjiu.lu@intel.com>
9327
9328 * amd64-tdep.c (amd64_byte_names): New.
9329 (amd64_word_names): Likewise.
9330 (amd64_dword_names): Likewise.
9331 (amd64_pseudo_register_name): Likewise.
9332 (amd64_pseudo_register_read): Likewise.
9333 (amd64_pseudo_register_write): Likewise.
9334 (amd64_init_abi): Set num_byte_regs, num_word_regs, num_dword_regs
9335 and num_mmx_regs. Call set_gdbarch_pseudo_register_read,
9336 set_gdbarch_pseudo_register_write and
9337 set_tdesc_pseudo_register_name. Don't call
9338 set_gdbarch_num_pseudo_regs. Don't set mm0_regnum.
9339
9340 * i386-tdep.c (i386_num_mmx_regs): Removed.
9341 (i386_num_pseudo_regs): Likewise.
9342 (i386_byte_names): New.
9343 (i386_word_names): Likewise.
9344 (i386_byte_regnum_p): Likewise.
9345 (i386_word_regnum_p): Likewise.
9346 (i386_mmx_regnum_p): Updated.
9347 (i386_pseudo_register_name): Make it global. Handle byte and
9348 word pseudo-registers.
9349 (i386_pseudo_register_read): Likewise.
9350 (i386_pseudo_register_write): Likewise.
9351 (i386_pseudo_register_type): Handle byte, word and dword
9352 pseudo-registers
9353 (i386_register_reggroup_p): Don't include pseudo
9354 registers, except for MXX, in any register groups. Don't
9355 include pseudo byte, word, dword registers in general_reggroup.
9356 (i386_gdbarch_init): Set num_byte_regs, num_word_regs,
9357 num_dword_regs, al_regnum, ax_regnum and eax_regnum. Put MMX
9358 pseudo-registers after word pseudo-registers. Call
9359 set_gdbarch_num_pseudo_regs after calling gdbarch_init_osabi.
9360
9361 * i386-tdep.h (gdbarch_tdep): Add num_mmx_regs, num_byte_regs,
9362 al_regnum, num_word_regs, ax_regnum, num_dword_regs and
9363 eax_regnum.
9364 (i386_byte_regnum_p): New.
9365 (i386_word_regnum_p): Likewise.
9366 (i386_dword_regnum_p): Likewise.
9367 (i386_pseudo_register_name): Likewise.
9368 (i386_pseudo_register_read): Likewise.
9369 (i386_pseudo_register_write): Likewise.
9370
9371 2010-03-01 H.J. Lu <hongjiu.lu@intel.com>
9372
9373 * target-descriptions.c (tdesc_type): Remove
9374 TDESC_TYPE_I386_EFLAGS and TDESC_TYPE_I386_MXCSR.
9375 (tdesc_predefined_types): Likewise.
9376 (tdesc_gdb_type): Likewise. Pass NULL to append_flags_type_flag
9377 if flag name is empty.
9378 (maint_print_c_tdesc_cmd): Handle TDESC_TYPE_FLAGS.
9379
9380 * features/i386/32bit-core.xml: Define i386_eflags.
9381 * features/i386/64bit-core.xml: Likewise.
9382
9383 * features/i386/32bit-sse.xml: Define i386_mxcsr.
9384 * features/i386/64bit-sse.xml: Likewise.
9385
9386 * features/i386/amd64-linux.c: Regenerated.
9387 * features/i386/amd64.c: Likewise.
9388 * features/i386/i386-linux.c: Likewise.
9389 * features/i386/i386.c: Likewise.
9390
9391 2010-03-01 Daniel Jacobowitz <dan@codesourcery.com>
9392
9393 * gdbtypes.c (append_composite_type_field_raw): New.
9394 (append_composite_type_field_aligned): Use the new function.
9395 * gdbtypes.h (append_composite_type_field_raw): Declare.
9396 * target-descriptions.c (struct tdesc_type_field): Add start and end.
9397 (struct tdesc_type_flag): New type.
9398 (struct tdesc_type): Add TDESC_TYPE_STRUCT and TDESC_TYPE_FLAGS to
9399 kind. Add size to u.u. Add u.f for flags.
9400 (tdesc_gdb_type): Handle TDESC_TYPE_STRUCT and TDESC_TYPE_FLAGS.
9401 (tdesc_free_type): Likewise.
9402 (tdesc_create_struct, tdesc_set_struct_size, tdesc_create_flags): New.
9403 (tdesc_add_field): Handle TDESC_TYPE_STRUCT.
9404 (tdesc_add_bitfield, tdesc_add_flag): New.
9405 * target-descriptions.h (tdesc_create_struct, tdesc_set_struct_size)
9406 (tdesc_create_flags, tdesc_add_bitfield, tdesc_add_flag): Declare.
9407 * xml-tdesc.c (struct tdesc_parsing_data): Rename current_union to
9408 current_type. Add current_type_size and current_type_is_flags.
9409 (tdesc_start_union): Clear the new fields.
9410 (tdesc_start_struct, tdesc_start_flags): New.
9411 (tdesc_start_field): Handle struct fields, including bitfields.
9412 (field_attributes): Make type optional. Add start and end.
9413 (union_children): Rename to struct_union_children.
9414 (union_attributes): Rename to struct_union_attributes. Add optional
9415 size.
9416 (flags_attributes): New.
9417 (feature_children): Add struct and flags.
9418 * features/gdb-target.dtd: Add flags and struct to features.
9419 Make field type optional. Add field start and end.
9420
9421 2010-03-01 H.J. Lu <hongjiu.lu@intel.com>
9422
9423 * amd64-linux-nat.c (AMD64_LINUX_USER64_CS): New.
9424 (amd64_linux_read_description): Likewise.
9425 (_initialize_amd64_linux_nat): Set to_read_description to
9426 amd64_linux_read_description.
9427
9428 * amd64-linux-tdep.c: Include "features/i386/amd64-linux.c".
9429 (amd64_linux_register_name): Removed.
9430 (amd64_linux_register_type): Likewise.
9431 (amd64_linux_core_read_description): New.
9432 (amd64_linux_init_abi): Set target description to
9433 tdesc_amd64_linux if needed. Support orig_rax in target
9434 description. Don't call set_gdbarch_register_name nor
9435 set_gdbarch_register_type. Call
9436 set_gdbarch_core_read_description.
9437 (_initialize_amd64_linux_tdep): Call
9438 initialize_tdesc_amd64_linux.
9439
9440 * amd64-linux-tdep.h (tdesc_amd64_linux): New.
9441
9442 * amd64-tdep.c: Include "features/i386/amd64.c".
9443 (amd64_register_names): Removed.
9444 (amd64_register_name): Likewise.
9445 (amd64_register_type): Likewise.
9446 (amd64_init_abi): Set num_core_regs and register_names. Set
9447 target description to tdesc_amd64 if needed. Don't call
9448 set_gdbarch_register_name nor set_gdbarch_register_type.
9449 (_initialize_amd64_tdep): New.
9450
9451 * i386-linux-nat.c (i386_linux_read_description): New.
9452 (_initialize_i386_linux_nat): Set to_read_description to
9453 i386_linux_read_description.
9454
9455 * i386-linux-tdep.c: Include "features/i386/i386-linux.c".
9456 (i386_linux_register_name): Removed.
9457 (i386_linux_core_read_description): New.
9458 (i386_linux_read_description): Likewise.
9459 (i386_linux_init_abi): Don't call set_gdbarch_register_name.
9460 Set target description to tdesc_i386_linux if needed. Support
9461 orig_eax. Set register_reggroup_p. Call
9462 set_gdbarch_core_read_description.
9463 (_initialize_i386_linux_tdep): Call initialize_tdesc_i386_linux.
9464
9465 * i386-linux-tdep.h (tdesc_i386_linux): New.
9466
9467 * i386-nto-tdep.c (i386nto_regset_id): Replace I386_NUM_FREGS
9468 with I387_NUM_REGS.
9469
9470 * i386-tdep.c: Include "features/i386/i386.c".
9471 (i386_register_names): Make it const.
9472 (i386_mmx_names): Likewise.
9473 (i386_num_register_names): Removed.
9474 (i386_register_name): Likewise.
9475 (i386_eflags_type): Likewise.
9476 (i386_mxcsr_type): Likewise.
9477 (i386_sse_type): Likewise.
9478 (i386_register_type): Likewise.
9479 (i387_ext_type): Call tdesc_find_type instead of arch_float_type.
9480 (i386_pseudo_register_name): New.
9481 (i386_pseudo_register_type): Likewise.
9482 (i386_mmx_type): Make it static.
9483 (i386_gdbarch_init): Check arch. Replace I386_NUM_FREGS with
9484 I387_NUM_REGS. Set num_core_regs and register_names. Don't
9485 call set_gdbarch_register_name nor set_gdbarch_register_type.
9486 Set register_reggroup_p. Set target description to tdesc_i386
9487 if needed. Call set_tdesc_pseudo_register_type,
9488 set_tdesc_pseudo_register_name and tdesc_use_registers.
9489 (_initialize_i386_tdep): Call initialize_tdesc_i386.
9490 initialize_tdesc_x86_64.
9491
9492 * i386-tdep.h (gdbarch_tdep): Remove i386_eflags_type,
9493 i386_mxcsr_type and i386_sse_type. Add num_core_regs,
9494 register_names, tdesc and register_reggroup_p.
9495 (I386_NUM_FREGS): Removed.
9496 (i386_eflags_type): Likewise.
9497 (i386_mxcsr_type): Likewise.
9498 (i386_mmx_type): Likewise.
9499 (i386_sse_type): Likewise.
9500 (i386_register_name): Likewise.
9501 (i386_regnum): Add I386_MXCSR_REGNUM.
9502 (I386_SSE_NUM_REGS): Defined with I386_MXCSR_REGNUM.
9503
9504 * i387-tdep.h (I387_NUM_REGS): New.
9505
9506 * regformats/i386/i386-linux.dat: Generated.
9507 * regformats/i386/i386.dat: Likewise.
9508 * regformats/i386/amd64-linux.dat: Likewise.
9509 * regformats/i386/amd64.dat: Likewise.
9510
9511 * regformats/reg-i386-linux.dat: Removed.
9512 * regformats/reg-i386.dat: Likewise.
9513 * regformats/reg-x86-64-linux.dat: Likewise.
9514 * regformats/reg-x86-64.dat: Likewise.
9515
9516 2010-03-01 Corinna Vinschen <vinschen@redhat.com>
9517
9518 * remote-fileio.c (remote_fileio_func_rename): Use Cygwin 1.7
9519 cygwin_conv_path API rather than the deprecated
9520 cygwin_conv_to_full_posix_path.
9521 * windows-nat.c:
9522 (GetModuleFileNameExA): Undefine for Cygwin.
9523 (GetModuleFileNameExW): Define for Cygwin.
9524 (get_module_name): Change size of pathbuf to PATH_MAX for Cygwin.
9525 Call GetModuleFileNameExW and convert path to POSIX using
9526 cygwin_conv_path.
9527 (windows_make_so): Always define p. Drop unused variable m.
9528 Don't use Win32 functions to check file existance, rather use
9529 access on Cygwin. Fetch system directory using GetSystemDirectoryW.
9530 Use canonicalize_file_name to get full path.
9531 (get_image_name): Use wcstombs, rather than WideCharToMultiByte
9532 to convert Unicode pathname to multibyte on Cygwin. Otherwise,
9533 use correct target buffer size in call to WideCharToMultiByte.
9534 (handle_load_dll): Change size of dll_buf to PATH_MAX for Cygwin.
9535 (windows_pid_to_exec_file): Change size of path to PATH_MAX for Cygwin.
9536 (windows_create_inferior): Convert all paths and arguments to wchar_t
9537 and use CreateProcessW on Cygwin.
9538 (_initialize_windows_nat): Disable DOS-style path warning on Cygwin.
9539 (bad_GetModuleFileNameExA): Undefine for Cygwin.
9540 (bad_GetModuleFileNameExW): Define for Cygwin.
9541 (_initialize_loadable): Load GetModuleFileNameExW into
9542 dyn_GetModuleFileNameExW on Cygwin. Don't load ANSI function on Cygwin.
9543
9544 2010-02-28 Phil Muldoon <pmuldoon@redhat.com>
9545
9546 PR python/11036
9547 * python/py-frame.c (frapy_read_var): Add block argument and logic
9548 to cope with user provided blocks.
9549
9550 2010-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
9551
9552 * infcall.c (call_function_by_hand): Remove gdb_assert on sp and old_sp.
9553 New comment.
9554
9555 2010-02-28 Corinna Vinschen <vinschen@redhat.com>
9556
9557 * Makefile.in (SUBDIR_MI_OBS): Move mi-common.o from here...
9558 (COMMON_OBS): ... to here since it's used unconditionally.
9559 (SUBDIR_MI_SRCS): Move mi/mi-common.c from here...
9560 (SFILES): To here.
9561
9562 2010-02-26 David Daney <ddaney@caviumnetworks.com>
9563
9564 * mips-linux-tdep.c: Update struct sigframe comments.
9565 (SIGFRAME_CODE_OFFSET): Delete macro.
9566 (mips_linux_o32_sigframe_init): Calculate sigcontext_base using
9567 this_frame's sp.
9568 (mips_linux_n32n64_sigframe_init): Same.
9569
9570 2010-02-26 Kevin Buettner <kevinb@redhat.com>
9571
9572 * remote-mips.c (mips_load): Don't use pseudo-register when
9573 invalidating regcache.
9574
9575 2010-02-26 Daniel Jacobowitz <dan@codesourcery.com>
9576
9577 * arm-tdep.c (thumb_get_next_pc): Correct conditional branch opcode.
9578
9579 2010-02-26 Pedro Alves <pedro@codesourcery.com>
9580
9581 * NEWS: Add "New targets" section, and mention ARM Symbian
9582 support.
9583
9584 2010-02-26 Ulrich Weigand <uweigand@de.ibm.com>
9585
9586 * dwarf2loc.c (struct piece_closure): Remove ARCH member,
9587 add ADDR_SIZE member.
9588 (allocate_piece_closure): Update.
9589 (copy_pieced_value_closure): Likewise.
9590 (dwarf2_evaluate_loc_desc): Likewise.
9591 (read_pieced_value): Use DWARF address size instead of
9592 GDB's gdbarch_addr_bit as size of values on the DWARF stack.
9593
9594 2010-02-26 Phil Muldoon <pmuldoon@redhat.com>
9595 Tom Tromey <tromey@redhat.com>
9596
9597 * python/py-type.c (typy_lookup_typename): Add in block argument.
9598 If provided restrict lookup to specified blocks.
9599 (gdbpy_lookup_type): Likewise.
9600 (typy_lookup_type): Likewise.
9601
9602 2010-02-25 Daniel Jacobowitz <dan@codesourcery.com>
9603
9604 Symbian config
9605
9606 gdb/
9607 * arm-symbian-tdep.c: New.
9608 * configure.tgt (arm*-*-symbianelf*): New target.
9609 (*-*-symbianelf*): New OS.
9610 * osabi.c (gdb_osabi_names): Add Symbian.
9611 * defs.h (gdb_osabi): Add GDB_OSABI_SYMBIAN.
9612 * Makefile.in (ALL_TARGET_OBJS): Add arm-symbian-tdep.o.
9613 (ALLDEPFILES): Add arm-symbian-tdep.c.
9614
9615 2010-02-25 Daniel Jacobowitz <dan@codesourcery.com>
9616
9617 * symfile.c (find_lowest_section): Include SEC_ALLOC sections.
9618
9619 2010-02-24 Pedro Alves <pedro@codesourcery.com>
9620
9621 * mi/mi-main.c (mi_cmd_execute): Fix typo.
9622
9623 2010-02-24 Phil Muldoon <pmuldoon@redhat.com>
9624 Tom Tromey <tromey@redhat.com>
9625 Thiago Jung Bauermann <bauerman@br.ibm.com>
9626
9627 * python/python.c (_initialize_python): Call
9628 gdbpy_initialize_symtabs, gdbpy_initialize_symbols and
9629 gdbpy_initialize_blocks.
9630 * python/python-internal.h: Declare struct symbol, block and
9631 symtab_and_line. Declare block_object_type and
9632 symbol_object_type
9633 (gdbpy_lookup_symbol gdbpy_block_for_pc)
9634 (symtab_and_line_to_sal_object, symtab_to_symtab_object)
9635 (symbol_to_symbol_object, block_to_block_object)
9636 (gdbpy_initialize_symtabs,gdbpy_initialize_symbols)
9637 (gdbpy_initialize_blocks ): Declare.
9638 * python/py-frame.c (frapy_block, frapy_function, frapy_find_sal)
9639 (frapy_select): Add methods.
9640 (frapy_read_var): Add symbol branch.
9641 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-symbol, py-symtab,
9642 py-block.
9643 (SUBDIR_PYTHON_SRCS): Likewise.
9644 (py-symbol.o): New rule.
9645 (py-symtab.o): Likewise.
9646 (py-block.o): Likewise.
9647 * python/py-symbol.c: New file.
9648 * python/py-symtab.c: Likewise.
9649 * python/py-block.c: Likewise.
9650
9651 2010-02-24 Pedro Alves <pedro@codesourcery.com>
9652
9653 PR gdb/11321
9654
9655 * inferior.h (prepare_for_detach): Declare.
9656 (struct inferior) <detaching>: New field.
9657 * infrun.c (prepare_for_detach): New.
9658 (handle_inferior_event) <random signal>: Don't stop if detaching.
9659 * target.c (target_detach): Call prepare_for_detach.
9660
9661 2010-02-24 Pedro Alves <pedro@codesourcery.com>
9662
9663 Per-process displaced stepping queue.
9664
9665 * infrun.c (displaced_step_ptid, displaced_step_request_queue)
9666 (displaced_step_gdbarch, displaced_step_closure,
9667 (displaced_step_original, displaced_step_copy): Move globals to
9668 this...
9669 (struct displaced_step_inferior_state): ... new structure.
9670 (displaced_step_inferior_states): New global.
9671 (get_displaced_stepping_state, add_displaced_stepping_state)
9672 (remove_displaced_stepping_state, infrun_inferior_exit): New
9673 functions.
9674 (displaced_step_clear): Add displaced_step_inferior_state
9675 parameter, and adjust to handle it.
9676 (displaced_step_clear_cleanup): Parameter is now a
9677 displaced_step_inferior_state. Adjust.
9678 (displaced_step_prepare): Adjust.
9679 (displaced_step_fixup, displaced_step_fixup)
9680 (infrun_thread_ptid_changed, resume): Adjust.
9681 (init_wait_for_inferior): Don't call displaced_step_clear.
9682 (infrun_thread_stop_requested): Rewrite.
9683 (_initialize_infrun): Install infrun_inferior_exit as
9684 inferior_exit observer.
9685
9686 2010-02-24 Pedro Alves <pedro@codesourcery.com>
9687
9688 * inferior.h (ptid_match): Declare.
9689 * infrun.c (ptid_match): New.
9690 * remote.c (queued_stop_reply): Rewrite and use ptid_match.
9691 (handle_notification): Add debug output.
9692 * linux-nat.c (ptid_match): Delete.
9693
9694 2010-02-24 David S. Miller <davem@davemloft.net>
9695
9696 * gdb_ptrace.h (PT_SYSCALL): If PTRACE_SYSCALL is available, use it.
9697 * syscalls/sparc-linux.xml: New.
9698 * syscalls/sparc64-linux.xml: New.
9699 * Makefile.in (XML_SYSCALL_FILES): Add new syscall XML files.
9700 * sparc-linux-tdep.c (XML_SYSCALL_FILENAME_SPARC32): Define.
9701 (sparc32_linux_get_syscall_number): New function.
9702 (sparc32_linux_init_abi): Set syscall XML file name and hook up
9703 syscall number fetcher.
9704 * sparc64-linux-tdep.c (XML_SYSCALL_FILENAME_SPARC64): Define.
9705 (sparc64_linux_get_syscall_number): New function.
9706 (sparc64_linux_init_abi): Set syscall XML file name and hook up
9707 syscall number fetcher.
9708
9709 2010-02-24 Vladimir Prus <vladimir@codesourcery.com>
9710
9711 Multiexec MI
9712
9713 * breakpoint.c (clear_syscall_counts): Take struct inferior*.
9714 * inferior.c (add_inferior_silent): Notify inferior_added
9715 observer.
9716 (delete_inferior_1): Notify inferior_removed observer.
9717 (exit_inferior_1): Pass inferior, not pid, to observer.
9718 (inferior_appeared): Likewise.
9719 (add_inferior_with_spaces): New.
9720 (add_inferior_command): Use the above.
9721 * inferior.h (delete_inferior_1, add_inferior_with_spaces):
9722 Declare.
9723
9724 * inflow.c (inflow_inferior_exit): Likewise.
9725 * jit.c (jit_inferior_exit_hook): Likewise.
9726
9727 * mi/mi-cmds.c (mi_cmds): Register add-inferior and
9728 remove-inferior.
9729 * mi/mi-cmds.h (mi_cmd_add_inferior, mi_cmd_remove_inferior): New.
9730 * mi/mi-interp.c (mi_inferior_added, mi_inferior_removed): New.
9731 (report_initial_inferior): New.
9732 (mi_inferior_removed): Register the above. Make sure
9733 inferior_added observer is called on the first inferior.
9734 (mi_new_thread, mi_thread_exit): Thread group is now identified by
9735 inferior number, not pid.
9736 (mi_solib_loaded, mi_solib_unloaded): Report which inferiors are
9737 affected.
9738 * mi/mi-main.c (current_context): New.
9739 (proceed_thread_callback): Use typed closure.
9740 Proceed everything if pid is 0. Most implementation split into
9741 (proceed_thread): ... this.
9742 (run_one_inferior): New.
9743 (mi_cmd_exec_continue, mi_cmd_exec_interrupt, mi_cmd_exec_run):
9744 Adjust for multiexec behaviour.
9745 (mi_cmd_add_inferior, mi_cmd_remove_inferior): New.
9746 (mi_cmd_execute): Handle the 'thread-group' option here.
9747 Do some extra checks.
9748 * mi-parse.c (mi_parse): Handle the --all and --thread-group
9749 options.
9750 * mi-parse.h (struct mi_parse): New fields all and thread_group.
9751
9752 2010-02-24 Vladimir Prus <vladimir@codesourcery.com>
9753
9754 Make -exec-run a proper MI commands.
9755
9756 * mi/mi-cmds.h (mi_cmd_exec_run): Declare.
9757 * mi/mi-cmds.c (mi_cmds): Adjust.
9758 * mi/mi-main.c (mi_cmd_exec_run): New.
9759
9760 2010-02-24 Pedro Alves <pedro@codesourcery.com>
9761 Stan Shebs <stan@codesourcery.com>
9762
9763 * tracepoint.h (set_traceframe_number)
9764 (cleanup_restore_current_traceframe): Declare.
9765 * tracepoint.c (set_traceframe_number): New.
9766 (struct current_traceframe_cleanup): New.
9767 (do_restore_current_traceframe_cleanup)
9768 (restore_current_traceframe_cleanup_dtor)
9769 (make_cleanup_restore_current_traceframe): New.
9770 * infrun.c: Include tracepoint.h.
9771 (fetch_inferior_event): Switch out and in of tfind mode.
9772
9773 2010-02-24 Pedro Alves <pedro@codesourcery.com>
9774
9775 * breakpoint.c (breakpoint_init_inferior): Also delete
9776 bp_shlib_event breakpoints.
9777 * solib-frv.c (enable_break): Remove call to
9778 remove_solib_event_breakpoints.
9779 * solib-svr4.c (enable_break): Ditto.
9780 * solib-darwin.c (darwin_solib_create_inferior_hook): Ditto.
9781 * solib-pa64.c (pa64_solib_create_inferior_hook): Ditto.
9782 * solib-som.c (som_solib_create_inferior_hook): Ditto.
9783 * solib-spu.c (spu_enable_break): Ditto.
9784
9785 2010-02-23 Harald Koenig <H.Koenig@science-computing.de>
9786
9787 * c-exp.y (token_and_value): s/union YYSTYPE/YYSTYPE.
9788
9789 2010-02-23 Harald Koenig <H.Koenig@science-computing.de>
9790
9791 * varobj.c (varobj_update): Avoid non-constants in initializers.
9792
9793 2010-02-23 Tom Tromey <tromey@redhat.com>
9794
9795 * dwarf2loc.c (read_pieced_value) <DWARF_VALUE_STACK>: Correctly
9796 handle big-endian values.
9797 (dwarf2_evaluate_loc_desc) <DWARF_VALUE_STACK>: Likewise.
9798
9799 2010-02-22 Pedro Alves <pedro@codesourcery.com>
9800
9801 PR9605
9802
9803 gdb/
9804 * breakpoint.c (insert_bp_location): If inserting the read
9805 watchpoint failed, fallback to an access watchpoint.
9806 (bpstat_check_watchpoint): Stop for read watchpoint triggers even
9807 if the value changed, if not watching the same memory for writes.
9808 (watchpoint_locations_match): Add comment.
9809 (update_global_location_list): Copy the location's watchpoint type.
9810 * i386-nat.c (i386_length_and_rw_bits): It's an internal error to
9811 handle read watchpoints here.
9812 (i386_insert_watchpoint): Read watchpoints aren't supported.
9813 * remote.c (remote_insert_watchpoint): Return 1 for unsupported
9814 packets.
9815 * target.h (target_insert_watchpoint): Update description.
9816
9817 2010-02-19 Tom Tromey <tromey@redhat.com>
9818
9819 * p-typeprint.c (pascal_type_print_varspec_prefix): Update.
9820 * m2-typeprint.c (m2_print_type): Update.
9821 * gdbtypes.c (recursive_dump_type): Update.
9822 (copy_type_recursive): Update.
9823 * c-typeprint.c (c_type_print_varspec_prefix): Update.
9824 (c_type_print_base): Update.
9825 * gdbtypes.h (TYPE_CODE_TEMPLATE, TYPE_CODE_TEMPLATE_ARG):
9826 Remove.
9827 (struct cplus_struct_type) <ntemplate_args>: Remove.
9828 <struct template_arg>: Remove.
9829 <is_dynamic>: Move earlier.
9830 (TYPE_TEMPLATE_ARGS): Remove.
9831 (TYPE_NTEMPLATE_ARGS): Remove.
9832 (TYPE_TEMPLATE_ARG): Remove.
9833
9834 2010-02-19 Tom Tromey <tromey@redhat.com>
9835
9836 PR c++/8693, PR c++/9496:
9837 * cp-namespace.c (cp_lookup_nested_type): Handle TYPE_CODE_UNION.
9838 * c-exp.y (lex_one_token): Rename from yylex. Don't call
9839 write_dollar_variable. Don't try to classify NAME tokens.
9840 (token_and_value): New type.
9841 (token_fifo, popping, name_obstack): New globals.
9842 (classify_name): New function.
9843 (classify_inner_name): Likewise.
9844 (yylex): Likewise.
9845 (VARIABLE): Now has type sval.
9846 (exp : VARIABLE): Call write_dollar_variable.
9847 (qualified_name): Use TYPENAME, not typebase. Add production for
9848 multiple "::" instances.
9849 (variable): Use name_not_typename.
9850 (qualified_type): Remove.
9851 (typebase): Update.
9852
9853 2010-02-19 Jan Kratochvil <jan.kratochvil@redhat.com>
9854
9855 * symfile.c (addr_info_make_relative): Extend comment. Move SECT to
9856 a more inner block. Initialize ADDR by LOWER_OFFSET only if it was
9857 found by bfd_get_section_by_name.
9858 * symfile.h (struct section_addr_info) <sectindex>: New comment.
9859
9860 2010-02-19 Joel Brobecker <brobecker@adacore.com>
9861
9862 * NEWS: Add new "[...] since 7.1" section. Rename the "[...] since
9863 7.0 section" into "Changes in 7.1".
9864
9865 2010-02-19 Joel Brobecker <brobecker@adacore.com>
9866
9867 GDB 7.1 branch created (branch timestamp: 2010-02-18 20:00 UTC)
9868 * version.in: Bump version to 7.1.50.20100219-cvs.
9869
9870 2010-02-18 Harald Koenig <H.Koenig@science-computing.de>
9871
9872 * mi/mi-main.c (mi_cmd_exec_jump): Drop unneeded `return'.
9873 * symfile.c (symfile_map_offsets_to_segments): Fix assertion.
9874
9875 2010-02-17 Tom Tromey <tromey@redhat.com>
9876
9877 * NEWS: Add Python API Improvements section.
9878
9879 2010-02-18 Daniel Jacobowitz <dan@codesourcery.com>
9880
9881 * NEWS: Correct typo.
9882
9883 2010-02-17 Tom Tromey <tromey@redhat.com>
9884
9885 * objfiles.c (gdb_bfd_ref): Handle abfd==NULL.
9886
9887 2010-02-17 Jan Kratochvil <jan.kratochvil@redhat.com>
9888
9889 * symfile.c (build_section_addr_info_from_objfile): Include sections
9890 only if they are SEC_ALLOC or SEC_LOAD.
9891
9892 2010-02-17 H.J. Lu <hongjiu.lu@intel.com>
9893
9894 PR shlibs/11293
9895 * solib-svr4.c (enable_break): Check size of CORE_ADDR instead
9896 of ULONGEST for address size.
9897
9898 2010-02-17 Tom Tromey <tromey@redhat.com>
9899
9900 * NEWS: Add C++ improvements section.
9901
9902 2010-02-17 Ulrich Weigand <uweigand@de.ibm.com>
9903
9904 * python/python-internal.h [!WITH_THREAD] (PyGILState_Release,
9905 PyThreadState_Swap): Avoid "statement with no effect" warning.
9906
9907 2010-02-17 Jan Kratochvil <jan.kratochvil@redhat.com>
9908
9909 * solib-svr4.c (enable_break <target_auxv_search>): New variable
9910 addr_bit. Adjust LOAD_ADDR sign for cross-arch inferiors.
9911
9912 2010-02-17 Tristan Gingold <gingold@adacore.com>
9913 Petr Hluzin <petr.hluzin@gmail.com>
9914
9915 * avr-tdep.c (avr_scan_prologue): Convert an if statement to a
9916 gdb_assert. Fix info->size for SIG prologue.
9917
9918 2010-02-16 Daniel Jacobowitz <dan@codesourcery.com>
9919
9920 * infcmd.c (show_inferior_tty_command): Check for NULL.
9921 Correct output message.
9922
9923 2010-02-16 Daniel Jacobowitz <dan@codesourcery.com>
9924
9925 * linespec.c (decode_line_1): Handle FILE:FUNCTION even if
9926 FUNCTION contains parentheses. Improve removal of a trailing
9927 single quote.
9928
9929 2010-02-16 Daniel Jacobowitz <dan@codesourcery.com>
9930
9931 * gcore.c (do_bfd_delete_cleanup): New function.
9932 (gcore_command): Use it. Discard the cleanup after success.
9933 (gcore_copy_callback): Delete dead code.
9934
9935 2010-02-16 Daniel Jacobowitz <dan@codesourcery.com>
9936
9937 * symfile.c (addr_info_make_relative): Always use
9938 find_lowest_section.
9939
9940 2010-02-16 Sami Wagiaalla <swagiaal@redhat.com>
9941
9942 * NEWS: Added entry for namespace fixes.
9943
9944 2010-02-15 Tom Tromey <tromey@redhat.com>
9945
9946 * dwarf2read.c (guess_structure_name): Allocate name on the
9947 objfile obstack.
9948
9949 2010-02-15 Tom Tromey <tromey@redhat.com>
9950
9951 * c-typeprint.c (c_type_print_base): Reverse order of test.
9952
9953 2010-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
9954
9955 * solib-svr4.c (LM_ADDR_CHECK): New variable minpagesize. Optionally
9956 initialize it from ELF BFD. Extend the prelink condition by it.
9957
9958 2010-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
9959
9960 * defs.h (parse_pid_to_attach): New.
9961 * utils.c (parse_pid_to_attach): New.
9962 * darwin-nat.c (darwin_attach): Replace ARGS parsing by parse_pid.
9963 * gnu-nat.c (gnu_attach): Likewise.
9964 * nto-procfs.c (procfs_attach): Likewise.
9965 * procfs.c (procfs_attach): Likewise.
9966 * windows-nat.c (windows_attach): Likewise.
9967 * inf-ptrace.c (inf_ptrace_attach): Likewise. Remove variable dummy.
9968 * inf-ttrace.c (inf_ttrace_attach): Likewise.
9969 * remote.c (extended_remote_attach_1): Likewise. New comment on getpid
9970 check.
9971
9972 2010-02-14 Masaki Muranaka <monaka@monami-software.com>
9973
9974 * MAINTAINERS: Add myself for write after approval privileges.
9975
9976 2010-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
9977
9978 * solib-svr4.c: (LM_ADDR_CHECK): Move variable align to a more inner
9979 block.
9980
9981 2010-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
9982
9983 * solib-svr4.c: (LM_ADDR_CHECK): Print successful prelink adjustment
9984 only if INFO_VERBOSE.
9985
9986 2010-02-12 Tomas Holmberg <th@virtutech.com>
9987
9988 * mi/mi-main.c: Added the --reverse flag to the following MI
9989 commands: exec-continue, exec-finish, exec-next, exec-step,
9990 exec-next-instruction, exec-step-instruction. This is to
9991 support reverse execution over the MI interface to gdb.
9992
9993 2010-02-12 Pedro Alves <pedro@codesourcery.com>
9994
9995 * tracepoint.c (_initialize_tracepoint): Specify that the address
9996 range of `tfind outsize' is exclusive, and that the address range
9997 of `tfind range' is inclusive, in the commands' help strings.
9998
9999 2010-02-12 Joel Brobecker <brobecker@adacore.com>
10000
10001 Spurious "dll not found" error messages on x64-windows.
10002 * windows-nat.c: Add include of complaints.h.
10003 (handle_unload_dll): Change dll-not-found error into a complaint.
10004
10005 2010-02-12 Pedro Alves <pedro@codesourcery.com>
10006
10007 * breakpoint.c (allocate_bp_location): Use bp_loc_other for
10008 bp_tracepoint and bp_fast_tracepoint, not
10009 bp_loc_software_breakpoint.
10010 (update_global_location_list): Tracepoints are never duplicates of
10011 anything.
10012
10013 2010-02-12 Pedro Alves <pedro@codesourcery.com>
10014
10015 * breakpoint.c (break_command_really): Change return type to int.
10016 Return false if no breakpoint was created, true otherwise.
10017 (trace_command): Don't set the tracepoint count if no tracepoint
10018 was created.
10019 (ftrace_command): Ditto.
10020 (create_tracepoint_from_upload): Bail out if the tracepoint wasn't
10021 created in the breakpoints table.
10022
10023 2010-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
10024 Ulrich Weigand <uweigand@de.ibm.com>
10025
10026 * solib-svr4.c (LM_ADDR_CHECK): New comment on PPC-aware condition.
10027
10028 2010-02-11 Pedro Alves <pedro@codesourcery.com>
10029
10030 * ax-gdb.c (gen_exp_binop_rest) [BINOP_SUBSCRIPT]: Error out if
10031 the offset value isn't of integral type.
10032
10033 2010-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
10034
10035 * breakpoint.c (delete_breakpoint) <bpt->related_breakpoint != NULL>:
10036 New.
10037
10038 2010-02-11 Pedro Alves <pedro@codesourcery.com>
10039
10040 * ax-gdb.c (gen_exp_binop_rest) [BINOP_SUBSCRIPT]: Error out on
10041 non-subscriptable types.
10042 * valarith.c (binop_types_user_defined_p): New, abstracted out
10043 from ...
10044 (binop_user_defined_p): ... this.
10045 * value.h (binop_types_user_defined_p): Declare.
10046
10047 2010-02-11 Pedro Alves <pedro@codesourcery.com>
10048
10049 * tracepoint.c (tfile_open): Remove spurious discard_cleanups.
10050 Merge uploaded TSVs before merging uploaded tracepoints.
10051
10052 2010-02-11 Pedro Alves <pedro@codesourcery.com>
10053
10054 * ax-gdb.c (gen_deref): Don't allow dereferencing void pointers.
10055
10056 2010-02-11 Vladimir Prus <vladimir@codesourcery.com>
10057
10058 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Add extra
10059 whitespace character after a dot in comment.
10060 (mi_cmd_stack_list_arguments, mi_cmd_stack_list_variables):
10061 Likewise.
10062 (list_args_or_locals): For the 'all' (that is
10063 -stack-list-variables) case, always output list of tuples.
10064 Output 'arg' field if variable is argument.
10065
10066 2010-02-10 Tom Tromey <tromey@redhat.com>
10067
10068 * parser-defs.h (parser_debug): Declare.
10069 * parse.c (_initialize_parse): Install "debug parser" set/show
10070 command.
10071 (parser_debug): New global.
10072 (show_parserdebug): New function.
10073 * c-exp.y (c_parse): Set yydebug.
10074
10075 2010-02-10 H.J. Lu <hongjiu.lu@intel.com>
10076
10077 * target-descriptions.c (tdesc_type): Add TDESC_TYPE_I387_EXT,
10078 TDESC_TYPE_I386_EFLAGS and TDESC_TYPE_I386_MXCSR.
10079 (tdesc_predefined_types): Add i387_ext, i386_eflags and
10080 i386_mxcsr.
10081 (tdesc_find_type): New.
10082 (tdesc_gdb_type): Use tdesc_find_type. Handle TDESC_TYPE_I387_EXT,
10083 TDESC_TYPE_I386_EFLAGS and TDESC_TYPE_I386_MXCSR.
10084
10085 * target-descriptions.h (tdesc_find_type): New.
10086
10087 2010-02-10 Michael Snyder <msnyder@vmware.com>
10088
10089 * gdb-gdb.py: Comment fix.
10090
10091 2010-02-09 Tristan Gingold <gingold@adacore.com>
10092
10093 * machoread.c (macho_symfile_relocate): New function.
10094 (macho_sym_fns): Use macho_symfile_relocate instead of
10095 default_symfile_relocate.
10096 (macho_oso_data): New type.
10097 (current_oso): New variable.
10098 (macho_add_oso_symfile): Do not compute section_addr_info, but
10099 instead set vma of sections.
10100 Do not set SYMFILE_VERBOSE to call symbol_file_add_from_bfd.
10101 Set and clear current_oso.
10102
10103 2010-02-09 Joel Brobecker <brobecker@adacore.com>
10104
10105 Wrong type description for tagged type parameter.
10106 * ada-lang.c (ada_evaluate_subexp) [OP_VAR_VALUE]: When noside is
10107 EVAL_AVOID_SIDE_EFFECTS, also handle the case when type is a
10108 reference to a tagged type.
10109
10110 2010-02-09 Tristan Gingold <gingold@adacore.com>
10111
10112 * objfiles.c (objfile_separate_debug_iterate): Do not iterate on
10113 brothers of the parent.
10114
10115 2010-02-08 Tom Tromey <tromey@redhat.com>
10116
10117 PR c++/8017:
10118 * value.h: Update.
10119 * valops.c (search_struct_field): Make 'name' const.
10120 (search_struct_method): Likewise.
10121 (find_method_list): Make 'method' const.
10122 (value_struct_elt): Make 'name' and 'err' const.
10123 (value_find_oload_method_list): Make 'method' const.
10124 (find_overload_match): Make 'name' const.
10125 * eval.c (evaluate_subexp_standard): New locals function,
10126 function_name.
10127 <OP_FUNCALL>: Handle OP_SCOPE specially.
10128
10129 2010-02-08 Ulrich Weigand <uweigand@de.ibm.com>
10130
10131 * infrun.c (handle_inferior_event): Do not look up regcache
10132 for exited processes.
10133
10134 2010-02-08 Chris Moller <moller@mollerware.com>
10135
10136 PR gdb/10728
10137 * valarith.c (value_ptrdiff): Added a test for a zero type length,
10138 warn if found, and assume length = 1.
10139
10140 2010-02-08 Chris Moller <cmoller@redhat.com>
10141
10142 PR gdb/9067
10143 * cp-valprint.c (cp_print_value_fields) Fix use of obstacks.
10144 (cp_print_static_field) Fix use of obstacks.
10145
10146 2010-02-08 Pedro Alves <pedro@codesourcery.com>
10147
10148 * linux-nat.c (linux_nat_resume): In non-stop, also only tag
10149 resumed LWPs as resumed.
10150 (linux_nat_wait_1): If there's no resumed LWP in the set of LWPs
10151 we're waiting for, bail out with TARGET_WAITKIND_IGNORE, instead
10152 of throwing an internal error. If an LWP of a process we're not
10153 waiting for reports a signal, don't force collecting a SIGSTOP,
10154 and if it was breakpoint hit in non-stop mode, cancel it. Don't
10155 go through all LWPs cancelling breakpoints in non-stop mode.
10156 (resume_stopped_resumed_lwps): New.
10157 (linux_nat_wait): Use it.
10158
10159 2010-02-07 H.J. Lu <hongjiu.lu@intel.com>
10160
10161 * features/Makefile (WHICH): Add i386/i386, i386/i386-linux,
10162 i386/amd64 and i386/amd64-linux.
10163 (i386/i386-expedite): New.
10164 (i386/i386-linux-expedite): Likewise.
10165 (i386/amd64-expedite):Likewise.
10166 (i386/amd64-linux-expedite): Likewise.
10167 ($(outdir)/i386/i386-linux.dat): Likewise.
10168 ($(outdir)/i386/amd64.dat): Likewise.
10169 ($(outdir)/i386/amd64-linux.dat): Likewise.
10170
10171 * features/i386/32bit-core.xml: New.
10172 * features/i386/32bit-linux.xml: Likewise.
10173 * features/i386/32bit-sse.xml: Likewise.
10174 * features/i386/64bit-core.xml: Likewise.
10175 * features/i386/64bit-linux.xml: Likewise.
10176 * features/i386/64bit-sse.xml: Likewise.
10177 * features/i386/i386-linux.xml: Likewise.
10178 * features/i386/i386.xml: Likewise.
10179 * features/i386/amd64-linux.xml: Likewise.
10180 * features/i386/amd64.xml: Likewise.
10181 * features/i386/i386-linux.c: Likewise.
10182 * features/i386/i386.c: Likewise.
10183 * features/i386/amd64-linux.c: Likewise.
10184 * features/i386/amd64.c: Likewise.
10185
10186 2010-02-05 Sami Wagiaalla <swagiaal@redhat.com>
10187
10188 PR c++/7935:
10189 * cp-support.h: Added char* alias element to using_direct data
10190 struct.
10191 (cp_add_using): Added char* alias argument.
10192 (cp_add_using_directive): Ditto.
10193 * cp-namespace.c: Updated with the above changes.
10194 (cp_lookup_symbol_imports): Check for aliases.
10195 * dwarf2read.c (read_import_statement): Figure out local alias
10196 for the import and pass it on to cp_add_using.
10197 (read_namespace): Pass alias argument to cp_add_using.
10198
10199 2010-02-05 Hui Zhu <teawater@gmail.com>
10200
10201 * defs.h (gdb_bfd_errmsg): New extern.
10202 * exec.c (exec_file_attach): Change bfd_errmsg to
10203 gdb_bfd_errmsg.
10204 * utils.c (AMBIGUOUS_MESS1): New macro.
10205 (AMBIGUOUS_MESS2): New macro.
10206 (gdb_bfd_errmsg): New function.
10207
10208 2010-02-04 Doug Evans <dje@google.com>
10209
10210 * solib-svr4.c (enable_break): Add comment.
10211
10212 2010-02-04 Anthony Green <green@moxielogic.com>
10213
10214 * moxie-tdep.c (moxie_analyze_prologue): Fail protocol analysis
10215 gracefully.
10216
10217 2010-02-04 Tom Tromey <tromey@redhat.com>
10218
10219 * valops.c (search_struct_field): Account for
10220 value_embedded_offset. Fix check for virtual base past the end of
10221 the object. Use value_copy when making a slice of the value.
10222
10223 2010-02-04 H.J. Lu <hongjiu.lu@intel.com>
10224
10225 PR tui/9622
10226 * tui/tui-interp.c (tui_init): Call tui_initialize_readline
10227 only if gdb_stdout is a tty.
10228
10229 2010-02-04 H.J. Lu <hongjiu.lu@intel.com>
10230
10231 * target-descriptions.c: Include "osabi.h".
10232 (maint_print_c_tdesc_cmd): Generate set_tdesc_osabi for valid
10233 OSABI.
10234
10235 2010-02-04 Tristan Gingold <gingold@adacore.com>
10236
10237 * machoread.c (macho_add_oso): Renamed to macho_register_oso.
10238 (macho_symtab_read): Adjust calls to macho_add_oso.
10239 (macho_oso_symfile): Renamed to macho_symfile_read_all_oso.
10240 (macho_symfile_read): Adjust call to macho_oso_symfile.
10241 (macho_new_init): Move this function after declarations.
10242 (macho_symfile_init): Ditto.
10243 * darwin-nat-info.c (darwin_lib_gdb_ports): Remove.
10244 * darwin-nat.c (darwin_lookup_task): Remove unused prototype.
10245
10246 2010-02-04 Vladimir Prus <vladimir@codesourcery.com>
10247
10248 Include MI command in remotelog.
10249
10250 * mi/mi-main.c (mi_execute_command): Call target_log_command.
10251
10252 2010-02-03 H.J. Lu <hongjiu.lu@intel.com>
10253
10254 * remote.c (remote_state): Remove gdbarch.
10255 (init_remote_state): Don't set gdbarch.
10256 (remote_query_supported): Pass target_gdbarch instead of
10257 rs->gdbarch to gdbarch_qsupported.
10258
10259 2010-02-03 H.J. Lu <hongjiu.lu@intel.com>
10260
10261 * gdbarch.sh: Add qsupported.
10262
10263 * gdbarch.c: Regenerated.
10264 * gdbarch.h: Likewise.
10265
10266 * remote.c (remote_state): Add gdbarch.
10267 (init_remote_state): Set gdbarch.
10268 (remote_query_supported): Support gdbarch_qsupported.
10269
10270 2010-02-03 Daniel Jacobowitz <dan@codesourcery.com>
10271
10272 * amd64fbsd-nat.c (amd64fbsd_supply_pcb): Also check for
10273 __FreeBSD_kernel_version.
10274
10275 2010-02-03 Tristan Gingold <gingold@adacore.com>
10276
10277 * symfile.h (struct sym_fns): Add sym_relocate field.
10278 (default_symfile_relocate): New prototype.
10279 (symfile_relocate_debug_section): First argument is now an objfile.
10280 * symfile.c (default_symfile_relocate): Rename from
10281 symfile_relocate_debug_section, first argument is now an objfile.
10282 (symfile_relocate_debug_section): New function.
10283 * coffread.c (coff_sym_fns): Set sym_relocate field.
10284 * somread.c (som_sym_fns): Ditto.
10285 * mipsread.c (ecoff_sym_fns): Ditto.
10286 * machoread.c (macho_sym_fns): Ditto.
10287 * elfread.c (elf_sym_fns): Ditto.
10288 * dwarf2read.c (dwarf2_read_section): Ditto.
10289 * xcoffread.c (xcoff_sym_fns): Ditto.
10290 * dbxread.c (aout_sym_fns): Ditto.
10291 (dbx_psymtab_to_symtab): Adjust call to symfile_relocate_debug_section.
10292 (elfstab_build_psymtabs): Ditto.
10293
10294 2010-02-03 H.J. Lu <hongjiu.lu@intel.com>
10295
10296 * defs.h (MAX_REGISTER_SIZE): Increase to 32.
10297
10298 2010-02-02 Tom Tromey <tromey@redhat.com>
10299
10300 * valops.c (value_cast_structs): Try downcasting using the RTTI
10301 type.
10302
10303 2010-02-02 Tom Tromey <tromey@redhat.com>
10304
10305 * gnu-v2-abi.c: Don't include gnu-v2-abi.h.
10306 (gnuv2_baseclass_offset): Now static.
10307 * Makefile.in (HFILES_NO_SRCDIR): Remove gnu-v2-abi.h.
10308 * gnu-v2-abi.h: Remove.
10309
10310 2010-02-02 Tom Tromey <tromey@redhat.com>
10311
10312 * m2-typeprint.c (m2_record_fields): Don't use
10313 TYPE_DECLARED_TYPE.
10314 * gdbtypes.h (TYPE_DECLARED_CLASS): New macro.
10315 (struct main_type) <flag_declared_class>: New field.
10316 (struct cplus_struct_type) <declared_type>: Remove.
10317 <ntemplate_args>: Move earlier.
10318 (DECLARED_TYPE_CLASS, DECLARED_TYPE_UNION, DECLARED_TYPE_STRUCT)
10319 (DECLARED_TYPE_TEMPLATE): Remove.
10320 (TYPE_DECLARED_TYPE): Remove.
10321 * gdbtypes.c (lookup_union): Don't use TYPE_DECLARED_TYPE.
10322 * dwarf2read.c (read_structure_type): Set TYPE_DECLARED_CLASS.
10323 * c-typeprint.c (c_type_print_base): Use TYPE_DECLARED_CLASS, not
10324 TYPE_DECLARED_TYPE.
10325
10326 2010-02-02 Tom Tromey <tromey@redhat.com>
10327
10328 PR c++/11226, PR c++/9629, PR c++/9688, PR c++/8890:
10329 * valops.c (search_struct_field): Compute nbases after calling
10330 CHECK_TYPEDEF.
10331 (check_field): Call CHECK_TYPEDEF.
10332 * cp-valprint.c (cp_print_value): Pass correct address to
10333 baseclass_offset. Fix check for virtual base past the end of the
10334 object. Don't offset address passed to cp_print_value_fields or
10335 apply_val_pretty_printer.
10336 (cp_print_value_fields): Fix call to val_print.
10337 (cp_print_value_fields_rtti): New function.
10338 * c-valprint.c (c_val_print): Use cp_print_value_fields_rtti.
10339 * p-valprint.c (pascal_object_print_value_fields): Fix call to
10340 val_print.
10341 * python/py-prettyprint.c (apply_val_pretty_printer): Add embedded
10342 offset to address.
10343 * language.h (struct language_defn) <la_val_print>: Document.
10344 * c-lang.h (cp_print_value_fields_rtti): Declare.
10345
10346 2010-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
10347
10348 PR libc/11214:
10349 * linux-low.c (linux_tracefork_child) [!(__UCLIBC__ && HAS_NOMMU)]: New.
10350 (linux_test_for_tracefork): Move `stack' into [__UCLIBC__ && HAS_NOMMU].
10351 (linux_test_for_tracefork) [!(__UCLIBC__ && HAS_NOMMU)]: New.
10352
10353 2010-02-01 Michael Matz <matz@suse.de>
10354 Daniel Jacobowitz <dan@codesourcery.com>
10355
10356 * i386-tdep.c (i386_frame_cache): Assume valid anonymous
10357 functions use a frame pointer.
10358
10359 2010-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
10360
10361 * solib-svr4.c (scan_dyntag): New variable dyn_addr. Replace gdb_assert
10362 by a conditional setting DYN_ADDR. Use DYN_ADDR.
10363 * config/djgpp/fnchange.lst: Add translations for
10364 symbol-without-target_section.exp and symbol-without-target_section.c.
10365
10366 2010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
10367
10368 * gdbarch.sh: Set LANG and LC_ALL to C, not c.
10369 (remote_breakpoint_for_pc): Correct invalid_p check.
10370 * gdbarch.c: Regenerated.
10371
10372 2010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
10373
10374 * arm-tdep.c (arm_find_mapping_symbol): New function, from
10375 arm_pc_is_thumb.
10376 (arm_pc_is_thumb): Use arm_find_mapping_symbol.
10377 (extend_buffer_earlier): New function.
10378 (MAX_IT_BLOCK_PREFIX, IT_SCAN_THRESHOLD): New constants.
10379 (arm_adjust_breakpoint_address): New function.
10380 (arm_gdbarch_init): Register arm_adjust_breakpoint_address.
10381
10382 2010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
10383
10384 * arm-linux-tdep.c (arm_linux_thumb2_be_breakpoint)
10385 (arm_linux_thumb2_le_breakpoint): New constants.
10386 (arm_linux_init_abi): Set thumb2_breakpoint and
10387 thumb2_breakpoint_size.
10388 * arm-tdep.c (thumb_insn_size, thumb_advance_itstate): New functions.
10389 (thumb_get_next_pc): Add a comment. Rename IT to ITSTATE.
10390 Implement support for single stepping through IT blocks if
10391 a 32-bit Thumb breakpoint instruction is available.
10392 (arm_breakpoint_from_pc): If a 32-bit Thumb breakpoint instruction
10393 is available, use it when needed.
10394 (arm_remote_breakpoint_from_pc): New function.
10395 (arm_gdbarch_init): Register arm_remote_breakpoint_from_pc.
10396 * arm-tdep.h (struct gdbarch_tdep): Correct thumb_breakpoint
10397 comment. Add thumb2_breakpoint and thumb2_breakpoint_size.
10398
10399 2010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
10400
10401 * arch-utils.c (default_remote_breakpoint_from_pc): New function.
10402 * arch-utils.h (default_remote_breakpoint_from_pc): Declare.
10403 * gdbarch.c, gdbarch.h: Regenerated.
10404 * gdbarch.sh (remote_breakpoint_from_pc): New architecture method.
10405 * remote.c (remote_insert_breakpoint, remote_insert_hw_breakpoint): Use
10406 gdbarch_remote_breakpoint_from_pc.
10407
10408 2010-01-29 Daniel Jacobowitz <dan@codesourcery.com>
10409
10410 * infrun.c (prepare_to_proceed): Handle other signals which might
10411 match a breakpoint.
10412 (handle_inferior_event): Move the check for unusual breakpoint
10413 signals earlier.
10414
10415 2010-01-29 Paul Hilfinger <hilfinger@adacore.com>
10416
10417 amd64 - function returning record with field straddling 2 registers.
10418 * amd64-tdep.c (amd_classify_aggregate): Handle the case of
10419 a record of length <= 16 in which a field straddles the two
10420 eightbytes.
10421
10422 2010-01-29 Joel Brobecker <brobecker@adacore.com>
10423
10424 Implement return values on amd64-windows.
10425 * amd64-windows-tdep.c: #include gdbcore.h and regcache.h.
10426 (amd64_windows_return_value): New function.
10427 (amd64_windows_init_abi): Call set_gdbarch_return_value with
10428 amd64_windows_return_value.
10429
10430 2010-01-29 Joel Brobecker <brobecker@adacore.com>
10431
10432 amd64-windows: 32 bytes allocated on stack by caller for integer
10433 parameter registers.
10434 * i386-tdep.h (struct gdbarch_tdep): Add new field
10435 integer_param_regs_saved_in_caller_frame.
10436 * amd64-windows-tdep.c (amd64_windows_init_abi): Set
10437 tdep->integer_param_regs_saved_in_caller_frame to 1.
10438 * amd64-tdep.c (amd64_push_dummy_call): Allocate some memory on
10439 stack if tdep->integer_param_regs_saved_in_caller_frame is set.
10440
10441 2010-01-29 Joel Brobecker <brobecker@adacore.com>
10442
10443 amd64-windows: memory args passed by pointer during function calls.
10444 * i386-tdep.h (gdbarch_tdep): Add field memory_args_by_pointer.
10445 * amd64-tdep.c (amd64_push_arguments): Add handling of architectures
10446 where tdep->memory_args_by_pointer is non-zero.
10447 * amd64-windows-tdep.c (amd64_windows_init_abi): Set
10448 tdep->memory_args_by_pointer to 1.
10449
10450 2010-01-29 Joel Brobecker <brobecker@adacore.com>
10451
10452 amd64-windows: Integer parameters in function calls.
10453 * i386-tdep.h (enum amd64_reg_class): New, moved here from
10454 amd64-tdep.c.
10455 (struct gdbarch_tdep): Add fields call_dummy_num_integer_regs,
10456 call_dummy_integer_regs, and classify.
10457 * amd64-tdep.h (amd64_classify): Add declaration.
10458 * amd64-tdep.c (amd64_dummy_call_integer_regs): New static constant.
10459 (amd64_reg_class): Delete, moved to i386-tdep.h.
10460 (amd64_classify): Make non-static. Move declaration to amd64-tdep.h.
10461 Replace call to amd64_classify by call to tdep->classify.
10462 (amd64_push_arguments): Get the list of registers to use for
10463 passing integer parameters from the gdbarch tdep structure,
10464 rather than using a hardcoded one. Replace calls to amd64_classify
10465 by calls to tdep->classify.
10466 (amd64_push_dummy_call): Get the register number used for
10467 the "hidden" argument from tdep->call_dummy_integer_regs.
10468 (amd64_init_abi): Initialize tdep->call_dummy_num_integer_regs
10469 and tdep->call_dummy_integer_regs. Set tdep->classify.
10470 * amd64-windows-tdep.c: Add include of gdbtypes.h.
10471 (amd64_windows_dummy_call_integer_regs): New static global.
10472 (amd64_windows_classify): New function.
10473 (amd64_windows_init_abi): Initialize tdep->call_dummy_num_integer_regs
10474 tdep->call_dummy_integer_regs and tdep->classify.
10475
10476 2010-01-28 Daniel Jacobowitz <dan@codesourcery.com>
10477
10478 * regcache.c (regcache_xmalloc): Add aspace argument. Use it
10479 for the new regcache. All callers updated.
10480 (regcache_cpy, regcache_cpy_no_passthrough): Do not set aspace here.
10481 (get_thread_arch_regcache): Do not set aspace here.
10482 * regcache.h (regcache_xmalloc): Update declaration.
10483
10484 * frame.c, infcall.c, ppc-linux-tdep.c: Calls to
10485 regcache_xmalloc updated.
10486
10487 2010-01-28 Joel Brobecker <brobecker@adacore.com>
10488
10489 Another -Wunused-function error in procfs.c (sparc-solaris)
10490 * procfs.c (insert_dbx_link_breakpoint): Delete declaration. Move up.
10491 Only define if SYS_syssgi is defined.
10492 (remove_dbx_link_breakpoint): Delete declaration. Move up.
10493 (dbx_link_addr, insert_dbx_link_bpt_in_file)
10494 (insert_dbx_link_bpt_in_region): Move up. Only define if SYS_syssgi
10495 is itself defined.
10496
10497 2010-01-27 Christopher Faylor <me+cygwin@cgf.cx>
10498
10499 * windows-nat.c (windows_initialization_done): New variable.
10500 (get_windows_debug_event): Issue error when process dies before
10501 completely initializing.
10502 (do_initial_windows_stuff): Set flag to indicate when we are done with
10503 the initial steps of attaching to the child.
10504
10505 2010-01-27 Jan Kratochvil <jan.kratochvil@redhat.com>
10506
10507 * symtab.h (struct symbol <symtab>): New comment on NULL values.
10508
10509 2010-01-27 Doug Evans <dje@google.com>
10510
10511 * solib-svr4.c (solib_break_names): Add __dl_rtld_db_dlactivity.
10512
10513 * breakpoint.c (bpstat_stop_status): Delete useless code.
10514
10515 2010-01-27 Jan Kratochvil <jan.kratochvil@redhat.com>
10516
10517 * printcmd.c (display_uses_solib_p): Remove variable section. Access
10518 objfile via SYMBOL_SYMTAB.
10519
10520 2010-01-26 Tom Tromey <tromey@redhat.com>
10521
10522 PR exp/7643:
10523 * eval.c (evaluate_subexp_for_address) <UNOP_IND>: Call
10524 coerce_array on result.
10525
10526 2010-01-26 Sami Wagiaalla <swagiaal@redhat.com>
10527
10528 * cp-namespace.c (cp_lookup_symbol_namespace): Added
10529 search_parent argument.
10530 (cp_add_using): Initialize 'searched' field.
10531 (reset_directive_searched): New function.
10532 * cp-support.h: Add 'searched' field to using_direct struct.
10533 (cp_lookup_symbol_imports): Ditto.
10534 * cp-namespace.c (cp_lookup_symbol_imports): Ditto.
10535 Perform recursive search.
10536 Implement non parent search.
10537 * valops.c (value_maybe_namespace_elt): Updated.
10538
10539 2010-01-26 Sami Wagiaalla <swagiaal@redhat.com>
10540
10541 PR gdb/10929:
10542 * dwarf2read.c (read_lexical_block_scope): Create blocks for
10543 scopes which contain using directives even if they contain no
10544 declarations.
10545 * symtab.c (lookup_symbol_aux): Pass lowest level block to
10546 la_lookup_symbol_nonlocal.
10547 * cp-namespace.c (cp_lookup_symbol_nonlocal): call
10548 cp_lookup_symbol_namespace.
10549 (cp_lookup_symbol_namespace): Perform an import lookup at every
10550 block level.
10551 (cp_lookup_symbol_imports): New function.
10552 (cp_lookup_symbol_in_namespace): New function.
10553
10554 2010-01-25 Tom Tromey <tromey@redhat.com>
10555
10556 PR gdb/11049:
10557 * c-valprint.c (c_val_print): Fix test of extract_unsigned_integer
10558 result.
10559
10560 2010-01-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10561
10562 * configure.ac: Only use host_os part when disabling TUI on osf.
10563 Use test to check variables, prefix strings with x.
10564 * configure: Regenerate.
10565
10566 * solib-osf.c (osf_current_sos): Initialize tail.
10567
10568 2010-01-25 gingold <gingold@adacore.com>
10569
10570 * windows-nat.c (windows_continue): Use %x to print thread id.
10571 (get_windows_debug_event): Ditto.
10572
10573 2010-01-22 Tom Tromey <tromey@redhat.com>
10574
10575 PR symtab/11199:
10576 * dwarf2read.c (quirk_gcc_member_function_pointer): Change return
10577 type and arguments. Use smash_to_methodptr_type.
10578 (read_structure_type): Call quirk_gcc_member_function_pointer
10579 later.
10580 * gdbtypes.h (smash_to_methodptr_type): Declare.
10581 * gdbtypes.c (smash_to_methodptr_type): New function.
10582 (lookup_methodptr_type): Use it.
10583
10584 2010-01-21 Tom Tromey <tromey@redhat.com>
10585
10586 PR symtab/11198:
10587 * symtab.h (lookup_minimal_symbol_and_objfile): Declare.
10588 * minsyms.c (lookup_minimal_symbol_and_objfile): New function.
10589 * glibc-tdep.c (find_minsym_and_objfile): Remove.
10590 (glibc_skip_solib_resolver): Use
10591 lookup_minimal_symbol_and_objfile.
10592
10593 2010-01-21 Kai Tietz <kai.tietz@onevision.com>
10594
10595 * inflow.c (check_syscall): Guard by #if clause for GO32 and
10596 WIN32 targets.
10597
10598 2010-01-20 Tom Tromey <tromey@redhat.com>
10599
10600 PR backtrace/10770:
10601 * valarith.c (value_binop): Handle BINOP_GTR, BINOP_LEQ, and
10602 BINOP_GEQ. Handle BINOP_NOTEQUAL in the signed case.
10603 * dwarf2expr.c (new_dwarf_expr_context): Allocate
10604 dwarf_stack_values, not CORE_ADDRs.
10605 (execute_stack_op): Change DW_OP_div and comparison operators to
10606 use signed operands.
10607
10608 2010-01-20 Vladimir Prus <vladimir@codesourcery.com>
10609
10610 Per-inferior args and tty and environment.
10611
10612 * infcmd.c (inferior_args): Rename to ...
10613 (inferior_args_scratch): ... this.
10614 (inferior_io_terminal): Rename to ...
10615 (inferior_io_terminal_scratch): ... this.
10616 (inferior_argc, inferior_argv): Remove.
10617 (set_inferior_io_terminal, get_inferior_io_terminal): Store
10618 inside current_inferior().
10619 (set_inferior_tty_command, show_inferior_tty_command): New.
10620 (get_inferior_args, set_inferior_args): Store inside
10621 current_inferior().
10622 (notice_args_set): Likewise and rename to...
10623 (set_args_command): ... this.
10624 (set_inferior_args_vector): Likewise.
10625 (notice_args_read): Rename to...
10626 (show_args_command): ...new.
10627 (tty_command): Remove.
10628 (run_command_1): Don't free old args, as they are freed by
10629 set_inferior_arg now.
10630 (run_no_args_command): Likewise.
10631 (inferior_environ): Remove.
10632 (run_command_1): Use environment of the current inferior.
10633 (environment_info, set_environment_command)
10634 (unset_environment_command, path_info, path_command): Likewise.
10635 (_initialize_infcmd): Adjust for function and variable renames.
10636 Do not init inferior_environ.
10637 * inferior.h (set_inferior_arg): Adjust prototype.
10638 (struct inferior): New fields args, argc, argv, terminal, environment.
10639 (inferior_environ): Remove declaration.
10640 * inferior.c (free_inferior): Free new fields.
10641 (add_inferior_silent): Initialize 'environment' field.
10642 * main.c (captured_main): Set arguments only after the initial
10643 inferior has been created. Set set_inferior_io_terminal,
10644 not tty_command.
10645 * mi/mi-main.c (mi_cmd_env_path): Use environment of the current
10646 inferior.
10647 (_initialize_mi_cmd_env): Adjust for disappearance of global
10648 inferior_environ.
10649 * solib.c (solib_find): Use environment of the current inferior.
10650
10651 2010-01-20 Jan Kratochvil <jan.kratochvil@redhat.com>
10652
10653 * varobj.c (varobj_add_child, install_dynamic_child): Wrap into #if
10654 HAVE_PYTHON.
10655 (instantiate_pretty_printer): Move HAVE_PYTHON outside of the function.
10656
10657 2010-01-20 Joel Brobecker <brobecker@adacore.com>
10658
10659 Get rid of ada-lang.c:function_name_from_pc.
10660 * ada-lang.c: Add "stack.h" #include.
10661 (function_name_from_pc): Delete.
10662 (is_known_support_routine): Replace call to function_name_from_pc
10663 by call to find_frame_funname.
10664 (ada_unhandled_exception_name_addr_from_raise): Likewise.
10665
10666 2010-01-19 Tom Tromey <tromey@redhat.com>
10667
10668 PR c++/11026:
10669 * dwarf2read.c (read_partial_die): Allocate partial DIE's name on
10670 objfile obstack.
10671
10672 2010-01-19 Tom Tromey <tromey@redhat.com>
10673
10674 * top.c (stop_sig, float_handler, do_nothing): Remove.
10675
10676 2010-01-19 Jan Kratochvil <jan.kratochvil@redhat.com>
10677
10678 * breakpoint.c (watchpoint_check): Check the call
10679 gdbarch_in_function_epilogue_p before calling frame_find_by_id.
10680 Extend the comment.
10681 * config/djgpp/fnchange.lst: Add translations for
10682 watchpoint-cond-gone.exp, watchpoint-cond-gone.c and
10683 watchpoint-cond-gone-stripped.c.
10684
10685 2010-01-19 Tom Tromey <tromey@redhat.com>
10686
10687 PR c++/8000:
10688 * dwarf2read.c (partial_die_parent_scope): Put enumeration type
10689 into parent scope, and enumerator into grandparent scope.
10690
10691 2010-01-19 Joel Brobecker <brobecker@adacore.com>
10692
10693 * NEWS: Add entry for "set/show ada trust-PAD-over-XVS" commands.
10694
10695 2010-01-19 Joel Brobecker <brobecker@adacore.com>
10696
10697 * configure.host: Make x86_64-*-solaris2.1[0-9]* an alias of
10698 i[34567]86-*-solaris2.1[0-9]*.
10699 * configure.tgt: Likewise.
10700
10701 2010-01-19 Joel Brobecker <brobecker@adacore.com>
10702
10703 * NEWS: Document the source command enhancement allowing it
10704 to load Python scripts. Document the "set/show script-extension"
10705 commands.
10706
10707 2010-01-19 Joel Brobecker <brobecker@adacore.com>
10708
10709 Add -Wunused-function to compile flags.
10710 * configure.ac: Add -Wunused-function to build_warnings.
10711 * configure: Regenerate.
10712
10713 2010-01-19 Joel Brobecker <brobecker@adacore.com>
10714
10715 "delete" ada-lex.c:input function, not used.
10716 * ada-lex.l: #define YY_NO_INPUT.
10717
10718 2010-01-19 Joel Brobecker <brobecker@adacore.com>
10719
10720 Delete free_named_symtabs and associated cleanup.
10721 * symfile.h (free_named_symtabs): Delete declaration.
10722 * symfile.c: Remove some commented out code (clear_symtab_users_once).
10723 (cashier_psymtab): Comment function out.
10724 Delete declaration.
10725 (free_named_symtabs): Delete.
10726 * coffread.c (coff_end_symtab): Remove call to free_named_symtabs.
10727 * dbxread.c (end_psymtab): Likewise.
10728 * dwarf2read.c (process_psymtab_comp_unit): Ditto.
10729 * exec.c (exec_close_1): Ditto.
10730 * xcoffread.c (xcoff_end_psymtab): Likewise.
10731
10732 2010-01-19 Joel Brobecker <brobecker@adacore.com>
10733
10734 * stack.c (print_block_frame_labels): Comment function out.
10735
10736 2010-01-19 Joel Brobecker <brobecker@adacore.com>
10737
10738 Delete unused or undefined functions.
10739 * breakpoint.c (ep_parse_optional_filename): Delete.
10740 * dcache.c (dcache_write_line): Remove declaration.
10741 * infrun.c (build_infrun): Remove declaration.
10742 * tracepoint.c (tracepoint_save_command): Remove declaration.
10743 * linux-nat.c (init_lwp_list): Delete. No longer used.
10744 * event-loop.c (check_async_signal_handlers): Delete declaration.
10745 * infrun.c (init_execution_control_state): Delete.
10746 (proceed): Update comment to avoid mentioning
10747 init_execution_control_state.
10748 * target.c (kill_or_be_killed, nosupport_runtime): Delete.
10749 * ada-lang.c (ada_to_static_fixed_value): Delete.
10750 * scm-lang.c (evaluate_subexp_scm): Delete declaration.
10751 * cp-namespace.c (cp_copy_usings): Delete.
10752 * xml-syscall.c (xml_number_of_syscalls): Delete.
10753 * progspace.c (find_program_space_by_num): Delete.
10754 * inflow.c (handle_sigio): Delete declaration.
10755 * hppa-tdep.c (hppa_alignof): Delete.
10756 * mipsnbsd-tdep.c (mipsnbsd_sigtramp_offset)
10757 (mipsnbsd_core_osabi_sniffer): Delete.
10758
10759 2010-01-18 Tom Tromey <tromey@redhat.com>
10760
10761 PR c++/9680:
10762 * c-exp.y (REINTERPRET_CAST, DYNAMIC_CAST, STATIC_CAST)
10763 (CONST_CAST): New tokens.
10764 (exp): Add new productions.
10765 (ident_tokens): Add const_cast, dynamic_cast, static_cast, and
10766 reinterpret_cast.
10767 (is_cast_operator): New function.
10768 (yylex): Handle cast operators specially.
10769 * eval.c (evaluate_subexp_standard) <UNOP_DYNAMIC_CAST,
10770 UNOP_REINTERPRET_CAST>: New cases.
10771 * expprint.c (print_subexp_standard): Likewise.
10772 (op_name_standard): Likewise.
10773 (dump_subexp_body_standard): Likewise.
10774 * parse.c (operator_length_standard): Likewise.
10775 * expression.h (enum exp_opcode): New constants UNOP_DYNAMIC_CAST,
10776 UNOP_REINTERPRET_CAST.
10777 * gdbtypes.c (class_types_same_p): New function.
10778 (is_ancestor): Use it.
10779 (is_public_ancestor): New function.
10780 (is_unique_ancestor_worker): Likewise.
10781 (is_unique_ancestor): Likewise.
10782 * gdbtypes.h (class_types_same_p, is_public_ancestor)
10783 (is_unique_ancestor): Declare.
10784 * valops.c (value_reinterpret_cast): New function.
10785 (dynamic_cast_check_1): Likewise.
10786 (dynamic_cast_check_2): Likewise.
10787 (value_dynamic_cast): Likewise.
10788 * value.h (value_reinterpret_cast, value_dynamic_cast): Declare.
10789
10790 2010-01-18 Joel Brobecker <brobecker@adacore.com>
10791
10792 Fix build failure when building without Python support.
10793 * python/python.c: Always include exceptions.h, even when HAVE_PYTHON
10794 is not defined.
10795
10796 2010-01-18 Joel Brobecker <brobecker@adacore.com>
10797
10798 Use XVS field type instead of doing a parallel lookup.
10799 * ada-lang.c (ada_get_base_type): Follow the XVS field type
10800 if it is a reference type instead of doing a type lookup using
10801 the XVS field name.
10802
10803 2010-01-18 Joel Brobecker <brobecker@adacore.com>
10804
10805 Trust PAD types instead of using PAD___XVS.
10806 * ada-lang.c (trust_pad_over_xvs): New static variable.
10807 (ada_is_aligner_type): If !trust_pad_over_xvs and there is a
10808 parallel XVS type, follow the XVS type instead of the PAD type.
10809 (unwrap_value): Make sure that there is no parallel XVE type
10810 before returning the value as is.
10811 (set_ada_list, show_ada_list): New static variables.
10812 (set_ada_command, show_ada_command): New functions.
10813 (_initialize_ada_language): Add new "set/show ada" prefix commands.
10814 Add new "set/show ada trust-PAD-over-XVS" setting.
10815
10816 2010-01-18 Tom Tromey <tromey@redhat.com>
10817 Thiago Jung Bauermann <bauerman@br.ibm.com>
10818
10819 Allow "source" to load python scripts.
10820 * exceptions.h (enum errors): Add UNSUPPORTED_ERROR.
10821 * python/python.c (source_python_script): New function.
10822 * python/python.h (source_python_script): Add declaration.
10823 * cli/cli-cmds.c: #include exceptions.h and python/python.h.
10824 (script_ext_off, script_ext_soft, script_ext_strict)
10825 (script_ext_enums, script_ext_mode): New static constants.
10826 (show_script_ext_mode, find_and_open_script): New functions.
10827 (source_script): Enhance to handle Python scripts.
10828 (init_cli_cmds): Add set/show script-extension commands.
10829
10830 2010-01-16 Stan Shebs <stan@codesourcery.com>
10831
10832 * tracepoint.h (struct trace_status): Use unsigned long long
10833 instead of size_t.
10834 * tracepoint.c (trace_status_command): Fix printf directive.
10835 (trace_save_command): Check fwrite returns, fix printf directive.
10836 (trace_filename): New global.
10837 (tfile_open): Set it, check read returns.
10838 (tfile_close): Free trace_filename.
10839 (tfile_get_traceframe_address): Check read returns.
10840 (tfile_trace_find): Ditto.
10841 (tfile_fetch_registers): Ditto.
10842 (tfile_xfer_partial): Ditto.
10843 (tfile_get_trace_state_variable_value): Ditto.
10844
10845 2010-01-15 Stan Shebs <stan@codesourcery.com>
10846
10847 Add trace file support.
10848 * tracepoint.h (enum trace_stop_reason): New enum.
10849 (struct trace_status): New struct.
10850 (parse_trace_status): Declare.
10851 (struct uploaded_tp): Move here from remote.c,
10852 add fields for actions.
10853 (struct uploaded_tsv): New struct.
10854 * tracepoint.c (tfile_ops): New target vector.
10855 (trace_fd): New global.
10856 (tfile_open): New function.
10857 (tfile_close): New function.
10858 (tfile_files_info): New function.
10859 (tfile_get_trace_status): New function.
10860 (tfile_get_traceframe_address): New function.
10861 (tfile_trace_find): New function.
10862 (tfile_fetch_registers): New function.
10863 (tfile_xfer_partial): New function.
10864 (tfile_get_trace_state_variable_value): New function.
10865 (init_tfile_ops): New function.
10866 (_initialize_tracepoint): Call it, add tfile target.
10867 (trace_status): New global.
10868 (current_trace_status): New function.
10869 (trace_running_p): Remove, change all users to get from
10870 current_trace_status()->running.
10871 (get_trace_status): Remove.
10872 (trace_status_command): Call target_get_trace_status directly,
10873 report more detail including tracing stop reasons.
10874 (trace_find_command): Always allow tfind on a file.
10875 (trace_find_pc_command): Ditto.
10876 (trace_find_tracepoint_command): Ditto.
10877 (trace_find_line_command): Ditto.
10878 (trace_find_range_command): Ditto.
10879 (trace_find_outside_command): Ditto.
10880 (trace_frames_offset, cur_offset): Declare as off_t.
10881 (trace_regblock_size): Rename from reg_size, update users.
10882 (parse_trace_status): New function.
10883 (tfile_interp_line): New function.
10884 (disconnect_or_stop_tracing): Ensure current trace
10885 status before asking what to do.
10886 (stop_reason_names): New global.
10887 (trace_save_command): New command.
10888 (get_uploaded_tp): Move here from remote.c.
10889 (find_matching_tracepoint): Ditto.
10890 (merge_uploaded_tracepoints): New function.
10891 (parse_trace_status): Use stop_reason_names.
10892 (_initialize_tracepoint): Define tsave command.
10893 * target.h (target_ops): New fields to_save_trace_data,
10894 to_upload_tracepoints, to_upload_trace_state_variables,
10895 to_get_raw_trace_data, change to_get_trace_status
10896 to take a pointer to a status struct.
10897 (target_save_trace_data): New macro.
10898 (target_upload_tracepoints): New macro.
10899 (target_upload_trace_state_variables): New macro.
10900 (target_get_raw_trace_data): New macro.
10901 * target.c (update_current_target): Add new methods, change
10902 signature of to_get_trace_status.
10903 * remote.c (hex2bin): Make globally visible.
10904 (bin2hex): Ditto.
10905 (remote_download_trace_state_variable): Download name also.
10906 (remote_get_trace_status): Update parameter, use
10907 parse_trace_status.
10908 (remote_save_trace_data): New function.
10909 (remote_upload_tracepoints): New function.
10910 (remote_upload_trace_state_variables): New function.
10911 (remote_get_raw_trace_data): New function.
10912 (remote_start_remote): Use them.
10913 (_initialize_remote_ops): Add operations.
10914 * ax-gdb.c: Include breakpoint.h.
10915 * breakpoint.c (create_tracepoint_from_upload): Use
10916 break_command_really, return tracepoint, warn about unimplemented
10917 parts.
10918 * NEWS: Mention trace file addition.
10919
10920 2010-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
10921
10922 Fix compilation warning on gcc-3.4.
10923 * exec.c (print_section_info): Move the `displacement' variable
10924 initialization to its declaration.
10925
10926 2010-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
10927
10928 * gdb-gdb.py (StructMainTypePrettyPrinter): Fix TYPE_CODE_RANGE
10929 comparison.
10930
10931 2010-01-15 Eric Botcazou <botcazou@adacore.com>
10932
10933 "info tasks" broken by typedefs in ATCB type definitions.
10934 * ada-lang.c (ada_template_to_fixed_record_type_1): Add call to
10935 ada_check_typedef before retrieving the length of the type for
10936 regular fields.
10937
10938 2010-01-15 Joel Brobecker <brobecker@adacore.com>
10939
10940 Do not use name-based lookup for unconstrained packed arrays.
10941 * ada-lang.c (find_parallel_type_by_descriptive_type):
10942 Limit the fallback to name-based lookups to the case where
10943 the type is a constrained packed array.
10944
10945 2010-01-15 Joel Brobecker <brobecker@adacore.com>
10946
10947 Enhance gdb-gdb.py to handle main_type.type_specific.
10948 * gdb-gdb.py: Print the type-specific part of struct main_type.
10949
10950 2010-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
10951
10952 * configure.ac (AC_CHECK_FUNCS): Check for setrlimit and getrlimit.
10953 * configure: Regenerate.
10954 * config.in: Regenerate.
10955 * utils.c: Include sys/resource.h.
10956 (dump_core, can_dump_core): New.
10957 (internal_vproblem): Update the comment. Check can_dump_core while
10958 setting dump_core_p. Replace two abort calls by dump_core calls.
10959
10960 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
10961 Eli Zaretskii <eliz@gnu.org>
10962
10963 * NEWS: Document the PIE support.
10964
10965 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
10966
10967 * linux-tdep.c: Remove includes gdbcore.h, observer.h and elf-bfd.h.
10968 (check_is_pie_binary, _initialize_linux_tdep): Remove.
10969
10970 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
10971
10972 * solib-svr4.c (svr4_exec_displacement): New comment for entry_point.
10973 Replace exec_entry_point call by bfd_get_start_address.
10974
10975 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
10976
10977 Support Valgrind attachments broken by the PIE support.
10978 * auxv.c: Include gdbcore.h.
10979 (procfs_xfer_auxv): Make static. Reduce its comment. Drop its
10980 parameters ops, object and annex. Remove their assertions.
10981 (ld_so_xfer_auxv, memory_xfer_auxv): New function.
10982 * auxv.h (procfs_xfer_auxv): Remove comment. Rename to ...
10983 (memory_xfer_auxv): ... here.
10984 * linux-nat.c (linux_xfer_partial): Rename procfs_xfer_auxv to
10985 memory_xfer_auxv.
10986 * procfs.c (procfs_xfer_partial): Likewise.
10987 * solib-svr4.c (svr4_relocate_main_executable): New prototype.
10988 (svr4_special_symbol_handling): Call svr4_relocate_main_executable.
10989 (svr4_solib_create_inferior_hook): Conditionalize the
10990 svr4_relocate_main_executable call.
10991
10992 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
10993
10994 * solib-svr4.c (scan_dyntag): Remove variable dyn_addr. New variable
10995 target_section. Find SECT in current_target_sections, gdb_assert it.
10996 (elf_lookup_lib_symbol): Pass the binary file if given symfile_objfile.
10997 New variable abfd.
10998 * symtab.c (lookup_objfile_from_block): Return the binary file instead
10999 of separate debug info file.
11000
11001 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
11002
11003 Support PIEs with no symfile_objfile.
11004 * exec.c (print_section_info <abfd == exec_bfd>): Relocate Entry point.
11005 * solib-svr4.c (svr4_relocate_main_executable <exec_bfd>): New block.
11006
11007 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
11008
11009 * solib-svr4.c (svr4_relocate_main_executable): Move the static exec
11010 code part to ...
11011 (svr4_static_exec_displacement): ... a new function.
11012 (svr4_exec_displacement): New function.
11013 (svr4_relocate_main_executable): Call svr4_exec_displacement. Allocate
11014 new_offsets using alloca now. Remove variable old_chain and changed.
11015 Call objfile_relocate unconditionally now.
11016
11017 2010-01-14 Doug Evans <dje@google.com>
11018
11019 * gdbtypes.c (arch_flags_type): Fix comment.
11020 * gdbtypes.h (arch_composite_type): Fix comment.
11021
11022 2009-01-14 Tristan Gingold <gingold@adacore.com>
11023
11024 * machoread.c (macho_add_oso_symfile): Add symfile_flags parameter.
11025 Call xstrdup for abfd->filename. Pass symfile_flags and objfile flags
11026 to symbol_file_add_from_bfd. Add OSO as separate objfile.
11027 (macho_oso_symfile): Add symfile_flags parameter. Pass it to
11028 macho_add_oso_symfile.
11029 (macho_symfile_read): Pass symfile_flags to macho_oso_symfile.
11030
11031 2010-01-14 Joel Brobecker <brobecker@adacore.com>
11032
11033 Tru64: Dead threads are never deleted.
11034 * dec-thread.c (dec_thread_ptid_is_alive): New function.
11035 (dec_thread_count_gdb_threads): Fix counter increment.
11036 (dec_thread_add_gdb_thread): Fix *listp increment.
11037 (resync_thread_list): Fix bug in deletion of dead threads that
11038 caused all threads to be deleted, instead of just the dead ones.
11039
11040 2010-01-13 Phil Muldoon <pmuldoon@redhat.com>
11041
11042 PR python/10705
11043
11044 * python/python-internal.h: Add lazy_string_object_type
11045 definition.
11046 (create_lazy_string_object, gdbpy_initialize_lazy_string)
11047 (gdbpy_is_lazystring, gdbpy_extract_lazy_string): Define.
11048 * python/py-value.c (valpy_lazy_string): New function.
11049 (convert_value_from_python): Add lazy string conversion.
11050 * python/py-prettyprint.c (pretty_print_one_value): Check if
11051 return is also a lazy string.
11052 (print_string_repr): Add lazy string printing branch.
11053 (print_children): Likewise.
11054 * python/py-lazy-string.c: New file. Implement lazy strings.
11055 * python/python.c (_initialize_python): Call
11056 gdbpy_initialize_lazy_string.
11057 * varobj.c (value_get_print_value): Add lazy string printing
11058 branch. Account for encoding.
11059 * c-lang.c (c_printstr): Account for new encoding argument. If
11060 encoding is NULL, find encoding suited for type, otherwise use
11061 user encoding.
11062 * language.h (language_defn): Add encoding argument.
11063 (LA_PRINT_STRING): Likewise.
11064 * language.c (unk_lang_printstr): Update to reflect new encoding
11065 argument to language_defn.
11066 * ada-lang.h (ada_printstr): Likewise.
11067 * c-lang.h (c_printstr): Likewise.
11068 * p-lang.h (pascal_printstr);
11069 * f-lang.c (f_printstr): Likewise.
11070 * m2-lang.c (m2_printstr): Likewise.
11071 * objc-lang.c (objc_printstr): Likewise.
11072 * p-lang.c (pascal_printstr): Likewise.
11073 * scm-lang.c (scm_printstr): Likewise.
11074 * c-valprint.c (c_val_print): Update LA_PRINT_STRING call for
11075 encoding argument.
11076 * ada-valprint.c (ada_printstr): Likewise.
11077 * f-valprint.c (f_val_print): Likewise
11078 * m2-valprint.c (m2_val_print): Likewise.
11079 * p-valprint.c (pascal_val_print): Likewise.
11080 * expprint.c (print_subexp_standard): Likewise.
11081 * valprint.c (val_print_string): Likewise.
11082 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-lazy-string.
11083 (SUBDIR_PYTHON_SRCS): Likewise.
11084 (py-lazy-string.o): New rule.
11085
11086 2010-01-13 Doug Evans <dje@google.com>
11087
11088 * mi/mi-main.c (list_available_thread_groups): Avoid "may be used
11089 uninitialized" warning from gcc on local `tree'.
11090
11091 2010-01-13 Vladimir Prus <vladimir@codesourcery.com>
11092
11093 Implement core awareness.
11094
11095 * bcache.c (compare_ints): Remove
11096 (print_percentage): Use compare_positive_ints.
11097 * defs.h (compare_positive_ints): Declare.
11098 * linux-nat.h (struct lin_lwp): New field core.
11099 (linux_nat_core_of_thread_1): Declare.
11100 * linux-nat.c (add_lwp): Init the 'core' field.
11101 (linux_nat_wait_1): Record the core.
11102 (linux_nat_core_of_thread_1, linux_nat_core_of_thread): New.
11103 (linux_nat_add_target): Register the above.
11104 * linux-thread-db.c (update_thread_core): New.
11105 (thread_db_find_new_threads): Update core information for
11106 every thread.
11107 * remote.c (struct private_thread_info): New.
11108 (free_private_thread_info, demand_private_info): New.
11109 (PACKET_qXfer_threads, use_osdata_threads): New.
11110 (struct thread_item, threads_parsing_context
11111 (start_thread, end_thread, thread_attributes)
11112 (thread_children, threads_children, threads_elements): New.
11113 (remote_threads_info): Try qXfer:threads before anything
11114 else.
11115 (remote_protocol_packets): Register qXfer:threads.
11116 (remote_open_1): Init use_osdata_threads.
11117 (struct stop_reply): New field 'core'.
11118 (remote_parse_stop_reply): Parse core number.
11119 (process_stop_reply): Record core number.
11120 (remote_xfer_partial): Handle qXfer:threads.
11121 (remote_core_of_thread): New.
11122 (init_remote_ops): Register remote_core_of_thread.
11123 (_initialize_remote): Register qXfer:read.
11124 * target.c (target_core_of_thread): New
11125 * target.h (enum target_object): New value TARGET_OBJECT_THREADS.
11126 (struct target_ops): New field to_core_of_threads.
11127 (target_core_of_thread): Declare.
11128 * gdbthread.h (struct thread_info): New field private_dtor.
11129 * thread.c (print_thread_info): Report the core.
11130 * ui-out.c (MAX_UI_OUT_LEVELS): Increase.
11131 * utils.c (compare_positive_ints): New.
11132 * features/threads.dtd: New.
11133 * mi/mi-interp.c (mi_on_normal_stop): Report the core.
11134 * mi/mi-main.c (struct collect_cores_data, collect_cores)
11135 (do_nothing, free_vector_of_osdata_items)
11136 (splay_tree_int_comparator, free_splay_tree): New.
11137 (print_one_inferior_data): Implemented printing of selected
11138 inferiors. Collect and print cores.
11139 (output_cores): New.
11140 (mi_cmd_list_thread_groups): Support --recurse. Permit specifying
11141 thread groups together with --available.
11142
11143 2010-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
11144
11145 * configure: Regenerate (for _STRUCTURED_PROC).
11146
11147 2010-01-12 Joel Brobecker <brobecker@adacore.com>
11148
11149 Delete dead function.
11150 * ada-lang.c (extract_string): Delete. No longer used.
11151
11152 2010-01-12 Joel Brobecker <brobecker@adacore.com>
11153
11154 Fix -Wunused warning in dec-thread.c.
11155 * dec-thread.c (dec_thread_count_gdb_threads)
11156 (dec_thread_add_gdb_thread): Prevent -Wunused warning.
11157
11158 2010-01-12 Joel Brobecker <brobecker@adacore.com>
11159
11160 * ada-valprint.c (ada_print_floating): Remove trailing space.
11161
11162 2010-01-12 Joel Brobecker <brobecker@adacore.com>
11163
11164 Add support for DW_AT_GNAT_descriptive_type.
11165 * gdbtypes.h (enum type_specific_kind): New enum.
11166 (struct main_type) [type_specific_field]: New component.
11167 [type_specific]: Add new component "gnat_stuff".
11168 (struct gnat_aux_type): New type.
11169 (INIT_CPLUS_SPECIFIC): Also set TYPE_SPECIFIC_FIELD (type).
11170 (HAVE_CPLUS_STRUCT): Also check TYPE_SPECIFIC_FIELD (type).
11171 (gnat_aux_default, allocate_gnat_aux_type): Add declaration.
11172 (INIT_GNAT_SPECIFIC, ALLOCATE_GNAT_AUX_TYPE, HAVE_GNAT_AUX_INFO)
11173 (TYPE_SPECIFIC_FIELD): New macros.
11174 (TYPE_CPLUS_SPECIFIC): Return cplus_struct_default if the given
11175 type does not hold any cplus-specific data.
11176 (TYPE_RAW_CPLUS_SPECIFIC): New macro.
11177 (TYPE_GNAT_SPECIFIC, TYPE_DESCRIPTIVE_TYPE): New macros.
11178 (TYPE_IS_OPAQUE): Use HAVE_CPLUS_STRUCT to check if type has
11179 cplus-specific data.
11180 * gdbtypes.c (allocate_cplus_struct_type): Minor stylistic rewrite.
11181 Set new component TYPE_SPECIFIC_FIELD (type).
11182 (gnat_aux_default): New constant.
11183 (allocate_gnat_aux_type): New function.
11184 (init_type): Add initialization the type-specific stuff for
11185 TYPE_CODE_FLT and TYPE_CODE_FUNC types.
11186 (print_gnat_stuff): New function.
11187 (recursive_dump_type): Use HAVE_CPLUS_STRUCT to check for cplus-
11188 specific data. Adjust code that prints the contents of the
11189 type-specific union using the TYPE_SPECIFIC_FIELD value.
11190 * dwarf2read.c (dwarf2_attach_fields_to_type): Do not allocate
11191 the type cplus stuff for Ada types.
11192 (dwarf2_add_member_fn, dwarf2_attach_fn_fields_to_type):
11193 Error out if these routines are called with an Ada type.
11194 (read_structure_type, read_array_type, read_subrange_type):
11195 Add call to set_descriptive_type.
11196 (set_die_type): Initialize the gnat-specific data if necessary.
11197 (need_gnat_info, die_descriptive_type, set_descriptive_type):
11198 New functions.
11199 * ada-lang.c (decode_constrained_packed_array_type): Use
11200 decode_constrained_packed_array_type instead of doing a standard
11201 lookup to locate a parallel type.
11202 (find_parallel_type_by_descriptive_type): New function.
11203 (ada_find_parallel_type_with_name): New function.
11204 (ada_find_parallel_type): Reimplement using
11205 ada_find_parallel_type_with_name.
11206 * ada-valprint.c (print_field_values): Use HAVE_CPLUS_STRUCT
11207 to check if type has a cplus stuff.
11208 * linespec.c (total_number_of_methods): Likewise.
11209 * mdebugread.c (new_type): Likewise.
11210
11211 2010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
11212
11213 * NEWS: Document the 0b binary number prefix parsing.
11214
11215 2010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
11216
11217 * objfiles.c (objfile_relocate1): Change the return type to int.
11218 Describe the new return value. Return non-zero if data changed.
11219 (objfile_relocate): New variable changed. Set it. Call
11220 breakpoint_re_set depending on CHANGED.
11221
11222 2010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
11223
11224 Implement binary numbers parsing.
11225 * c-exp.y (parse_number): New case 'b' and 'B'.
11226
11227 2010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
11228 Tristan Gingold <gingold@adacore.com>
11229
11230 * solib.c (info_sharedlibrary_command): Replace
11231 objfile_has_partial_symbols and objfile_has_full_symbols calls by
11232 objfile_has_symbols.
11233
11234 2010-01-10 Joel Brobecker <brobecker@adacore.com>
11235
11236 * NEWS: Document the improvements made to the mips-irix port.
11237
11238 2010-01-09 Joel Brobecker <brobecker@adacore.com>
11239
11240 Fix the documentation of valprint.c:value_print.
11241 * valprint.c (value_print): Update the function description to
11242 mention that the syntax of the output follows the current_language,
11243 not necessarily C.
11244
11245 2010-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
11246
11247 Fix displacement of separate debug info files.
11248 * objfiles.c (objfile_relocate): Rename to ...
11249 (objfile_relocate1): ... here and make it static. Extend the comment.
11250 (objfile_relocate): New function.
11251 * solib-spu.c (spu_relocate_main_executable): Explicitly check if
11252 SYMFILE_OBJFILE is NULL. Remove variables objfile and old_chain.
11253 Remove following of SEPARATE_DEBUG_OBJFILE. new_offsets is now
11254 allocated using alloca.
11255 * symfile.c (copy_section_addr_info): Remove.
11256 (build_section_addr_info_from_objfile): Make it global. New variables
11257 addr_bit and mask, use them.
11258 * symfile.h (build_section_addr_info_from_objfile): New prototype.
11259 (copy_section_addr_info): Remove.
11260
11261 2010-01-09 Joel Brobecker <brobecker@adacore.com>
11262
11263 Signal unwinder for mips-irix N32.
11264 * mips-irix-tdep.c: #include mips-tdep.h, trad-frame.h, and
11265 tramp-frame.h.
11266 (SIGTRAMP_FRAME_SIZE, SIGCONTEXT_PC_OFF, SIGCONTEXT_REGS_OFF)
11267 (SIGCONTEXT_FPREGS_OFF, SIGCONTEXT_FPCSR_OFF, SIGCONTEXT_HI_OFF)
11268 (SIGCONTEXT_LO_OFF): New macros.
11269 (mips_irix_n32_tramp_frame_init): New function.
11270 (mips_irix_n32_tramp_frame): New static constant.
11271 (mips_irix_init_abi): Prepend the mips_irix_n32_tramp_frame unwinder.
11272
11273 2010-01-09 Joel Brobecker <brobecker@adacore.com>
11274
11275 Breakpoint in shared library does not work on mips-irix.
11276 * procfs.c: #include "observer.h".
11277 (procfs_inferior_created): New function, moving here the code
11278 which unsets the syssgi syscall-exit notifications.
11279 (procfs_create_inferior): Remove the code which unsets the syssgi
11280 syscall-exit notifications. It is too early to do this here.
11281 (_initialize_procfs): Attach the procfs_inferior_created observer.
11282
11283 2010-01-09 Joel Brobecker <brobecker@adacore.com>
11284
11285 Wrong return convention for arrays (mips-irix).
11286 * mips-tdep.c (mips_n32n64_return_value): Arrays whose size is
11287 128 bits or smaller are returned the same way as structs
11288 and unions of the the same size.
11289
11290 2010-01-09 Joel Brobecker <brobecker@adacore.com>
11291
11292 Cannot set the PC on mips-irix.
11293 * irix5-nat.c (fill_gregset): Check regno against the raw PC
11294 register number, no the cooked one.
11295
11296 2010-01-09 Joel Brobecker <brobecker@adacore.com>
11297
11298 Error while loading core file on mips-irix.
11299 * solib-irix.c (irix_solib_create_inferior_hook): Do nothing
11300 if debugging from a core file.
11301
11302 2010-01-09 Joel Brobecker <brobecker@adacore.com>
11303
11304 GDB hangs when attaching to process on mips-irix.
11305 * solib-irix.c (irix_solib_create_inferior_hook): Do nothing if
11306 attaching to a process.
11307
11308 2010-01-09 Joel Brobecker <brobecker@adacore.com>
11309
11310 Use the correct breakpoint instruction on mips-irix.
11311 * mips-tdep.c (mips_breakpoint_from_pc): Add new static variable
11312 containing the correct breakpoint instruction to use on mips-irix.
11313 Use it when the osabi is GDB_OSABI_IRIX.
11314
11315 2010-01-09 Joel Brobecker <brobecker@adacore.com>
11316
11317 -Wunused warning in procfs.c (mips-irix only).
11318 * procfs.c (gdb_praddset, gdb_prdelset): New macros. Use them
11319 throughout instead of using praddset and prdelset respectively.
11320
11321 2010-01-09 Joel Brobecker <brobecker@adacore.com>
11322
11323 GDB crash while stepping into function.
11324 * infrun.c (handle_inferior_event): Refetch the current frame
11325 after handling what.main_action, in case that pointer became
11326 dangling.
11327
11328 2010-01-09 Joel Brobecker <brobecker@adacore.com>
11329
11330 Fix build failure of solaris-hosted cross debuggers.
11331 * ada-valprint.c, parse.c: Include defs.h before including ctype.h.
11332
11333 2010-01-09 Daniel Gutson <dgutson@codesourcery.com>
11334
11335 Fix build failure on sparc-solaris.
11336 * procfs.c: (procfs_do_thread_registers) Use elfcore_write_lwpstatus.
11337
11338 2010-01-08 Jan Kratochvil <jan.kratochvil@redhat.com>
11339
11340 Move some symfile code into subroutines.
11341 * symfile.h (relative_addr_info_to_section_offsets)
11342 (addr_info_make_relative): New prototypes.
11343 * symfile.c (default_symfile_offsets): Move a part to ...
11344 (relative_addr_info_to_section_offsets): ... this new function.
11345 (default_symfile_offsets): Call it.
11346 (syms_from_objfile <!mainline && addrs && addrs->other[0].name>): Move
11347 this part to ...
11348 (addr_info_make_relative): ... this new function.
11349
11350 2010-01-08 Jan Kratochvil <jan.kratochvil@redhat.com>
11351
11352 Add from_tty to solib_create_inferior_hook.
11353 * infcmd.c (post_create_inferior): Move solib_add after
11354 solib_create_inferior_hook. Pass from_tty to
11355 solib_create_inferior_hook. Call solib_add and SOLIB_ADD with
11356 0 from_tty and comment why.
11357 * infrun.c (follow_exec): Pass from_tty solib_create_inferior_hook as 0.
11358 * linux-nat.c (linux_child_follow_fork): Likewise.
11359 * nto-procfs.c (procfs_post_attach, procfs_create_inferior): Likewise.
11360 * solib-darwin.c (darwin_solib_create_inferior_hook): New parameter
11361 from_tty.
11362 * solib-frv.c (frv_solib_create_inferior_hook): Likewise.
11363 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
11364 * solib-null.c (null_solib_create_inferior_hook): Likewise.
11365 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
11366 * solib-pa64.c (pa64_solib_create_inferior_hook): Likewise.
11367 * solib-som.c (som_solib_create_inferior_hook): Likewise.
11368 * solib-spu.c (spu_solib_create_inferior_hook): New parameter from_tty.
11369 Pass it to svr4_so_ops.solib_create_inferior_hook.
11370 * solib-sunos.c (sunos_solib_create_inferior_hook): New parameter
11371 from_tty.
11372 * solib-svr4.c (enable_break): New parameter from_tty. Pass it to
11373 solib_add.
11374 (svr4_solib_create_inferior_hook): New parameter from_tty. Pass it to
11375 enable_break.
11376 * solib-target.c (solib_target_solib_create_inferior_hook): New
11377 parameter from_tty.
11378 * solib.c (solib_create_inferior_hook): New parameter from_tty. Pass
11379 it to ops->solib_create_inferior_hook.
11380 (reload_shared_libraries): Pass from_tty to solib_create_inferior_hook.
11381 Move solib_add after solib_create_inferior_hook, call it now with
11382 from_tty as 0. New comment there.
11383 * solib.h (solib_create_inferior_hook): New parameter from_tty.
11384 * solist.h (struct target_so_ops <solib_create_inferior_hook>):
11385 Likewise.
11386
11387 2010-01-08 Vladimir Prus <vladimir@codesourcery.com>
11388
11389 Fix multiexec race.
11390 * infrun.c (handle_inferior_event): Use get_thread_regcache
11391 with events ptid, not get_current_regcache.
11392
11393 2009-01-08 Joel Brobecker <brobecker@adacore.com>
11394
11395 GDB crash with empty executable name (MinGW).
11396 * source.c (openp): Add assert that parameter string is not NULL.
11397 if parameter string is an empty string, then return with a failure
11398 immediately.
11399
11400 2009-01-08 Joel Brobecker <brobecker@adacore.com>
11401
11402 Get rid of support for VAX Floats.
11403 * ada-lang.h (ada_is_vax_floating_type, ada_vax_float_type_suffix)
11404 (ada_vax_float_print_function): Delete.
11405 * ada-lang.c (ada_is_vax_floating_type, ada_vax_float_type_suffix)
11406 (ada_vax_float_print_function): Delete.
11407 * ada-typeprint.c (print_vax_floating_point_type): Delete.
11408 (ada_print_type): Remove support for VAX floats.
11409 * ada-valprint.c (ada_val_print_1): Remove support for VAX floats.
11410
11411 2010-01-08 Jan Kratochvil <jan.kratochvil@redhat.com>
11412
11413 * stabsread.c (read_args): Handle zero arguments.
11414
11415 2009-01-08 Joel Brobecker <brobecker@adacore.com>
11416
11417 Cannot find in-tree libiconv.a after reconfigure.
11418 * acinclude.m4 (AM_ICONV): If we find an in-tree libiconv.a
11419 that we can use, then cache the path to this archive.
11420 * configure: Regenerate.
11421
11422 2010-01-07 Stan Shebs <stan@codesourcery.com>
11423
11424 Make tracepoint operations go through target vector.
11425 * target.h (enum trace_find_type): New enum.
11426 (struct target_ops): New fields to_trace_init,
11427 to_download_tracepoint, to_download_trace_state_variable,
11428 to_trace_set_readonly_regions, to_trace_start, to_get_trace_status,
11429 to_trace_stop, to_trace_find, to_get_trace_state_variable_value,
11430 to_set_disconnected_tracing.
11431 (target_trace_init): New macro.
11432 (target_download_tracepoint): New macro.
11433 (target_download_trace_state_variable): New macro.
11434 (target_trace_start): New macro.
11435 (target_trace_set_readonly_regions): New macro.
11436 (target_get_trace_status): New macro.
11437 (target_trace_stop): New macro.
11438 (target_trace_find): New macro.
11439 (target_get_trace_state_variable_value): New macro.
11440 (target_set_disconnected_tracing): New macro.
11441 * target.c (update_current_target): Inherit and set defaults for
11442 tracepoint operations.
11443 * tracepoint.c (default_collect): Make globally visible.
11444 (target_is_remote): Remove, along with all calls.
11445 (tvariables_info): Call target_get_trace_state_variable_value.
11446 (remote_set_transparent_ranges): Remove.
11447 (trace_start_command): Call target_trace_init,
11448 target_download_tracepoint, etc.
11449 (download_tracepoint): Remove.
11450 (trace_stop_command): Simplify.
11451 (stop_tracing): Call target_trace_stop.
11452 (get_trace_status): Call target_get_trace_status.
11453 (trace_status_command): Add case for targets that cannot trace.
11454 (finish_tfind_command): Change to take numerical arguments, call
11455 target_trace_find.
11456 (trace_find_command): Update call to finish_tfind_command.
11457 (trace_find_pc_command): Ditto.
11458 (trace_find_tracepoint_command): Ditto.
11459 (trace_find_line_command): Ditto.
11460 (trace_find_range_command): Ditto.
11461 (trace_find_outside_command): Ditto.
11462 (set_disconnected_tracing_value): Call
11463 target_set_disconnected_tracing.
11464 * remote.c: Add protocol encoding bits from tracepoint.c.
11465 (trace_error): Move from tracepoint.c.
11466 (remote_get_noisy_reply): Ditto.
11467 (free_actions_list_cleanup_wrapper): Ditto.
11468 (free_actions_list): Ditto.
11469 (remote_trace_init): New function.
11470 (remote_download_tracepoint): New function.
11471 (remote_download_trace_state_variable): New function.
11472 (remote_trace_set_readonly_regions): New function.
11473 (remote_trace_start): New function.
11474 (remote_get_trace_status): New function.
11475 (remote_trace_stop): New function.
11476 (remote_trace_find): New function.
11477 (remote_download_trace_state_variable): New function.
11478 (remote_set_disconnected_tracing): New function.
11479 (init_remote_ops): Add tracepoint operations.
11480
11481 * tracepoint.c (trace_dump_command): Don't decr_pc_after_break.
11482
11483 2010-01-07 Tristan Gingold <gingold@adacore.com>
11484
11485 * symfile.c (build_section_addr_info_from_objfile): New function.
11486 (symbol_file_add_separate): Don't use offsets from objfile but
11487 built an addr info.
11488
11489 2010-01-06 Stan Shebs <stan@codesourcery.com>
11490
11491 Support disconnected tracing.
11492 * infcmd.c (detach_command): Ask whether to stop tracing.
11493 * cli/cli-cmds.c (quit_command): Ditto.
11494 * breakpoint.h (struct breakpoint): New field number_on_target.
11495 * breakpoint.c (create_tracepoint_from_upload): New function.
11496 (get_tracepoint_by_number_on_target): New function.
11497 * remote.c (struct remote): New field disconnected_tracing.
11498 (remote_disconnected_tracing_feature): New function.
11499 (remote_protocol_features): Add DisconnectedTracing.
11500 (struct uploaded_tp): New struct.
11501 (uploaded_tps): New global.
11502 (get_uploaded_tp): New function.
11503 (find_matching_tracepoint): New function.
11504 (remote_get_tracing_state): New function.
11505 (remote_start_remote): Call it.
11506 * tracepoint.c (disconnected_tracing): New global.
11507 (trace_start_command): Initialize number_on_target.
11508 (stop_tracing): New function, split out from...
11509 (trace_stop_command): Call stop_tracing.
11510 (get_trace_status): New function, split out from...
11511 (trace_status_command): Call get_trace_status, add info on
11512 disconnection behavior.
11513 (disconnect_or_stop_tracing): New function.
11514 (finish_tfind_command): Translate from number on target.
11515 (trace_find_tracepoint_command): Translate to number on target.
11516 (send_disconnected_tracing_value): New function.
11517 (set_disconnected_tracing): New function.
11518 (_initialize_tracepoint): Add disconnected-tracing variable.
11519 * NEWS: Mention disconnected tracing.
11520
11521 2010-01-06 Tristan Gingold <gingold@adacore.com>
11522
11523 * symtab.c (lookup_global_symbol_from_objfile): Rename objfile
11524 parameter to main_objfile. Iterate on all separate debug objfiles.
11525 * symfile.h (symbol_file_add_separate)
11526 (find_separate_debug_file_by_debuglink): Remove parameter names.
11527 * symfile.c (symbol_file_add_separate): Use add_separate_objfile.
11528 (reread_symbols): Use free_objfile_separate_debug.
11529 * objfiles.h (struct objfile): Add separate_debug_objfile_link.
11530 Adjust comment.
11531 (objfile_separate_debug_iterate, add_separate_debug_objfile)
11532 (free_objfile_separate_debug): New prototypes.
11533 * objfiles.c (objfile_separate_debug_iterate): New function.
11534 (add_separate_debug_objfile, free_objfile_separate_debug): New
11535 functions.
11536 (free_objfile): Use free_objfile_separate_debug. Adjust for
11537 multiple separate debug objfile.
11538 (objfile_has_symbols): Adjust comment. Iterate on all separate
11539 debug objfiles.
11540 * minsyms.c (lookup_minimal_symbol): Adjust for multiple separate
11541 debug objfile.
11542 (lookup_minimal_symbol_text): Ditto.
11543 (lookup_minimal_symbol_by_pc_name): Ditto.
11544 (lookup_minimal_symbol_solib_trampoline): Ditto.
11545 (lookup_minimal_symbol_by_pc_section_1): Iterate on all separate
11546 debug objfiles.
11547
11548 2010-01-05 Stan Shebs <stan@codesourcery.com>
11549
11550 Add fast tracepoints.
11551 * arch-utils.h (default_fast_tracepoint_valid_at): Declare.
11552 * arch-utils.c (default_fast_tracepoint_valid_at): New function.
11553 * breakpoint.h (enum bptype): Add bp_fast_tracepoint.
11554 * breakpoint.c (tracepoint_type): New function.
11555 (ALL_TRACEPOINTS): Use it.
11556 (should_be_inserted): Ditto.
11557 (bpstat_check_location): Ditto.
11558 (print_one_breakpoint_location): Ditto.
11559 (user_settable_breakpoint): Ditto.
11560 (set_breakpoint_location_function): Ditto.
11561 (disable_breakpoints_in_shlibs): Ditto.
11562 (delete_trace_command): Ditto.
11563 (print_it_typical): Add bp_fast_tracepoint case.
11564 (bpstat_what): Ditto.
11565 (print_one_breakpoint_location): Ditto.
11566 (allocate_bp_location): Ditto.
11567 (mention): Ditto.
11568 (breakpoint_re_set_one): Ditto.
11569 (disable_command): Ditto.
11570 (enable_command): Ditto.
11571 (check_fast_tracepoint_sals): New function.
11572 (break_command_really): Call it.
11573 (ftrace_command): New function.
11574 (_initialize_breakpoint): Add ftrace command.
11575 * gdbarch.sh (fast_tracepoint_valid_at): New.
11576 * gdbarch.h, gdbarch.c: Regenerate.
11577 * i386-tdep.c (i386_fast_tracepoint_valid_at): New function.
11578 (i386_gdbarch_init): Use it.
11579 * remote.c (struct remote_state): New field fast_tracepoints.
11580 (PACKET_FastTracepoints): New packet config type.
11581 (remote_fast_tracepoint_feature): New function.
11582 (remote_protocol_features): Add FastTracepoints.
11583 (remote_supports_fast_tracepoints): New function.
11584 (_initialize_remote): Add FastTracepoints.
11585 * tracepoint.c (download_tracepoint): Add fast tracepoint option.
11586 * NEWS: Mention fast tracepoints.
11587
11588 2010-01-06 Joel Brobecker <brobecker@adacore.com>
11589
11590 * gdb-gdb.py: New file.
11591
11592 2010-01-05 Michael Snyder <msnyder@vmware.com>
11593
11594 * infrun.c (handle_inferior_event): Fix typo in comment.
11595
11596 2010-01-05 Jan Kratochvil <jan.kratochvil@redhat.com>
11597
11598 * symfile.c (syms_from_objfile): Remove the !MAINLINE conditional.
11599
11600 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
11601
11602 * features/Makefile (WHICH): Add s390-linux32, s390-linux64,
11603 and s390x-linux64.
11604 (s390-linux32-expedite): Define.
11605 (s390-linux64-expedite): Define.
11606 (s390x-linux64-expedite): Define.
11607 * features/s390-acr.xml: New file.
11608 * features/s390-fpr.xml: New file.
11609 * features/s390-core32.xml: New file.
11610 * features/s390-core64.xml: New file.
11611 * features/s390x-core64.xml: New file.
11612 * features/s390-linux32.xml: New file.
11613 * features/s390-linux64.xml: New file.
11614 * features/s390x-linux64.xml: New file.
11615 * features/s390-linux32.c: New generated file.
11616 * features/s390-linux64.c: New generated file.
11617 * features/s390x-linux64.c: New generated file.
11618
11619 * regformats/s390-linux32.dat: New generated file.
11620 * regformats/s390-linux64.dat: New generated file.
11621 * regformats/s390x-linux64.dat: New generated file.
11622 * regformats/reg-s390.dat: Remove.
11623 * regformats/reg-s390x.dat: Remove.
11624
11625 * s390-nat.c: Include "auxv.h" and <elf.h>.
11626 (HWCAP_S390_HIGH_GPRS): Define if undefined.
11627 (s390_target_wordsize): New function.
11628 (s390_auxv_parse): Likewise.
11629 (s390_get_hwcap): Likewise.
11630 (s390_read_description): Likewise.
11631 (_initialize_s390_nat): Install s390_auxv_parse and
11632 s390_read_description.
11633
11634 * s390-tdep.c: Include "features/s390-linux32.c",
11635 "features/s390-linux64.c", and "features/s390x-linux64.c".
11636 (struct gdbarch_tdep): Add gpr_full_regnum, pc_regnum, and cc_regnum.
11637 (s390_register_call_saved): New function.
11638 (s390_register_name): Remove.
11639 (s390_register_type): Remove.
11640 (s390_dwarf_regmap): Add lower half GPR pseudo DWARF CFI regnums.
11641 (s390_dwarf_reg_to_regnum): Remap GPR regnums to full GPRs.
11642 (s390_adjust_frame_regnum): Remap GPR regnums to lower halves for CFI.
11643 (s390_pseudo_register_name): New function.
11644 (s390_pseudo_register_type): New function.
11645 (s390_pseudo_register_read): Handle both 32-bit and 64-bit cases.
11646 Handle full GPR pesudos and varying pseudo register numbers.
11647 (s390_pseudo_register_write): Likewise
11648 (s390x_pseudo_register_read): Remove.
11649 (s390x_pseudo_register_write): Likewise.
11650 (s390_register_group): Remove.
11651 (s390_pseudo_register_group): New function.
11652 (s390_regmap_gregset): Add GPR upper halves.
11653 (s390x_regmap_gregset): Likewise.
11654 (s390_regmap_fpregset): Likewise.
11655 (s390_regmap_upper): New global variable.
11656 (s390_upper_regset): New global variable.
11657 (s390_upper_regset_sections): New global variable.
11658 (s390_regset_from_core_section): Handle GPR upper halves.
11659 (s390_core_read_description): New function.
11660 (s390_prologue_frame_unwind_cache): Set up ABI call-saved/clobbered
11661 register information. Handle varying pseudo register numbers.
11662 (s390_backchain_frame_unwind_cache): Likewise.
11663 (s390_frame_prev_register): Unwind full GPRs to show lower halves.
11664 (s390_stub_frame_unwind_cache): Handle varying pseudo register numbers.
11665 (s390_sigtramp_frame_unwind_cache): Unwind PSWM and PSWA as well as
11666 PC and CC pseudos. Unwind upper halves and full GPRs as appropriate.
11667 Handle varying pseudo register numbers.
11668 (s390_unwind_pc): Handle varying pseudo register numbers.
11669 (s390_dwarf2_prev_register): New function.
11670 (s390_dwarf2_frame_init_reg): Set up ABI call-saved/clobbered
11671 register information. Handle varying pseudo register numbers.
11672 Install s390_dwarf2_prev_register to unwind full GPRs.
11673 (s390_gdbarch_init): Handle target descriptions. Assign varying
11674 pseudo register numbers. Install s390_adjust_frame_regnum.
11675 (_initialize_s390_tdep): Initialize target descriptions.
11676
11677 * s390-tdep.h (S390_R0_UPPER_REGNUM .. S390_R15_UPPER_REGNUM): Define.
11678 (S390_NUM_REGS): Redefine to include upper half registers.
11679 (S390_PC_REGNUM, S390_CC_REGNUM): Remove.
11680 (S390_NUM_PSEUDO_REGS, S390_NUM_TOTAL_REGS): Likewise.
11681 (tdesc_s390_linux32): Add declaration.
11682 (tdesc_s390_linux64): Likewise.
11683 (tdesc_s390x_linux64): Likewise.
11684
11685 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
11686
11687 * regset.h (struct core_regset_section): Add HUMAN_NAME.
11688 * i386-linux-tdep.c (i386_linux_regset_sections): Fill in HUMAN_NAME.
11689 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections): Likewise.
11690 (ppc_linux_vmx_regset_sections): Likewise.
11691 (ppc_linux_fp_regset_sections): Likewise.
11692
11693 * corelow.c (get_core_register_section): Constify arguments.
11694 (get_core_registers): Use gdbarch_core_regset_sections instead
11695 of hard-coded platform-specific register section names.
11696
11697 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
11698
11699 * dwarf2loc.c (read_pieced_value): If a piece occupies part of
11700 a register, assume the least-significant part is used.
11701 (write_pieced_value): Likewise.
11702
11703 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
11704
11705 * printcmd.c: Include "arch-utils.h".
11706 (do_one_display): Re-parse expression if current architecture changed.
11707
11708 2010-01-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11709 Joel Brobecker <brobecker@adacore.com>
11710
11711 * gdbtypes.c (check_typedef): New comment on type length.
11712 * value.c (allocate_value_lazy): Remove the unused atype variable. New
11713 comment on type length.
11714 (value_primitive_field): Keep the original TYPE value, new comment.
11715
11716 2010-01-01 Jan Kratochvil <jan.kratochvil@redhat.com>
11717
11718 * cli/cli-script.c (process_next_line): Rename p1 as p_end and p2 as
11719 p_start. Change != comparisons to > and < comparisons.
11720
11721 2010-01-01 Jan Kratochvil <jan.kratochvil@redhat.com>
11722
11723 * cli/cli-script.c (process_next_line): Check P2 overrun.
11724
11725 2009-01-01 Joel Brobecker <brobecker@adacore.com>
11726
11727 Update the copyright hearder to add year 2010 for most GDB files.
11728
11729 2009-01-01 Joel Brobecker <brobecker@adacore.com>
11730
11731 Fix build failure in inf-ptrace.c.
11732 * inf-ptrace.c (inf_ptrace_follow_fork): Fix typo.
11733
11734 2010-01-01 Joel Brobecker <brobecker@adacore.com>
11735
11736 * top.c (print_gdb_version): Update copyright year.
11737
11738 2010-01-01, 10 Joel Brobecker <brobecker@adacore.com>
11739
11740 Fix break *FUN'address thread NUM.
11741 * ada-lex.l (task): Expand rule to also match the thread keyword.
11742
11743 2010-01-01 Joel Brobecker <brobecker@adacore.com>
11744
11745 Fix break *FUN'address task NUM.
11746 * ada-lex.l (task): New rule.
11747 * ada-lang.c (valid_task_id): Make sure the Ada task list has
11748 been built before using it.
11749
11750 For older changes see ChangeLog-2009.
11751 \f
11752 Local Variables:
11753 mode: change-log
11754 left-margin: 8
11755 fill-column: 74
11756 version-control: never
11757 coding: utf-8
11758 End: