* python/py-progspace.c (py_free_pspace): Obtain arch another
[binutils-gdb.git] / gdb / ChangeLog
1 2010-12-17 Marc Khouzam <marc.khouzam@ericsson.com>
2
3 * python/py-progspace.c (py_free_pspace): Obtain arch another
4 way to avoid dereferencing a null pointer.
5
6 2010-12-17 Michael Snyder <msnyder@vmware.com>
7
8 * utils.c (do_my_cleanups): Comment fix-up.
9
10 2010-12-17 Kevin Buettner <kevinb@redhat.com>
11
12 * mips-tdep.c (make_mips16_addr): New function.
13 (mips_elf_make_msymbol_special): Don't set the low bit in the
14 symbol's address.
15 (mips_read_pc, mips_unwind_pc, mips_addr_bits_remove): Strip bit
16 indicating mips16 address, if present.
17 (mips_write_pc): Set bit indicating mips16 address when in a mips16
18 function.
19 (mips_eabi_push_dummy_call, mips_o64_push_dummy_call): Likewise,
20 but for each function pointer argument to inferior function call.
21
22 2010-12-17 Tom Tromey <tromey@redhat.com>
23
24 * psympriv.h (struct partial_symtab) <readin>: Move field
25 earlier.
26
27 2010-12-16 Kevin Buettner <kevinb@redhat.com>
28
29 * mips-tdep.c (mips_convert_register_float_case_p)
30 (mips_convert_register_gpreg_case_p): New functions.
31 (mips_convert_register_p): Invoke new functions above.
32 (mips_register_to_value): Add case for fetching value shorter
33 than 64 bits from a 64-bit register.
34 (mips_value_to_register): Add case for storing value shorter
35 than 64 bits into a 64-bit register.
36
37 2010-12-16 Joel Borggrén-Franck <joel.borggren.franck@gmail.com>
38
39 * python/py-value.c (value_object_type) <tp_flags>: Add
40 Py_TPFLAGS_BASETYPE.
41
42 2010-12-16 Mike Frysinger <vapier@gentoo.org>
43
44 * NEWS: Mention new sim --map-info flag.
45
46 2010-12-15 Doug Evans <dje@google.com>
47
48 * dwarf2read.c (_initialize_dwarf2_read): Fix help text of
49 "save gdb-index" command.
50
51 2010-12-15 Tom Tromey <tromey@redhat.com>
52
53 * infrun.c (save_infcall_control_state): Handle the
54 exception-resume breakpoint.
55 (restore_infcall_control_state): Likewise.
56 (discard_infcall_control_state): Likewise.
57
58 2010-12-15 Kevin Buettner <kevinb@redhat.com>
59
60 * mips-tdep.c (mips_pseudo_register_write): Sign extend 32-bit
61 cooked values that are being transferred to 64-bit raw registers.
62 (mips_pseudo_register_read): Revise to preserve symmetry with
63 mips_pseudo_register_write().
64
65 2010-12-15 Greg Watson <g.watson@computer.org>
66
67 * f-exp.y (yylex): Check entire token against keywords.
68
69 2010-12-15 Doug Evans <dje@google.com>
70
71 Rename "maint set python auto-load" to "set auto-load-scripts".
72 * NEWS: Mention it.
73 * python/py-auto-load.c (auto_load_scripts): Renamed from
74 gdbpy_auto_load.
75 (load_auto_scripts_for_objfile): Update.
76 (gdbpy_initialize_auto_load): Rename "maint set python auto-load" to
77 "set auto-load-scripts".
78
79 2010-12-14 Kevin Buettner <kevinb@redhat.com>
80
81 * mips-tdep.c (mips_eabi_push_dummy_call): Place signed, rather
82 than unsigned, values in registers.
83
84 2010-12-14 Ken Werner <ken.werner@de.ibm.com>
85
86 * valops.c (value_one): Use get_array_bounds to compute the number
87 of array elements instead of dividing the length of the array by the
88 length of the element types.
89 * valarith.c (value_complement, value_neg): Likewise.
90
91 2010-12-14 Joel Brobecker <brobecker@adacore.com>
92
93 * irix5-nat.c: Replace fp_r, fp_regs and fp_scr by __fp_r, __fp_regs
94 and __fp_scr respectively throughout.
95 * configure.ac: Compile with -Dsiginfo=__siginfo if building with
96 Python using GCC on IRIX.
97 * configure: Regenerate.
98
99 2010-12-13 Kevin Buettner <kevinb@redhat.com>
100
101 * solib-svr4.c (enable_break): Don't attempt to place breakpoints,
102 when attaching, on the names in bkpt_names: _start, __start, and
103 main.
104
105 2010-12-12 Stan Shebs <stan@codesourcery.com>
106
107 * value.c (value_of_internalvar): Add case for trace state
108 variables.
109
110 2010-12-12 Doug Evans <dje@google.com>
111
112 * dwarf2read.c (dwarf2_per_objfile): New member quick_file_names_table.
113 (dwarf2_per_cu_quick_data): Move definition down to "quick functions"
114 section. Delete members lines full_names. Rename read_lines to
115 no_file_data.
116 (quick_file_names): New struct.
117 (hash_file_name_entry, eq_file_name_entry): New functions.
118 (delete_file_name_entry, create_quick_file_names_table): New functions.
119 (dwarf2_read_index): Initialize quick_file_names_table.
120 (dw2_get_file_names): Renamed from dw2_require_line_header.
121 Return pointer to quick_file_names entry. All callers updated.
122 (dw2_get_real_path): Renamed from dw2_require_full_path.
123 Replace per_cu arg with pointer to quick_file_names entry.
124 All callers updated.
125 (dw2_free_cached_file_names): New function.
126 (dw2_forget_cached_source_info): Call it (via htab_traverse_noresize).
127 (dwarf2_initialize_objfile): Initialize quick_file_names_table in
128 the OBJF_READNOW case.
129 (dwarf2_free_objfile): Rewrite freeing of quick file names tables.
130
131 2010-12-12 Mark Kettenis <kettenis@gnu.org>
132
133 * mips64obsd-tdep.c (floatformats_mips64_quad): New define.
134 (mips64obsd_init_abi): Set long_double_bit and long_double_format.
135
136 2010-12-12 Mark Kettenis <kettenis@gnu.org>
137
138 * sparc-tdep.c: Fix typo in comment.
139
140 2010-12-10 Doug Evans <dje@google.com>
141
142 * dwarf2read.c: Whitespace cleanup, plus comment additions.
143 No code changes.
144
145 2010-12-10 Tom Tromey <tromey@redhat.com>
146
147 * NEWS: Document exception-handling change.
148
149 2010-12-09 Marc Khouzam <marc.khouzam@ericsson.com>
150
151 * mi/mi-parse.c (mi_parse): Wrong error message.
152
153 2010-12-09 Doug Evans <dje@google.com>
154
155 * symfile.h (quick_symbol_functions): Clarify usage of
156 map_symbol_filenames.
157
158 2010-12-09 Tom Tromey <tromey@redhat.com>
159
160 * mi/mi-parse.h (mi_parse): Update.
161 * mi/mi-parse.c (mi_parse_cleanup): New function.
162 (mi_parse): Add 'token' argument. Throw exception on error.
163 * mi/mi-main.c (mi_print_exception): New function.
164 (mi_execute_command): Use mi_print_exception. Catch exceptions
165 from mi_parse.
166
167 2010-12-09 Tom Tromey <tromey@redhat.com>
168
169 PR c++/9593:
170 * thread.c (clear_thread_inferior_resources): Call
171 delete_longjmp_breakpoint.
172 * infrun.c (handle_inferior_event): Handle exception breakpoints.
173 (handle_inferior_event): Likewise.
174 (insert_exception_resume_breakpoint): New function.
175 (check_exception_resume): Likewise.
176 * inferior.h (delete_longjmp_breakpoint_cleanup): Declare.
177 * infcmd.c (delete_longjmp_breakpoint_cleanup): No longer static.
178 (step_1): Set thread's initiating frame.
179 (until_next_continuation): New function.
180 (until_next_command): Support exception breakpoints.
181 (finish_command_continuation): Delete longjmp breakpoint.
182 (finish_forward): Support exception breakpoints.
183 * gdbthread.h (struct thread_info) <initiating_frame>: New field.
184 * breakpoint.h (enum bptype) <bp_exception, bp_exception_resume,
185 bp_exception_master>: New constants.
186 (struct bpstat_what) <is_longjmp>: New field.
187 (set_longjmp_breakpoint): Update.
188 * breakpoint.c (create_exception_master_breakpoint): New function.
189 (update_breakpoints_after_exec): Handle bp_exception_master. Call
190 create_exception_master_breakpoint.
191 (print_it_typical): Handle bp_exception_master, bp_exception.
192 (bpstat_stop_status): Handle bp_exception_master.
193 (bpstat_what): Handle bp_exception_master, bp_exception,
194 bp_exception_resume.
195 (bptype_string): Likewise.
196 (print_one_breakpoint_location): Likewise.
197 (allocate_bp_location): Likewise.
198 (set_longjmp_breakpoint): Handle exception breakpoints. Change
199 interface.
200 (delete_longjmp_breakpoint): Handle exception breakpoints.
201 (mention): Likewise.
202 (struct until_break_command_continuation_args) <thread_num>: New
203 field.
204 (until_break_command_continuation): Call
205 delete_longjmp_breakpoint.
206 (until_break_command): Support exception breakpoints.
207 (delete_command): Likewise.
208 (breakpoint_re_set_one): Likewise.
209 (breakpoint_re_set): Likewise.
210
211 2010-12-08 Doug Evans <dje@google.com>
212
213 * gdbtypes.h (TYPE_IS_OPAQUE): Reformat.
214
215 * gdbtypes.c (check_typedef): Tweak comment.
216
217 PR symtab/12302
218 * dwarf2read.c (struct psymtab_cu_index_map): New struct.
219 (hash_psymtab_cu_index, eq_psymtab_cu_index): New functions.
220 (struct addrmap_index_data): New struct.
221 (add_address_entry): Remove arg `pst', new args `start', `end'.
222 (add_address_entry_worker, write_address_map): New functions.
223 (write_psymtabs_to_index): Address table generation moved to
224 write_address_map. Build a table mapping psymtab to CU index
225 to pass to it.
226
227 * dwarf2read.c (write_psymtabs_to_index): When stat fails, pass file
228 name to perror.
229
230 * symfile.h (quick_symbol_functions): Clarify usage of
231 expand_symtabs_with_filename.
232 * dwarf2read.c (dw2_expand_symtabs_with_filename): Only iterate over
233 comp units, ignore type units.
234
235 * dwarf2read.c (dw2_expand_symtabs_with_filename): Use FILENAME_CMP.
236
237 2010-12-07 Doug Evans <dje@google.com>
238
239 * dwarf2read.c (dw2_lookup_symtab): Remove duplicate call to
240 gdb_realpath.
241
242 PR python/12227
243 * NEWS: Mention -data-directory.
244 * main.c (captured_main): Recognize -data-directory.
245
246 2010-12-06 Marc Khouzam <marc.khouzam@ericsson.com>
247
248 * mi/mi-parse.c (mi_parse): Missing else.
249
250 2010-12-04 Masaki Muranaka <monaka@monami-software.com>
251
252 * configure.tgt: Accept microblaze*-*-linux* for linux target
253 and microblaze*-*-* for as target.
254
255 2010-12-02 Keith Seitz <keiths@redhat.com>
256
257 * linespec.c (find_method): Move name canonicalization outside
258 the loop.
259 Be paranoid and use a cleanup.
260
261 2010-12-01 Doug Evans <dje@google.com>
262
263 * dwarf2read.c (save_gdb_index_command): Add comment.
264
265 2010-12-01 Ulrich Weigand <uweigand@de.ibm.com>
266
267 * valops.c (value_assign): Returned value is never lazy. If a
268 C++ class type is returned, fix incorrect enclosing type / embedded
269 offset. If internal variable is returned, allocate new internalvar
270 value using value_of_internalvar.
271
272 * NEWS: Document changes in behavior of "print x = 0" and similar
273 expressions.
274
275 2010-11-29 Doug Evans <dje@google.com>
276
277 * python/lib/gdb/printing.py (register_pretty_printer): Change
278 printer-name:subprinter-name to printer-name;subprinter-name.
279 * python/lib/gdb/command/pretty_printers.py (parse_printer_regexps):
280 Ditto.
281 (InfoPrettyPrinter, EnablePrettyPrinter, DisablePrettyPrinter): Ditto.
282
283 2010-11-29 Tom Tromey <tromey@redhat.com>
284
285 * opencl-lang.c (lval_func_check_synthetic_pointer): New
286 function.
287 * value.h (struct lval_funcs) <indirect, check_synthetic_pointer>:
288 New fields.
289 (value_bits_synthetic_pointer): Declare.
290 * value.c (value_bits_synthetic_pointer): New function.
291 * valprint.c (valprint_check_validity): Handle synthetic
292 pointers.
293 * valops.c (value_ind): Use new 'indirect' lval_funcs method.
294 * valarith.c (value_ptradd): Use set_value_component_location.
295 * p-valprint.c (pascal_object_print_value_fields): Handle
296 synthetic pointers.
297 * jv-valprint.c (java_print_value_fields): Handle synthetic
298 pointers.
299 * dwarf2read.c (dwarf_stack_op_name): Add
300 DW_OP_GNU_implicit_pointer.
301 (dwarf2_fetch_die_location_block): Add get_frame_pc, baton
302 arguments. Handle location lists.
303 (fill_in_loclist_baton): New function.
304 (dwarf2_symbol_mark_computed): Use it.
305 * dwarf2loc.h (dwarf2_find_location_expression): Declare.
306 (dwarf2_fetch_die_location_block): Add get_frame_pc, baton
307 arguments.
308 * dwarf2loc.c (dwarf2_find_location_expression): Rename from
309 find_location_expression. No longer static. Update all callers.
310 (dwarf_expr_frame_pc): New function.
311 (per_cu_dwarf_call): Add get_frame_pc, baton arguments. Update
312 all callers.
313 (struct piece_closure) <per_cu>: New field.
314 (allocate_piece_closure): Add per_cu argument.
315 (read_pieced_value): Handle DWARF_VALUE_IMPLICIT_POINTER.
316 (check_pieced_value_bits): Remove validity argument, add check_for
317 argument. Handle DWARF_VALUE_IMPLICIT_POINTER.
318 (check_pieced_value_validity, check_pieced_value_invalid):
319 Update.
320 (check_pieced_synthetic_pointer): New function.
321 (get_frame_address_in_block_wrapper): New function.
322 (indirect_pieced_value): New function.
323 (pieced_value_funcs): Update.
324 (invalid_synthetic_pointer): New function.
325 (dwarf2_evaluate_loc_desc_full): Rename from
326 dwarf2_evaluate_loc_desc. Add byte_offset argument.
327 (dwarf2_evaluate_loc_desc): Rewrite.
328 (dwarf2_loc_desc_needs_frame): Set new field on context.
329 (get_ax_pc): New function.
330 (disassemble_dwarf_expression): Handle
331 DW_OP_GNU_implicit_pointer.
332 * dwarf2expr.h (enum dwarf_value_location)
333 <DWARF_VALUE_IMPLICIT_POINTER>: New constant.
334 (struct dwarf_expr_context) <get_frame_pc>: New field.
335 (struct dwarf_expr_piece) <v.ptr>: New field.
336 * dwarf2expr.c (add_piece): Handle DWARF_VALUE_IMPLICIT_POINTER.
337 (execute_stack_op): Handle DW_OP_GNU_implicit_pointer.
338 * dwarf2-frame.c (no_get_frame_pc): New function.
339 (execute_stack_op): Set new field on context.
340 * cp-valprint.c (cp_print_value_fields): Handle synthetic
341 pointers.
342
343 2010-11-29 Phil Muldoon <pmuldoon@redhat.com>
344
345 PR python/12199
346
347 * python/py-breakpoint.c (bppy_delete_breakpoint): New function.
348
349 2010-11-28 Jan Kratochvil <jan.kratochvil@redhat.com>
350
351 Fix step_resume_breakpoint unsaved during an infcall.
352 * gdbthread.h (struct thread_control_state): Move here field
353 step_resume_breakpoint ...
354 (struct thread_info): ... from here.
355 * infrun.c (save_infcall_control_state): Reset
356 control.step_resume_breakpoint to NULL.
357 (restore_infcall_control_state, discard_infcall_control_state): Delete
358 control.step_resume_breakpoint.
359 * arm-linux-tdep.c, infrun.c, thread.c: Update all the references to
360 the moved field.
361
362 2010-11-28 Jan Kratochvil <jan.kratochvil@redhat.com>
363
364 Rename and move inferior_thread_state and inferior_status.
365 * gdbthread.h (struct thread_control_state): New struct, move fields
366 step_range_start, step_range_end, step_frame_id, step_stack_frame_id,
367 trap_expected, proceed_to_finish, in_infcall, step_over_calls,
368 stop_step and stop_bpstat here from struct thread_info.
369 (struct thread_suspend_state): New struct, move field stop_signal here
370 from struct thread_info.
371 (struct thread_info): Move the fields above from this struct.
372 * inferior.h: Move the inferior_thread_state and inferior_status
373 declarations comment to their definitions at infrun.c.
374 (struct inferior_control_state): New struct, move field stop_soon from
375 struct inferior here.
376 (struct inferior_suspend_state): New empty struct.
377 (struct inferior): New fields control and suspend. Move out field
378 stop_soon.
379 * infrun.c (struct inferior_thread_state): Rename to ...
380 (infcall_suspend_state): ... here. Replace field stop_signal by
381 fields thread_suspend and inferior_suspend.
382 (save_inferior_thread_state): Rename to ...
383 (save_infcall_suspend_state): ... here. New variable inf. Update the
384 code for new fields.
385 (restore_inferior_thread_state): Rename to ...
386 (restore_infcall_suspend_state): ... here. New variable inf. Update
387 the code for new fields.
388 (do_restore_inferior_thread_state_cleanup): Rename to ...
389 (do_restore_infcall_suspend_state_cleanup): ... here.
390 (make_cleanup_restore_inferior_thread_state): Rename to ...
391 (make_cleanup_restore_infcall_suspend_state): ... here.
392 (discard_inferior_thread_state): Rename to ...
393 (discard_infcall_suspend_state): ... here.
394 (get_inferior_thread_state_regcache): Rename to ...
395 (get_infcall_suspend_state_regcache): ... here.
396 (struct inferior_status): Rename to ...
397 (struct infcall_control_state): ... here. Replace fields
398 step_range_start, step_range_end, step_frame_id, step_stack_frame_id,
399 trap_expected, proceed_to_finish, in_infcall, step_over_calls,
400 stop_step, stop_bpstat and stop_soon by fields thread_control and
401 inferior_control.
402 (save_inferior_status): Rename to ...
403 (save_infcall_control_state): ... here. Update the code for new
404 fields.
405 (restore_inferior_status): Rename to ...
406 (restore_infcall_control_state): ... here. Update the code for new
407 fields.
408 (do_restore_inferior_status_cleanup): Rename to ...
409 (do_restore_infcall_control_state_cleanup): ... here.
410 (make_cleanup_restore_inferior_status): Rename to ...
411 (make_cleanup_restore_infcall_control_state): ... here.
412 (discard_inferior_status): Rename to ...
413 (discard_infcall_control_state): ... here.
414 * alpha-tdep.c, breakpoint.c, dummy-frame.c, dummy-frame.h,
415 exceptions.c, fbsd-nat.c, gdbthread.h, infcall.c, infcmd.c,
416 inferior.c, inferior.h, infrun.c, linux-nat.c, mi/mi-interp.c,
417 mips-tdep.c, procfs.c, solib-irix.c, solib-osf.c, solib-spu.c,
418 solib-sunos.c, solib-svr4.c, thread.c, windows-nat.c: Update all the
419 references to the moved fields and renamed functions.
420
421 2010-11-26 Jan Kratochvil <jan.kratochvil@redhat.com>
422
423 * infcall.c (struct inferior_thread_state) <siginfo_gdbarch>: Fix up
424 the comment.
425 (save_inferior_thread_state): Reset tp->stop_signal.
426
427 2010-11-26 Jan Kratochvil <jan.kratochvil@redhat.com>
428
429 * infcall.c (call_function_by_hand): Remove variable
430 caller_state_cleanup.
431
432 2010-11-25 Marc Khouzam <marc.khouzam@ericsson.com>
433
434 PR breakpoints/12217
435
436 * breakpoint.c (is_marker_spec): Check for NULL.
437
438 2010-11-25 Pedro Alves <pedro@codesourcery.com>
439
440 * breakpoint.h: No longer include python.h or python-internal.h.
441 (struct breakpoint_object): Forward declare.
442 * defs.h (PyObject) [!HAVE_PYTHON]: Don't define.
443 * varobj.c (PyObject) [!HAVE_PYTHON]: Define.
444 * python/py-breakpoint.c (build_bp_list): Cast py_bp_object to
445 PyObject pointer.
446 (gdbpy_breakpoint_created): Remove casts around py_bp_object
447 accesses.
448
449 2010-11-24 Joel Brobecker <brobecker@adacore.com>
450
451 * rs6000-tdep.c (bfd_uses_spe_extensions): Use bfd_elf_get_obj_attr_int
452 only if HAVE_ELF is defined.
453
454 2010-11-24 Jan Kratochvil <jan.kratochvil@redhat.com>
455
456 Code cleanup.
457 * infrun.c (struct inferior_status) <stepping_over_breakpoint>
458 (save_inferior_status) <stepping_over_breakpoint>
459 (restore_inferior_status) <stepping_over_breakpoint>: Rename to
460 trap_expected.
461 (struct inferior_status) <step_resume_break_address>: Remove.
462
463 2010-11-24 Jan Kratochvil <jan.kratochvil@redhat.com>
464
465 Code cleanup.
466 * infrun.c (struct inferior_status, save_inferior_status)
467 (restore_inferior_status): Group and reorder the fields, comment their
468 groups.
469
470 2010-11-24 Jan Kratochvil <jan.kratochvil@redhat.com>
471
472 Code cleanup.
473 * dictionary.c
474 (struct dict_vector) <iter_match_first, iter_match_next>
475 (iter_match_first_hashed, iter_match_next_hashed)
476 (iter_match_first_linear, iter_match_next_linear)
477 (dict_iter_match_first, dict_iter_match_next, iter_match_first_hashed)
478 (iter_match_next_hashed, iter_match_first_linear)
479 (iter_match_next_linear): Use symbol_compare_ftype.
480 * dictionary.h: Include symfile.h.
481 (dict_iter_match_first, dict_iter_match_next): Use
482 symbol_compare_ftype.
483 * dwarf2read.c (dw2_map_matching_symbols): Likewise.
484 * psymtab.c (match_partial_symbol, match_partial_symbol, map_block)
485 (map_matching_symbols_psymtab): Likewise.
486 * symfile.h (symbol_compare_ftype): New typedef.
487 (struct quick_symbol_functions) <map_matching_symbols): Use
488 symbol_compare_ftype.
489
490 2010-11-23 Tom Tromey <tromey@redhat.com>
491
492 * configure: Rebuild.
493 * configure.ac (READLINE_TEXI_INCFLAG): New subst.
494
495 2010-11-19 Tom Tromey <tromey@redhat.com>
496
497 * Makefile.in (SUBDIRS): Add doc.
498 * configure: Rebuild.
499 * configure.ac: Don't configure in doc. Create doc/Makefile.
500
501 2010-11-23 Phil Muldoon <pmuldoon@redhat.com>
502
503 PR python/12212
504
505 * python/py-inferior.c (find_thread_object): Check if PIDGET
506 returns 0.
507
508 010-11-22 Joel Brobecker <brobecker@adacore.com>
509
510 * ada-lang.c (ada_template_to_fixed_record_type_1): Delete bit_incr.
511
512 2010-11-22 Joel Brobecker <brobecker@adacore.com>
513
514 * ada-lang.c (ada_to_fixed_type): Expand function documentation.
515 Return the original type if the main type portions match rather
516 than when the type themselves match.
517
518 2010-11-22 Joel Brobecker <brobecker@adacore.com>
519
520 * ada-lang.c (ada_template_to_fixed_record_type_1):
521 For dynamic fields, check the field size against the maximum
522 object size.
523
524 2010-11-22 Joel Brobecker <brobecker@adacore.com>
525
526 * mips-irix-tdep.c (mips_irix_n32_stack_tramp_frame_init): New
527 function.
528 (mips_irix_n32_stack_tramp_frame): New static global.
529 (mips_irix_init_abi): Add mips_irix_n32_stack_tramp_frame to
530 list of unwinder.
531
532 2010-11-22 Jerome Guitton <guitton@adacore.com>
533
534 * ada-tasks.c (get_tcb_types_info): Use C lookups to get
535 ATCB symbols.
536
537 2010-11-22 Joel Brobecker <brobecker@adacore.com>
538
539 * ada-lang.c (ada_check_typedef): Call ada_check_typedef only
540 if type1 is a typedef.
541
542 2010-11-22 Joel Brobecker <brobecker@adacore.com>
543
544 * ada-lang.h (ADA_KNOWN_AUXILIARY_FUNCTION_NAME_PATTERNS): Add
545 "_finalizer" to the list.
546
547 2010-11-22 Joel Brobecker <brobecker@adacore.com>
548
549 * symfile.c: Remove all "#if 0"/"#endif" blocks.
550
551 2010-11-22 Joel Brobecker <brobecker@adacore.com>
552
553 * symfile.c: Add missing second space after period in various comments.
554
555 2010-11-22 Joel Brobecker <brobecker@adacore.com>
556
557 * ada-typeprint.c (print_array_type): Fix formatting in comment.
558 (print_selected_record_field_types): Fix formatting in function
559 documentation.
560
561 2010-11-22 Joel Brobecker <brobecker@adacore.com>
562
563 * ravenscar-thread.c (_initialize_ravenscar): Fix copy/paste typo
564 in name of "show ravenscar" prefix command name.
565
566 2010-11-22 Joel Brobecker <brobecker@adacore.com>
567
568 * ravenscar-thread.c (show_ravenscar_task_switching_command):
569 Add missing '\n' in output.
570
571 2010-11-22 Joel Brobecker <brobecker@adacore.com>
572
573 * ravenscar-thread.c (running_thread_name): Change value.
574 (read_thread_id): Remove advance declaration.
575 (get_running_thread_msymbol): New function.
576 (has_ravenscar_runtime): Use get_running_thread_msymbol to
577 compute msym_running_thread.
578 (get_running_thread_id): Renames read_thread_id. Slight modifications
579 to not take any argument anymore, using get_running_thread_msymbol
580 to determine which symbol to use instead.
581 (ravenscar_running_thread): Use get_running_thread_id instead of
582 read_thread_id.
583
584 2010-11-22 Joel Brobecker <brobecker@adacore.com>
585
586 * ravenscar-sparc-thread.c (supply_register_at_address):
587 Fix passing of buf in call to regcache_raw_supply.
588
589 2010-11-22 Jan Kratochvil <jan.kratochvil@redhat.com>
590
591 * dwarf2read.c (dwarf2_read_index): Ignore higher .gdb_index versions.
592
593 2010-11-22 Tom Tromey <tromey@redhat.com>
594
595 * Makefile.in (.PRECIOUS): Reference ada-lex.c.
596
597 2010-11-19 Keith Seitz <keiths@redhat.com>
598
599 * data-directory/Makefile.in (SYSCALLS_INSTALL_DIR):
600 Remove extraneous '/' after $(DESTDIR).
601 (PYTHON_INSTALL_DIR): Likewise.
602
603 2010-11-19 Jan Kratochvil <jan.kratochvil@redhat.com>
604
605 Fix stale memory references.
606 * elfread.c (elf_symfile_read): Replace xmalloc by bfd_alloc, drop
607 xfree, new comment.
608
609 2010-11-19 Jan Kratochvil <jan.kratochvil@redhat.com>
610 Tom Tromey <tromey@redhat.com>
611
612 * Makefile.in (.y.c): Directly create $@ from YLWRAP.
613 (.PHONY): Remove for .y outputs.
614
615 2010-11-19 Will Drewry <wad@google.com>
616 Tavis Ormandy <taviso@google.com>
617 Jan Kratochvil <jan.kratochvil@redhat.com>
618
619 * dwarf2read.c (decode_locdesc): Enforce location description stack
620 boundaries.
621
622 2010-11-18 Pierre Muller <muller@ics.u-strasbg.fr>
623
624 * arm-tdep.c (arm_in_function_epilogue_p): Fix code when "MOV SP"
625 instruction is found.
626
627 2010-11-17 Tom Tromey <tromey@redhat.com>
628
629 * value.c (value_entirely_optimized_out): Check the
630 'check_any_valid' field.
631
632 2010-11-16 Jan Kratochvil <jan.kratochvil@redhat.com>
633
634 * ada-lang.c (modify_general_field): Remove.
635 (make_array_descriptor): Replace all modify_general_field calls by
636 modify_field.
637 * value.c (modify_field): Update comment. New variable bytesize.
638 Normalize BITPOS. Initialize BYTESIZE, use it.
639
640 2010-11-16 Jan Kratochvil <jan.kratochvil@redhat.com>
641
642 * dwarf2read.c (dw2_forget_cached_source_info): Clear the FULL_NAMES
643 elements after xfree.
644
645 2010-11-16 Tom Tromey <tromey@redhat.com>
646
647 * gdb-add-index.sh: Really remove.
648
649 2010-11-16 Jan Kratochvil <jan.kratochvil@redhat.com>
650
651 Code cleanup.
652 * dwarf2read.c (alloc_one_comp_unit): Rename prototype to ...
653 (init_one_comp_unit): ... this one.
654 (prepare_one_comp_unit): New prototype.
655 (dw2_require_line_header, process_psymtab_comp_unit): Use
656 init_one_comp_unit.
657 (process_psymtab_comp_unit): Use prepare_one_comp_unit.
658 (load_partial_comp_unit): Remove variable attr. Use
659 init_one_comp_unit with xmalloc. Use prepare_one_comp_unit.
660 (load_full_comp_unit): Use init_one_comp_unit with xmalloc. Use
661 prepare_one_comp_unit.
662 (read_signatured_type): Remove variable attr. Use init_one_comp_unit.
663 Use prepare_one_comp_unit.
664 (alloc_one_comp_unit): Rename to ...
665 (init_one_comp_unit): ... here and remove there calloc, new parameter
666 cu.
667 (prepare_one_comp_unit): New function.
668
669 2010-11-14 Pierre Muller <muller@ics.u-strasbg.fr>
670
671 * arm-tdep.c (arm_in_function_epilogue_p): Fix code to avoid
672 possible used of uninitialized variable.
673
674 2010-11-12 Nathan Froyd <froydnj@codesourcery.com>
675
676 * rs6000-tdep.c (bfd_uses_spe_extensions): New function.
677 (rs6000_gdbarch_init): Call it.
678
679 2010-11-12 Nathan Froyd <froydnj@codesourcery.com>
680
681 * rs6000-tdep.c (gdb_print_insn_powerpc): Disassemble e500
682 instructions if debugging an E500 binary.
683
684 2010-11-12 Tom Tromey <tromey@redhat.com>
685
686 * varobj.c (value_get_print_value): Rearrange. Pass stream to
687 apply_varobj_pretty_printer.
688 * c-lang.c: Include exceptions.h.
689 (c_get_string): Throw MEMORY_ERROR when appropriate.
690 * python/py-prettyprint.c (enum string_repr_result): New.
691 (print_stack_unless_memory_error): New function.
692 (print_string_repr): Change return type. Use
693 print_stack_unless_memory_error.
694 (print_children): Use print_stack_unless_memory_error.
695 (apply_val_pretty_printer): Update. Don't print children if
696 string representation threw an exception.
697 (apply_varobj_pretty_printer): Add 'stream' argument. Use
698 print_stack_unless_memory_error.
699 * python/python.c (gdbpy_gdb_error, gdbpy_gdb_memory_error): New
700 globals.
701 (_initialize_python): Initialize them.
702 * python/python-internal.h (GDB_PY_HANDLE_EXCEPTION): Use
703 gdbpy_convert_exception.
704 (GDB_PY_SET_HANDLE_EXCEPTION): Likewise.
705 (gdbpy_gdb_error, gdbpy_gdb_memory_error): Declare.
706 (gdbpy_convert_exception): Declare.
707 (apply_varobj_pretty_printer): Update.
708 * python/py-utils.c (gdbpy_convert_exception): New function.
709
710 2010-11-12 Marc Khouzam <marc.khouzam@ericsson.com>
711
712 * mi/mi-main.c (mi_cmd_target_detach): Accept new
713 thread-group id format.
714
715 2010-11-12 Jan Kratochvil <jan.kratochvil@redhat.com>
716
717 * spu-tdep.c (spu_catch_start): Fix compilation error typo.
718
719 2010-11-11 Phil Muldoon <pmuldoon@redhat.com>
720
721 * python/py-breakpoint.c (BPPY_REQUIRE_VALID): Check if bp is
722 NULL.
723 (BPPY_SET_REQUIRE_VALID): Ditto.
724 (bpnum_is_valid): Delete function.
725 (bppy_get_visibility): New function.
726 (bppy_new): Parse for, and validate internal keyword. Pass
727 internal keyword to breakpoint or watchpoint functions.
728 (build_bp_list): New function.
729 (gdbpy_breakpoints): Rewrite. Use build_bp_list and
730 iterate_over_breakpoints.
731 (gdbpy_breakpoint_created): Rewrite. Do not store breakpoints in a
732 look-aside vector.
733 (gdbpy_breakpoint_deleted): Rewrite, defer breakpoint management
734 to internal breakpoint chain.
735
736 * breakpoint.c (set_breakpoint_number): New function.
737 (breakpoint_1): Check if breakpoint number is more than zero.
738 (set_raw_breakpoint_without_location): Set py_bp_object to NULL.
739 (create_breakpoint_sal): Take a new parameter called internal.
740 Call set_breakpoint_number with internal parameter. Do not
741 mention internal breakpoints. All callers updated.
742 (create_breakpoint): Ditto.
743 (create_breakpoints_sal): Ditto.
744 (watch_command_1): Ditto.
745 (watch_command_wrapper): Take a new parameter called internal.
746 All callers updated.
747 (rwatch_command_wrapper): Ditto.
748 (awatch_command_wrapper): Ditto.
749 (save_breakpoints): Update breakpoint save condition check.
750 (iterate_over_breakpoints): New function.
751 * breakpoint.h: Add conditional python includes. Add py_bp_object
752 and comment to struct breakpoint. Update all callers.
753 * defs.h: Add PyObject definition for GDB builds without Python.
754
755 2010-11-10 Doug Evans <dje@google.com>
756
757 * python/lib/gdb/command/pretty_printers.py
758 (do_enable_pretty_printer_1): Handle printer.subprinters is None.
759
760 * value.c (set_value_enclosing_type): Renamed from
761 value_change_enclosing_type. All callers updated.
762 * value.h (set_value_enclosing_type): Update.
763 * valops.c (value_full_object): Always return a copy if we need to
764 make changes to the input value.
765
766 2010-11-09 Pedro Alves <pedro@codesourcery.com>
767
768 * breakpoint.c (watch_command_1): Get a pointer of the lazy
769 version of the expression's value, even if reading the value from
770 memory fails. When creating a -location watchpoint, get the
771 value's address from the lazy value pointer.
772
773 2010-11-07 Jan Kratochvil <jan.kratochvil@redhat.com>
774
775 * infrun.c (restore_inferior_thread_state): Use
776 discard_inferior_thread_state to free the data.
777 (discard_inferior_thread_state): xfree also siginfo_data.
778
779 2010-11-05 Doug Evans <dje@google.com>
780
781 Make gdb.parameter("directories") work.
782 New command "set directories".
783 * NEWS: Document them.
784 * source.c (set_directories_command): New function.
785 (show_directories_1): Renamed from show_directories.
786 All callers updated.
787 (show_directories_command): New function.
788 (_initialize_source): Install "directories" as a set/show
789 variable instead of just a show command.
790
791 2010-11-05 Ken Werner <ken.werner@de.ibm.com>
792
793 * NEWS: Mention OpenCL C language support.
794 * Makefile.in (SFILES): Add opencl-lang.c.
795 (COMMON_OBS): Add opencl-lang.o.
796 * opencl-lang.c: New File
797 * defs.h (enum language): Add language_opencl.
798 * dwarf2read.c (read_file_scope): Handle DW_AT_producer for the
799 IBM XL C OpenCL compiler.
800 * c-lang.h: Include "parser-defs.h".
801 (evaluate_subexp_c): Declare.
802 * c-lang.c (evaluate_subexp_c): Remove the static qualifier.
803 (c_op_print_tab): Add declaration.
804 * eval.c (binop_promote): Handle language_opencl.
805 * c-exp.y: Lookup the primitive types instead of referring to the
806 builtins.
807
808 2010-11-05 Jan Kratochvil <jan.kratochvil@redhat.com>
809
810 Fix configure --enable-plugins --without-python.
811 * configure.ac (for ELF support in BFD) <"$plugins" = "yes">: New.
812 * configure: Regenerate.
813
814 2010-11-05 Jan Kratochvil <jan.kratochvil@redhat.com>
815
816 * solib.c (solib_read_symbols): Call exception_fprintf even without
817 FROM_TTY. Print also so->so_name.
818
819 2010-11-04 Sami Wagiaalla <swagiaal@redhat.com>
820
821 * gdbtypes.h (struct rank): Created subrank.
822 * gdbtypes.c: Initialized subrank for all
823 'BADNESS' constants.
824 (distance_to_ancestor): New function.
825 (is_ancestor): Use distance_to_ancestor.
826 (is_public_ancestor): Ditto.
827 (sum_ranks): Handle subrank.
828 (compare_ranks): Ditto.
829 (rank_one_type): Subrank base conversions.
830
831 2010-11-04 Sami Wagiaalla <swagiaal@redhat.com>
832
833 * gdbtypes.h: Create struct rank.
834 Convert all 'BADNESS' macros to const struct rank declarations.
835 (sum_ranks): New function.
836 (compare_ranks): New function.
837 * valops.c (find_oload_champ): Updated.
838 (classify_oload_match): Use compare_ranks.
839 Improved comments.
840 (compare_parameters): Use compare_ranks.
841 * gdbtypes.c: Initialize 'BADNESS' constants.
842 (sum_ranks): New function.
843 (compare_ranks): New function.
844 (compare_badness): Use compare_ranks.
845 (rank_function): Use global constants instead of literals.
846 (rank_one_type): Ditto.
847 Return struct rank.
848 Use sum_ranks.
849
850 2010-11-04 Doug Evans <dje@google.com>
851
852 * python/py-prettyprint.c (find_pretty_printer_from_gdb): Fix comment.
853 (find_pretty_printer): Fix comments.
854
855 2010-11-04 Hui Zhu <teawater@gmail.com>
856
857 * tracepoint.c (remote_trace_set_readonly_regions): Change lma to vma.
858
859 2010-11-03 Joel Brobecker <brobecker@adacore.com>
860
861 * ada-valprint.c (ada_val_print_array): Move variables `eltlen'
862 and `len' declaration and computation inside block where they
863 are being used.
864
865 2010-11-03 Joel Brobecker <brobecker@adacore.com>
866
867 * valprint.c (val_print_array_elements): Put back handling of
868 empty arrays.
869
870 2010-11-03 Ken Werner <ken.werner@de.ibm.com>
871
872 * dwarf2read.c (read_array_type): Read the DW_AT_byte_size from the
873 DIE and set the length of the type.
874 * gdbtypes.h (get_array_bounds): Move here from valprint.h.
875 * gdbtypes.c (get_array_bounds): Move here from valprint.c and
876 return 0 if the corresponding bounds of the type are undefined.
877 * valprint.h (get_array_bounds): Move declaration to gdbtypes.h.
878 * valprint.c (get_array_bounds): Move implementation to gdbtypes.c.
879 (val_print_array_elements): Use get_array_bounds to compute the number
880 of array elements instead of dividing the length of the array by the
881 length of the element types.
882 * valarith.c (vector_binop): Likewise.
883 * valops.c (value_cast): Likewise.
884 * c-valprint.c (c_val_print): Likewise.
885 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
886
887 2010-11-03 Ken Werner <ken.werner@de.ibm.com>
888
889 * valarith.c (value_pos, value_neg, value_complement): Handle
890 vector types.
891 * valops.c (value_one): Likewise.
892
893 2010-11-03 Ken Werner <ken.werner@de.ibm.com>
894
895 * value.h (value_non_lval): Declare.
896 * value.c (value_non_lval): New function.
897 * eval.c (evaluate_subexp_standard) <UNOP_POSTINCREMENT,
898 UNOP_POSTDECREMENT>: Call value_non_lval to ensure to return a
899 non-lvalue.
900
901 2010-11-02 Doug Evans <dje@google.com>
902
903 New python module gdb.printing, and new commands info pretty-printer,
904 enable pretty-printer, disable pretty-printer.
905 * NEWS: Mention them.
906 * data-directory/Makefile.in (PYTHON_FILES): Add gdb/printing.py,
907 gdb/command/__init__.py, gdb/command/pretty_printers.py.
908 * python/lib/gdb/__init__.py: Install pretty-printer commands.
909 * python/lib/gdb/printing.py: New file.
910 * python/lib/gdb/command/__init__.py: New file.
911 * python/lib/gdb/command/pretty_printers.py: New file.
912
913 2010-11-02 Tom Tromey <tromey@redhat.com>
914
915 * NEWS: Mention Guile removal.
916 * defs.h (enum language) <language_scm>: Remove.
917 * Makefile.in (SFILES): Remove scm-exp.c, scm-lang.c,
918 scm-valprint.c.
919 (HFILES_NO_SRCDIR): Remove scm-lang.h, scm-tags.h.
920 (COMMON_OBS): Remove scm-exp.o, scm-lang.o, scm-valprint.o.
921 * scm-exp.c, scm-lang.c, scm-valprint.c, scm-lang.h, scm-tags.h:
922 Remove.
923
924 2010-11-02 Doug Evans <dje@google.com>
925
926 * top.c: #include "python/python.h".
927 (gdb_init): Add a comment regarding initialize_all_files.
928 Call finish_python_initialization at the end.
929 * python/python.h (finish_python_initialization): Declare.
930 * python/python.c (finish_python_initialization): New function.
931 (_initialize_python): Move python-implemented initialization there
932 and call it.
933 (GdbMethods): Use #ifdef HAVE_PYTHON for consistency.
934
935 2010-11-02 Jan Kratochvil <jan.kratochvil@redhat.com>
936
937 Revert:
938 2010-10-17 Jan Kratochvil <jan.kratochvil@redhat.com>
939 Pedro Alves <pedro@codesourcery.com>
940 * gdbthread.h (currently_stepping): New declaration.
941 * infrun.c (currently_stepping): Remove the forward declaration.
942 (currently_stepping): Make it global.
943 * linux-nat.c (resume_callback) <lp->stopped && lp->status == 0>: New
944 variables tp and step, initialized them. Pass STEP to to_resume.
945 Print also possibly "PTRACE_SINGLESTEP" if STEP. Initialize LP->STEP.
946 * remote.c (currently_stepping_callback): New.
947 (remote_vcont_resume)
948 <ptid_equal (ptid, minus_one_ptid) || ptid_is_pid (ptid)>:
949 New variable tp. Call currently_stepping_callback and step such
950 thread.
951
952 2010-11-01 Hui Zhu <teawater@gmail.com>
953
954 * tracepoint.c (tfile_xfer_partial): Change lma to vma.
955
956 2010-10-28 Hui Zhu <teawater@gmail.com>
957
958 * tracepoint.c (trace_save): Change utp->actions to
959 utp->step_actions.
960
961 2010-10-26 Joel Brobecker <brobecker@adacore.com>
962
963 * (_FILE_OFFSET_BITS): Fix typo in comment.
964
965 2010-10-26 Joel Brobecker <brobecker@adacore.com>
966
967 * python/python-internal.h (_FILE_OFFSET_BITS): Undefine.
968 (PyEval_InitThreads): Remove duplicate. Define as nothing.
969 (PyEval_ReleaseLock): Define as nothing.
970
971 2010-10-26 Joel Brobecker <brobecker@adacore.com>
972
973 * dwarf2read.c (psymtab_include_file_name): Replace call to strcmp
974 by call to FILENAME_CMP.
975
976 2010-10-26 Joel Brobecker <brobecker@adacore.com>
977
978 * dictionary.c (dict_hash): Move assignment out of if condition.
979
980 2010-10-22 Jie Zhang <jie@codesourcery.com>
981
982 * Makefile.in (install): Remove dependency of install-only and
983 recursively invoke make for install-only.
984 * data-directory/Makefile.in: Add FLAGS_TO_PASS variable.
985 (install): Pass FLAGS_TO_PASS when recursively make install-only.
986
987 2010-10-20 Hui Zhu <teawater@gmail.com>
988
989 * tracepoint.c (tfile_get_traceframe_address): Call
990 extract_signed_integer.
991 (tfile_trace_find): Call extract_signed_integer and
992 extract_unsigned_integer. Change data_size to unsigned int.
993 (tfile_fetch_registers): Call extract_unsigned_integer.
994 (tfile_xfer_partial): Ditto.
995 (tfile_get_trace_state_variable_value): Call
996 extract_signed_integer and extract_unsigned_integer.
997
998 2010-10-20 Vladimir Prus <vladimir@codesourcery.com>
999
1000 * remote.c (remote_get_threadlist): If we got empty
1001 response, bail out immediately, and don't emit any
1002 warnings.
1003
1004 2010-10-19 Ulrich Weigand <uweigand@de.ibm.com>
1005
1006 * arm-tdep.c (thumb_get_next_pc_raw): Handle Thumb-16 encoding
1007 for "mov pc, REG" as well.
1008 (thumb_instruction_changes_pc): Likewise.
1009
1010 2010-10-19 Sami Wagiaalla <swagiaal@redhat.com>
1011
1012 PR C++/11500:
1013 * valarith.c (value_x_unop): Handle STRUCTOP_PTR.
1014 * eval.c (evaluate_subexp_standard): Check for overload of
1015 'operator->'.
1016 * valarith.c (value_x_binop): Throw NOT_FOUND_ERROR.
1017 (value_x_unop): Ditto.
1018 * valops.c: Include "exceptions.h".
1019 (find_overload_match): Throw NOT_FOUND_ERROR.
1020 (value_struct_elt): Ditto.
1021
1022 2010-10-19 Tom Tromey <tromey@redhat.com>
1023
1024 * python/py-cmd.c (cmdpy_function): Unreference exception state.
1025
1026 2010-10-19 Sami Wagiaalla <swagiaal@redhat.com>
1027
1028 * gdbtypes.h: Introduce BOOL_PTR_CONVERSION_BADNESS.
1029 * gdbtypes.c (rank_one_type): Use BOOL_PTR_CONVERSION_BADNESS
1030 for conversion.
1031 Make all other conversions illegal.
1032
1033 2010-10-18 Doug Evans <dje@google.com>
1034
1035 * c-typeprint.c (c_type_print_base, case TYPE_CODE_TYPEDEF): Verify
1036 assumptions of when this case happens. Print "<unnamed typedef>".
1037
1038 2010-10-18 Tom Tromey <tromey@redhat.com>
1039
1040 * valprint.c (val_print_string): Pass 'encoding' to
1041 LA_PRINT_STRING.
1042
1043 2010-10-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1044
1045 Fix the `stopped language detection' testcase for gcc-4.5.
1046 * dwarf2read.c (read_partial_die): Set also LANGUAGE_OF_MAIN.
1047 * symfile.c (set_initial_language): Move variable filename to a more
1048 inner block. Prefer LANGUAGE_OF_MAIN.
1049 * symtab.c (language_of_main): New variable.
1050 (set_main_name): Always reset LANGUAGE_OF_MAIN.
1051 * symtab.h (language_of_main): New declaration.
1052
1053 2010-10-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1054 Pedro Alves <pedro@codesourcery.com>
1055
1056 * gdbthread.h (currently_stepping): New declaration.
1057 * infrun.c (currently_stepping): Remove the forward declaration.
1058 (currently_stepping): Make it global.
1059 * linux-nat.c (resume_callback) <lp->stopped && lp->status == 0>: New
1060 variables tp and step, initialized them. Pass STEP to to_resume.
1061 Print also possibly "PTRACE_SINGLESTEP" if STEP. Initialize LP->STEP.
1062 * remote.c (currently_stepping_callback): New.
1063 (remote_vcont_resume)
1064 <ptid_equal (ptid, minus_one_ptid) || ptid_is_pid (ptid)>:
1065 New variable tp. Call currently_stepping_callback and step such
1066 thread.
1067
1068 2010-10-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1069
1070 * infrun.c (follow_exec): Replace symbol_file_add_main by
1071 symbol_file_add with SYMFILE_DEFER_BP_RESET, set_initial_language and
1072 breakpoint_re_set.
1073 * m32r-rom.c (m32r_load, m32r_upload_command): Use parameter 0 for
1074 clear_symtab_users.
1075 * objfiles.c (free_all_objfiles): Likewise.
1076 * remote-m32r-sdi.c (m32r_load): Likewise.
1077 * solib-som.c (som_solib_create_inferior_hook): Likewise.
1078 * symfile.c (new_symfile_objfile): New comment for add_flags. Call
1079 clear_symtab_users with ADD_FLAGS.
1080 (reread_symbols): Use parameter 0 for clear_symtab_users.
1081 (clear_symtab_users): New parameter add_flags. Do not call
1082 breakpoint_re_set if SYMFILE_DEFER_BP_RESET.
1083 (clear_symtab_users_cleanup): Use parameter 0 for clear_symtab_users.
1084 * symtab.h (clear_symtab_users): New parameter add_flags.
1085
1086 2010-10-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1087
1088 Fix GCC false warning.
1089 * varobj.c (value_get_print_value) <str_addr>: Initialize it.
1090
1091 2010-10-16 Pierre Muller <muller@ics.u-strasbg.fr>
1092
1093 * p-typeprint.c (pascal_type_print_method_args): Fix problem in
1094 display of type of method arguments.
1095
1096 2010-10-15 Tom Tromey <tromey@redhat.com>
1097
1098 PR python/11948:
1099 * varobj.c (value_get_print_value): Use val_print_string to print
1100 lazy strings.
1101 * python/py-prettyprint.c (print_string_repr): Use
1102 val_print_string to print lazy strings. Fix cleanup logic.
1103 (print_children): Likewise.
1104 * python/python-internal.h (gdbpy_extract_lazy_string): Update.
1105 * python/py-lazy-string.c (gdbpy_extract_lazy_string): Rewrite.
1106 Change return type to 'void', add 'addr' argument.
1107 * value.h (val_print_string): Update.
1108 * valprint.c (val_print_string): Add 'encoding' argument.
1109 * printcmd.c (print_formatted): Update.
1110 * p-valprint.c (pascal_val_print): Update.
1111 * m2-valprint.c (print_unpacked_pointer): Update.
1112 (m2_print_array_contents): Likewise.
1113 * jv-valprint.c (java_value_print): Update.
1114 * f-valprint.c (f_val_print): Update.
1115 * c-valprint.c (c_val_print): Update.
1116 * auxv.c (fprint_target_auxv): Update.
1117
1118 2010-10-15 Doug Evans <dje@google.com>
1119 Jan Kratochvil <jan.kratochvil@redhat.com>
1120
1121 PR exp/12117
1122 * gdbtypes.c (check_typedef): Clean up function comment.
1123 Keep track of instance flags as we strip typedefs and create a new
1124 type to preserve them if necessary.
1125 * gdbtypes.h (type) <instance_flags>: Extend the comment.
1126
1127 2010-10-15 Pierre Muller <muller@ics.u-strasbg.fr>
1128
1129 * p-lang.c (is_pascal_string_type): Use TYPE_FIELD_NAME accessor.
1130
1131 2010-10-14 Sami Wagiaalla <swagiaal@redhat.com>
1132
1133 * gdbtypes.h: Create BASE_PTR_CONVERSION_BADNESS.
1134 * gdbtypes.c (rank_one_type): Move type comparison code out of here
1135 to...
1136 (types_equal): ...here. And changed it as follows:
1137 Outside of typedefs type must be of the same TYPE_CODE.
1138 When compairing two pointers or references they are equal if their
1139 targets are equal.
1140 Correct pointer conversions.
1141
1142 2010-10-14 Pierre Muller <muller@ics.u-strasbg.fr>
1143
1144 * p-lang.c (is_pascal_string_type): Avoid crashes on structures
1145 having fields without names.
1146
1147 2010-10-13 Tom Tromey <tromey@redhat.com>
1148
1149 * language.h (LA_PRINT_ARRAY_INDEX): Fix argument name.
1150
1151 2010-10-13 Doug Evans <dje@google.com>
1152
1153 New python module gdb.types.
1154 * NEWS: Document it.
1155 * data-directory/Makefile.in (PYTHON_FILES): Add gdb/types.py.
1156 * python/lib/gdb/types.py: New file.
1157
1158 * c-typeprint.c: Whitespace cleanup.
1159 (cp_type_print_method_args): Remove unnecessary forward decl.
1160 (cp_type_print_derivation_info): Ditto.
1161 (c_type_print_varspec_prefix): Mark as static at definition.
1162 (c_type_print_modifier): Fix arg descriptions.
1163
1164 2010-10-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1165
1166 * python/py-breakpoint.c (bppy_set_condition): New comment.
1167 * python/py-cmd.c (cmdpy_function): Call also gdbpy_print_stack for
1168 failed PyUnicode_Decode.
1169 (cmdpy_completer): Skip element for failed
1170 python_string_to_host_string.
1171 (cmdpy_init): Return -1 on failed python_string_to_host_string.
1172 * python/py-frame.c (frapy_read_var): Extend the function comment.
1173 * python/py-function.c (fnpy_init): Return -1 on failed
1174 python_string_to_host_string.
1175 * python/py-inferior.c (infpy_read_memory, infpy_write_memory): Extend
1176 the function comment.
1177 (infpy_search_memory): Extend the function comment. Remove the
1178 PyErr_SetString call on already set error state.
1179 * python/py-param.c (set_parameter_value): Extend the function
1180 comment. Return -1 on failed python_string_to_host_string, twice.
1181 (set_attr): Extend the function comment.
1182 (compute_enum_values): Extend the function comment. New variable
1183 back_to. Protect self->enumeration by BACK_TO cleanups. Return 0 on
1184 failed python_string_to_host_string.
1185 (get_doc_string): Call gdbpy_print_stack on failed
1186 python_string_to_host_string.
1187 (parmpy_init): Extend the function comment.
1188 * python/py-prettyprint.c (pretty_print_one_value): Likewise.
1189 (gdbpy_get_display_hint, print_children): Call gdbpy_print_stack on
1190 failed python_string_to_host_string.
1191 * python/py-value.c (valpy_new, valpy_getitem, valpy_call)
1192 (valpy_binop, valpy_richcompare): Extend the function comment.
1193 * python/python.c
1194 (struct python_env) <error_type, error_value, error_traceback>: New
1195 fields.
1196 (restore_python_env): Handle PyErr_Occurred. Call PyErr_Restore.
1197 (ensure_python_env): Call PyErr_Fetch.
1198 * varobj.c (update_dynamic_varobj_children): Call gdbpy_print_stack on
1199 failed convert_value_from_python.
1200 (value_get_print_value): Call gdbpy_print_stack on failed
1201 python_string_to_target_python_string.
1202
1203 2010-10-12 Tom Tromey <tromey@redhat.com>
1204
1205 * python/py-prettyprint.c (search_pp_list): Fix error checking.
1206
1207 2010-10-12 Sami Wagiaalla <swagiaal@redhat.com>
1208
1209 * gdbtypes.c (do_is_ancestor): New function.
1210 (is_ancestor): Use do_is_ancestor.
1211 (is_public_ancestor): Use do_is_ancestor.
1212
1213 2010-10-12 Pierre Muller <muller@ics.u-strasbg.fr>
1214
1215 * ser-go32.c (struct dos_ops): Add missing fdopen field.
1216
1217 2010-10-12 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
1218
1219 * arm-tdep.c (arm_mode_strings): Add NULL entry at end of array.
1220
1221 2010-10-11 Doug Evans <dje@google.com>
1222
1223 * c-typeprint.c (c_type_print_modifier): Add note that this prints
1224 the address space id too.
1225
1226 2010-10-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1227
1228 Fix attaching to re-prelinked executables on ppc64.
1229 * solib-svr4.c (svr4_exec_displacement): New variable plt2_asect,
1230 initialize it, try to adjust FILESZ field by it.
1231
1232 2010-10-08 Daniel Jacobowitz <dan@codesourcery.com>
1233
1234 * tracepoint.c (merge_uploaded_trace_state_variables): Only print
1235 messages if info_verbose.
1236
1237 2010-10-08 Ken Werner <ken.werner@de.ibm.com>
1238
1239 * valops.c (value_cast): Handle vector types.
1240 * valarith.c (value_binop): Widen scalar to vector if appropriate.
1241
1242 2010-10-08 Ulrich Weigand <uweigand@de.ibm.com>
1243
1244 * arm-tdep.c (thumb_expand_immediate): New function.
1245 (thumb_instruction_changes_pc): Likewise.
1246 (thumb2_instruction_changes_pc): Likewise.
1247 (thumb_analyze_prologue): Handle 32-bit Thumb instructions during
1248 prologue parsing. Improved support for optimized code.
1249 (thumb_scan_prologue): Do not reply on line-number information,
1250 use same heuristics as arm_scan_prologue insead.
1251 (skip_prologue_function): Accept functions
1252 "__tls_get_addr" and "__aeabi_read_tp".
1253
1254 2010-10-08 Ulrich Weigand <uweigand@de.ibm.com>
1255 Daniel Jacobowitz <dan@codesourcery.com>
1256
1257 * arm-tdep.c (thumb_in_function_epilogue_p)
1258 (arm_in_function_epilogue_p): New.
1259 (arm_gdbarch_init): Install arm_in_function_epilogue_p as
1260 gdbarch_in_function_epilogue_p callback.
1261
1262 2010-10-07 Doug Evans <dje@google.com>
1263
1264 * cc-with-index.sh (output_file): Default to a.out.
1265
1266 * dwarf2read.c (mapped_index): Rename member index_table to
1267 symbol_table and index_table_slots to symbol_table_slots.
1268 All uses updated.
1269 (create_symbol_hash_table): Renamed from create_index_table.
1270 All callers updated.
1271 (add_indices_to_cpool): Rename arg index_table to symbol_hash_table.
1272 (write_hash_table): Rename local index_table to symbol_hash_table.
1273
1274 * addrmap.h (addrmap_foreach_fn): New typedef.
1275 (addrmap_foreach): Declare.
1276 * addrmap.c (struct addrmap_funcs): New member foreach.
1277 (addrmap_foreach): New function.
1278 (addrmap_fixed_foreach): New function.
1279 (addrmap_fixed_funcs): Update.
1280 (struct mutable_foreach_data): New struct.
1281 (addrmap_mutable_foreach_worker): New function.
1282 (addrmap_mutable_foreach): New function.
1283 (addrmap_mutable_funcs): Update.
1284
1285 2010-10-07 Paul Hilfinger <hilfinger@adacore.com>
1286
1287 * dictionary.c (dict_hash): Revert to msymbol_hash_iw in
1288 more cases.
1289
1290 2010-10-07 Paul Hilfinger <hilfinger@adacore.com>
1291
1292 * ada-lang.c (full_match): Declare.
1293 (ada_match_name): Rename to match_name (we should avoid prefixing static
1294 symbols with "ada_").
1295 (match_name): New name for ada_match_name.
1296 (struct ada_psym_data): Remove and replace with...
1297 (struct match_data): User data for map_matching_symbols.
1298 (ada_add_psyms): Remove.
1299 (aux_add_nonlocal_symbols): New function, used as callback for
1300 map_matching_symbols.
1301 (compare_names): Ordering function adopted from strcmp_iw for Ada-encoded
1302 symbols.
1303 (ada_add_non_local_symbols): Rename to add_nonlocal_symbols.
1304 (add_nonlocal_symbols): Renamed from ada_add_non_local_symbols.
1305 Rework to use map_matching_symbols instead of map_ada_symtabs.
1306 (ada_lookup_symbol_list): Use add_nonlocal_symbols.
1307 * psymtab.c: Include dependency on dictionary.h.
1308 (match_partial_symbol): New function.
1309 (ada_lookup_partial_symbol): Remove.
1310 (map_block): New function, auxiliary to map_matching_symbols_psymtab.
1311 (map_matching_symbols_psymtab): New function.
1312 (psym_functions): Replace map_ada_symtabs with map_matching_symbols_psymtab.
1313 * symfile.h: Replace map_ada_symtabs definition with map_matching_symbols.
1314
1315 2010-10-06 Paul Hilfinger <hilfinger@adacore.com>
1316
1317 * ada-lang.c (ada_match_name): Use new API for wild_match.
1318 (wild_match): Change API to be consistent with that of strcmp_iw;
1319 return 0 for a match, and switch operand order.
1320 (full_match): New function.
1321 (ada_add_block_symbols): Use dict_iter_match_{first,next} for
1322 matching to allow use of hashing.
1323 * dictionary.c (struct dict_vector): Generalize iter_name_first,
1324 iter_name_next ot iter_match_first, iter_match_next.
1325 (iter_name_first_hashed): Replace with iter_match_first_hashed.
1326 (iter_name_next_hashed): Replace with iter_match_next_hashed.
1327 (iter_name_first_linear): Replace with iter_match_first_linear.
1328 (iter_name_next_linear): Replace with iter_match_next_linear.
1329 (dict_iter_name_first): Re-implement to use dict_iter_match_first.
1330 (dict_iter_name_next): Re-implement to use dict_iter_match_next.
1331 (dict_iter_match_first): New function.
1332 (dict_iter_match_next): New function.
1333 (dict_hash): New function.
1334 * dictionary.h (dict_iter_match_first, dict_iter_match_next): Declare.
1335 * psymtab.c (ada_lookup_partial_symbol): Use new wild_match API.
1336
1337 2010-10-06 Doug Evans <dje@google.com>
1338
1339 * data-directory/Makefile.in: Remove @host_makefile_frag@, @frags@.
1340
1341 2010-10-06 Ken Werner <ken.werner@de.ibm.com>
1342
1343 * dwarf2read.c (read_tag_const_type): Handle const arrays.
1344
1345 2010-10-06 Doug Evans <dje@google.com>
1346
1347 * Makefile.in (REQUIRED_SUBDIRS): New var.
1348 (subdir_do): Verify required subdir Makefiles exist.
1349
1350 Create subdir data-directory.
1351 * Makefile.in (XML_SYSCALL_DIR, XML_SYSCALL_FILES): Moved to
1352 data-directory/Makefile.in.
1353 (SUBDIRS): Add data-directory.
1354 (all): Remove xml-syscall-copy dependency.
1355 (xml-syscall-copy): Moved to data-directory/Makefile.in as
1356 stamp-syscalls.
1357 (xml-syscall-install): Moved to data-directory/Makefile.in as
1358 install-syscalls.
1359 (install-only): Remove xml-syscall-install dependency.
1360 (all-data-directory): New rule.
1361 (data-directory/Makefile): New rule.
1362 * configure.ac (AC_OUTPUT): Add data-directory/Makefile.
1363 * configure: Regenerate.
1364 * data-directory/Makefile.in: New file.
1365 * python/lib/gdb/__init__.py: New file.
1366
1367 2010-10-06 Joel Brobecker <brobecker@adacore.com>
1368
1369 Fix ARI warnings in advance_wild_match.
1370 * ada-lang.c (advance_wild_match): Delete local variable t2.
1371 Adjust code accordingly. Minor reformatting.
1372
1373 2010-10-06 Ken Werner <ken.werner@de.ibm.com>
1374
1375 * gdbtypes.h (struct main_type): Remove flag_nottext.
1376 (enum type_flag_value): Remove TYPE_FLAG_NOTTEXT.
1377 (enum type_instance_flag_value): Add TYPE_INSTANCE_FLAG_NOTTEXT.
1378 (TYPE_NOTTEXT): Use TYPE_INSTANCE_FLAG_NOTTEXT instead of flag_nottext.
1379 * gdbtypes.c (make_vector_type): Use TYPE_INSTANCE_FLAG_NOTTEXT instead
1380 of TYPE_FLAG_NOTTEXT.
1381 (init_type): Remove the initialization of the flag_nottext field.
1382 (gdbtypes_post_init): Use TYPE_INSTANCE_FLAG_NOTTEXT instead of
1383 TYPE_FLAG_NOTTEXT.
1384 * c-valprint.c (c_val_print): Remove TYPE_VECTOR check.
1385
1386 2010-10-04 Doug Evans <dje@google.com>
1387
1388 * cc-with-index.sh: New file.
1389
1390 * dwarf2read.c (dw2_do_instantiate_symtab): Insert blank line after
1391 function comment.
1392 (dw2_instantiate_symtab, dw2_get_cu, extract_cu_value): Ditto.
1393 (create_cus_from_index, create_addrmap_from_index): Ditto.
1394 (mapped_index_string_hash, find_slot_in_mapped_hash): Ditto.
1395 (dw2_setup, dw2_require_line_header, dw2_require_full_path): Ditto.
1396 (dw2_do_expand_symtabs_matching): Ditto.
1397 (eq_strtab_entry, create_strtab, add_string): Ditto.
1398 (hash_strtab_entry): Ditto.
1399 (hash_symtab_entry, eq_symtab_entry, delete_symtab_entry): Ditto.
1400 (create_index_table, create_mapped_symtab, find_slot): Ditto.
1401 (hash_expand, add_index_entry, add_indices_to_cpool): Ditto.
1402 (write_hash_table, add_address_entry, write_psymbols): Ditto.
1403 (write_obstack, unlink_if_set, write_one_signatured_type): Ditto.
1404 (write_psymtabs_to_index): Ditto.
1405
1406 2010-10-04 Joel Brobecker <brobecker@adacore.com>
1407
1408 * ada-lang.c: #include "value.h".
1409 (ensure_lval): Delete advance declaration. Remove gdbarch and sp
1410 arguments. Implement using value_allocate_space_in_inferior
1411 instead of allocating memory from the stack.
1412 (make_array_descriptor): Remove gdbarch and sp parameters. Update
1413 calls to ensure_lval.
1414 (ada_convert_actual): Remove gdbarch and sp parameters. Update
1415 calls to make_array_descriptor and ensure_lval.
1416 * ada-lang.h (ada_convert_actual): Update declaration.
1417 * infcall.c (value_arg_coerce): Update call to ada_convert_actual.
1418
1419 2010-10-04 Doug Evans <dje@google.com>
1420
1421 * python/python.c (_initialize_python): Define new function
1422 GdbSetPythonDirectory in python. Use it to update sys.path and
1423 gdb.__path__.
1424
1425 2010-10-03 Paul Hilfinger <hilfinger@adacore.com>
1426
1427 * gdb/ada-typeprint.c (print_selected_record_field_types): New function,
1428 incorporating and generalizing print_record_field_types.
1429 (print_record_field_types): Change return value and update comment.
1430 Re-implement using print_selected_record_field_types.
1431 (print_choices): Print "=>" here.
1432 Handle case of unencoded variant branch.
1433 (print_variant_clauses): Reformat comment.
1434 Special-case unencoded variant branch.
1435
1436 2010-10-03 Paul Hilfinger <hilfinger@adacore.com>
1437
1438 * ada-lang.c (wild_match): Reimplement.
1439 Change API to eliminate unused length argument, reverse arguments and
1440 make 0 the 'true' return value.
1441 (advance_wild_match): New auxiliary function for wild_match to improve
1442 readability.
1443 (ada_match_name, ada_add_block_symbols): Use new API for wild_match.
1444 * psymtab.c (ada_lookup_partial_symbol, map_ada_symtabs): Use new
1445 API for wild_match.
1446 * symfile.h (map_ada_symtabs): Modify declaration to use new API for
1447 wild_match.
1448 * dwarf2read.c (dw2_map_ada_symtabs): Ditto.
1449
1450 2010-10-01 Doug Evans <dje@google.com>
1451
1452 * dwarf2read.c (_initialize_dwarf2_read): Add usage info to help text
1453 for `save gdb-index' command.
1454
1455 2010-10-01 Tom Tromey <tromey@redhat.com>
1456
1457 * symfile.h (allocate_symtab): Update.
1458 * symfile.c (allocate_symtab): Make 'filename' const.
1459 * psymtab.c (add_psymbol_to_bcache): Make 'name' const.
1460 (add_psymbol_to_list): Likewise.
1461 * psympriv.h (struct partial_symtab) <filename, dirname>: Now
1462 const.
1463 (add_psymbol_to_list): Update.
1464 * mdebugread.c (new_symtab): Make 'name' const.
1465 (psymtab_to_symtab_1): Make 'filename' const.
1466 * elfread.c (elfstab_offset_sections): Update.
1467 * dwarf2read.c (dwarf_decode_lines): Make 'comp_dir' const.
1468 (dwarf2_start_subfile): Make 'dirname' and 'comp_dir' const.
1469 (psymtab_include_file_name): Update.
1470 * dbxread.c (find_stab_function_addr): Make 'filename' const.
1471 * buildsym.h (start_subfile): Update.
1472 * buildsym.c (start_subfile): Make arguments const.
1473
1474 2010-09-30 Ali Lakhia <lakhia@alumni.utexas.net>
1475
1476 * fork-child.c (breakup_args): Fix crash if shell forking is
1477 disabled at compile time.
1478
1479 2010-10-01 Joel Brobecker <brobecker@adacore.com>
1480
1481 * ada-lang.c (desc_bounds): Add handling of the case where
1482 the P_BOUNDS field is a pointer to a stub.
1483 (desc_data_target_type): Same for P_ARRAY field.
1484 (ada_check_typedef): Strip the typedef layers from the type
1485 found by ada_find_any_type.
1486
1487 2010-10-01 Joel Brobecker <brobecker@adacore.com>
1488
1489 * sparc-tdep.c (sparc32_frame_align): New function.
1490 (sparc32_gdbarch_init): Set the frame_align gdbarch method.
1491 * sparc64-tdep.c (sparc64_frame_align): New function.
1492 (sparc64_gdbarch_init): Set the frame_align gdbarch method.
1493
1494 2010-09-30 H.J. Lu <hongjiu.lu@intel.com>
1495
1496 * defs.h (MAX_REGISTER_SIZE): Set to 64.
1497
1498 2010-09-30 Tom Tromey <tromey@redhat.com>
1499
1500 * symfile.h (struct sym_fns) <next>: Remove.
1501 (add_symtab_fns): Update.
1502 * symfile.c (sym_fns_ptr): New typedef.
1503 (symtab_fns): Now a VEC.
1504 (add_symtab_fns): Update. Change argument type.
1505 (find_sym_fns): Update. Change return type.
1506 (get_symfile_segment_data): Update.
1507 * objfiles.h (struct objfile) <sf>: Now const.
1508 * somread.c (som_sym_fns): Now const. Update.
1509 * xcoffread.c (xcoff_sym_fns): Now const. Update.
1510 * mipsread.c (ecoff_sym_fns): Now const. Update.
1511 * machoread.c (macho_sym_fns): Now const. Update.
1512 * elfread.c (elf_sym_fns): Now const. Update.
1513 (elf_sym_fns_gdb_index): Likewise.
1514 * dbxread.c (aout_sym_fns): Now const. Update.
1515 * coffread.c (coff_sym_fns): Now const. Update.
1516
1517 2010-09-30 Tom Tromey <tromey@redhat.com>
1518
1519 * value.c (value_primitive_field): Take 'offset' into account for
1520 packed field.
1521
1522 2010-09-30 Tom Tromey <tromey@redhat.com>
1523
1524 * completer.c (count_struct_fields): Handle anonymous structs and
1525 unions.
1526 (add_struct_fields): Likewise.
1527
1528 2010-09-30 Jan Kratochvil <jan.kratochvil@redhat.com>
1529
1530 Fix printing parameters of inlined functions.
1531 * ada-lang.c (is_known_support_routine)
1532 (ada_unhandled_exception_name_addr_from_raise): Provide NULL parameter
1533 for find_frame_funname.
1534 * python/py-frame.c (frapy_name): Likewise.
1535 * stack.c (find_frame_funname): New parameter funcp. Update the
1536 function comment. Fill it in.
1537 (print_frame): New variable func. Initialize it by
1538 find_frame_funname. Print arguments only if FUNC is not NULL. Use
1539 FUNC as the parameter of print_args_stub.
1540 * stack.h (find_frame_funname): New parameter funcp. Remove the
1541 function declaration comment.
1542
1543 2010-09-30 Jan Kratochvil <jan.kratochvil@redhat.com>
1544
1545 PR corefiles/12071.
1546 * inferior.c (have_live_inferiors): New variables old_chain, inf and
1547 tp. Iterate INFERIOR_LIST and call target_has_execution.
1548
1549 2010-09-29 Jan Kratochvil <jan.kratochvil@redhat.com>
1550
1551 Fix GDB crash on inferior calls with self-referencing classes.
1552 * gnu-v3-abi.c (gnuv3_pass_by_reference): Do not call itself on static
1553 member fields.
1554
1555 2010-09-29 Doug Evans <dje@google.com>
1556
1557 Workaround for gcc/45682.
1558 * dwarf2read.c (partial_die_info): New fields fixup_called,
1559 linkage_name.
1560 (guess_partial_die_structure_name): Renamed from guess_structure_name.
1561 Move definition next to use. Use linkage_name to determine if class
1562 is in a namespace. All callers updated.
1563 (fixup_partial_die): Return early if already called.
1564 Set fixup_called when done.
1565 (guess_full_die_structure_name): New function.
1566 (determine_prefix): Call it for class/struct/union dies if c++ and
1567 .debug_types section is present and parent is DW_TAG_compile_unit.
1568
1569 2010-09-28 Joel Brobecker <brobecker@adacore.com>
1570
1571 * configure.tgt (sparc-*-*): Set gdb_sim to ../sim/erc32/libsim.a.
1572 (sparc-*-rtems*): Delete. Now redundant with sparc-*-*.
1573
1574 2010-09-28 Joel Brobecker <brobecker@adacore.com>
1575
1576 * NEWS: Announce Ravenscar Profile support.
1577
1578 2010-09-28 Joel Brobecker <brobecker@adacore.com>
1579 Jerome Guitton <guitton@adacore.com>
1580
1581 * ravenscar-thread.c, ravenscar-thread.h, ravenscar-sparc-thread.c:
1582 New files.
1583 * configure.tgt (sparc-*-*): Add ravenscar-thread.o and
1584 ravenscar-sparc-thread.o to gdb_target_obs.
1585
1586 2010-09-28 Joel Brobecker <brobecker@adacore.com>
1587
1588 * ada-tasks.c (iterate_over_live_ada_tasks): New function.
1589 * ada-lang.h (iterate_over_live_ada_tasks): Declare.
1590
1591 2010-09-27 Pierre Muller <muller@ics.u-strasbg.fr>
1592
1593 * amd64-windows-tdep.c (amd64_skip_main_prologue): New function.
1594 (amd64_windows_init_abi): Register amd64_skip_main_prologue as gdbarch
1595 skip_main_prologue method.
1596
1597 2010-09-27 Tom Tromey <tromey@redhat.com>
1598
1599 * dwarf2read.c (dwarf2_read_index): Only allow version 3.
1600 (write_psymbols): Add 'psyms_seen' and 'is_static' arguments.
1601 Only emit a given psymbol once.
1602 (struct signatured_type_index_data) <psyms_seen>: New field.
1603 (write_one_signatured_type): Update.
1604 (cleanup_htab): New function.
1605 (write_psymtabs_to_index): Update. Create psyms_seen hash. Bump
1606 version to 3.
1607 (save_gdb_index_command): Update index documentation.
1608
1609 2010-09-27 Tom Tromey <tromey@redhat.com>
1610
1611 * bcache.c (expand_hash_table): Use hash_function, not hash.
1612
1613 2010-09-27 Tom Tromey <tromey@redhat.com>
1614
1615 * gdb_wchar.h: Change minimum libiconv to 0x108.
1616
1617 2010-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1618
1619 Fix lost siginfo_t for inferior calls.
1620 * infrun.c
1621 (struct inferior_thread_state) <siginfo_gdbarch, siginfo_data>: New.
1622 (save_inferior_thread_state): New variables regcache, gdbarch and
1623 siginfo_data. Initialize SIGINFO_DATA if gdbarch_get_siginfo_type_p.
1624 Move INF_STATE allocation later, pre-clear it. Initialize REGISTERS
1625 using REGCACHE.
1626 (restore_inferior_thread_state): New variables regcache and gdbarch.
1627 Restore SIGINFO_DATA for matching GDBARCH. Restore REGISTERS using
1628 REGCACHE. Free also SIGINFO_DATA.
1629
1630 2010-09-24 Tom Tromey <tromey@redhat.com>
1631
1632 * dwarf2read.c (dw2_expand_symtabs_matching): Add missing
1633 MAYBE_SWAPs.
1634 (dw2_map_symbol_names): Likewise.
1635
1636 2010-09-24 Sami Wagiaalla <swagiaal@redhat.com>
1637
1638 * valops.c (find_oload_champ_namespace_loop): replace incorrect
1639 discard_cleanups do_cleanups.
1640
1641 2010-09-24 Pedro Alves <pedro@codesourcery.com>
1642
1643 PR gdb/11842
1644
1645 * amd64-linux-nat.c (compat_siginfo_from_siginfo)
1646 (siginfo_from_compat_siginfo): Also copy si_pid and si_uid when
1647 si_code is < 0. Check for si_code == SI_TIMER before checking for
1648 si_code < 0.
1649
1650 2010-09-24 Pedro Alves <pedro@codesourcery.com>
1651
1652 * objfiles.h (ALL_OBJSECTIONS): Handle breaks in the inner loop.
1653
1654 2010-09-22 Joel Brobecker <brobecker@adacore.com>
1655
1656 * ada-tasks.c (read_atcb): Do not compute the task ptid when
1657 debugging a core file.
1658
1659 2010-09-22 Jan Kratochvil <jan.kratochvil@redhat.com>
1660
1661 Code cleanup.
1662 * objfiles.c (allocate_objfile) <objfile->name != NULL>: Remove.
1663 (free_objfile) <objfile->name != NULL>: Remove the conditional around
1664 xfree.
1665 * objfiles.h (struct objfile) <name>: New comment it is never NULL.
1666 * python/py-auto-load.c (auto_load_new_objfile) <!objfile->name>:
1667 Remove.
1668 * python/py-objfile.c (objfpy_get_filename) <obj->objfile->name>
1669 Remove the conditional.
1670 * python/py-progspace.c (pspy_get_filename) <objfile->name>: Likewise.
1671
1672 2010-09-22 Jan Kratochvil <jan.kratochvil@redhat.com>
1673
1674 * main.c: Include objfiles.h.
1675 (captured_main): New variable objfile. Call
1676 load_auto_scripts_for_objfile for ALL_OBJFILES.
1677
1678 2010-09-22 Jan Kratochvil <jan.kratochvil@redhat.com>
1679
1680 * dwarf2read.c (die_needs_namespace) <DW_TAG_variable>: Add also
1681 DW_TAG_constant.
1682
1683 2010-09-22 Joel Brobecker <brobecker@adacore.com>
1684
1685 * dwarf2read.c (scan_partial_symbols): Add handling of
1686 DW_TAG_constant DIEs.
1687 (add_partial_symbol, load_partial_dies, new_symbol): Likewise.
1688
1689 2010-09-22 Joel Brobecker <brobecker@adacore.com>
1690
1691 * configure.ac: Add support for --enable-gdbserver.
1692 * configure: Regenerate.
1693
1694 2010-09-22 Sami Wagiaalla <swagiaal@redhat.com>
1695
1696 PR C++/12028
1697 * valops.c (find_oload_champ_namespace_loop): removed incorrect
1698 'old_cleanups' reassignment.
1699
1700 2010-09-16 Jan Kratochvil <jan.kratochvil@redhat.com>
1701
1702 * charset.c (wchar_iterate) <EILSEQ>: Return any possibly converted
1703 characters.
1704
1705 2010-09-16 Phil Muldoon <pmuldoon@redhat.com>
1706
1707 PR mi/11407
1708 * mi/mi-cmd-stack.c (list_args_or_locals): Catch exceptions from
1709 read_var_value and common_val_print and print a warning.
1710
1711 2010-09-15 Jan Kratochvil <jan.kratochvil@redhat.com>
1712
1713 * MAINTAINERS (GLOBAL MAINTAINERS) <Jan Kratochvil>: Move the entry to
1714 keep the list in alphabetical order. Use longer e-mail address.
1715
1716 2010-09-15 Tom Tromey <tromey@redhat.com>
1717
1718 * MAINTAINERS (GLOBAL MAINTAINERS): Add Jan Kratochvil.
1719
1720 2010-09-15 Tom Tromey <tromey@redhat.com>
1721
1722 * charset.c (iconv_open): New define.
1723 (iconv): Likewise.
1724 (iconv_close): Likewise.
1725 (phony_iconv_open): Add "phony_" prefix.
1726 (phony_iconv_close): Likewise.
1727 (phony_iconv): Likewise.
1728 * gdb_wchar.h: Check _LIBICONV_VERSION, __STDC_ISO_10646__.
1729 Change how INTERMEDIATE_ENCODING is defined.
1730
1731 2010-09-15 Doug Evans <dje@google.com>
1732
1733 * dwarf2read.c (struct die_info): Fix comment.
1734
1735 2010-09-15 Alan Modra <amodra@gmail.com>
1736
1737 PR 4606
1738 * gcore.c (gcore_create_callback): Clear SEC_HAS_CONTENTS rather
1739 than setting SEC_NEVER_LOAD on sections that need not be copied.
1740
1741 2010-09-14 Tom Tromey <tromey@redhat.com>
1742
1743 * psympriv.h (add_psymbol_to_list, init_psymbol_list)
1744 (start_psymtab_common, allocate_psymtab, discard_psymtab):
1745 Declare.
1746 * symfile.h (extend_psymbol_list): Remove.
1747 (add_psymbol_to_list, init_psymbol_list, start_psymtab_common)
1748 (allocate_psymtab, discard_psymtab): Move to psympriv.h.
1749 * psymtab.c (extend_psymbol_list): Move earlier. Now static.
1750
1751 2010-09-14 Jan Kratochvil <jan.kratochvil@redhat.com>
1752
1753 * dwarf2read.c (dw2_map_ada_symtabs): Remove the internal_error.
1754 Update the comment.
1755
1756 2010-09-14 Tom Tromey <tromey@redhat.com>
1757
1758 PR symtab/8399:
1759 * dwarf2loc.c (locexpr_describe_location_piece): Don't call error
1760 for unrecognized frame base expression.
1761
1762 2010-09-14 Tom Tromey <tromey@redhat.com>
1763
1764 PR exp/11803:
1765 * value.c (value_static_field): Use value_of_variable.
1766
1767 2010-09-14 Pierre Muller <muller@ics.u-strasbg.fr>
1768
1769 * m32r-rom.c: Replace winsock.h with winsock2.h header.
1770 * remote-m32r-sdi.c: Replace winsock.h by winsock2.h.
1771
1772 2010-09-13 Sami Wagiaalla <swagiaal@redhat.com>
1773
1774 PR symtab/11992:
1775 * c-exp.y (classify_name): Check is_a_member_of_this before returning
1776 UNKNOWN_CPP_NAME.
1777
1778 2010-09-13 Joel Brobecker <brobecker@adacore.com>
1779
1780 * NEWS: Add x86-lynxos to the list of platforms supported by
1781 gdbserver.
1782
1783 2010-09-13 Joel Brobecker <brobecker@adacore.com>
1784
1785 * NEWS: Announce GDBserver support for version 5.x of ppc-lynxos.
1786
1787 2010-09-13 Tom Tromey <tromey@redhat.com>
1788
1789 * Makefile.in (HFILES_NO_SRCDIR): Add progspace.h.
1790
1791 2010-09-13 H.J. Lu <hongjiu.lu@intel.com>
1792
1793 * i386-tdep.c (i386_ymm_type): Set type name to
1794 builtin_type_vec256i.
1795
1796 2010-09-12 Michael Snyder <msnyder@vmware.com>
1797
1798 * i386-tdep.c (i386_gdbarch_init): Fix typo in comments.
1799
1800 2010-09-12 H.J. Lu <hongjiu.lu@intel.com>
1801
1802 * i386-tdep.c (i386_gdbarch_init): Fix typo in comments.
1803
1804 2010-09-11 H.J. Lu <hongjiu.lu@intel.com>
1805
1806 * amd64-tdep.c (amd64_register_name): Removed.
1807 (amd64_init_abi): Don't call set_gdbarch_register_name.
1808
1809 * i386-tdep.c (i386_ymmh_regnum_p): Make it static.
1810
1811 * i386-tdep.h (i386_ymmh_regnum_p): Removed.
1812
1813 2010-09-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1814 Paul Bolle <pebolle@tiscali.nl>
1815
1816 Redirect also uiout and stdtarg{,err} in execute_command_to_string.
1817 * cli-logging.c (struct saved_output_files) <targerr>: New.
1818 (set_logging_redirect, pop_output_files, handle_redirections):
1819 Redirect also gdb_stdtargerr.
1820 * defs.h (struct ui_out, make_cleanup_ui_out_redirect_pop): New
1821 declarations.
1822 * event-top.c (gdb_setup_readline, gdb_disable_readline): Redirect
1823 also gdb_stdtargerr.
1824 * top.c (execute_command_to_string): Move make_cleanup_ui_file_delete
1825 to the top. Redirect also gdb_stdlog, gdb_stdtarg and gdb_stdtargerr.
1826 Use ui_out_redirect, register make_cleanup_ui_out_redirect_pop.
1827 * tui/tui-io.c (tui_setup_io): Redirect also gdb_stdtargerr.
1828 * utils.c (do_ui_out_redirect_pop, make_cleanup_ui_out_redirect_pop):
1829 New functions.
1830
1831 2010-09-10 Pierre Muller <muller@ics.u-strasbg.fr>
1832
1833 * hppa-tdep.c (unwind_command): Use host_address_to_string function
1834 to display a host address.
1835 * monitor.c (monitor_read_memory): Likewise.
1836 * xtensa-tdep.c (xtensa_push_dummy_call): Likewise.
1837
1838 2010-09-10 Pierre Muller <muller@ics.u-strasbg.fr>
1839
1840 * coffread.c (struct coff_symbol): Change c_value type from `long' to
1841 `CORE_ADDRESS' as it might contain target addresses.
1842
1843 2010-09-10 Pierre Muller <muller@ics.u-strasbg.fr>
1844
1845 * alpha-mdebug-tdep.c (find_proc_desc): Use SYMBOL_VALUE_BYTES macro
1846 before cast to pointer to avoid warning.
1847
1848 2010-09-09 Kevin Buettner <kevinb@redhat.com>
1849
1850 * v850-tdep.c (v850_gdbarch_init): Change the v850's `char'
1851 type to be signed.
1852
1853 2010-09-09 Ulrich Weigand <uweigand@de.ibm.com>
1854
1855 * dwarf2read.c (fixup_partial_die): Do not set dummy name for
1856 anonymous class partial DIEs.
1857
1858 2010-09-08 Daniel Jacobowitz <dan@codesourcery.com>
1859
1860 * dwarf2read.c (dwarf2_compute_name): Check that the first
1861 argument is a pointer.
1862
1863 2010-09-08 Daniel Jacobowitz <dan@codesourcery.com>
1864
1865 * dwarf2read.c (read_func_scope, read_structure_type)
1866 (read_common_block): Check for a NULL return from new_symbol.
1867
1868 2010-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
1869
1870 * dwarf2read.c (dwarf2_read_index): Return on no SEC_HAS_CONTENTS.
1871
1872 2010-09-08 Daniel Jacobowitz <dan@codesourcery.com>
1873
1874 * dwarf2read.c (read_structure_type): Move processing of
1875 fields and member functions from here...
1876 (process_structure_scope): ... to here.
1877
1878 2010-09-08 Daniel Jacobowitz <dan@codesourcery.com>
1879
1880 * gnu-v3-abi.c (gnuv3_print_method_ptr): Do not use
1881 the domain type.
1882 (gnuv3_make_method_ptr): Likewise.
1883
1884 2010-09-08 Tom Tromey <tromey@redhat.com>
1885
1886 * breakpoint.c (create_breakpoint): Add missing _().
1887
1888 2010-09-08 Doug Evans <dje@google.com>
1889
1890 * dwarf2-frame.h (dwarf2_frame_build_info): Delete, unused.
1891
1892 2010-09-08 Tom Tromey <tromey@redhat.com>
1893
1894 Revert:
1895 2010-09-01 Tom Tromey <tromey@redhat.com>
1896 * dwarf2read.c, gdbtypes.c, psymtab.c, symfile.h, symtab.c,
1897 symtab.h: Revert earlier change.
1898
1899 2010-09-09 Sami Wagiaalla <swagiaal@redhat.com>
1900
1901 * psymtab.c (add_psymbol_to_bcache): Initialize
1902 obj_section.
1903 memset psymbol.ginfo.value to 0.
1904
1905 2010-09-06 Pedro Alves <pedro@codesourcery.com>
1906
1907 * infrun.c (resume): Extend comment on ignoring single-step
1908 requests on vfork parents waiting for a vfork-done.
1909
1910 2010-09-06 Jan Kratochvil <jan.kratochvil@redhat.com>
1911 Pedro Alves <pedro@codesourcery.com>
1912
1913 * corelow.c (core_open): Use target_signal_from_host if CORE_GDBARCH
1914 is NULL.
1915 * fork-child.c (startup_inferior) <resume_signal>: Use enum
1916 target_signal type.
1917 * linux-nat.c (linux_nat_resume): Use target_signal_to_host before
1918 calling strsignal. Use enum target_signal type for saved_signo.
1919 (linux_handle_extended_wait) <signo>: Use enum target_signal type.
1920 (linux_nat_wait_1): Use enum target_signal type for signo. Use
1921 target_signal_to_host before calling strsignal.
1922 * remote-m32r-sdi.c (m32r_wait, m32r_detach): Replace 0 by
1923 TARGET_SIGNAL_0.
1924
1925 2010-09-06 Pedro Alves <pedro@codesourcery.com>
1926 Jan Kratochvil <jan.kratochvil@redhat.com>
1927
1928 * common/signals.c (ANY): Remove.
1929 (SET): No longer use ANY.
1930
1931 2010-09-06 Yao Qi <yao@codesourcery.com>
1932
1933 * infrunc(resume): When inferior is waiting_for_vfork_done,
1934 clear step and don't use displaced stepping.
1935
1936 2010-09-04 Daniel Jacobowitz <dan@codesourcery.com>
1937
1938 * breakpoint.c (can_use_hardware_watchpoint): Handle the first
1939 value specially.
1940
1941 2010-09-04 Jan Kratochvil <jan.kratochvil@redhat.com>
1942
1943 Code cleanup - split print_stop_reason.
1944 * infrun.c (enum inferior_stop_reason): Remove.
1945 (print_stop_reason): Remove by splitting into ...
1946 (print_exited_reason, print_signal_exited_reason)
1947 (print_no_history_reason, print_signal_received_reason)
1948 (print_end_stepping_range_reason): ... these new functions. Update
1949 the preceding comment.
1950 (handle_inferior_event): Change the calls to print_exited_reason,
1951 print_signal_exited_reason, print_no_history_reason,
1952 print_signal_received_reason, print_end_stepping_range_reason.
1953 (handle_step_into_function, handle_step_into_function_backward):
1954 Change the calls to print_end_stepping_range_reason.
1955
1956 2010-09-03 Jan Kratochvil <jan.kratochvil@redhat.com>
1957
1958 * breakpoint.c (save_breakpoints): Use RETURN_MASK_ALL.
1959 * cli-out.c: Include vec.h.
1960 (cli_field_fmt, cli_spaces, cli_text, cli_message, cli_flush): New
1961 variable stream, initialize it, use it.
1962 (cli_redirect): New function comment. Replace the stream and
1963 original_stream fields by the new streams field. Remove the
1964 original_stream != NULL conditional, assert error on NULL instead.
1965 (out_field_fmt, field_separator): New variable stream, initialize it, use it.
1966 (cli_out_data_ctor): Assert non-NULL stream. Replace the stream and
1967 original_stream fields by the new streams field.
1968 (cli_out_set_stream): Replace the stream field by the new streams
1969 field.
1970 * cli-out.h: Include vec.h.
1971 (ui_filep): New typedef, call DEF_VEC_P for it.
1972 (struct cli_ui_out_data): Replace the stream and original_stream
1973 fields by the new streams field.
1974 * cli/cli-logging.c (set_logging_redirect): Call ui_out_redirect with
1975 NULL first. Extend the comment.
1976 (handle_redirections): Call ui_out_redirect with output.
1977 * python/py-breakpoint.c (bppy_get_commands): Move ui_out_redirect
1978 calls outside of the TRY_CATCH block.
1979
1980 2010-09-03 Joel Brobecker <brobecker@adacore.com>
1981
1982 GDB 7.2 released.
1983
1984 2010-09-02 Joel Brobecker <brobecker@adacore.com>
1985
1986 Back out the following change:
1987 | 2010-06-29 Hui Zhu <teawater@gmail.com>
1988 | * record.c (set_record_pic_cmdlist,
1989 | show_record_pic_cmdlist): New variables.
1990 | (set_record_pic_command,
1991 | show_record_pic_command): New functions.
1992 | (record_pic_function, record_pic_line, record_pic_enum,
1993 | set_record_pic_type, record_pic_hide_nofunction,
1994 | record_pic_hide_nosource, record_pic_hide_same): New variables.
1995 | (record_pic_fputs): New function.
1996 | (function_list, node_list, edge_list): New struct.
1997 | (function_list, node_list, edge_list): New variables.
1998 | (record_pic_cleanups, record_pic_node,
1999 | record_pic_edge, cmd_record_pic): New functions.
2000 | (_initialize_record): Add new commands for record pic.
2001
2002 2010-09-02 Daniel Jacobowitz <dan@codesourcery.com>
2003
2004 * config.in, configure: Regenerated.
2005 * configure.ac: Check for waitpid.
2006 * ser-pipe.c (pipe_close): Wait for the program to exit.
2007
2008 2010-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2009
2010 * cli/cli-logging.c: Include gdb_assert.h.
2011 (set_logging_overwrite): New function.
2012 (logging_redirect): New comment.
2013 (logging_no_redirect_file, set_logging_redirect)
2014 (pop_output_files) <logging_no_redirect_file>: New.
2015 (handle_redirections) <!logging_redirect>: New variable
2016 no_redirect_file. Remove file autoclose for tee_file_new. No longer
2017 discard cleanup for the close of former OUTPUT. Set
2018 LOGGING_NO_REDIRECT_FILE.
2019 (handle_redirections) <logging_redirect>: gdb_assert
2020 LOGGING_NO_REDIRECT_FILE.
2021 (show_logging_command) <logging_redirect handling>: Adjust messages
2022 for SAVED_FILENAME not NULL.
2023 (_initialize_cli_logging): Install set_logging_overwrite and
2024 set_logging_redirect.
2025
2026 2010-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2027
2028 * iq2000-tdep.c (iq2000_scan_prologue): Initialize SAL.END.
2029
2030 2010-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2031
2032 * Makefile.in (GDB_WARN_CFLAGS_NO_FORMAT): Convert it to the no- form.
2033 (monitor.o): Replace $(INTERNAL_WARN_CFLAGS) by $(INTERNAL_CFLAGS) and
2034 add $(GDB_WARN_CFLAGS_NO_FORMAT).
2035 (printcmd.o): Replace $(INTERNAL_CFLAGS_BASE) by $(INTERNAL_CFLAGS).
2036
2037 2010-09-02 Yao Qi <yao@codesourcery.com>
2038
2039 * linux-nat.c (status_to_str): Use WTERMSIG to extract the signal
2040 number from a WIFSIGNALED status.
2041
2042 2010-09-01 Tom Tromey <tromey@redhat.com>
2043
2044 * symtab.h (lookup_type_symbol): Declare.
2045 * symtab.c (lookup_symbol_in_language_full): Rename from
2046 lookup_symbol_in_language. Add 'for_type' argument.
2047 (lookup_symbol_in_language): New function.
2048 (lookup_type_symbol): Likewise.
2049 (lookup_symbol_aux): Add 'for_type' argument.
2050 (match_symbol_aux): New function.
2051 (lookup_symbol_aux_symtabs): Use expand_one_symtab_matching.
2052 (match_transparent_type): New function.
2053 (basic_lookup_transparent_type): Use expand_one_symtab_matching.
2054 * symfile.h (struct quick_symbol_functions)
2055 <pre_expand_symtabs_matching>: Remove.
2056 <expand_one_symtab_matching>: New field.
2057 * psymtab.c (expand_one_symtab_matching_psymtabs): New function.
2058 (pre_expand_symtabs_matching_psymtabs): Remove.
2059 (psym_functions): Update.
2060 * gdbtypes.c (lookup_typename): Use lookup_type_symbol.
2061 * dwarf2read.c (dw2_lookup_symbol): Update comment.
2062 (dw2_pre_expand_symtabs_matching): Remove.
2063 (dw2_expand_one_symtab_matching): New function.
2064 (dwarf2_gdb_index_functions): Update.
2065
2066 2010-09-01 Joel Brobecker <brobecker@adacore.com>
2067
2068 * NEWS: Add entry announcing GDBserver support on powerpc-lynxos.
2069
2070 2010-09-01 Marc Khouzam <marc.khouzam@ericsson.com>
2071
2072 * mi/mi-main.c (mi_cmd_list_target_features): Add `reverse'
2073 as a feature reported by -list-target-features.
2074
2075 2010-09-01 Joel Brobecker <brobecker@adacore.com>
2076
2077 * features/Makefile (WHICH): Add rs6000/powerpc-32.
2078 (powerpc-32.o, powerpc-32.c): New rules.
2079 (clean): Also remove powerpc-32.c.
2080 * regformats/rs6000/powerpc-32.dat: Generate.
2081
2082 2010-08-31 Sami Wagiaalla <swagiaal@redhat.com>
2083
2084 * symfile.c (reread_symbols): Use psymbol_bcache_free, and
2085 psymbol_bcache_init.
2086 * psymtab.h (psymbol_bcache_init): New function prototype.
2087 (psymbol_bcache_free): New function prototype.
2088 (psymbol_bcache_get_bcache): New function prototype.
2089 * psymtab.c (psymbol_bcache_init): New function.
2090 (psymbol_bcache_free): New function.
2091 (psymbol_bcache_full): New function.
2092 (psymbol_bcache_get_bcache): New function.
2093 (add_psymbol_to_bcache): use psymbol_bcache_full.
2094 * objfiles.h (psymbol_cache): Change type of psymbol_cache to
2095 psymbol_bcache.
2096 * symmisc.c (print_symbol_bcache_statistics): Updated.
2097 (print_objfile_statistics): Updated.
2098 * objfiles.c (allocate_objfile): Use psymbol_bcache_init to initialize
2099 psymbol_cache.
2100 (free_objfile): Use psymbol_bcache_free.
2101
2102 2010-08-31 Tom Tromey <tromey@redhat.com>
2103
2104 PR c++/11961:
2105 * dwarf2read.c (new_symbol_full) <DW_TAG_template_type_param>:
2106 Don't set TYPE_NAME on the type.
2107
2108 2010-08-31 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
2109
2110 * infrun.c (set_exec_direction_func): Error out if target does not
2111 support reverse execution.
2112
2113 2010-08-31 Jan Kratochvil <jan.kratochvil@redhat.com>
2114
2115 Make linux_get_siginfo_type `type *' unique.
2116 * linux-tdep.c (linux_gdbarch_data_handle, struct linux_gdbarch_data)
2117 (init_linux_gdbarch_data, get_linux_gdbarch_data): New.
2118 (linux_get_siginfo_type): New variable linux_gdbarch_data. Initialize
2119 it. Use linux_gdbarch_data->siginfo_type as a persistent storage.
2120 (_initialize_linux_tdep): New.
2121
2122 2010-08-31 Jan Kratochvil <jan.kratochvil@redhat.com>
2123
2124 Code cleanup.
2125 * defs.h (find_memory_region_ftype): New typedef.
2126 (exec_set_find_memory_regions): Use it.
2127 * exec.c (exec_set_find_memory_regions): Use find_memory_region_ftype.
2128 * fbsd-nat.c (fbsd_find_memory_regions): Likewise.
2129 * gcore.c (objfile_find_memory_regions): Likewise.
2130 * gnu-nat.c (gnu_find_memory_regions): Likewise.
2131 * linux-nat.c (linux_nat_find_memory_regions): Likewise.
2132 * procfs.c (iterate_over_mappings_cb_ftype): Remove.
2133 (iterate_over_mappings): Rename iterate_over_mappings_cb_ftype to
2134 find_memory_region_ftype.
2135 (insert_dbx_link_bpt_in_region): Likewise.
2136 (iterate_over_mappings): Likewise. Drop the comment part about the
2137 function prototype.
2138 (find_memory_regions_callback): Use find_memory_region_ftype.
2139 (proc_find_memory_regions): Likewise.
2140 (info_mappings_callback): Rename iterate_over_mappings_cb_ftype to
2141 find_memory_region_ftype.
2142 * target.c (dummy_find_memory_regions): Use find_memory_region_ftype.
2143 * target.h (struct target_ops) <to_find_memory_regions>: Likewise.
2144
2145 2010-08-31 Sami Wagiaalla <swagiaal@redhat.com>
2146
2147 * psymtab.c (add_psymbol_to_bcache): Remove 'static' from
2148 'static partial_symbol psymbol'.
2149 (psymbol_hash): New function.
2150 (psymbol_compare): New function.
2151 * bcache.c (hash_continue): New.
2152 (hash): Use hash_continue.
2153 * bcache.c: Add hash_function and compare_function
2154 pointers to bcache struct.
2155 (bcache_full): Use bcache->hash_function, and
2156 bcache->compare_function.
2157 (bcache_compare): New function.
2158 (bcache_xmalloc): Take hash_function and
2159 compare_function arguments and initialize the
2160 bcach's pointers.
2161 Updated comment.
2162 * objfiles.c (allocate_objfile): Updated.
2163 * symfile.c (reread_symbols): Updated.
2164 * python/py-type.c (typy_richcompare): Updated.
2165
2166 2010-08-30 Andre Poenitz <andre.poenitz@nokia.com>
2167 Tom Tromey <tromey@redhat.com>
2168
2169 PR python/11792:
2170 * python/py-value.c (valpy_get_dynamic_type): New function.
2171 (value_object_getset): Add "dynamic_type".
2172 (valpy_get_type): Fail on error.
2173
2174 2010-08-30 Yao Qi <yao@codesourcery.com>
2175
2176 * arm-linux-tdep.c (arm_linux_sigreturn_return_addr): New.
2177 (arm_linux_syscall_next_pc): New.
2178 (arm_linux_copy_svc): Use arm_linux_sigreturn_return_addr instead.
2179 (arm_linux_init_abi): Initialize syscall_next_pc.
2180 * arm-tdep.c (thumb_get_next_pc_raw): Get next pc of SWI in Thumb mode.
2181 (arm_get_next_pc_raw): Get next pc of SWI in ARM mode.
2182 * arm-tdep.h (struct gdbarch_tdep): Add a function pointer syscall_next_pc.
2183 Declare arm_frame_is_thumb.
2184
2185 2010-08-30 Jan Kratochvil <jan.kratochvil@redhat.com>
2186
2187 Code cleanup.
2188 * breakpoint.c (bpstat_alloc): Remove unused prototype.
2189 (bpstat_alloc): Change parameters cbs to bs_link_pointer. Adjust the
2190 code.
2191 (bpstat_stop_status): Change root_bs into bs_head and bs_link. Adjust
2192 calls of bpstat_alloc. Remove explicit bs chain termination.
2193
2194 2010-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2195
2196 Code cleanup.
2197 * linux-nat.c (pull_pid_from_list): Rename status to statusp.
2198 (my_waitpid): Likewise.
2199
2200 2010-08-27 Doug Evans <dje@google.com>
2201
2202 * dwarf2read.c (dw2_require_line_header): Read from .debug_types
2203 as appropriate.
2204
2205 2010-08-27 Tom Tromey <tromey@redhat.com>
2206
2207 * dwarf2read.c (dwarf2_attach_fields_to_type): Don't set
2208 TYPE_FIELD_IGNORE_BITS.
2209
2210 2010-08-27 Doug Evans <dje@google.com>
2211
2212 * dwarf2read.c (dwarf2_per_objfile_free): Reorganize buffers to match
2213 the order they're defined in. munmap .debug_types buffer.
2214
2215 2010-08-26 Doug Evans <dje@google.com>
2216
2217 * dwarf2read.c (dw2_require_full_path): Rename parameter cu to per_cu.
2218 (dw2_forget_cached_source_info): Rename local cu to per_cu.
2219 (dw2_lookup_symtab, dw2_do_expand_symtabs_matching): Ditto.
2220 (dw2_print_stats, dw2_expand_all_symtabs): Ditto.
2221 (dw2_expand_symtabs_with_filename, dw2_find_symbol_file): Ditto.
2222 (dw2_find_symbol_file, dw2_expand_symtabs_matching): Ditto.
2223 (dw2_map_symbol_filenames, dwarf2_initialize_objfile): Ditto.
2224 (dwarf2_free_objfile, write_one_signatured_type): Ditto.
2225 (write_psymtabs_to_index): Ditto.
2226
2227 2010-08-26 Pedro Alves <pedro@codesourcery.com>
2228
2229 * NEWS: Mention libthread_db debugging with core files.
2230
2231 2010-08-26 Doug Evans <dje@google.com>
2232
2233 * dwarf2read.c (dwarf2_build_include_psymtabs): Remove unnecessary
2234 forward decl. Pass pst->dirname to dwarf_decode_lines.
2235 (psymtab_include_file_name): New function.
2236 (dwarf_decode_lines): Call it. Update comments.
2237
2238 2010-08-25 Pedro Alves <pedro@codesourcery.com>
2239
2240 * dwarf2read.c (inherit_abstract_dies): Handle origin die's
2241 compilation unit being different from target die's.
2242
2243 2010-08-24 Doug Evans <dje@google.com>
2244
2245 PR symtab/11942
2246 * dwarf2read.c (dwarf2_per_objfile): New members debug_info_type_hash,
2247 debug_types_type_hash.
2248 (dwarf2_cu, dwarf2_per_cu_data): Delete member type_hash.
2249 All uses updated.
2250 (lookup_die_type): Renamed from tag_type_to_tag. First look in
2251 appropriate type_hash table. All callers updated.
2252 (allocate_signatured_type_table): Renamed from
2253 allocate_signatured_type_hash_table. All callers updated.
2254 (create_signatured_type_table_from_index): Renamed from
2255 create_signatured_type_hash_from_index. All callers updated.
2256 (read_die_type): Add comment. Move actual reading to ...
2257 (read_die_type_1): ... here. New function.
2258 (follow_die_ref_or_sig): Tweak comment.
2259 (set_die_type): Rewrite to use appropriate choice of
2260 debug_info_type_hash or debug_types_type_hash.
2261 (get_die_type_at_offset): New function.
2262 (get_die_type): Call it.
2263
2264 2010-08-24 Jan Kratochvil <jan.kratochvil@redhat.com>
2265
2266 * python/py-type.c (typy_richcompare): Initialize worklist.
2267
2268 2010-08-24 Daniel Jacobowitz <dan@codesourcery.com>
2269 Kazu Hirata <kazu@codesourcery.com>
2270 Jonathan Larmour <jifl@eCosCentric.com>
2271
2272 * arm-tdep.c: Include features/arm-with-m.c.
2273 (arm_psr_thumb_bit): New. Update all uses of CPSR_T to
2274 call this function.
2275 (arm_pc_is_thumb): Add a gdbarch argument. Update all callers.
2276 Check is_m after force-mode.
2277 (arm_gdbarch_init): Check the binary before the target description.
2278 Add check for M profile attribute. If we have an M-profile device,
2279 but no target register description, use arm-with-m. Recognize the
2280 new org.gnu.gdb.arm.m-profile feature and its xpsr register.
2281 (_initialize_arm_tdep): Call initialize_tdesc_arm_with_m.
2282 * arm-tdep.h (XPSR_T): Define.
2283 (struct gdbarch_tdep): Add is_m member.
2284 * features/arm-m-profile.xml, features/arm-with-m.c,
2285 features/arm-with-m.xml: New files.
2286
2287 2010-08-23 Doug Evans <dje@google.com>
2288
2289 * dwarf2read.c (read_structure_type): Add comment.
2290 (read_enumeration_type): Add comment.
2291 (process_enumeration_scope): Move definition of some locals
2292 closer to their use.
2293 (read_namespace_type): Add comment.
2294 (set_die_type): Fix typo in comment.
2295
2296 2010-08-23 Tom Tromey <tromey@redhat.com>
2297
2298 PR python/11145:
2299 * python/py-value.c: Include expression.h.
2300 (valpy_do_cast): New function.
2301 (valpy_cast): Use it.
2302 (valpy_dynamic_cast): New function.
2303 (valpy_reinterpret_cast): Likewise.
2304 (value_object_methods): Add dynamic_cast, reinterpret_cast.
2305
2306 2010-08-23 Tom Tromey <tromey@redhat.com>
2307
2308 PR python/11391:
2309 * python/py-value.c (valpy_nonzero): Don't throw error for other
2310 Value types.
2311
2312 2010-08-23 Tom Tromey <tromey@redhat.com>
2313
2314 PR python/10676:
2315 * python/py-type.c: Include bcache.h, vec.h.
2316 (struct type_equality_entry): New.
2317 (compare_strings): New function.
2318 (check_types_equal): Likewise.
2319 (check_types_worklist): Likewise.
2320 (typy_richcompare): Likewise.
2321 (type_object_type): Set tp_richcompare field.
2322
2323 2010-08-23 Tom Tromey <tromey@redhat.com>
2324
2325 PR python/10953:
2326 * python/py-type.c (typy_fields): Call check_typedef.
2327 (typy_template_argument): Add TRY_CATCH.
2328
2329 2010-08-23 Tom Tromey <tromey@redhat.com>
2330
2331 PR python/11915:
2332 * python/py-type.c (typy_array): New function.
2333 (type_object_methods): Add "array".
2334
2335 2010-08-20 Pedro Alves <pedro@codesourcery.com>
2336
2337 * python/python.c: Include "serial.h".
2338 (gdbpy_event_fds): Change type to `struct serial *' a array from
2339 int array.
2340 (gdbpy_run_events): Change parameters. Use serial_readchar in
2341 place of read.
2342 (gdbpy_post_event): Use serial_write in place of write.
2343 (gdbpy_initialize_events): Use serial_pipe instead of pipe, and
2344 serial_async in place of add_file_handler.
2345
2346 2010-08-20 Pedro Alves <pedro@codesourcery.com>
2347
2348 * serial.h (gdb_pipe, serial_pipe): Declare.
2349 * serial.c (serial_interface_lookup): Take a const char pointer.
2350 (serial_fdopen): Rename to ...
2351 (serial_fdopen_ops): ... this. Add an OPS parameter and use it.
2352 Call the OPS' fdopen function if there is one.
2353 (serial_fdopen): Rewrite as wrapper to serial_fdopen_ops.
2354 (serial_pipe): New.
2355 (struct serial_ops) <fdopen>: New field.
2356
2357 * ser-mingw.c (free_pipe_state):
2358 (free_pipe_state): Close output on non-pex pipes.
2359 (pipe_windows_fdopen): New.
2360 (gdb_pipe): New.
2361 (_initialize_ser_windows): Register pipe_windows_fdopen.
2362 * ser-go32.c (gdb_pipe): New.
2363 * ser-pipe.c (pipe_close): Close file descriptor even if there's
2364 no state pointer.
2365 (pipe_ops): Delete.
2366 (gdb_pipe): New.
2367
2368 2010-08-20 Keith Seitz <keiths@redhat.com>
2369
2370 PR symtab/11465:
2371 * dwarf2read.c (struct delayed_method_info): New struct.
2372 (struct dwarf2_cu): Add vector method_list.
2373 (scan_partial_symbols): Count methods for union, class, structure,
2374 and interface types.
2375 (add_to_method_list): New function.
2376 (free_delayed_list): New function.
2377 (compute_delayed_physnames): New function.
2378 (process_full_comp_unit): Make a cleanup for the CU's delayed
2379 physname list, compute the delayed physnames, and free the
2380 the list.
2381 (dwarf2_add_member_fn): For C++ and Java, delay the computation
2382 of the physname until after the CU is read.
2383
2384 * dwarf2read.c (read_structure_type): Check if the current
2385 DIE's type was already completed after dwarf2_full_name
2386 was called.
2387
2388 2010-08-19 Stan Shebs <stan@codesourcery.com>
2389
2390 * NEWS: Mention some additional changes.
2391
2392 2010-08-19 Tom Tromey <tromey@redhat.com>
2393
2394 * Makefile.in (install-python): Add DESTDIR.
2395
2396 2010-08-19 Doug Evans <dje@google.com>
2397
2398 PR exp/11926
2399 * parser-defs.h (parse_float, parse_c_float): Declare.
2400 * parse.c (parse_float, parse_c_float): New function.
2401 * c-exp.y (parse_number): Call parse_c_float.
2402 * objc-exp.y (parse_number): Ditto.
2403 * p-exp.y (parse_number): Ditto. Use ANSI/ISO-style definition.
2404 * jv-exp.y (parse_number): Call parse_float, fix suffix handling.
2405
2406 2010-08-19 Joel Brobecker <brobecker@adacore.com>
2407
2408 * psymtab.c (map_symbol_filenames_psymtab): Call FUN with
2409 the arguments in the correct order.
2410 * symtab.c (maybe_add_partial_symtab_filename): Declare
2411 the arguments in the correct order.
2412
2413 2010-08-19 Jan Kratochvil <jan.kratochvil@redhat.com>
2414
2415 * varobj.c (varobj_create): Replace variable old_fi with old_id,
2416 initialize it by null_frame_id, wrap its usage by get_frame_id,
2417 frame_id_p and frame_find_by_id.
2418
2419 2010-08-18 Tom Tromey <tromey@redhat.com>
2420
2421 PR python/11900:
2422 * configure: Rebuild.
2423 * configure.ac: Add install-python to CONFIG_INSTALL.
2424 * Makefile.in (install-python): New.
2425
2426 2010-08-18 Doug Evans <dje@google.com>
2427
2428 * gdb_assert.h (gdb_assert_not_reached): New macro.
2429 (gdb_assert_fail): Fix typo in comment.
2430 * avr-tdep.c (avr_return_value): Use gdb_assert_not_reached instead of
2431 gdb_assert (0).
2432 * darwin-nat.c (darwin_check_new_threads): Ditto.
2433 * dwarf2read.c (dwarf2_get_section_info): Ditto.
2434 (munmap_section_buffer): Ditto.
2435 * m32c-tdep.c (make_types): Ditto.
2436 (m32c_decode_srcdest4, m32c_decode_sd23, m32c_frame_base): Ditto.
2437 * macroexp.c (get_character_constant): Ditto.
2438 (get_string_literal): Ditto.
2439 * mep-tdep.c (mep_pseudo_cr_size): Ditto.
2440 (mep_pseudo_cr_index, mep_register_type): Ditto.
2441 (mep_pseudo_register_read, mep_pseudo_register_write): Ditto.
2442 (mep_get_insn, mep_analyze_prologue): Ditto.
2443 * objfiles.c (qsort_cmp): Ditto.
2444 * prologue-value.c (pv_is_identical): Ditto.
2445 * record.c (record_get_loc): Ditto.
2446 * value.c (value_static_field): Ditto.
2447 * xtensa-tdep.c (call0_track_op): Ditto.
2448
2449 2010-08-18 Tom Tromey <tromey@redhat.com>
2450
2451 PR symtab/11919:
2452 * gdbtypes.c (lookup_struct_elt_type): Clean up error emission.
2453 * parse.c (parse_field_expression): Use RETURN_MASK_ERROR. Move
2454 name-copying lower. Document exception behavior.
2455 * completer.c (expression_completer): Catch exceptions from
2456 parse_field_expression.
2457
2458 2010-08-18 Pedro Alves <pedro@codesourcery.com>
2459
2460 PR corefile/8210
2461
2462 * linux-thread-db.c (add_thread_db_info): Skip glibc/BZ5983
2463 workaround on core files.
2464 (try_thread_db_load_1): Don't try enabling thread event reporting
2465 on core files.
2466 (thread_db_load): Allow thread_db on core files.
2467 (attach_thread): Don't check thread signals on core files, nor try
2468 really attaching to the thread, nor enabling thread event event
2469 reporting.
2470 (thread_db_detach): Don't try disabing thread event reporting or
2471 removing thread event breakpoints when debugging a core file.
2472 (find_new_threads_callback): Don't try enabling thread event
2473 reporting on core files.
2474 (thread_db_find_new_threads_2): Don't look for a stopped lwp when
2475 debugging a core file.
2476 (thread_db_find_new_threads): Don't update thread
2477 cores (processors) when debugging a core (dump).
2478
2479 2010-08-18 Pedro Alves <pedro@codesourcery.com>
2480
2481 PR corefile/8210
2482
2483 * corelow.c (add_to_thread_list): Don't use
2484 gdbarch_core_reg_section_encodes_pid. Use bfd_core_file_pid.
2485 (get_core_register_section): Don't use
2486 gdbarch_core_reg_section_encodes_pid.
2487
2488 * gdbarch.sh (core_reg_section_encodes_pid): Delete.
2489 * gdbarch.h, gdbarch.c: Regenerate.
2490 * amd64-sol2-tdep.c (amd64_sol2_init_abi): Don't set
2491 gdbarch_core_reg_section_encodes_pid.
2492 * i386-sol2-tdep.c (i386_sol2_init_abi): Ditto.
2493 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Ditto.
2494 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Ditto.
2495
2496 2010-08-18 Yao Qi <yao@codesourcery.com>
2497
2498 * MAINTAINERS : Add myself under Write After Approval.
2499
2500 2010-08-17 Tom Tromey <tromey@redhat.com>
2501
2502 * NEWS: Mention template parameter support.
2503
2504 2010-08-17 Pedro Alves <pedro@codesourcery.com>
2505
2506 PR breakpoints/11371
2507
2508 * breakpoint.c (decref_bp_location): Assert the reference count is
2509 sane.
2510
2511 2010-08-17 Pedro Alves <pedro@codesourcery.com>
2512
2513 PR breakpoints/11371
2514
2515 * breakpoint.c (breakpoint_init_inferior): Decrement the
2516 location's reference count instead of deleting right away.
2517 (bpstat_free): Decrement the location's reference count. Make
2518 static.
2519 (bpstat_copy): Increment the location's reference count.
2520 (bpstat_find_breakpoint): Adjust.
2521 (bpstat_num): Adjust.
2522 (print_it_typical): Adjust. Use the breakpoint pointer in the
2523 bpstat instead of the location's owner.
2524 (bpstat_alloc): Remove const qualifier from the 'bl' parameter.
2525 Adjust to record the location's owner in the bpstat.
2526 (watchpoint_check): Use the breakpoint pointer in the bpstat
2527 instead of the location's owner.
2528 (bpstat_check_breakpoint_conditions): Don't handle
2529 bp_watchpoint_scope here. Use the breakpoint pointer in the
2530 bpstat instead of the location's owner.
2531 (bpstat_stop_status): Defer inferior function calls to after
2532 building the bpstat list. Handle bp_watchpoint_scope here. Use
2533 the breakpoint pointer in the bpstat instead of the location's
2534 owner.
2535 (bpstat_what): Use the breakpoint pointer in the bpstat instead of
2536 the location's owner.
2537 (free_bp_location): Don't walk bpstats clearing locations.
2538 (incref_bp_location): New.
2539 (decref_bp_location): New.
2540 (breakpoint_auto_delete): Use the breakpoint pointer in the bpstat
2541 instead of the location's owner.
2542 (update_global_location_list): Clear the location's owner, and
2543 decrement the location's reference count instead of deleting it
2544 right away.
2545 (breakpoint_retire_moribund): Decrement the location's reference
2546 count instead of deleting it right away.
2547 (bpstat_remove_bp_location): Delete.
2548 (bpstat_remove_breakpoint): New.
2549 (bpstat_remove_bp_location_callback): Delete.
2550 (bpstat_remove_breakpoint_callback): New.
2551 (delete_breakpoint): Iterate over all threads' stop_bpstat's
2552 clearing references to the breakpoint that is being deleted.
2553
2554 * breakpoint.h (struct bp_location) <refc>: New field.
2555 <owner>: Update comments.
2556 (bpstat_free): Delete declaration.
2557 (struct bpstats): Change the type of the breakpoint_at field to
2558 struct breakpoint point, from struct bp_location pointer. Add new
2559 field bp_location_at.
2560
2561 2010-08-16 Tom Tromey <tromey@redhat.com>
2562
2563 * NEWS: Fix typo.
2564
2565 2010-08-16 Tom Tromey <tromey@redhat.com>
2566
2567 * NEWS: Mention watch -location.
2568
2569 2010-08-16 Jan Kratochvil <jan.kratochvil@redhat.com>
2570
2571 * breakpoint.c (update_watchpoint): Add source empty line. Prefer
2572 EXP_STRING_REPARSE to EXP_STRING.
2573 (watch_command_1): Set also EXP_STRING_REPARSE.
2574 (delete_breakpoint): Free also EXP_STRING_REPARSE.
2575 * breakpoint.h (struct breakpoint): New field exp_string_reparse.
2576 Update comment for exp_string.
2577
2578 2010-08-16 Tom Tromey <tromey@redhat.com>
2579
2580 * value.c (release_value): Clear 'next' pointer.
2581 * breakpoint.c (watch_command_1): Add 'just_location' argument.
2582 (watch_command_wrapper): Update.
2583 (watch_maybe_just_location): New function.
2584 (watch_command): Update.
2585 (rwatch_command_wrapper): Update.
2586 (rwatch_command): Update.
2587 (awatch_command_wrapper): Update.
2588 (awatch_command): Update.
2589 (check_for_argument): New function.
2590 (_initialize_breakpoint): Update help text.
2591
2592 2010-08-14 Ulrich Weigand <uweigand@de.ibm.com>
2593
2594 * arm-tdep.c (arm_push_dummy_call): Handle pointers to
2595 typedef'ed function types correctly.
2596
2597 2010-08-13 Tom Tromey <tromey@redhat.com>
2598
2599 * python/python-internal.h (gdbpy_get_hook_function): Don't
2600 declare.
2601
2602 2010-08-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2603
2604 * cli/cli-logging.c (logging_overwrite, logging_redirect): Make them
2605 static.
2606
2607 2010-08-13 Ken Werner <ken.werner@de.ibm.com>
2608
2609 * python/python.c (gdbpy_solib_name): Remove the const qualifier of
2610 the format strings to be compatible with Python 2.4.
2611
2612 2010-08-13 Vladimir Prus <vladimir@codesourcery.com>
2613
2614 Easier and more stubborn MI memory read commands.
2615
2616 * mi/mi-cmds.c (mi_cmds): Register data-read-memory-bytes
2617 and data-write-memory-bytes.
2618 * mi/mi-cmds.h (mi_cmd_data_read_memory_bytes)
2619 (mi_cmd_data_write_memory_bytes): New.
2620 * mi/mi-main.c (mi_cmd_data_read_memory): Use regular target_read.
2621 (mi_cmd_data_read_memory_bytes, mi_cmd_data_write_memory_bytes):
2622 New.
2623 (mi_cmd_list_features): Add "data-read-memory-bytes" feature.
2624 * target.c (target_read_until_error): Remove.
2625 (read_whatever_is_readable, free_memory_read_result_vector)
2626 (read_memory_robust): New.
2627 * target.h (target_read_until_error): Remove.
2628 (struct memory_read_result, free_memory_read_result_vector)
2629 (read_memory_robust): New.
2630
2631 2010-08-13 Hui Zhu <teawater@gmail.com>
2632
2633 * dwarf2read.c (load_partial_comp_unit): Initialize free_cu_cleanup.
2634 (read_comp_unit): Initialize back_to.
2635
2636 2010-08-12 Daniel Jacobowitz <dan@codesourcery.com>
2637 Pedro Alves <pedro@codesourcery.com>
2638
2639 * dwarf2read.c: Include "c-lang.h" and "valprint.h".
2640 (struct dwarf2_per_objfile) <reading_partial_symbols>: New field.
2641 (struct partial_die_info) <has_template_arguments>: New field.
2642 <num_attrs>: Change type to unsigned char.
2643 <building_fullname>: New field.
2644 (dwarf2_build_psymtabs_hard): Set reading_partial_symbols. Only
2645 allocate a CU if we don't have one already. Add a cleanup for the
2646 CU.
2647 (partial_die_full_name): Handle template arguments not in
2648 DW_AT_name.
2649 (dwarf2_psymtab_to_symtab): Clear reading_partial_symbols.
2650 (load_full_comp_unit): Only allocate a CU if we don't have one
2651 already.
2652 (do_ui_file_peek_last): New.
2653 (dwarf2_compute_name): Handle template parameters not in
2654 DW_AT_name.
2655 (read_comp_unit): Read and free abbrevs if not read yet.
2656 (load_partial_dies): Handle template arguments not in DW_AT_name.
2657 (find_partial_die): If we have a CU, but no a partial dies yet,
2658 also read in the CU.
2659 (dwarf2_const_value_attr): New, abstracted out from
2660 dwarf2_const_value.
2661 (dwarf2_const_value, dwarf2_const_value_data): Adjust to use
2662 dwarf2_const_value_attr.
2663 (determine_prefix): Detect and break loops created by RCVT's debug
2664 info.
2665 (maybe_queue_comp_unit): Bail out early if reading partial
2666 symbols.
2667 (follow_die_offset): Load full CU if we have no dies.
2668 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Make public.
2669 * dwarf2loc.h (dwarf2_evaluate_loc_desc): Declare.
2670
2671 2010-08-11 Tom Tromey <tromey@redhat.com>
2672 Phil Muldoon <pmuldoon@redhat.com>
2673
2674 * python/python.c (gdbpy_run_events): New function.
2675 (gdbpy_post_event): Likewise.
2676 (gdbpy_initialize_events): Likewise.
2677 (_initialize_python): Call gdbpy_initialize_events.
2678
2679 2010-08-11 Ken Werner <ken.werner@de.ibm.com>
2680
2681 * gdb/valarith.c (vector_binop): New function.
2682 (scalar_binop): Likewise.
2683 (value_binop): Call scalar_binop or vector_binop depending on the types.
2684 * gdb/eval.c (ptrmath_type_p): Return 0 in case of TYPE_VECTOR.
2685 (evaluate_subexp_with_coercion): Add vector check to not convert vectors
2686 to pointers.
2687 * gdb/value.c (coerce_array): Add vector check to not coerce vectors.
2688
2689 2010-08-11 Brad Roberts <braddr@puremagic.com>
2690
2691 * d-lang.c (extract_identifiers): Handle multiple digits.
2692
2693 2010-08-11 Jan Kratochvil <jan.kratochvil@redhat.com>
2694
2695 Code cleanup.
2696 * dummy-frame.c (dummy_frame_unwinder): Remove its static qualifier.
2697 Rename to dummy_frame_unwind.
2698 (dummy_frame_unwind): Remove.
2699 * dummy-frame.h (dummy_frame_unwind): Reference directly the struct.
2700 * frame-unwind.c (frame_unwind_init): Use address of
2701 dummy_frame_unwind and inline_frame_unwind.
2702 * frame.c (create_sentinel_frame): Use address of
2703 sentinel_frame_unwind.
2704 * inline-frame.c (inline_frame_unwinder): Rename to
2705 inline_frame_unwind.
2706 (inline_frame_unwind): Remove.
2707 * inline-frame.h (inline_frame_unwind): Reference directly the struct.
2708 * sentinel-frame.c (sentinel_frame_unwinder): Rename to
2709 sentinel_frame_unwind.
2710 (sentinel_frame_unwind): Remove.
2711 * sentinel-frame.h (sentinel_frame_unwind): Reference directly the
2712 struct.
2713
2714 2010-08-11 Jan Kratochvil <jan.kratochvil@redhat.com>
2715
2716 Code cleanup.
2717 * frame-unwind.c (frame_unwind_find_by_frame): Remove the return type
2718 and returned value. New comment from frame-unwind.h.
2719 * frame-unwind.h (frame_unwind_find_by_frame): Remove the return type.
2720 Extend the comment.
2721 * frame.c (get_frame_id, frame_unwind_register_value)
2722 (create_new_frame, get_prev_frame_1, frame_unwinder_is)
2723 (get_frame_type, frame_unwind_arch): Do not use the return value of
2724 frame_unwind_find_by_frame.
2725
2726 2010-08-11 Phil Muldoon <pmuldoon@redhat.com>
2727 Thiago Jung Bauermann <bauerman@br.ibm.com>
2728 Tom Tromey <tromey@redhat.com>
2729
2730 * python/python.c (gdbpy_solib_address): New function.
2731 (gdbpy_decode_line): Likewise.
2732
2733 2010-08-10 Tom Tromey <tromey@redhat.com>
2734
2735 Revert gdb-add-index addition:
2736 * Makefile.in (install-only): Don't install gdb-add-index.
2737 * gdb-add-index.sh: Remove.
2738
2739 2010-08-09 Kevin Buettner <kevinb@redhat.com>
2740
2741 * remote-sim.c (gdbsim_xfer_inferior_memory): Replace
2742 `target_has_execution' check with `to_has_memory' check.
2743 (gdbsim_has_all_memory, gdbsim_has_memory): New functions.
2744 (init_gdbsym_ops): Initialize relevant fields of `gdbsim_ops'
2745 with `gdbsim_has_all_memory' and `gdbsim_has_memory'.
2746
2747 2010-08-09 Kevin Buettner <kevinb@redhat.com>
2748
2749 * remote-sim.c (program_loaded, gdbsim_desc, remote_sim_ptid)
2750 (resume_siggnal, resume_step): Move these static globals...
2751 (struct sim_inferior_data): ...into this new struct.
2752 (sim_inferior_data_key, next_pid, sim_argv, gdbsim_is_open):
2753 New static globals.
2754 (gdb_callback, callbacks_initialized): Move these globals to
2755 a point earlier in the file.
2756 (check_for_duplicate_sim_descriptor, get_sim_inferior_data)
2757 (get_sim_inferior_data_by_ptid, sim_inferior_data_cleanup)
2758 (gdbsim_close_inferior, gdbsim_resume_inferior)
2759 (gdbsim_stop_inferior): New functions.
2760 (SIM_INSTANCE_NOT_NEEDED, SIM_INSTANCE_NEEDED, INITIAL_PID):
2761 New constants.
2762 (gdbsim_fetch_register, gdbsim_store_register, gdbsim_load)
2763 (gdbsim_create_inferior, gdbsim_open, gdbsim_close, gdbsim_resume)
2764 (gdbsim_stop, gdbsim_cntrl_c, gdbsim_wait)
2765 (gdbsim_xfer_inferior_memory, gdbsim_files_info)
2766 (gdbsim_mourn_inferior, simulator_command, gdbsim_thread_alive,
2767 (gdbsim_pid_to_str): Invoke `get_sim_inferior_data' to set
2768 new local variable `sim_data' in each of these functions. Use
2769 `sim_data' to reference former globals `program_loaded',
2770 `gdbsim_desc', `remote_sim_ptid', `resume_siggnal', and
2771 `resume_step'.
2772 (gdbsim_open): Remove local variable `argv'. Put results of call
2773 to `gdb_buildargv' in `sim_argv' rather than in `argv'. Don't
2774 make a cleanup for it. Free it though when a sim instance cannot
2775 be obtained.
2776 (gdbsim_close): Free sim_argv and null it out as appropriate.
2777 Close sim instances in all inferiors.
2778 (gdbsim_cntrl_c): Stop all inferiors.
2779 (gdbsim_wait):
2780 (_initialize_remote_sim): Initialize `sim_inferior_data_key'.
2781
2782 2010-08-09 Sami Wagiaalla <swagiaal@redhat.com>
2783
2784 * dwarf2read.c (new_symbol): Add symbol to variable list at end of
2785 function after symbol construction is complete.
2786 Do the same for template symbol addition to template_symbols list.
2787
2788 2010-08-09 Sami Wagiaalla <swagiaal@redhat.com>
2789
2790 * symtab.c (symbol_get_demangled_name): Remove assertion and
2791 return NULL when language_specific.cplus_specific is not initialized.
2792 * stabsread.c (define_symbol): Set the name before calling
2793 cp_scan_for_anonymous_namespaces.
2794
2795 2010-08-09 Sami Wagiaalla <swagiaal@redhat.com>
2796
2797 * symtab.h: Renamed SYMBOL_INIT_LANGUAGE_SPECIFIC to
2798 SYMBOL_SET_LANGUAGE.
2799 (symbol_init_language_specific): Renamed to symbol_set_language.
2800 * symtab.c (symbol_init_language_specific): Removed redundant check
2801 for language_cplus.
2802 Renamed to symbol_set_language.
2803 * stabsread.c (define_symbol): Updated.
2804 (read_enum_type): Updated
2805 * psymtab.c (add_psymbol_to_bcache): Updated.
2806 * minsyms.c (install_minimal_symbols): Updated.
2807 * coffread.c (process_coff_symbol): SYMBOL_SET_LANGUAGE instead of
2808 SYMBOL_LANGUAGE to set the language.
2809 * minsyms.c (prim_record_minimal_symbol_full): Ditto.
2810 * mdebugread.c (new_symbol): Ditto.
2811 * cp-namespace.c (check_one_possible_namespace_symbol): Ditto.
2812 * dwarf2read.c (new_symbol_full): Ditto.
2813 * jv-lang.c (add_class_symbol): Ditto.
2814
2815 2010-08-07 Jan Kratochvil <jan.kratochvil@redhat.com>
2816
2817 * defs.h (make_cleanup_restore_uinteger, make_cleanup_restore_ui_file)
2818 (make_cleanup_restore_page_info)
2819 (set_batch_flag_and_make_cleanup_restore_page_info): New declarations.
2820 * gdbcmd.h (execute_command_to_string): New declaration.
2821 * python/python.c (struct restore_ui_file_closure, restore_ui_file)
2822 (make_cleanup_restore_ui_file): Move to utils.c
2823 (execute_gdb_command) <to_string>: Move ...
2824 * top.c (execute_command_to_string): ... here. Call
2825 set_batch_flag_and_make_cleanup_restore_page_info.
2826 * utils.c (make_cleanup_restore_integer): New source file blank line.
2827 (make_cleanup_restore_uinteger): New.
2828 (struct restore_ui_file_closure, do_restore_ui_file)
2829 (make_cleanup_restore_ui_file): Move here from python/python.c.
2830 (init_page_info) <batch_flag>
2831 (do_restore_page_info_cleanup, make_cleanup_restore_page_info)
2832 (set_batch_flag_and_make_cleanup_restore_page_info): New.
2833
2834 2010-08-06 Maciej W. Rozycki <macro@codesourcery.com>
2835
2836 * thread.c (add_thread_silent): Use null_ptid instead of
2837 minus_one_ptid while getting rid of stale inferior_ptid.
2838
2839 2010-08-06 Corinna Vinschen <vinschen@redhat.com>
2840
2841 * dwarf2-frame.c (struct dwarf2_cie): Add ptr_size member.
2842 Throughout, call read_encoded_value with ptr_size rather than addr_size.
2843 (decode_frame_entry_1): Remove redundant setting of
2844 addr_size. Call gdbarch_dwarf2_addr_size rather than gdbarch_ptr_bit
2845 to determine addr_size in Dwarf versions < 4. Set ptr_size dependent
2846 on examined frame section. Add comment to explain why.
2847 * gdbarch.sh (dwarf2_addr_size): Define as variable. Add lengthy
2848 comment to explain usage.
2849 * gdbarch.c: Regenerate.
2850 * gdbarch.h: Regenerate.
2851
2852 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set dwarf2_addr_size to 4.
2853
2854 2010-08-06 Jan Kratochvil <jan.kratochvil@redhat.com>
2855
2856 Code cleanup.
2857 * varobj.c (varobj_create): Move variables fi, old_fi and block to
2858 a more inner block.
2859
2860 2010-08-05 Pedro Alves <pedro@codesourcery.com>
2861
2862 * configure.tgt (alpha*-*-linux*, am33_2.0*-*-linux*, frv-*-*)
2863 (hppa*-*-linux*, ia64-*-linux*, m32r*-*-linux*, m68*-*-linux*)
2864 (microblaze*-linux-*, mips*-*-linux*, sh*-*-linux*)
2865 (sparc-*-linux*, sparc64-*-linux*, xtensa*-*-linux*): Add
2866 linux-tdep.o to gdb_target_obs.
2867
2868 2010-08-05 Marc Khouzam <marc.khouzam@ericsson.com>
2869
2870 * mi/mi-main.c (mi_cmd_remove_inferior): Properly access first
2871 argument.
2872
2873 2010-08-05 Hui Zhu <teawater@gmail.com>
2874
2875 * mips-linux-tdep.c(regset.h): New include.
2876 (mips_supply_gregset_wrapper, mips_fill_gregset_wrapper,
2877 mips_supply_fpregset_wrapper, mips_fill_fpregset_wrapper,
2878 mips64_supply_gregset_wrapper, mips64_fill_gregset_wrapper,
2879 mips64_supply_fpregset_wrapper, mips64_fill_fpregset_wrapper,
2880 mips_linux_regset_from_core_section): New functions.
2881 (fetch_core_registers, regset_core_fns): Deleted.
2882 (mips_linux_init_abi): Add mips_linux_regset_from_core_section.
2883 Deleted regset_core_fns.
2884 * mips-tdep.c(mips_gdbarch_init): Initialize tdep->gregset,
2885 tdep->gregset64, tdep->fpregset and tdep->fpregset64.
2886 * mips-tdep.h(gdbarch_tdep): Add gregset, gregset64, fpregset
2887 and fpregset64.
2888
2889 2010-08-04 Pedro Alves <pedro@codesourcery.com>
2890
2891 * s390-tdep.c: Include linux-tdep.h.
2892 (s390_gdbarch_init): Call linux_init_abi.
2893
2894 2010-08-04 Pedro Alves <pedro@codesourcery.com>
2895
2896 * corelow.c (core_pid_to_str): Default to using normal_pid_to_str
2897 instead of printing "Thread" here.
2898 * linux-tdep.c: Include inferior.h.
2899 (linux_core_pid_to_str): New.
2900 (linux_init_abi): New.
2901 * linux-tdep.h (linux_init_abi): Declare.
2902 * alpha-linux-tdep.c: Include linux-tdep.h.
2903 (alpha_linux_init_abi): Call linux_init_abi.
2904 * amd64-linux-tdep.c (amd64_linux_init_abi): Call linux_init_abi.
2905 * arm-linux-tdep.c (arm_linux_init_abi): Call linux_init_abi.
2906 * frv-linux-tdep.c: Include linux-tdep.h
2907 (frv_linux_init_abi): Call linux_init_abi.
2908 * hppa-linux-tdep.c: Include linux-tdep.h
2909 (hppa_linux_init_abi): Call linux_init_abi.
2910 * i386-linux-tdep.c (i386_linux_init_abi): Call linux_init_abi.
2911 * ia64-linux-tdep.c: Include linux-tdep.h.
2912 (ia64_linux_init_abi): Call linux_init_abi.
2913 * m32r-linux-tdep.c: Include linux-tdep.h.
2914 (m32r_linux_init_abi): Call linux_init_abi.
2915 * m68klinux-tdep.c: Include linux-tdep.h.
2916 (m68k_linux_init_abi): Call linux_init_abi.
2917 * microblaze-linux-tdep.c: Include linux-tdep.h.
2918 (microblaze_linux_init_abi): Call linux_init_abi.
2919 * mips-linux-tdep.c: Include linux-tdep.h.
2920 (mips_linux_init_abi): Call linux_init_abi.
2921 * mn10300-linux-tdep.c: Include linux-tdep.h.
2922 (am33_linux_init_osabi): Call linux_init_abi. Rename the
2923 'gdbinfo' parameter to 'info'.
2924 * ppc-linux-tdep.c: Include linux-tdep.h.
2925 (ppc_linux_init_abi): Call linux_init_abi.
2926 * sh-linux-tdep.c: Include linux-tdep.h.
2927 (sh_linux_init_abi): Call linux_init_abi.
2928 * sparc-linux-tdep.c: Include linux-tdep.h.
2929 (sparc32_linux_init_abi): Call linux_init_abi.
2930 * sparc64-linux-tdep.c: Include linux-tdep.h.
2931 (sparc64_linux_init_abi): Call linux_init_abi.
2932 * xtensa-linux-tdep.c: Include linux-tdep.h.
2933 (xtensa_linux_init_abi): Call linux_init_abi.
2934 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): New.
2935 (i386_cygwin_init_abi): Install it as gdbarch_core_pid_to_str
2936 callback.
2937
2938 2010-08-03 Doug Evans <dje@google.com>
2939
2940 * breakpoint.c (bpdisp_text): Constify bpdisps.
2941 * solib-svr4.c (solib_break_names): Constify.
2942 (bkpt_names, main_name_list): Constify.
2943 (match_main): Constify soname arg.
2944 (bfd_lookup_symbol): Remove unnecessary forward decl.
2945 Constify symname arg.
2946 (enable_break): Constify bkpt_namep.
2947 * symtab.c (search_symbols): Constify types, types2, types3, types4.
2948 (symtab_symbol_info): Constify classnames.
2949
2950 2010-08-03 Phil Muldoon <pmuldoon@redhat.com>
2951
2952 * NEWS: Document Python value inferior function calls.
2953
2954 2010-08-02 Doug Evans <dje@google.com>
2955
2956 * dwarf2read.c (dwarf_attr_name): Add DW_AT_GNU_odr_signature.
2957
2958 2010-07-31 Paul Pluzhnikov <ppluzhnikov@google.com>
2959
2960 * linux-thread-db.c (libthread_db_debug): New variable.
2961 (thread_db_find_new_threads_silently): Control verbosity with it.
2962 (try_thread_db_load_1, try_thread_db_load): Likewise.
2963 (find_new_threads_once): Likewise.
2964 (_initialize_thread_db): Set/show it.
2965
2966 2010-07-31 Jan Kratochvil <jan.kratochvil@redhat.com>
2967
2968 * common/signals.c (signals): Move the content to signals.def.
2969 Include it. Remove the INDENT comments.
2970
2971 2010-07-30 Tom Tromey <tromey@redhat.com>
2972
2973 * Makefile.in (install-only): Install gdb-add-index.
2974 * gdb-add-index.sh: New file.
2975
2976 2010-07-31 Renquan Cheng <crq@gcc.gnu.org>
2977
2978 * MAINTAINERS: Add myself for write after approval privileges.
2979
2980 2010-07-30 Jan Kratochvil <jan.kratochvil@redhat.com>
2981
2982 * symfile.c (addr_section_name): New function.
2983 (addrs_section_compar): Use it.
2984 (addr_info_make_relative): Use it. Move variable sect_name into a more
2985 inner block. Make ".dynbss" and ".sdynbss" checks more strict.
2986
2987 2010-07-30 Tom Tromey <tromey@redhat.com>
2988
2989 * configure: Rebuild.
2990 * configure.ac: Add missing case for Python 2.7.
2991
2992 2010-07-29 DJ Delorie <dj@redhat.com>
2993
2994 * rx-tdep.c (rx_analyze_prologue): Don't require branches to have
2995 conditions.
2996
2997 2010-07-29 Pedro Alves <pedro@codesourcery.com>
2998
2999 * PROBLEMS: Remove mention of all problems.
3000
3001 2010-07-28 Pedro Alves <pedro@codesourcery.com>
3002
3003 PR build/11848
3004 * configure.ac: Check for wresize.
3005 * configure, config.in: Regenerate.
3006 * tui/tui-win.c (make_visible_with_new_height): Wrap wresize call
3007 with HAVE_WRESIZE.
3008
3009 2010-07-28 Tom Tromey <tromey@redhat.com>
3010
3011 PR python/11060:
3012 * python/py-type.c (typy_legacy_template_argument): New function,
3013 extracted from typy_template_argument.
3014 (typy_template_argument): Use TYPE_TEMPLATE_ARGUMENT. Return a
3015 value when needed.
3016
3017 2010-07-28 Oleg Nesterov <oleg@redhat.com>
3018
3019 * remote.c (readchar): Call pop_target in case of SERIAL_ERROR.
3020
3021 2010-07-27 Tom Tromey <tromey@redhat.com>
3022
3023 * dwarf2read.c (dwarf2_const_value_data): Never sign extend.
3024
3025 2010-07-28 Daniel Jacobowitz <dan@codesourcery.com>
3026
3027 * dwarf2read.c (read_subroutine_type): Improve THIS detection,
3028 handling DW_AT_object_pointer, and workaround GCC PR 43053.
3029
3030 2010-07-28 Tom Tromey <tromey@redhat.com>
3031
3032 * Makefile.in (HFILES_NO_SRCDIR): Remove link-warning.h.
3033
3034 2010-07-28 Joel Brobecker <brobecker@adacore.com>
3035
3036 * remote.c (remote_download_tracepoint): Add missing gettext markup.
3037 * tracepoint.c (parse_static_tracepoint_marker_definition): Likewise.
3038
3039 2010-07-28 Joel Brobecker <brobecker@adacore.com>
3040
3041 * breakpoint.c (breakpoint_re_set_one): Move call to set_language
3042 down, just before the block that parse the breakpoint addr_string.
3043
3044 2010-07-28 Tom Tromey <tromey@redhat.com>
3045
3046 PR c++/9946:
3047 * symfile.c (reread_symbols): Clear template_symbols.
3048 * symtab.h (struct symbol) <is_cplus_template_function>: New
3049 field.
3050 (SYMBOL_IS_CPLUS_TEMPLATE_FUNCTION): New macro.
3051 (struct template_symbol): New.
3052 * symtab.c (lookup_symbol_aux_local): Use
3053 cp_lookup_symbol_imports_or_template.
3054 * objfiles.h (struct objfile) <template_symbols>: New field.
3055 * objfiles.c (relocate_one_symbol): New function.
3056 (objfile_relocate1): Use it. Relocate isolated symbols.
3057 * gdbtypes.h (struct cplus_struct_type) <n_template_arguments,
3058 template_arguments>: New fields.
3059 (TYPE_N_TEMPLATE_ARGUMENTS): New macro.
3060 (TYPE_TEMPLATE_ARGUMENTS): Likewise.
3061 (TYPE_TEMPLATE_ARGUMENT): Likewise.
3062 (lookup_typename): Update.
3063 * gdbtypes.c (lookup_typename): Constify "block" argument.
3064 * dwarf2read.c: Include vec.h.
3065 (symbolp): New typedef.
3066 (read_func_scope): Read template arguments. Allocate a
3067 template_symbol when needed.
3068 (read_structure_type): Read template arguments.
3069 (new_symbol_full): New function, from new_symbol. Handle
3070 DW_TAG_template_type_param and DW_TAG_template_value_param.
3071 (new_symbol): Rewrite as wrapper.
3072 * cp-support.h (cp_lookup_symbol_imports_or_template): Declare.
3073 * cp-namespace.c: Include language.h.
3074 (search_symbol_list): New function.
3075 (cp_lookup_symbol_imports_or_template): Likewise.
3076
3077 2010-07-28 Balazs Kezes <rlblaster@gmail.com>
3078
3079 * tui/tui-win.c (make_visible_with_new_height): Resize and move
3080 the command window to the new size and position.
3081
3082 2010-07-28 Balazs Kezes <rlblaster@gmail.com>
3083
3084 * tui/tui-win.c (tui_resize_all): Update the locator's origin's
3085 coordinates.
3086
3087 2010-07-28 Balazs Kezes <rlblaster@gmail.com>
3088
3089 * tui/tui-io.c (tui_handle_resize_during_io): Call tui_resize_all
3090 after a detecting a resize.
3091 * tui/tui-win.c (tui_resize_all): Remove tui_set_win_resized_to
3092 call.
3093
3094 2010-07-28 Pedro Alves <pedro@codesourcery.com>
3095
3096 * configure.ac: Check for resize_term.
3097 * configure, config.in: Regenerate.
3098
3099 2010-07-27 Joel Brobecker <brobecker@adacore.com>
3100
3101 * MAINTAINERS (Write After Approval): Reorder a couple of entries.
3102
3103 2010-07-27 Daniel Jacobowitz <dan@codesourcery.com>
3104
3105 * dwarf2read.c (read_string): Rename to ...
3106 (read_direct_string): ... this.
3107 (skip_one_die, read_attribute_value, dwarf_decode_line_header)
3108 (dwarf_decode_lines, dwarf_decode_macros): Adjust.
3109
3110 2010-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3111
3112 * linux-nat.c (linux_nat_lp_status_is_event): New function.
3113 (count_events_callback, select_event_lwp_callback)
3114 (cancel_breakpoints_callback, linux_nat_wait_1): Use it.
3115
3116 2010-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3117
3118 * ia64-linux-nat.c (ia64_linux_status_is_event): New function.
3119 (_initialize_ia64_linux_nat): Install it.
3120 * linux-nat.c (sigtrap_is_event, linux_nat_status_is_event)
3121 (linux_nat_set_status_is_event): New.
3122 (stop_wait_callback, count_events_callback, select_event_lwp_callback)
3123 cancel_breakpoints_callback, linux_nat_filter_event)
3124 (linux_nat_wait_1): Use linux_nat_status_is_event.
3125 * linux-nat.h (linux_nat_set_status_is_event): New prototype.
3126
3127 2010-07-27 Tom Tromey <tromey@redhat.com>
3128
3129 * NEWS: Mention labels, .gdb_index.
3130
3131 2010-07-28 CHENG Renquan <rqcheng@smu.edu.sg>
3132
3133 * cli/cli-cmds.c (disassemble_command): Add support of disassemble
3134 "start,+length" form of arguments.
3135 * NEWS: Add "Changed commands" (disassemble) section for "Changes
3136 since GDB 7.1"; and merge two separated paragraphs of disassemble
3137 description in "Changes in GDB 7.0".
3138
3139 2010-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3140
3141 * top.c (input_from_terminal_p): Return 0 on BATCH_FLAG.
3142 * utils.c (defaulted_query): Do not explicitly check for BATCH_FLAG.
3143 (fputs_maybe_filtered): Do not do filtering also on
3144 ! INPUT_FROM_TERMINAL_P.
3145
3146 2010-07-27 Joel Brobecker <brobecker@adacore.com>
3147
3148 * dwarf2read.c (dw2_find_pc_sect_symtab): Remove trailing newline
3149 in warning message.
3150
3151 2010-07-27 Phil Muldoon <pmuldoon@redhat.com>
3152
3153 * python/py-value.c (valpy_call): New Function.
3154
3155 2010-07-27 Ken Werner <ken.werner@de.ibm.com>
3156
3157 * dwarf2read.c (dwarf2_read_index): Initialize the types_list and
3158 types_list_elements variables.
3159
3160 2010-07-26 Tom Tromey <tromey@redhat.com>
3161
3162 * dwarf2loc.c (locexpr_describe_location_piece): Also recognize
3163 TLS with DW_OP_const4u or DW_OP_const8u.
3164
3165 2010-07-26 Thiago Jung Bauermann <bauerman@br.ibm.com>
3166
3167 * ppc-linux-nat.c (store_vsx_register): Use PTRACE_GETVSXREGS to get
3168 VSX registers contents.
3169
3170 2010-07-26 Jerome Guitton <guitton@adacore.com>
3171
3172 * dwarf2read.c (add_partial_symbol): Do not add a global variable if
3173 its adress is null. Add comment to explain why.
3174 (new_symbol): Ditto.
3175
3176 2010-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
3177
3178 * linux-nat.c (linux_nat_do_thread_registers): Convert STOP_SIGNAL to
3179 the host signal first.
3180
3181 2010-07-23 Tom Tromey <tromey@redhat.com>
3182
3183 * dwarf2read.c (struct dwarf2_per_objfile) <n_type_comp_units,
3184 type_comp_units>: New fields.
3185 (dw2_get_cu): New function.
3186 (create_cus_from_index): Remove unused argument.
3187 (create_signatured_type_hash_from_index): New function.
3188 (create_addrmap_from_index): Update.
3189 (dwarf2_read_index): Handle version 2.
3190 (dw2_find_last_source_symtab, dw2_forget_cached_source_info)
3191 (dw2_lookup_symtab, dw2_do_expand_symtabs_matching)
3192 (dw2_print_stats, dw2_expand_all_symtabs)
3193 (dw2_expand_symtabs_with_filename, dw2_find_symbol_file)
3194 (dw2_expand_symtabs_matching, dw2_map_symbol_filenames): Update.
3195 (dwarf2_initialize_objfile): Call create_debug_types_hash_table.
3196 (allocate_signatured_type_hash_table): New function.
3197 (add_signatured_type_cu_to_list): Likewise.
3198 (create_debug_types_hash_table): Use them. Set type_comp_units.
3199 (read_signatured_type): Ensure section data is available.
3200 (add_address_entry): Don't record empty ranges.
3201 (struct signatured_type_index_data): New.
3202 (write_one_signatured_type): New function.
3203 (write_psymtabs_to_index): Write type CUs.
3204 (save_gdb_index_command): Update comment.
3205 (process_type_comp_unit): Move inititalization of
3206 from_debug_types...
3207 (create_debug_types_hash_table): ... here.
3208
3209 2010-07-23 Jan Kratochvil <jan.kratochvil@redhat.com>
3210
3211 * gdb_gcore.sh (tmpfile): Remove the variable, its initialization,
3212 cleanup and generating of gdb script to it.
3213 (gdb): Use redirection from /dev/null. Use --nx. Turn off pagination
3214 and terminal size. Convert $tmpfile to a series of -ex-es.
3215
3216 2010-07-23 Keith Seitz <keiths@redhat.com>
3217
3218 * symtab.c (basic_lookup_transparent_type): Call pre-expand
3219 hook for STATIC_BLOCK types, too.
3220
3221 2010-07-23 Keith Seitz <keiths@redhat.com>
3222
3223 * dwarf2read.c: Remove unused typedef dwarf2_cu_per_cu_data_ptr
3224 and vector definition.
3225
3226 2010-07-23 Jan Kratochvil <jan.kratochvil@redhat.com>
3227
3228 * linux-nat.c (cancel_breakpoint): Remove unused forward declaration.
3229
3230 2010-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
3231
3232 * dwarf2read.c: Include completer.h.
3233 (save_gdb_index_command): Use matching usage command name.
3234 (_initialize_dwarf2_read): New variable c, initialize it by add_cmd.
3235 Set filename_completer for it.
3236
3237 2010-07-22 Tom Tromey <tromey@redhat.com>
3238
3239 * dwarf2read.c (create_debug_types_hash_table): Set objfile on
3240 type signature's per-CU data.
3241
3242 2010-07-22 Pedro Alves <pedro@codesourcery.com>
3243
3244 * NEWS: Mention target reported shared libraries support by
3245 default.
3246
3247 2010-07-21 Pedro Alves <pedro@codesourcery.com>
3248
3249 PR symtab/11827
3250
3251 Revert:
3252 2010-05-21 Pierre Muller <muller@ics.u-strasbg.fr>
3253 * dwarf2read.c (process_die): Also allow DW_TAG_const_type
3254 and DW_TAG_volatile_type.
3255 (new_symbol): Likewise.
3256
3257 2010-07-21 Sami Wagiaalla <swagiaal@redhat.com>
3258
3259 * eval.c (evaluate_subexp_standard): Disabled evaluation of C++
3260 function symbols before overload resolution.
3261
3262 2010-07-21 Pedro Alves <pedro@codesourcery.com>
3263
3264 * breakpoint.c (bptype_string): New, abstracted out from
3265 print_one_breakpoint_location.
3266 (print_one_breakpoint_location): Adjust.
3267 (breakpoint_1): Adjust the type column width dynamically.
3268
3269 2010-07-20 Jan Kratochvil <jan.kratochvil@redhat.com>
3270
3271 * symfile.c (find_separate_debug_file_by_debuglink): Remove
3272 a gdb_assert call, new comment.
3273
3274 2010-07-20 Jan Kratochvil <jan.kratochvil@redhat.com>
3275
3276 * linux-nat.c (linux_handle_extended_wait): Handle case when
3277 event == PTRACE_EVENT_CLONE && stopping && WSTOPSIG (status) != SIGSTOP.
3278
3279 2010-07-20 Jan Kratochvil <jan.kratochvil@redhat.com>
3280
3281 Code cleanup.
3282 * linux-nat.c (linux_nat_wait_1): Reset STATUS after calling
3283 linux_nat_wait_1. Use always LP->STATUS afterwards.
3284
3285 2010-07-20 Hui Zhu <teawater@gmail.com>
3286
3287 * inf-ptrace.c (inf_ptrace_create_inferior): Initialize back_to.
3288 (inf_ptrace_attach): Ditto.
3289
3290 2010-07-19 Jan Kratochvil <jan.kratochvil@redhat.com>
3291
3292 Make core files the process_stratum.
3293 * corefile.c (core_target): New variable.
3294 (core_file_command): Remove variable t, use core_target.
3295 * corelow.c (core_ops): Make it static.
3296 (init_core_ops): Change to process_stratum. Initialize CORE_TARGET.
3297 * defs.h (make_cleanup_unpush_target): New prototype.
3298 * gdbarch.h: Regenerate.
3299 * gdbarch.sh (core_pid_to_str): Remove core_stratum from its comment.
3300 * gdbcore.h (core_target): New declaration.
3301 * inf-ptrace.c (inf_ptrace_create_inferior, inf_ptrace_attach): New
3302 variables ops_already_pushed and back_to. Use push_target,
3303 make_cleanup_unpush_target and discard_cleanups calls.
3304 * record.c (record_open): Replace core_stratum by a core_bfd check.
3305 * target.c (target_is_pushed): New function.
3306 (find_core_target): Remove.
3307 * target.h (enum strata) <core_stratum>: Remove.
3308 (target_is_pushed): New declaration.
3309 (find_core_target): Remove declaration.
3310 * tracepoint.c (init_tfile_ops) <to_stratum>: Remove comment.
3311 * utils.c (do_unpush_target, make_cleanup_unpush_target): New functions.
3312
3313 2010-07-19 Hui Zhu <teawater@gmail.com>
3314
3315 * breakpoint.c (single_step_breakpoints_inserted): New
3316 function.
3317 * breakpoint.h (single_step_breakpoints_inserted): Extern.
3318 * infrun.c (maybe_software_singlestep): Add check code.
3319 * record.c (record_resume): Add code for software single step.
3320 (record_wait): Ditto.
3321
3322 2010-07-18 Jan Kratochvil <jan.kratochvil@redhat.com>
3323
3324 * linux-nat.c (linux_handle_extended_wait): Move variable new_lp into
3325 a more inner block. Remove its unused declaration initializer.
3326
3327 2010-07-16 Thiago Jung Bauermann <bauerman@br.ibm.com>
3328
3329 * NEWS: Mention support for the new ptrace interface and hardware
3330 accelerated watchpoint conditions on powerpc-linux.
3331
3332 2010-07-16 Ozkan Sezer <sezeroz@gmail.com>
3333
3334 * target.c (debug_to_insert_breakpoint): Instead of casting to unsigned
3335 long and %ld, use core_addr_to_string() and %s to print CORE_ADDR vars
3336 and host_address_to_string() and %s for pointers.
3337 (debug_to_remove_breakpoint): Likewise.
3338 (debug_to_region_ok_for_hw_watchpoint): Likewise.
3339 (debug_to_can_accel_watchpoint_condition): Likewise.
3340 (debug_to_stopped_data_address): Likewise.
3341 (debug_to_watchpoint_addr_within_range): Likewise.
3342 (debug_to_insert_hw_breakpoint): Likewise.
3343 (debug_to_remove_hw_breakpoint): Likewise.
3344 (debug_to_insert_watchpoint): Likewise.
3345 (debug_to_remove_watchpoint): Likewise.
3346
3347 2010-07-16 Sami Wagiaalla <swagiaal@redhat.com>
3348
3349 * symtab.h (symbol_set_demangled_name): Now takes an optional objfile*
3350 argument.
3351 (cplus_specific): New struct.
3352 * symtab.c (symbol_set_demangled_name): Updated.
3353 Use cplus_specific for cplus symbols.
3354 (symbol_get_demangled_name): Retrive the name from the cplus_specific
3355 struct for cplus symbols.
3356 (symbol_init_language_specific): Set cplus_specific for cplus symbols.
3357 (symbol_set_names): Pass objfile to symbol_set_demangled_name.
3358 * symtab.c (symbol_init_cplus_specific): New function.
3359
3360 2010-07-16 Sami Wagiaalla <swagiaal@redhat.com>
3361
3362 * symtab.h (symbol_set_demangled_name): New function.
3363 (symbol_get_demangled_name): New function.
3364 * symtab.c (symbol_set_demangled_name): New function.
3365 (symbol_get_demangled_name): New function.
3366 (symbol_init_language_specific): Use demangled_name setter and getter.
3367 (symbol_set_names): Ditto.
3368 (symbol_natural_name): Ditto.
3369 (symbol_demangled_name): Ditto.
3370 * dwarf2read.c (new_symbol): Ditto.
3371
3372 2010-07-16 Sami Wagiaalla <swagiaal@redhat.com>
3373
3374 * symtab.h: Renamed cplus_specific to mangled_lang.
3375 * symtab.c (symbol_init_language_specific): Updated.
3376 (symbol_set_names): Updated.
3377 (symbol_natural_name): Updated.
3378 (symbol_demangled_name): Updated.
3379 * ada-lang.c (ada_decode_symbol): Updated.
3380 * dwarf2read.c (new_symbol): Updated.
3381
3382 2010-07-14 Ken Werner <ken.werner@de.ibm.com>
3383
3384 * valops.c (value_assign): Do not call to value_coerce_to_target.
3385 (value_must_coerce_to_target): Return 0 in case of TYPE_VECTOR.
3386
3387 2010-07-14 Ken Werner <ken.werner@de.ibm.com>
3388
3389 * MAINTAINERS: Add myself for write after approval privileges.
3390
3391 2010-07-13 Emmanuel Thomé <Emmanuel.Thome@gmail.com>
3392
3393 * c-valprint.c (c_val_print): Add embedded_offset to address in
3394 call to val_print_array_elements.
3395
3396 2010-07-13 Tom Tromey <tromey@redhat.com>
3397
3398 * dwarf2read.c (dwarf2_read_index): Correctly set 'total_size'.
3399
3400 2010-07-13 Tom Tromey <tromey@redhat.com>
3401
3402 * dwarf2read.c (dwarf2_per_cu_text_offset): Fix reference to
3403 objfile.
3404
3405 2010-07-13 Tom Tromey <tromey@redhat.com>
3406
3407 * symfile.c (set_initial_language): Update.
3408 (deduce_language_from_filename): Argument type now const.
3409 * symtab.h (find_main_filename): Update.
3410 (deduce_language_from_filename): Update.
3411 * symtab.c (find_main_filename): Make result const.
3412 * dwarf2read.c (dw2_find_symbol_file): Change return type.
3413 * psymtab.c (find_symbol_file_from_partial): Change return type.
3414 * symfile.h (struct quick_symbol_functions) <find_symbol_file>:
3415 Make result const.
3416
3417 2010-07-13 Tom Tromey <tromey@redhat.com>
3418
3419 * breakpoint.c (save_cmdlist): No longer static.
3420 * gdbcmd.h (save_cmdlist): Declare.
3421 * symfile.c (symbol_file_add_with_addrs_or_offsets): Set
3422 OBJF_READNOW on objfile if readnow_symbol_files.
3423 * elfread.c (elf_symfile_read): Use dwarf2_initialize_objfile.
3424 (elf_sym_fns_gdb_index): New global.
3425 * dwarf2read.c: Include exceptions.h.
3426 (offset_type): New.
3427 (struct mapped_index): New.
3428 (dwarf2_per_cu_data_ptr): New typedef.
3429 (struct dwarf2_per_objfile) <using_index, index_table, gdb_index>:
3430 New fields.
3431 (GDB_INDEX_SECTION): New define.
3432 (struct dwarf2_per_cu_quick_data): New.
3433 (struct dwarf2_per_cu_data) <objfile>: New field.
3434 <psymtab>: Removed.
3435 <v>: New field.
3436 (byte_swap): New function.
3437 (MAYBE_SWAP): New macro.
3438 (INDEX_SUFFIX): New macro.
3439 (dw2_do_instantiate_symtab): New function.
3440 (dw2_instantiate_symtab): Likewise.
3441 (create_cus_from_index): Likewise.
3442 (create_addrmap_from_index): Likewise.
3443 (mapped_index_string_hash): Likewise.
3444 (find_slot_in_mapped_hash): Likewise.
3445 (dwarf2_read_index): Likewise.
3446 (dw2_setup): Likewise.
3447 (dw2_require_line_header): Likewise.
3448 (dw2_require_full_path): Likewise.
3449 (dw2_find_last_source_symtab): Likewise.
3450 (dw2_forget_cached_source_info): Likewise.
3451 (dw2_lookup_symtab): Likewise.
3452 (dw2_lookup_symbol): Likewise.
3453 (dw2_do_expand_symtabs_matching): Likewise.
3454 (dw2_pre_expand_symtabs_matching): Likewise.
3455 (dw2_print_stats): Likewise.
3456 (dw2_dump): Likewise.
3457 (dw2_relocate): Likewise.
3458 (dw2_expand_symtabs_for_function): Likewise.
3459 (dw2_expand_all_symtabs): Likewise.
3460 (dw2_expand_symtabs_with_filename): Likewise.
3461 (dw2_find_symbol_file): Likewise.
3462 (dw2_map_ada_symtabs): Likewise.
3463 (dw2_expand_symtabs_matching): Likewise.
3464 (dw2_find_pc_sect_symtab): Likewise.
3465 (dw2_map_symbol_names): Likewise.
3466 (dw2_map_symbol_filenames): Likewise.
3467 (dw2_has_symbols): Likewise.
3468 (dwarf2_gdb_index_functions): New global.
3469 (dwarf2_initialize_objfile): New function.
3470 (process_psymtab_comp_unit): Update.
3471 (add_partial_subprogram): Likewise.
3472 (dwarf2_psymtab_to_symtab): Likewise.
3473 (psymtab_to_symtab_1): Use dw2_do_instantiate_symtab.
3474 (process_full_comp_unit): Update.
3475 (find_file_and_directory): New function.
3476 (read_file_scope): Use find_file_and_directory.
3477 (dwarf2_per_cu_objfile): Update.
3478 (dwarf2_per_cu_addr_size): Update.
3479 (dwarf2_per_cu_offset_size): Update.
3480 (dwarf2_free_objfile): Free the index, if needed.
3481 (dwarf2_per_objfile_free): Unmap the index, if needed.
3482 (struct strtab_entry): New.
3483 (hash_strtab_entry): New function.
3484 (eq_strtab_entry): Likewise.
3485 (create_strtab): Likewise.
3486 (add_string): Likewise.
3487 (struct symtab_index_entry): New.
3488 (struct mapped_symtab): New.
3489 (hash_symtab_entry): New function.
3490 (eq_symtab_entry): Likewise.
3491 (delete_symtab_entry): Likewise.
3492 (create_index_table): Likewise.
3493 (create_mapped_symtab): Likewise.
3494 (cleanup_mapped_symtab): Likewise.
3495 (find_slot): Likewise.
3496 (hash_expand): Likewise.
3497 (add_index_entry): Likewise.
3498 (add_indices_to_cpool): Likewise.
3499 (write_hash_table): Likewise.
3500 (add_address_entry): Likewise.
3501 (write_psymbols): Likewise.
3502 (write_obstack): Likewise.
3503 (unlink_if_set): Likewise.
3504 (write_psymtabs_to_index): Likewise.
3505 (save_gdb_index_command): Likewise.
3506 (_initialize_dwarf2_read): Install "save gdb-index"
3507 command.
3508 (create_all_comp_units): Initialize 'objfile' field of CU.
3509 (dwarf2_locate_sections): Check for .gdb_index.
3510 * psymtab.h (dwarf2_gdb_index_functions): Declare.
3511 * symfile.h (dwarf2_initialize_objfile): Declare.
3512
3513 2010-07-13 Tom Tromey <tromey@redhat.com>
3514
3515 * symtab.c (lookup_symbol_aux_symtabs): Call pre-expand hook.
3516 (basic_lookup_transparent_type): Likewise.
3517 * symfile.h (struct quick_symbol_functions)
3518 <pre_expand_symtabs_matching>: New field.
3519 * psymtab.c (pre_expand_symtabs_matching_psymtabs): New function.
3520 (psym_functions): Update.
3521
3522 2010-07-13 Tom Tromey <tromey@redhat.com>
3523
3524 PR breakpoints/8357:
3525 * symtab.h (domain_enum_tag) <LABEL_DOMAIN>: Update comment.
3526 * linespec.c (decode_line_1): Update comment. Call decode_label.
3527 (decode_label): New function.
3528 (symbol_found): Handle LOC_LABEL.
3529 * dwarf2read.c (new_symbol) <DW_TAG_label>: Set symbol's type and
3530 domain. Call add_symbol_to_list.
3531
3532 2010-07-13 Tom Tromey <tromey@redhat.com>
3533
3534 * dwarf2loc.h (dwarf2_per_cu_text_offset): Declare.
3535 * dwarf2loc.c (find_location_expression): Use
3536 dwarf2_per_cu_text_offset.
3537 (dwarf2_evaluate_loc_desc): Likewise.
3538 (dwarf2_loc_desc_needs_frame): Likewise.
3539 (compile_dwarf_to_ax): Likewise.
3540 (loclist_describe_location): Likewise.
3541 * dwarf2read.c (dwarf2_per_cu_text_offset): New function.
3542 (dwarf2_per_cu_objfile): Update comment.
3543
3544 2010-07-12 Jan Kratochvil <jan.kratochvil@redhat.com>
3545
3546 * dwarf2read.c (read_subrange_type): Call read_subrange_type.
3547 * p-lang.c (pascal_printstr): Likewise.
3548
3549 2010-07-09 Tom Tromey <tromey@redhat.com>
3550
3551 * python/py-prettyprint.c (gdbpy_get_display_hint): Don't use
3552 'hint' if it is NULL.
3553
3554 2010-07-09 Hui Zhu <teawater@gmail.com>
3555
3556 * source.c (print_source_lines_base): Add check for noprint.
3557
3558 2010-07-08 Joel Brobecker <brobecker@adacore.com>
3559
3560 * python/python-config.py: Resync with Python 2.7 version of this
3561 script.
3562
3563 2010-07-08 Joel Brobecker <brobecker@adacore.com>
3564
3565 * NEWS: Fix typo in section name (s/GDB 7.1/GDB 7.2).
3566
3567 2010-07-07 Joel Brobecker <brobecker@adacore.com>
3568
3569 * NEWS: Create a new section for the next release branch.
3570 Rename the section of the current branch, now that it has
3571 been cut.
3572
3573 2010-07-07 Joel Brobecker <brobecker@adacore.com>
3574
3575 GDB 7.2 branch created (branch timestamp: 2010-07-07 17:00 UTC)
3576 * version.in: Bump version to 7.2.50.20100707-cvs.
3577
3578 2010-07-07 Tom Tromey <tromey@redhat.com>
3579
3580 * dwarf2read.c (dwarf2_const_value) <DW_form_addr>: Create a
3581 LOC_COMPUTED symbol.
3582 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Set new field.
3583 (dwarf2_loc_desc_needs_frame): Likewise.
3584 (compile_dwarf_to_ax) <DW_OP_addr>: Use offset.
3585 * dwarf2expr.h (struct dwarf_expr_context) <offset>: New field.
3586 * dwarf2expr.c (execute_stack_op) <DW_OP_addr>: Use offset.
3587 * dwarf2-frame.c (execute_stack_op): Set 'offset' field. Add
3588 'offset' argument.
3589 (struct dwarf2_frame_cache) <text_offset>: New field.
3590 (dwarf2_frame_cache): Set new field.
3591 (dwarf2_frame_prev_register): Update.
3592 (dwarf2_frame_sniffer): Update.
3593 (dwarf2_frame_base_sniffer): Update.
3594 (dwarf2_frame_find_fde): Add 'out_offset' argument.
3595
3596 2010-07-07 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
3597 Thiago Jung Bauermann <bauerman@br.ibm.com>
3598
3599 Support for hw accelerated condition watchpoints in booke powerpc.
3600
3601 * breakpoint.c (fetch_watchpoint_value): Rename to fetch_subexp_value
3602 and move to eval.c. Change callers.
3603 (insert_bp_location): Pass watchpoint condition in
3604 target_insert_watchpoint.
3605 (remove_breakpoint_1) Pass watchpoint condition in
3606 target_remove_watchpoint.
3607 (watchpoint_locations_match): Call
3608 target_can_accel_watchpoint_condition.
3609 * eval.c: Include wrapper.h.
3610 (fetch_subexp_value): Moved from breakpoint.c.
3611 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint):
3612 Formatting fix.
3613 (can_use_watchpoint_cond_accel): New function.
3614 (calculate_dvc): Likewise.
3615 (num_memory_accesses): Likewise.
3616 (check_condition): Likewise.
3617 (ppc_linux_can_accel_watchpoint_condition): Likewise
3618 (ppc_linux_insert_watchpoint): Call can_use_watchpoint_cond_accel,
3619 check_condition and calculate_dvc.
3620 (ppc_linux_remove_watchpoint): Likewise.
3621 (_initialize_ppc_linux_nat): Set to_can_accel_watchpoint_condition to
3622 ppc_linux_can_accel_watchpoint_condition
3623 * target.c (debug_to_insert_watchpoint): Add argument for watchpoint
3624 condition.
3625 (debug_to_remove_watchpoint): Likewise.
3626 (debug_to_can_accel_watchpoint_condition): New function.
3627 (update_current_target): Set to_can_accel_watchpoint_condition.
3628 (setup_target_debug): Set to_can_accel_watchpoint_condition.
3629 * target.h: Add opaque declaration for struct expression.
3630 (struct target_ops) <to_insert_watchpoint>,
3631 <to_remove_watchpoint>: Add new arguments to pass the watchpoint
3632 <to_can_accel_watchpoint_condition>: New member.
3633 condition. Update all callers and implementations.
3634 (target_can_accel_watchpoint_condition): New macro.
3635 * value.c (free_value_chain): New function.
3636 * value.h (fetch_subexp_value): New prototype.
3637 (free_value_chain): Likewise.
3638
3639 2010-07-07 Ulrich Weigand <uweigand@de.ibm.com>
3640
3641 * linux-nat.c (linux_nat_do_thread_registers): Use section size
3642 from gdbarch_core_regset_sections also for .reg if present.
3643
3644 * amd64-linux-tdep.c (amd64_linux_regset_sections): Fix incorrect
3645 section size for .reg.
3646 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections): Likewise.
3647 (ppc_linux_vmx_regset_sections): Likewise.
3648 (ppc_linux_fp_regset_sections): Likewise.
3649 (ppc64_linux_vsx_regset_sections): New variable.
3650 (ppc64_linux_vmx_regset_sections): Likewise.
3651 (ppc64_linux_fp_regset_sections): Likewise.
3652 (ppc_linux_init_abi): Install core_regset_section lists appropriate
3653 for current word size.
3654
3655 2010-07-06 Joel Brobecker <brobecker@adacore.com>
3656
3657 * server.c (myresume): Make static.
3658
3659 2010-07-06 Tom Tromey <tromey@redhat.com>
3660
3661 * configure, config.in: Rebuild.
3662 * configure.ac (HAVE_LIBPYTHON2_7): New define.
3663 * python/python-internal.h: Handle HAVE_LIBPYTHON2_7.
3664
3665 2010-07-06 Andreas Schwab <schwab@linux-m68k.org>
3666
3667 * breakpoint.c (_initialize_breakpoint): Add "cl" as alias for
3668 "clear".
3669
3670 2010-07-06 Ken Werner <ken.werner@de.ibm.com>
3671
3672 * gdbtypes.h (floatformats_ieee_half): Add declaration.
3673 * gdbtypes.c (floatformats_ieee_half): New variable.
3674 * doublest.c (floatformat_from_length): Set format to
3675 gdbarch_half_format if length matches.
3676 * gdbarch.sh (half_bit): New architecture method.
3677 (half_format): Likewise.
3678 * gdbarch.h: Regenerate.
3679 * gdbarch.c: Likewise.
3680
3681 2010-07-05 Jan Kratochvil <jan.kratochvil@redhat.com>
3682 Joel Brobecker <brobecker@adacore.com>
3683
3684 Fix re-run of PIE executable, PR shlibs/11776.
3685 * solib-svr4.c (svr4_relocate_main_executable) <symfile_objfile>: Remove
3686 the part of pre-set SYMFILE_OBJFILE->SECTION_OFFSETS.
3687
3688 2010-07-05 Jan Kratochvil <jan.kratochvil@redhat.com>
3689 Joel Brobecker <brobecker@adacore.com>
3690
3691 * auxv.c (memory_xfer_auxv): Update attach comment.
3692 * solib-svr4.c (svr4_special_symbol_handling): Remove the call to
3693 svr4_relocate_main_executable.
3694 (svr4_solib_create_inferior_hook): Make the call to
3695 svr4_relocate_main_executable unconditional.
3696
3697 2010-07-05 Jan Kratochvil <jan.kratochvil@redhat.com>
3698 Joel Brobecker <brobecker@adacore.com>
3699
3700 * auxv.c (ld_so_xfer_auxv): Do not error on failed read of data_address.
3701
3702 2010-07-05 Jan Kratochvil <jan.kratochvil@redhat.com>
3703 Joel Brobecker <brobecker@adacore.com>
3704
3705 Fix attaching to PIEs prelinked on the disk after the process was
3706 started.
3707 * solib-svr4.c (svr4_exec_displacement): New variable arch_size.
3708 Verify it against bfd_get_arch_size. Try to match arbitrary
3709 displacement for the phdrs comparison.
3710
3711 2010-07-02 Tom Tromey <tromey@redhat.com>
3712
3713 PR exp/11780:
3714 * libunwind-frame.c (libunwind_frame_prev_register): Don't set
3715 value as optimized-out.
3716
3717 2010-07-02 Ulrich Weigand <uweigand@de.ibm.com>
3718 Thiago Jung Bauermann <bauerman@br.ibm.com>
3719
3720 * breakpoint.c (can_use_hardware_watchpoint): Answer "what does this
3721 represent?" question in comment. Change comment to a proper sentence.
3722
3723 2010-07-02 Ken Werner <ken.werner@de.ibm.com>
3724
3725 * c-valprint.c (c_val_print): Fix printing of character vectors.
3726
3727 2010-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3728
3729 * spu-tdep.c (spu_catch_start): Adjust the caller of changed
3730 create_breakpoint prototype.
3731
3732 2010-07-01 Pedro Alves <pedro@codesourcery.com>
3733
3734 * breakpoint.c (BREAK_ARGS_HELP, _initialize_breakpoint): Clarify
3735 usefulness suggestion of multiple breakpoints at same location.
3736
3737 2010-07-01 Pedro Alves <pedro@codesourcery.com>
3738
3739 * breakpoint.c (BREAK_ARGS_HELP): Add missing `the'.
3740
3741 2010-07-01 Pedro Alves <pedro@codesourcery.com>
3742
3743 * dwarf2loc.c (locexpr_tracepoint_var_ref)
3744 (loclist_tracepoint_var_ref): Handle optimized out values.
3745
3746 2010-07-01 Pedro Alves <pedro@codesourcery.com>
3747
3748 * breakpoint.c (update_watchpoint, _initialize_breakpoint): Remove
3749 unnecessary space in string.
3750 * filesystem.c (_initialize_filesystem): Ditto.
3751 * frame.c (_initialize_frame): Ditto.
3752 * infcmd.c (step_once): Ditto.
3753 * infrun.c (_initialize_infrun): Ditto.
3754 * linux-nat.c (linux_child_follow_fork): Ditto.
3755 * maint.c (maintenance_deprecate): Ditto.
3756 * memattr.c (_initialize_mem): Ditto.
3757 * mips-tdep.c (_initialize_mips_tdep): Ditto.
3758 * monitor.c (monitor_open): Ditto.
3759 * procfs.c (procfs_xfer_memory): Ditto.
3760 * reverse.c (bookmarks_info): Ditto.
3761 * sh64-tdep.c (sh64_show_media_regs, sh64_show_compact_regs): Ditto.
3762 * stack.c (_initialize_stack): Ditto.
3763 * tracepoint.c (_initialize_tracepoint): Ditto.
3764 * xtensa-tdep.c (xtensa_supply_gregset,
3765 xtensa_regset_from_core_section): Ditto.
3766
3767 2010-07-01 Tom Tromey <tromey@redhat.com>
3768
3769 * value.h (struct lval_funcs) <check_any_valid>: Rename from
3770 check_all_valid.
3771 * value.c (value_entirely_optimized_out): Invert result. Update
3772 for new function name.
3773
3774 2010-07-01 Pedro Alves <pedro@codesourcery.com>
3775
3776 Static tracepoints support.
3777
3778 * NEWS: Mention new support for static tracepoints.
3779 (New packets): Mention qTfSTM, qTsSTM, qTSTMat and
3780 qXfer:statictrace:read.
3781 (New features in the GDB remote stub, GDBserver): Mention static
3782 tracepoints support using an UST based backend.
3783 (New commands): Mention "info static-tracepoint-markers" and
3784 "strace".
3785 * breakpoint.c (is_marker_spec): New.
3786 (is_tracepoint): Handle static tracepoints.
3787 (validate_commands_for_breakpoint): Static tracepoints can't do
3788 while-stepping.
3789 (static_tracepoints_here): New.
3790 (bpstat_what): Handle static tracepoints.
3791 (print_one_breakpoint_location, allocate_bp_location, mention):
3792 Ditto.
3793 (create_breakpoint_sal): Ditto.
3794 (decode_static_tracepoint_spec): New.
3795 (create_breakpoint): Replace `hardwareflag', and `traceflag' with
3796 `type_wanted'. Adjust. Handle static tracepoint marker
3797 locations.
3798 (break_command_1): Adjust.
3799 (update_static_tracepoint): New.
3800 (update_breakpoint_locations): Handle static tracepoints.
3801 (breakpoint_re_set_one): Handle static tracepoint marker
3802 locations.
3803 (disable_command, enable_command): Handle static tracepoints.
3804 (trace_command, ftrace_command): Adjust.
3805 (strace_command): New.
3806 (create_tracepoint_from_upload): Adjust.
3807 (save_breakpoints): Handle static tracepoints.
3808 (_initialize_breakpoint): Install the "strace" command.
3809 * breakpoint.h (enum bptype): New bp_static_tracepoint type.
3810 (struct breakpoint): New fields static_trace_marker_id and
3811 static_trace_marker_id_idx.
3812 (breakpoints_here_p): Declare.
3813 (create_breakpoint): Adjust.
3814 (static_tracepoints_here): Declare.
3815 * remote.c (struct remote_state) <static_tracepoints>: New field.
3816 (PACKET_qXfer_statictrace_read, PACKET_StaticTracepoints): New.
3817 (remote_static_tracepoint_marker_at): New.
3818 (remote_static_tracepoint_markers_by_strid): New.
3819 (remote_static_tracepoint_feature): New.
3820 (remote_disconnected_tracing_feature): Handle "StaticTracepoints".
3821 (remote_xfer_partial): Handle TARGET_OBJECT_STATIC_TRACE_DATA.
3822 (remote_supports_static_tracepoints): New.
3823 (remote_download_tracepoint): Download static tracepoints.
3824 (init_remote_ops): Install remote_static_tracepoint_marker_at and
3825 remote_static_tracepoint_markers_by_strid.
3826 (_initialize_remote): Install set|show remote static-tracepoints,
3827 and set|show remote read-sdata-object commands.
3828 * target.c (update_current_target): Inherit and default
3829 to_static_tracepoint_marker_at, and
3830 to_static_tracepoint_markers_by_strid.
3831 * target.h (static_tracepoint_marker): Forward declare.
3832 (enum target_object): New object TARGET_OBJECT_STATIC_TRACE_DATA.
3833 (static_tracepoint_marker_p): New typedef.
3834 (DEF_VEC_P(static_tracepoint_marker_p)): New VEC type.
3835 (struct target_ops): New fields to_static_tracepoint_marker_at and
3836 to_static_tracepoint_markers_by_strid.
3837 (target_static_tracepoint_marker_at)
3838 (target_static_tracepoint_markers_by_strid): New.
3839 * tracepoint.c: Include source.h.
3840 (validate_actionline): Handle $_sdata.
3841 (struct collection_list): New field strace_data.
3842 (add_static_trace_data): New.
3843 (clear_collection_list): Clear strace_data.
3844 (stringify_collection_list): Account for a possible static trace
3845 data collection.
3846 (encode_actions_1): Encode an $_sdata collection.
3847 (parse_tracepoint_definition): Handle static tracepoints.
3848 (parse_static_tracepoint_marker_definition): New.
3849 (release_static_tracepoint_marker): New.
3850 (print_one_static_tracepoint_marker): New.
3851 (info_static_tracepoint_markers_command): New.
3852 (sdata_make_value): New.
3853 (_initialize_tracepoint): Create the $_sdata convenience variable.
3854 Add the "info static-tracepoint-markers" command.
3855 Mention $_sdata in the "collect" command's help output.
3856 * tracepoint.h (struct static_tracepoint_marker): New.
3857 (parse_static_tracepoint_marker_definition)
3858 (release_static_tracepoint_marker): Declare.
3859 * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust.
3860 * python/py-breakpoint.c (bppy_new): Adjust.
3861
3862 2010-06-30 Joel Brobecker <brobecker@adacore.com>
3863
3864 * python/python-internal.h (_XOPEN_SOURCE): Undefine before
3865 including Python.h.
3866
3867 2010-06-29 Doug Evans <dje@google.com>
3868
3869 PR gdb/11702
3870 * dwarf2read.c (dwarf2_add_field): Only create a symbol if
3871 DW_AT_external is present.
3872
3873 PR gdb/11702
3874 * NEWS: Add entry.
3875 * dwarf2read.c (dwarf2_add_field): If DW_AT_const_value is present,
3876 create a symbol for the field and record the value.
3877 (new_symbol): Handle DW_TAG_member.
3878 * gdbtypes.c (field_is_static): Remove FIXME.
3879 * symtab.c (search_symbols): When searching for VARIABLES_DOMAIN,
3880 only ignore LOC_CONST symbols that are enums.
3881
3882 * dwarf2read.c: Remove trailing whitespace.
3883
3884 Delete FIELD_LOC_KIND_DWARF_BLOCK, unused.
3885 * gdbtypes.h (enum field_loc_kind): Delete FIELD_LOC_KIND_DWARF_BLOCK.
3886 (struct main_type, field loc): Delete dwarf_block.
3887 (FIELD_DWARF_BLOCK): Delete.
3888 (SET_FIELD_DWARF_BLOCK): Delete.
3889 (TYPE_FIELD_DWARF_BLOCK): Delete.
3890 * gdb-gdb.py (StructMainTypePrettyPrinter.struct_field_location_img):
3891 Update.
3892
3893 2010-06-29 Hui Zhu <teawater@gmail.com>
3894
3895 * record.c (set_record_pic_cmdlist,
3896 show_record_pic_cmdlist): New variables.
3897 (set_record_pic_command,
3898 show_record_pic_command): New functions.
3899 (record_pic_function, record_pic_line, record_pic_enum,
3900 set_record_pic_type, record_pic_hide_nofunction,
3901 record_pic_hide_nosource, record_pic_hide_same): New variables.
3902 (record_pic_fputs): New function.
3903 (function_list, node_list, edge_list): New struct.
3904 (function_list, node_list, edge_list): New variables.
3905 (record_pic_cleanups, record_pic_node,
3906 record_pic_edge, cmd_record_pic): New functions.
3907 (_initialize_record): Add new commands for record pic.
3908
3909 2010-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3910
3911 * dwarf2read.c (read_structure_type) <fi.typedef_field_list>: Call
3912 ALLOCATE_CPLUS_STRUCT_TYPE.
3913
3914 2010-06-28 Phil Muldoon <pmuldoon@redhat.com>
3915 Tom Tromey <tromey@redhat.com>
3916 Thiago Jung Bauermann <bauerman@br.ibm.com>
3917
3918 * value.c (pack_unsigned_long): New function.
3919 (value_from_ulongest): New function.
3920 * value.h (value_from_ulongest): Declare.
3921 * python/python.c (_initialize_python): Call
3922 gdbpy_initialize_thread and gdbpy_initialize_inferior.
3923 * python/python-internal.h: Define thread_object.
3924 (gdbpy_inferiors, gdbpy_selected_thread)
3925 (frame_info_to_frame_object, create_thread_object)
3926 (find_thread_object, find_inferior_object)
3927 (gdbpy_initialize_thread, gdbpy_initialize_inferiors)
3928 (gdbpy_is_value_object, get_addr_from_python): Declare.
3929 * python/py-value.c (builtin_type_upylong): Define.
3930 (convert_value_from_python): Add logic for ulongest.
3931 (gdbpy_is_value_object): New function.
3932 * python/py-utils.c (get_addr_from_python): New function.
3933 * python/py-frame.c (frame_info_to_frame_object): Return a PyObject.
3934 (gdbpy_selected_frame): Use PyObject over frame_info.
3935 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-inferior and
3936 py-infthread.
3937 (SUBDIR_PYTHON_SRCS): Likewise.
3938 (py-inferior.o): New Rule.
3939 (py-infthread.o): New Rule.
3940 * python/py-inferior.c: New File.
3941 * python/py-infthread.c: New File.
3942
3943 2010-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3944
3945 * c-typeprint.c (c_type_print_base): For no fields check include also
3946 TYPE_TYPEDEF_FIELD_COUNT. Print new typedefs section.
3947 * dwarf2read.c (struct typedef_field_list)
3948 (struct field_info) <typedef_field_list, typedef_field_list_count>: New.
3949 (dwarf2_add_typedef): New.
3950 (read_structure_type): Call dwarf2_add_typedef for DW_TAG_typedef.
3951 Copy also FI.TYPEDEF_FIELD_LIST.
3952 * gdbtypes.h (struct typedef_field)
3953 (struct cplus_struct_type) <typedef_field, typedef_field_count>
3954 (TYPE_TYPEDEF_FIELD_ARRAY, TYPE_TYPEDEF_FIELD, TYPE_TYPEDEF_FIELD_NAME)
3955 (TYPE_TYPEDEF_FIELD_TYPE, TYPE_TYPEDEF_FIELD_COUNT): New.
3956
3957 2010-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3958
3959 * cp-namespace.c (cp_lookup_nested_type): New variable
3960 concatenated_name. Turn the current return condition into a reverse
3961 one. Call also lookup_static_symbol_aux on the constructed qualified
3962 name.
3963 * symtab.c (lookup_symbol_aux): Move variable objfile and searching in
3964 other files into a called ...
3965 (lookup_static_symbol_aux): ... new function here.
3966 * symtab.h (lookup_static_symbol_aux): New prototype.
3967 * valops.c (value_maybe_namespace_elt): Call also
3968 lookup_static_symbol_aux if we failed otherwise.
3969
3970 2010-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3971
3972 Fix PR c++/11703 and PR gdb/1448.
3973 * c-exp.y (yylex) <last_was_coloncolon && first_was_coloncolon>: Add
3974 FIRST_ITER check.
3975
3976 2010-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3977
3978 Fix modification of cplus_struct_default.
3979 * dwarf2read.c (dwarf2_add_member_fn) <no DW_AT_vtable_elem_location>:
3980 Call ALLOCATE_CPLUS_STRUCT_TYPE.
3981 * gdbtypes.c (cplus_struct_default): New empty initializer, comment it.
3982
3983 2010-06-28 Joel Brobecker <brobecker@adacore.com>
3984
3985 * NEWS: Add entry announcing the python directory.
3986
3987 2010-06-28 Tom Tromey <tromey@redhat.com>
3988
3989 * dwarf2read.c (read_structure_type): Allocate null cleanup later.
3990
3991 2010-06-28 Doug Evans <dje@google.com>
3992
3993 * breakpoint.c (breakpoint_sals_to_pc): Delete arg address, unused.
3994 All callers updated.
3995
3996 2010-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3997
3998 * cp-valprint.c (cp_print_value_fields) <recurse == 0>: Call
3999 obstack_begin after each obstack_free.
4000
4001 2010-06-27 Doug Evans <dje@google.com>
4002
4003 * value.c (value_static_field): Use `switch' instead of `if'.
4004 Assert-fail if passed invalid TYPE_FIELD_LOC_KIND.
4005
4006 * valops.c (search_struct_field): Fix typo in error message.
4007
4008 2010-06-26 Ulrich Weigand <uweigand@de.ibm.com>
4009
4010 * dwarf2expr.c (execute_stack_op): Place preprocessor
4011 directives at the start of the source line.
4012
4013 2010-06-25 Paul Hilfinger <hilfinger@adacore.com>
4014
4015 * defs.h (make_command_stats_cleanup): Declare.
4016 (set_display_time): Declare.
4017 (set_display_space): Declare.
4018 * event-top.c (command_handler): Use make_command_stats_cleanup.
4019 * main.c (display_time, display_space): Move definitions to utils.c.
4020 (captured_main): Use make_command_stats_cleanup to get start-up
4021 statistics.
4022 Use set_display_time and set_display_space for processing OPT_STATISTICS
4023 case.
4024 * maint.c (maintenance_time_display): Use set_display_time.
4025 (maintenance_space_display): Use set_display_space.
4026 * top.c (execute_command): Remove obsolete 'maint time' code.
4027 (command_loop): Use make_command_stats_cleanup.
4028 * utils.c (struct cmd_stats): Structure for storing initial time
4029 and space usage.
4030 (display_time, display_space): Move definitions here from utils.c.
4031 (set_display_time): New function.
4032 (set_display_space): New function.
4033 (make_command_stats_cleanup): New function.
4034 (report_command_stats): New auxiliary function for
4035 make_command_stats_cleanup.
4036
4037 2010-06-25 Ulrich Weigand <uweigand@de.ibm.com>
4038
4039 * solib-spu.c (append_ocl_sos): Fix xsnprintf statement for
4040 hosts where CORE_ADDR is long long.
4041
4042 2010-06-25 Tom Tromey <tromey@redhat.com>
4043
4044 PR python/10808:
4045 * python/python.c (execute_gdb_command): Add keywords. Accept
4046 "to_string" argument.
4047 (struct restore_ui_file_closure): New.
4048 (restore_ui_file): New function.
4049 (make_cleanup_restore_ui_file): Likewise.
4050 (GdbMethods) <execute>: Update.
4051
4052 2010-06-25 Ulrich Weigand <uweigand@de.ibm.com>
4053
4054 * s390-tdep.c (s390_push_dummy_call): Error on stack overflow
4055 during inferior call stack frame setup.
4056
4057 2010-06-25 Ken Werner <ken.werner@de.ibm.com>
4058
4059 * solib-spu.c: Include "exception.h".
4060 (ocl_program_data_key): New variable.
4061 (append_ocl_sos): New function.
4062 (ocl_enable_break): Likewise.
4063 (spu_current_sos): Call append_ocl_sos.
4064 (spu_solib_loaded): Call ocl_enable_break.
4065 (_initialize_spu_solib): Register ocl_program_data_key.
4066
4067 2010-06-25 Ulrich Weigand <uweigand@de.ibm.com>
4068
4069 * cp-support.c (reset_directive_searched): New function.
4070 (make_symbol_overload_list_using): Prevent recursive calls.
4071
4072 2010-06-25 Phil Muldoon <pmuldoon@redhat.com>
4073
4074 * printcmd.c (print_variable_and_value): Print error message on
4075 caught exception.
4076
4077 2010-06-25 Ulrich Weigand <uweigand@de.ibm.com>
4078
4079 * dwarf2expr.h (struct dwarf_value_location): Use ULONGEST as type
4080 of stack values.
4081 (struct dwarf_expr_piece): Rename "expr" member to "mem". Add new
4082 "value" member.
4083 (dwarf_expr_push): Change input type to ULONGEST.
4084 (dwarf_expr_fetch): Change return type to ULONGEST.
4085 (dwarf_expr_fetch_address): Add prototype.
4086 (dwarf2_read_address): Remove prototype.
4087 * dwarf2expr.c (dwarf_expr_push): Use ULONGEST as type of stack values.
4088 Truncate stack values to ctx->addr_size bytes.
4089 (dwarf_expr_fetch): Change return value to ULONGEST.
4090 (dwarf_expr_fetch_address): New function.
4091 (add_piece): Use dwarf_expr_fetch_address instead of dwarf_expr_fetch
4092 when appropriate. Update for struct dwarf_expr_piece changes.
4093 (dwarf2_read_address): Remove.
4094 (unsigned_address_type): Remove.
4095 (signed_address_type): Remove.
4096 (execute_stack_op): Use dwarf_expr_fetch_address instead of
4097 dwarf_expr_fetch when appropriate. Use ULONGEST as type of stack
4098 values. Perform operations on ULONGEST instead of on GDB values,
4099 sign-extending from ctx->addr_size bytes as needed. Read DW_OP_addr
4100 values and DW_OP_deref results as unsigned integers.
4101 * dwarf2loc.c (read_pieced_value): Update for struct dwarf_expr_piece
4102 changes.
4103 (write_pieced_value): Likewise.
4104 (dwarf2_evaluate_loc_desc): Use dwarf_expr_fetch_address instead of
4105 dwarf_expr_fetch when appropriate.
4106 (compile_dwarf_to_ax): Read DW_OP_addr values as unsigned integers.
4107 * dwarf2-frame.c (execute_stack_op): Use dwarf_expr_fetch_address
4108 instead of dwarf_expr_fetch when appropriate.
4109
4110 2010-06-25 Pierre Muller <muller@ics.u-strasbg.fr>
4111
4112 * c-typeprint.c (c_print_typedef): Append new type name for typedefs.
4113
4114 2010-06-24 Joel Brobecker <brobecker@adacore.com>
4115
4116 * python/python.c (_initialize_python): Add new "constant"
4117 PYTHONDIR in gdb module. Insert this path at the head of
4118 sys.path. Set gdb.__path__ to gdb.PYTHONDIR + '/gdb' and
4119 exec its __init__.py script if it exists in that directory.
4120
4121 2010-06-24 Kevin Buettner <kevinb@redhat.com>
4122
4123 * rx-tdep.c (RX_ACC_REGNUM): Define.
4124 (RX_NUM_REGS): Redefine to 26.
4125 (rx_register_name): Add register "acc". Change order of several
4126 registers. Change name of "vct" register to "fintv" to match RX
4127 documentation.
4128 (rx_register_type): Add case for RX_ACC_REGNUM.
4129
4130 2010-06-24 Tom Tromey <tromey@redhat.com>
4131
4132 * psymtab.c (lookup_partial_symbol): Mark definition as static.
4133
4134 2010-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
4135 Tom Tromey <tromey@redhat.com>
4136
4137 Fix GDB startup on readonly filesystem.
4138 * charset.c (find_charset_names): Use PEX_USE_PIPES for pex_init.
4139
4140 2010-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
4141 Pedro Alves <pedro@codesourcery.com>
4142
4143 Fix PR 9436.
4144 * breakpoint.c (handle_jit_event): New function.
4145 (bpstat_what): Remove enum class, kc, ss, sn, sgl, slr, clr, sr, shl,
4146 jit, err, table and bs_class. New variables shlib_event, jit_event,
4147 this_action and bptype. Change bs_class assignments to this_action
4148 assignments. new unhandled bptype internal error. Move here
4149 shlib_event and jit_event handling from handle_inferior_event.
4150 * breakpoint.h (enum bpstat_what_main_action): Extend the comment.
4151 Reorder items. Remove BPSTAT_WHAT_CHECK_SHLIBS and
4152 BPSTAT_WHAT_CHECK_JIT.
4153 * inferior.h (debug_infrun, stop_on_solib_events): New declarations.
4154 * infrun.c (debug_infrun, stop_on_solib_events): Remove static.
4155 (handle_inferior_event): Reinitialize frame and gdbarch after
4156 bpstat_what call. Move BPSTAT_WHAT_CHECK_SHLIBS and
4157 BPSTAT_WHAT_CHECK_JIT handling to bpstat_what. Reinitialize even
4158 gdbarch when frame gets reinitialized.
4159
4160 2010-06-24 Hui Zhu <teawater@gmail.com>
4161
4162 * printcmd.c (ui_printf): New function.
4163 (printf_command): Call ui_printf.
4164 (_initialize_printcmd): New command "eval".
4165
4166 2010-06-23 Ulrich Weigand <uweigand@de.ibm.com>
4167
4168 * infrun.c (handle_inferior_event): Handle presence of single-step
4169 breakpoints for TARGET_WAITKIND_FORKED and TARGET_WAITKIND_VFORKED.
4170 Cancel single-step breakpoints for TARGET_WAITKIND_EXITED,
4171 TARGET_WAITKIND_SIGNALED, and TARGET_WAITKIND_EXECD.
4172 * breakpoint.c (detach_single_step_breakpoints): New function.
4173 (detach_breakpoints): Call it.
4174 (cancel_single_step_breakpoints): New function.
4175 * breakpoint.h (cancel_single_step_breakpoints): Add prototype.
4176
4177 * spu-tdep.c (spu_memory_remove_breakpoint): New function.
4178 (spu_gdbarch_init): Install it.
4179
4180 2010-06-23 Jan Kratochvil <jan.kratochvil@redhat.com>
4181
4182 * configure.ac: Always set RDYNAMIC at least as `-rdynamic'.
4183 * configure: Regenerate.
4184
4185 2010-06-22 Hui Zhu <teawater@gmail.com>
4186
4187 * i386-tdep.c (i386_record_lea_modrm): Change warning to query.
4188 (i386_process_record): Ditto.
4189 * record.c (record_memory_query): New variable.
4190 (_initialize_record): New command "set record memory-query".
4191 * record.h (record_memory_query): New extern.
4192
4193 2010-06-21 Doug Evans <dje@google.com>
4194
4195 * i386-tdep.h (i386_displaced_step_copy_insn): Declare.
4196 * i386-tdep.c (i386_displaced_step_copy_insn): New function.
4197 (i386_syscall_p): Change type of lengthp to int.
4198 (i386_displaced_step_fixup): Handle kernels that run one past a
4199 syscall insn.
4200 * i386-linux-tdep.c (i386_linux_init_abi): Use
4201 i386_displaced_step_copy_insn instead of
4202 simple_displaced_step_copy_insn.
4203
4204 2010-06-21 Tom Tromey <tromey@redhat.com>
4205
4206 * dwarf2read.c (read_base_type): Handle DW_ATE_UTF.
4207 (dwarf_type_encoding_name): Likewise.
4208
4209 2010-06-21 Tom Tromey <tromey@redhat.com>
4210
4211 * p-valprint.c (pascal_val_print): Use TYPE_ERROR_NAME.
4212 * p-typeprint.c (pascal_type_print_base): Use TYPE_ERROR_NAME.
4213 * m2-valprint.c (m2_val_print): Use TYPE_ERROR_NAME.
4214 * gdbtypes.h (TYPE_ERROR_NAME): New macro.
4215 * f-valprint.c (f_val_print): Use TYPE_ERROR_NAME.
4216 * f-typeprint.c (f_type_print_base): Use TYPE_ERROR_NAME.
4217 * dwarf2read.c (tag_type_to_type): Create a new error type on
4218 failure.
4219 * c-valprint.c (c_val_print): Use TYPE_ERROR_NAME.
4220 * c-typeprint.c (c_type_print_base): Use TYPE_ERROR_NAME.
4221
4222 2010-06-21 Michael Snyder <msnyder@vmware.com>
4223
4224 * breakpoint.c (_initialize_breakpoint): Use add_prefix_cmd,
4225 not add_abbrev_prefix_cmd, for "enable breakpoints".
4226
4227 2010-06-21 Ulrich Weigand <uweigand@de.ibm.com>
4228
4229 * dwarf2loc.c (find_location_expression): Add relocation offset
4230 to base-address-selection entry base addresses. Read addresses
4231 (and offsets) as signed/unsigned integers, depending on the
4232 BFD's sign_extend_vma flag. Do not call dwarf2_read_address.
4233 (loclist_describe_location): Likewise.
4234 (disassemble_dwarf_expression): Read DW_OP_addr operand as
4235 unsigned integer. Do not call dwarf2_read_address.
4236 (locexpr_describe_location): Likewise for DW_OP_GNU_push_tls_address.
4237
4238 2010-06-19 Ulrich Weigand <uweigand@de.ibm.com>
4239
4240 * spu-tdep.c (spu_frame_unwind_cache): Use LSLR register
4241 value instead of hard-coded SPU_LS_SIZE.
4242 (spu_software_single_step): Likewise.
4243 * spu-tdep.h (SPU_LS_SIZE): Remove.
4244
4245 2010-06-19 Ulrich Weigand <uweigand@de.ibm.com>
4246
4247 * spu-multiarch.c (spu_xfer_partial): Wrap around local store
4248 limit on local store memory accesses.
4249 * spu-linux-nat.c (spu_xfer_partial): Likewise.
4250 * spu-tdep.c (spu_lslr): Remove.
4251 (spu_pointer_to_address): Do not truncate addresses.
4252 (spu_integer_to_address): Likewise.
4253 (spu_overlay_new_objfile): Use SPU_OVERLAY_LMA.
4254 * spu-tdep.h: Add comments.
4255 (SPUADDR_SPU): Respect SPU_OVERLAY_LMA bit.
4256 (SPU_OVERLAY_LMA): Define.
4257
4258 2010-06-18 Stan Shebs <stan@codesourcery.com>
4259
4260 * osdata.c (get_osdata): Warn separately if target does not report
4261 type list.
4262 (info_osdata_command): Allow empty type, report error if target
4263 does not return available types of OS data.
4264 * linux-nat.c (linux_nat_xfer_osdata): Report list of OS data
4265 types if no annex supplied.
4266
4267 * thread.c (thread_id_make_value): Make a value representing the
4268 current thread.
4269 (_initialize_thread): Create $_thread.
4270
4271 2010-06-17 Joel Brobecker <brobecker@adacore.com>
4272
4273 * dwarf2read.c (psymtabs_addrmap_cleanup): Add empty line after
4274 last local variable declaration. No real code change.
4275
4276 2010-06-17 Tom Tromey <tromey@redhat.com>
4277
4278 * dwarf2read.c (psymtabs_addrmap_cleanup): New function.
4279 (dwarf2_build_psymtabs_hard): Use it. Create addrmap on a
4280 temporary obstack.
4281
4282 2010-06-16 Sergio Durigan Junior <sergiodj@redhat.com>
4283 Jan Kratochvil <jan.kratochvil@redhat.com>
4284
4285 * breakpoint.c: Include parser-defs.h.
4286 (watchpoint_exp_is_const): New function.
4287 (watch_command_1): Call watchpoint_exp_is_const to check
4288 if the expression is constant.
4289
4290 2010-06-15 Andreas Schwab <schwab@linux-m68k.org>
4291
4292 * configure.ac: Check for RDYNAMIC also for cross builds.
4293 * configure: Regenerate.
4294
4295 2010-06-15 Pedro Alves <pedro@codesourcery.com>
4296
4297 * Makefile.in (ALL_TARGET_OBS): Remove solib-target.o.
4298 (SFILES): Remove solib-null.c, add solib-target.c.
4299 (COMMON_OBS): Remove solib-null.o, add solib-target.o.
4300 (ALLDEPFILES): Remove solib-target.c.
4301 * solib-target.c (_initialize_solib_target): Set
4302 current_target_so_ops to solib_target_so_ops if not already set.
4303 * solib-null.c: Delete.
4304
4305 2010-06-14 Pedro Alves <pedro@codesourcery.com>
4306
4307 * NEWS: Mention GDBserver's JIT compilation of tracepoint
4308 bytecode.
4309
4310 2010-06-14 Ulrich Weigand <uweigand@de.ibm.com>
4311
4312 * cp-valprint.c (cp_print_static_field): Members of
4313 dont_print_stat_array_obstack are of type "struct type *".
4314 (_initialize_cp_valprint): Likewise.
4315
4316 2010-06-14 Ulrich Weigand <uweigand@de.ibm.com>
4317
4318 * frame.c (frame_register_unwind): Do not access contents
4319 of "optimized out" unwound register value.
4320
4321 2010-06-14 Jan Kratochvil <jan.kratochvil@redhat.com>
4322
4323 * ada-lang.h (ada_print_type): Make varstring const.
4324 * ada-typeprint.c (print_func_type): Make name const.
4325 (ada_print_type): Make varstring const.
4326 * c-lang.h (c_print_type): Make varstring const.
4327 * c-typeprint.c (c_print_type): Likewise.
4328 * f-lang.h (f_print_type): Likewise.
4329 * f-typeprint.c (f_print_type): Likewise.
4330 * jv-lang.h (java_print_type): Likewise.
4331 * jv-typeprint.c (java_print_type): Likewise.
4332 * language.c (unk_lang_print_type): Likewise.
4333 * language.h (struct language_defn) <la_print_type>: Likewise.
4334 * m2-lang.h (m2_print_type): Likewise.
4335 * m2-typeprint.c (m2_print_type): Likewise.
4336 * p-lang.h (pascal_print_type): Likewise.
4337 * p-typeprint.c (pascal_print_type): Likewise.
4338
4339 2010-06-11 Stan Shebs <stan@codesourcery.com>
4340
4341 Add per-operation permission flags.
4342
4343 * target.h (struct target_ops): New method to_set_permissions.
4344 (target_set_permissions): New macro.
4345 (target_insert_breakpoint): Change macro to function.
4346 (target_remove_breakpoint): Ditto.
4347 (target_stop): Ditto.
4348 (may_write_registers): Declare.
4349 (may_write_memory): Declare.
4350 (may_insert_breakpoints): Declare.
4351 (may_insert_tracepoints): Declare.
4352 (may_insert_fast_tracepoints): Declare.
4353 (may_stop): Declare.
4354 * target.c (may_write_registers, may_write_registers_1): New globals.
4355 (may_write_memory, may_write_memory_1): New globals.
4356 (may_insert_breakpoints, may_insert_breakpoints_1): New globals.
4357 (may_insert_tracepoints, may_insert_tracepoints_1): New globals.
4358 (may_insert_fast_tracepoints, may_insert_fast_tracepoints_1): New
4359 globals.
4360 (may_stop, may_stop_1): New global.
4361 (target_xfer_partial): Test for write permission.
4362 (target_store_registers): Ditto.
4363 (target_insert_breakpoint): New function.
4364 (target_remove_breakpoint): New function.
4365 (target_stop): New function.
4366 (_initialize_targets): Add new set/show variables.
4367 (set_write_memory_permission): New function.
4368 (update_target_permissions): New function.
4369 (set_target_permissions): New function.
4370 (update_current_target): Default to_set_permissions.
4371 (_initialize_targets): Use new globals and setter function.
4372 * tracepoint.c (start_tracing): Test for permission.
4373 * inferior.h (update_observer_mode): Declare.
4374 * infrun.c (non_stop_1): Define earlier.
4375 (observer_mode, observer_mode_1): New globals.
4376 (set_observer_mode, show_observer_mode): New functions.
4377 (update_observer_mode): New function.
4378 (_initialize_infrun): Define "set observer" command.
4379 * remote.c (PACKET_QAllow): New optional packet.
4380 (remote_protocol_features): Add QAllow.
4381 (remote_set_permissions): New function.
4382 (remote_start_remote): Call it.
4383 (init_remote_ops): Add it to target vector.
4384 (_initialize_remote): Add config command for QAllow.
4385
4386 2010-06-11 Tom Tromey <tromey@redhat.com>
4387
4388 * dwarf2read.c (dwarf2_add_member_fn): Handle correct form of
4389 DW_AT_vtable_elem_location even when GCC extension is seen.
4390
4391 2010-06-11 Tom Tromey <tromey@redhat.com>
4392
4393 PR gdb/9977, PR exp/11636:
4394 * value.h (value_offset): Update.
4395 (struct lval_funcs) <check_validity>: New field.
4396 <copy_closure>: Make argument const.
4397 (value_computed_closure): Update.
4398 (value_contents_for_printing): Declare.
4399 (value_bits_valid): Likewise.
4400 (val_print): Likewise.
4401 (set_value_component_location): Update.
4402 (value_entirely_optimized_out): Declare.
4403 * value.c (value_offset): Argument now const.
4404 (require_not_optimized_out): New function.
4405 (value_contents_for_printing): New function.
4406 (value_contents_all): Call require_not_optimized_out.
4407 (value_contents): Likewise.
4408 (value_bits_valid): New function.
4409 (value_computed_closure): Argument now const.
4410 (set_value_component_location): Make 'whole' argument const.
4411 (value_entirely_optimized_out): New function.
4412 (value_bitsize): Argument now 'const'.
4413 (value_bitpos): Likewise.
4414 (value_type): Likewise.
4415 * valprint.h (val_print_array_elements): Update.
4416 * valprint.c (val_print): Add 'val' argument. Use
4417 valprint_check_validity.
4418 (valprint_check_validity): New function.
4419 (value_check_printable): Use value_entirely_optimized_out.
4420 (common_val_print): Update.
4421 (value_print): Likewise.
4422 (val_print_array_elements): Add 'val' argument.
4423 * valops.c (value_fetch_lazy): Use value_contents_for_printing,
4424 value_bits_valid. Reinit frame cache for lval_computed.
4425 * sh64-tdep.c (sh64_do_register): Update.
4426 * scm-valprint.c (scm_val_print): Add 'val' argument.
4427 * scm-lang.h (scm_val_print): Update.
4428 * python/python.h (apply_val_pretty_printer): Update.
4429 * python/py-prettyprint.c (apply_val_pretty_printer): Add 'val'
4430 argument. Call set_value_component_location.
4431 * printcmd.c (print_scalar_formatted): Update.
4432 * p-valprint.c (pascal_val_print): Add 'val' argument.
4433 (pascal_object_print_value_fields): Likewise.
4434 (pascal_object_print_value): Likewise.
4435 (pascal_object_print_static_field): Update.
4436 * p-lang.h (pascal_val_print): Update.
4437 (pascal_object_print_value_fields): Update.
4438 * mt-tdep.c (mt_registers_info): Update.
4439 * mi/mi-main.c (get_register): Update.
4440 (mi_cmd_data_evaluate_expression): Use common_val_print.
4441 * m2-valprint.c (m2_print_array_contents): Add 'val' argument.
4442 (m2_print_unbounded_array): Likewise.
4443 (m2_val_print): Likewise.
4444 * m2-lang.h (m2_val_print): Update.
4445 * language.h (struct language_defn) <la_val_print>: Add 'val'
4446 argument.
4447 (LA_VAL_PRINT): Likewise.
4448 * language.c (unk_lang_val_print): Add 'val' argument.
4449 * jv-valprint.c (java_print_value_fields): Add 'val' argument.
4450 (java_val_print): Likewise.
4451 * jv-lang.h (java_val_print): Add 'val' argument.
4452 * infcmd.c (default_print_registers_info): Update.
4453 * f-valprint.c (f77_print_array_1): Add 'val' argument.
4454 (f77_print_array): Likewise.
4455 (f_val_print): Likewise.
4456 * f-lang.h (f_val_print): Add 'val' argument.
4457 * dwarf2loc.c (read_pieced_value): Use value_bitsize and
4458 value_bitpos.
4459 <DWARF_VALUE_OPTIMIZED_OUT>: Don't print warning. Call
4460 set_value_optimized_out.
4461 (write_pieced_value): Use value_bitsize and value_bitpos.
4462 <default>: Don't exit loop.
4463 (check_pieced_value_validity): New function.
4464 (pieced_value_funcs): Reference check_pieced_value_validity,
4465 check_pieced_value_invalid.
4466 (copy_pieced_value_closure): Update.
4467 (check_pieced_value_bits): New function.
4468 (check_pieced_value_invalid): New function.
4469 * d-valprint.c (dynamic_array_type): Add 'val' argument.
4470 (d_val_print): Likewise.
4471 * d-lang.h (d_val_print): Update.
4472 * cp-valprint.c (cp_print_value_fields): Add 'val' argument.
4473 (cp_print_value_fields_rtti): Likewise.
4474 (cp_print_value): Likewise.
4475 (cp_print_static_field): Update.
4476 * c-valprint.c (c_val_print): Add 'val' argument.
4477 (c_value_print): Update.
4478 * c-lang.h (c_val_print): Update.
4479 (cp_print_value_fields): Likewise.
4480 (cp_print_value_fields_rtti): Likewise.
4481 * ada-valprint.c (struct ada_val_print_args): Remove.
4482 (val_print_packed_array_elements): Add 'val' argument.
4483 (ada_val_print): Likewise. Rewrite.
4484 (ada_val_print_stub): Remove.
4485 (ada_val_print_array): Add 'val' argument.
4486 (ada_val_print_1): Likewise.
4487 (print_variant_part): Likewise.
4488 (ada_value_print): Update.
4489 (print_record): Add 'val' argument.
4490 (print_field_values): Likewise.
4491 * ada-lang.h (ada_val_print): Update.
4492
4493 2010-06-11 Tom Tromey <tromey@redhat.com>
4494
4495 * vec.h (VEC_cleanup): New macro.
4496 (DEF_VEC_ALLOC_FUNC_I): Update.
4497 (DEF_VEC_ALLOC_FUNC_P): Likewise.
4498 (DEF_VEC_ALLOC_FUNC_O): Likewise.
4499 * dwarf2loc.c (struct axs_var_loc): Remove.
4500 (unimplemented): New function.
4501 (translate_register): Likewise.
4502 (access_memory): Likewise.
4503 (compile_dwarf_to_ax): Likewise.
4504 (dwarf2_tracepoint_var_loc): Remove.
4505 (dwarf2_tracepoint_var_access): Likewise.
4506 (dwarf2_tracepoint_var_ref): Likewise.
4507 (locexpr_tracepoint_var_ref): Use compile_dwarf_to_ax.
4508 (loclist_tracepoint_var_ref): Likewise.
4509 * dwarf2expr.h (dwarf_expr_require_composition): Declare.
4510 * dwarf2expr.c (dwarf_expr_require_composition): Rename from
4511 require_composition. No longer static.
4512 (execute_stack_op): Update.
4513 * ax-gdb.h (trace_kludge): Declare.
4514
4515 2010-06-11 Jan Kratochvil <jan.kratochvil@redhat.com>
4516
4517 * breakpoint.c (breakpoint_restore_shadows): New OWNER comment.
4518 (should_be_inserted): Return zero also on NULL OWNER.
4519 (breakpoint_program_space_exit): New OWNER comment.
4520 (insert_breakpoint_locations): Extend comment for OWNER.
4521 (remove_breakpoint_1, remove_breakpoint): Assert on OWNER.
4522 (breakpoint_init_inferior, breakpoint_here_p, breakpoint_thread_match):
4523 New OWNER comment.
4524 (print_it_typical): Return PRINT_UNKNOWN on NULL OWNER.
4525 (watchpoint_check): New assert on BREAKPOINT_AT and OWNER.
4526 (bpstat_check_location): New assert on OWNER.
4527 (bpstat_check_watchpoint, bpstat_check_breakpoint_conditions): Move BL
4528 and B initializations to the code block. New assert on them.
4529 (print_one_breakpoint_location): New OWNER comment.
4530 (watchpoint_locations_match): Assert on OWNER.
4531 (breakpoint_locations_match): Move HW_POINT1 and HW_POINT2
4532 initializations to the code block. New assert on OWNER.
4533 (set_breakpoint_location_function): New assert on OWNER.
4534 (disable_breakpoints_in_shlibs, disable_breakpoints_in_unloaded_shlib)
4535 (bp_location_compare, update_global_location_list)
4536 (update_global_location_list): New OWNER comment.
4537
4538 2010-06-09 Ulrich Weigand <uweigand@de.ibm.com>
4539
4540 * Makefile.in (HFILES_NO_SRCDIR): Remove config/i386/nm-linux.h
4541
4542 2010-06-09 Ulrich Weigand <uweigand@de.ibm.com>
4543
4544 * config/nm-linux.h (struct target_ops): Remove forward declaration.
4545 (lin_thread_get_thread_signals): Remove prototype.
4546 (GET_THREAD_SIGNALS): Remove.
4547 * linux-nat.h (lin_thread_get_thread_signals): Add prototype.
4548 * linux-thread-db.c (check_thread_signals): Directly call
4549 lin_thread_get_thread_signals; do not check GET_THREAD_SIGNALS.
4550
4551 2010-06-09 Ulrich Weigand <uweigand@de.ibm.com>
4552
4553 * gregset.h (GDB_FPXREGSET_T): Remove.
4554 (gdb_fpxregset_t): Likewise.
4555 (supply_fpxregset): Remove prototype.
4556 (fill_fpxregset): Likewise.
4557 * i386-linux-nat.c (supply_fpxregset): Remove.
4558 (fill_fpxregset): Likewise.
4559 (fetch_fpxregs): Inline supply_fpxregset call.
4560 (store_fpxregs): Inline fill_fpxregset call.
4561
4562 * config/i386/linux.mh: Set NAT_FILE to config/nm-linux.h.
4563 * config/i386/nm-linux.h: Remove file.
4564
4565 2010-06-09 Michael Snyder <msnyder@vmware.com>
4566
4567 * target.c (update_current_target): Fix spelling error in comment.
4568 (target_mourn_inferior): Fix spelling error in error message.
4569
4570 2010-06-08 Paul Hilfinger <hilfingr@adacore.com>
4571
4572 * dictionary.h (dict_iter_name_first, dict_iter_name_next): Refer to
4573 SYMBOL_SEARCH_NAME, not SYMBOL_BEST_NAME, in comments.
4574
4575 2010-06-08 Michael Snyder <msnyder@vmware.com>
4576
4577 * remote.c (remote_close): Set inferior_ptid to null_ptid.
4578
4579 2010-06-08 Jan Kratochvil <jan.kratochvil@redhat.com>
4580
4581 * configure.ac <"${have_libpython}" != no>: New workaround of
4582 python#4434.
4583 * configure: Regenerate.
4584
4585 2010-06-08 Hui Zhu <teawater@gmail.com>
4586
4587 * record.c (record_wait): Move signal out of replay code.
4588
4589 2010-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
4590
4591 Fix PR 10640.
4592 * dwarf2-frame.c (no_dwarf_call): New function.
4593 (execute_stack_op): Set CTX->DWARF_CALL.
4594 * dwarf2expr.c (execute_stack_op) <DW_OP_call2, DW_OP_call4>: New.
4595 * dwarf2expr.h (struct dwarf_expr_context) <dwarf_call>: New.
4596 (struct dwarf_expr_context) <get_subr>: Remove the #if0-ed field.
4597 * dwarf2loc.c (per_cu_dwarf_call, dwarf_expr_dwarf_call): New functions.
4598 (dwarf2_evaluate_loc_desc): Initialize CTX->DWARF_CALL.
4599 (needs_frame_dwarf_call): New function.
4600 (dwarf2_loc_desc_needs_frame): Initialize CTX->DWARF_CALL.
4601 * dwarf2read.c (follow_die_offset): Based on former follow_die_ref.
4602 Update the comment. Move variables die, offset and error call to ...
4603 (follow_die_ref): ... a new function.
4604 (dwarf2_fetch_die_location_block): New function.
4605 * dwarf2loc.h (dwarf2_fetch_die_location_block): New prototype.
4606
4607 2010-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
4608
4609 * dwarf2loc.c (struct dwarf_expr_baton) Replace objfile by per_cu.
4610 (dwarf_expr_tls_address): Use per_cu instead of objfile.
4611 (dwarf2_evaluate_loc_desc): Drop initialization of BATON.OBJFILE.
4612 Initialize new BATON.PER_CU. Adjust CTX->GDBARCH initialization for
4613 this change.
4614 (struct needs_frame_baton): New field per_cu.
4615 (dwarf2_loc_desc_needs_frame): Initialize new BATON.PER_CU.
4616 * dwarf2read.c (struct dwarf2_per_cu_data) <cu>: Extend the comment.
4617
4618 2010-06-07 Sami Wagiaalla <swagiaal@redhat.com>
4619
4620 * cp-support.c (make_symbol_overload_list_namespace): Only search
4621 static and global blocks.
4622 (make_symbol_overload_list_block): New function.
4623 (make_symbol_overload_list): Separate namespace search from block
4624 search.
4625 (make_symbol_overload_list_qualified): Use
4626 make_symbol_overload_list_block.
4627
4628 2010-06-07 Sami Wagiaalla <swagiaal@redhat.com>
4629
4630 * value.h: Created oload_search_type enum.
4631 (find_overload_match): Use oload_search_type enum.
4632 * valops.c (find_overload_match): Support combined member and
4633 non-member search.
4634 * eval.c (evaluate_subexp_standard): Calls to
4635 find_overload_match now use oload_search_type enum.
4636 (oload_method_static): Verify index is a proper value.
4637 * valarith.c (value_user_defined_cpp_op): Search for and handle
4638 both member and non-member operators.
4639 (value_user_defined_cpp_op): New function.
4640 (value_user_defined_op): New function.
4641 (value_x_unop): Use value_user_defined_op.
4642 (value_x_binop): Ditto.
4643 * cp-support.c (make_symbol_overload_list_using): Added block
4644 iteration.
4645 Add check for namespace aliases and imported declarations.
4646
4647 2010-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
4648
4649 * breakpoint.h (owner): Extend the comment.
4650
4651 2010-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
4652
4653 Clear stale specific bp_location from former whole breakpoint.
4654 * breakpoint.c (delete_breakpoint): Move the stale referencing clear
4655 code ...
4656 (free_bp_location): ... here. Rename there the called function to
4657 bpstat_remove_bp_location_callback.
4658 (bpstat_remove_breakpoint_callback): Rename to ...
4659 (bpstat_remove_bp_location_callback): ... here, change DATA resolution
4660 to struct bp_location. Change the called function to
4661 bpstat_remove_bp_location. Create new declaration for the function.
4662 (bpstat_remove_breakpoint): Rename to ...
4663 (bpstat_remove_bp_location): ..., change the parameter to loc, adjust
4664 code for the new parameter type.
4665
4666 2010-06-07 Nathan Sidwell <nathan@codesourcery.com>
4667
4668 * README: Make version-agnostic.
4669
4670 2010-06-05 Jan Kratochvil <jan.kratochvil@redhat.com>
4671
4672 Fix duplicate types for single DIE.
4673 * dwarf2read.c (read_structure_type): Move set_descriptive_type after
4674 set_die_type.
4675 (read_array_type): Remove type initialization. Recheck get_die_type
4676 after initial die_type. Move set_die_type before set_descriptive_type.
4677 (read_set_type): New variable domain_type. Recheck get_die_type after
4678 initial die_type. Move attr initialization later.
4679 (read_tag_pointer_type, read_tag_reference_type): New variable
4680 target_type. Recheck get_die_type after initial die_type.
4681 (read_tag_ptr_to_member_type): Recheck get_die_type after initial
4682 die_type and die_containing_type.
4683 (read_tag_const_type, read_tag_volatile_type, read_subroutine_type):
4684 Recheck get_die_type after initial die_type.
4685 (read_subrange_type): Recheck get_die_type after initial die_type.
4686 Move set_die_type before set_descriptive_type.
4687 (set_die_type): Extend the function comment. Call complaint if DIE has
4688 some type already set.
4689
4690 2010-06-05 Vladimir Prus <vladimir@codesourcery.com>
4691
4692 * mi/mi-main.c (mi_cmd_list_thread_groups): Adjust
4693 for current naming of thread groups (iN, not N).
4694
4695 2010-06-04 Sergio Durigan Junior <sergiodj@redhat.com>
4696
4697 * ada-lang.c (ada_operator_length): Constify `struct expression'.
4698 * parse.c (operator_length): Likewise.
4699 (operator_length_standard): Likewise.
4700 * parser-defs.h (operator_length): Likewise.
4701 (operator_length_standard): Likewise.
4702 (struct exp_descriptor <operator_length>): Likewise.
4703
4704 2010-06-04 Doug Evans <dje@google.com>
4705
4706 Add support for enabling/disabling individual pretty-printers.
4707 * python/py-prettyprint.c (search_pp_list): Skip disabled printers.
4708 * python/python-internal.h (gdbpy_enabled_cst): Declare.
4709 * python/python.c (gdbpy_enabled_cst): Define.
4710 (_initialize_python): Initialize gdbpy_enabled_cst.
4711 * NEWS: Add entry.
4712
4713 2010-06-04 Jan Kratochvil <jan.kratochvil@redhat.com>
4714
4715 * breakpoint.c (update_global_location_list): Fix comment typo.
4716
4717 2010-06-04 Hui Zhu <teawater@gmail.com>
4718
4719 * dwarf2loc.c (disassemble_dwarf_expression): Change ul to l.
4720
4721 2010-06-03 Doug Evans <dje@google.com>
4722
4723 * configure.ac: Don't fail if python is unusable when
4724 configured with --with-python=auto.
4725 * configure: Regenerate.
4726
4727 2010-06-03 Sami Wagiaalla <swagiaal@redhat.com>
4728
4729 * dwarf2read.c (new_symbol): Remove redundant naming of symbol.
4730
4731 2010-06-03 Pierre Muller <muller@ics.u-strasbg.fr>
4732
4733 * valprint.h (get_array_bounds): Change low and high parameter types
4734 to LONGEST *.
4735 * valprint.c (get_array_bounds): Use get_discrete_bounds call to
4736 compute bounds.
4737 (val_print_array_elements): Adapt to change above.
4738 * ada-valprint.c (print_optional_low_bound): Adapt to change above.
4739 * p-valprint.c (pascal_val_print): Likewise.
4740
4741 2010-06-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4742
4743 * symfile.c (init_filename_language_table): New extensions .for, .FOR,
4744 .ftn, .FTN, .fpp, .FPP, .f90, .F90, .f95, .F95, .f03, .F03, .f08 and
4745 .F08.
4746
4747 2010-06-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4748
4749 Support DW_TAG_module as separate namespaces.
4750 * dwarf2read.c (typename_concat): New parameter physname.
4751 (read_module_type): New function and declaration.
4752 (scan_partial_symbols): Scan also DW_TAG_module children.
4753 (partial_die_parent_scope): Accept scope even from DW_TAG_module. Pass
4754 to typename_concat backward compatible physname value 0.
4755 (partial_die_full_name, read_namespace_type): Pass to typename_concat
4756 backward compatible physname value 0.
4757 (add_partial_module, read_module): Remove FIXME comment.
4758 (process_die) <DW_TAG_module>: Set PROCESSING_HAS_NAMESPACE_INFO.
4759 (die_needs_namespace) <DW_TAG_variable>: Allow returning true even for
4760 DIEs under DW_TAG_module.
4761 (dwarf2_compute_name): Move the ada block for DW_AT_linkage_name and
4762 DW_AT_MIPS_linkage_name first, extend it for language_fortran
4763 && physname and return there instead of just setting NAME. Extend
4764 the main block for language_fortran. Pass physname parameter to the
4765 typename_concat call.
4766 (read_import_statement, read_func_scope, get_scope_pc_bounds)
4767 (load_partial_dies, determine_prefix): Support also DW_TAG_module.
4768 (new_symbol): Fill in cplus_specific.demangled_name if it is still
4769 missing from SYMBOL_SET_NAMES in the language_fortran case.
4770 (new_symbol) <DW_TAG_variable>: Force LOC_UNRESOLVED for gfortran module
4771 variables.
4772 (read_type_die) <DW_TAG_module>: New.
4773 (MAX_SEP_LEN): Increase to 7.
4774 (typename_concat): New parameter physname. New variable lead. Support
4775 also language_fortran.
4776 * f-exp.y (yylex): Consider : also as a symbol name character class.
4777 * f-lang.c: Include cp-support.h.
4778 (f_word_break_characters, f_make_symbol_completion_list): New functions.
4779 (f_language_defn): Use cp_lookup_symbol_nonlocal,
4780 f_word_break_characters and f_make_symbol_completion_list.
4781 * f-typeprint.c (f_type_print_base) <TYPE_CODE_MODULE>: New.
4782 * gdbtypes.h (enum type_code) <TYPE_CODE_MODULE>: New.
4783 * symtab.c (symbol_init_language_specific): Support language_fortran.
4784 (symbol_find_demangled_name): New comment on language_fortran.
4785 (symbol_natural_name, symbol_demangled_name): Use demangled_name even
4786 for language_fortran.
4787 (lookup_symbol_aux_local): Check imports also for language_fortran.
4788 (default_make_symbol_completion_list): Rename to ...
4789 (default_make_symbol_completion_list_break_on): ... this name. New
4790 parameter break_on, use it.
4791 (default_make_symbol_completion_list): New stub.
4792 * symtab.h (default_make_symbol_completion_list_break_on): New
4793 prototype.
4794
4795 2010-06-02 Joel Brobecker <brobecker@adacore.com>
4796
4797 * remote.c (remote_get_noisy_reply): Remove trailing "\n" in call
4798 to error.
4799
4800 2010-06-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4801
4802 * dwarf2read.c (typename_concat): Add const to the variable sep.
4803
4804 2010-06-02 Tom Tromey <tromey@redhat.com>
4805
4806 * dwarf2loc.h (dwarf2_per_cu_data): Declare.
4807 * dwarf2read.c (dwarf_stack_op_name): No longer static. Return
4808 type is const. Add 'def' argument. Add missing operators, remove
4809 unhandled ones.
4810 (decode_locdesc): Update.
4811 (dwarf2_always_disassemble): New global.
4812 (show_dwarf2_always_disassemble): New function.
4813 (_initialize_dwarf2_read): Add always-disassemble.
4814 (dwarf2_per_cu_offset_size): New function.
4815 * dwarf2loc.c (dwarf2_always_disassemble): Declare.
4816 (piece_end_p): New function.
4817 (locexpr_describe_location_piece): Replace 'size' argument with
4818 'end'. Use piece_end_p. Rewrite recognition of TLS. Recognize
4819 some constants. Remove errors.
4820 (disassemble_dwarf_expression): New function.
4821 (locexpr_describe_location_1): Use disassemble_dwarf_expression.
4822 Add 'offset_size' argument.
4823 (loclist_describe_location): Change output formatting.
4824 * dwarf2expr.h (dwarf_stack_op_name): Declare.
4825
4826 2010-06-02 Sami Wagiaalla <swagiaal@redhat.com>
4827
4828 * cp-support.c (make_symbol_overload_list_adl_namespace): Handle
4829 anonymous type case.
4830
4831 2010-06-02 Pierre Muller <muller@ics.u-strasbg.fr>
4832
4833 * dwarf2read.c (read_subrange_type): Handle missing base type
4834 according to Dwarf-2 specifications.
4835
4836 2010-06-01 Sergio Durigan Junior <sergiodj@redhat.com>
4837
4838 * expprint.c (print_subexp_standard): Remove exp_opcodes BINOP_INCL,
4839 BINOP_EXCL.
4840 (op_name_standard): Remove exp_opcodes BINOP_INCL, BINOP_EXCL,
4841 UNOP_LOWER, UNOP_UPPER, UNOP_LENGTH.
4842 (dump_subexp_body_standard): Remove exp_opcodes BINOP_INCL,
4843 BINOP_EXCL, UNOP_LOWER, UNOP_UPPER, UNOP_LENGTH, UNOP_CARD,
4844 UNOP_CHMAX, UNOP_CHMIN.
4845 * expression.h (enum exp_opcode) <BINOP_INCL, BINOP_EXCL,
4846 UNOP_LOWER, UNOP_UPPER, UNOP_LENGTH, UNOP_CARD, UNOP_CHMAX,
4847 UNOP_CHMIN>: Remove opcodes.
4848
4849 2010-06-01 Pierre Muller <muller@ics.u-strasbg.fr>
4850
4851 * dwarf2read.c (read_func_scope): Do not complain for
4852 external function if bounds are not found.
4853
4854 2010-06-01 Pedro Alves <pedro@codesourcery.com>
4855
4856 * NEWS: Mention gdbserver fast tracepoints support.
4857
4858 2010-05-31 Pierre Muller <muller@ics.u-strasbg.fr>
4859
4860 * windows-nat.c (GetConsoleFontSize, GetCurrentConsoleFont):
4861 New macros.
4862 (windows_set_console_info): New function.
4863 (windows_create_inferior): Call windows_set_console_info
4864 if NEW_CONSOLE is true.
4865 (bad_GetCurrentConsoleFont, bad_GetConsoleFontSize): New functions.
4866 (_initialize_loadable): Initialize GetConsoleFontSize and
4867 GetCurrentConsoleFont.
4868
4869 2010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4870
4871 * Makefile.in (RDYNAMIC): New.
4872 (SFILES): Add proc-service.list.
4873 * config/alpha/alpha-linux.mh (NAT_CDEPS): New.
4874 (LOADLIBES): Replace -rdynamic by $(RDYNAMIC).
4875 * config/arm/linux.mh: Likewise.
4876 * config/i386/linux.mh: Likewise.
4877 * config/i386/linux64.mh: Likewise.
4878 * config/ia64/linux.mh: Likewise.
4879 * config/m32r/linux.mh: Likewise.
4880 * config/m68k/linux.mh: Likewise.
4881 * config/mips/linux.mh: Likewise.
4882 * config/pa/linux.mh: Likewise.
4883 * config/powerpc/linux.mh: Likewise.
4884 * config/powerpc/ppc64-linux.mh: Likewise.
4885 * config/s390/s390.mh: Likewise.
4886 * config/sparc/linux.mh: Likewise.
4887 * config/sparc/linux64.mh: Likewise.
4888 * config/xtensa/linux.mh: Likewise.
4889 * configure.ac: New RDYNAMIC on native host and GCC.
4890 (solaris*): Replace -Wl,-export-dynamic by $RDYNAMIC.
4891 * configure: Regenerate.
4892 * proc-service.list: New.
4893
4894 2010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4895
4896 * linux-nat.c (linux_nat_core_of_thread_1): Fix crash on invalid
4897 CONTENT.
4898
4899 2010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4900
4901 * linux-nat.c (linux_nat_wait_1): Do not call
4902 linux_nat_core_of_thread_1 on TARGET_WAITKIND_EXITED or
4903 TARGET_WAITKIND_SIGNALLED.
4904
4905 2010-05-27 Joel Brobecker <brobecker@adacore.com>
4906
4907 * ada-lang.c (ada_inferior_data): New struct.
4908 (ada_inferior_data): New static global.
4909 (ada_inferior_data_cleanup, get_ada_inferior_data, ada_inferior_exit)
4910 (ada_get_tsd_type): New functions.
4911 (ada_tag_name_2): Use ada_get_tsd_type instead of ada_find_any_type
4912 to look the tsd type up.
4913 (_initialize_ada_language): Attach ada_inferior_exit to inferior_exit
4914 event. Set ada_inferior_data.
4915
4916 2010-05-27 Pedro Alves <pedro@codesourcery.com>
4917
4918 * remote.c (unpack_varlen_hex): Remove forward declaration.
4919 (remote_console_output): Make static, and add forward declaration.
4920 * remote.h: Drop FIXME comment.
4921 (unpack_varlen_hex): Declare.
4922 (remote_console_output, remote_cisco_objfile_relocate)
4923 (deprecated_target_resume_hook, deprecated_target_wait_loop_hook):
4924 Delete declarations.
4925 * tracepoint.c: Include "remote.h".
4926 (unpack_varlen_hex): Delete declaration.
4927
4928 2010-05-27 Tom Tromey <tromey@redhat.com>
4929
4930 * dwarf2loc.c (struct piece_closure) <refc>: New field.
4931 (allocate_piece_closure): Initialize refc.
4932 (copy_pieced_value_closure): Use refc.
4933 (free_pieced_value_closure): Likewise.
4934
4935 2010-05-27 Tom Tromey <tromey@redhat.com>
4936
4937 * arm-tdep.c (push_stack_item): 'contents' now const.
4938 (arm_push_dummy_call): Make 'val' const. Use value_contents, not
4939 value_contents_writeable. Introduce new temporary.
4940
4941 2010-05-27 Tom Tromey <tromey@redhat.com>
4942
4943 * findcmd.c (parse_find_args): Use value_contents, not
4944 value_contents_raw.
4945
4946 2010-05-27 Tom Tromey <tromey@redhat.com>
4947
4948 * alpha-tdep.c (alpha_push_dummy_call): Make alpha_arg.contents
4949 const. Use value_contents, not value_contents_writeable.
4950
4951 2010-05-27 Joel Brobecker <brobecker@adacore.com>
4952
4953 * ada-lang.c (ensure_lval): Replace call to value_contents_raw
4954 by call to value_contents.
4955
4956 2010-05-27 Ozkan Sezer <sezeroz@gmail.com>
4957
4958 * MAINTAINERS: Add myself for write after approval privileges.
4959
4960 2010-05-26 Doug Evans <dje@google.com>
4961
4962 Allow python to find its files if moved from original location.
4963 * acinclude.m4 (GDB_AC_DEFINE_RELOCATABLE): New function.
4964 (GDB_AC_WITH_DIR): Call it.
4965 * configure.ac: Define WITH_PYTHON_PATH if we can find the
4966 python installation directory.
4967 * config.in: Regenerate.
4968 * configure: Regenerate.
4969 * defs.h (python_libdir): Declare.
4970 * main.c (python_libdir): Define.
4971 (captured_main): Initialize python_libdir.
4972 * python/python.c (_initialize_python): #ifdef WITH_PYTHON_PATH,
4973 call Py_SetProgramName to make sure python can find its libraries
4974 and modules.
4975
4976 * configure.ac: Try to use python's distutils to fetch compilation
4977 parameters.
4978 * configure: Regenerate.
4979 * python/python-config.py: New file.
4980
4981 2010-05-26 Ozkan Sezer <sezeroz@gmail.com>
4982
4983 * ser-tcp.c (net_open): Check error return from socket() call by its
4984 equality to -1 not by it being negative.
4985 (net_close): Likewise.
4986
4987 2010-05-26 Pedro Alves <pedro@codesourcery.com>
4988
4989 * NEWS: Mention the `qRelocInsn' feature.
4990 * gdbarch.sh (relocate_instruction): New.
4991 * amd64-tdep.c (rip_relative_offset): New.
4992 (append_insns): New.
4993 (amd64_relocate_instruction): New.
4994 (amd64_init_abi): Install it.
4995 * i386-tdep.c (append_insns): New.
4996 (i386_relocate_instruction): New.
4997 (i386_gdbarch_init): Install it.
4998 * remote.c (remote_get_noisy_reply): Handle qRelocInsn requests.
4999 * gdbarch.h, gdbarch.c: Regenerate.
5000
5001 2010-05-26 Tom Tromey <tromey@redhat.com>
5002
5003 * dwarf2loc.h (struct dwarf2_locexpr_baton) <data>: Now const.
5004 (struct dwarf2_loclist_baton) <data>: Likewise.
5005 * dwarf2loc.c (find_location_expression): Constify return type.
5006 (dwarf2_evaluate_loc_desc): Make 'data' argument const.
5007 (dwarf2_loc_desc_needs_frame): Likewise.
5008 (loclist_read_variable): Constify.
5009 (loclist_describe_location): Likewise.
5010 (loclist_tracepoint_var_ref): Likewise.
5011
5012 2010-05-25 Tom Tromey <tromey@redhat.com>
5013
5014 * dwarf2loc.c (dwarf_expr_frame_base): Constify.
5015 (dwarf_expr_frame_base_1): Likewise.
5016 (read_pieced_value): Update.
5017 (needs_frame_frame_base): Constify.
5018 (dwarf2_tracepoint_var_loc): Likewise.
5019 (dwarf2_tracepoint_var_access): Likewise.
5020 (locexpr_describe_location_piece): Likewise.
5021 (locexpr_describe_location_1): Likewise.
5022 * dwarf2expr.h (struct dwarf_expr_context) <get_frame_base>:
5023 Constify.
5024 (data): Now const.
5025 (struct dwarf_expr_piece) <v.literal.data>: Likewise.
5026 (dwarf_expr_eval, read_uleb128, read_sleb128)
5027 (dwarf2_read_address): Update.
5028 * dwarf2expr.c (dwarf_expr_eval): Constify.
5029 (read_uleb128): Likewise.
5030 (read_sleb128): Likewise.
5031 (dwarf2_read_address): Likewise.
5032 (require_composition): Likewise.
5033 (execute_stack_op): Likewise.
5034 * dwarf2-frame.h (struct dwarf2_frame_state_reg) <loc.exp>: Now a
5035 "const gdb_byte *".
5036 * dwarf2-frame.c (struct dwarf2_frame_state_reg_info) <cfa_exp>:
5037 Now const.
5038 (no_get_frame_base): Constify.
5039 (execute_stack_op): Likewise.
5040 (execute_cfa_program): Likewise.
5041 (read_encoded_value): Likewise.
5042
5043 2010-05-25 Doug Evans <dje@google.com>
5044
5045 * ser-pipe.c (pipe_open): Ignore SIGINTs in child.
5046
5047 * event-loop.h (GDB_READABLE, GDB_WRITABLE, GDB_EXCEPTION): Move to ...
5048 * event-loop.c: ... here.
5049 * tui/tui-io.c (tui_readline_output): Rename parameter `code' to
5050 `error' for clarity.
5051 (tui_getc): Pass correct value for `error' parameter to
5052 tui_readline_output.
5053
5054 Add python gdb.GdbError and gdb.string_to_argv.
5055 * NEWS: Document them.
5056 * python/py-cmd.c (cmdpy_function): Don't print a traceback if
5057 the exception is gdb.GdbError. Print a second traceback if there's
5058 an error computing the error message.
5059 (gdbpy_string_to_argv): New function.
5060 * python/py-utils.c (gdbpy_obj_to_string): New function.
5061 (gdbpy_exception_to_string): New function.
5062 * python/python-internal.h (gdbpy_string_to_argv): Declare.
5063 (gdbpy_obj_to_string, gdbpy_exception_to_string): Declare.
5064 (gdbpy_gdberror_exc): Declare.
5065 * python/python.c (gdbpy_gdberror_exc): New global.
5066 (_initialize_python): Initialize gdbpy_gdberror_exc and create
5067 gdb.GdbError.
5068 (GdbMethods): Add string_to_argv.
5069
5070 2010-05-21 Pierre Muller <muller@ics.u-strasbg.fr>
5071
5072 * windows-nat.c (display_selector): Call GetLastError to give better
5073 failure explanation.
5074
5075 2010-05-24 Pedro Alves <pedro@codesourcery.com>
5076
5077 * config.in: Regenerate.
5078
5079 2010-05-23 Jan Kratochvil <jan.kratochvil@redhat.com>
5080
5081 Code cleanup.
5082 * target.c (push_target): Return only void. Remove the return value
5083 comment.
5084 * target.h (push_target): Return only void.
5085
5086 2010-05-23 Pedro Alves <pedro@codesourcery.com>
5087
5088 Update gnulib from latest git.
5089 (250b80067c1e1d8faa0c42fb572f721975b929c5)
5090
5091 * gnulib/memcmp.c: Removed.
5092 * gnulib/memchr.valgrind: New.
5093 * gnulib/stddef.in.h: New.
5094 * gnulib/Makefile.am: Updated.
5095 * gnulib/memchr.c: Updated.
5096 * gnulib/memmem.c: Updated.
5097 * gnulib/stdint.in.h: Updated.
5098 * gnulib/str-two-way.h: Updated.
5099 * gnulib/string.in.h: Updated.
5100 * gnulib/wchar.in.h: Updated.
5101
5102 * gnulib/extra/link-warning.h: Removed.
5103 * gnulib/extra/c++defs.h: New.
5104 * gnulib/extra/warn-on-use.h: New.
5105 * gnulib/extra/arg-nonnull.h: Updated.
5106
5107 * gnulib/m4/extensions.m4: Updated.
5108 * gnulib/m4/gnulib-cache.m4: Updated.
5109 * gnulib/m4/gnulib-common.m4: Updated.
5110 * gnulib/m4/gnulib-comp.m4: Updated.
5111 * gnulib/m4/gnulib-tool.m4: Updated.
5112 * gnulib/m4/include_next.m4: Updated.
5113 * gnulib/m4/longlong.m4: Updated.
5114 * gnulib/m4/memchr.m4: Updated.
5115 * gnulib/m4/memmem.m4: Updated.
5116 * gnulib/m4/stdint.m4: Updated.
5117 * gnulib/m4/string_h.m4: Updated.
5118 * gnulib/m4/memcmp.m4: Removed.
5119 * gnulib/m4/onceonly_2_57.m4: Removed.
5120 * gnulib/m4/00gnulib.m4: New.
5121 * gnulib/m4/mmap-anon.m4: New.
5122 * gnulib/m4/multiarch.m4: New.
5123 * gnulib/m4/onceonly.m4: New.
5124 * gnulib/m4/stddef_h.m4: New.
5125 * gnulib/m4/warn-on-use.m4: New.
5126 * gnulib/m4/wchar.m4: Removed.
5127 * gnulib/m4/wchar_h.m4: New.
5128 * gnulib/m4/wchar_t.m4: New.
5129 * gnulib/m4/wint_t.m4: New.
5130
5131 * aclocal.m4: Regenerate.
5132 * config.in: Likewise.
5133 * configure: Likewise.
5134 * gnulib/Makefile.in: Likewise.
5135
5136 2010-05-21 Tom Tromey <tromey@redhat.com>
5137
5138 * dwarf2loc.c (extract_bits_primitive): New function.
5139 (extract_bits): Likewise.
5140 (insert_bits): Likewise.
5141 (copy_bitwise): Likewise.
5142 (read_pieced_value): Do all operations in bits.
5143 (write_pieced_value): Likewise.
5144 * dwarf2expr.h (struct dwarf_expr_piece) <offset>: New field.
5145 * dwarf2expr.c (add_piece): New arguments bit_piece, offset.
5146 Always use xrealloc to resize piece array.
5147 (execute_stack_op) <DW_OP_reg0>: Handle DW_OP_bit_piece.
5148 <DW_OP_piece>: Update.
5149 <DW_OP_bit_piece>: New case.
5150
5151 2010-05-21 Tom Tromey <tromey@redhat.com>
5152
5153 * dwarf2loc.c (read_pieced_value): Exit loop when result is full.
5154 <DWARF_VALUE_OPTIMIZED_OUT>: New case.
5155 * dwarf2expr.h (enum dwarf_value_location)
5156 <DWARF_VALUE_OPTIMIZED_OUT>: New constant.
5157 * dwarf2expr.c (dwarf_expr_stack_empty_p): New function.
5158 (add_piece): Handle empty piece.
5159 (execute_stack_op) <DW_OP_piece>: Handle
5160 DWARF_VALUE_OPTIMIZED_OUT.
5161
5162 2010-05-21 Tom Tromey <tromey@redhat.com>
5163
5164 * eval.c (evaluate_subexp_standard) <BINOP_SUBSCRIPT>: Call
5165 evaluate_subexp, not evaluate_subexp_with_coercion.
5166
5167 2010-05-21 Pierre Muller <muller@ics.u-strasbg.fr>
5168
5169 * dwarf2read.c (new_symbol): Handle DW_AT_variable_parameter
5170 attribute.
5171
5172 2010-05-21 Tom Tromey <tromey@redhat.com>
5173
5174 * dwarf2loc.c (read_pieced_value): Work properly when 'v' has an
5175 offset.
5176 (write_pieced_value): Likewise.
5177
5178 2010-05-21 Pierre Muller <muller@ics.u-strasbg.fr>
5179
5180 * dwarf2read.c (process_die): Also allow DW_TAG_const_type
5181 and DW_TAG_volatile_type.
5182 (new_symbol): Likewise.
5183
5184 2010-05-20 Pierre Muller <muller@ics.u-strasbg.fr>
5185
5186 * p-valprint.c (pascal_val_print): Call get_array_bounds
5187 to obtain the number of elements in an array.
5188
5189 2010-05-19 Doug Evans <dje@google.com>
5190
5191 * python.c (gdbpy_print_stack): Ensure output ends with a newline.
5192
5193 * python.c (source_python_script): Add comment.
5194 (source_python_script_for_objfile): Remove unnecessary call to
5195 gdbpy_print_stack.
5196
5197 2010-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
5198 Sergio Durigan Junior <sergiodj@redhat.com>
5199
5200 Code cleanup.
5201 * parse.c (exp_iterate): Use operator_length wrapper function.
5202
5203 2010-05-18 Michael Snyder <msnyder@vmware.com>
5204
5205 * ada-lang.c: White space.
5206 * ada-typeprint.c: White space.
5207 * ada-valprint.c: White space.
5208 * addrmap.c: White space.
5209 * auxv.c: White space.
5210 * ax-gdb.c: White space.
5211
5212 2010-05-18 Hui Zhu <teawater@gmail.com>
5213
5214 * linux-fork.c (inferior_call_waitpid_cleanup): Add check
5215 for oldfp.
5216 (inferior_call_waitpid): Move make_cleanup out of check.
5217 Check the return of waitpid.
5218 (delete_checkpoint_command): Add pptid to save fi->parent_ptid.
5219
5220 2010-05-17 Michael Snyder <msnyder@vmware.com>
5221
5222 * tui/tui.c: White space.
5223 * tui/tui-data.c: White space.
5224 * tui/tui-disasm.c: White space.
5225 * tui/tui-file.c: White space.
5226 * tui/tui-interp.c: White space.
5227 * tui/tui-main.c: White space.
5228 * tui/tui-out.c: White space.
5229 * tui/tui-regs.c: White space.
5230 * tui/tui-source.c: White space.
5231 * tui/tui-stack.c: White space.
5232 * tui/tui-win.c: White space.
5233 * tui/tui-winsource.c: White space.
5234
5235 * procfs.c: White space.
5236
5237 * python/py-auto-load.c: White space.
5238 * python/py-block.c: White space.
5239 * python/py-breakpoint.c: White space.
5240 * python/py-cmd.c: White space.
5241 * python/py-function.c: White space.
5242 * python/py-lazy-string.c: White space.
5243 * python/py-objfile.c: White space.
5244 * python/py-param.c: White space.
5245 * python/py-prettyprint.c: White space.
5246 * python/py-progspace.c: White space.
5247 * python/py-symtab.c: White space.
5248 * python/python.c: White space.
5249 * python/py-type.c: White space.
5250 * python/py-utils.c: White space.
5251 * python/py-value.c: White space.
5252
5253 * mi/mi-cmd-break.c: White space.
5254 * mi/mi-cmd-env.c: White space.
5255 * mi/mi-cmds.c: White space.
5256 * mi/mi-cmd-stack.c: White space.
5257 * mi/mi-cmd-var.c: White space.
5258 * mi/mi-console.c: White space.
5259 * mi/mi-getopt.c: White space.
5260 * mi/mi-interp.c: White space.
5261 * mi/mi-main.c: White space.
5262 * mi/mi-out.c: White space.
5263 * mi/mi-parse.c: White space.
5264
5265 * cli/cli-cmds.c: White space.
5266 * cli/cli-decode.c: White space.
5267 * cli/cli-dump.c: White space.
5268 * cli/cli-interp.c: White space.
5269 * cli/cli-logging.c: White space.
5270 * cli/cli-script.c: White space.
5271 * cli/cli-setshow.c: White space.
5272
5273 * valarith.c: White space.
5274 * valops.c: White space.
5275 * valprint.c: White space.
5276 * value.c: White space.
5277 * varobj.c: White space.
5278 * xcoffread.c: White space.
5279 * xml-support.c: White space.
5280 * xml-tdesc.c: White space.
5281
5282 2010-05-17 Andreas Schwab <schwab@redhat.com>
5283
5284 PR gdb/11092
5285 * c-lang.c (c_printstr): Compute real length of NUL terminated
5286 string at first.
5287
5288 2010-05-17 Joel Brobecker <brobecker@adacore.com>
5289
5290 * parse.c (parse_exp_in_context): When block is not NULL, use
5291 its associated language to parse the expression instead of
5292 the current_language.
5293
5294 2010-05-17 Joel Brobecker <brobecker@adacore.com>
5295
5296 * jv-lang.c (java_lookup_class): Remove commented out code.
5297 (type_from_class): Likewise.
5298 (java_op_print_tab): Remove commented-out elements.
5299
5300 2010-05-17 Joel Brobecker <brobecker@adacore.com>
5301
5302 * ada-lang.c (to_fixed_range_type): The the raw index type as
5303 argument instead of the raw type name. Remove orig_type parameter.
5304 Update calls throughout.
5305 (ada_fixup_array_indexes_type): New function.
5306 (ada_array_bound_from_type): Add call to ada_fixup_array_indexes_type.
5307 * ada-lang.h (ada_fixup_array_indexes_type): Add declaration.
5308 * ada-typeprint.c (print_range_type): Renames print_range_type_named.
5309 Remove name parameter.
5310 (print_array_type): Add call to ada_fixup_array_indexes_type.
5311 Update calls to print_range_type.
5312 (ada_print_type): Update calls to print_range_type.
5313
5314 2010-05-17 Pierre Muller <muller@ics.u-strasbg.fr>
5315
5316 * dwarf2read.c (read_set_type): Set type length if
5317 DW_AT_byte_size attribute is present.
5318
5319 2010-05-17 Pierre Muller <muller@ics.u-strasbg.fr>
5320
5321 * p-valprint.c (pascal_val_print): Handle set type if range limits
5322 are undefined but size is known.
5323
5324 2010-05-17 Pedro Alves <pedro@codesourcery.com>
5325
5326 * procfs.c: Reformat.
5327
5328 2010-05-16 Michael Snyder <msnyder@vmware.com>
5329
5330 * target.c: White space.
5331 * target-descriptions.c: White space.
5332 * target-memory.c: White space.
5333 * thread.c: White space.
5334 * top.c: White space.
5335 * tracepoint.c: White space.
5336 * trad-frame.c: White space.
5337 * tramp-frame.c: White space.
5338 * ui-file.c: White space.
5339 * ui-out.c: White space.
5340 * user-regs.c: White space.
5341 * utils.c: White space.
5342
5343 * scm-exp.c: White space.
5344 * scm-lang.c: White space.
5345 * scm-valprint.c: White space.
5346 * sentinel-frame.c: White space.
5347 * ser-base.c: White space.
5348 * ser-go32.c: White space.
5349 * serial.c: White space.
5350 * ser-mingw.c: White space.
5351 * ser-pipe.c: White space.
5352 * ser-tcp.c: White space.
5353 * ser-unix.c: White space.
5354 * solib.c: White space.
5355 * solib-darwin.c: White space.
5356 * solib-frv.c: White space.
5357 * solib-irix.c: White space.
5358 * solib-osf.c: White space.
5359 * solib-pa64.c: White space.
5360 * solib-som.c: White space.
5361 * solib-spu.c: White space.
5362 * solib-svr4.c: White space.
5363 * solib-target.c: White space.
5364 * source.c: White space.
5365 * stabsread.c: White space.
5366 * stack.c: White space.
5367 * std-regs.c: White space.
5368 * symfile.c: White space.
5369 * symmisc.c: White space.
5370 * symtab.c: White space.
5371
5372 2010-05-16 Michael Snyder <msnyder@vmware.com>
5373
5374 * source.c (_initialize_source): Add "rev" as an abbreviation
5375 for the "reverse-search" command.
5376
5377 2010-05-16 Michael Snyder <msnyder@vmware.com>
5378
5379 * record.c: White space.
5380 * regcache.c: White space.
5381 * reggroups.c: White space.
5382 * remote-fileio.c: White space.
5383 * remote-m32r-sdi.c: White space.
5384 * remote-mips.c: White space.
5385 * remote-sim.c: White space.
5386 * remote.c: White space.
5387 (process_g_packet): Remove orphan braces.
5388
5389 2010-05-15 Michael Snyder <msnyder@vmware.com>
5390
5391 * parse.c: White space.
5392 * p-lang.c: White space.
5393 * posix-hdep.c: White space.
5394 * printcmd.c: White space.
5395 * progspace.c: White space.
5396 * prologue-value.c: White space.
5397 * psymtab.c: White space.
5398 * p-typeprint.c: White space.
5399 * p-valprint.c: White space.
5400
5401 * objc-lang.c: White space.
5402 * objfiles.c: White space.
5403 * observer.c: White space.
5404 * osabi.c: White space.
5405 * osdata.c: White space.
5406
5407 * m2-lang.c: White space.
5408 * m2-valprint.c: White space.
5409 * macrocmd.c: White space.
5410 * macroexp.c: White space.
5411 * macroscope.c: White space.
5412 * macrotab.c: White space.
5413 * main.c: White space.
5414 * maint.c: White space.
5415 * mdebugread.c: White space.
5416 * memattr.c: White space.
5417 * minsyms.c: White space.
5418 * monitor.c: White space.
5419
5420 2010-05-14 Michael Snyder <msnyder@vmware.com>
5421
5422 * jv-lang.c: White space.
5423 * jv-typeprint.c: White space.
5424 * jv-valprint.c: White space.
5425 * language.c: White space.
5426 * libunwind-frame.c: White space.
5427 * linespec.c: White space.
5428 * linux-nat.c: White space.
5429 * linux-record.c: White space.
5430 * linux-thread-db.c: White space.
5431
5432 * infcall.c: White space.
5433 * inf-child.c: White space.
5434 * infcmd.c: White space.
5435 * inferior.c: White space.
5436 * inf-loop.c: White space.
5437 * inflow.c: White space.
5438 * inline-frame.c: White space.
5439 * interps.c: White space.
5440
5441 * gcore.c: White space.
5442 * gdb.c: White space.
5443 * gdbtypes.c: White space.
5444 * gnu-nat.c: White space.
5445 * gnu-v2-abi.c: White space.
5446 * gnu-v3-abi.c: White space.
5447
5448 * findcmd.c: White space.
5449 * findvar.c: White space.
5450 * fork-child.c: White space.
5451 * frame-base.c: White space.
5452 * frame.c: White space.
5453 * frame-unwind.c: White space.
5454 * f-valprint.c: White space.
5455
5456 * elfread.c: White space.
5457 * environ.c: White space.
5458 * eval.c: White space.
5459 * event-loop.c: White space.
5460 * event-top.c: White space.
5461 * exceptions.c: White space.
5462 * exec.c: White space.
5463 * expprint.c: White space.
5464
5465 * dbxread.c: White space.
5466 * dcache.c: White space.
5467 * disasm.c: White space.
5468 * doublest.c: White space.
5469 * dsrec.c: White space.
5470 * dummy-frame.c: White space.
5471 * dwarf2expr.c: White space.
5472 * dwarf2-frame.c: White space.
5473 * dwarf2loc.c: White space.
5474 * dwarf2read.c: White space.
5475
5476 2010-05-14 Phil Muldoon <pmuldoon@redhat.com>
5477
5478 PR python/11482
5479
5480 * python/py-value.c (valpy_hash): New function.
5481 (value_object_type): Register valpy_hash.
5482
5483 2010-05-14 Hui Zhu <teawater@gmail.com>
5484 Michael Snyder <msnyder@vmware.com>
5485
5486 * linux-fork.c (gdbthread.h): New include.
5487 (fork_info): Add parent_ptid.
5488 (inferior_call_waitpid_cleanup, inferior_call_waitpid): New
5489 functions.
5490 (delete_checkpoint_command): Call inferior_call_waitpid.
5491 (checkpoint_command): Set parent_ptid.
5492
5493 2010-05-13 Michael Snyder <msnyder@vmware.com>
5494
5495 * dictionary.c: Re-indent to GNU coding standard.
5496
5497 * charset.c: White space.
5498 * c-lang.c: White space.
5499 * cli-out.c: White space.
5500 * coffread.c: White space.
5501 * complaints.c: White space.
5502 * completer.c: White space.
5503 * corefile.c: White space.
5504 * corelow.c: White space.
5505 * cp-abi.c: White space.
5506 * cp-namespace.c: White space.
5507 * cp-support.c: White space.
5508 * cp-valprint.c: White space.
5509 * c-typeprint.c: White space.
5510 * c-valprint.c: White space.
5511 * blockframe.c: White space.
5512 * breakpoint.c: White space.
5513 * buildsym.c: White space.
5514 * blockframe.c: White space.
5515 * bcache.c: White space.
5516 * gdbarch.sh: White space, add blank lines.
5517 * arch-utils.c: Ditto.
5518 * gdbarch.c: Regenerate.
5519 * frame.c: White space, add blank lines.
5520 * stack.c: White space, add blank lines.
5521 (initialize_stack): Remove long-dead code.
5522
5523 2010-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
5524
5525 Code cleanup.
5526 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Change the parameter to type.
5527 (locexpr_read_variable, loclist_read_variable): Update the callers.
5528
5529 2010-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
5530
5531 Code cleanup.
5532 * dwarf2read.c (die_type, die_descriptive_type): Remove variable type.
5533 Remove check of NULL returned by tag_type_to_type.
5534 (die_containing_type): Remove variable type. Remove type_die variable
5535 initialization. Remove check of NULL returned by tag_type_to_type.
5536
5537 2010-05-11 Pierre Muller <muller@ics.u-strasbg.fr>
5538
5539 PR exp/11530.
5540 * gdbtypes.c (lookup_struct_elt_type): Also lookup
5541 names of unnamed structures or unions.
5542
5543 2010-05-11 Pierre Muller <muller@ics.u-strasbg.fr>
5544
5545 * procfs.c (proc_watchpoint_address): New function.
5546 (procfs_stopped_by_watchpoint): Remove useless check after
5547 find_procinfo_or_die call.
5548 (procfs_stopped_data_address): New function.
5549 (procfs_use_watchpoints): Register new watchpoint related function.
5550
5551 2010-05-11 Tom Tromey <tromey@redhat.com>
5552
5553 * eval.c (evaluate_subexp_standard): Revert inadvertent change.
5554
5555 2010-05-10 Michael Snyder <msnyder@vmware.com>
5556
5557 * utils.c: White space cleanup.
5558
5559 2010-05-10 Tom Tromey <tromey@redhat.com>
5560
5561 * eval.c (ptrmath_type_p): Add 'lang' argument.
5562 (evaluate_subexp_standard): Update.
5563 (evaluate_subexp_with_coercion): Update.
5564 * language.h (CAST_IS_CONVERSION): Add 'LANG' argument.
5565
5566 2010-05-10 Michael Snyder <msnyder@vmware.com>
5567
5568 * utils.c (do_fclose_cleanup) Restore local variable.
5569
5570 2010-05-09 Doug Evans <dje@google.com>
5571
5572 * record.c (init_record_core_ops): Rename record_core to record-core.
5573
5574 2010-05-08 Joel Brobecker <brobecker@adacore.com>
5575
5576 Implement task switching on pa-hpux.
5577 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): New function.
5578 (inf_ttrace_target): Set t->to_get_ada_task_ptid.
5579
5580 2010-05-08 Pierre Muller <muller@ics.u-strasbg.fr>
5581
5582 * valops.c (find_overload_match): Add missing i18n markup.
5583
5584 2010-05-08 Pierre Muller <muller@ics.u-strasbg.fr>
5585
5586 * p-exp.y (exp : SIZEOF '(' exp ')'): New rule.
5587
5588 2010-05-08 Jan Kratochvil <jan.kratochvil@redhat.com>
5589
5590 * dwarf2read.c (typename_concat): Use (char *) NULL terminated stdarg
5591 list for the obconcat call.
5592 * mdebugread.c (parse_symbol): Likewise.
5593 * stabsread.c (define_symbol, read_member_functions, read_cpp_abbrev):
5594 Likewise.
5595 * symfile.c (obconcat): Replace the s1, s2 and s3 parameters by `...'.
5596 New variable ap. Remove variables len and val.
5597 * symfile.h (obconcat): Likewise for the prototype.
5598
5599 2010-05-07 Michael Snyder <msnyder@vmware.com>
5600
5601 * python/python.c (execute_gdb_command): Remove unused variables.
5602 * python/py-block.c (gdbpy_block_for_pc): Remove unused variable.
5603 * python/py-breakpoint.c (gdbpy_breakpoint_created):
5604 Remove unused variable.
5605 * python/py-cmd.c (cmdpy_function): Remove unused variable.
5606 (cmdpy_completer): Remove unused variable.
5607 * python/py-frame.c (frapy_find_sal): Remove unused variable.
5608 * python/py-function.c (fnpy_call): Remove unused variable.
5609 * python/py-objfile.c (objfile_to_objfile_object):
5610 Remove unused variable.
5611 * python/py-param.c (parmpy_init): Remove unused variable.
5612 * python/py-prettyprint.c (apply_varobj_pretty_printer):
5613 Remove unused variable.
5614 (gdbpy_default_visualizer): Remove unused variable.
5615 * python/py-progspace.c (pspace_to_pspace_object):
5616 Remove unused variable.
5617 * python/py-symtab.c (symtab_and_line_to_sal_object):
5618 Remove unused variable.
5619 * python/py-type.c (typy_template_argument):
5620 Remove unused variable.
5621 * python/py-value.c (valpy_string): Remove unused variable.
5622 (convert_value_from_python): Remove unused variables.
5623
5624 2010-05-07 Michael Snyder <msnyder@vmware.com>
5625
5626 * valops.c (value_cast_pointers): Restore unused variable 'type1',
5627 and use it to compute variable 't1'.
5628
5629 2010-05-07 Joel Brobecker <brobecker@adacore.com>
5630
5631 * ada-lang.c (assign_aggregate): Remove unused variable.
5632
5633 2010-05-07 Sami Wagiaalla <swagiaal@redhat.com>
5634
5635 PR C++/7943:
5636 * valops.c (find_overload_match): Handle fsym == NULL case.
5637 Add int no_adl argument.
5638 (find_oload_champ_namespace_loop): Call make_symbol_overload_list_adl
5639 when appropriate.
5640 Add int no_adl argument.
5641 (find_oload_champ_namespace): Add int no_adl argument.
5642 * parse.c (operator_length_standard): Return length for OP_ADL_FUNC
5643 expression.
5644 * expprint.c (op_name_standard): Added string for OP_ADL_FUNC case.
5645 * eval.c (evaluate_subexp_standard): Added OP_ADL_FUNC case.
5646 Evaluate arguments and use them to perform ADL lookup.
5647 Pass no_adl argument to find_overload_match.
5648 Disable adl lookup when evaluating a fully qualified OP_FUNCALL.
5649 * cp-support.h: Added prototype for
5650 make_symbol_overload_list_namespace.
5651 * cp-support.c (make_symbol_overload_list_namespace): New function.
5652 (make_symbol_overload_list_adl_namespace): New function.
5653 (make_symbol_overload_list_adl): New function.
5654 (make_symbol_overload_list_using): Moved code to add function to
5655 overload set to make_symbol_overload_list_namespace.
5656 * c-exp.y: create UNKNOWN_CPP_NAME token.
5657 Add parse rule for ADL functions.
5658 (classify_name): Recognize an UNKNOWN_CPP_NAME.
5659
5660 2010-05-07 Jan Kratochvil <jan.kratochvil@redhat.com>
5661
5662 * fbsd-nat.c (fbsd_make_corefile_notes): Add cast to NULL used as
5663 sentinel.
5664
5665 2010-05-07 Joel Brobecker <brobecker@adacore.com>
5666
5667 Implement task switching on solaris targets.
5668 * sol-thread.c (thread_db_find_thread_from_tid)
5669 (sol_get_ada_task_ptid): New functions.
5670 (init_sol_thread_ops): Set sol_thread_ops.to_get_ada_task_ptid.
5671
5672 2010-05-07 Pedro Alves <pedro@codesourcery.com>
5673
5674 * remote.c (remote_query_supported_append): Use reconcat.
5675 (remote_query_supported): Install a cleanup. Use reconcat.
5676
5677 2010-05-07 Pedro Alves <pedro@codesourcery.com>
5678
5679 * gdbarch.sh (qsupported): Delete.
5680 * gdbarch.h, gdbarch.c: Regenerate.
5681 * remote.c (remote_query_supported): Remove use of
5682 gdbarch_qsupported.
5683
5684 2010-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
5685
5686 * xml-syscall.c (syscall_start_syscalls_info): Remove unused
5687 function.
5688
5689 2010-05-06 Michael Snyder <msnyder@vmware.com>
5690
5691 * xml-support.c (xinclude_start_include): Delete unused variable.
5692 (xml_process_xincludes): Delete unused variable.
5693 * xml-syscall.c (syscall_parse_xml): Delete unused variable.
5694 * target-descriptions.c (tdesc_gdb_type): Delete unused variable.
5695 (tdesc_find_arch_register): Delete unused variable.
5696 (tdesc_use_registers): Delete unused variable.
5697 * xml-tdesc.c (tdesc_start_target): Delete unused variable.
5698 * inferior.c (print_inferior): Delete unused variable.
5699 * record.c (record_open_1): Delete unused variable.
5700 (record_restore): Delete unused variable.
5701 (cmd_record_save): Delete unused variable.
5702 * gcore.c (derive_heap_segment): Delete unused variable.
5703 (objfile_find_memory_regions): Use unused variable.
5704 * jit.c (jit_inferior_init): Delete unused variable.
5705 * progspace.c (clone_program_space): Delete unused variable.
5706 (pspace_empty_p): Delete unused variable.
5707
5708 * frame-unwind.c (frame_unwind_find_by_frame):
5709 Delete unused variable.
5710 * gnu-v2-abi.c (gnuv2_value_rtti_type): Delete unused variable.
5711 * cp-support.c (mangled_name_to_comp): Delete unused variable.
5712 (method_name_from_physname): Delete unused variable.
5713 (cp_func_name): Delete unused variable.
5714 (cp_validate_operator): Delete unused variable.
5715 * cp-namespace.c (cp_scan_for_anonymous_namespaces):
5716 Delete unused variable.
5717 * trad-frame.c (trad_frame_get_prev_register):
5718 Delete unused variable.
5719 * tramp-frame.c (tramp_frame_cache): Delete unused variable.
5720
5721 * serial.c (serial_for_fd): Delete unused variable.
5722 * mdebugread.c (psymtab_to_symtab_1): Delete unused variable.
5723 * top.c (execute_command): Delete unused variable.
5724 (init_main): Delete unused variable.
5725 * utils.c (do_fclose_cleanup): Delete unused variable.
5726 (do_all_inferior_continuations): Delete unused variable.
5727 (initialize_utils): Delete unused variable.
5728 (internal_problem_mode): Delete unused global.
5729 * frame.c (get_prev_frame): Delete unused global.
5730 (get_frame_locals_address): Delete unused global.
5731 (get_frame_args_address): Delete unused global.
5732
5733 * p-typeprint.c (pascal_type_print_base): Delete unused variable.
5734 (pascal_type_print_varspec_prefix): Delete unused variable.
5735 * f-typeprint.c (f_type_print_base): Delete unused variable.
5736 (f_type_print_varspec_suffix): Delete unused variable.
5737 * m2-typeprint.c (m2_print_type): Delete unused variable.
5738 (m2_long_set): Delete unused variable.
5739 * ada-valprint.c (ada_val_print_1): Delete unused variable.
5740 * d-valprint.c (dynamic_array_type): Delete unused variable.
5741 * f-valprint.c (f77_get_dynamic_length_of_aggregate):
5742 Delete unused variable.
5743 (f77_create_arrayprint_offset_tbl): Delete unused variable.
5744 * m2-valprint.c (m2_val_print): Delete unused variable.
5745
5746 * ui-out.c (ui_out_field_int): Delete unused variable.
5747 (ui_out_field_fmt_int): Delete unused variable.
5748 * varobj.c (varobj_list_children): Delete unused variable.
5749 (varobj_set_value): Delete unused variable.
5750 (install_new_value_visualizer): Delete unused variable.
5751 (varobj_set_visualizer): Delete unused variable.
5752 (varobj_update): Delete unused variable.
5753 (varobj_editable_p): Delete unused variable.
5754 (c_value_of_root): Delete unused variable.
5755 (cplus_describe_child): Delete unused variable.
5756
5757 * ada-lang.c (add_defn_to_vec): Delete unused variable.
5758 (decode_constrained_packed_array_type): Delete unused variable.
5759 (add_defn_to_vec): Delete unused variable.
5760 (symbol_completion_match): Delete unused variable.
5761 (value_tag_from_contents_and_address): Delete unused variable.
5762 (ada_evaluate_subexp): Delete unused variable.
5763 * c-lang.c (classify_type): Delete unused variable.
5764 * f-lang.c (f_printstr): Delete unused variable.
5765 * objc-lang.c (objc_printstr): Delete unused variable.
5766 * ada-tasks.c (get_known_tasks_addr): Delete unused variable.
5767 * jv-lang.c (type_from_class): ifdef unused variable.
5768 (java_class_name_from_physname): Delete unused variable.
5769 * m2-lang.c (m2_printstr): Delete unused variable.
5770
5771 * objfiles.c (objfile_relocate): Delete unused variable.
5772 * maint.c (_initialize_maint_cmds): Delete unused variable.
5773 * demangle.c (_initialize_demangler): Delete unused variable.
5774 * corefile.c (reopen_exec_file): Delete unused variable.
5775 * dwarf2expr.c (dwarf2_read_address): Delete unused variable.
5776 * dwarf2-frame.c (decode_frame_entry): Delete unused variable.
5777
5778 * osabi.c (_initialize_gdb_osabi): Delete unused variable.
5779 * memattr.c (mem_delete): Delete unused variable.
5780 (invalidate_target_mem_regions): Delete unused variable.
5781 * mem-break.c (default_memory_insert_breakpoint):
5782 Delete unused variable.
5783 * target.c (target_get_osdata): Delete unused variable.
5784 * parse.c (length_of_subexp): Delete unused variable.
5785 (prefixify_subexp): Delete unused variable.
5786 (exp_iterate): Delete unused variable.
5787 * reverse.c (delete_bookmark_command): Delete unused variable.
5788
5789 * macrocmd.c (_initialize_macrocmd): Delete unused variable.
5790 * macroexp.c (gather_arguments): Delete unused variable.
5791 (substitute_args): Delete unused variable.
5792 * completer.c (gdb_completer_loc_break_characters): Unused, delete.
5793 * gdbarch.sh (gdbarch_printable_names): Delete unused variable.
5794 (_initialize_gdbarch): Delete unused variable.
5795 * gdbarch.c, gdbarch.h: Regenerate.
5796 * arch-utils.c (initialize_current_architecture):
5797 Delete unused variable.
5798 (_initialize_gdbarch_utils): Delete unused variable.
5799 * gdbtypes.c (make_cv_type): Delete unused variable.
5800 (make_type_with_address_space): Delete unused variable.
5801
5802 * linespec.c (decode_compound): Delete unused variable.
5803 * dictionary.c (iterator_next_hashed): Delete unused variable.
5804 * infcall.c (call_function_by_hand): Delete unused variable.
5805 * infcmd.c (step_1): Delete unused variable.
5806 (registers_info): Delete unused variable.
5807 (attach_command): Delete unused variable.
5808 * infrun.c (follow_exec): Delete unused variable.
5809 (handle_step_into_function_backwards): Delete unused variable.
5810 (_initialize_infrun): Delete unused variable.
5811 * stack.c (parse_frame_specification_1): Delete unused variable.
5812 (frame_info): Delete unused variable.
5813 (backtrace_command_1): Delete unused variable.
5814 (catch_info): Delete unused variable.
5815
5816 * eval.c (evaluate_subexp_standard): Delete unused variable.
5817 * valops.c (value_cast_pointers): Delete unused variable.
5818 (value_dynamic_cast): Delete unused variable.
5819 (value_array): Delete unused variable.
5820 (find_overload_match): Delete unused variable.
5821 * valarith.c (value_subscript): Delete unused variable.
5822 (value_binop): Delete unused variable.
5823 * valprint.c (_initialize_valprint): Delete unused variable.
5824 * printcmd.c (print_command_1): Delete unused variable.
5825 (address_info): Delete unused variable.
5826 (printf_command): Delete unused variable.
5827
5828 * auxv.c (target_auxv_search): Delete unused variable.
5829 * blockframe.c (get_frame_block): Delete unused variable.
5830 * regcache.c (regcache_cpy): Delete unused variable.
5831 (regcache_cpy_no_passthrough): Delete unused variable.
5832 * charset.c (wchar_iterate): Delete unused variable.
5833 (find_charset_names): Delete unused variable.
5834 (_initialize_charset): Delete unused variable.
5835 * disasm.c (do_mixed_source_and_assembly):
5836 Delete unused variable.
5837 * source.c (set_default_source_symtab_and_line):
5838 Delete unused variable.
5839 (set_substitute_path_command): Delete unused variable.
5840 * value.c (preserve_values): Delete unused variable.
5841 (value_from_double): Delete unused variable.
5842
5843 2010-05-05 Michael Snyder <msnyder@vmware.com>
5844
5845 * psymtab.c (lookup_partial_symbol): Delete unused variable.
5846 (find_last_source_symtab_from_partial): Delete unused variable.
5847 * symfile.c (place_section): Delete unused variable.
5848 (default_symfile_offsets): Delete unused variable.
5849 (get_debug_link_info): Delete unused variable.
5850 (find_separate_debug_file_by_debuglink): Delete unused variable.
5851 (add_symbol_file_command): Delete unused variable.
5852 (symfile_find_segment_sections): Delete unused variable.
5853 * symmisc.c (free_symtab): Delete unused variable.
5854 (dump_symtab_1): Delete unused variable.
5855 * symtab.c (lookup_symbil_aux_quick): Delete unused variable.
5856 (find_pc_sect_symtab): Delete unused variable.
5857 (skip_prologue_using_lineinfo): Delete unused variable.
5858 (sources_info): Delete unused variable.
5859 (completion_list_add_name): Delete unused variable.
5860 (expand_line_sal): Delete unused variable.
5861
5862 * breakpoint.c (validate_commands_for_breakpoint):
5863 Delete unused variables.
5864 (insert_catchpoint): Delete unused variable.
5865 (update_watchpoint): Delete unused variable.
5866 (insert_bp_location): Delete unused variable.
5867 (insert_breakpoint_locations): Delete unused variable.
5868 (remove_breakpoint_1): Delete unused variable.
5869 (software_breakpoint_inserted_here_p): Delete unused variable.
5870 (watchpoints_triggered): Delete unused variable.
5871 (bpstat_check_watchpoint): Delete unused variable.
5872 (bpstat_stop_status): Delete unused variable.
5873 (print_one_breakpoint_location): Delete unused variable.
5874 (allocate_bp_location): Delete unused variable.
5875 (create_breakpoint): Delete unused variable.
5876 (watch_command_1): Delete unused variable.
5877 (catch_exception_command_1): Delete unused variable.
5878 (catch_ada_exception_command): Delete unused variable.
5879 (delete_breakpoint): Delete unused variable.
5880 (breakpoint_re_set_one): Delete unused variable.
5881 (do_enable_breakpoint): Delete unused variable.
5882
5883 2010-05-06 Pedro Alves <pedro@codesourcery.com>
5884
5885 * amd64-tdep.c: Include disasm.h.
5886 (amd64_insn_length_fprintf, amd64_insn_length_init_dis)
5887 (amd64_insn_length): Moved to disasm.c and renamed.
5888 (fixup_riprel): Adjust.
5889 * disasm.c (do_ui_file_delete): New.
5890 (gdb_insn_length): New.
5891 (gdb_buffered_insn_length_fprintf)
5892 (gdb_buffered_insn_length_init_dis)
5893 (gdb_buffered_insn_length): New, moved from amd64-tdep.c, and
5894 renamed.
5895 * disasm.h (gdb_insn_length): Declare.
5896 (gdb_buffered_insn_length): Declare.
5897
5898 2010-05-06 Pedro Alves <pedro@codesourcery.com>
5899
5900 * remote.c (clear_threads_parsing_context): New.
5901 (remote_threads_info): Delete unused null_cleanup. Install a
5902 cleanup to clear the threads_parsing_context in case parsing
5903 throws.
5904
5905 2010-05-05 Michael Snyder <msnyder@vmware.com>
5906
5907 * c-exp.y (parse_string_or_char): Delete unused variable.
5908 (c_lex): Delete unused variable.
5909 * cp-name-parser.y (cpname_lex): Delete unused variable.
5910 * ada-exp.y (find_primitive_type): Delete unused variable.
5911 (write_var_or_type): Delete unused variable.
5912 * jv-exp.y (java_parse): Delete unused variable.
5913 (push_expression_name): Delete unused variable.
5914 * p-exp.y (pascal_lex): Delete unused variable.
5915
5916 2010-05-05 Pedro Alves <pedro@codesourcery.com>
5917
5918 * remote.c (remote_threads_info): Really revert previous previous
5919 change.
5920
5921 2010-05-05 Michael Snyder <msnyder@vmware.com>
5922
5923 * elfread.c (elf_symtab_read): Delete unused variable.
5924 (find_separate_debug_file_by_buildid): Delete unused variables.
5925 (elf_symfile_read): Delete unused variable.
5926
5927 * coffread.c (coff_symfile_read): Delete unused variables.
5928
5929 * coff-pe-read.c (add_pe_exported_sym): Delete unused variable.
5930 (read_pe_exported_syms): Delete unused variable.
5931
5932 * stabsread.c (define_symbol): Delete unused variable.
5933
5934 * dwarf2read.c (read_type_comp_unit_head): Delete unused variable.
5935 (process_psymtab_comp_unit): Delete unused variable.
5936 (dwarf2_build_psymtabs_hard): Delete unused variable.
5937 (load_partial_comp_unit): Delete unused variable.
5938 (create_all_comp_units): Delete unused variable.
5939 (scan_partial_symbols): Delete unused variable.
5940 (add_partial_symbol): Delete unused variable.
5941 (add_partial_namespace): Delete unused variable.
5942 (add_partial_enumeration): Delete unused variable.
5943 (load_full_comp_unit): Delete unused variable.
5944 (process_full_comp_unit): Delete unused variable.
5945 (read_file_scope): Delete unused variable.
5946 (read_type_unit_scope): Delete unused variable.
5947 (process_structure_scope): Delete unused variable.
5948 (process_enumeration_scope): Delete unused variable.
5949 (read_tag_ptr_to_member_type): Delete unused variable.
5950 (read_typedef): Delete unused variable.
5951 (read_partial_die): Delete unused variable.
5952 (decode_locdesc): Delete unused variable.
5953 (zeroed_partial_die): Delete unused global variable.
5954
5955 * tui/tui-interp.c (_initialize_tui_interp):
5956 Delete unused variable.
5957 * tui/tui-regs.c tui_display_registers_from):
5958 Delete unused variable.
5959 (tui_check_register_values): Delete unused variable.
5960 (tui_register_format): Delete unused variable.
5961 * tui/tui-win.c (_initialize_tui_win): Delete unused variable.
5962 * tui/tui-windata.c (tui_display_data_from_line):
5963 Delete unused variables.
5964 (tui_vertical_data_scroll): Delete unused variables.
5965
5966 2010-05-05 Michael Snyder <msnyder@vmware.com>
5967
5968 * remote.c (remote_threads_info): Revert questionable part of
5969 the previous change.
5970
5971 2010-05-05 Michael Snyder <msnyder@vmware.com>
5972
5973 * mi/mi-out.c (mi_table_begin): Delete unused variable.
5974 * mi/mi-cmd-var.c (print_varobj): Delete unused variable.
5975 (mi_cmd_var_list_children): Delete unused variable.
5976 (varobj_update_one): Delete unused variable.
5977 * mi/mi-cmd-break.c (mi_cmd_break_insert): Delete unused variables.
5978 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals):
5979 Delete unused variable.
5980 (mi_cmd_stack_list_variables): Delete unused variable.
5981 (list_args_or_locals): Delete unused variable.
5982 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file):
5983 Delete unused variables.
5984 (mi_cmd_file_list_exec_source_files): Delete unused variable.
5985 * mi/mi-cmd-target.c (mi_cmd_target_file_delete):
5986 Delete unused variable.
5987 * mi/mi-interp.c (mi_interpreter_exec): Delete unused variable.
5988 (mi_cmd_interpreter_exec): Delete unused variable.
5989 (mi_on_normal_stop): Delete unused variable.
5990 * mi/mi-main.c (run_one_inferior): Delete unused variable.
5991 (print_one_inferior): Delete unused variables.
5992 (mi_execute_command): Delete unused variable.
5993 (mi_cmd_execute): Delete unused variable.
5994 (timestamp): Delete unused variable.
5995
5996 * cli/cli-dump.c (dump_memory_to_file): Delete unused variable.
5997 (restore_binary_file): Delete unused variable.
5998 * cli/cli-decode.c (deprecated_cmd_warning): Delete unused variables.
5999 * cli/cli-script.c (define_command): Delete unused variables.
6000 (recurse_read_control_structure): Delete unused variable.
6001 (script_from_file): Delete unused variable.
6002 * cli/cli-cmds.c (complete_command): Delete unused variable.
6003 (disassemble_command): Delete unused variable.
6004
6005 * ax-gdb.c (gen_struct_elt_for_reference): Delete unused variables.
6006 * tracepoint.c (delete_trace_variable_command):
6007 Delete unused variables.
6008 (encode_actions_1): Delete unused variables.
6009 (start_tracing): Delete unused variable.
6010 (trace_status_mi): Delete unused variable.
6011 (tfind_1): Delete unused variable.
6012 (trace_find_pc_command): Delete unused variable.
6013 (trace_find_line_command): Delete unused variables.
6014 (trace_find_range_command): Delete unused variables.
6015 (trace_find_outside_command): Delete unused variables.
6016 (parse_tracepoint_definition): Delete unused variables.
6017 (tfile_fetch_registers): Delete unused variable.
6018
6019 * dcache.c (dcache_init): Delete unused variable.
6020 (dcache_info): Delete unused variable.
6021
6022 * remote.c (remote_threads_info): Delete unused variable.
6023 (process_stop_reply) :Delete unused variable.
6024 (remote_get_trace_status): Delete unused variables.
6025
6026 * linux-thread-db.c (add_thread_db_info): Delete unused variable.
6027 (thread_from_lwp): Delete unused variable.
6028 (enable_thread_event_reporting): Delete unused variable.
6029 (check_for_thread_db): Delete unused variables.
6030 (thread_db_find_new_threads_2): Delete unused variable.
6031
6032 * linux-fork.c (info_checkpoints_command): Delete unused variables.
6033 (checkpoint_command): Delete unused variable.
6034 (linux_fork_context): Delete unused variables.
6035
6036 * linux-nat.c (linux_parent_pid): Delete unused global variable.
6037 (linux_tracefork_child): Delete unused variable.
6038 (linux_child_follow_fork): Delete unused variable.
6039 (linux_nat_detach): Delete unused variable.
6040 (linux_handle_extended_wait): Delete unused variable.
6041 (linux_nat_has_pending_sigint): Delete unused variable.
6042 (linux_nat_find_memory_regions): Delete unused variable.
6043 (linux_nat_make_corefile_notes): Delete unused variables.
6044 (linux_nat_info_proc_cmd): Delete unused variable.
6045 (linux_proc_pending_signals): Delete unused variable.
6046 (linux_nat_stop_lwp): Delete unused variables.
6047 (_initialize_linux_nat): Delete unused variable.
6048
6049 * ser-pipe.c (pipe_ops): Delete unused global variable.
6050
6051 * linux-record.c (record_linux_system_call):
6052 Delete unused variables.
6053
6054 * corelow.c (core_xfer_partial): Delete unused variables.
6055
6056 * solib-svr4.c (find_program_interpreter): Delete unused variable.
6057 (svr4_solib_create_inferior_hook): Add ifdef around
6058 conditionally-used variable declarations.
6059
6060 * solib.c (solib_find): Delete unused variable.
6061 (free_so_symbols): Delete unused variable.
6062 (info_sharedlibrary_command): Delete unused variable.
6063 (reload_shared_libraries_1): Delete unused variable.
6064 (_initialize_solib): Delete unused variable.
6065
6066 * i386-tdep.c (i386_supply_xstateregset) Delete unused variable.
6067 (i386_collect_xstateregset): Delete unused variable.
6068 * i387-tdep.c (i387_print_float_info): Delete unused variable.
6069
6070 * features/i386/i386-mmx.c (initialize_tdesc_i386_mmx):
6071 Delete unused variable 'type'.
6072
6073 2010-05-05 Joel Brobecker <brobecker@adacore.com>
6074
6075 * gdbtypes.h (MAX_OF_TYPE, MIN_OF_TYPE): Delete macros. *
6076 ada-lang.c: Remove comment mentioning these macros.
6077 * m2-exp.y: Delete commented out code.
6078
6079 2010-05-05 Joel Brobecker <brobecker@adacore.com>
6080
6081 * sparc-tdep.c (sparc_structure_or_union_p): Return non-zero
6082 for array types.
6083 * sparc64-tdep.c (sparc64_structure_or_union_p): Likewise.
6084
6085 2010-05-04 Pierre Muller <muller@ics.u-strasbg.fr>
6086
6087 ARI fix: Remove ATTRIBUTE_UNUSED throughout.
6088 * arm-linux-tdep.c (arm_linux_cleanup_svc): Remove
6089 ATTRIBUTE_UNUSED.
6090 (cleanup_kernel_helper_return): Likewise.
6091 * arm-tdep.c (copy_unmodified): Likewise.
6092 (copy_preload): Likewise.
6093 (copy_copro_load_store): Likewise.
6094 (cleanup_branch): Likewise.
6095 (copy_b_bl_blx): Likewise.
6096 (copy_bx_blx_reg): Likewise.
6097 (copy_alu_imm): Likewise.
6098 (copy_alu_reg): Likewise.
6099 (copy_alu_shifted_reg): Likewise.
6100 (cleanup_load): Likewise.
6101 (cleanup_store): Likewise.
6102 (cleanup_block_load_pc): Likewise.
6103 (cleanup_svc): Likewise.
6104 (copy_undef): Likewise.
6105 (copy_unpred): Likewise.
6106 * remote.c (register_remote_support_xml): Likewise.
6107
6108 2010-05-05 Hui Zhu <teawater@gmail.com>
6109
6110 * gdbarch.h (gdbarch_has_dos_based_file_system): Update comment.
6111
6112 2010-05-04 Mark Kettenis <kettenis@gnu.org>
6113
6114 * remote.c (register_remote_support_xml)
6115 (remote_query_supported_append, remote_query_supported): Add cast
6116 to NULL used as sentinel.
6117 * tracepoint.c (tvariables_info_1): Likewise.
6118 * utils.c (add_internal_problem_command): Likewise.
6119
6120 2010-05-04 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
6121
6122 * dwarf2loc.c (read_pieced_value, write_pieced_value,
6123 dwarf2_evaluate_loc_desc): Handle not being able to access DWARF
6124 registers gracefully.
6125
6126 2010-05-04 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
6127
6128 * exec.c (print_section_info): Display entry point without arch
6129 specific parts.
6130
6131 2010-05-04 Pierre Muller <muller@ics.u-strasbg.fr>
6132
6133 PR exp/11349.
6134 * printcmd.c (x_command): Only dereference once implicitly for
6135 TYPE_CODE_REF.
6136
6137 2010-05-03 Doug Evans <dje@google.com>
6138
6139 * event-loop.c (gdb_timer): Delete unused global.
6140 (create_timer): Update.
6141
6142 2010-05-03 Jan Kratochvil <jan.kratochvil@redhat.com>
6143
6144 * cp-namespace.c (cp_lookup_symbol_imports): Support ALIAS for the
6145 CURRENT->DECLARATION case.
6146 * cp-support.h (struct using_direct): Provide extended comment.
6147
6148 2010-05-03 Mark Kettenis <kettenis@gnu.org>
6149
6150 * hppaobsd-tdep.c (HPPAOBSD_SIZEOF_GREGS): Renamed from
6151 HPPABSD_SIZEOF_GREGS.
6152 (HPPAOBSD_SIZEOF_FPREGS): New define.
6153 (hppaobsd_supply_gregset): Renamed from hppabsd_supply_gregset.
6154 (hppaobsd_supply_fpregset): New function.
6155 (hppaobsd_gregset): Renamed from hppabsd_gregset.
6156 (hppaobsd_fpregset): New variable.
6157 (hppaobsd_regset_from_core_section): Handle floating-point registers.
6158 (_initialize_hppabsd_tdep): Remove spurious blank line.
6159
6160 2010-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
6161
6162 PR pascal/11349.
6163 * p-valprint.c (pascal_value_print): Always dereference a value with
6164 type code TYPE_CODE_REF.
6165
6166 2010-05-03 Pedro Alves <pedro@codesourcery.com>
6167
6168 * remote.c (remote_notice_signals): New.
6169 (remote_start_remote): In non-stop mode, update the remote end on
6170 which signals it can silently pass.
6171 (init_remote_ops): Install remote_notice_signals.
6172
6173 2010-05-02 Jan Kratochvil <jan.kratochvil@redhat.com>
6174
6175 * cli/cli-cmds.h (error_no_arg): Remove. Move the comment ...
6176 * command.h (error_no_arg): ... here. Remove NORETURN, change
6177 ATTR_NORETURN to ATTRIBUTE_NORETURN.
6178 * defs.h (NORETURN, ATTR_NORETURN): Remove.
6179 (perror_with_name, verror, error, error_stream, vfatal, fatal)
6180 (internal_verror, internal_error, nomem): Remove NORETURN, change
6181 ATTR_NORETURN to ATTRIBUTE_NORETURN.
6182 * exceptions.c (throw_exception, deprecated_throw_reason, throw_verror)
6183 (throw_vfatal, throw_error): Remove NORETURN.
6184 (throw_it): Remove NORETURN, change ATTR_NORETURN to ATTRIBUTE_NORETURN.
6185 * exceptions.h (throw_exception, throw_verror, throw_vfatal)
6186 (throw_error, deprecated_throw_reason): Remove NORETURN, change
6187 ATTR_NORETURN to ATTRIBUTE_NORETURN.
6188 * linespec.c (cplusplus_error): Remove NORETURN, change ATTR_NORETURN
6189 to ATTRIBUTE_NORETURN for prototype, for the definition only remove
6190 NORETURN.
6191 * remote-mips.c (mips_error): Change NORETURN to ATTRIBUTE_NORETURN.
6192 * remote-sim.c (gdb_os_error): Change ATTR_NORETURN to
6193 ATTRIBUTE_NORETURN.
6194 * target.c (tcomplain): Likewise.
6195 * target.h (noprocess): Remove NORETURN, change ATTR_NORETURN to
6196 ATTRIBUTE_NORETURN.
6197 * utils.c (verror, error, vfatal, fatal, error_stream, internal_verror)
6198 (internal_error, perror_with_name, nomem): Remove NORETURN.
6199 * xml-support.h (gdb_xml_error): Change ATTR_NORETURN to
6200 ATTRIBUTE_NORETURN.
6201
6202 2010-05-02 Jan Kratochvil <jan.kratochvil@redhat.com>
6203
6204 * ada-lang.c (lim_warning): Change ATTR_FORMAT to ATTRIBUTE_PRINTF.
6205 * amd64-tdep.c (amd64_insn_length_fprintf): Likewise.
6206 * cli-out.c (cli_field_fmt): New ATTRIBUTE_PRINTF.
6207 (cli_message, out_field_fmt): Change ATTR_FORMAT to ATTRIBUTE_PRINTF.
6208 * complaints.c (find_complaint): New ATTRIBUTE_PRINTF.
6209 (vcomplaint): Change ATTR_FORMAT to ATTRIBUTE_PRINTF.
6210 * complaints.h (complaint, internal_complaint): Likewise.
6211 * defs.h: Change ATTR_FORMAT to ATTRIBUTE_PRINTF in the top comment.
6212 (ATTR_FORMAT): Remove.
6213 (query, nquery, yquery, vprintf_filtered, vfprintf_filtered)
6214 (fprintf_filtered, fprintfi_filtered, printf_filtered, printfi_filtered)
6215 (vprintf_unfiltered, vfprintf_unfiltered, fprintf_unfiltered)
6216 (printf_unfiltered, xasprintf, xvasprintf, xstrprintf, xstrvprintf)
6217 (xsnprintf, verror, error, vfatal, fatal, internal_verror)
6218 (internal_error, internal_vwarning, internal_warning, warning)
6219 (vwarning): Change ATTR_FORMAT to ATTRIBUTE_PRINTF.
6220 * disasm.c (fprintf_disasm): Likewise.
6221 * exceptions.c (throw_it): Likewise.
6222 * exceptions.h (exception_fprintf, throw_verror, throw_vfatal)
6223 (throw_error): Likewise.
6224 * language.h (type_error, range_error): Likewise.
6225 * linespec.c (cplusplus_error): Likewise.
6226 * mi/mi-interp.c (mi_interp_query_hook): Likewise.
6227 * mi/mi-out.c (mi_field_fmt, mi_message): Likewise.
6228 * monitor.c (monitor_debug): Likewise.
6229 * parser-defs.h (parser_fprintf): Likewise.
6230 * serial.h (serial_printf): Likewise.
6231 * tui/tui-hooks.c (tui_query_hook): Likewise.
6232 * ui-out.c (default_field_fmt, default_message, uo_field_fmt)
6233 (uo_message): Likewise.
6234 * ui-out.h (ui_out_field_fmt, ui_out_message): Likewise.
6235 * utils.c (vfprintf_maybe_filtered, internal_vproblem, defaulted_query):
6236 Likewise.
6237 * xml-support.h (gdb_xml_debug, gdb_xml_error): Likewise.
6238
6239 2010-05-02 Pedro Alves <pedro@codesourcery.com>
6240
6241 * cli-out.c (cli_table_begin, cli_table_body, cli_table_end)
6242 (cli_table_header, cli_begin, cli_end, cli_field_int)
6243 (cli_field_skip, cli_field_string, cli_field_fmt, cli_spaces)
6244 (cli_text, cli_message, cli_wrap_hint, cli_flush, cli_redirect):
6245 Delete forward declarations.
6246 (cli_ui_out_impl): Move below the callbacks.
6247 (_initialize_cli_out): Delete.
6248
6249 2010-05-02 Pedro Alves <pedro@codesourcery.com>
6250
6251 * README: Use consistent `GDB' and `GDBserver' spellings.
6252
6253 2010-05-02 Jan Kratochvil <jan.kratochvil@redhat.com>
6254
6255 * cli/cli-dump.h (parse_and_eval_with_error): Remove the declaration.
6256
6257 2010-05-01 Pedro Alves <pedro@codesourcery.com>
6258
6259 * infrun.c (prepare_for_detach): In non-stop, context switch to
6260 the thread that got the event before handling the event.
6261
6262 2010-04-30 Tom Tromey <tromey@redhat.com>
6263
6264 * symtab.c (symbol_set_names): Fix typo.
6265
6266 2010-04-30 Pierre Muller <muller@ics.u-strasbg.fr>
6267
6268 * python/py-param.c (parm_constants): Avoid ARI warning
6269 by adding ARI comment.
6270 (parmpy_init): Likewise.
6271
6272 2010-04-30 Pierre Muller <muller@ics.u-strasbg.fr>
6273
6274 * windows-tdep.c (windows_get_tlb_type): Remember last GDBARCH
6275 and created type for re-use.
6276
6277 2010-04-30 Pierre Muller <muller@ics.u-strasbg.fr>
6278
6279 * NEWS: Mention gdbserver support for x86_64 Windows 64-bit.
6280
6281 2010-04-29 Doug Evans <dje@google.com>
6282
6283 * ser-base.h (reschedule): Delete prototype.
6284 * ser-base.c (reschedule): Make static.
6285
6286 2010-04-29 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
6287
6288 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Remove.
6289 (ARM_LINUX_JB_PC_FPA): Add, offset of PC in longjmp buffer for FPA.
6290 (ARM_LINUX_JB_PC_EABI): Add, offset of PC in longjmp buffer for
6291 EABI.
6292 (arm_linux_init_abi): Set up JB_PC field dependent on FP model in
6293 use.
6294
6295 2010-04-29 Pedro Alves <pedro@codesourcery.com>
6296
6297 PR gdb/11557
6298
6299 * regcache.c (registers_changed): Rename to ...
6300 (registers_changed_ptid): ... this, and only delete register cache
6301 entries matching the ptid filter argument.
6302 (registers_changed): Reimplement on top of registers_changed_ptid.
6303 * regcache.h (registers_changed_ptid): Declare.
6304 * target.c (target_resume): Flush register caches.
6305
6306 2010-04-29 Phil Muldoon <pmuldoon@redhat.com>
6307 Tom Tromey <tromey@redhat.com>
6308 Thiago Jung Bauermann <bauerman@br.ibm.com>
6309
6310 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-parameter.
6311 (SUBDIR_PYTHON_SRCS): Likewise.
6312 (py-parameter.o): New rule.
6313 * python/py-parameter.c: New file.
6314 * python/python-internal.h (gdbpy_initialize_parameter)
6315 (gdbpy_parameter, gdbpy_parameter_value)
6316 (gdbpy_parse_command_name): Declare.
6317 * python/py-cmd.c (parse_command_name): Rename to
6318 gdbpy_parse_command_name.
6319 (gdbpy_parse_command_name): Accept a starting list parameter and
6320 use over cmdlist.
6321 (cmdpy_init): Use gdbpy_parse_command_name.
6322 * python/python.c (parameter_to_python): Rename to
6323 gdbpy_parameter_to_python. Accept enum var_types and value.
6324 (gdbpy_parameter): Use gdbpy_parameter_value.
6325 (_initialize_python): Call gdbpy_initialize_parameters.
6326
6327 2010-04-29 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
6328
6329 * MAINTAINERS: Add myself for write after approval privileges.
6330
6331 2010-04-29 Mihail Zenkov <mihail.zenkov@gmail.com>
6332
6333 D language support.
6334 * Makefile.in (SFILES): Add d-lang.c d-valprint.c.
6335 (COMMON_OBS): Add d-lang.o d-valprint.o.
6336 (HFILES_NO_SRCDIR): Add d-lang.h.
6337 * NEWS: Mention D language support.
6338 * c-lang.c (c_emit_char, exp_descriptor_c): Make public.
6339 * c-lang.h (c_emit_char, exp_descriptor_c): Add declaration.
6340 * d-lang.c: New file.
6341 * d-lang.h: New file.
6342 * d-valprint.c: New file.
6343 * defs.h (enum language): Add language_d.
6344 * dwarf2read.c (set_cu_language): Add DW_LANG_D.
6345 * language.c (binop_result_type, integral_type, character_type)
6346 (string_type, boolean_type, structured_type): Add language_d.
6347 * symfile.c (init_filename_language_table): Add language_d.
6348 * symtab.c: Include d-lang.h.
6349 (symbol_init_language_specific, symbol_find_demangled_name)
6350 (symbol_natural_name, lookup_symbol_in_language)
6351 (symbol_demangled_name, symbol_matches_domain): Add language_d.
6352
6353 2010-04-27 Joel Brobecker <brobecker@adacore.com>
6354
6355 * solib-svr4.c (solib_svr4_r_map): Expand function description.
6356
6357 2010-04-27 Joel Brobecker <brobecker@adacore.com>
6358
6359 * symfile.c (init_filename_language_table): Register .dg files
6360 with language_ada.
6361
6362 2010-04-27 Joel Brobecker <brobecker@adacore.com>
6363
6364 * gdbtypes.h (struct main_type): Expand comment about target_type
6365 field.
6366
6367 2010-04-27 Pedro Alves <pedro@codesourcery.com>
6368 Tristan Gingold <gingold@adacore.com>
6369
6370 * symfile.c (reread_symbols): Also search for file in libraries.
6371 Update comment.
6372
6373 2010-04-27 Joel Brobecker <brobecker@adacore.com>
6374
6375 * configure.tgt: Treat x86-lynxos targets as x86 bareboard targets
6376 in terms of configuration.
6377
6378 2010-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
6379
6380 * objfiles.c: Include solist.h.
6381 (free_all_objfiles): New variable so. Check stale solist objfiles.
6382 * symfile.c (symbol_file_clear): Swap the order of free_all_objfiles
6383 and no_shared_libraries.
6384
6385 2010-04-27 Joel Brobecker <brobecker@adacore.com>
6386
6387 ARI warning fix.
6388 * python/py-auto-load.c (source_section_scripts): Remove trailing
6389 new-line in i18n string.
6390
6391 2010-04-26 Doug Evans <dje@google.com>
6392
6393 * serial.c (serial_write): Handle serial_debug_p akin to serial_read.
6394
6395 2010-04-26 Tom Tromey <tromey@redhat.com>
6396
6397 * cli/cli-decode.c (complete_on_cmdlist): Make two passes over the
6398 command list.
6399
6400 2010-04-26 Pierre Muller <muller@ics.u-strasbg.fr>
6401
6402 Removal of config/i386/nm-i386sol2.h native configuration file.
6403 * config/i386/nm-i386sol2.h: Remove file.
6404 * config/i386/i386sol2.mh: Remove NAT_FILE definition.
6405 * config/i386/sol2-64.mh: Idem.
6406 * config/djgpp/fnchange.lst: Remove reference to that file.
6407 * Makefile.in (HFILES_NO_SRCDIR): Idem.
6408
6409 2010-04-26 Pierre Muller <muller@ics.u-strasbg.fr>
6410
6411 PR breakpoints/11531.
6412 * config/i386/nm-i386sol2.h (CANNOT_STEP_HW_WATCHPOINTS): Remove
6413 macro definition and related comment.
6414 * infrun.c (CANNOT_STEP_HW_WATCHPOINTS): Remove macro.
6415 (resume): Remove code and comment related to this macro.
6416
6417 2010-04-26 Jan Kratochvil <jan.kratochvil@redhat.com>
6418
6419 * cp-namespace.c (cp_lookup_symbol_in_namespace): Fix alloca size.
6420 Fix whitespace.
6421
6422 2010-04-24 Pedro Alves <pedro@codesourcery.com>
6423
6424 * defs.h: Adjust comment.
6425 * filesystem.h, filesystem.c: New files.
6426 * Makefile.in (SFILES): Add filesystem.c.
6427 (COMMON_OBS): Add filesystem.o.
6428 * solib.c (solib_find): Handle DOS-based filesystems. Handle
6429 different target and host path flavours.
6430 * arm-symbian-tdep.c (arm_symbian_init_abi): Set
6431 has_dos_based_file_system on the gdbarch.
6432 * arm-wince-tdep.c (arm_wince_init_abi): Ditto.
6433 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Ditto.
6434 * i386-tdep.c (i386_go32_init_abi): Ditto.
6435 * gdbarch.sh (has_dos_based_file_system): New.
6436 * gdbarch.h, gdbarch.c: Regenerate.
6437 * NEWS: Mention improved support for remote targets with DOS-based
6438 filesystems. Mention new `set/show target-file-system-kind'
6439 commands.
6440
6441 2010-04-23 Stan Shebs <stan@codesourcery.com>
6442
6443 * ax.h (struct agent_expr): Merge in agent_reqs fields, add some
6444 comments.
6445 (struct agent_reqs): Remove.
6446 (ax_reg_mask): Declare.
6447 * ax-general.c (new_agent_expr): Add gdbarch argument, set new fields.
6448 (free_agent_expr): Free reg_mask.
6449 (ax_print): Add scope and register mask info.
6450 (ax_reqs): Remove agent_reqs argument, use agent expression
6451 fields, and move part of register mask computation to...
6452 (ax_reg_mask): New function.
6453 * ax-gdb.c (gen_trace_static_fields): Call it.
6454 (gen_traced_pop): Ditto.
6455 (is_nontrivial_conversion): Add dummy gdbarch to new_agent_expr.
6456 (gen_trace_for_var): Pass gdbarch to new_agent_expr.
6457 (gen_trace_for_expr): Ditto, and clear optimized_out flag.
6458 (gen_eval_for_expr): Ditto, and require an rvalue.
6459 (agent_command): Call ax_reqs.
6460 (agent_eval_command): Ditto.
6461 * tracepoint.c (report_agent_reqs_errors): Use agent expression fields.
6462 (validate_action_line): Ditto.
6463 (collect_symbol): Ditto.
6464 (encode_actions_1): Ditto.
6465
6466 2010-04-23 Daniel Jacobowitz <dan@codesourcery.com>
6467 Paul Pluzhnikov <ppluzhnikov@google.com>
6468 Jan Kratochvil <jan.kratochvil@redhat.com>
6469
6470 Fix deadlock on looped list of loaded shared objects.
6471 * solib-svr4.c (LM_PREV): New function.
6472 (IGNORE_FIRST_LINK_MAP_ENTRY): Use it.
6473 (svr4_current_sos): Check for correct l_prev. New variables prev_lm
6474 and next_lm. Clear prev_lm for solib_svr4_r_ldsomap.
6475 * config/djgpp/fnchange.lst: Add translation for solib-corrupted.exp.
6476
6477 2010-04-23 Doug Evans <dje@google.com>
6478
6479 * configure.ac (CONFIG_SRCS): Add py-auto-load.o even if not using
6480 python.
6481 * configure: Regenerate.
6482 * main.c: #include "python/python.h".
6483 (captured_main): Defer loading auto-loaded scripts until after
6484 local_gdbinit has been sourced.
6485 * python/py-auto-load.c (gdbpy_global_auto_load): New global.
6486 (load_auto_scripts_for_objfile): New function.
6487 (auto_load_new_objfile): Call it.
6488 * python/python.h (gdbpy_global_auto_load): Declare.
6489 (load_auto_scripts_for_objfile): Declare.
6490
6491 Add support for auto-loading scripts from .debug_gdb_scripts section.
6492 * NEWS: Add entry for .debug_gdb_scripts.
6493 * Makefile.in SUBDIR_PYTHON_OBS): Add py-auto-load.o.
6494 (SUBDIR_PYTHON_SRCS): Add py-auto-load.c.
6495 (py-auto-load.o): New rule.
6496 * cli/cli-cmds.c (find_and_open_script): Make externally visible.
6497 * cli/cli-cmds.h (find_and_open_script): Update prototype.
6498 * python/py-auto-load.c: New file.
6499 * python/python-internal.h: #include <stdio.h>.
6500 (set_python_list, show_python_list): Declare.
6501 (gdbpy_initialize_auto_load): Declare.
6502 (source_python_script_for_objfile): Declare.
6503 * python/python.c: Remove #include of observer.h.
6504 (gdbpy_auto_load): Moved to py-auto-load.c.
6505 (GDBPY_AUTO_FILENAME): Ditto.
6506 (gdbpy_new_objfile): Delete.
6507 (source_python_script_for_objfile): New function.
6508 (set_python_list, show_python_list): Make externally visible.
6509 (_initialize_python): Move "auto-load" command to py-auto-load.c
6510 and observer_attach_new_objfile to py-auto-load.c.
6511
6512 2010-04-23 Jerome Guitton <guitton@adacore.com>
6513
6514 * alpha-tdep.c (INSN_OPCODE, MEM_RA, MEM_RB, MEM_DISP, BR_RA)
6515 (OPR_FUNCTION, OPR_HAS_IMMEDIATE, OPR_RA, OPR_RC, OPR_LIT): New macros.
6516 (lda_opcode, stq_opcode, bne_opcode, subq_opcode, subq_function):
6517 New constants.
6518 (alpha_heuristic_analyze_probing_loop): New function.
6519 (alpha_heuristic_frame_unwind_cache): In the prologue analysis, detect
6520 and handle cases when a stack probe loop is generated.
6521 * alpha-mdebug-tdep.c (alpha_mdebug_frameless): New function.
6522 (alpha_mdebug_max_frame_size_exceeded): New function.
6523 (alpha_mdebug_after_prologue): Use alpha_mdebug_frameless.
6524 (alpha_mdebug_frame_sniffer, alpha_mdebug_frame_base_sniffer):
6525 Return 0 when the maximum debuggable frame size has been exceeded.
6526
6527 2010-04-23 Joel Brobecker <brobecker@adacore.com>
6528
6529 Fix ARI warning.
6530 * ppc-linux-nat.c (booke_cmp_hw_point): Do not mark inline.
6531
6532 2010-04-20 Chris Moller <cmoller@redhat.com>
6533
6534 PR 10179
6535
6536 * symtab.c (rbreak_command): Added code to include a filename
6537 specification in the rbreak argument.
6538 * NEWS: Added a brief description of filename-qualified rbreak.
6539
6540 2010-04-22 Jan Kratochvil <jan.kratochvil@redhat.com>
6541
6542 Fix crashes on dangling display expressions.
6543 * ada-lang.c (ada_operator_check): New function.
6544 (ada_exp_descriptor): Fill-in the field operator_check.
6545 * c-lang.c (exp_descriptor_c): Fill-in the field operator_check.
6546 * jv-lang.c (exp_descriptor_java): Likewise.
6547 * m2-lang.c (exp_descriptor_modula2): Likewise.
6548 * scm-lang.c (exp_descriptor_scm): Likewise.
6549 * parse.c (exp_descriptor_standard): Likewise.
6550 (operator_check_standard): New function.
6551 (exp_iterate, exp_uses_objfile_iter, exp_uses_objfile): New functions.
6552 * parser-defs.h (struct exp_descriptor): New field operator_check.
6553 (operator_check_standard, exp_uses_objfile): New declarations.
6554 * printcmd.c: Remove the inclusion of solib.h.
6555 (display_uses_solib_p): Remove the function.
6556 (clear_dangling_display_expressions): Call lookup_objfile_from_block
6557 and exp_uses_objfile instead of display_uses_solib_p.
6558 * solist.h (struct so_list) <objfile>: New comment.
6559 * symtab.c (lookup_objfile_from_block): Remove the static qualifier.
6560 * symtab.h (lookup_objfile_from_block): New declaration.
6561 (struct general_symbol_info) <obj_section>: Extend the comment.
6562
6563 2010-04-22 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
6564 Thiago Jung Bauermann <bauerman@br.ibm.com>
6565
6566 * ppc-linux-nat.c (PTRACE_GET_DEBUGREG): Update comment.
6567 (PPC_PTRACE_GETWDBGINFO, PPC_PTRACE_SETHWDEBUG, PPC_PTRACE_DELHWDEBUG,
6568 ppc_debug_info, PPC_DEBUG_FEATURE_INSN_BP_RANGE,
6569 PPC_DEBUG_FEATURE_INSN_BP_MASK, PPC_DEBUG_FEATURE_DATA_BP_RANGE,
6570 PPC_DEBUG_FEATURE_DATA_BP_MASK, ppc_hw_breakpoint,
6571 PPC_BREAKPOINT_TRIGGER_EXECUTE, PPC_BREAKPOINT_TRIGGER READ,
6572 PPC_BREAKPOINT_TRIGGER_WRITE, PPC_BREAKPOINT_TRIGGER_RW,
6573 PPC_BREAKPOINT_MODE_EXACT PPC_BREAKPOINT_MODE_RANGE_INCLUSIVE,
6574 PPC_BREAKPOINT_MODE_RANGE_EXCLUSIVE, PPC_BREAKPOINT_MODE_MASK,
6575 PPC_BREAKPOINT_CONDITION_NONE, PPC_BREAKPOINT_CONDITION_AND,
6576 PPC_BREAKPOINT_CONDITION_EXACT, PPC_BREAKPOINT_CONDITION_OR,
6577 PPC_BREAKPOINT_CONDITION_AND_OR, PPC_BREAKPOINT_CONDITION_BE_ALL,
6578 PPC_BREAKPOINT_CONDITION_BE_SHIFT, PPC_BREAKPOINT_CONDITION_BE):
6579 Define, in case <ptrace.h> doesn't provide it.
6580 (booke_debug_info): New variable.
6581 (max_slots_number): Ditto.
6582 (hw_break_tuple): New struct.
6583 (thread_points): Ditto.
6584 (ppc_threads): New variable.
6585 (PPC_DEBUG_CURRENT_VERSION): New define.
6586 (have_ptrace_new_debug_booke): New function.
6587 (ppc_linux_check_watch_resources): Renamed to ...
6588 (ppc_linux_can_use_hw_breakpoint): ... this. Handle BookE processors.
6589 (ppc_linux_region_ok_for_hw_watchpoint): Handle BookE processors.
6590 (booke_cmp_hw_point): New function.
6591 (booke_find_thread_points_by_tid): Ditto.
6592 (booke_insert_point): Ditto.
6593 (booke_remove_point): Ditto.
6594 (ppc_linux_insert_hw_breakpoint): Ditto.
6595 (ppc_linux_remove_hw_breakpoint): Ditto.
6596 (get_trigger_type): Ditto.
6597 (ppc_linux_insert_watchpoint): Handle BookE processors.
6598 (ppc_linux_remove_watchpoint): Ditto.
6599 (ppc_linux_new_thread): Ditto.
6600 (ppc_linux_thread_exit): New function..
6601 (ppc_linux_stopped_data_address): Handle BookE processors.
6602 (ppc_linux_watchpoint_addr_within_range): Ditto.
6603 (_initialize_ppc_linux_nat): Initialize to_insert_hw_breakpoint and
6604 to_remove_hw_breakpoint fields of the target operations struct.
6605 Add observe for the thread_exit event.
6606
6607 2010-04-22 H.J. Lu <hongjiu.lu@intel.com>
6608
6609 * i386-linux-nat.c (regmap): Removed.
6610 (fetch_register): Replace regmap with
6611 i386_linux_gregset_reg_offset.
6612 (store_register): Likewise.
6613 (supply_gregset): Likewise.
6614 (fill_gregset): Likewise.
6615
6616 * i386-linux-tdep.c (i386_linux_gregset_reg_offset): Make it
6617 global.
6618
6619 * i386-linux-tdep.h (i386_linux_gregset_reg_offset): New.
6620
6621 2010-04-22 Chris Moller <cmoller@redhat.com>
6622
6623 * cp-valprint.c (cp_print_value_fields): Replaced obstack_base()
6624 method of popping recursion-detection stack with a method based on
6625 obstack_object_size(). (Similar to the PR9167 patch below, but for
6626 the static array obstack rather than the static member obstack.)
6627
6628 2010-04-22 H.J. Lu <hongjiu.lu@intel.com>
6629
6630 * amd64-linux-nat.c (amd64_linux_gregset64_reg_offset): Removed.
6631 (_initialize_amd64_linux_nat): Replace
6632 amd64_linux_gregset64_reg_offset with
6633 amd64_linux_gregset_reg_offset.
6634
6635 * amd64-linux-tdep.c (amd64_linux_gregset_reg_offset): Make it
6636 global.
6637
6638 * amd64-tdep.h (amd64_linux_gregset_reg_offset): New.
6639
6640 2010-04-22 Pierre Muller <muller@ics.u-strasbg.fr>
6641
6642 PR stabs/11479.
6643 * stabsread.c (set_length_in_type_chain): New function.
6644 (read_struct_type): Call set_length_in_type_chain function.
6645 (read_enum_type): Idem.
6646
6647 2010-04-21 Stan Shebs <stan@codesourcery.com>
6648 Nathan Sidwell <nathan@codesourcery.com>
6649
6650 * tracepoint.c (trace_save): Open in binary mode.
6651
6652 2010-04-22 Pierre Muller <muller@ics.u-strasbg.fr>
6653
6654 * gdbtypes.h (builtin_type): Add builtin_char16 and builtin_char32
6655 fields.
6656 * gdbtypes.c (gdbtypes_post_init): Set builtin_char16 and
6657 builtin_char32 fields.
6658 * printcmd.c (decode_format): Set char size to '\0'
6659 for strings unless explicit size is given.
6660 (print_formatted): Correct calculation of NEXT_ADDRESS
6661 for 16 or 32 bit strings.
6662 (do_examine): Do not force byte size for strings.
6663 Use builtin_char16 and builtin_char32 types to display
6664 16 or 32 bit-wide strings.
6665 (x_command): Set LAST_SIZE to 'b' for string type.
6666
6667 2010-04-21 H.J. Lu <hongjiu.lu@intel.com>
6668
6669 PR corefiles/11523
6670 * amd64-linux-tdep.c (amd64_linux_core_read_description): Check
6671 XCR0 first.
6672
6673 * i386-linux-tdep.c (i386_linux_core_read_xcr0): Return 0 if
6674 there is no .reg-xstate section.
6675 (i386_linux_core_read_description): Check XCR0 first.
6676
6677 2010-04-21 Mike Frysinger <vapier@gentoo.org>
6678
6679 * gdb/sparc-tdep.c (sparc32_store_return_value): Add gdb_assert ()
6680 for len <= 8.
6681
6682 2010-04-21 Chris Moller <cmoller@redhat.com>
6683
6684 PR 9167
6685 * cp-valprint.c (cp_print_value_fields): Replaced obstack_base()
6686 method of popping recursion-detection stack with a method based on
6687 obstack_object_size().
6688
6689 2010-04-21 Pierre Muller <muller@ics.u-strasbg.fr>
6690
6691 PR pascal/11492.
6692 * p-valprint.c (pascal_val_print): Fix default printing of integer
6693 arrays.
6694
6695 2010-04-21 Pierre Muller <muller@ics.u-strasbg.fr>
6696
6697 Fix compilation warning on gcc-4.1.2.
6698 * rs6000-aix-tdep.c (rs6000_convert_from_func_ptr_addr): Initialize
6699 local variable`pc' to zero.
6700
6701 2010-04-20 Joel Brobecker <brobecker@adacore.com>
6702
6703 Implement thread support with core files on alpha-tru64.
6704 * dec-thread.c (dec_thread_find_new_threads): New function,
6705 extracted from resync_thread_list.
6706 (resync_thread_list): Add OPS parameter. Replace extracted-out
6707 code by call to dec_thread_find_new_threads.
6708 (dec_thread_wait): Update call to resync_thread_list.
6709 (init_dec_thread_ops): Set dec_thread_ops.to_find_new_threads.
6710
6711 2010-04-20 Joel Brobecker <brobecker@adacore.com>
6712
6713 * ada-lang.c (value_pointer): New function.
6714 (make_array_descriptor): Call value_pointer to convert addresses to
6715 pointers.
6716
6717 2010-04-20 Joel Brobecker <brobecker@adacore.com>
6718
6719 * rs6000-aix-tdep.c: #include exceptions.h.
6720 (rs6000_convert_from_func_ptr_addr): If an exception is thrown
6721 while reading the memory at ADDR, then ADDR cannot be a function
6722 descriptor.
6723
6724 2010-04-20 Joel Brobecker <brobecker@adacore.com>
6725
6726 * ada-typeprint.c (ada_print_typedef): New function.
6727 * ada-lang.h (ada_print_typedef): Add declaration.
6728 * ada-lang.c (ada_language_defn): set la_print_typdef field
6729 to ada_print_typedef.
6730
6731 2010-04-20 Joel Brobecker <brobecker@adacore.com>
6732
6733 * procfs.c (procfs_address_to_host_pointer): Only define when used.
6734
6735 2010-04-20 Joel Brobecker <brobecker@adacore.com>
6736
6737 * procfs.c (iterate_over_mappings_cb_ftype): New typedef.
6738 (iterate_over_mappings): Adjust function profile. Add declaration.
6739 (insert_dbx_link_bpt_in_region, info_mappings_callback):
6740 Adjust accordingly.
6741
6742 2010-04-20 Joel Brobecker <brobecker@adacore.com>
6743
6744 * procfs.c (solib_mappings_callback): Move function up to avoid
6745 a compiler warning.
6746
6747 2010-04-20 Joel Brobecker <brobecker@adacore.com>
6748
6749 * procfs.c (find_signalled_thread, find_stop_signal): Move
6750 these functions down to define them only when used.
6751
6752 2010-04-20 Joel Brobecker <brobecker@adacore.com>
6753
6754 * valprint.c (common_val_print): Fix the value before extracting
6755 its contents.
6756 * ada-lang.c (ada_to_fixed_value): Make this function extern.
6757 * ada-lang.h (ada_to_fixed_value): New function declaration.
6758 * ada-valprint.c (ada_value_print): Use ada_to_fixed_value
6759 to avoid code duplication and fix a bug in the handling of
6760 fixed types contents.
6761
6762 2010-04-20 Tom Tromey <tromey@redhat.com>
6763
6764 * dwarf2read.c (dwarf2_compute_name): Handle DW_AT_linkage_name.
6765 (read_partial_die): Likewise.
6766 (dwarf_attr_name): Likewise.
6767
6768 2010-04-20 Chris Moller <cmoller@redhat.com>
6769
6770 PR 10867
6771
6772 * cp-valprint.c (global): Adding new static array recursion
6773 detection obstack.
6774 (cp_print_value_fields, cp_print_static_field): Added new static
6775 array recursion detection code.
6776
6777 2010-04-20 Mark Kettenis <kettenis@gnu.org>
6778
6779 * i386-linux-tdep.c (i386_linux_regset_sections): Size of the
6780 general-purpose register set should be 68 instead of 144.
6781 (i386_linux_sse_regset_sections): Likewise.
6782 (i386_linux_avx_regset_sections): Likewise.
6783
6784 2010-04-20 Stan Shebs <stan@codesourcery.com>
6785 Nathan Sidwell <nathan@codesourcery.com>
6786
6787 * dwarf2loc.c (struct axs_var_loc): New struct.
6788 (dwarf2_tracepoint_var_loc): New function.
6789 (dwarf2_tracepoint_var_access): New function.
6790 (dwarf2_tracepoint_var_ref): Use dwarf2_tracepoint_var_loc, deal
6791 with DW_OP_piece.
6792 (locexpr_describe_location_piece): New function.
6793 (locexpr_describe_location_1): New function.
6794 (locexpr_describe_location): Call it, update signature.
6795 (loclist_describe_location): Rewrite to loop over locations,
6796 update signature.
6797 * symtab.h (struct symbol_computed_ops): Add address to
6798 describe_location arguments, return void.
6799 * printcmd.c (address_info): Get context PC, pass to computed
6800 location description.
6801 * tracepoint.c (scope_info): Ditto.
6802 * ax-gdb.c (trace_kludge): Export.
6803
6804 2010-04-20 Tom Tromey <tromey@redhat.com>
6805
6806 * dwarf2-frame.c (decode_frame_entry_1): Handle CIE version 4.
6807 (struct dwarf2_cie) <segment_size>: New field.
6808 * dwarf2read.c (partial_read_comp_unit_head): Accept DWARF 4.
6809 (skip_one_die): Handle DW_FORM_flag_present, DW_FORM_sec_offset,
6810 DW_FORM_exprloc.
6811 (read_attribute_value): Handle DW_FORM_flag_present,
6812 DW_FORM_sec_offset, DW_FORM_exprloc.
6813 (dump_die_shallow): Likewise.
6814 (attr_form_is_section_offset): Handle DW_FORM_sec_offset.
6815 (dwarf2_const_value): Handle DW_FORM_exprloc.
6816 (attr_form_is_block): Likewise.
6817 (struct line_header) <maximum_ops_per_instruction>: New field.
6818 (dwarf_decode_line_header): Set new field.
6819 (dwarf_decode_lines): Handle new field.
6820
6821 2010-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
6822
6823 * f-exp.y: Add new production to recognize the `logical*8' type.
6824 (LOGICAL_S8_KEYWORD): New token.
6825 * f-lang.c (enum f_primitive_types)
6826 <f_primitive_type_logical_s8>: New field.
6827 (f_language_arch_info): Handling `logical*8' type.
6828 (build_fortran_types): Building `logical*8' type.
6829 * f-lang.h (struct builtin_f_type) <builtin_logical_s8>: New field.
6830
6831 2010-04-19 Doug Evans <dje@google.com>
6832
6833 * ser-base.c (generic_readchar): Watch for EOF in read of error_fd.
6834 * ser-pipe.c (pipe_open): Fix file descriptor leaks.
6835 (pipe_close): Ditto.
6836
6837 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
6838
6839 * configure.tgt (x86_64-*-mingw*): Set BUILD_GDBSERVER to yes.
6840
6841 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
6842
6843 * windows-tdep.c (windows_get_tlb_type): Change current_seh.handle
6844 type to void function.
6845
6846 2010-04-19 Stan Shebs <stan@codesourcery.com>
6847 Vladimir Prus <vladimir@codesourcery.com>
6848
6849 * tracepoint.c (tfind_1): Add missing newline, report exit from
6850 tfind mode as such.
6851 * target.c (update_current_target): Make default
6852 to_trace_find return -1.
6853
6854 2010-04-19 Mike Frysinger <vapier@gentoo.org>
6855
6856 * objc-lang.c (find_methods): Move symname check up.
6857
6858 2010-04-19 Pedro Alves <pedro@codesourcery.com>
6859
6860 * ada-lang.c (print_recreate_exception)
6861 <ex_catch_exception_unhandled>: It's "catch exception unhandled",
6862 not "catch unhandled".
6863
6864 2010-04-19 Pedro Alves <pedro@codesourcery.com>
6865
6866 PR breakpoints/8554.
6867
6868 Implement `save-breakpoints'.
6869
6870 * breakpoint.c (save_cmdlist): New.
6871 (breakpoint_set_cmdlist, breakpoint_show_cmdlist): Moved up close
6872 to save_cmdlist.
6873 (print_recreate_catch_fork): New.
6874 (catch_fork_breakpoint_ops): Install it.
6875 (print_recreate_catch_vfork): New.
6876 (catch_vfork_breakpoint_ops): Install it.
6877 (print_recreate_catch_syscall): New.
6878 (catch_syscall_breakpoint_ops): Install it.
6879 (print_recreate_catch_exec): New.
6880 (catch_exec_breakpoint_ops): Install it.
6881 (print_recreate_exception_catchpoint): New.
6882 (gnu_v3_exception_catchpoint_ops): Install it.
6883 (save_breakpoints): New, based on tracepoint_save_command, but
6884 handle all breakpoint types.
6885 (save_breakpoints_command): New.
6886 (tracepoint_save_command): Rename to...
6887 (save_tracepoints_command): ... this, and reimplement using
6888 save_breakpoints.
6889 (save_command): New.
6890 (_initialize_breakpoints): Install the "save" command prefix.
6891 Install the "save breakpoints" command. Make "save-tracepoints" a
6892 deprecated alias for "save tracepoints".
6893 * breakpoint.h (struct breakpoint_ops): New field `print_recreate'.
6894 * ada-lang.c (print_recreate_exception): New.
6895 (print_recreate_catch_exception): New.
6896 (catch_exception_breakpoint_ops): Install it.
6897 (print_recreate_catch_exception_unhandled): New.
6898 (catch_exception_unhandled_breakpoint_ops): Install it.
6899 (print_recreate_catch_assert): New.
6900 (catch_assert_breakpoint_ops): Install it.
6901
6902 * NEWS: Mention the new `save breakpoints' command. Mention the
6903 new `save tracepoints' alias and that `save-tracepoints' is now
6904 deprecated.
6905
6906 2010-04-18 Pedro Alves <pedro@codesourcery.com>
6907
6908 PR tui/9217
6909
6910 * tui/tui-out.c: Include cli-out.h.
6911 (tui_table_begin, tui_table_body, tui_table_end, tui_table_header)
6912 (tui_begin, tui_end, tui_field_int, tui_field_skip)
6913 (tui_field_string, tui_field_fmt, tui_spaces, tui_text)
6914 (tui_message, tui_wrap_hint, tui_flush): Delete forward
6915 declarations.
6916 (struct ui_out_data): Rename to...
6917 (struct tui_ui_out_data): ... this. Remove `stream' and
6918 `suppress_output' fields, and inherit cli_ui_out_data.
6919 (tui_out_data): New typedef.
6920 (tui_ui_out_impl): Don't initialize fields staticaly.
6921 (tui_table_begin, tui_table_body, tui_table_end, tui_table_header)
6922 (tui_begin, tui_end): Delete.
6923 (tui_field_int): Adjust to delegate most work to the base type.
6924 (tui_field_skip): Delete.
6925 (tui_field_string, tui_field_fmt): Adjust comment. Adjust to
6926 delegate most work to the base type.
6927 (tui_spaces): Delete.
6928 (tui_text): Adjust to delegate most work to the base type.
6929 (tui_message): Delete.
6930 (tui_wrap_hint): Delete.
6931 (tui_flush): Delete.
6932 (out_field_fmt): Delete.
6933 (field_separator): Delete.
6934 (tui_out_new): Adjust to initialize the base type.
6935 (_initialize_tui_out): Initialize tui_ui_out_impl.
6936 * cli-out.c (struct ui_out_data): Moved out to cli-out.h, renamed
6937 cli_ui_out_data.
6938 (cli_out_data): Adjust.
6939 (cli_ui_out_impl): Make extern.
6940 (cli_table_header, cli_field_int, cli_field_skip): Use
6941 uo_field_string instead of cli_field_string.
6942 (cli_redirect): Adjust to use cli_out_data.
6943 (cli_out_data_ctor): New.
6944 (cli_out_new): Use it.
6945 * cli-out.h (struct ui_file): Remove forward declaration.
6946 (struct cli_ui_out_data): New, moved from cli-out.c, and renamed.
6947 (cli_ui_out_impl): Declare.
6948 (cli_out_data_ctor): Declare.
6949 * ui-out.c (struct ui_out) <data>: Change type to void pointer.
6950 (uo_field_string): No longer static.
6951 (ui_out_data): Change return type to void pointer.
6952 (ui_out_new): Change `data' parameter type to void pointer.
6953 * ui-out.h (struct ui_out_data): Don't forward declare.
6954 (ui_out_data): Change return type to void pointer.
6955 (ui_out_new): Change `data' parameter type to void pointer.
6956 (uo_field_string): Declare.
6957
6958 2010-04-17 Pedro Alves <pedro@codesourcery.com>
6959
6960 * ui-file.c (tee_file_isatty): Return whether `tee->one' is a tty,
6961 instead of always false.
6962
6963 2010-04-17 H.J. Lu <hongjiu.lu@intel.com>
6964
6965 PR corefiles/11511
6966 * amd64-linux-tdep.c (amd64_linux_gregset_reg_offset): Support
6967 orig_rax.
6968
6969 2010-04-17 Pedro Alves <pedro@codesourcery.com>
6970
6971 * breakpoint.c (watchpoints_triggered): Use
6972 is_hardware_watchpoint.
6973 (watchpoints_triggered): Ditto.
6974 (bpstat_check_location): Use is_watchpoint and
6975 is_hardware_watchpoint.
6976 (bpstat_check_watchpoint): Use is_watchpoint and
6977 is_hardware_watchpoint.
6978 (bpstat_stop_status): Fix comment.
6979 (user_settable_breakpoint): Use is_watchpoint.
6980 (hw_watchpoint_used_count): Use is_hardware_watchpoint.
6981 (disable_watchpoints_before_interactive_call_start): Use
6982 is_watchpoint.
6983 (enable_watchpoints_after_interactive_call_stop): Use
6984 is_watchpoint.
6985 (clear_command): Use is_watchpoint.
6986 (do_enable_breakpoint): Use is_watchpoint.
6987
6988 2010-04-16 Mike Frysinger <vapier@gentoo.org>
6989
6990 * solib-frv.c (enable_break1_done): Delete.
6991 (enable_break2): Do not check enable_break1_done. Move the
6992 enable_break2_done setting and call to
6993 remove_solib_event_breakpoints() to the end. Return without
6994 warning when the contents of _dl_debug_addr are 0.
6995 (enable_break): Do not set enable_break1_done.
6996 (frv_clear_solib): Likewise.
6997
6998 2010-04-16 Kevin Buettner <kevinb@redhat.com>
6999
7000 * m32c-tdep.c (m32c_m16c_address_to_pointer): Print warning
7001 instead of an error if no PLT entry is found. Return a
7002 potentially useful result.
7003 (m32c_m16c_pointer_to_address): Add code to search for function
7004 address when no .plt entry is found.
7005
7006 2010-04-16 Stan Shebs <stan@codesourcery.com>
7007
7008 * tracepoint.c (trace_variable_command): Run a cleanup.
7009
7010 2010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
7011
7012 * p-lang.c (pascal_one_char): Do not restrict C to 0..255 range.
7013
7014 2010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
7015
7016 Support for Windows OS Thread Information Block.
7017 * NEWS: Document new feature.
7018 * remote.c (PACKET_qGetTIBAddr): New enum element.
7019 (remote_get_tib_address): New function.
7020 (init_remote_ops): Set to_get_tib_address field
7021 to remote_get_tib_address.
7022 (_initialize_remote): Add add_packet_config_cmd
7023 for PACKET_qGetTIBAddr.
7024 * target.c (update_current_target): Set default value for
7025 new to_get_tib_address field.
7026 * target.h (target_ops): New field to_get_tib_address.
7027 (target_get_tib_address): New macro.
7028 * windows-nat.c (thread_info): Add thread_local_base field.
7029 (windows_add_thread): Add tlb argument of type 'void *'.
7030 (fake_create_process): Adapt windows_add_thread call.
7031 (get_windows_debug_event): Idem.
7032 (windows_get_tib_address): New function.
7033 (init_windows_ops): Set to_get_tib_address field
7034 to remote_get_tib_address.
7035 (_initialize_windows_nat): Replace info_w32_cmdlist
7036 initialization by a call to init_w32_command_list.
7037 (info_w32_command, info_w32_cmdlist): Removed from here...
7038 to windows-tdep.c file.
7039 * windows-tdep.h (info_w32_cmdlist): Declare.
7040 (init_w32_command_list): New external function
7041 declaration.
7042 * windows-tdep.c: Add several headers.
7043 (info_w32_cmdlist): to here, made global.
7044 (thread_information_32): New struct.
7045 (thread_information_64): New struct.
7046 (TIB_NAME): New char array.
7047 (MAX_TIB32, MAX_TIB64, FULL_TIB_SIZE): New constants.
7048 (maint_display_all_tib): New static variable.
7049 (windows_get_tlb_type): New function.
7050 (tlb_value_read, tlb_value_write): New functions.
7051 (tlb_value_funcs): New static struct.
7052 (tlb_make_value): New function.
7053 (display_one_tib): New function.
7054 (display_tib): New function.
7055 (show_maint_show_all_tib):New function.
7056 (info_w32_command): Moved from windows-nat.c.
7057 (init_w32_command_list): New function.
7058 (_initialize_windows_tdep): New function.
7059 New "maint set/show show-all-tib" command
7060 New "$_tlb" internal variable.
7061
7062 2010-04-16 Joel Brobecker <brobecker@adacore.com>
7063
7064 * tui/tui-regs.c (tui_display_register): Add comment about
7065 a couple of casts.
7066 * tui/tui-stack.c (tui_show_locator_content): Ditto.
7067
7068 2010-04-15 Stan Shebs <stan@codesourcery.com>
7069
7070 * frame.c: Include tracepoint.h.
7071 (get_current_frame): Allow a trace frame to be an alternate source
7072 of stack frame data.
7073 * tracepoint.c (tfind_1): Don't try to get current stack frame if
7074 it won't succeed.
7075
7076 2010-04-15 Pedro Alves <pedro@codesourcery.com>
7077
7078 * ppc-linux-tdep.c (bsd_uthread_solib_loaded): Always pass 0 for
7079 flags.
7080 * solib-spu.c (spu_solib_loaded): Always pass 0 for flags.
7081
7082 2010-04-15 Doug Evans <dje@google.com>
7083
7084 * NEWS: Add entry for python program space support.
7085 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-progspace.o.
7086 (SUBDIR_PYTHON_SRCS): Add py-progspace.c.
7087 (py-progspace.o): New rule.
7088 * python/py-prettyprint.c (find_pretty_printer_from_objfiles): New
7089 function.
7090 (find_pretty_printer_from_progspace): New function.
7091 (find_pretty_printer_from_gdb): New function.
7092 (find_pretty_printer): Rewrite.
7093 * python/py-progspace.c: New file.
7094 * python/python-internal.h (program_space): Add forward decl.
7095 (pspace_to_pspace_object, pspy_get_printers): Declare.
7096 (gdbpy_initialize_pspace): Declare.
7097 * python/python.c: #include "progspace.h".
7098 (gdbpy_get_current_progspace, gdbpy_progspaces): New functions.
7099 (_initialize_python): Call gdbpy_initialize_pspace.
7100 (GdbMethods): Add current_progspace, progspaces.
7101
7102 Add -s option to source command.
7103 * NEWS: Document new option.
7104 * cli/cli-cmds.c (find_and_open_script): Add function comment.
7105 Delete from_tty and cleanupp args. Split filep arg into file and
7106 full_pathp. New arg search_path.
7107 (source_script_from_stream): New function.
7108 (source_script_with_search): New function.
7109 (source_script): Rewrite.
7110 (source_command): Parse "-s" option.
7111 (init_cli_cmds): Add "-s" docs to source command help, and reformat.
7112 * python/python.c (source_python_script): Make file arg a const char *.
7113 Don't call fclose, leave for caller.
7114 * python/python.h (source_python_script): Update.
7115
7116 2010-04-14 Daniel Jacobowitz <dan@codesourcery.com>
7117 Pedro Alves <pedro@codesourcery.com>
7118
7119 Avoid rereading shared libraries that haven't changed.
7120
7121 * solib.c (free_so_symbols): New function, from ...
7122 (free_so): ... here. Call it.
7123 (solib_read_symbols): Don't warn here if symbols have already been
7124 loaded.
7125 (solib_add): Warn here instead, if a pattern was specified.
7126 (reload_shared_libraries_1): New.
7127 (reload_shared_libraries): Rewrite to not fetch the library list.
7128
7129 2010-04-14 Doug Evans <dje@google.com>
7130
7131 * source.c (openp): Strip DOS drive letter if present before
7132 concatenating string to search path.
7133
7134 2010-04-14 Pedro Alves <pedro@codesourcery.com>
7135
7136 * objfiles.h (gdb_bfd_close_or_warn): Declare.
7137 * objfiles.c (gdb_bfd_close_or_warn): New.
7138 * corelow.c: Include objfiles.h
7139 (core_close): Use gdb_bfd_close_or_warn.
7140 * elfread.c (build_id_verify): Ditto.
7141 * exec.c (exec_close, exec_close_1): Ditto.
7142
7143 2010-04-14 Daniel Jacobowitz <dan@codesourcery.com>
7144 Pedro Alves <pedro@codesourcery.com>
7145
7146 Group errors for many missing shared libraries.
7147
7148 * solist.h (struct so_list): Remove from_tty.
7149 * solib.c (solib_bfd_open): Return NULL if we failed to open a BFD.
7150 (solib_map_sections): Take so_list argument. Return 0 if we
7151 failed to open a BFD. Add target sections here.
7152 (symbol_add_stub): Delete.
7153 (solib_read_symbols): Inline symbol_add_stub. Use current flags,
7154 not from_tty copied from the so_list. Don't warn a second time
7155 for a missing library.
7156 (update_solib_list): Don't save from_tty. Use TRY_CATCH. Do not
7157 add to the section table here. Print out a single warning for all
7158 missing libraries.
7159 * bsd-uthread.c (bsd_uthread_solib_loaded): Always pass 0 for
7160 flags.
7161
7162 2010-04-14 Phil Muldoon <pmuldoon@redhat.com>
7163
7164 * python/py-block.c (gdbpy_block_for_pc): Use i8n to encompass
7165 error/warning messages. Capitalize and use complete sentences.
7166 (blpy_block_syms_iternext): Likewise.
7167 * python/py-cmd.c (parse_command_name, cmdpy_init): Likewise.
7168 * python/py-frame.c (FRAPY_REQUIRE_VALID, frapy_block)
7169 (frame_info_to_frame_object, frapy_read_var)
7170 (gdbpy_frame_stop_reason_string): Likewise.
7171 * python/py-lazy-string.c (stpy_convert_to_value)
7172 (gdbpy_create_lazy_string_object): Likewise.
7173 * python/py-objfile.c (objfpy_set_printers): Likewise.
7174 * python/py-prettyprint.c (gdbpy_default_visualizer): Likewise.
7175 * python/python.c (parameter_to_python): Likewise.
7176 * python/py-type.c (typy_range, typy_target): Likewise.
7177 * python/py-value.c (valpy_cast, valpy_length, valpy_getitem)
7178 (valpy_richcompare, valpy_int, valpy_long, valpy_float): Likewise.
7179
7180
7181 2010-04-14 Phil Muldoon <pmuldoon@redhat.com>
7182
7183 PR python/11381
7184
7185 * python/py-prettyprint.c (pretty_print_one_value): Test for
7186 Py_None.
7187 (print_string_repr): Test for Py_None. Set flags accordingly.
7188 Return value depending on return type.
7189 (print_children): Take a value indicating whether data was printed
7190 before this function was called. Alter output accordingly.
7191 (apply_val_pretty_printer): Capture return value from
7192 print_string_repr and pass to print_children.
7193
7194 2010-04-13 Mark Kettenis <kettenis@gnu.org>
7195
7196 PR corefiles/11481
7197 * i386-linux-tdep.c (i386_linux_regset_sections): Remove extended
7198 register note sections.
7199 (i386_linux_sse_regset_sections, i386_linux_avx_regset_sections):
7200 New variables.
7201 (i386_linux_init_abi): Install list of supported register note
7202 sections that matches the target description.
7203
7204 2010-04-13 Pedro Alves <pedro@codesourcery.com>
7205
7206 * remote.c (remote_get_noisy_reply): Don't error out on empty
7207 replies.
7208 (remote_start_remote): Update and merge tracepoints and trace
7209 state variables as long as the target supports tracepoints.
7210 (remote_trace_init): Fix prototype.
7211 (remote_download_trace_state_variable): Validate reply.
7212 (remote_trace_set_readonly_regions): Fix prototype.
7213 (remote_trace_start): Fix prototype. Check for empty reply.
7214 (remote_get_trace_status): Small cleanup.
7215 (remote_trace_stop): Fix prototype. Check for empty reply.
7216 (remote_trace_find): Check for empty reply.
7217 (remote_save_trace_data): Validate reply.
7218 (remote_set_disconnected_tracing): Check for empty reply, and
7219 validate reply.
7220 (remote_set_circular_trace_buffer): Ditto.
7221
7222 2010-04-13 Pierre Muller <muller@ics.u-strasbg.fr>
7223
7224 Suppress unused value warning during compilation.
7225 * tui/tui-regs.c (tui_display_register): Cast wstandout and wstandend
7226 calls to void.
7227 * tui/tui-stack.c (tui_show_locator_content): Likewise.
7228
7229 2010-04-12 Stan Shebs <stan@codesourcery.com>
7230
7231 * tracepoint.c (tfile_xfer_partial): Check read result.
7232
7233 2010-04-12 Mike Frysinger <vapier@gentoo.org>
7234
7235 * remote-m32r-sdi.c (m32r_files_info): Add const to local "file" var.
7236 * remote-sim.c (gdbsim_files_info): Likewise.
7237
7238 2010-04-12 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
7239
7240 * arm-tdep.h (gdb_regnum): Add ARM_FPSCR_REGNUM
7241 * arm-linux-nat.c (arm_linux_vfp_register_count): New
7242 variable.
7243 (fetch_vfp_registers): New function to fetch VFP registers.
7244 (store_vfp_registers): New function to store VFP registers.
7245 (arm_linux_fetch_inferior_registers): Add support for VFP
7246 registers.
7247 (arm_linux_store_inferior_registers): Likewise.
7248 (arm_linux_read_description): Likewise.
7249 (_initialize_arm_linux_nat): Delay initialising iWMMX tdesc
7250 until we need it.
7251
7252 2010-04-11 H.J. Lu <hongjiu.lu@intel.com>
7253
7254 * amd64-tdep.c (amd64_supply_xstateregset): Remove the unused
7255 tdep.
7256 (amd64_collect_xstateregset): Likewise.
7257
7258 2010-04-09 Stan Shebs <stan@codesourcery.com>
7259
7260 * tracepoint.c (trace_status_mi): Report frames created.
7261
7262 * tracepoint.c (trace_dump_command): Include default-collect
7263 expressions.
7264
7265 2010-04-09 Ulrich Weigand <uweigand@de.ibm.com>
7266
7267 * symtab.c (find_function_start_sal): Never return SAL pointing
7268 before function start address, even if line info is missing.
7269
7270 2010-04-09 Pedro Alves <pedro@codesourcery.com>
7271
7272 * NEWS: Mention tracepoints support.
7273
7274 2010-04-09 Pedro Alves <pedro@codesourcery.com>
7275
7276 * tracepoint.c (trace_status_mi): Report disconnected tracing and
7277 circular trace buffer statuses.
7278
7279 2010-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
7280
7281 * config/djgpp/fnchange.lst: Fix typo in translations for
7282 symbol-without-target_section.exp and symbol-without-target_section.c.
7283
7284 2010-04-09 Pedro Alves <pedro@codesourcery.com>
7285
7286 * breakpoint.c (condition_command): Pass condition expression to
7287 set_breakpoint_condition stripped from breakpoint number.
7288
7289 2010-04-09 Phil Muldoon <pmuldoon@redhat.com>
7290 Thiago Jung Bauermann <bauerman@br.ibm.com>
7291 Tom Tromey <tromey@redhat.com>
7292
7293 * breakpoint.c (condition_command): Simplify. Move condition
7294 setting code to ...
7295 (set_breakpoint_condition): ... here. New function.
7296 * breakpoint.h (set_breakpoint_condition): Declare.
7297 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-breakpoint.
7298 (SUBDIR_PYTHON_SRCS): Likewise.
7299 (py-breakpoint.o): New rule.
7300 * python/py-breakpoint.c: New file.
7301 * python/python-internal.h (gdbpy_breakpoints)
7302 (gdbpy_initialize_breakpoints): Declare.
7303 (GDB_PY_SET_HANDLE_EXCEPTION) Define.
7304
7305 2010-04-09 Pedro Alves <pedro@codesourcery.com>
7306
7307 * regformats/regdat.sh: Include server.h. Don't include
7308 regcache.h.
7309
7310 2010-04-08 Stan Shebs <stan@codesourcery.com>
7311 Pedro Alves <pedro@codesourcery.com>
7312
7313 * tracepoint.h (struct trace_status): New fields disconnected_tracing
7314 and circular_buffer.
7315 (disconnect_tracing): Rename from disconnect_or_stop_tracing.
7316 * tracepoint.c (trace_status_command): Display target's status for
7317 disconnected tracing and circular buffer.
7318 (disconnect_tracing): Rename from disconnect_or_stop_tracing, add
7319 query for non-disconnected-tracing case, remove the stop_tracing
7320 call.
7321 (tfile_open): Clear disconnected and circular buffer status.
7322 (trace_save): Save disconnected and circular buffer status.
7323 (parse_trace_status): Parse disconnected and circular buffer status,
7324 also recognize disconnected as a stop reason.
7325 * remote.c (remote_set_disconnected_tracing): Only set
7326 QTDisconnected if the remote end supports disconnected tracing.
7327 Warn otherwise, if trying to enable disconnected tracing.
7328 * infcmd.c (detach_command): Update disconnect_tracing call.
7329 * cli/cli-cmds.c (quit_command): Ditto.
7330
7331 2010-04-08 H.J. Lu <hongjiu.lu@intel.com>
7332
7333 * i387-tdep.c (i387_collect_xsave): Replace abort with
7334 internal_error.
7335
7336 2010-04-08 Stan Shebs <stan@codesourcery.com>
7337
7338 * breakpoint.c (default_collect_info): New function.
7339 (breakpoints_info): Call it.
7340 (maintenance_info_breakpoints): Ditto.
7341 (tracepoints_info): Ditto.
7342
7343 2010-04-08 H.J. Lu <hongjiu.lu@intel.com>
7344
7345 * i387-tdep.c (i387_collect_xsave): Re-indent.
7346
7347 2010-04-08 H.J. Lu <hongjiu.lu@intel.com>
7348
7349 * i386-linux-nat.c (have_ptrace_getfpxregs): Initialize to -1
7350 if HAVE_PTRACE_GETFPXREGS is defined.
7351 (i386_linux_read_description): Set have_ptrace_getfpxregs and
7352 have_ptrace_getregset to 0 if ptrace PTRACE_GETFPXREGS failed.
7353
7354 * i386-linux-tdep.c: Include "features/i386/i386-mmx-linux.c"
7355 (i386_linux_core_read_description): Return tdesc_i386_mmx_linux
7356 if .reg-xfp section doesn't exist.
7357 (_initialize_i386_linux_tdep): Call initialize_tdesc_i386_mmx_linux.
7358
7359 * i386-linux-tdep.h (tdesc_i386_mmx_linux): New.
7360
7361 * i386-tdep.c: Include "features/i386/i386-mmx.c".
7362 (i386_go32_init_abi): Set tdesc to tdesc_i386_mmx.
7363 (i386_validate_tdesc_p): Make org.gnu.gdb.i386.sse optional. Set
7364 xcr0 to I386_XSTATE_X87_MASK if SSE isn't available.
7365 (i386_gdbarch_init): Update comments.
7366 (_initialize_i386_tdep): Call initialize_tdesc_i386_mmx.
7367
7368 * common/i386-xstate.h (I386_XSTATE_X87_MASK): New.
7369
7370 * config/djgpp/fnchange.lst: Add i386 MMX XML files.
7371
7372 * features/Makefile (i386/i386-mmx-expedite): New.
7373 (i386/i386-mmx-linux-expedite): Likewise.
7374 ($(outdir)/i386/i386-mmx.dat): Likewise.
7375 ($(outdir)/i386/i386-mmx-linux.dat): Likewise.
7376
7377 * features/i386/i386-mmx-linux.c: New.
7378 * features/i386/i386-mmx-linux.xml: Likewise.
7379 * features/i386/i386-mmx.c: Likewise.
7380 * features/i386/i386-mmx.xml: Likewise.
7381 * regformats/i386/i386-mmx-linux.dat: Likewise.
7382 * regformats/i386/i386-mmx.dat: Likewise.
7383
7384 * features/Makefile (WHICH): Add i386/i386-mmx and
7385 i386/i386-mmx-linux.
7386
7387 2010-04-08 Doug Evans <dje@google.com>
7388
7389 * source.c (openp): Skip $cdir in PATH.
7390
7391 2010-04-08 Phil Muldoon <pmuldoon@redhat.com>
7392
7393 PR python/11417
7394 * python/py-lazy-string.c (stpy_convert_to_value): Check for
7395 a NULL address.
7396 (gdbpy_create_lazy_string_object): Allow strings with a NULL
7397 address and a zero length.
7398
7399 2010-04-08 Hui Zhu <teawater@gmail.com>
7400
7401 * i386-tdep.c (i386_process_record): Add support for insn
7402 rdtsc.
7403
7404 2010-04-07 Doug Evans <dje@google.com>
7405
7406 * python/python.c (source_python_script): Use ensure_python_env
7407 to prepare environment for script.
7408
7409 2010-04-07 H.J. Lu <hongjiu.lu@intel.com>
7410
7411 * amd64-linux-nat.c: Include "regset.h", "elf/common.h",
7412 <sys/uio.h> and "i386-xstate.h".
7413 (PTRACE_GETREGSET): New.
7414 (PTRACE_SETREGSET): Likewise.
7415 (have_ptrace_getregset): Likewise.
7416 (amd64_linux_gregset64_reg_offset): Include 16 upper YMM
7417 registers.
7418 (amd64_linux_gregset32_reg_offset): Include 8 upper YMM
7419 registers.
7420 (amd64_linux_fetch_inferior_registers): Support PTRACE_GETFPREGS.
7421 (amd64_linux_store_inferior_registers): Likewise.
7422 (amd64_linux_read_description): Check and enable AVX target
7423 descriptions.
7424
7425 * amd64-linux-tdep.c: Include "regset.h", "i386-linux-tdep.h"
7426 and "features/i386/amd64-avx-linux.c".
7427 (amd64_linux_regset_sections): New.
7428 (amd64_linux_core_read_description): Check and enable AVX
7429 target description.
7430 (amd64_linux_init_abi): Set xsave_xcr0_offset. Call
7431 set_gdbarch_core_regset_sections.
7432 (_initialize_amd64_linux_tdep): Call
7433 initialize_tdesc_amd64_avx_linux.
7434
7435 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Replace
7436 AMD64_MXCSR_REGNUM with AMD64_YMM15H_REGNUM.
7437 (tdesc_amd64_avx_linux): New.
7438 (amd64_linux_update_xstateregset): Likewise.
7439
7440 * amd64-tdep.c: Include "features/i386/amd64-avx.c".
7441 (amd64_ymm_names): New.
7442 (amd64_ymmh_names): Likewise.
7443 (amd64_register_name): Likewise.
7444 (amd64_supply_xstateregset): Likewise.
7445 (amd64_collect_xstateregset): Likewise.
7446 (amd64_supply_xsave): Likewise.
7447 (amd64_collect_xsave): Likewise.
7448 (AMD64_NUM_REGS): Removed.
7449 (amd64_dwarf_reg_to_regnum): Return %ymmN register number for
7450 %xmmN if AVX is available.
7451 (amd64_pseudo_register_name): Support pseudo YMM registers.
7452 (amd64_regset_from_core_section): Support .reg-xstate section.
7453 (amd64_init_abi): Set ymmh_register_names, num_ymm_regs
7454 and ymm0h_regnum. Call set_gdbarch_register_name.
7455 (amd64_init_abi): Call initialize_tdesc_amd64_avx.
7456
7457 * amd64-tdep.h (amd64_regnum): Add AMD64_YMM0H_REGNUM and
7458 AMD64_YMM15H_REGNUM.
7459 (AMD64_NUM_REGS): New.
7460 (amd64_supply_xsave): Likewise.
7461 (amd64_collect_xsave): Likewise.
7462 (amd64_register_name): Removed.
7463 (amd64_register_type): Likewise.
7464
7465 2010-04-07 H.J. Lu <hongjiu.lu@intel.com>
7466
7467 * i387-tdep.c: Include "i386-xstate.h".
7468 (XSAVE_XSTATE_BV_ADDR): New.
7469 (xsave_avxh_offset): Likewise.
7470 (XSAVE_AVXH_ADDR): Likewise.
7471 (i387_supply_xsave): Likewise.
7472 (i387_collect_xsave): Likewise.
7473
7474 * i387-tdep.h (I387_NUM_YMM_REGS): New.
7475 (I387_YMM0H_REGNUM): Likewise.
7476 (I387_YMMENDH_REGNUM): Likewise.
7477 (i387_supply_xsave): Likewise.
7478 (i387_collect_xsave): Likewise.
7479
7480 2010-04-07 H.J. Lu <hongjiu.lu@intel.com>
7481
7482 * i386-linux-nat.c: Include "regset.h", "elf/common.h",
7483 <sys/uio.h> and "i386-xstate.h".
7484 (PTRACE_GETREGSET): New.
7485 (PTRACE_SETREGSET): Likewise.
7486 (fetch_xstateregs): Likewise.
7487 (store_xstateregs): Likewise.
7488 (GETXSTATEREGS_SUPPLIES): Likewise.
7489 (regmap): Include 8 upper YMM registers.
7490 (i386_linux_fetch_inferior_registers): Support XSAVE extended
7491 state.
7492 (i386_linux_store_inferior_registers): Likewise.
7493 (i386_linux_read_description): Check and enable AVX target
7494 descriptions.
7495
7496 * i386-linux-tdep.c: Include "regset.h", "i387-tdep.h",
7497 "i386-xstate.h" and "features/i386/i386-avx-linux.c".
7498 (i386_linux_regset_sections): Add ".reg-xstate".
7499 (i386_linux_gregset_reg_offset): Include 8 upper YMM registers.
7500 (i386_linux_core_read_xcr0): New.
7501 (i386_linux_core_read_description): Check and enable AVX target
7502 description.
7503 (i386_linux_init_abi): Set xsave_xcr0_offset.
7504 (_initialize_i386_linux_tdep): Call
7505 initialize_tdesc_i386_avx_linux.
7506
7507 * i386-linux-tdep.h (I386_LINUX_ORIG_EAX_REGNUM): Replace
7508 I386_SSE_NUM_REGS with I386_AVX_NUM_REGS.
7509 (i386_linux_core_read_xcr0): New.
7510 (tdesc_i386_avx_linux): Likewise.
7511 (I386_LINUX_XSAVE_XCR0_OFFSET): Likewise.
7512
7513 * i386-tdep.c: Include "i386-xstate.h" and
7514 "features/i386/i386-avx.c".
7515 (i386_ymm_names): New.
7516 (i386_ymmh_names): Likewise.
7517 (i386_ymmh_regnum_p): Likewise.
7518 (i386_ymm_regnum_p): Likewise.
7519 (i386_xmm_regnum_p): Likewise.
7520 (i386_register_name): Likewise.
7521 (i386_ymm_type): Likewise.
7522 (i386_supply_xstateregset): Likewise.
7523 (i386_collect_xstateregset): Likewise.
7524 (i386_sse_regnum_p): Removed.
7525 (i386_pseudo_register_name): Support pseudo YMM registers.
7526 (i386_pseudo_register_type): Likewise.
7527 (i386_pseudo_register_read): Likewise.
7528 (i386_pseudo_register_write): Likewise.
7529 (i386_dbx_reg_to_regnum): Return %ymmN register number for
7530 %xmmN if AVX is available.
7531 (i386_regset_from_core_section): Support .reg-xstate section.
7532 (i386_register_reggroup_p): Supper upper YMM and YMM registers.
7533 (i386_process_record): Replace i386_sse_regnum_p with
7534 i386_xmm_regnum_p.
7535 (i386_validate_tdesc_p): Support org.gnu.gdb.i386.avx feature.
7536 Set ymmh_register_names, num_ymm_regs, ymm0h_regnum and xcr0.
7537 (i386_gdbarch_init): Set xstateregset. Set xsave_xcr0_offset.
7538 Call set_gdbarch_register_name. Replace I386_SSE_NUM_REGS with
7539 I386_AVX_NUM_REGS. Set ymmh_register_names, ymm0h_regnum and
7540 num_ymm_regs. Add num_ymm_regs to set_gdbarch_num_pseudo_regs.
7541 Set ymm0_regnum.
7542 (_initialize_i386_tdep): Call initialize_tdesc_i386_avx.
7543
7544 * i386-tdep.h (gdbarch_tdep): Add xstateregset, ymm0_regnum,
7545 xcr0, xsave_xcr0_offset, ymm0h_regnum, ymmh_register_names and
7546 i386_ymm_type.
7547 (i386_regnum): Add I386_YMM0H_REGNUM, and I386_YMM7H_REGNUM.
7548 (I386_AVX_NUM_REGS): New.
7549 (i386_xmm_regnum_p): Likewise.
7550 (i386_ymm_regnum_p): Likewise.
7551 (i386_ymmh_regnum_p): Likewise.
7552
7553 * common/i386-xstate.h: New.
7554
7555 2010-04-07 H.J. Lu <hongjiu.lu@intel.com>
7556
7557 * config/djgpp/fnchange.lst: Add x86 AVX XML files.
7558
7559 * features/Makefile (WHICH): Add i386/i386-avx,
7560 i386/i386-avx-linux, i386/x86-64-avx and i386/x86-64-avx-linux.
7561 (i386/i386-avx-expedite): New.
7562 (i386/i386-avx-linux-expedite): Likewise.
7563 (i386/x86-64-avx-expedite):Likewise.
7564 (i386/x86-64-avx-linux-expedite): Likewise.
7565 ($(outdir)/i386/i386-avx.dat): New dependency.
7566 ($(outdir)/i386/i386-avx-linux.dat): Likewise.
7567 ($(outdir)/i386/x86-avx-64.dat): Likewise.
7568 ($(outdir)/i386/x86-64-avx-linux.dat): Likewise.
7569
7570 * features/i386/32bit-avx.xml: New.
7571 * features/i386/64bit-avx.xml: Likewise.
7572 * features/i386/i386-avx-linux.c: Likewise.
7573 * features/i386/i386-avx-linux.xml: Likewise.
7574 * features/i386/i386-avx.c: Likewise.
7575 * features/i386/i386-avx.xml: Likewise.
7576 * features/i386/x86-64-avx-linux.c: Likewise.
7577 * features/i386/x86-64-avx-linux.xml: Likewise.
7578 * features/i386/x86-64-avx.c: Likewise.
7579 * features/i386/x86-64-avx.xml: Likewise.
7580 * regformats/i386/i386-avx-linux.dat: Likewise.
7581 * regformats/i386/i386-avx.dat: Likewise.
7582 * regformats/i386/x86-64-avx-linux.dat: Likewise.
7583 * regformats/i386/x86-64-avx.dat: Likewise.
7584
7585 2010-04-07 Doug Evans <dje@google.com>
7586
7587 * top.c (source_file_name): Make const char *.
7588 * top.h (source_file_name): Update.
7589 * cli/cli-script.c (source_cleanup_lines_args): Make old_file
7590 const char *.
7591 (script_from_file): Change `file' arg to const char *.
7592 * cli/cli-script.h (script_from_file): Update.
7593
7594 2010-04-06 Doug Evans <dje@google.com>
7595
7596 * cli/cli-cmds.c (source_command): Run cleanups.
7597
7598 2010-04-06 Stan Shebs <stan@codesourcery.com>
7599
7600 * defs.h (char_ptr): Move typedef here from...
7601 * ada-lang.c (char_ptr): Remove.
7602 * charset.c (char_ptr): Remove.
7603 * tracepoint.h (struct uploaded_string): Remove.
7604 (struct uploaded_tp): Use vectors for string arrays.
7605 * tracepoint.c (trace_save): Use vectors of actions.
7606 (parse_tracepoint_definition): Ditto.
7607 (get_uploaded_tp): Clear vectors.
7608 * breakpoint.c (create_tracepoint_from_upload): Use vectors.
7609 (next_cmd): Change to an int.
7610 (read_next_cmd): Use vector of command strings.
7611
7612 2010-04-06 Doug Evans <dje@google.com>
7613
7614 * top.h (source_script, cd_command): Delete.
7615 * main.c: #include "cli/cli-cmds.h"
7616
7617 2010-04-06 Kevin Buettner <kevinb@redhat.com>
7618
7619 * m32c-tdep.c (make_types): When calling `arch_type', pass size of
7620 type in bytes, not bits.
7621
7622 2010-04-06 Pierre Muller <muller@ics.u-strasbg.fr>
7623
7624 * stabsread.c (define_symbol): Add support for char
7625 and string constants.
7626
7627 2010-04-06 Pierre Muller <muller@ics.u-strasbg.fr>
7628
7629 Remove remaining "%ll" uses.
7630 * go32-nat.c (go32_pte_for_address): Replace "0x%llx" using
7631 hex_string call.
7632 * rs6000-nat.c (rs6000_ptrace64): Idem.
7633 * solib-pa64.c (pa64_current_sos): Idem.
7634 * solib-spu.c (spu_current_sos): Idem.
7635 * linux-nat.c (linux_nat_find_memory_regions): Replace "%lld" using
7636 plongest call.
7637 * nto-procfs.c (procfs_meminfo): Replace "0x%016llx" using
7638 phex (VAR, 8) call.
7639 * sh64-tdep.c (sh64_show_media_regs): Idem.
7640
7641 2010-04-05 Stan Shebs <stan@codesourcery.com>
7642
7643 * tracepoint.c: Include gdbcore.h.
7644 (tfile_xfer_partial): Return partial results, also try reading
7645 from executable.
7646 (tfile_has_all_memory): New function.
7647 (init_tfile_ops): Use it.
7648
7649 2010-04-05 Sergio Durigan Junior <sergiodj@redhat.com>
7650
7651 PR gdb/10736:
7652 * xml-syscall.c (my_gdb_datadir): New variable to keep track of
7653 the changes in data-directory.
7654 (init_sysinfo): Reload the syscall XML file if the data-directory
7655 has changed.
7656
7657 2010-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
7658
7659 Code cleanup.
7660 * breakpoint.c (bpstat_stop_status): Use bpstat_causes_stop.
7661
7662 2010-04-04 Stan Shebs <stan@codesourcery.com>
7663 Nathan Sidwell <nathan@codesourcery.com>
7664
7665 * breakpoint.c (breakpoint_1): Add filter argument, return number of
7666 breakpoints printed.
7667 (is_hardware_watchpoint): Make argument const.
7668 (is_watchpoint): Ditto.
7669 (is_tracepoint): Merge of tracepoint_type and breakpoint_is_tracepoint,
7670 use it everywhere.
7671 (breakpoints_info): Pass NULL to breakpoint_1.
7672 (maintenance_info_breakpoints): Ditto.
7673 (watchpoints_info): New function.
7674 (tracepoints_info): Use breakpoint_1 filter.
7675 (set_ignore_count): Warn that tracepoint ignore count will be ignored.
7676 (_initialize_breakpoint): Make "info watchpoints" its own command.
7677 * breakpoint.h (is_tracepoint): Rename from breakpoint_is_tracepoint.
7678 * mi/mi-cmd-break.c (mi_cmd_break_commands): Use is_tracepoint.
7679
7680 2010-04-04 Stan Shebs <stan@codesourcery.com>
7681
7682 * tracepoint.c (tfile_fetch_registers): Add fallback case.
7683
7684 2010-04-04 Jan Kratochvil <jan.kratochvil@redhat.com>
7685
7686 * infcmd.c (run_command_1): Call proceed with regcache_read_pc address.
7687 * config/djgpp/fnchange.lst: Add translation for break-entry.exp.
7688
7689 2010-04-04 Jan Kratochvil <jan.kratochvil@redhat.com>
7690
7691 * breakpoint.c (bpstat_find_step_resume_breakpoint): Remove.
7692 * breakpoint.h (bpstat_find_step_resume_breakpoint): Remove.
7693
7694 2010-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
7695
7696 * dwarf2read.c (read_namespace_type): Use common "return set_die_type"
7697 code form.
7698
7699 2010-04-02 Hui Zhu <teawater@gmail.com>
7700
7701 * i386-tdep.c (OT_DQUAD): New enum.
7702 (i386_process_record): Add code for MMX, 3DNow!, SSE, SSE2,
7703 SSE3, SSSE3 and SSE4.
7704
7705 2010-04-02 Hui Zhu <teawater@gmail.com>
7706
7707 * i386-tdep.c (i386_record_lea_modrm_addr): Remove useless
7708 "*addr = 0".
7709
7710 2010-04-02 Pedro Alves <pedro@codesourcery.com>
7711
7712 * tracepoint.c (trace_dump_actions): New, factored out from
7713 trace_dump_command, and adjusted to recurse into while-stepping's
7714 action list.
7715 (trace_dump_command): Use it.
7716
7717 2010-04-02 Pedro Alves <pedro@codesourcery.com>
7718
7719 * breakpoint.h (struct counted_command_line): Moved definition to
7720 breakpoint.c, and forward declare.
7721 (breakpoint_commands): Declare.
7722 * breakpoint.c (struct counted_command_line): Moved here.
7723 (breakpoint_commands): New.
7724 * tracepoint.c (encode_actions): Use breakpoint_commands.
7725 * remote.c (remote_download_tracepoint): Ditto.
7726
7727 2010-04-01 H.J. Lu <hongjiu.lu@intel.com>
7728
7729 * remote.c (remote_parse_stop_reply): Use hex_string instead
7730 of phex_nz for error.
7731
7732 2010-04-01 Stan Shebs <stan@codesourcery.com>
7733 Nathan Sidwell <nathan@codesourcery.com>
7734
7735 * tracepoint.h (enum actionline_type): Remove.
7736 (validate_actionline): Change return to void.
7737 * tracepoint.c (report_agent_reqs_errors): New function.
7738 (validate_actionline): Call it, change return to void, report errors
7739 more consistently.
7740 (collect_symbol): Call report_agent_reqs_errors.
7741 (encode_actions_1): Ditto.
7742 (encode_actions): Don't expect a result from validate_actionline.
7743
7744 2010-04-01 Stan Shebs <stan@codesourcery.com>
7745
7746 * tracepoint.c (trace_start_command): Confirm if trace is running.
7747 (trace_stop_command): Error if trace not running.
7748
7749 2010-04-01 H.J. Lu <hongjiu.lu@intel.com>
7750
7751 * amd64-tdep.c (amd64_byte_names): Add "ah", "bh", "ch", "dh".
7752 (AMD64_NUM_LOWER_BYTE_REGS): New.
7753 (amd64_pseudo_register_read): Handle "ah", "bh", "ch", "dh".
7754 (amd64_pseudo_register_write): Likewise.
7755 (amd64_init_abi): Set num_byte_regs to 20.
7756
7757 2010-04-01 Pedro Alves <pedro@codesourcery.com>
7758
7759 * breakpoint.c (multi_start, multi_end, last_was_multi): Delete.
7760 (prev_breakpoint_count): New.
7761 (set_breakpoint_count): Adjust.
7762 (rbreak_start_breakpoint_count): New.
7763 (start_rbreak_breakpoints): Adjust.
7764 (end_rbreak_breakpoints): Adjust.
7765 (struct commands_info) <arg>: New field.
7766 (do_map_commands_command): Tweak output to include breakpoint spec
7767 range.
7768 (commands_command_1): Adjust. Avoid setting an xfree cleanup if
7769 ARG was empty on entry. Set INFO's arg.
7770 (create_breakpoint): Adjust.
7771
7772 * NEWS: Clarify `commands' changes.
7773
7774 2010-04-01 Pedro Alves <pedro@codesourcery.com>
7775
7776 * tracepoint.c: Include stack.h.
7777 (struct add_local_symbols_data): New.
7778 (do_collect_symbol): New.
7779 (add_local_symbols): Rewrite using iterate_over_block_arg_vars and
7780 iterate_over_block_local_vars.
7781 * stack.c (print_block_frame_locals): Rewrite as ...
7782 (iterate_over_block_locals): ... this. Take a callback function
7783 pointer and generic data pointer, and call that instead of
7784 print_variable_and_value.
7785 (struct print_variable_and_value_data): New.
7786 (do_print_variable_and_value): New.
7787 (iterate_over_block_local_vars): New, abstracted out from
7788 print_frame_local_vars.
7789 (print_frame_local_vars): Rewrite using
7790 iterate_over_block_local_vars.
7791 (iterate_over_block_arg_vars): New, abstracted out from
7792 print_frame_arg_vars.
7793 (print_frame_arg_vars): Rewrite using iterate_over_block_arg_vars.
7794 * stack.h (iterate_over_block_arg_local_vars_cb): New typedef.
7795 (iterate_over_block_arg_vars, iterate_over_block_local_vars): Declare.
7796
7797 2010-03-31 Richard Earnshaw <rearnsha@arm.com>
7798
7799 * arm-tdep.c (thumb_get_next_pc_raw): Correctly detect TBH
7800 instructions. Use the PC+4 if the base of the TBB or TBH is the
7801 PC register.
7802
7803 2010-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
7804
7805 Fix crash on reading wrong function declaration DWARF.
7806 * dwarf2read.c (read_subroutine_type): New variable void_type.
7807 Pre-fill all TYPE_FIELD_TYPEs. Move nparams and iparams initialization
7808 more close to their use.
7809
7810 2010-03-31 Stan Shebs <stan@codesourcery.com>
7811
7812 * breakpoint.c (tracepoint_save_command): Include variables,
7813 conditionals, tracepoint types, and default-collect.
7814 * tracepoint.c (save_trace_state_variables): New function.
7815 * tracepoint.h (save_trace_state_variables): Declare it.
7816
7817 2010-03-31 Pierre Muller <muller@ics.u-strasbg.fr>
7818
7819 * remote.c (end_thread): ARI fix: Use xstrdup instead of strdup.
7820
7821 2010-03-30 Keith Seitz <keiths@redhat.com>
7822
7823 * c-typeprint.c (c_type_print_args): Don't print "void"
7824 for java, regardless of whether it is TYPE_PROTOTYPED.
7825 Use the passed-in language instead of current_language.
7826 (c_type_print_varspec_suffix): Use current_language instead
7827 of assuming language_c.
7828 * jv-typeprint.c (java_type_print_base): (bz 9320) Strip off
7829 any return type specifier from the physname.
7830
7831 2010-03-30 Pedro Alves <pedro@codesourcery.com>
7832
7833 * tui/tui-interp.c (tui_is_toplevel): New.
7834 (tui_init): Set it.
7835 (tui_allowed_p): New.
7836 * tui/tui.c (tui_enable): Check if the TUI is allowed before
7837 enabling it.
7838 * tui/tui.h (tui_allowed_p): Declare.
7839
7840 2010-03-30 Ozkan Sezer <sezeroz@gmail.com>
7841
7842 * serial.h: Include winsock2.h before windows.h.
7843
7844 2010-03-30 H.J. Lu <hongjiu.lu@intel.com>
7845
7846 * NEWS: Mention xmlRegisters= in qSupported packet.
7847
7848 * i386-tdep.c: Include "remote.h".
7849 (_initialize_i386_tdep): Call register_remote_support_xml.
7850
7851 * remote.c (remote_support_xml): New.
7852 (register_remote_support_xml): Likewise.
7853 (remote_query_supported_append): Likewise.
7854 (remote_query_supported): Support remote_support_xml.
7855
7856 * remote.h (register_remote_support_xml): New.
7857
7858 2010-03-29 Stan Shebs <stan@codesourcery.com>
7859
7860 * tracepoint.c (trace_find_line_command): Remove dead code.
7861
7862 * tracepoint.h (struct uploaded_string): New struct.
7863 (struct uploaded_tp): New fields for source strings.
7864 * breakpoint.c (this_utp, next_cmd): New globals.
7865 (read_uploaded_action): New function.
7866 (create_tracepoint_from_upload): Fill in more parts
7867 of a tracepoint.
7868 * tracepoint.c (encode_source_string): New function.
7869 (trace_save): Write out source strings, fix error checks.
7870 (parse_tracepoint_definition): Add source string parsing.
7871 * remote.c (PACKET_TracepointSource): New packet type.
7872 (remote_download_command_source): New function.
7873 (remote_download_tracepoint): Download source pieces also.
7874 (_initialize_remote): Add packet config command.
7875
7876 * tracepoint.c (collect_symbol): Send LOC_UNRESOLVED symbols to
7877 expression handler.
7878
7879 * tracepoint.c (start_tracing): Check tracepoints before sending
7880 commands to target, don't start if all tracepoints disabled.
7881
7882 2010-03-28 Pedro Alves <pedro@codesourcery.com>
7883
7884 * cli/cli-script.c (process_next_line): Handle 'stepping'.
7885
7886 2010-03-26 Stan Shebs <stan@codesourcery.com>
7887
7888 * tracepoint.c (disconnect_or_stop_tracing): Get out of tfind mode.
7889
7890 2010-03-26 Tom Tromey <tromey@redhat.com>
7891
7892 * breakpoint.c (commands_command_1): Duplicate 'arg'.
7893
7894 2010-03-26 Ulrich Weigand <uweigand@de.ibm.com>
7895
7896 * breakpoint.c (expand_line_sal_maybe): Always call skip_prologue_sal.
7897 (skip_prologue_sal): Remove local definition.
7898 (resolve_sal_pc): Remove now unnecessary code.
7899 * linespec.c (minsym_found): Call skip_prologue_sal.
7900 * symtab.c (find_function_start_pc): Remove.
7901 (find_function_start_sal): Extract prologue skipping into ...
7902 (skip_prologue_sal): ... this new function. Handle code both
7903 with and without debug info. Respect SAL's explicit_pc and
7904 explicit_line flags. Inline old find_function_start_pc.
7905 * symtab.h (find_function_start_pc): Remove.
7906 (skip_prologue_sal): Add prototype.
7907
7908 2010-03-26 Ulrich Weigand <uweigand@de.ibm.com>
7909
7910 * dwarf2read.c (read_func_scope): Also scan specification DIEs
7911 for DW_TAG_imported_module children.
7912
7913 2010-03-26 Ulrich Weigand <uweigand@de.ibm.com>
7914
7915 * dwarf2read.c (dwarf2_name): Work around GCC bugzilla debug/41828 by
7916 ignoring spurious DW_AT_name attributes for unnamed structs or unions.
7917 * completer.c (add_struct_fields): Fix inverted logic.
7918
7919 2010-03-26 Ulrich Weigand <uweigand@de.ibm.com>
7920
7921 * breakpoint.c (bpstat_clear_actions): Reset bs->commands_left.
7922
7923 2010-03-26 Pedro Alves <pedro@codesourcery.com>
7924
7925 * tracepoint.c (current_trace_status): Don't make sure error_desc
7926 is non-NULL here.
7927 (parse_trace_status): Release a previous error_desc string, and
7928 set it to NULL by default. If stop reason is tracepoint_error,
7929 make sure error_desc is not left NULL.
7930
7931 2010-03-26 Pedro Alves <pedro@codesourcery.com>
7932
7933 * tracepoint.c (trace_save): Remove X from tracepoint error
7934 description.
7935
7936 2010-03-26 Pedro Alves <pedro@codesourcery.com>
7937
7938 * tracepoint.c (parse_trace_status): Don't allow plain strings in
7939 the terror description. Don't expect an X prefix.
7940
7941 2010-03-25 Stan Shebs <stan@codesourcery.com>
7942
7943 * tracepoint.h (trace_stop_reason): Add tracepoint_error.
7944 (struct trace_status): New field error_desc.
7945 * tracepoint.c (stop_reason_names): Add terror.
7946 (current_trace_status): Ensure non-NULL error description.
7947 (trace_status_command): Add error report.
7948 (trace_status_mi): Ditto.
7949 (trace_save): Add special case for error description.
7950 (parse_trace_status): Add case for errors.
7951
7952 2010-03-25 Keith Seitz <keiths@redhat.com>
7953
7954 * dwarf2read.c (read_subroutine_type): If the compilation unit
7955 language is Java, mark any formal parameter named "this" as
7956 artificial (GCC/43521).
7957 (dwarf2_name): Add special handling for Java constructors.
7958
7959 2010-03-25 Tom Tromey <tromey@redhat.com>
7960
7961 PR gdb/11327, PR gdb/11328, PR breakpoints/11368:
7962 * infrun.c (handle_inferior_event): Change initialization of
7963 stop_stack_dummy.
7964 (handle_inferior_event): Change assignment to stop_stack_dummy.
7965 (normal_stop): Update use of stop_stack_dummy.
7966 (struct inferior_status) <stop_stack_dummy>: Change type.
7967 * inferior.h (stop_stack_dummy): Update.
7968 * infcmd.c (stop_stack_dummy): Change type.
7969 * infcall.c (cleanup_delete_std_terminate_breakpoint): New
7970 function.
7971 (call_function_by_hand): Call set_std_terminate_breakpoint.
7972 Rewrite std::terminate handling.
7973 * breakpoint.h (enum bptype) <bp_std_terminate,
7974 bp_std_terminate_master>: New.
7975 (enum stop_stack_kind): New.
7976 (struct bpstat_what) <call_dummy>: Change type.
7977 (set_std_terminate_breakpoint, delete_std_terminate_breakpoint):
7978 Declare.
7979 * breakpoint.c (create_std_terminate_master_breakpoint): New
7980 function.
7981 (update_breakpoints_after_exec): Handle bp_std_terminate_master.
7982 Call create_std_terminate_master_breakpoint.
7983 (print_it_typical): Handle new breakpoint kinds.
7984 (bpstat_stop_status): Handle bp_std_terminate_master.
7985 (bpstat_what): Correctly set call_dummy field. Handle
7986 bp_std_terminate_master and bp_std_terminate.
7987 (print_one_breakpoint_location): Update.
7988 (allocate_bp_location): Update.
7989 (set_std_terminate_breakpoint): New function.
7990 (delete_std_terminate_breakpoint): Likewise.
7991 (create_thread_event_breakpoint): Update.
7992 (delete_command): Update.
7993 (breakpoint_re_set_one): Update.
7994 (breakpoint_re_set): Call create_std_terminate_master_breakpoint.
7995
7996 2010-03-25 Jan Kratochvil <jan.kratochvil@redhat.com>
7997
7998 * symfile.c (build_section_addr_info_from_bfd): New.
7999 (build_section_addr_info_from_objfile): Base it on
8000 build_section_addr_info_from_bfd.
8001 (addrs_section_compar, addrs_section_sort): New.
8002 (addr_info_make_relative): New variables my_cleanup, abfd_addrs,
8003 addrs_sorted, abfd_addrs_sorted and addrs_to_abfd_addrs. Build
8004 addrs_to_abfd_addrs. Use it for recalculating ADDRS.
8005
8006 2010-03-24 Michael Snyder <msnyder@localhost.localdomain>
8007
8008 * elfread.c (find_separate_debug_file_by_buildid):
8009 Remove unused local variable.
8010
8011 2010-03-24 Tom Tromey <tromey@redhat.com>
8012
8013 PR breakpoints/9352:
8014 * NEWS: Mention changes to `commands' and `rbreak'.
8015 * symtab.c (do_end_rbreak_breakpoints): New function.
8016 (rbreak_command): Call start_rbreak_breakpoints; arrange to call
8017 end_rbreak_breakpoints.
8018 * breakpoint.c (breakpoint_count, tracepoint_count): Now static.
8019 (set_breakpoint_count): Likewise. Clear last_was_multi.
8020 (multi_start, multi_end, last_was_multi): New globals.
8021 (start_rbreak_breakpoints, end_rbreak_breakpoints): New
8022 functions.
8023 (struct commands_info): New
8024 (do_map_commands_command): New function.
8025 (commands_command_1): New function.
8026 (commands_command): Use it.
8027 (commands_from_control_command): Likewise.
8028 (do_delete_breakpoint): New function.
8029 (delete_command): Use it.
8030 (map_breakpoint_numbers): Add 'data' argument. Pass to callback.
8031 (do_map_disable_breakpoint): New function.
8032 (disable_command): Use it.
8033 (do_map_enable_breakpoint): New function.
8034 (enable_command): Use it.
8035 (enable_once_breakpoint): Add argument.
8036 (enable_once_command): Update.
8037 (enable_delete_breakpoint): Add argument.
8038 (enable_delete_command): Update.
8039 (break_command_really): Set last_was_multi when needed.
8040 (check_tracepoint_command): Fix formatting.
8041 (validate_commands_for_breakpoint): New function.
8042 (breakpoint_set_commands): Use it.
8043 (tracepoint_save_command): Update.
8044 * breakpoint.h (start_rbreak_breakpoints, end_rbreak_breakpoints):
8045 Declare.
8046
8047 2010-03-24 Tom Tromey <tromey@redhat.com>
8048
8049 * breakpoint.h (struct counted_command_line): New struct.
8050 (struct breakpoint) <commands>: Change type.
8051 (struct bpstats) <commands>: Change type.
8052 <commands_left>: New field.
8053 * breakpoint.c (alloc_counted_command_line): New function.
8054 (incref_counted_command_line): Likewise.
8055 (decref_counted_command_line): Likewise.
8056 (do_cleanup_counted_command_line): Likewise.
8057 (make_cleanup_decref_counted_command_line): Likewise.
8058 (breakpoint_set_commands): Use decref_counted_command_line and
8059 alloc_counted_command_line.
8060 (commands_command): Don't error if breakpoint commands are
8061 executing.
8062 (commands_from_control_command): Likewise.
8063 (bpstat_free): Update.
8064 (bpstat_copy): Likewise.
8065 (bpstat_clear_actions): Likewise.
8066 (bpstat_do_actions_1): Likewise.
8067 (bpstat_stop_status): Likewise.
8068 (print_one_breakpoint_location): Likewise.
8069 (delete_breakpoint): Likewise.
8070 (bpstat_alloc): Initialize new field.
8071 (tracepoint_save_command): Update.
8072 * tracepoint.c (encode_actions): Update.
8073 (trace_dump_command): Update.
8074
8075 2010-03-24 Daniel Jacobowitz <dan@codesourcery.com>
8076
8077 * dwarf2-frame.c (dwarf2_frame_find_quirks): Use producer_is_realview.
8078 * dwarf2read.c (load_full_comp_unit): Read DW_AT_producer.
8079 (read_structure_type): For RealView, set TYPE_STUB on structures with
8080 no byte size and no children.
8081 (read_subroutine_type): Mark functions as prototyped by default.
8082 * symtab.c (producer_is_realview): New function.
8083 * symtab.h (expand_line_sal): Fix declaration formatting.
8084 (producer_is_realview): Declare.
8085
8086 2010-03-24 Daniel Jacobowitz <dan@codesourcery.com>
8087
8088 * arm-tdep.c (skip_prologue_function): New function.
8089 (submask, bit, bits, sbits, BranchDest): Move higher in the file.
8090 (thumb_analyze_prologue): Document return value. Recognize more
8091 Thumb instructions, skippable calls, and some Thumb-2 instructions.
8092 Add debug output.
8093 (arm_skip_prologue): Remove call dummy check. Check the prologue
8094 for non-GNU compilers.
8095 (arm_instruction_changes_pc): New function.
8096 (arm_analyze_prologue): New function, broken out from
8097 arm_scan_prologue. Recognize more ARM instructions and skippable
8098 calls. Update comments. Handle NULL cache. Return the address
8099 of the first unrecognized instruction. Do not skip past other
8100 instructions which change control flow. Add debug output.
8101 (arm_scan_prologue): Use arm_analyze_prologue.
8102 (ARM_PC_32): Delete.
8103 (shifted_reg_val): Simplify ARM_PC_32 check.
8104
8105 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
8106
8107 * tracepoint.c (tvariables_info_1): Actually compute
8108 the number of rows in the result.
8109
8110 2010-03-24 Pedro Alves <pedro@codesourcery.com>
8111
8112 * remote.c (crc32): Constify `buf' parameter.
8113 (remote_verify_memory): New, abstracted out from...
8114 (compare_sections_command): ... this. Remove hardcoded target
8115 checks.
8116 (init_remote_ops): Install remote_verify_memory.
8117 * target.c (target_verify_memory): New.
8118 * target.h (struct target_ops) <to_verify_memory>: New field.
8119 (target_verify_memory): Declare.
8120
8121 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
8122
8123 Implement -trace-save.
8124
8125 * mi-cmds.h (mi_cmds_trace_save): Declare.
8126 * mi-cmds.c (mi_cmds): Register -trace-save.
8127 * mi/mi-main.c (mi_cmd_trace_save): New.
8128 * remote.c (remote_save_trace_data): Take const parameter.
8129 * target.h (struct target_ops::to_save_trace_data): Take
8130 const parameter.
8131 * target.c (update_current_target): Adjust to the above.
8132 * tracepoint.c (trave_save): New, extracted from
8133 (trace_save_command): ...this.
8134 (tfile_trace_find): Remove message that is unnecessary now
8135 that 'tfind' reports found frame.
8136 * tracepoint.h (trace_save): Declare.
8137
8138 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
8139
8140 Implement -trace-find.
8141
8142 * mi/mi-cmds.c (mi_cmds): Register -trace-find.
8143 * mi/mi-cmds.h (mi_cmd_trace_find): Declare.
8144 * mi/mi-main.c (mi_cmd_trace_find): New.
8145 * target.h (struct target_ops): Document to_trace_find.
8146 * tracepoint.h (tfind_1): Declare.
8147 * tracepoint.c (finish_tfind_command): Rename to...
8148 (tfind_1): ...this.
8149 * remote.c (remote_trace_find): Return -1 if target say
8150 there's no frame. Improve error diagnostics.
8151
8152 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
8153
8154 -trace-define-variable and -trace-list-variables.
8155
8156 * tracepoint.c (create_trace_state_variable): Make
8157 private copy of name, as opposed to assuming the
8158 pointer lives forever.
8159 (tvariables_info_1): New.
8160 (tvariables_info): Use the above.
8161 * tracepoint.h (create_trace_state_variable, tvariables_info_1):
8162 Declare.
8163 * mi/mi-cmds.c (mi_cmds): Register -trace-define-variable
8164 and -trace-list-variables.
8165 * mi/mi-cmds.h (mi_cmd_trace_define_variable)
8166 (mi_cmd_trace_list_variables): New.
8167 * mi/mi-main.c (mi_cmd_trace_define_variable)
8168 (mi_cmd_trace_list_variables): New.
8169
8170 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
8171
8172 Implement -break-passcount.
8173
8174 * mi/mi-cmd-break.c (mi_cmd_break_passcount): New.
8175 * mi/mi-cmds.c (mi_cmds): Register -break-passcount.
8176 * mi/mi-cmds.h (mi_cmd_break_passcount): Declare.
8177
8178 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
8179
8180 -trace-start/-trace-end/-trace-status.
8181
8182 * mi/mi-cmds.c (mi_cmds): Register -trace-start, -trace-status
8183 and -trace-stop.
8184 * mi/mi-cmds.h (mi_cmd_trace_start, mi_cmd_trace_status)
8185 (mi_cmd_trace_stop): Declare.
8186 * mi/mi-main.c (mi_cmd_trace_start, mi_cmd_trace_status)
8187 (mi_cmd_trace_stop): New.
8188 * tracepoint.c (start_tracing): New, extracted from...
8189 (trace_start_command): ...this.
8190 (trace_status_mi): New.
8191 * tracepoint.h (struct trace_status): Document
8192 stopping_tracepoint.
8193 (start_tracing, stop_tracing, trace_status_mi): Declare.
8194
8195 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
8196
8197 Implement creating tracepoints with -break-insert.
8198
8199 * mi/mi-cmd-break.c (mi_cmd_break_insert): Handle -a
8200 to mean that tracepoint should be created.
8201
8202 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
8203
8204 * breakpoint.c (check_no_tracepoint_commands): Use
8205 current spelling of 'teval'.
8206
8207 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
8208
8209 Unify actions and commands
8210
8211 * defs.h (read_command_lines, read_command_lines_1): New
8212 parameters validator and closure.
8213 * tracepoint.h (struct action_line): Remove.
8214 * breakpoint.h (struct breakpoint): Remove the 'actions'
8215 field.
8216 * defs.h (enum command_control_type): New value
8217 while_stepping_control.
8218 (struct command_line): Add comments.
8219 * breakpoint.c (breakoint_is_tracepoint): New.
8220 (breakpoint_set_commands): For tracepoints,
8221 verify the commands are permissible.
8222 (check_tracepoint_commands): New.
8223 (commands_command): Require that each new line is validated using
8224 check_tracepoint_command, if we set commands for a tracepoint.
8225 (create_tracepoint_from_upload): Likewise.
8226 (print_one_breakpoint_location): Remove the code to print
8227 actions specifically.
8228 (tracepoint_save_command): Relay to print_command_lines.
8229 * cli/cli-script.c (process_next_line): New parameters validator
8230 and closure. Handle 'while-stepping'. Call validator if not null.
8231 (read_command_lines, read_command_lines1): Likewise.
8232 (recurse_read_control_structure): New parameters validator and
8233 closure. Handle while_stepping_control.
8234 (print_command_lines): Handle while-stepping.
8235 (get_command_line, define_command, document_command): Adjust.
8236 * remote.c (remote_download_tracepoint): Adjust.
8237 * tracepoint.c (make_cleanup_free_actions, read_actions)
8238 (free_actions, do_free_actions_cleanup): Remove.
8239 (trace_actions_command): Use read_command_lines.
8240 (validate_actionline): Use error in one place.
8241 (encode_actions_1): New, extracted from...
8242 (encode_actions): ...this. Also use cleanups for exception
8243 safety.
8244 (trace_dump_command): Adjust.
8245 * mi/mi-cmd-break (mi_cmd_break_commands): Validate commands if
8246 it's tracepoint.
8247
8248 2010-03-23 Mike Frysinger <vapier@gentoo.org>
8249
8250 * Makefile.in (OPCODES_CFLAGS): Add -I$(OPCODES_SRC)/..
8251
8252 2010-03-22 Stan Shebs <stan@codesourcery.com>
8253
8254 * value.c (value_static_field): Be lazy about the field's value.
8255
8256 2010-03-22 Reid Kleckner <reid@kleckner.net>
8257
8258 PR gdb/11094
8259 * breakpoint.c (disable_breakpoints_in_unloaded_shlib): Add
8260 bp_jit_event.
8261 (disable_breakpoints_in_shlibs): Likewise.
8262
8263 2010-03-22 Ulrich Weigand <uweigand@de.ibm.com>
8264
8265 * dwarf2read.c (partial_die_parent_scope): Work around buggy
8266 GCC 4.1 debug info generation (GCC PR c++/28460).
8267 (determine_prefix): Likewise.
8268
8269 2010-03-20 Daniel Jacobowitz <dan@codesourcery.com>
8270
8271 * tui/tui-disasm.c (tui_get_begin_asm_address): Default to
8272 get_current_arch.
8273 * tui/tui-layout.c (extract_display_start_addr): Likewise.
8274
8275 2010-03-19 Stan Shebs <stan@codesourcery.com>
8276
8277 * ax-gdb.c (gen_fetch): Handle bool.
8278 (gen_usual_unary): Ditto.
8279 (gen_cast): Ditto.
8280 (gen_equal): New function.
8281 (gen_less): New function.
8282 (gen_expr_binop_rest): Call them, also return integer type from
8283 logical operations.
8284 (gen_expr): Ditto.
8285
8286 2010-03-19 Tom Tromey <tromey@redhat.com>
8287
8288 * jv-lang.c (jv_dynamics_objfile_data_key)
8289 (jv_type_objfile_data_key): New globals.
8290 (class_symtab): Move earlier.
8291 (jv_per_objfile_free): New function.
8292 (get_dynamics_objfile): Call set_objfile_data. Add 'gdbarch'
8293 parameter.
8294 Remove ancient #if 1.
8295 (add_class_symbol): Remove redundant declaration.
8296 (java_lookup_class): Use alloc_type, not alloc_type_arch.
8297 (java_link_class_type): Mark as static. Update.
8298 (jv_clear_object_type): New function.
8299 (set_java_object_type): Likewise.
8300 (get_java_object_type): Use set_java_object_type.
8301 (is_object_type): Likewise.
8302 (_initialize_java_language): Register new objfile keys.
8303 (get_java_class_symtab): Add 'gdbarch' parameter.
8304 (add_class_symtab_symbol): Update.
8305 (type_from_class): Update.
8306
8307 2010-03-19 Stan Shebs <stan@codesourcery.com>
8308
8309 * ax-general.c (ax_const_l): Fix a sizing bug.
8310
8311 2010-03-18 Joel Brobecker <brobecker@adacore.com>
8312
8313 GDB 7.1 released.
8314
8315 2010-03-18 Stan Shebs <stan@codesourcery.com>
8316 Pedro Alves <pedro@codesourcery.com>
8317
8318 * target.h (struct target_ops): New method
8319 to_set_circular_trace_buffer.
8320 (target_set_circular_trace_buffer): New macro.
8321 * target.c (update_current_target): Add
8322 to_set_circular_trace_buffer, fix to_set_disconnected_tracing
8323 default behavior.
8324 * remote.c (remote_set_circular_trace_buffer): New function.
8325 (init_remote_ops): Add it to vector.
8326 * tracepoint.h (struct trace_status): New field traceframes_created,
8327 change buffer_size and buffer_free to int.
8328 * tracepoint.c (circular_trace_buffer): New global.
8329 (start_tracing): Send values of disconnected tracing and circular
8330 trace buffer settings.
8331 (set_circular_trace_buffer): New function.
8332 (parse_trace_state): Handle total space and frames created.
8333 (trace_status_command): Display total space and total frames
8334 created.
8335 (trace_save): Write out new status values.
8336 (parse_trace_status): Set traceframe_count, traceframes_created,
8337 buffer_free and buffer_size to -1 by default.
8338 (_initialize_tracepoint): New setshow for circular-trace-buffer.
8339 * NEWS: Mention the circular trace buffer option.
8340
8341 2010-03-18 Tom Tromey <tromey@redhat.com>
8342
8343 * infcmd.c (finish_command_continuation): Wrap print_return_value
8344 in TRY_CATCH.
8345
8346 2010-03-18 Joel Brobecker <brobecker@adacore.com>
8347
8348 * dwarf2read.c (add_partial_subprogram): Make sure the subprogram
8349 DIE has a name before creating the associated partial symbol.
8350 (read_func_scope): Emit a complaint if the subprogram does not
8351 have a name or when we can't extract the subprogram PC bounds.
8352
8353 2010-03-18 Ulrich Weigand <uweigand@de.ibm.com>
8354
8355 * mi/mi-main.c (mi_cmd_list_thread_groups): Use get_current_arch
8356 instead of selected frame architecture.
8357
8358 2010-03-18 Pedro Alves <pedro@codesourcery.com>
8359
8360 * infcmd.c (until_command): Use ERROR_NO_INFERIOR. Ensure there's
8361 a valid selected thread, and that it is not running.
8362 (advance_command): Ditto.
8363 (finish_command): Ditto.
8364
8365 2010-03-17 Stan Shebs <stan@codesourcery.com>
8366
8367 * ax-gdb.c (require_rvalue): Disallow non-scalars.
8368
8369 * infcall.c: Include tracepoint.h.
8370 (call_function_by_hand): Disallow calls in tfind mode.
8371 * infcmd.c: Include tracepoint.h.
8372 (ensure_not_tfind_mode): New function.
8373 (continue_1): Call it.
8374 (step_1) Ditto.
8375 (jump_command): Ditto.
8376 (signal_command): Ditto.
8377 (advance_command): Ditto.
8378 (until_command): Ditto.
8379 (finish_command): Ditto.
8380 * tracepoint.h (disconnect_or_stop_tracing): Declare.
8381
8382 * ax-gdb.h (struct axs_value): New field optimized_out.
8383 (gen_trace_for_var): Add gdbarch argument.
8384 * ax-gdb.c (gen_trace_static_fields): New function.
8385 (gen_traced_pop): Call it, add gdbarch argument.
8386 (gen_trace_for_expr): Update call to it.
8387 (gen_trace_for_var): Ditto, and report optimized-out variables.
8388 (gen_struct_ref_recursive): Check for optimized-out value.
8389 (gen_struct_elt_for_reference): Ditto.
8390 (gen_static_field): Pass gdbarch instead of expression, assume
8391 optimization if field not found.
8392 (gen_var_ref): Set the optimized_out flag.
8393 (gen_expr): Error on optimized-out variable.
8394 * tracepoint.c (collect_symbol): Handle struct-valued vars as
8395 expressions, skip optimized-out variables with computed locations.
8396 * dwarf2loc.c (dwarf2_tracepoint_var_ref): Flag instead of
8397 erroring out if location expression missing.
8398 (loclist_tracepoint_var_ref): Don't error out here.
8399
8400 2010-03-17 Tom Tromey <tromey@redhat.com>
8401
8402 * dwarf2read.c (dwarf2_get_section_info): Handle case where no
8403 DWARF data is available.
8404
8405 2010-03-17 Daniel Jacobowitz <dan@codesourcery.com>
8406
8407 * symfile.c (generic_load): Reset breakpoints after loading.
8408
8409 2010-03-17 Tom Tromey <tromey@redhat.com>
8410
8411 * linux-nat.c (linux_nat_detach): Check debug_linux_nat.
8412
8413 2010-03-17 Jan Kratochvil <jan.kratochvil@redhat.com>
8414
8415 * spu-tdep.c (spu_catch_start): Replace set_breakpoint call with the
8416 create_breakpoint call, adjust the parameters.
8417
8418 2010-03-16 Jan Kratochvil <jan.kratochvil@redhat.com>
8419 Chandru <chandru@in.ibm.com>
8420
8421 * dwarf2read.c (read_subrange_type): Set TYPE_HIGH_BOUND_UNDEFINED.
8422 * valarith.c (value_subscripted_rvalue): Suppress error if
8423 TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED.
8424
8425 2010-03-16 Holger Hans Peter Freyther <zecke@selfish.org>
8426
8427 * linux-record.c (record_linux_msghdr): Remove unintended semicolons.
8428
8429 2010-03-16 Joel Brobecker <brobecker@adacore.com>
8430
8431 * ada-tasks.c (task_command_1): Check that the task ptid is valid
8432 before doing the associated thread switch.
8433
8434 2010-03-16 Daniel Jacobowitz <dan@codesourcery.com>
8435
8436 * MAINTAINERS: Update my email address.
8437
8438 2010-03-16 Vladimir Prus <vladimir@codesourcery.com>
8439
8440 Simplify MI breakpoint setting.
8441
8442 * breakpoint.c (break_command_really): Make nonstatic and
8443 rename to...
8444 (create_breakpoint): ...this. Rename prior function by this name
8445 to...
8446 (create_breakpoint_sal): ...this.
8447 (create_breakpoints): Rename to...
8448 (create_breakpoints_sal): ...this.
8449 (set_breakpoint): Remove.
8450 * breakpoint.h: Adjust to above changes.
8451 * mi/mi-cmd-break.c (mi_cmd_break_insert): Simplify.
8452
8453 2010-03-15 Stan Shebs <stan@codesourcery.com>
8454
8455 * ax-gdb.c: Include cp-support.h.
8456 (find_field): Remove.
8457 (gen_primitive_field): New function.
8458 (gen_struct_ref_recursive): New function.
8459 (gen_struct_ref): Rewrite to call gen_struct_ref_recursive instead
8460 of find_field.
8461 (gen_static_field): New function.
8462 (gen_struct_elt_for_reference): New.
8463 (gen_namespace_elt): New.
8464 (gen_maybe_namespace_elt): New.
8465 (gen_aggregate_elt_ref): New.
8466 (gen_expr): Add OP_SCOPE, display opcode name in error message.
8467
8468 2010-03-15 Tom Tromey <tromey@redhat.com>
8469
8470 * dwarf2read.c (die_needs_namespace): Also return 0 for
8471 DW_TAG_subprogram.
8472
8473 2010-03-15 Sami Wagiaalla <swagiaal@redhat.com>
8474
8475 PR c++/7936:
8476 * cp-support.h: Added char *declaration element to using_direct
8477 data struct.
8478 (cp_add_using): Added char *declaration argument.
8479 (cp_add_using_directive): Ditto.
8480 (cp_lookup_symbol_imports): made extern.
8481 * cp-namespace.c: Updated with the above changes.
8482 * dwarf2read.c (read_import_statement): Ditto.
8483 (read_namespace): Ditto.
8484 (read_import_statement): Support import declarations.
8485 * cp-namespace.c (cp_lookup_symbol_imports): Check for imported
8486 declarations.
8487 Added support for 'declaration_only' search.
8488 (cp_lookup_symbol_namespace): Attempt to search for the name as
8489 is before consideration of imports.
8490 * symtab.c (lookup_symbol_aux_local): Added a 'declaration_only'
8491 search at every block level search.
8492 Now takes language argument.
8493 (lookup_symbol_aux): Updated.
8494
8495 2010-03-15 Tom Tromey <tromey@redhat.com>
8496
8497 * c-exp.y (name_not_typename): Add 'operator' clause.
8498
8499 2010-03-15 Ralf Corsepius <ralf.corsepius@rtems.org> (tiny change)
8500
8501 * configure.ac: Exit if ${gdb_target_obs}" is not set.
8502 * configure: Regenerate.
8503
8504 2010-03-15 Jan Kratochvil <jan.kratochvil@redhat.com>
8505
8506 * symfile.c (addr_info_make_relative): Ignore also missing ".dynbss"
8507 and ".sdynbss". Update the comment.
8508
8509 2010-03-15 Jie Zhang <jie@codesourcery.com>
8510
8511 * MAINTAINERS: Update my email address.
8512
8513 2010-03-14 Daniel Jacobowitz <dan@codesourcery.com>
8514
8515 * gdbtypes.h (TYPE_IS_OPAQUE): Correct HAVE_CPLUS_STRUCT check.
8516
8517 2010-03-14 Daniel Jacobowitz <dan@codesourcery.com>
8518
8519 * charset.c [USE_WIN32API]: Include <windows.h>.
8520 (_initialize_charset): Correct type of w32_host_default_charset.
8521
8522 2010-03-14 Pedro Alves <pedro@codesourcery.com>
8523
8524 * infrun.c (ptid_match): Don't assert that PTID is not a pid ptid.
8525
8526 2010-03-12 Tom Tromey <tromey@redhat.com>
8527
8528 PR c++/9708:
8529 * dwarf2read.c (die_needs_namespace) <DW_TAG_variable>: A variable
8530 in a lexical block does not need a namespace.
8531 (new_symbol) <DW_TAG_variable>: Put extern variables on
8532 list_in_scope in all cases.
8533
8534 2010-03-12 Stan Shebs <stan@codesourcery.com>
8535
8536 * ax-gdb.c (gen_expr): Add shift expressions.
8537 (gen_expr_binop_rest): Ditto.
8538
8539 2010-03-12 Sami Wagiaalla <swagiaal@redhat.com>
8540
8541 * buildsym.c (finish_block): Reset using_directives pointer
8542 after block initialization.
8543
8544 2010-03-12 H.J. Lu <hongjiu.lu@intel.com>
8545
8546 * amd64-tdep.c (amd64_word_names): Replace "sp" with "".
8547 * i386-tdep.c (i386_word_names): Likewise.
8548
8549 2010-03-12 Pedro Alves <pedro@codesourcery.com>
8550
8551 * target.c (memory_xfer_partial): Don't use the stack cache if
8552 inspecting trace frames.
8553 * tracepoint.c (finish_tfind_command): Invalidate the target
8554 dcache.
8555
8556 2010-03-11 Jan Kratochvil <jan.kratochvil@redhat.com>
8557
8558 * solib-svr4.c (LM_ADDR_CHECK) <info_verbose>: Use printf_unfiltered
8559 for the PIC displacement, print also the displacement value.
8560 (svr4_exec_displacement): Print DISPLACEMENT if INFO_VERBOSE.
8561
8562 2010-03-10 Kevin Buettner <kevinb@redhat.com>
8563
8564 * remote-mips.c (close_ports, mips_initialize_cleanups)
8565 (mips_exit_cleanups, mips_send_command, mips_open, pmon_open)
8566 (ddb_open, lsi_open, mips_remove_breakpoint, mips_remove_watchpoint)
8567 (mips_stopped_by_watchpoint, send_srec, pmon_checkset)
8568 (pmon_make_fastrec, pmon_check_ack, mips_expect_download)
8569 (pmon_check_entry_address, pmon_check_total, pmon_end_download)
8570 (pmon_download, pmon_load_fast, _initialize_remote_mips): Add
8571 comments describing each of these functions.
8572 (mips_enter_debug, mips_exit_debug, common_open)
8573 (mips_signal_from_protocol, pmon_makeb64, pmon_zeroset): Add
8574 blank line after the comment describing the function.
8575
8576 2010-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
8577
8578 * solib-svr4.c (svr4_exec_displacement): Return now success, new
8579 parameter displacementp. Update comment.
8580 (svr4_relocate_main_executable): Return if non-zero SECTION_OFFSETS
8581 element exists. Return if svr4_exec_displacement was not successful.
8582 Update comment.
8583
8584 2010-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
8585 Daniel Jacobowitz <dan@codesourcery.com>
8586
8587 * solib-svr4.c (read_program_header): Support type == -1 to read
8588 all program headers.
8589 (read_program_headers_from_bfd): New function.
8590 (svr4_static_exec_displacement): Remove and move the comment ...
8591 (svr4_exec_displacement): ... here. Remove variable found. New
8592 variable displacement. Check also DYNAMIC. Verify DISPLACEMENT
8593 alignment for ELF targets. Compare target vs. exec_bfd PHDRs for ELF
8594 targets using read_program_headers_from_bfd. Remove the call of
8595 svr4_static_exec_displacement.
8596
8597 2010-03-10 Tom Tromey <tromey@redhat.com>
8598
8599 * dwarf2read.c (struct pubnames_header): Remove.
8600 (_PUBNAMES_HEADER): Remove.
8601 (_ACTUAL_PUBNAMES_HEADER_SIZE): Remove.
8602 (struct aranges_header): Remove.
8603 (_ARANGES_HEADER, _ACTUAL_ARANGES_HEADER_SIZE): Remove.
8604 (struct dwarf2_per_objfile) <pubnames, aranges>: Remove.
8605 (PUBNAMES_SECTION): Remove.
8606 (ARANGES_SECTION): Remove.
8607 (dwarf2_locate_sections): Don't handle pubnames or aranges.
8608 (dwarf2_build_psymtabs): Remove dead code.
8609 (dwarf2_build_psymtabs_easy): Remove.
8610
8611 2010-03-10 Tom Tromey <tromey@redhat.com>
8612
8613 * elfread.c (elf_symfile_read): Don't call
8614 dwarf2_build_frame_info.
8615 * dwarf2read.c (struct dwarf2_section_info) <readin>: New field.
8616 (struct dwarf2_per_objfile) <objfile>: New field.
8617 (dwarf2_has_info): Now idempotent. Set objfile field.
8618 (dwarf2_read_section): Check and set readin field. Call
8619 posix_madvise.
8620 (dwarf2_build_psymtabs): Don't read all sections.
8621 (read_type_comp_unit_head): Read types section.
8622 (create_debug_types_hash_table): Likewise.
8623 (init_cu_die_reader): Add asserts.
8624 (process_type_comp_unit): Add assert.
8625 (dwarf2_build_psymtabs_hard): Read info section.
8626 (load_partial_comp_unit): Add assert.
8627 (create_all_comp_units): Read info section.
8628 (load_full_comp_unit): Likewise.
8629 (dwarf2_ranges_read): Read ranges section.
8630 (dwarf2_record_block_ranges): Add assert.
8631 (dwarf2_read_abbrevs): Read abbrev section.
8632 (read_indirect_string): Read str section.
8633 (dwarf_decode_line_header): Read line section.
8634 (read_signatured_type_at_offset): Read types section.
8635 (dwarf_decode_macros): Read macinfo section.
8636 (dwarf2_symbol_mark_computed): Read loc section.
8637 * dwarf2-frame.c (dwarf2_frame_find_fde): Call
8638 dwarf2_build_frame_info.
8639 (dwarf2_build_frame_info): Unconditionally set
8640 dwarf2_frame_objfile_data on the objfile.
8641 * configure.ac: Check for posix_madvise.
8642 * config.in, configure: Rebuild.
8643
8644 2010-03-10 Tom Tromey <tromey@redhat.com>
8645
8646 * xcoffread.c (xcoff_start_psymtab): Update.
8647 (xcoff_end_psymtab): Update.
8648 * psymtab.c (allocate_psymtab): Remove dead code.
8649 * psympriv.h (struct partial_symtab) <read_symtab_private>: Now
8650 void*.
8651 * mdebugread.c (parse_partial_symbols): Update.
8652 (new_psymtab): Likewise.
8653 * dwarf2read.c (process_psymtab_comp_unit): Update.
8654 (psymtab_to_symtab_1): Update.
8655 * dbxread.c (start_psymtab): Update.
8656 (end_psymtab): Likewise.
8657
8658 2010-03-10 Tom Tromey <tromey@redhat.com>
8659
8660 * xcoffread.c: Include psymtab.h.
8661 (xcoff_sym_fns): Update.
8662 * symtab.h (struct partial_symbol): Remove.
8663 (PSYMBOL_DOMAIN, PSYMBOL_CLASS): Remove.
8664 (struct partial_symtab): Remove.
8665 (PSYMTAB_TO_SYMTAB): Remove.
8666 (lookup_partial_symbol, lookup_partial_symtab, find_pc_psymtab)
8667 (find_pc_sect_psymtab): Remove.
8668 (find_pc_sect_symtab_via_partial): Declare.
8669 (find_pc_psymtab, find_pc_sect_psymbol, psymtab_to_symtab)
8670 (find_main_psymtab): Remove.
8671 (find_main_filename): Declare.
8672 (fixup_psymbol_section): Remove.
8673 (fixup_section): Declare.
8674 * symtab.c: Include psymtab.h.
8675 (lookup_symtab): Use lookup_symtab method.
8676 (lookup_partial_symtab): Remove.
8677 (find_pc_sect_psymtab_closer): Remove.
8678 (find_pc_sect_psymtab): Remove.
8679 (find_pc_sect_symtab_via_partial): New function.
8680 (find_pc_psymtab, find_pc_sect_psymbol, find_pc_psymbol): Remove.
8681 (fixup_section): No longer static.
8682 (fixup_psymbol_section): Remove.
8683 (lookup_symbol_aux): Use lookup_symbol_aux_quick.
8684 (lookup_global_symbol_from_objfile): Likewise.
8685 (lookup_symbol_aux_psymtabs): Remove.
8686 (lookup_symbol_aux_quick): New function.
8687 (lookup_symbol_global): Use lookup_symbol_aux_quick.
8688 (lookup_partial_symbol): Remove.
8689 (basic_lookup_transparent_type_quick): New function.
8690 (basic_lookup_transparent_type): Use it.
8691 (find_main_psymtab): Remove.
8692 (find_main_filename): New function.
8693 (find_pc_sect_symtab): Use find_pc_sect_symtab method.
8694 (find_line_symtab): Use expand_symtabs_with_filename method.
8695 (output_partial_symbol_filename): New function.
8696 (sources_info): Use map_partial_symbol_filenames.
8697 (struct search_symbols_data): New type.
8698 (search_symbols_file_matches): New function.
8699 (search_symbols_name_matches): Likewise.
8700 (search_symbols): Use expand_symtabs_matching method.
8701 (struct add_name_data): Rename from add_macro_name_data.
8702 (add_macro_name): Update.
8703 (add_partial_symbol_name): New function.
8704 (default_make_symbol_completion_list): Use
8705 map_partial_symbol_names.
8706 (struct add_partial_symbol_name): New type.
8707 (maybe_add_partial_symtab_filename): New function.
8708 (make_source_files_completion_list): Use
8709 map_partial_symbol_filenames.
8710 (expand_line_sal): Use expand_symtabs_with_filename method.
8711 * symmisc.c: Include psymtab.h.
8712 (print_objfile_statistics): Use print_stats method.
8713 (dump_objfile): Use dump method.
8714 (dump_psymtab, maintenance_print_psymbols)
8715 (maintenance_info_psymtabs, maintenance_check_symtabs)
8716 (extend_psymbol_list): Remove.
8717 * symfile.h (struct quick_symbol_functions): New struct.
8718 (struct sym_fns) <qf>: New field.
8719 (sort_pst_symbols): Remove.
8720 (increment_reading_symtab): Declare.
8721 * symfile.c: Include psymtab.h.
8722 (compare_psymbols, sort_pst_symbols): Remove.
8723 (psymtab_to_symtab): Remove.
8724 (increment_reading_symtab): New function.
8725 (symbol_file_add_with_addrs_or_offsets): Use expand_all_symtabs
8726 method.
8727 (set_initial_language): Use find_main_filename.
8728 (allocate_psymtab, discard_psymtab, cashier_psymtab): Remove.
8729 (free_named_symtabs): Remove unused code.
8730 (start_psymtab_common, add_psymbol_to_bcache)
8731 (append_psymbol_to_list, add_psymbol_to_list, init_psymbol_list):
8732 Remove.
8733 * stack.c: Include psymtab.h, symfile.h.
8734 (backtrace_command_1): Use find_pc_sect_symtab_via_partial.
8735 * source.h (psymtab_to_fullname): Don't declare.
8736 * source.c: Include psymtab.h.
8737 (select_source_symtab): Use find_last_source_symtab method.
8738 (forget_cached_source_info): Use forget_cached_source_info
8739 method.
8740 (find_and_open_source): No longer static.
8741 (psymtab_to_fullname): Remove.
8742 * somread.c: Include psymtab.h.
8743 (som_sym_fns): Update.
8744 * psympriv.h: New file.
8745 * psymtab.h: New file.
8746 * psymtab.c: New file.
8747 * objfiles.h: (ALL_OBJFILE_PSYMTABS): Remove.
8748 (ALL_PSYMTABS, ALL_PSPACE_PSYMTABS): Likewise.
8749 * objfiles.c: Include psymtab.h.
8750 (objfile_relocate1): Use relocate method.
8751 (objfile_has_partial_symbols): Use has_symbols method.
8752 * mipsread.c: Include psymtab.h.
8753 (ecoff_sym_fns): Update.
8754 * mi/mi-cmd-file.c: Include psymtab.h.
8755 (print_partial_file_name): New function.
8756 (mi_cmd_file_list_exec_source_files): Use
8757 map_partial_symbol_filenames.
8758 * mdebugread.c: Include psympriv.h.
8759 * machoread.c: Include psympriv.h.
8760 (macho_sym_fns): Update.
8761 * m2-exp.y (yylex): Use lookup_symtab.
8762 * elfread.c: Include psympriv.h.
8763 (elf_sym_fns): Update.
8764 * dwarf2read.c: Include psympriv.h.
8765 * dbxread.c: Include psympriv.h.
8766 (aout_sym_fns): Update.
8767 * cp-support.c: Include psymtab.h.
8768 (read_in_psymtabs): Remove.
8769 (make_symbol_overload_list_qualified): Use
8770 expand_symtabs_for_function method.
8771 * coffread.c: Include psympriv.h.
8772 (coff_sym_fns): Update.
8773 * blockframe.c: Include psymtab.h.
8774 (find_pc_partial_function): Use find_pc_sect_symtab method.
8775 * ada-lang.h (ada_update_initial_language): Update.
8776 * ada-lang.c: Include psymtab.h.
8777 (ada_update_initial_language): Remove 'main_pst' argument.
8778 (ada_lookup_partial_symbol): Remove.
8779 (struct ada_psym_data): New type.
8780 (ada_add_psyms): New function.
8781 (ada_add_non_local_symbols): Use map_ada_symtabs method.
8782 (struct add_partial_datum): New type.
8783 (ada_add_partial_symbol_completions): New function.
8784 (ada_make_symbol_completion_list): Use map_partial_symbol_names.
8785 (ada_exception_support_info_sniffer): Update.
8786 * Makefile.in (SFILES): Add psymtab.c.
8787 (COMMON_OBS): Add psymtab.o.
8788 (HFILES_NO_SRCDIR): Add psymtab.h, psympriv.h.
8789
8790 2010-03-10 Pierre Muller <muller@ics.u-strasbg.fr>
8791
8792 * remote-fileio.c (cygwin_conv_path): Define macro for old cygwin API.
8793
8794 2010-03-10 Sami Wagiaalla <swagiaal@redhat.com>
8795
8796 PR C++/11236:
8797 * cp-namespace.c (cp_add_using): Deleted.
8798 (cp_add_using_directive): Use obstack allocations.
8799 Merged the function cp_add_using into this one.
8800 Added 'struct obstack *' argument.
8801 (cp_scan_for_anonymous_namespaces): Updated.
8802 * cp-support.h: Updated.
8803 * dwarf2read.c (read_import_statement): Updated.
8804 (read_namespace): Updated.
8805
8806 2010-03-10 Pierre Muller <muller@ics.u-strasbg.fr>
8807
8808 * windows-nat.c (cygwin_conv_path): Remove old macro.
8809
8810 2010-03-10 Pedro Alves <pedro@codesourcery.com>
8811
8812 * breakpoint.c (condition_command): Handle watchpoint conditions.
8813 (is_hardware_watchpoint): Add comment.
8814 (is_watchpoint): New.
8815 (update_watchpoint): Don't reparse the watchpoint's condition
8816 unless necessary.
8817 (WP_IGNORE): New.
8818 (watchpoint_check): Use it.
8819 (bpstat_check_watchpoint): Handle it.
8820 (bpstat_check_breakpoint_conditions): Evaluate watchpoint local
8821 conditions in a frame where it makes sense.
8822 (watch_command_1): Store the innermost block of the condition
8823 expression.
8824 (delete_breakpoint): Delete the watchpoint condition expression.
8825 * breakpoint.h (struct bp_location) <cond>: Update comment.
8826 (struct breakpoint): New field `cond_exp_valid_block'.
8827
8828 2010-03-09 Joel Brobecker <brobecker@adacore.com>
8829
8830 Adjust handling of Ada DIEs after dwarf2_physname patch.
8831 * dwarf2read.c (dwarf2_compute_name): Add handling of Ada DIEs.
8832
8833 2010-03-09 Christopher Faylor <me+cygwin@cgf.cx>
8834 Pierre Muller <muller@ics.u-strasbg.fr>
8835
8836 * windows-nat.c (cygwin_conv_path): Redefine to properly convert
8837 from/to posix/win32.
8838 (windows_make_so): Use non-Cygwin 1.7 specific function.
8839 (windows_create_inferior): Make sure that cygallargs points to
8840 original args in non Cygwin 1.7. case.
8841
8842 2010-03-09 Michael Snyder <msnyder@vmware.com>
8843
8844 * i386-tdep.c (i386_record_lea_modrm_addr): Use extract_signed_int
8845 after target_read_memory to get host byte order.
8846 (i386_process_record): Ditto.
8847
8848 2010-03-09 Keith Seitz <keiths@redhat.com>
8849
8850 Based on work from Daniel Jacobowitz <dan@codesourcery.com>
8851 * c-typeprint.c (cp_type_print_method_args): For non-static methods,
8852 print out const or volatile qualifiers, too.
8853 (c_type_print_args): Add parameters show_artificial and language.
8854 Skip artificial parameters when requested.
8855 Use the appropriate language printer.
8856 (c_type_print_varspec): Tell c_type_print_args to skip artificial
8857 parameters and pass language_c.
8858 * dwarf2read.c (die_list): New file global.
8859 (struct partial_die_info): Update comments for name field.
8860 (pdi_needs_namespace): Renamed to ...
8861 (die_needs_namespace): ... this. Rewrite.
8862 (dwarf2_linkage_name): Remove.
8863 (add_partial_symbol): Do not predicate the call to
8864 partial_die_full_name based on pdi_needs_namespace.
8865 Remove call to cp_check_possible_namespace_symbols and associated
8866 outdated comments.
8867 (guess_structure_name): Do not inspect child subprogram DIEs.
8868 (dwarf2_fullname): Update comments.
8869 Use die_needs_namespace to assist in computing the name.
8870 (read_func_scope): Use dwarf2_name to get the DIE's name.
8871 Use dwarf2_physname to get the "linkage name" of the DIE.
8872 (dwarf2_add_member_field): Use dwarf2_physname instead of
8873 dwarf2_linkage_name.
8874 (read_structure_type): For structs and classes, set TYPE_NAME, too.
8875 (determine_class): Remove.
8876 (read_partial_die): Ignore DW_AT_MIPS_linkage_name for all languages
8877 except Ada.
8878 (new_symbol): Unconditionally call dwarf2_name.
8879 Compute the "linkage name" using dwarf2_physname.
8880 Use dwarf2_name instead of dwarf2_full_name for enumerator DIEs.
8881 When determining to scan for anonymous C++ namespaces, ignore
8882 the linkage name.
8883 (dwarf2_physname): New function.
8884 (dwarf2_full_name): Move content to new function and call
8885 that.
8886 (dwarf2_compute_name): "New" function.
8887 (_initialize_dwarf2_read): Initialize die_list.
8888 * gnu-v3-eabi.c (gnu_v3_find_method_in): Remove unused variable
8889 physname.
8890 (gnu_v3_print_method_ptr): Use the physname for virtual methods
8891 without a demangled name.
8892 Print out type information for non-virtual methods.
8893 * linespec.c (decode_line_1): Force ANY string using "::" (or
8894 "." for java) to use decode_compound, and clean up any stray quoting.
8895 If we found a file symtab, re-evaluate whether the remainder is_quoted.
8896 (decode_compound): Stop consuming at an open parenthesis.
8897 Keep template parameters.
8898 Keep any overload information.
8899 Keep keywords like "const".
8900 Remove paren_pointer.
8901 Move is_quoted check from set_flags to here.
8902 Remove #if 0 code from 2000. Ten years is long enough.
8903 (find_method): Before comparing symbol names, canonicalize the string
8904 from the user.
8905 If a specific overload is requested, find it. Otherwise throw an error.
8906 (find_method_overload_end): New function.
8907 (set_flags): Remove.
8908 (decode_compound): Assume that parentheses are matched.
8909 It's a lot easier.
8910 * symtab.c (symbol_find_demangled_name): Add DMGL_VERBOSE flag
8911 to cplus_demangle.
8912 * linespec.c (decode_line_1): Keep important keywords like
8913 "const" and "volatile".
8914 * symtab.h (SYMBOL_CPLUS_DEMANGLED_NAME): Remove.
8915 * typeprint.h (c_type_print_args): Add declaration.
8916 * ui-file.c (do_ui_file_obsavestring): New function.
8917 (ui_file_obsavestring): New function.
8918 * ui-file.h (ui_file_obsavestring): Add declaration.
8919 * valops.c (find_overload_match): Resolve the object to
8920 a non-pointer type.
8921 If the object is a data member, search the object for the member
8922 and return with staticp set.
8923 Use SYMBOL_NATURAL_NAME instead of SYMBOL_CPLUS_DEMANGLED_NAME.
8924 Do not attempt to extract a function name from non-function types.
8925 If the extracted function name and the original name are the same,
8926 we don't have a C++ method.
8927
8928 From Jan Kratochvil <jan.kratochvil@redhat.com>:
8929 * dwarf2read.c (new_symbol <DW_TAG_enumerator>): Call dwarf2_full_name.
8930
8931 * ada-lang.c (ada_lookup_symbol): Remove linkage_name parameters
8932 and arguments from symbol lookups.
8933 * ax-gdb.c (gen_expr): Likewise.
8934 * cp-namespace.c (cp_lookup_symbol_nonlocal, lookup_namespace_scope,
8935 cp_lookup_symbol_namespace, lookup_symbol_file, lookup_nested_type,
8936 lookup_possible_namespace_symbol): Likewise.
8937 * cp-support.c (read_in_psymtabs): Likewise.
8938 * cp-support.h (cp_lookup_symbol_nonlocal): Likewise.
8939 * language.h (la_lookup_symbol_nonlocal): Likewise.
8940 * scm-valprint.c (scm_inferior_print): Likewise.
8941 * solib-darwin.c (darwin_relocate_section_addresses): Likewise.
8942 * solib-svr.c (elf_lookup_lib): Likewise.
8943 * solib.c (show_auto_solib_add): Likewise.
8944 * solist.h (lookup_lib_global, solib_global_lookup): Likewise.
8945 * symmisc.c (maintenance_check_symtabs): Likewise.
8946 * symtab.c (lookup_symbol_in_language, lookup_symbol_aux,
8947 lookup_symbol_aux_local, lookup_symbol_aux_block,
8948 lookup_symbol_from_objfile, lookup_symbol_aux_symtabs,
8949 lookup_symbol_aux_psymtabs,basic_lookup_symbol_nonlocal,
8950 lookup_symbol_static, lookup_symbol_global, symbol_matches_domain,
8951 basic_lookup_transparent_type, find_main_psymtab,
8952 lookup_block_symbol): Likewise.
8953 * symtab.h (basic_lookp_symbol_nonlocal, lookup_symbol_static,
8954 lookup_symbol_global, lookup_symbol_aux_block,
8955 lookup_symbol_partial_symbol, lookup_block_symbol,
8956 lookup_global_symbol, value_maybe_namespace_elt): Likewise.
8957
8958 2010-03-09 Pierre Muller <muller@ics.u-strasbg.fr>
8959
8960 * python/python-internal.h: Include symtab.h.
8961
8962 2010-03-09 Joel Brobecker <brobecker@adacore.com>
8963 Pierre Muller <muller@ics.u-strasbg.fr>
8964
8965 * p-lang.c (is_pascal_string_type): Remove unneeded parentheses.
8966 * p-valprint.c (pascal_val_print): Remove undeed block and fix
8967 indentation.
8968
8969 2010-03-08 Tom Tromey <tromey@redhat.com>
8970
8971 * breakpoint.c (breakpoint_1): Add "QUIT".
8972
8973 2010-03-08 Daniel Jacobowitz <dan@codesourcery.com>
8974 Pedro Alves <pedro@codesourcery.com>
8975
8976 * solib.c (solib_find): Replace extension if
8977 solib_symbols_extension is set in the target gdbarch.
8978 * arm-symbian-tdep.c (arm_symbian_init_abi): Set
8979 solib_symbols_extension to "sym".
8980 * gdbarch.sh (solib_symbols_extension): New variable.
8981 (pstring): New function.
8982 * gdbarch.h, gdbarch.c: Regenerate.
8983
8984 2010-03-08 Tom Tromey <tromey@redhat.com>
8985
8986 PR cli/9591:
8987 * NEWS: Update.
8988 * utils.c: Include main.h.
8989 (fputs_maybe_filtered): Don't paginate if `batch_flag'.
8990 (defaulted_query): Use default answer if `batch_flag'.
8991 * main.h (batch_flag): Declare.
8992 * main.c (batch_flag): New global.
8993 (captured_main): Remove 'batch'. Update.
8994
8995 2010-03-08 Kevin Buettner <kevinb@redhat.com>
8996
8997 From Richard Sandiford, Martin M. Hunt, Corinna Vinschen,
8998 and Kevin Buettner:
8999
9000 * remote-mips.c (rockhopper_ops): New target_ops struct.
9001 (MON_ROCKHOPPER): New mips_monitor_type.
9002 (read_hex_value): New function.
9003 (mips_request): Send 8-byte values with a 'T' packet. Read the
9004 packet argument as a string and use read_hex_value to parse it.
9005 (mips_exit_debug): Wait for response when using MON_ROCKHOPPER.
9006 (rockhopper_open): New function.
9007 (mips_wait): Read the PC, FP and SP fields as strings. Use
9008 read_hex_value to parse them and mips_set_register to commit them.
9009 (mips_set_register): New function.
9010 (mips_fetch_registers): Do not cast register value to "unsigned"
9011 when reading a MON_ROCKHOPPER 't' packet. Use mips_set_register.
9012 (mips_store_registers): Use a 'T' packet to set registers when
9013 using MON_ROCKHOPPER.
9014 (pmon_end_download): Don't run initEther if using MON_ROCKHOPPER
9015 and expect the total to be printed before the entry address.
9016 (_initialize_remote_mips): Initialize and add rockhopper_ops.
9017
9018 2010-03-08 Kevin Buettner <kevinb@redhat.com>
9019
9020 * remote-mips.c (mips_fetch_word): Add new parameter, `valp'.
9021 Change return value to int. Store value fetched in location
9022 addressed by `val'. Use function's return value as success
9023 or failure indicator. Adjust all callers.
9024
9025 2010-03-08 Pierre Muller <muller@ics.u-strasbg.fr>
9026
9027 * p-lang.c (is_pascal_string_type): Check that TYPE arg is non NULL.
9028
9029 2010-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
9030 Hui Zhu <teawater@gmail.com>
9031
9032 * record.c (record_open_1): Check tmp_to_stopped_by_watchpoint and
9033 tmp_to_stopped_data_address.
9034 (record_open): Reset tmp_to_stopped_by_watchpoint and
9035 tmp_to_stopped_data_address.
9036 * target.c (init_dummy_target): Add to_stopped_by_watchpoint and
9037 to_stopped_data_address.
9038
9039 2010-03-08 Hui Zhu <teawater@gmail.com>
9040
9041 * i386-tdep.c (i386_process_record): Initialize regnum.
9042
9043 2010-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
9044
9045 * symfile.c (addr_info_make_relative): New variable sect_name, use it.
9046 Do not warn on ".gnu.liblist" and ".gnu.conflict".
9047
9048 2010-03-08 Joel Brobecker <brobecker@adacore.com>
9049
9050 Memory error when reading wrong core file.
9051 * solib-svr4.c (solib_svr4_r_map): catch and print all exception
9052 errors while reading the inferior memory, and return zero if
9053 an exception was raised.
9054
9055 2010-03-07 Michael Snyder <msnyder@vmware.com>
9056
9057 * record.c (record_restore): Rename tmpu8 to rectype.
9058
9059 * i386-tdep.c (i386_record_lea_modrm_addr): Rename local variables
9060 tmpu8, tmpi16, tmpi32, tmpulongest to addr8, addr16, addr32, addr64.
9061
9062 (i386_record_push): Rename local tmpulongest to addr.
9063
9064 (i386_process_record): Rename local tmpulongest to addr.
9065
9066 Rename local variables tmpu16, tmpu32, tmpu64 to addr16, addr32,
9067 addr64.
9068
9069 Rename local variable tmpu8 to opcode8 and regnum.
9070
9071 2010-03-07 Joel Brobecker <brobecker@adacore.com>
9072
9073 * remote.c (remote_get_ada_task_ptid): New function.
9074 (init_remote_ops): Set remote_ops.to_get_ada_task_ptid.
9075
9076 2010-03-06 Christopher Faylor <me+cygwin@cgf.cx>
9077
9078 * windows-nat.c: Reorganize #ifdef __CYGWIN__ considerations into one
9079 block. Define helper macros to reduce ifdefs in code.
9080 (get_module_name): Use cygwin_buf_t for buffer and __PMAX for buffer
9081 size. Call unadorned GetModuleFileNameEx rather than
9082 GetModuleFileNameEx*.
9083 (windows_make_so): Use __PMAX to denote maximum buffer size and
9084 cygwin_buf_t for buffer type. Use GetSystemDirectory{W,A} as
9085 appropriate.
9086 (get_image_name): Use __PMAX to denote maximum buffer size.
9087 (handle_load_dll): Likewise.
9088 (windows_pid_to_exec_file): Likewise.
9089 (windows_create_inferior): Add many accommodations for older Cygwin and
9090 non-Cygwin.
9091 (bad_GetModuleFileNameExW): Control inclusion of this function based on
9092 __USEWIDE conditional.
9093 (bad_GetModuleFileNameExA): Likewise.
9094 (_initialize_loadable): Just use real function names without the dyn_
9095 part since they are defined earlier.
9096
9097 2010-03-05 Corinna Vinschen <vinschen@redhat.com>
9098 Tom Tromey <tromey@redhat.com>
9099
9100 * utils.c (host_char_to_target): Add 'gdbarch' argument.
9101 (parse_escape): Likewise.
9102 * python/py-utils.c (unicode_to_target_string): Update.
9103 (unicode_to_target_python_string): Update.
9104 (target_string_to_unicode): Update.
9105 * printcmd.c (printf_command): Update.
9106 * p-exp.y (yylex): Update.
9107 * objc-exp.y (yylex): Update.
9108 * mi/mi-parse.c: Include charset.h.
9109 (mi_parse_escape): New function.
9110 (mi_parse_argv): Use it.
9111 * jv-exp.y (yylex): Update.
9112 * i386-cygwin-tdep.c (i386_cygwin_auto_wide_charset): New
9113 function.
9114 (i386_cygwin_init_abi): Call set_gdbarch_auto_wide_charset.
9115 * gdbarch.sh (auto_charset, auto_wide_charset): New.
9116 * gdbarch.c: Rebuild.
9117 * gdbarch.h: Rebuild.
9118 * defs.h (parse_escape): Update.
9119 * cli/cli-setshow.c: Include arch-utils.h.
9120 (do_setshow_command): Update.
9121 * cli/cli-cmds.c (echo_command): Update.
9122 * charset.h (target_charset, target_wide_charset): Update.
9123 * charset.c: Include arch-utils.h.
9124 (target_charset_name): Default to "auto".
9125 (target_wide_charset_name): Likewise.
9126 (show_target_charset_name): Handle "auto".
9127 (show_target_wide_charset_name): Likewise.
9128 (be_le_arch): New global.
9129 (set_be_le_names): Add 'gdbarch' argument.
9130 (validate): Likewise. Don't call set_be_le_names.
9131 (set_charset_sfunc, set_host_charset_sfunc)
9132 (set_target_charset_sfunc, set_target_wide_charset_sfunc):
9133 Update.
9134 (target_charset): Add 'gdbarch' argument.
9135 (target_wide_charset): Likewise. Remove 'byte_order' argument.
9136 (auto_target_charset_name): New global.
9137 (default_auto_charset, default_auto_wide_charset): New functions.
9138 (_initialize_charset): Set auto_target_charset_name. Allow "auto"
9139 for target charsets. Copy result of nl_langinfo. Use GetACP if
9140 USE_WIN32API.
9141 * c-lang.c (charset_for_string_type): Add 'gdbarch' argument,
9142 remove 'byte_order' argument. Update.
9143 (classify_type): Likewise.
9144 (c_emit_char): Update.
9145 (c_printchar): Update.
9146 (c_printstr): Update.
9147 (c_get_string): Update.
9148 (evaluate_subexp_c): Update.
9149 * arch-utils.h (default_auto_charset, default_auto_wide_charset):
9150 Declare.
9151 * python/python.c (gdbpy_target_charset): New function.
9152 (gdbpy_target_wide_charset): Likewise.
9153 (GdbMethods): Update.
9154 * NEWS: Update.
9155
9156 2010-03-05 Ulrich Weigand <uweigand@de.ibm.com>
9157
9158 * symfile.c (build_section_addr_info_from_objfile): Do not mask
9159 off high address bits.
9160
9161 2010-03-05 Ulrich Weigand <uweigand@de.ibm.com>
9162
9163 * python/py-lazy-string.c (gdbpy_extract_lazy_string): Extract
9164 address as UnsignedLongLong, not LongLong.
9165
9166 2010-03-05 Kevin Buettner <kevinb@redhat.com>
9167 Pedro Alves <pedro@codesourcery.com>
9168
9169 * remote-mips.c (gdbthread.h): Include.
9170 (remote_mips_ptid): Declare.
9171 (mips_error): Only mourn the inferior when inferior_ptid is non-null.
9172 (common_open): Set inferior_ptid, add it as an inferior, and
9173 as a thread too. Delete FIXME comment regarding start_remote().
9174 (mips_close): Invoke generic_mourn_inferior().
9175 (mips_kill): Make sure that target_mourn_inferior is invoked.
9176 (mips_mourn_inferior): Don't invoke generic_mourn_inferior, as
9177 it's now invoked from mips_close().
9178 (mips_load): Don't null out inferior_ptid. Don't call
9179 clear_symtab_users().
9180 (mips_thread_alive, mips_pid_to_str): New functions.
9181 (_initialize_remote_mips): Initialize remote_mips_ptid. Initialize
9182 to_thread_alive and to_pid_to_str operations.
9183
9184 2010-03-04 Tom Tromey <tromey@redhat.com>
9185
9186 * dwarf2read.c (skip_one_die) <DW_FORM_ref_addr>: Use offset size
9187 in DWARF 3 and later.
9188 (read_attribute_value) <DW_FORM_ref_addr>: Likewise.
9189
9190 2010-03-04 Keith Seitz <keiths@redhat.com>
9191
9192 * linespec.c (decode_line_1): Update comments for is_quote_enclosed.
9193 If the filename portion of the linespec was quoted, recheck the
9194 remainder for additional quoting.
9195 (locate_first_half): Skip over completer chars, too.
9196
9197 2010-03-04 Tom Tromey <tromey@redhat.com>
9198
9199 * printcmd.c (printf_command): Pass dummy argument to
9200 printf_filtered.
9201
9202 2010-03-04 Doug Evans <dje@google.com>
9203
9204 * arm-tdep.c (arm_make_stub_cache): Delete unused locals reg,
9205 unwound_fp.
9206
9207 * arm-tdep.c (arm_stub_unwind_sniffer): Add comment.
9208
9209 2010-03-04 Pedro Alves <pedro@codesourcery.com>
9210
9211 * breakpoint.c (update_watchpoint): Create a sentinel location if
9212 the software watchpoint isn't watching any memory.
9213 (breakpoint_address_bits): Skip dummy software watchpoint locations.
9214
9215 2010-03-04 Pedro Alves <pedro@codesourcery.com>
9216
9217 * utils.c (fputs_maybe_filtered): Check if there's already a top
9218 level interpreter before dereferencing it. If there isn't one,
9219 don't paginate either.
9220
9221 2010-03-04 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
9222
9223 * arm-tdep.c (arm_pc_is_thumb): Add heuristic that tries to get
9224 the state right when single stepping.
9225 (arm_get_next_pc_raw, thumb_get_next_pc_raw): New functions.
9226 Get the next PC along with the instruction state.
9227 (thumb_get_next_pc): Remove.
9228 (arm_get_next_pc): Modified to use arm_get_next_pc_raw.
9229
9230 2010-03-04 Hui Zhu <teawater@gmail.com>
9231
9232 * i386-tdep.c (i386_process_record): Change "addr" to "tmpu64".
9233
9234 2010-03-03 Pedro Alves <pedro@codesourcery.com>
9235
9236 * utils.c (fputs_maybe_filtered): Always disable pagination if the
9237 top level interpreter is MI.
9238
9239 2010-03-03 Stan Shebs <stan@codesourcery.com>
9240
9241 * remote.c (remote_download_tracepoint): Iterate over locations.
9242 * tracepoint.c (validate_actionline): Ditto.
9243 (encode_actions): Add location argument.
9244 (trace_dump_command): Check all locations to see if stepping
9245 frame.
9246
9247 2010-03-03 H.J. Lu <hongjiu.lu@intel.com>
9248 Eli Zaretskii <eliz@gnu.org>
9249
9250 * NEWS: Add X86 general purpose registers section.
9251
9252 2010-03-03 Tom Tromey <tromey@redhat.com>
9253
9254 PR mi/11098:
9255 * varobj.c (install_new_value): Handle case where new print_value
9256 is NULL.
9257
9258 2010-03-03 Dainis Jonitis <jonitis@gmail.com>
9259
9260 PR gdb/11345:
9261 * printcmd.c (printf_command): Print end of format string using
9262 printf_filtered.
9263
9264 2010-03-02 Tom Tromey <tromey@redhat.com>
9265
9266 * mi/mi-cmd-break.c (mi_read_next_line): Add missing 'void'.
9267 * defs.h (read_command_lines_1): Add missing 'void'.
9268 * cli/cli-script.c (recurse_read_control_structure): Add missing
9269 'void'.
9270 (read_next_line): Likewise.
9271 (read_command_lines_1): Likewise.
9272
9273 2010-03-02 Ulrich Weigand <uweigand@de.ibm.com>
9274
9275 * spu-tdep.c (spu_analyze_prologue): Track instruction to
9276 store backchain as part of prologue.
9277
9278 2010-03-02 Daniel Jacobowitz <dan@codesourcery.com>
9279
9280 * progspace.c (update_address_spaces): Update inferior address spaces
9281 also.
9282
9283 2010-03-02 Doug Evans <dje@google.com>
9284
9285 * dwarf2read.c (add_partial_subprogram): Add missing baseaddr to
9286 lowpc,highpc args to addrmap_set_empty.
9287
9288 2010-03-02 H.J. Lu <hongjiu.lu@intel.com>
9289
9290 * amd64-tdep.c (amd64_byte_names): New.
9291 (amd64_word_names): Likewise.
9292 (amd64_dword_names): Likewise.
9293 (amd64_pseudo_register_name): Likewise.
9294 (amd64_pseudo_register_read): Likewise.
9295 (amd64_pseudo_register_write): Likewise.
9296 (amd64_init_abi): Set num_byte_regs, num_word_regs, num_dword_regs
9297 and num_mmx_regs. Call set_gdbarch_pseudo_register_read,
9298 set_gdbarch_pseudo_register_write and
9299 set_tdesc_pseudo_register_name. Don't call
9300 set_gdbarch_num_pseudo_regs. Don't set mm0_regnum.
9301
9302 * i386-tdep.c (i386_num_mmx_regs): Removed.
9303 (i386_num_pseudo_regs): Likewise.
9304 (i386_byte_names): New.
9305 (i386_word_names): Likewise.
9306 (i386_byte_regnum_p): Likewise.
9307 (i386_word_regnum_p): Likewise.
9308 (i386_mmx_regnum_p): Updated.
9309 (i386_pseudo_register_name): Make it global. Handle byte and
9310 word pseudo-registers.
9311 (i386_pseudo_register_read): Likewise.
9312 (i386_pseudo_register_write): Likewise.
9313 (i386_pseudo_register_type): Handle byte, word and dword
9314 pseudo-registers
9315 (i386_register_reggroup_p): Don't include pseudo
9316 registers, except for MXX, in any register groups. Don't
9317 include pseudo byte, word, dword registers in general_reggroup.
9318 (i386_gdbarch_init): Set num_byte_regs, num_word_regs,
9319 num_dword_regs, al_regnum, ax_regnum and eax_regnum. Put MMX
9320 pseudo-registers after word pseudo-registers. Call
9321 set_gdbarch_num_pseudo_regs after calling gdbarch_init_osabi.
9322
9323 * i386-tdep.h (gdbarch_tdep): Add num_mmx_regs, num_byte_regs,
9324 al_regnum, num_word_regs, ax_regnum, num_dword_regs and
9325 eax_regnum.
9326 (i386_byte_regnum_p): New.
9327 (i386_word_regnum_p): Likewise.
9328 (i386_dword_regnum_p): Likewise.
9329 (i386_pseudo_register_name): Likewise.
9330 (i386_pseudo_register_read): Likewise.
9331 (i386_pseudo_register_write): Likewise.
9332
9333 2010-03-01 H.J. Lu <hongjiu.lu@intel.com>
9334
9335 * target-descriptions.c (tdesc_type): Remove
9336 TDESC_TYPE_I386_EFLAGS and TDESC_TYPE_I386_MXCSR.
9337 (tdesc_predefined_types): Likewise.
9338 (tdesc_gdb_type): Likewise. Pass NULL to append_flags_type_flag
9339 if flag name is empty.
9340 (maint_print_c_tdesc_cmd): Handle TDESC_TYPE_FLAGS.
9341
9342 * features/i386/32bit-core.xml: Define i386_eflags.
9343 * features/i386/64bit-core.xml: Likewise.
9344
9345 * features/i386/32bit-sse.xml: Define i386_mxcsr.
9346 * features/i386/64bit-sse.xml: Likewise.
9347
9348 * features/i386/amd64-linux.c: Regenerated.
9349 * features/i386/amd64.c: Likewise.
9350 * features/i386/i386-linux.c: Likewise.
9351 * features/i386/i386.c: Likewise.
9352
9353 2010-03-01 Daniel Jacobowitz <dan@codesourcery.com>
9354
9355 * gdbtypes.c (append_composite_type_field_raw): New.
9356 (append_composite_type_field_aligned): Use the new function.
9357 * gdbtypes.h (append_composite_type_field_raw): Declare.
9358 * target-descriptions.c (struct tdesc_type_field): Add start and end.
9359 (struct tdesc_type_flag): New type.
9360 (struct tdesc_type): Add TDESC_TYPE_STRUCT and TDESC_TYPE_FLAGS to
9361 kind. Add size to u.u. Add u.f for flags.
9362 (tdesc_gdb_type): Handle TDESC_TYPE_STRUCT and TDESC_TYPE_FLAGS.
9363 (tdesc_free_type): Likewise.
9364 (tdesc_create_struct, tdesc_set_struct_size, tdesc_create_flags): New.
9365 (tdesc_add_field): Handle TDESC_TYPE_STRUCT.
9366 (tdesc_add_bitfield, tdesc_add_flag): New.
9367 * target-descriptions.h (tdesc_create_struct, tdesc_set_struct_size)
9368 (tdesc_create_flags, tdesc_add_bitfield, tdesc_add_flag): Declare.
9369 * xml-tdesc.c (struct tdesc_parsing_data): Rename current_union to
9370 current_type. Add current_type_size and current_type_is_flags.
9371 (tdesc_start_union): Clear the new fields.
9372 (tdesc_start_struct, tdesc_start_flags): New.
9373 (tdesc_start_field): Handle struct fields, including bitfields.
9374 (field_attributes): Make type optional. Add start and end.
9375 (union_children): Rename to struct_union_children.
9376 (union_attributes): Rename to struct_union_attributes. Add optional
9377 size.
9378 (flags_attributes): New.
9379 (feature_children): Add struct and flags.
9380 * features/gdb-target.dtd: Add flags and struct to features.
9381 Make field type optional. Add field start and end.
9382
9383 2010-03-01 H.J. Lu <hongjiu.lu@intel.com>
9384
9385 * amd64-linux-nat.c (AMD64_LINUX_USER64_CS): New.
9386 (amd64_linux_read_description): Likewise.
9387 (_initialize_amd64_linux_nat): Set to_read_description to
9388 amd64_linux_read_description.
9389
9390 * amd64-linux-tdep.c: Include "features/i386/amd64-linux.c".
9391 (amd64_linux_register_name): Removed.
9392 (amd64_linux_register_type): Likewise.
9393 (amd64_linux_core_read_description): New.
9394 (amd64_linux_init_abi): Set target description to
9395 tdesc_amd64_linux if needed. Support orig_rax in target
9396 description. Don't call set_gdbarch_register_name nor
9397 set_gdbarch_register_type. Call
9398 set_gdbarch_core_read_description.
9399 (_initialize_amd64_linux_tdep): Call
9400 initialize_tdesc_amd64_linux.
9401
9402 * amd64-linux-tdep.h (tdesc_amd64_linux): New.
9403
9404 * amd64-tdep.c: Include "features/i386/amd64.c".
9405 (amd64_register_names): Removed.
9406 (amd64_register_name): Likewise.
9407 (amd64_register_type): Likewise.
9408 (amd64_init_abi): Set num_core_regs and register_names. Set
9409 target description to tdesc_amd64 if needed. Don't call
9410 set_gdbarch_register_name nor set_gdbarch_register_type.
9411 (_initialize_amd64_tdep): New.
9412
9413 * i386-linux-nat.c (i386_linux_read_description): New.
9414 (_initialize_i386_linux_nat): Set to_read_description to
9415 i386_linux_read_description.
9416
9417 * i386-linux-tdep.c: Include "features/i386/i386-linux.c".
9418 (i386_linux_register_name): Removed.
9419 (i386_linux_core_read_description): New.
9420 (i386_linux_read_description): Likewise.
9421 (i386_linux_init_abi): Don't call set_gdbarch_register_name.
9422 Set target description to tdesc_i386_linux if needed. Support
9423 orig_eax. Set register_reggroup_p. Call
9424 set_gdbarch_core_read_description.
9425 (_initialize_i386_linux_tdep): Call initialize_tdesc_i386_linux.
9426
9427 * i386-linux-tdep.h (tdesc_i386_linux): New.
9428
9429 * i386-nto-tdep.c (i386nto_regset_id): Replace I386_NUM_FREGS
9430 with I387_NUM_REGS.
9431
9432 * i386-tdep.c: Include "features/i386/i386.c".
9433 (i386_register_names): Make it const.
9434 (i386_mmx_names): Likewise.
9435 (i386_num_register_names): Removed.
9436 (i386_register_name): Likewise.
9437 (i386_eflags_type): Likewise.
9438 (i386_mxcsr_type): Likewise.
9439 (i386_sse_type): Likewise.
9440 (i386_register_type): Likewise.
9441 (i387_ext_type): Call tdesc_find_type instead of arch_float_type.
9442 (i386_pseudo_register_name): New.
9443 (i386_pseudo_register_type): Likewise.
9444 (i386_mmx_type): Make it static.
9445 (i386_gdbarch_init): Check arch. Replace I386_NUM_FREGS with
9446 I387_NUM_REGS. Set num_core_regs and register_names. Don't
9447 call set_gdbarch_register_name nor set_gdbarch_register_type.
9448 Set register_reggroup_p. Set target description to tdesc_i386
9449 if needed. Call set_tdesc_pseudo_register_type,
9450 set_tdesc_pseudo_register_name and tdesc_use_registers.
9451 (_initialize_i386_tdep): Call initialize_tdesc_i386.
9452 initialize_tdesc_x86_64.
9453
9454 * i386-tdep.h (gdbarch_tdep): Remove i386_eflags_type,
9455 i386_mxcsr_type and i386_sse_type. Add num_core_regs,
9456 register_names, tdesc and register_reggroup_p.
9457 (I386_NUM_FREGS): Removed.
9458 (i386_eflags_type): Likewise.
9459 (i386_mxcsr_type): Likewise.
9460 (i386_mmx_type): Likewise.
9461 (i386_sse_type): Likewise.
9462 (i386_register_name): Likewise.
9463 (i386_regnum): Add I386_MXCSR_REGNUM.
9464 (I386_SSE_NUM_REGS): Defined with I386_MXCSR_REGNUM.
9465
9466 * i387-tdep.h (I387_NUM_REGS): New.
9467
9468 * regformats/i386/i386-linux.dat: Generated.
9469 * regformats/i386/i386.dat: Likewise.
9470 * regformats/i386/amd64-linux.dat: Likewise.
9471 * regformats/i386/amd64.dat: Likewise.
9472
9473 * regformats/reg-i386-linux.dat: Removed.
9474 * regformats/reg-i386.dat: Likewise.
9475 * regformats/reg-x86-64-linux.dat: Likewise.
9476 * regformats/reg-x86-64.dat: Likewise.
9477
9478 2010-03-01 Corinna Vinschen <vinschen@redhat.com>
9479
9480 * remote-fileio.c (remote_fileio_func_rename): Use Cygwin 1.7
9481 cygwin_conv_path API rather than the deprecated
9482 cygwin_conv_to_full_posix_path.
9483 * windows-nat.c:
9484 (GetModuleFileNameExA): Undefine for Cygwin.
9485 (GetModuleFileNameExW): Define for Cygwin.
9486 (get_module_name): Change size of pathbuf to PATH_MAX for Cygwin.
9487 Call GetModuleFileNameExW and convert path to POSIX using
9488 cygwin_conv_path.
9489 (windows_make_so): Always define p. Drop unused variable m.
9490 Don't use Win32 functions to check file existance, rather use
9491 access on Cygwin. Fetch system directory using GetSystemDirectoryW.
9492 Use canonicalize_file_name to get full path.
9493 (get_image_name): Use wcstombs, rather than WideCharToMultiByte
9494 to convert Unicode pathname to multibyte on Cygwin. Otherwise,
9495 use correct target buffer size in call to WideCharToMultiByte.
9496 (handle_load_dll): Change size of dll_buf to PATH_MAX for Cygwin.
9497 (windows_pid_to_exec_file): Change size of path to PATH_MAX for Cygwin.
9498 (windows_create_inferior): Convert all paths and arguments to wchar_t
9499 and use CreateProcessW on Cygwin.
9500 (_initialize_windows_nat): Disable DOS-style path warning on Cygwin.
9501 (bad_GetModuleFileNameExA): Undefine for Cygwin.
9502 (bad_GetModuleFileNameExW): Define for Cygwin.
9503 (_initialize_loadable): Load GetModuleFileNameExW into
9504 dyn_GetModuleFileNameExW on Cygwin. Don't load ANSI function on Cygwin.
9505
9506 2010-02-28 Phil Muldoon <pmuldoon@redhat.com>
9507
9508 PR python/11036
9509 * python/py-frame.c (frapy_read_var): Add block argument and logic
9510 to cope with user provided blocks.
9511
9512 2010-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
9513
9514 * infcall.c (call_function_by_hand): Remove gdb_assert on sp and old_sp.
9515 New comment.
9516
9517 2010-02-28 Corinna Vinschen <vinschen@redhat.com>
9518
9519 * Makefile.in (SUBDIR_MI_OBS): Move mi-common.o from here...
9520 (COMMON_OBS): ... to here since it's used unconditionally.
9521 (SUBDIR_MI_SRCS): Move mi/mi-common.c from here...
9522 (SFILES): To here.
9523
9524 2010-02-26 David Daney <ddaney@caviumnetworks.com>
9525
9526 * mips-linux-tdep.c: Update struct sigframe comments.
9527 (SIGFRAME_CODE_OFFSET): Delete macro.
9528 (mips_linux_o32_sigframe_init): Calculate sigcontext_base using
9529 this_frame's sp.
9530 (mips_linux_n32n64_sigframe_init): Same.
9531
9532 2010-02-26 Kevin Buettner <kevinb@redhat.com>
9533
9534 * remote-mips.c (mips_load): Don't use pseudo-register when
9535 invalidating regcache.
9536
9537 2010-02-26 Daniel Jacobowitz <dan@codesourcery.com>
9538
9539 * arm-tdep.c (thumb_get_next_pc): Correct conditional branch opcode.
9540
9541 2010-02-26 Pedro Alves <pedro@codesourcery.com>
9542
9543 * NEWS: Add "New targets" section, and mention ARM Symbian
9544 support.
9545
9546 2010-02-26 Ulrich Weigand <uweigand@de.ibm.com>
9547
9548 * dwarf2loc.c (struct piece_closure): Remove ARCH member,
9549 add ADDR_SIZE member.
9550 (allocate_piece_closure): Update.
9551 (copy_pieced_value_closure): Likewise.
9552 (dwarf2_evaluate_loc_desc): Likewise.
9553 (read_pieced_value): Use DWARF address size instead of
9554 GDB's gdbarch_addr_bit as size of values on the DWARF stack.
9555
9556 2010-02-26 Phil Muldoon <pmuldoon@redhat.com>
9557 Tom Tromey <tromey@redhat.com>
9558
9559 * python/py-type.c (typy_lookup_typename): Add in block argument.
9560 If provided restrict lookup to specified blocks.
9561 (gdbpy_lookup_type): Likewise.
9562 (typy_lookup_type): Likewise.
9563
9564 2010-02-25 Daniel Jacobowitz <dan@codesourcery.com>
9565
9566 Symbian config
9567
9568 gdb/
9569 * arm-symbian-tdep.c: New.
9570 * configure.tgt (arm*-*-symbianelf*): New target.
9571 (*-*-symbianelf*): New OS.
9572 * osabi.c (gdb_osabi_names): Add Symbian.
9573 * defs.h (gdb_osabi): Add GDB_OSABI_SYMBIAN.
9574 * Makefile.in (ALL_TARGET_OBJS): Add arm-symbian-tdep.o.
9575 (ALLDEPFILES): Add arm-symbian-tdep.c.
9576
9577 2010-02-25 Daniel Jacobowitz <dan@codesourcery.com>
9578
9579 * symfile.c (find_lowest_section): Include SEC_ALLOC sections.
9580
9581 2010-02-24 Pedro Alves <pedro@codesourcery.com>
9582
9583 * mi/mi-main.c (mi_cmd_execute): Fix typo.
9584
9585 2010-02-24 Phil Muldoon <pmuldoon@redhat.com>
9586 Tom Tromey <tromey@redhat.com>
9587 Thiago Jung Bauermann <bauerman@br.ibm.com>
9588
9589 * python/python.c (_initialize_python): Call
9590 gdbpy_initialize_symtabs, gdbpy_initialize_symbols and
9591 gdbpy_initialize_blocks.
9592 * python/python-internal.h: Declare struct symbol, block and
9593 symtab_and_line. Declare block_object_type and
9594 symbol_object_type
9595 (gdbpy_lookup_symbol gdbpy_block_for_pc)
9596 (symtab_and_line_to_sal_object, symtab_to_symtab_object)
9597 (symbol_to_symbol_object, block_to_block_object)
9598 (gdbpy_initialize_symtabs,gdbpy_initialize_symbols)
9599 (gdbpy_initialize_blocks ): Declare.
9600 * python/py-frame.c (frapy_block, frapy_function, frapy_find_sal)
9601 (frapy_select): Add methods.
9602 (frapy_read_var): Add symbol branch.
9603 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-symbol, py-symtab,
9604 py-block.
9605 (SUBDIR_PYTHON_SRCS): Likewise.
9606 (py-symbol.o): New rule.
9607 (py-symtab.o): Likewise.
9608 (py-block.o): Likewise.
9609 * python/py-symbol.c: New file.
9610 * python/py-symtab.c: Likewise.
9611 * python/py-block.c: Likewise.
9612
9613 2010-02-24 Pedro Alves <pedro@codesourcery.com>
9614
9615 PR gdb/11321
9616
9617 * inferior.h (prepare_for_detach): Declare.
9618 (struct inferior) <detaching>: New field.
9619 * infrun.c (prepare_for_detach): New.
9620 (handle_inferior_event) <random signal>: Don't stop if detaching.
9621 * target.c (target_detach): Call prepare_for_detach.
9622
9623 2010-02-24 Pedro Alves <pedro@codesourcery.com>
9624
9625 Per-process displaced stepping queue.
9626
9627 * infrun.c (displaced_step_ptid, displaced_step_request_queue)
9628 (displaced_step_gdbarch, displaced_step_closure,
9629 (displaced_step_original, displaced_step_copy): Move globals to
9630 this...
9631 (struct displaced_step_inferior_state): ... new structure.
9632 (displaced_step_inferior_states): New global.
9633 (get_displaced_stepping_state, add_displaced_stepping_state)
9634 (remove_displaced_stepping_state, infrun_inferior_exit): New
9635 functions.
9636 (displaced_step_clear): Add displaced_step_inferior_state
9637 parameter, and adjust to handle it.
9638 (displaced_step_clear_cleanup): Parameter is now a
9639 displaced_step_inferior_state. Adjust.
9640 (displaced_step_prepare): Adjust.
9641 (displaced_step_fixup, displaced_step_fixup)
9642 (infrun_thread_ptid_changed, resume): Adjust.
9643 (init_wait_for_inferior): Don't call displaced_step_clear.
9644 (infrun_thread_stop_requested): Rewrite.
9645 (_initialize_infrun): Install infrun_inferior_exit as
9646 inferior_exit observer.
9647
9648 2010-02-24 Pedro Alves <pedro@codesourcery.com>
9649
9650 * inferior.h (ptid_match): Declare.
9651 * infrun.c (ptid_match): New.
9652 * remote.c (queued_stop_reply): Rewrite and use ptid_match.
9653 (handle_notification): Add debug output.
9654 * linux-nat.c (ptid_match): Delete.
9655
9656 2010-02-24 David S. Miller <davem@davemloft.net>
9657
9658 * gdb_ptrace.h (PT_SYSCALL): If PTRACE_SYSCALL is available, use it.
9659 * syscalls/sparc-linux.xml: New.
9660 * syscalls/sparc64-linux.xml: New.
9661 * Makefile.in (XML_SYSCALL_FILES): Add new syscall XML files.
9662 * sparc-linux-tdep.c (XML_SYSCALL_FILENAME_SPARC32): Define.
9663 (sparc32_linux_get_syscall_number): New function.
9664 (sparc32_linux_init_abi): Set syscall XML file name and hook up
9665 syscall number fetcher.
9666 * sparc64-linux-tdep.c (XML_SYSCALL_FILENAME_SPARC64): Define.
9667 (sparc64_linux_get_syscall_number): New function.
9668 (sparc64_linux_init_abi): Set syscall XML file name and hook up
9669 syscall number fetcher.
9670
9671 2010-02-24 Vladimir Prus <vladimir@codesourcery.com>
9672
9673 Multiexec MI
9674
9675 * breakpoint.c (clear_syscall_counts): Take struct inferior*.
9676 * inferior.c (add_inferior_silent): Notify inferior_added
9677 observer.
9678 (delete_inferior_1): Notify inferior_removed observer.
9679 (exit_inferior_1): Pass inferior, not pid, to observer.
9680 (inferior_appeared): Likewise.
9681 (add_inferior_with_spaces): New.
9682 (add_inferior_command): Use the above.
9683 * inferior.h (delete_inferior_1, add_inferior_with_spaces):
9684 Declare.
9685
9686 * inflow.c (inflow_inferior_exit): Likewise.
9687 * jit.c (jit_inferior_exit_hook): Likewise.
9688
9689 * mi/mi-cmds.c (mi_cmds): Register add-inferior and
9690 remove-inferior.
9691 * mi/mi-cmds.h (mi_cmd_add_inferior, mi_cmd_remove_inferior): New.
9692 * mi/mi-interp.c (mi_inferior_added, mi_inferior_removed): New.
9693 (report_initial_inferior): New.
9694 (mi_inferior_removed): Register the above. Make sure
9695 inferior_added observer is called on the first inferior.
9696 (mi_new_thread, mi_thread_exit): Thread group is now identified by
9697 inferior number, not pid.
9698 (mi_solib_loaded, mi_solib_unloaded): Report which inferiors are
9699 affected.
9700 * mi/mi-main.c (current_context): New.
9701 (proceed_thread_callback): Use typed closure.
9702 Proceed everything if pid is 0. Most implementation split into
9703 (proceed_thread): ... this.
9704 (run_one_inferior): New.
9705 (mi_cmd_exec_continue, mi_cmd_exec_interrupt, mi_cmd_exec_run):
9706 Adjust for multiexec behaviour.
9707 (mi_cmd_add_inferior, mi_cmd_remove_inferior): New.
9708 (mi_cmd_execute): Handle the 'thread-group' option here.
9709 Do some extra checks.
9710 * mi-parse.c (mi_parse): Handle the --all and --thread-group
9711 options.
9712 * mi-parse.h (struct mi_parse): New fields all and thread_group.
9713
9714 2010-02-24 Vladimir Prus <vladimir@codesourcery.com>
9715
9716 Make -exec-run a proper MI commands.
9717
9718 * mi/mi-cmds.h (mi_cmd_exec_run): Declare.
9719 * mi/mi-cmds.c (mi_cmds): Adjust.
9720 * mi/mi-main.c (mi_cmd_exec_run): New.
9721
9722 2010-02-24 Pedro Alves <pedro@codesourcery.com>
9723 Stan Shebs <stan@codesourcery.com>
9724
9725 * tracepoint.h (set_traceframe_number)
9726 (cleanup_restore_current_traceframe): Declare.
9727 * tracepoint.c (set_traceframe_number): New.
9728 (struct current_traceframe_cleanup): New.
9729 (do_restore_current_traceframe_cleanup)
9730 (restore_current_traceframe_cleanup_dtor)
9731 (make_cleanup_restore_current_traceframe): New.
9732 * infrun.c: Include tracepoint.h.
9733 (fetch_inferior_event): Switch out and in of tfind mode.
9734
9735 2010-02-24 Pedro Alves <pedro@codesourcery.com>
9736
9737 * breakpoint.c (breakpoint_init_inferior): Also delete
9738 bp_shlib_event breakpoints.
9739 * solib-frv.c (enable_break): Remove call to
9740 remove_solib_event_breakpoints.
9741 * solib-svr4.c (enable_break): Ditto.
9742 * solib-darwin.c (darwin_solib_create_inferior_hook): Ditto.
9743 * solib-pa64.c (pa64_solib_create_inferior_hook): Ditto.
9744 * solib-som.c (som_solib_create_inferior_hook): Ditto.
9745 * solib-spu.c (spu_enable_break): Ditto.
9746
9747 2010-02-23 Harald Koenig <H.Koenig@science-computing.de>
9748
9749 * c-exp.y (token_and_value): s/union YYSTYPE/YYSTYPE.
9750
9751 2010-02-23 Harald Koenig <H.Koenig@science-computing.de>
9752
9753 * varobj.c (varobj_update): Avoid non-constants in initializers.
9754
9755 2010-02-23 Tom Tromey <tromey@redhat.com>
9756
9757 * dwarf2loc.c (read_pieced_value) <DWARF_VALUE_STACK>: Correctly
9758 handle big-endian values.
9759 (dwarf2_evaluate_loc_desc) <DWARF_VALUE_STACK>: Likewise.
9760
9761 2010-02-22 Pedro Alves <pedro@codesourcery.com>
9762
9763 PR9605
9764
9765 gdb/
9766 * breakpoint.c (insert_bp_location): If inserting the read
9767 watchpoint failed, fallback to an access watchpoint.
9768 (bpstat_check_watchpoint): Stop for read watchpoint triggers even
9769 if the value changed, if not watching the same memory for writes.
9770 (watchpoint_locations_match): Add comment.
9771 (update_global_location_list): Copy the location's watchpoint type.
9772 * i386-nat.c (i386_length_and_rw_bits): It's an internal error to
9773 handle read watchpoints here.
9774 (i386_insert_watchpoint): Read watchpoints aren't supported.
9775 * remote.c (remote_insert_watchpoint): Return 1 for unsupported
9776 packets.
9777 * target.h (target_insert_watchpoint): Update description.
9778
9779 2010-02-19 Tom Tromey <tromey@redhat.com>
9780
9781 * p-typeprint.c (pascal_type_print_varspec_prefix): Update.
9782 * m2-typeprint.c (m2_print_type): Update.
9783 * gdbtypes.c (recursive_dump_type): Update.
9784 (copy_type_recursive): Update.
9785 * c-typeprint.c (c_type_print_varspec_prefix): Update.
9786 (c_type_print_base): Update.
9787 * gdbtypes.h (TYPE_CODE_TEMPLATE, TYPE_CODE_TEMPLATE_ARG):
9788 Remove.
9789 (struct cplus_struct_type) <ntemplate_args>: Remove.
9790 <struct template_arg>: Remove.
9791 <is_dynamic>: Move earlier.
9792 (TYPE_TEMPLATE_ARGS): Remove.
9793 (TYPE_NTEMPLATE_ARGS): Remove.
9794 (TYPE_TEMPLATE_ARG): Remove.
9795
9796 2010-02-19 Tom Tromey <tromey@redhat.com>
9797
9798 PR c++/8693, PR c++/9496:
9799 * cp-namespace.c (cp_lookup_nested_type): Handle TYPE_CODE_UNION.
9800 * c-exp.y (lex_one_token): Rename from yylex. Don't call
9801 write_dollar_variable. Don't try to classify NAME tokens.
9802 (token_and_value): New type.
9803 (token_fifo, popping, name_obstack): New globals.
9804 (classify_name): New function.
9805 (classify_inner_name): Likewise.
9806 (yylex): Likewise.
9807 (VARIABLE): Now has type sval.
9808 (exp : VARIABLE): Call write_dollar_variable.
9809 (qualified_name): Use TYPENAME, not typebase. Add production for
9810 multiple "::" instances.
9811 (variable): Use name_not_typename.
9812 (qualified_type): Remove.
9813 (typebase): Update.
9814
9815 2010-02-19 Jan Kratochvil <jan.kratochvil@redhat.com>
9816
9817 * symfile.c (addr_info_make_relative): Extend comment. Move SECT to
9818 a more inner block. Initialize ADDR by LOWER_OFFSET only if it was
9819 found by bfd_get_section_by_name.
9820 * symfile.h (struct section_addr_info) <sectindex>: New comment.
9821
9822 2010-02-19 Joel Brobecker <brobecker@adacore.com>
9823
9824 * NEWS: Add new "[...] since 7.1" section. Rename the "[...] since
9825 7.0 section" into "Changes in 7.1".
9826
9827 2010-02-19 Joel Brobecker <brobecker@adacore.com>
9828
9829 GDB 7.1 branch created (branch timestamp: 2010-02-18 20:00 UTC)
9830 * version.in: Bump version to 7.1.50.20100219-cvs.
9831
9832 2010-02-18 Harald Koenig <H.Koenig@science-computing.de>
9833
9834 * mi/mi-main.c (mi_cmd_exec_jump): Drop unneeded `return'.
9835 * symfile.c (symfile_map_offsets_to_segments): Fix assertion.
9836
9837 2010-02-17 Tom Tromey <tromey@redhat.com>
9838
9839 * NEWS: Add Python API Improvements section.
9840
9841 2010-02-18 Daniel Jacobowitz <dan@codesourcery.com>
9842
9843 * NEWS: Correct typo.
9844
9845 2010-02-17 Tom Tromey <tromey@redhat.com>
9846
9847 * objfiles.c (gdb_bfd_ref): Handle abfd==NULL.
9848
9849 2010-02-17 Jan Kratochvil <jan.kratochvil@redhat.com>
9850
9851 * symfile.c (build_section_addr_info_from_objfile): Include sections
9852 only if they are SEC_ALLOC or SEC_LOAD.
9853
9854 2010-02-17 H.J. Lu <hongjiu.lu@intel.com>
9855
9856 PR shlibs/11293
9857 * solib-svr4.c (enable_break): Check size of CORE_ADDR instead
9858 of ULONGEST for address size.
9859
9860 2010-02-17 Tom Tromey <tromey@redhat.com>
9861
9862 * NEWS: Add C++ improvements section.
9863
9864 2010-02-17 Ulrich Weigand <uweigand@de.ibm.com>
9865
9866 * python/python-internal.h [!WITH_THREAD] (PyGILState_Release,
9867 PyThreadState_Swap): Avoid "statement with no effect" warning.
9868
9869 2010-02-17 Jan Kratochvil <jan.kratochvil@redhat.com>
9870
9871 * solib-svr4.c (enable_break <target_auxv_search>): New variable
9872 addr_bit. Adjust LOAD_ADDR sign for cross-arch inferiors.
9873
9874 2010-02-17 Tristan Gingold <gingold@adacore.com>
9875 Petr Hluzin <petr.hluzin@gmail.com>
9876
9877 * avr-tdep.c (avr_scan_prologue): Convert an if statement to a
9878 gdb_assert. Fix info->size for SIG prologue.
9879
9880 2010-02-16 Daniel Jacobowitz <dan@codesourcery.com>
9881
9882 * infcmd.c (show_inferior_tty_command): Check for NULL.
9883 Correct output message.
9884
9885 2010-02-16 Daniel Jacobowitz <dan@codesourcery.com>
9886
9887 * linespec.c (decode_line_1): Handle FILE:FUNCTION even if
9888 FUNCTION contains parentheses. Improve removal of a trailing
9889 single quote.
9890
9891 2010-02-16 Daniel Jacobowitz <dan@codesourcery.com>
9892
9893 * gcore.c (do_bfd_delete_cleanup): New function.
9894 (gcore_command): Use it. Discard the cleanup after success.
9895 (gcore_copy_callback): Delete dead code.
9896
9897 2010-02-16 Daniel Jacobowitz <dan@codesourcery.com>
9898
9899 * symfile.c (addr_info_make_relative): Always use
9900 find_lowest_section.
9901
9902 2010-02-16 Sami Wagiaalla <swagiaal@redhat.com>
9903
9904 * NEWS: Added entry for namespace fixes.
9905
9906 2010-02-15 Tom Tromey <tromey@redhat.com>
9907
9908 * dwarf2read.c (guess_structure_name): Allocate name on the
9909 objfile obstack.
9910
9911 2010-02-15 Tom Tromey <tromey@redhat.com>
9912
9913 * c-typeprint.c (c_type_print_base): Reverse order of test.
9914
9915 2010-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
9916
9917 * solib-svr4.c (LM_ADDR_CHECK): New variable minpagesize. Optionally
9918 initialize it from ELF BFD. Extend the prelink condition by it.
9919
9920 2010-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
9921
9922 * defs.h (parse_pid_to_attach): New.
9923 * utils.c (parse_pid_to_attach): New.
9924 * darwin-nat.c (darwin_attach): Replace ARGS parsing by parse_pid.
9925 * gnu-nat.c (gnu_attach): Likewise.
9926 * nto-procfs.c (procfs_attach): Likewise.
9927 * procfs.c (procfs_attach): Likewise.
9928 * windows-nat.c (windows_attach): Likewise.
9929 * inf-ptrace.c (inf_ptrace_attach): Likewise. Remove variable dummy.
9930 * inf-ttrace.c (inf_ttrace_attach): Likewise.
9931 * remote.c (extended_remote_attach_1): Likewise. New comment on getpid
9932 check.
9933
9934 2010-02-14 Masaki Muranaka <monaka@monami-software.com>
9935
9936 * MAINTAINERS: Add myself for write after approval privileges.
9937
9938 2010-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
9939
9940 * solib-svr4.c: (LM_ADDR_CHECK): Move variable align to a more inner
9941 block.
9942
9943 2010-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
9944
9945 * solib-svr4.c: (LM_ADDR_CHECK): Print successful prelink adjustment
9946 only if INFO_VERBOSE.
9947
9948 2010-02-12 Tomas Holmberg <th@virtutech.com>
9949
9950 * mi/mi-main.c: Added the --reverse flag to the following MI
9951 commands: exec-continue, exec-finish, exec-next, exec-step,
9952 exec-next-instruction, exec-step-instruction. This is to
9953 support reverse execution over the MI interface to gdb.
9954
9955 2010-02-12 Pedro Alves <pedro@codesourcery.com>
9956
9957 * tracepoint.c (_initialize_tracepoint): Specify that the address
9958 range of `tfind outsize' is exclusive, and that the address range
9959 of `tfind range' is inclusive, in the commands' help strings.
9960
9961 2010-02-12 Joel Brobecker <brobecker@adacore.com>
9962
9963 Spurious "dll not found" error messages on x64-windows.
9964 * windows-nat.c: Add include of complaints.h.
9965 (handle_unload_dll): Change dll-not-found error into a complaint.
9966
9967 2010-02-12 Pedro Alves <pedro@codesourcery.com>
9968
9969 * breakpoint.c (allocate_bp_location): Use bp_loc_other for
9970 bp_tracepoint and bp_fast_tracepoint, not
9971 bp_loc_software_breakpoint.
9972 (update_global_location_list): Tracepoints are never duplicates of
9973 anything.
9974
9975 2010-02-12 Pedro Alves <pedro@codesourcery.com>
9976
9977 * breakpoint.c (break_command_really): Change return type to int.
9978 Return false if no breakpoint was created, true otherwise.
9979 (trace_command): Don't set the tracepoint count if no tracepoint
9980 was created.
9981 (ftrace_command): Ditto.
9982 (create_tracepoint_from_upload): Bail out if the tracepoint wasn't
9983 created in the breakpoints table.
9984
9985 2010-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
9986 Ulrich Weigand <uweigand@de.ibm.com>
9987
9988 * solib-svr4.c (LM_ADDR_CHECK): New comment on PPC-aware condition.
9989
9990 2010-02-11 Pedro Alves <pedro@codesourcery.com>
9991
9992 * ax-gdb.c (gen_exp_binop_rest) [BINOP_SUBSCRIPT]: Error out if
9993 the offset value isn't of integral type.
9994
9995 2010-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
9996
9997 * breakpoint.c (delete_breakpoint) <bpt->related_breakpoint != NULL>:
9998 New.
9999
10000 2010-02-11 Pedro Alves <pedro@codesourcery.com>
10001
10002 * ax-gdb.c (gen_exp_binop_rest) [BINOP_SUBSCRIPT]: Error out on
10003 non-subscriptable types.
10004 * valarith.c (binop_types_user_defined_p): New, abstracted out
10005 from ...
10006 (binop_user_defined_p): ... this.
10007 * value.h (binop_types_user_defined_p): Declare.
10008
10009 2010-02-11 Pedro Alves <pedro@codesourcery.com>
10010
10011 * tracepoint.c (tfile_open): Remove spurious discard_cleanups.
10012 Merge uploaded TSVs before merging uploaded tracepoints.
10013
10014 2010-02-11 Pedro Alves <pedro@codesourcery.com>
10015
10016 * ax-gdb.c (gen_deref): Don't allow dereferencing void pointers.
10017
10018 2010-02-11 Vladimir Prus <vladimir@codesourcery.com>
10019
10020 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Add extra
10021 whitespace character after a dot in comment.
10022 (mi_cmd_stack_list_arguments, mi_cmd_stack_list_variables):
10023 Likewise.
10024 (list_args_or_locals): For the 'all' (that is
10025 -stack-list-variables) case, always output list of tuples.
10026 Output 'arg' field if variable is argument.
10027
10028 2010-02-10 Tom Tromey <tromey@redhat.com>
10029
10030 * parser-defs.h (parser_debug): Declare.
10031 * parse.c (_initialize_parse): Install "debug parser" set/show
10032 command.
10033 (parser_debug): New global.
10034 (show_parserdebug): New function.
10035 * c-exp.y (c_parse): Set yydebug.
10036
10037 2010-02-10 H.J. Lu <hongjiu.lu@intel.com>
10038
10039 * target-descriptions.c (tdesc_type): Add TDESC_TYPE_I387_EXT,
10040 TDESC_TYPE_I386_EFLAGS and TDESC_TYPE_I386_MXCSR.
10041 (tdesc_predefined_types): Add i387_ext, i386_eflags and
10042 i386_mxcsr.
10043 (tdesc_find_type): New.
10044 (tdesc_gdb_type): Use tdesc_find_type. Handle TDESC_TYPE_I387_EXT,
10045 TDESC_TYPE_I386_EFLAGS and TDESC_TYPE_I386_MXCSR.
10046
10047 * target-descriptions.h (tdesc_find_type): New.
10048
10049 2010-02-10 Michael Snyder <msnyder@vmware.com>
10050
10051 * gdb-gdb.py: Comment fix.
10052
10053 2010-02-09 Tristan Gingold <gingold@adacore.com>
10054
10055 * machoread.c (macho_symfile_relocate): New function.
10056 (macho_sym_fns): Use macho_symfile_relocate instead of
10057 default_symfile_relocate.
10058 (macho_oso_data): New type.
10059 (current_oso): New variable.
10060 (macho_add_oso_symfile): Do not compute section_addr_info, but
10061 instead set vma of sections.
10062 Do not set SYMFILE_VERBOSE to call symbol_file_add_from_bfd.
10063 Set and clear current_oso.
10064
10065 2010-02-09 Joel Brobecker <brobecker@adacore.com>
10066
10067 Wrong type description for tagged type parameter.
10068 * ada-lang.c (ada_evaluate_subexp) [OP_VAR_VALUE]: When noside is
10069 EVAL_AVOID_SIDE_EFFECTS, also handle the case when type is a
10070 reference to a tagged type.
10071
10072 2010-02-09 Tristan Gingold <gingold@adacore.com>
10073
10074 * objfiles.c (objfile_separate_debug_iterate): Do not iterate on
10075 brothers of the parent.
10076
10077 2010-02-08 Tom Tromey <tromey@redhat.com>
10078
10079 PR c++/8017:
10080 * value.h: Update.
10081 * valops.c (search_struct_field): Make 'name' const.
10082 (search_struct_method): Likewise.
10083 (find_method_list): Make 'method' const.
10084 (value_struct_elt): Make 'name' and 'err' const.
10085 (value_find_oload_method_list): Make 'method' const.
10086 (find_overload_match): Make 'name' const.
10087 * eval.c (evaluate_subexp_standard): New locals function,
10088 function_name.
10089 <OP_FUNCALL>: Handle OP_SCOPE specially.
10090
10091 2010-02-08 Ulrich Weigand <uweigand@de.ibm.com>
10092
10093 * infrun.c (handle_inferior_event): Do not look up regcache
10094 for exited processes.
10095
10096 2010-02-08 Chris Moller <moller@mollerware.com>
10097
10098 PR gdb/10728
10099 * valarith.c (value_ptrdiff): Added a test for a zero type length,
10100 warn if found, and assume length = 1.
10101
10102 2010-02-08 Chris Moller <cmoller@redhat.com>
10103
10104 PR gdb/9067
10105 * cp-valprint.c (cp_print_value_fields) Fix use of obstacks.
10106 (cp_print_static_field) Fix use of obstacks.
10107
10108 2010-02-08 Pedro Alves <pedro@codesourcery.com>
10109
10110 * linux-nat.c (linux_nat_resume): In non-stop, also only tag
10111 resumed LWPs as resumed.
10112 (linux_nat_wait_1): If there's no resumed LWP in the set of LWPs
10113 we're waiting for, bail out with TARGET_WAITKIND_IGNORE, instead
10114 of throwing an internal error. If an LWP of a process we're not
10115 waiting for reports a signal, don't force collecting a SIGSTOP,
10116 and if it was breakpoint hit in non-stop mode, cancel it. Don't
10117 go through all LWPs cancelling breakpoints in non-stop mode.
10118 (resume_stopped_resumed_lwps): New.
10119 (linux_nat_wait): Use it.
10120
10121 2010-02-07 H.J. Lu <hongjiu.lu@intel.com>
10122
10123 * features/Makefile (WHICH): Add i386/i386, i386/i386-linux,
10124 i386/amd64 and i386/amd64-linux.
10125 (i386/i386-expedite): New.
10126 (i386/i386-linux-expedite): Likewise.
10127 (i386/amd64-expedite):Likewise.
10128 (i386/amd64-linux-expedite): Likewise.
10129 ($(outdir)/i386/i386-linux.dat): Likewise.
10130 ($(outdir)/i386/amd64.dat): Likewise.
10131 ($(outdir)/i386/amd64-linux.dat): Likewise.
10132
10133 * features/i386/32bit-core.xml: New.
10134 * features/i386/32bit-linux.xml: Likewise.
10135 * features/i386/32bit-sse.xml: Likewise.
10136 * features/i386/64bit-core.xml: Likewise.
10137 * features/i386/64bit-linux.xml: Likewise.
10138 * features/i386/64bit-sse.xml: Likewise.
10139 * features/i386/i386-linux.xml: Likewise.
10140 * features/i386/i386.xml: Likewise.
10141 * features/i386/amd64-linux.xml: Likewise.
10142 * features/i386/amd64.xml: Likewise.
10143 * features/i386/i386-linux.c: Likewise.
10144 * features/i386/i386.c: Likewise.
10145 * features/i386/amd64-linux.c: Likewise.
10146 * features/i386/amd64.c: Likewise.
10147
10148 2010-02-05 Sami Wagiaalla <swagiaal@redhat.com>
10149
10150 PR c++/7935:
10151 * cp-support.h: Added char* alias element to using_direct data
10152 struct.
10153 (cp_add_using): Added char* alias argument.
10154 (cp_add_using_directive): Ditto.
10155 * cp-namespace.c: Updated with the above changes.
10156 (cp_lookup_symbol_imports): Check for aliases.
10157 * dwarf2read.c (read_import_statement): Figure out local alias
10158 for the import and pass it on to cp_add_using.
10159 (read_namespace): Pass alias argument to cp_add_using.
10160
10161 2010-02-05 Hui Zhu <teawater@gmail.com>
10162
10163 * defs.h (gdb_bfd_errmsg): New extern.
10164 * exec.c (exec_file_attach): Change bfd_errmsg to
10165 gdb_bfd_errmsg.
10166 * utils.c (AMBIGUOUS_MESS1): New macro.
10167 (AMBIGUOUS_MESS2): New macro.
10168 (gdb_bfd_errmsg): New function.
10169
10170 2010-02-04 Doug Evans <dje@google.com>
10171
10172 * solib-svr4.c (enable_break): Add comment.
10173
10174 2010-02-04 Anthony Green <green@moxielogic.com>
10175
10176 * moxie-tdep.c (moxie_analyze_prologue): Fail protocol analysis
10177 gracefully.
10178
10179 2010-02-04 Tom Tromey <tromey@redhat.com>
10180
10181 * valops.c (search_struct_field): Account for
10182 value_embedded_offset. Fix check for virtual base past the end of
10183 the object. Use value_copy when making a slice of the value.
10184
10185 2010-02-04 H.J. Lu <hongjiu.lu@intel.com>
10186
10187 PR tui/9622
10188 * tui/tui-interp.c (tui_init): Call tui_initialize_readline
10189 only if gdb_stdout is a tty.
10190
10191 2010-02-04 H.J. Lu <hongjiu.lu@intel.com>
10192
10193 * target-descriptions.c: Include "osabi.h".
10194 (maint_print_c_tdesc_cmd): Generate set_tdesc_osabi for valid
10195 OSABI.
10196
10197 2010-02-04 Tristan Gingold <gingold@adacore.com>
10198
10199 * machoread.c (macho_add_oso): Renamed to macho_register_oso.
10200 (macho_symtab_read): Adjust calls to macho_add_oso.
10201 (macho_oso_symfile): Renamed to macho_symfile_read_all_oso.
10202 (macho_symfile_read): Adjust call to macho_oso_symfile.
10203 (macho_new_init): Move this function after declarations.
10204 (macho_symfile_init): Ditto.
10205 * darwin-nat-info.c (darwin_lib_gdb_ports): Remove.
10206 * darwin-nat.c (darwin_lookup_task): Remove unused prototype.
10207
10208 2010-02-04 Vladimir Prus <vladimir@codesourcery.com>
10209
10210 Include MI command in remotelog.
10211
10212 * mi/mi-main.c (mi_execute_command): Call target_log_command.
10213
10214 2010-02-03 H.J. Lu <hongjiu.lu@intel.com>
10215
10216 * remote.c (remote_state): Remove gdbarch.
10217 (init_remote_state): Don't set gdbarch.
10218 (remote_query_supported): Pass target_gdbarch instead of
10219 rs->gdbarch to gdbarch_qsupported.
10220
10221 2010-02-03 H.J. Lu <hongjiu.lu@intel.com>
10222
10223 * gdbarch.sh: Add qsupported.
10224
10225 * gdbarch.c: Regenerated.
10226 * gdbarch.h: Likewise.
10227
10228 * remote.c (remote_state): Add gdbarch.
10229 (init_remote_state): Set gdbarch.
10230 (remote_query_supported): Support gdbarch_qsupported.
10231
10232 2010-02-03 Daniel Jacobowitz <dan@codesourcery.com>
10233
10234 * amd64fbsd-nat.c (amd64fbsd_supply_pcb): Also check for
10235 __FreeBSD_kernel_version.
10236
10237 2010-02-03 Tristan Gingold <gingold@adacore.com>
10238
10239 * symfile.h (struct sym_fns): Add sym_relocate field.
10240 (default_symfile_relocate): New prototype.
10241 (symfile_relocate_debug_section): First argument is now an objfile.
10242 * symfile.c (default_symfile_relocate): Rename from
10243 symfile_relocate_debug_section, first argument is now an objfile.
10244 (symfile_relocate_debug_section): New function.
10245 * coffread.c (coff_sym_fns): Set sym_relocate field.
10246 * somread.c (som_sym_fns): Ditto.
10247 * mipsread.c (ecoff_sym_fns): Ditto.
10248 * machoread.c (macho_sym_fns): Ditto.
10249 * elfread.c (elf_sym_fns): Ditto.
10250 * dwarf2read.c (dwarf2_read_section): Ditto.
10251 * xcoffread.c (xcoff_sym_fns): Ditto.
10252 * dbxread.c (aout_sym_fns): Ditto.
10253 (dbx_psymtab_to_symtab): Adjust call to symfile_relocate_debug_section.
10254 (elfstab_build_psymtabs): Ditto.
10255
10256 2010-02-03 H.J. Lu <hongjiu.lu@intel.com>
10257
10258 * defs.h (MAX_REGISTER_SIZE): Increase to 32.
10259
10260 2010-02-02 Tom Tromey <tromey@redhat.com>
10261
10262 * valops.c (value_cast_structs): Try downcasting using the RTTI
10263 type.
10264
10265 2010-02-02 Tom Tromey <tromey@redhat.com>
10266
10267 * gnu-v2-abi.c: Don't include gnu-v2-abi.h.
10268 (gnuv2_baseclass_offset): Now static.
10269 * Makefile.in (HFILES_NO_SRCDIR): Remove gnu-v2-abi.h.
10270 * gnu-v2-abi.h: Remove.
10271
10272 2010-02-02 Tom Tromey <tromey@redhat.com>
10273
10274 * m2-typeprint.c (m2_record_fields): Don't use
10275 TYPE_DECLARED_TYPE.
10276 * gdbtypes.h (TYPE_DECLARED_CLASS): New macro.
10277 (struct main_type) <flag_declared_class>: New field.
10278 (struct cplus_struct_type) <declared_type>: Remove.
10279 <ntemplate_args>: Move earlier.
10280 (DECLARED_TYPE_CLASS, DECLARED_TYPE_UNION, DECLARED_TYPE_STRUCT)
10281 (DECLARED_TYPE_TEMPLATE): Remove.
10282 (TYPE_DECLARED_TYPE): Remove.
10283 * gdbtypes.c (lookup_union): Don't use TYPE_DECLARED_TYPE.
10284 * dwarf2read.c (read_structure_type): Set TYPE_DECLARED_CLASS.
10285 * c-typeprint.c (c_type_print_base): Use TYPE_DECLARED_CLASS, not
10286 TYPE_DECLARED_TYPE.
10287
10288 2010-02-02 Tom Tromey <tromey@redhat.com>
10289
10290 PR c++/11226, PR c++/9629, PR c++/9688, PR c++/8890:
10291 * valops.c (search_struct_field): Compute nbases after calling
10292 CHECK_TYPEDEF.
10293 (check_field): Call CHECK_TYPEDEF.
10294 * cp-valprint.c (cp_print_value): Pass correct address to
10295 baseclass_offset. Fix check for virtual base past the end of the
10296 object. Don't offset address passed to cp_print_value_fields or
10297 apply_val_pretty_printer.
10298 (cp_print_value_fields): Fix call to val_print.
10299 (cp_print_value_fields_rtti): New function.
10300 * c-valprint.c (c_val_print): Use cp_print_value_fields_rtti.
10301 * p-valprint.c (pascal_object_print_value_fields): Fix call to
10302 val_print.
10303 * python/py-prettyprint.c (apply_val_pretty_printer): Add embedded
10304 offset to address.
10305 * language.h (struct language_defn) <la_val_print>: Document.
10306 * c-lang.h (cp_print_value_fields_rtti): Declare.
10307
10308 2010-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
10309
10310 PR libc/11214:
10311 * linux-low.c (linux_tracefork_child) [!(__UCLIBC__ && HAS_NOMMU)]: New.
10312 (linux_test_for_tracefork): Move `stack' into [__UCLIBC__ && HAS_NOMMU].
10313 (linux_test_for_tracefork) [!(__UCLIBC__ && HAS_NOMMU)]: New.
10314
10315 2010-02-01 Michael Matz <matz@suse.de>
10316 Daniel Jacobowitz <dan@codesourcery.com>
10317
10318 * i386-tdep.c (i386_frame_cache): Assume valid anonymous
10319 functions use a frame pointer.
10320
10321 2010-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
10322
10323 * solib-svr4.c (scan_dyntag): New variable dyn_addr. Replace gdb_assert
10324 by a conditional setting DYN_ADDR. Use DYN_ADDR.
10325 * config/djgpp/fnchange.lst: Add translations for
10326 symbol-without-target_section.exp and symbol-without-target_section.c.
10327
10328 2010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
10329
10330 * gdbarch.sh: Set LANG and LC_ALL to C, not c.
10331 (remote_breakpoint_for_pc): Correct invalid_p check.
10332 * gdbarch.c: Regenerated.
10333
10334 2010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
10335
10336 * arm-tdep.c (arm_find_mapping_symbol): New function, from
10337 arm_pc_is_thumb.
10338 (arm_pc_is_thumb): Use arm_find_mapping_symbol.
10339 (extend_buffer_earlier): New function.
10340 (MAX_IT_BLOCK_PREFIX, IT_SCAN_THRESHOLD): New constants.
10341 (arm_adjust_breakpoint_address): New function.
10342 (arm_gdbarch_init): Register arm_adjust_breakpoint_address.
10343
10344 2010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
10345
10346 * arm-linux-tdep.c (arm_linux_thumb2_be_breakpoint)
10347 (arm_linux_thumb2_le_breakpoint): New constants.
10348 (arm_linux_init_abi): Set thumb2_breakpoint and
10349 thumb2_breakpoint_size.
10350 * arm-tdep.c (thumb_insn_size, thumb_advance_itstate): New functions.
10351 (thumb_get_next_pc): Add a comment. Rename IT to ITSTATE.
10352 Implement support for single stepping through IT blocks if
10353 a 32-bit Thumb breakpoint instruction is available.
10354 (arm_breakpoint_from_pc): If a 32-bit Thumb breakpoint instruction
10355 is available, use it when needed.
10356 (arm_remote_breakpoint_from_pc): New function.
10357 (arm_gdbarch_init): Register arm_remote_breakpoint_from_pc.
10358 * arm-tdep.h (struct gdbarch_tdep): Correct thumb_breakpoint
10359 comment. Add thumb2_breakpoint and thumb2_breakpoint_size.
10360
10361 2010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
10362
10363 * arch-utils.c (default_remote_breakpoint_from_pc): New function.
10364 * arch-utils.h (default_remote_breakpoint_from_pc): Declare.
10365 * gdbarch.c, gdbarch.h: Regenerated.
10366 * gdbarch.sh (remote_breakpoint_from_pc): New architecture method.
10367 * remote.c (remote_insert_breakpoint, remote_insert_hw_breakpoint): Use
10368 gdbarch_remote_breakpoint_from_pc.
10369
10370 2010-01-29 Daniel Jacobowitz <dan@codesourcery.com>
10371
10372 * infrun.c (prepare_to_proceed): Handle other signals which might
10373 match a breakpoint.
10374 (handle_inferior_event): Move the check for unusual breakpoint
10375 signals earlier.
10376
10377 2010-01-29 Paul Hilfinger <hilfinger@adacore.com>
10378
10379 amd64 - function returning record with field straddling 2 registers.
10380 * amd64-tdep.c (amd_classify_aggregate): Handle the case of
10381 a record of length <= 16 in which a field straddles the two
10382 eightbytes.
10383
10384 2010-01-29 Joel Brobecker <brobecker@adacore.com>
10385
10386 Implement return values on amd64-windows.
10387 * amd64-windows-tdep.c: #include gdbcore.h and regcache.h.
10388 (amd64_windows_return_value): New function.
10389 (amd64_windows_init_abi): Call set_gdbarch_return_value with
10390 amd64_windows_return_value.
10391
10392 2010-01-29 Joel Brobecker <brobecker@adacore.com>
10393
10394 amd64-windows: 32 bytes allocated on stack by caller for integer
10395 parameter registers.
10396 * i386-tdep.h (struct gdbarch_tdep): Add new field
10397 integer_param_regs_saved_in_caller_frame.
10398 * amd64-windows-tdep.c (amd64_windows_init_abi): Set
10399 tdep->integer_param_regs_saved_in_caller_frame to 1.
10400 * amd64-tdep.c (amd64_push_dummy_call): Allocate some memory on
10401 stack if tdep->integer_param_regs_saved_in_caller_frame is set.
10402
10403 2010-01-29 Joel Brobecker <brobecker@adacore.com>
10404
10405 amd64-windows: memory args passed by pointer during function calls.
10406 * i386-tdep.h (gdbarch_tdep): Add field memory_args_by_pointer.
10407 * amd64-tdep.c (amd64_push_arguments): Add handling of architectures
10408 where tdep->memory_args_by_pointer is non-zero.
10409 * amd64-windows-tdep.c (amd64_windows_init_abi): Set
10410 tdep->memory_args_by_pointer to 1.
10411
10412 2010-01-29 Joel Brobecker <brobecker@adacore.com>
10413
10414 amd64-windows: Integer parameters in function calls.
10415 * i386-tdep.h (enum amd64_reg_class): New, moved here from
10416 amd64-tdep.c.
10417 (struct gdbarch_tdep): Add fields call_dummy_num_integer_regs,
10418 call_dummy_integer_regs, and classify.
10419 * amd64-tdep.h (amd64_classify): Add declaration.
10420 * amd64-tdep.c (amd64_dummy_call_integer_regs): New static constant.
10421 (amd64_reg_class): Delete, moved to i386-tdep.h.
10422 (amd64_classify): Make non-static. Move declaration to amd64-tdep.h.
10423 Replace call to amd64_classify by call to tdep->classify.
10424 (amd64_push_arguments): Get the list of registers to use for
10425 passing integer parameters from the gdbarch tdep structure,
10426 rather than using a hardcoded one. Replace calls to amd64_classify
10427 by calls to tdep->classify.
10428 (amd64_push_dummy_call): Get the register number used for
10429 the "hidden" argument from tdep->call_dummy_integer_regs.
10430 (amd64_init_abi): Initialize tdep->call_dummy_num_integer_regs
10431 and tdep->call_dummy_integer_regs. Set tdep->classify.
10432 * amd64-windows-tdep.c: Add include of gdbtypes.h.
10433 (amd64_windows_dummy_call_integer_regs): New static global.
10434 (amd64_windows_classify): New function.
10435 (amd64_windows_init_abi): Initialize tdep->call_dummy_num_integer_regs
10436 tdep->call_dummy_integer_regs and tdep->classify.
10437
10438 2010-01-28 Daniel Jacobowitz <dan@codesourcery.com>
10439
10440 * regcache.c (regcache_xmalloc): Add aspace argument. Use it
10441 for the new regcache. All callers updated.
10442 (regcache_cpy, regcache_cpy_no_passthrough): Do not set aspace here.
10443 (get_thread_arch_regcache): Do not set aspace here.
10444 * regcache.h (regcache_xmalloc): Update declaration.
10445
10446 * frame.c, infcall.c, ppc-linux-tdep.c: Calls to
10447 regcache_xmalloc updated.
10448
10449 2010-01-28 Joel Brobecker <brobecker@adacore.com>
10450
10451 Another -Wunused-function error in procfs.c (sparc-solaris)
10452 * procfs.c (insert_dbx_link_breakpoint): Delete declaration. Move up.
10453 Only define if SYS_syssgi is defined.
10454 (remove_dbx_link_breakpoint): Delete declaration. Move up.
10455 (dbx_link_addr, insert_dbx_link_bpt_in_file)
10456 (insert_dbx_link_bpt_in_region): Move up. Only define if SYS_syssgi
10457 is itself defined.
10458
10459 2010-01-27 Christopher Faylor <me+cygwin@cgf.cx>
10460
10461 * windows-nat.c (windows_initialization_done): New variable.
10462 (get_windows_debug_event): Issue error when process dies before
10463 completely initializing.
10464 (do_initial_windows_stuff): Set flag to indicate when we are done with
10465 the initial steps of attaching to the child.
10466
10467 2010-01-27 Jan Kratochvil <jan.kratochvil@redhat.com>
10468
10469 * symtab.h (struct symbol <symtab>): New comment on NULL values.
10470
10471 2010-01-27 Doug Evans <dje@google.com>
10472
10473 * solib-svr4.c (solib_break_names): Add __dl_rtld_db_dlactivity.
10474
10475 * breakpoint.c (bpstat_stop_status): Delete useless code.
10476
10477 2010-01-27 Jan Kratochvil <jan.kratochvil@redhat.com>
10478
10479 * printcmd.c (display_uses_solib_p): Remove variable section. Access
10480 objfile via SYMBOL_SYMTAB.
10481
10482 2010-01-26 Tom Tromey <tromey@redhat.com>
10483
10484 PR exp/7643:
10485 * eval.c (evaluate_subexp_for_address) <UNOP_IND>: Call
10486 coerce_array on result.
10487
10488 2010-01-26 Sami Wagiaalla <swagiaal@redhat.com>
10489
10490 * cp-namespace.c (cp_lookup_symbol_namespace): Added
10491 search_parent argument.
10492 (cp_add_using): Initialize 'searched' field.
10493 (reset_directive_searched): New function.
10494 * cp-support.h: Add 'searched' field to using_direct struct.
10495 (cp_lookup_symbol_imports): Ditto.
10496 * cp-namespace.c (cp_lookup_symbol_imports): Ditto.
10497 Perform recursive search.
10498 Implement non parent search.
10499 * valops.c (value_maybe_namespace_elt): Updated.
10500
10501 2010-01-26 Sami Wagiaalla <swagiaal@redhat.com>
10502
10503 PR gdb/10929:
10504 * dwarf2read.c (read_lexical_block_scope): Create blocks for
10505 scopes which contain using directives even if they contain no
10506 declarations.
10507 * symtab.c (lookup_symbol_aux): Pass lowest level block to
10508 la_lookup_symbol_nonlocal.
10509 * cp-namespace.c (cp_lookup_symbol_nonlocal): call
10510 cp_lookup_symbol_namespace.
10511 (cp_lookup_symbol_namespace): Perform an import lookup at every
10512 block level.
10513 (cp_lookup_symbol_imports): New function.
10514 (cp_lookup_symbol_in_namespace): New function.
10515
10516 2010-01-25 Tom Tromey <tromey@redhat.com>
10517
10518 PR gdb/11049:
10519 * c-valprint.c (c_val_print): Fix test of extract_unsigned_integer
10520 result.
10521
10522 2010-01-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10523
10524 * configure.ac: Only use host_os part when disabling TUI on osf.
10525 Use test to check variables, prefix strings with x.
10526 * configure: Regenerate.
10527
10528 * solib-osf.c (osf_current_sos): Initialize tail.
10529
10530 2010-01-25 gingold <gingold@adacore.com>
10531
10532 * windows-nat.c (windows_continue): Use %x to print thread id.
10533 (get_windows_debug_event): Ditto.
10534
10535 2010-01-22 Tom Tromey <tromey@redhat.com>
10536
10537 PR symtab/11199:
10538 * dwarf2read.c (quirk_gcc_member_function_pointer): Change return
10539 type and arguments. Use smash_to_methodptr_type.
10540 (read_structure_type): Call quirk_gcc_member_function_pointer
10541 later.
10542 * gdbtypes.h (smash_to_methodptr_type): Declare.
10543 * gdbtypes.c (smash_to_methodptr_type): New function.
10544 (lookup_methodptr_type): Use it.
10545
10546 2010-01-21 Tom Tromey <tromey@redhat.com>
10547
10548 PR symtab/11198:
10549 * symtab.h (lookup_minimal_symbol_and_objfile): Declare.
10550 * minsyms.c (lookup_minimal_symbol_and_objfile): New function.
10551 * glibc-tdep.c (find_minsym_and_objfile): Remove.
10552 (glibc_skip_solib_resolver): Use
10553 lookup_minimal_symbol_and_objfile.
10554
10555 2010-01-21 Kai Tietz <kai.tietz@onevision.com>
10556
10557 * inflow.c (check_syscall): Guard by #if clause for GO32 and
10558 WIN32 targets.
10559
10560 2010-01-20 Tom Tromey <tromey@redhat.com>
10561
10562 PR backtrace/10770:
10563 * valarith.c (value_binop): Handle BINOP_GTR, BINOP_LEQ, and
10564 BINOP_GEQ. Handle BINOP_NOTEQUAL in the signed case.
10565 * dwarf2expr.c (new_dwarf_expr_context): Allocate
10566 dwarf_stack_values, not CORE_ADDRs.
10567 (execute_stack_op): Change DW_OP_div and comparison operators to
10568 use signed operands.
10569
10570 2010-01-20 Vladimir Prus <vladimir@codesourcery.com>
10571
10572 Per-inferior args and tty and environment.
10573
10574 * infcmd.c (inferior_args): Rename to ...
10575 (inferior_args_scratch): ... this.
10576 (inferior_io_terminal): Rename to ...
10577 (inferior_io_terminal_scratch): ... this.
10578 (inferior_argc, inferior_argv): Remove.
10579 (set_inferior_io_terminal, get_inferior_io_terminal): Store
10580 inside current_inferior().
10581 (set_inferior_tty_command, show_inferior_tty_command): New.
10582 (get_inferior_args, set_inferior_args): Store inside
10583 current_inferior().
10584 (notice_args_set): Likewise and rename to...
10585 (set_args_command): ... this.
10586 (set_inferior_args_vector): Likewise.
10587 (notice_args_read): Rename to...
10588 (show_args_command): ...new.
10589 (tty_command): Remove.
10590 (run_command_1): Don't free old args, as they are freed by
10591 set_inferior_arg now.
10592 (run_no_args_command): Likewise.
10593 (inferior_environ): Remove.
10594 (run_command_1): Use environment of the current inferior.
10595 (environment_info, set_environment_command)
10596 (unset_environment_command, path_info, path_command): Likewise.
10597 (_initialize_infcmd): Adjust for function and variable renames.
10598 Do not init inferior_environ.
10599 * inferior.h (set_inferior_arg): Adjust prototype.
10600 (struct inferior): New fields args, argc, argv, terminal, environment.
10601 (inferior_environ): Remove declaration.
10602 * inferior.c (free_inferior): Free new fields.
10603 (add_inferior_silent): Initialize 'environment' field.
10604 * main.c (captured_main): Set arguments only after the initial
10605 inferior has been created. Set set_inferior_io_terminal,
10606 not tty_command.
10607 * mi/mi-main.c (mi_cmd_env_path): Use environment of the current
10608 inferior.
10609 (_initialize_mi_cmd_env): Adjust for disappearance of global
10610 inferior_environ.
10611 * solib.c (solib_find): Use environment of the current inferior.
10612
10613 2010-01-20 Jan Kratochvil <jan.kratochvil@redhat.com>
10614
10615 * varobj.c (varobj_add_child, install_dynamic_child): Wrap into #if
10616 HAVE_PYTHON.
10617 (instantiate_pretty_printer): Move HAVE_PYTHON outside of the function.
10618
10619 2010-01-20 Joel Brobecker <brobecker@adacore.com>
10620
10621 Get rid of ada-lang.c:function_name_from_pc.
10622 * ada-lang.c: Add "stack.h" #include.
10623 (function_name_from_pc): Delete.
10624 (is_known_support_routine): Replace call to function_name_from_pc
10625 by call to find_frame_funname.
10626 (ada_unhandled_exception_name_addr_from_raise): Likewise.
10627
10628 2010-01-19 Tom Tromey <tromey@redhat.com>
10629
10630 PR c++/11026:
10631 * dwarf2read.c (read_partial_die): Allocate partial DIE's name on
10632 objfile obstack.
10633
10634 2010-01-19 Tom Tromey <tromey@redhat.com>
10635
10636 * top.c (stop_sig, float_handler, do_nothing): Remove.
10637
10638 2010-01-19 Jan Kratochvil <jan.kratochvil@redhat.com>
10639
10640 * breakpoint.c (watchpoint_check): Check the call
10641 gdbarch_in_function_epilogue_p before calling frame_find_by_id.
10642 Extend the comment.
10643 * config/djgpp/fnchange.lst: Add translations for
10644 watchpoint-cond-gone.exp, watchpoint-cond-gone.c and
10645 watchpoint-cond-gone-stripped.c.
10646
10647 2010-01-19 Tom Tromey <tromey@redhat.com>
10648
10649 PR c++/8000:
10650 * dwarf2read.c (partial_die_parent_scope): Put enumeration type
10651 into parent scope, and enumerator into grandparent scope.
10652
10653 2010-01-19 Joel Brobecker <brobecker@adacore.com>
10654
10655 * NEWS: Add entry for "set/show ada trust-PAD-over-XVS" commands.
10656
10657 2010-01-19 Joel Brobecker <brobecker@adacore.com>
10658
10659 * configure.host: Make x86_64-*-solaris2.1[0-9]* an alias of
10660 i[34567]86-*-solaris2.1[0-9]*.
10661 * configure.tgt: Likewise.
10662
10663 2010-01-19 Joel Brobecker <brobecker@adacore.com>
10664
10665 * NEWS: Document the source command enhancement allowing it
10666 to load Python scripts. Document the "set/show script-extension"
10667 commands.
10668
10669 2010-01-19 Joel Brobecker <brobecker@adacore.com>
10670
10671 Add -Wunused-function to compile flags.
10672 * configure.ac: Add -Wunused-function to build_warnings.
10673 * configure: Regenerate.
10674
10675 2010-01-19 Joel Brobecker <brobecker@adacore.com>
10676
10677 "delete" ada-lex.c:input function, not used.
10678 * ada-lex.l: #define YY_NO_INPUT.
10679
10680 2010-01-19 Joel Brobecker <brobecker@adacore.com>
10681
10682 Delete free_named_symtabs and associated cleanup.
10683 * symfile.h (free_named_symtabs): Delete declaration.
10684 * symfile.c: Remove some commented out code (clear_symtab_users_once).
10685 (cashier_psymtab): Comment function out.
10686 Delete declaration.
10687 (free_named_symtabs): Delete.
10688 * coffread.c (coff_end_symtab): Remove call to free_named_symtabs.
10689 * dbxread.c (end_psymtab): Likewise.
10690 * dwarf2read.c (process_psymtab_comp_unit): Ditto.
10691 * exec.c (exec_close_1): Ditto.
10692 * xcoffread.c (xcoff_end_psymtab): Likewise.
10693
10694 2010-01-19 Joel Brobecker <brobecker@adacore.com>
10695
10696 * stack.c (print_block_frame_labels): Comment function out.
10697
10698 2010-01-19 Joel Brobecker <brobecker@adacore.com>
10699
10700 Delete unused or undefined functions.
10701 * breakpoint.c (ep_parse_optional_filename): Delete.
10702 * dcache.c (dcache_write_line): Remove declaration.
10703 * infrun.c (build_infrun): Remove declaration.
10704 * tracepoint.c (tracepoint_save_command): Remove declaration.
10705 * linux-nat.c (init_lwp_list): Delete. No longer used.
10706 * event-loop.c (check_async_signal_handlers): Delete declaration.
10707 * infrun.c (init_execution_control_state): Delete.
10708 (proceed): Update comment to avoid mentioning
10709 init_execution_control_state.
10710 * target.c (kill_or_be_killed, nosupport_runtime): Delete.
10711 * ada-lang.c (ada_to_static_fixed_value): Delete.
10712 * scm-lang.c (evaluate_subexp_scm): Delete declaration.
10713 * cp-namespace.c (cp_copy_usings): Delete.
10714 * xml-syscall.c (xml_number_of_syscalls): Delete.
10715 * progspace.c (find_program_space_by_num): Delete.
10716 * inflow.c (handle_sigio): Delete declaration.
10717 * hppa-tdep.c (hppa_alignof): Delete.
10718 * mipsnbsd-tdep.c (mipsnbsd_sigtramp_offset)
10719 (mipsnbsd_core_osabi_sniffer): Delete.
10720
10721 2010-01-18 Tom Tromey <tromey@redhat.com>
10722
10723 PR c++/9680:
10724 * c-exp.y (REINTERPRET_CAST, DYNAMIC_CAST, STATIC_CAST)
10725 (CONST_CAST): New tokens.
10726 (exp): Add new productions.
10727 (ident_tokens): Add const_cast, dynamic_cast, static_cast, and
10728 reinterpret_cast.
10729 (is_cast_operator): New function.
10730 (yylex): Handle cast operators specially.
10731 * eval.c (evaluate_subexp_standard) <UNOP_DYNAMIC_CAST,
10732 UNOP_REINTERPRET_CAST>: New cases.
10733 * expprint.c (print_subexp_standard): Likewise.
10734 (op_name_standard): Likewise.
10735 (dump_subexp_body_standard): Likewise.
10736 * parse.c (operator_length_standard): Likewise.
10737 * expression.h (enum exp_opcode): New constants UNOP_DYNAMIC_CAST,
10738 UNOP_REINTERPRET_CAST.
10739 * gdbtypes.c (class_types_same_p): New function.
10740 (is_ancestor): Use it.
10741 (is_public_ancestor): New function.
10742 (is_unique_ancestor_worker): Likewise.
10743 (is_unique_ancestor): Likewise.
10744 * gdbtypes.h (class_types_same_p, is_public_ancestor)
10745 (is_unique_ancestor): Declare.
10746 * valops.c (value_reinterpret_cast): New function.
10747 (dynamic_cast_check_1): Likewise.
10748 (dynamic_cast_check_2): Likewise.
10749 (value_dynamic_cast): Likewise.
10750 * value.h (value_reinterpret_cast, value_dynamic_cast): Declare.
10751
10752 2010-01-18 Joel Brobecker <brobecker@adacore.com>
10753
10754 Fix build failure when building without Python support.
10755 * python/python.c: Always include exceptions.h, even when HAVE_PYTHON
10756 is not defined.
10757
10758 2010-01-18 Joel Brobecker <brobecker@adacore.com>
10759
10760 Use XVS field type instead of doing a parallel lookup.
10761 * ada-lang.c (ada_get_base_type): Follow the XVS field type
10762 if it is a reference type instead of doing a type lookup using
10763 the XVS field name.
10764
10765 2010-01-18 Joel Brobecker <brobecker@adacore.com>
10766
10767 Trust PAD types instead of using PAD___XVS.
10768 * ada-lang.c (trust_pad_over_xvs): New static variable.
10769 (ada_is_aligner_type): If !trust_pad_over_xvs and there is a
10770 parallel XVS type, follow the XVS type instead of the PAD type.
10771 (unwrap_value): Make sure that there is no parallel XVE type
10772 before returning the value as is.
10773 (set_ada_list, show_ada_list): New static variables.
10774 (set_ada_command, show_ada_command): New functions.
10775 (_initialize_ada_language): Add new "set/show ada" prefix commands.
10776 Add new "set/show ada trust-PAD-over-XVS" setting.
10777
10778 2010-01-18 Tom Tromey <tromey@redhat.com>
10779 Thiago Jung Bauermann <bauerman@br.ibm.com>
10780
10781 Allow "source" to load python scripts.
10782 * exceptions.h (enum errors): Add UNSUPPORTED_ERROR.
10783 * python/python.c (source_python_script): New function.
10784 * python/python.h (source_python_script): Add declaration.
10785 * cli/cli-cmds.c: #include exceptions.h and python/python.h.
10786 (script_ext_off, script_ext_soft, script_ext_strict)
10787 (script_ext_enums, script_ext_mode): New static constants.
10788 (show_script_ext_mode, find_and_open_script): New functions.
10789 (source_script): Enhance to handle Python scripts.
10790 (init_cli_cmds): Add set/show script-extension commands.
10791
10792 2010-01-16 Stan Shebs <stan@codesourcery.com>
10793
10794 * tracepoint.h (struct trace_status): Use unsigned long long
10795 instead of size_t.
10796 * tracepoint.c (trace_status_command): Fix printf directive.
10797 (trace_save_command): Check fwrite returns, fix printf directive.
10798 (trace_filename): New global.
10799 (tfile_open): Set it, check read returns.
10800 (tfile_close): Free trace_filename.
10801 (tfile_get_traceframe_address): Check read returns.
10802 (tfile_trace_find): Ditto.
10803 (tfile_fetch_registers): Ditto.
10804 (tfile_xfer_partial): Ditto.
10805 (tfile_get_trace_state_variable_value): Ditto.
10806
10807 2010-01-15 Stan Shebs <stan@codesourcery.com>
10808
10809 Add trace file support.
10810 * tracepoint.h (enum trace_stop_reason): New enum.
10811 (struct trace_status): New struct.
10812 (parse_trace_status): Declare.
10813 (struct uploaded_tp): Move here from remote.c,
10814 add fields for actions.
10815 (struct uploaded_tsv): New struct.
10816 * tracepoint.c (tfile_ops): New target vector.
10817 (trace_fd): New global.
10818 (tfile_open): New function.
10819 (tfile_close): New function.
10820 (tfile_files_info): New function.
10821 (tfile_get_trace_status): New function.
10822 (tfile_get_traceframe_address): New function.
10823 (tfile_trace_find): New function.
10824 (tfile_fetch_registers): New function.
10825 (tfile_xfer_partial): New function.
10826 (tfile_get_trace_state_variable_value): New function.
10827 (init_tfile_ops): New function.
10828 (_initialize_tracepoint): Call it, add tfile target.
10829 (trace_status): New global.
10830 (current_trace_status): New function.
10831 (trace_running_p): Remove, change all users to get from
10832 current_trace_status()->running.
10833 (get_trace_status): Remove.
10834 (trace_status_command): Call target_get_trace_status directly,
10835 report more detail including tracing stop reasons.
10836 (trace_find_command): Always allow tfind on a file.
10837 (trace_find_pc_command): Ditto.
10838 (trace_find_tracepoint_command): Ditto.
10839 (trace_find_line_command): Ditto.
10840 (trace_find_range_command): Ditto.
10841 (trace_find_outside_command): Ditto.
10842 (trace_frames_offset, cur_offset): Declare as off_t.
10843 (trace_regblock_size): Rename from reg_size, update users.
10844 (parse_trace_status): New function.
10845 (tfile_interp_line): New function.
10846 (disconnect_or_stop_tracing): Ensure current trace
10847 status before asking what to do.
10848 (stop_reason_names): New global.
10849 (trace_save_command): New command.
10850 (get_uploaded_tp): Move here from remote.c.
10851 (find_matching_tracepoint): Ditto.
10852 (merge_uploaded_tracepoints): New function.
10853 (parse_trace_status): Use stop_reason_names.
10854 (_initialize_tracepoint): Define tsave command.
10855 * target.h (target_ops): New fields to_save_trace_data,
10856 to_upload_tracepoints, to_upload_trace_state_variables,
10857 to_get_raw_trace_data, change to_get_trace_status
10858 to take a pointer to a status struct.
10859 (target_save_trace_data): New macro.
10860 (target_upload_tracepoints): New macro.
10861 (target_upload_trace_state_variables): New macro.
10862 (target_get_raw_trace_data): New macro.
10863 * target.c (update_current_target): Add new methods, change
10864 signature of to_get_trace_status.
10865 * remote.c (hex2bin): Make globally visible.
10866 (bin2hex): Ditto.
10867 (remote_download_trace_state_variable): Download name also.
10868 (remote_get_trace_status): Update parameter, use
10869 parse_trace_status.
10870 (remote_save_trace_data): New function.
10871 (remote_upload_tracepoints): New function.
10872 (remote_upload_trace_state_variables): New function.
10873 (remote_get_raw_trace_data): New function.
10874 (remote_start_remote): Use them.
10875 (_initialize_remote_ops): Add operations.
10876 * ax-gdb.c: Include breakpoint.h.
10877 * breakpoint.c (create_tracepoint_from_upload): Use
10878 break_command_really, return tracepoint, warn about unimplemented
10879 parts.
10880 * NEWS: Mention trace file addition.
10881
10882 2010-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
10883
10884 Fix compilation warning on gcc-3.4.
10885 * exec.c (print_section_info): Move the `displacement' variable
10886 initialization to its declaration.
10887
10888 2010-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
10889
10890 * gdb-gdb.py (StructMainTypePrettyPrinter): Fix TYPE_CODE_RANGE
10891 comparison.
10892
10893 2010-01-15 Eric Botcazou <botcazou@adacore.com>
10894
10895 "info tasks" broken by typedefs in ATCB type definitions.
10896 * ada-lang.c (ada_template_to_fixed_record_type_1): Add call to
10897 ada_check_typedef before retrieving the length of the type for
10898 regular fields.
10899
10900 2010-01-15 Joel Brobecker <brobecker@adacore.com>
10901
10902 Do not use name-based lookup for unconstrained packed arrays.
10903 * ada-lang.c (find_parallel_type_by_descriptive_type):
10904 Limit the fallback to name-based lookups to the case where
10905 the type is a constrained packed array.
10906
10907 2010-01-15 Joel Brobecker <brobecker@adacore.com>
10908
10909 Enhance gdb-gdb.py to handle main_type.type_specific.
10910 * gdb-gdb.py: Print the type-specific part of struct main_type.
10911
10912 2010-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
10913
10914 * configure.ac (AC_CHECK_FUNCS): Check for setrlimit and getrlimit.
10915 * configure: Regenerate.
10916 * config.in: Regenerate.
10917 * utils.c: Include sys/resource.h.
10918 (dump_core, can_dump_core): New.
10919 (internal_vproblem): Update the comment. Check can_dump_core while
10920 setting dump_core_p. Replace two abort calls by dump_core calls.
10921
10922 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
10923 Eli Zaretskii <eliz@gnu.org>
10924
10925 * NEWS: Document the PIE support.
10926
10927 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
10928
10929 * linux-tdep.c: Remove includes gdbcore.h, observer.h and elf-bfd.h.
10930 (check_is_pie_binary, _initialize_linux_tdep): Remove.
10931
10932 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
10933
10934 * solib-svr4.c (svr4_exec_displacement): New comment for entry_point.
10935 Replace exec_entry_point call by bfd_get_start_address.
10936
10937 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
10938
10939 Support Valgrind attachments broken by the PIE support.
10940 * auxv.c: Include gdbcore.h.
10941 (procfs_xfer_auxv): Make static. Reduce its comment. Drop its
10942 parameters ops, object and annex. Remove their assertions.
10943 (ld_so_xfer_auxv, memory_xfer_auxv): New function.
10944 * auxv.h (procfs_xfer_auxv): Remove comment. Rename to ...
10945 (memory_xfer_auxv): ... here.
10946 * linux-nat.c (linux_xfer_partial): Rename procfs_xfer_auxv to
10947 memory_xfer_auxv.
10948 * procfs.c (procfs_xfer_partial): Likewise.
10949 * solib-svr4.c (svr4_relocate_main_executable): New prototype.
10950 (svr4_special_symbol_handling): Call svr4_relocate_main_executable.
10951 (svr4_solib_create_inferior_hook): Conditionalize the
10952 svr4_relocate_main_executable call.
10953
10954 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
10955
10956 * solib-svr4.c (scan_dyntag): Remove variable dyn_addr. New variable
10957 target_section. Find SECT in current_target_sections, gdb_assert it.
10958 (elf_lookup_lib_symbol): Pass the binary file if given symfile_objfile.
10959 New variable abfd.
10960 * symtab.c (lookup_objfile_from_block): Return the binary file instead
10961 of separate debug info file.
10962
10963 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
10964
10965 Support PIEs with no symfile_objfile.
10966 * exec.c (print_section_info <abfd == exec_bfd>): Relocate Entry point.
10967 * solib-svr4.c (svr4_relocate_main_executable <exec_bfd>): New block.
10968
10969 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
10970
10971 * solib-svr4.c (svr4_relocate_main_executable): Move the static exec
10972 code part to ...
10973 (svr4_static_exec_displacement): ... a new function.
10974 (svr4_exec_displacement): New function.
10975 (svr4_relocate_main_executable): Call svr4_exec_displacement. Allocate
10976 new_offsets using alloca now. Remove variable old_chain and changed.
10977 Call objfile_relocate unconditionally now.
10978
10979 2010-01-14 Doug Evans <dje@google.com>
10980
10981 * gdbtypes.c (arch_flags_type): Fix comment.
10982 * gdbtypes.h (arch_composite_type): Fix comment.
10983
10984 2009-01-14 Tristan Gingold <gingold@adacore.com>
10985
10986 * machoread.c (macho_add_oso_symfile): Add symfile_flags parameter.
10987 Call xstrdup for abfd->filename. Pass symfile_flags and objfile flags
10988 to symbol_file_add_from_bfd. Add OSO as separate objfile.
10989 (macho_oso_symfile): Add symfile_flags parameter. Pass it to
10990 macho_add_oso_symfile.
10991 (macho_symfile_read): Pass symfile_flags to macho_oso_symfile.
10992
10993 2010-01-14 Joel Brobecker <brobecker@adacore.com>
10994
10995 Tru64: Dead threads are never deleted.
10996 * dec-thread.c (dec_thread_ptid_is_alive): New function.
10997 (dec_thread_count_gdb_threads): Fix counter increment.
10998 (dec_thread_add_gdb_thread): Fix *listp increment.
10999 (resync_thread_list): Fix bug in deletion of dead threads that
11000 caused all threads to be deleted, instead of just the dead ones.
11001
11002 2010-01-13 Phil Muldoon <pmuldoon@redhat.com>
11003
11004 PR python/10705
11005
11006 * python/python-internal.h: Add lazy_string_object_type
11007 definition.
11008 (create_lazy_string_object, gdbpy_initialize_lazy_string)
11009 (gdbpy_is_lazystring, gdbpy_extract_lazy_string): Define.
11010 * python/py-value.c (valpy_lazy_string): New function.
11011 (convert_value_from_python): Add lazy string conversion.
11012 * python/py-prettyprint.c (pretty_print_one_value): Check if
11013 return is also a lazy string.
11014 (print_string_repr): Add lazy string printing branch.
11015 (print_children): Likewise.
11016 * python/py-lazy-string.c: New file. Implement lazy strings.
11017 * python/python.c (_initialize_python): Call
11018 gdbpy_initialize_lazy_string.
11019 * varobj.c (value_get_print_value): Add lazy string printing
11020 branch. Account for encoding.
11021 * c-lang.c (c_printstr): Account for new encoding argument. If
11022 encoding is NULL, find encoding suited for type, otherwise use
11023 user encoding.
11024 * language.h (language_defn): Add encoding argument.
11025 (LA_PRINT_STRING): Likewise.
11026 * language.c (unk_lang_printstr): Update to reflect new encoding
11027 argument to language_defn.
11028 * ada-lang.h (ada_printstr): Likewise.
11029 * c-lang.h (c_printstr): Likewise.
11030 * p-lang.h (pascal_printstr);
11031 * f-lang.c (f_printstr): Likewise.
11032 * m2-lang.c (m2_printstr): Likewise.
11033 * objc-lang.c (objc_printstr): Likewise.
11034 * p-lang.c (pascal_printstr): Likewise.
11035 * scm-lang.c (scm_printstr): Likewise.
11036 * c-valprint.c (c_val_print): Update LA_PRINT_STRING call for
11037 encoding argument.
11038 * ada-valprint.c (ada_printstr): Likewise.
11039 * f-valprint.c (f_val_print): Likewise
11040 * m2-valprint.c (m2_val_print): Likewise.
11041 * p-valprint.c (pascal_val_print): Likewise.
11042 * expprint.c (print_subexp_standard): Likewise.
11043 * valprint.c (val_print_string): Likewise.
11044 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-lazy-string.
11045 (SUBDIR_PYTHON_SRCS): Likewise.
11046 (py-lazy-string.o): New rule.
11047
11048 2010-01-13 Doug Evans <dje@google.com>
11049
11050 * mi/mi-main.c (list_available_thread_groups): Avoid "may be used
11051 uninitialized" warning from gcc on local `tree'.
11052
11053 2010-01-13 Vladimir Prus <vladimir@codesourcery.com>
11054
11055 Implement core awareness.
11056
11057 * bcache.c (compare_ints): Remove
11058 (print_percentage): Use compare_positive_ints.
11059 * defs.h (compare_positive_ints): Declare.
11060 * linux-nat.h (struct lin_lwp): New field core.
11061 (linux_nat_core_of_thread_1): Declare.
11062 * linux-nat.c (add_lwp): Init the 'core' field.
11063 (linux_nat_wait_1): Record the core.
11064 (linux_nat_core_of_thread_1, linux_nat_core_of_thread): New.
11065 (linux_nat_add_target): Register the above.
11066 * linux-thread-db.c (update_thread_core): New.
11067 (thread_db_find_new_threads): Update core information for
11068 every thread.
11069 * remote.c (struct private_thread_info): New.
11070 (free_private_thread_info, demand_private_info): New.
11071 (PACKET_qXfer_threads, use_osdata_threads): New.
11072 (struct thread_item, threads_parsing_context
11073 (start_thread, end_thread, thread_attributes)
11074 (thread_children, threads_children, threads_elements): New.
11075 (remote_threads_info): Try qXfer:threads before anything
11076 else.
11077 (remote_protocol_packets): Register qXfer:threads.
11078 (remote_open_1): Init use_osdata_threads.
11079 (struct stop_reply): New field 'core'.
11080 (remote_parse_stop_reply): Parse core number.
11081 (process_stop_reply): Record core number.
11082 (remote_xfer_partial): Handle qXfer:threads.
11083 (remote_core_of_thread): New.
11084 (init_remote_ops): Register remote_core_of_thread.
11085 (_initialize_remote): Register qXfer:read.
11086 * target.c (target_core_of_thread): New
11087 * target.h (enum target_object): New value TARGET_OBJECT_THREADS.
11088 (struct target_ops): New field to_core_of_threads.
11089 (target_core_of_thread): Declare.
11090 * gdbthread.h (struct thread_info): New field private_dtor.
11091 * thread.c (print_thread_info): Report the core.
11092 * ui-out.c (MAX_UI_OUT_LEVELS): Increase.
11093 * utils.c (compare_positive_ints): New.
11094 * features/threads.dtd: New.
11095 * mi/mi-interp.c (mi_on_normal_stop): Report the core.
11096 * mi/mi-main.c (struct collect_cores_data, collect_cores)
11097 (do_nothing, free_vector_of_osdata_items)
11098 (splay_tree_int_comparator, free_splay_tree): New.
11099 (print_one_inferior_data): Implemented printing of selected
11100 inferiors. Collect and print cores.
11101 (output_cores): New.
11102 (mi_cmd_list_thread_groups): Support --recurse. Permit specifying
11103 thread groups together with --available.
11104
11105 2010-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
11106
11107 * configure: Regenerate (for _STRUCTURED_PROC).
11108
11109 2010-01-12 Joel Brobecker <brobecker@adacore.com>
11110
11111 Delete dead function.
11112 * ada-lang.c (extract_string): Delete. No longer used.
11113
11114 2010-01-12 Joel Brobecker <brobecker@adacore.com>
11115
11116 Fix -Wunused warning in dec-thread.c.
11117 * dec-thread.c (dec_thread_count_gdb_threads)
11118 (dec_thread_add_gdb_thread): Prevent -Wunused warning.
11119
11120 2010-01-12 Joel Brobecker <brobecker@adacore.com>
11121
11122 * ada-valprint.c (ada_print_floating): Remove trailing space.
11123
11124 2010-01-12 Joel Brobecker <brobecker@adacore.com>
11125
11126 Add support for DW_AT_GNAT_descriptive_type.
11127 * gdbtypes.h (enum type_specific_kind): New enum.
11128 (struct main_type) [type_specific_field]: New component.
11129 [type_specific]: Add new component "gnat_stuff".
11130 (struct gnat_aux_type): New type.
11131 (INIT_CPLUS_SPECIFIC): Also set TYPE_SPECIFIC_FIELD (type).
11132 (HAVE_CPLUS_STRUCT): Also check TYPE_SPECIFIC_FIELD (type).
11133 (gnat_aux_default, allocate_gnat_aux_type): Add declaration.
11134 (INIT_GNAT_SPECIFIC, ALLOCATE_GNAT_AUX_TYPE, HAVE_GNAT_AUX_INFO)
11135 (TYPE_SPECIFIC_FIELD): New macros.
11136 (TYPE_CPLUS_SPECIFIC): Return cplus_struct_default if the given
11137 type does not hold any cplus-specific data.
11138 (TYPE_RAW_CPLUS_SPECIFIC): New macro.
11139 (TYPE_GNAT_SPECIFIC, TYPE_DESCRIPTIVE_TYPE): New macros.
11140 (TYPE_IS_OPAQUE): Use HAVE_CPLUS_STRUCT to check if type has
11141 cplus-specific data.
11142 * gdbtypes.c (allocate_cplus_struct_type): Minor stylistic rewrite.
11143 Set new component TYPE_SPECIFIC_FIELD (type).
11144 (gnat_aux_default): New constant.
11145 (allocate_gnat_aux_type): New function.
11146 (init_type): Add initialization the type-specific stuff for
11147 TYPE_CODE_FLT and TYPE_CODE_FUNC types.
11148 (print_gnat_stuff): New function.
11149 (recursive_dump_type): Use HAVE_CPLUS_STRUCT to check for cplus-
11150 specific data. Adjust code that prints the contents of the
11151 type-specific union using the TYPE_SPECIFIC_FIELD value.
11152 * dwarf2read.c (dwarf2_attach_fields_to_type): Do not allocate
11153 the type cplus stuff for Ada types.
11154 (dwarf2_add_member_fn, dwarf2_attach_fn_fields_to_type):
11155 Error out if these routines are called with an Ada type.
11156 (read_structure_type, read_array_type, read_subrange_type):
11157 Add call to set_descriptive_type.
11158 (set_die_type): Initialize the gnat-specific data if necessary.
11159 (need_gnat_info, die_descriptive_type, set_descriptive_type):
11160 New functions.
11161 * ada-lang.c (decode_constrained_packed_array_type): Use
11162 decode_constrained_packed_array_type instead of doing a standard
11163 lookup to locate a parallel type.
11164 (find_parallel_type_by_descriptive_type): New function.
11165 (ada_find_parallel_type_with_name): New function.
11166 (ada_find_parallel_type): Reimplement using
11167 ada_find_parallel_type_with_name.
11168 * ada-valprint.c (print_field_values): Use HAVE_CPLUS_STRUCT
11169 to check if type has a cplus stuff.
11170 * linespec.c (total_number_of_methods): Likewise.
11171 * mdebugread.c (new_type): Likewise.
11172
11173 2010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
11174
11175 * NEWS: Document the 0b binary number prefix parsing.
11176
11177 2010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
11178
11179 * objfiles.c (objfile_relocate1): Change the return type to int.
11180 Describe the new return value. Return non-zero if data changed.
11181 (objfile_relocate): New variable changed. Set it. Call
11182 breakpoint_re_set depending on CHANGED.
11183
11184 2010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
11185
11186 Implement binary numbers parsing.
11187 * c-exp.y (parse_number): New case 'b' and 'B'.
11188
11189 2010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
11190 Tristan Gingold <gingold@adacore.com>
11191
11192 * solib.c (info_sharedlibrary_command): Replace
11193 objfile_has_partial_symbols and objfile_has_full_symbols calls by
11194 objfile_has_symbols.
11195
11196 2010-01-10 Joel Brobecker <brobecker@adacore.com>
11197
11198 * NEWS: Document the improvements made to the mips-irix port.
11199
11200 2010-01-09 Joel Brobecker <brobecker@adacore.com>
11201
11202 Fix the documentation of valprint.c:value_print.
11203 * valprint.c (value_print): Update the function description to
11204 mention that the syntax of the output follows the current_language,
11205 not necessarily C.
11206
11207 2010-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
11208
11209 Fix displacement of separate debug info files.
11210 * objfiles.c (objfile_relocate): Rename to ...
11211 (objfile_relocate1): ... here and make it static. Extend the comment.
11212 (objfile_relocate): New function.
11213 * solib-spu.c (spu_relocate_main_executable): Explicitly check if
11214 SYMFILE_OBJFILE is NULL. Remove variables objfile and old_chain.
11215 Remove following of SEPARATE_DEBUG_OBJFILE. new_offsets is now
11216 allocated using alloca.
11217 * symfile.c (copy_section_addr_info): Remove.
11218 (build_section_addr_info_from_objfile): Make it global. New variables
11219 addr_bit and mask, use them.
11220 * symfile.h (build_section_addr_info_from_objfile): New prototype.
11221 (copy_section_addr_info): Remove.
11222
11223 2010-01-09 Joel Brobecker <brobecker@adacore.com>
11224
11225 Signal unwinder for mips-irix N32.
11226 * mips-irix-tdep.c: #include mips-tdep.h, trad-frame.h, and
11227 tramp-frame.h.
11228 (SIGTRAMP_FRAME_SIZE, SIGCONTEXT_PC_OFF, SIGCONTEXT_REGS_OFF)
11229 (SIGCONTEXT_FPREGS_OFF, SIGCONTEXT_FPCSR_OFF, SIGCONTEXT_HI_OFF)
11230 (SIGCONTEXT_LO_OFF): New macros.
11231 (mips_irix_n32_tramp_frame_init): New function.
11232 (mips_irix_n32_tramp_frame): New static constant.
11233 (mips_irix_init_abi): Prepend the mips_irix_n32_tramp_frame unwinder.
11234
11235 2010-01-09 Joel Brobecker <brobecker@adacore.com>
11236
11237 Breakpoint in shared library does not work on mips-irix.
11238 * procfs.c: #include "observer.h".
11239 (procfs_inferior_created): New function, moving here the code
11240 which unsets the syssgi syscall-exit notifications.
11241 (procfs_create_inferior): Remove the code which unsets the syssgi
11242 syscall-exit notifications. It is too early to do this here.
11243 (_initialize_procfs): Attach the procfs_inferior_created observer.
11244
11245 2010-01-09 Joel Brobecker <brobecker@adacore.com>
11246
11247 Wrong return convention for arrays (mips-irix).
11248 * mips-tdep.c (mips_n32n64_return_value): Arrays whose size is
11249 128 bits or smaller are returned the same way as structs
11250 and unions of the the same size.
11251
11252 2010-01-09 Joel Brobecker <brobecker@adacore.com>
11253
11254 Cannot set the PC on mips-irix.
11255 * irix5-nat.c (fill_gregset): Check regno against the raw PC
11256 register number, no the cooked one.
11257
11258 2010-01-09 Joel Brobecker <brobecker@adacore.com>
11259
11260 Error while loading core file on mips-irix.
11261 * solib-irix.c (irix_solib_create_inferior_hook): Do nothing
11262 if debugging from a core file.
11263
11264 2010-01-09 Joel Brobecker <brobecker@adacore.com>
11265
11266 GDB hangs when attaching to process on mips-irix.
11267 * solib-irix.c (irix_solib_create_inferior_hook): Do nothing if
11268 attaching to a process.
11269
11270 2010-01-09 Joel Brobecker <brobecker@adacore.com>
11271
11272 Use the correct breakpoint instruction on mips-irix.
11273 * mips-tdep.c (mips_breakpoint_from_pc): Add new static variable
11274 containing the correct breakpoint instruction to use on mips-irix.
11275 Use it when the osabi is GDB_OSABI_IRIX.
11276
11277 2010-01-09 Joel Brobecker <brobecker@adacore.com>
11278
11279 -Wunused warning in procfs.c (mips-irix only).
11280 * procfs.c (gdb_praddset, gdb_prdelset): New macros. Use them
11281 throughout instead of using praddset and prdelset respectively.
11282
11283 2010-01-09 Joel Brobecker <brobecker@adacore.com>
11284
11285 GDB crash while stepping into function.
11286 * infrun.c (handle_inferior_event): Refetch the current frame
11287 after handling what.main_action, in case that pointer became
11288 dangling.
11289
11290 2010-01-09 Joel Brobecker <brobecker@adacore.com>
11291
11292 Fix build failure of solaris-hosted cross debuggers.
11293 * ada-valprint.c, parse.c: Include defs.h before including ctype.h.
11294
11295 2010-01-09 Daniel Gutson <dgutson@codesourcery.com>
11296
11297 Fix build failure on sparc-solaris.
11298 * procfs.c: (procfs_do_thread_registers) Use elfcore_write_lwpstatus.
11299
11300 2010-01-08 Jan Kratochvil <jan.kratochvil@redhat.com>
11301
11302 Move some symfile code into subroutines.
11303 * symfile.h (relative_addr_info_to_section_offsets)
11304 (addr_info_make_relative): New prototypes.
11305 * symfile.c (default_symfile_offsets): Move a part to ...
11306 (relative_addr_info_to_section_offsets): ... this new function.
11307 (default_symfile_offsets): Call it.
11308 (syms_from_objfile <!mainline && addrs && addrs->other[0].name>): Move
11309 this part to ...
11310 (addr_info_make_relative): ... this new function.
11311
11312 2010-01-08 Jan Kratochvil <jan.kratochvil@redhat.com>
11313
11314 Add from_tty to solib_create_inferior_hook.
11315 * infcmd.c (post_create_inferior): Move solib_add after
11316 solib_create_inferior_hook. Pass from_tty to
11317 solib_create_inferior_hook. Call solib_add and SOLIB_ADD with
11318 0 from_tty and comment why.
11319 * infrun.c (follow_exec): Pass from_tty solib_create_inferior_hook as 0.
11320 * linux-nat.c (linux_child_follow_fork): Likewise.
11321 * nto-procfs.c (procfs_post_attach, procfs_create_inferior): Likewise.
11322 * solib-darwin.c (darwin_solib_create_inferior_hook): New parameter
11323 from_tty.
11324 * solib-frv.c (frv_solib_create_inferior_hook): Likewise.
11325 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
11326 * solib-null.c (null_solib_create_inferior_hook): Likewise.
11327 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
11328 * solib-pa64.c (pa64_solib_create_inferior_hook): Likewise.
11329 * solib-som.c (som_solib_create_inferior_hook): Likewise.
11330 * solib-spu.c (spu_solib_create_inferior_hook): New parameter from_tty.
11331 Pass it to svr4_so_ops.solib_create_inferior_hook.
11332 * solib-sunos.c (sunos_solib_create_inferior_hook): New parameter
11333 from_tty.
11334 * solib-svr4.c (enable_break): New parameter from_tty. Pass it to
11335 solib_add.
11336 (svr4_solib_create_inferior_hook): New parameter from_tty. Pass it to
11337 enable_break.
11338 * solib-target.c (solib_target_solib_create_inferior_hook): New
11339 parameter from_tty.
11340 * solib.c (solib_create_inferior_hook): New parameter from_tty. Pass
11341 it to ops->solib_create_inferior_hook.
11342 (reload_shared_libraries): Pass from_tty to solib_create_inferior_hook.
11343 Move solib_add after solib_create_inferior_hook, call it now with
11344 from_tty as 0. New comment there.
11345 * solib.h (solib_create_inferior_hook): New parameter from_tty.
11346 * solist.h (struct target_so_ops <solib_create_inferior_hook>):
11347 Likewise.
11348
11349 2010-01-08 Vladimir Prus <vladimir@codesourcery.com>
11350
11351 Fix multiexec race.
11352 * infrun.c (handle_inferior_event): Use get_thread_regcache
11353 with events ptid, not get_current_regcache.
11354
11355 2009-01-08 Joel Brobecker <brobecker@adacore.com>
11356
11357 GDB crash with empty executable name (MinGW).
11358 * source.c (openp): Add assert that parameter string is not NULL.
11359 if parameter string is an empty string, then return with a failure
11360 immediately.
11361
11362 2009-01-08 Joel Brobecker <brobecker@adacore.com>
11363
11364 Get rid of support for VAX Floats.
11365 * ada-lang.h (ada_is_vax_floating_type, ada_vax_float_type_suffix)
11366 (ada_vax_float_print_function): Delete.
11367 * ada-lang.c (ada_is_vax_floating_type, ada_vax_float_type_suffix)
11368 (ada_vax_float_print_function): Delete.
11369 * ada-typeprint.c (print_vax_floating_point_type): Delete.
11370 (ada_print_type): Remove support for VAX floats.
11371 * ada-valprint.c (ada_val_print_1): Remove support for VAX floats.
11372
11373 2010-01-08 Jan Kratochvil <jan.kratochvil@redhat.com>
11374
11375 * stabsread.c (read_args): Handle zero arguments.
11376
11377 2009-01-08 Joel Brobecker <brobecker@adacore.com>
11378
11379 Cannot find in-tree libiconv.a after reconfigure.
11380 * acinclude.m4 (AM_ICONV): If we find an in-tree libiconv.a
11381 that we can use, then cache the path to this archive.
11382 * configure: Regenerate.
11383
11384 2010-01-07 Stan Shebs <stan@codesourcery.com>
11385
11386 Make tracepoint operations go through target vector.
11387 * target.h (enum trace_find_type): New enum.
11388 (struct target_ops): New fields to_trace_init,
11389 to_download_tracepoint, to_download_trace_state_variable,
11390 to_trace_set_readonly_regions, to_trace_start, to_get_trace_status,
11391 to_trace_stop, to_trace_find, to_get_trace_state_variable_value,
11392 to_set_disconnected_tracing.
11393 (target_trace_init): New macro.
11394 (target_download_tracepoint): New macro.
11395 (target_download_trace_state_variable): New macro.
11396 (target_trace_start): New macro.
11397 (target_trace_set_readonly_regions): New macro.
11398 (target_get_trace_status): New macro.
11399 (target_trace_stop): New macro.
11400 (target_trace_find): New macro.
11401 (target_get_trace_state_variable_value): New macro.
11402 (target_set_disconnected_tracing): New macro.
11403 * target.c (update_current_target): Inherit and set defaults for
11404 tracepoint operations.
11405 * tracepoint.c (default_collect): Make globally visible.
11406 (target_is_remote): Remove, along with all calls.
11407 (tvariables_info): Call target_get_trace_state_variable_value.
11408 (remote_set_transparent_ranges): Remove.
11409 (trace_start_command): Call target_trace_init,
11410 target_download_tracepoint, etc.
11411 (download_tracepoint): Remove.
11412 (trace_stop_command): Simplify.
11413 (stop_tracing): Call target_trace_stop.
11414 (get_trace_status): Call target_get_trace_status.
11415 (trace_status_command): Add case for targets that cannot trace.
11416 (finish_tfind_command): Change to take numerical arguments, call
11417 target_trace_find.
11418 (trace_find_command): Update call to finish_tfind_command.
11419 (trace_find_pc_command): Ditto.
11420 (trace_find_tracepoint_command): Ditto.
11421 (trace_find_line_command): Ditto.
11422 (trace_find_range_command): Ditto.
11423 (trace_find_outside_command): Ditto.
11424 (set_disconnected_tracing_value): Call
11425 target_set_disconnected_tracing.
11426 * remote.c: Add protocol encoding bits from tracepoint.c.
11427 (trace_error): Move from tracepoint.c.
11428 (remote_get_noisy_reply): Ditto.
11429 (free_actions_list_cleanup_wrapper): Ditto.
11430 (free_actions_list): Ditto.
11431 (remote_trace_init): New function.
11432 (remote_download_tracepoint): New function.
11433 (remote_download_trace_state_variable): New function.
11434 (remote_trace_set_readonly_regions): New function.
11435 (remote_trace_start): New function.
11436 (remote_get_trace_status): New function.
11437 (remote_trace_stop): New function.
11438 (remote_trace_find): New function.
11439 (remote_download_trace_state_variable): New function.
11440 (remote_set_disconnected_tracing): New function.
11441 (init_remote_ops): Add tracepoint operations.
11442
11443 * tracepoint.c (trace_dump_command): Don't decr_pc_after_break.
11444
11445 2010-01-07 Tristan Gingold <gingold@adacore.com>
11446
11447 * symfile.c (build_section_addr_info_from_objfile): New function.
11448 (symbol_file_add_separate): Don't use offsets from objfile but
11449 built an addr info.
11450
11451 2010-01-06 Stan Shebs <stan@codesourcery.com>
11452
11453 Support disconnected tracing.
11454 * infcmd.c (detach_command): Ask whether to stop tracing.
11455 * cli/cli-cmds.c (quit_command): Ditto.
11456 * breakpoint.h (struct breakpoint): New field number_on_target.
11457 * breakpoint.c (create_tracepoint_from_upload): New function.
11458 (get_tracepoint_by_number_on_target): New function.
11459 * remote.c (struct remote): New field disconnected_tracing.
11460 (remote_disconnected_tracing_feature): New function.
11461 (remote_protocol_features): Add DisconnectedTracing.
11462 (struct uploaded_tp): New struct.
11463 (uploaded_tps): New global.
11464 (get_uploaded_tp): New function.
11465 (find_matching_tracepoint): New function.
11466 (remote_get_tracing_state): New function.
11467 (remote_start_remote): Call it.
11468 * tracepoint.c (disconnected_tracing): New global.
11469 (trace_start_command): Initialize number_on_target.
11470 (stop_tracing): New function, split out from...
11471 (trace_stop_command): Call stop_tracing.
11472 (get_trace_status): New function, split out from...
11473 (trace_status_command): Call get_trace_status, add info on
11474 disconnection behavior.
11475 (disconnect_or_stop_tracing): New function.
11476 (finish_tfind_command): Translate from number on target.
11477 (trace_find_tracepoint_command): Translate to number on target.
11478 (send_disconnected_tracing_value): New function.
11479 (set_disconnected_tracing): New function.
11480 (_initialize_tracepoint): Add disconnected-tracing variable.
11481 * NEWS: Mention disconnected tracing.
11482
11483 2010-01-06 Tristan Gingold <gingold@adacore.com>
11484
11485 * symtab.c (lookup_global_symbol_from_objfile): Rename objfile
11486 parameter to main_objfile. Iterate on all separate debug objfiles.
11487 * symfile.h (symbol_file_add_separate)
11488 (find_separate_debug_file_by_debuglink): Remove parameter names.
11489 * symfile.c (symbol_file_add_separate): Use add_separate_objfile.
11490 (reread_symbols): Use free_objfile_separate_debug.
11491 * objfiles.h (struct objfile): Add separate_debug_objfile_link.
11492 Adjust comment.
11493 (objfile_separate_debug_iterate, add_separate_debug_objfile)
11494 (free_objfile_separate_debug): New prototypes.
11495 * objfiles.c (objfile_separate_debug_iterate): New function.
11496 (add_separate_debug_objfile, free_objfile_separate_debug): New
11497 functions.
11498 (free_objfile): Use free_objfile_separate_debug. Adjust for
11499 multiple separate debug objfile.
11500 (objfile_has_symbols): Adjust comment. Iterate on all separate
11501 debug objfiles.
11502 * minsyms.c (lookup_minimal_symbol): Adjust for multiple separate
11503 debug objfile.
11504 (lookup_minimal_symbol_text): Ditto.
11505 (lookup_minimal_symbol_by_pc_name): Ditto.
11506 (lookup_minimal_symbol_solib_trampoline): Ditto.
11507 (lookup_minimal_symbol_by_pc_section_1): Iterate on all separate
11508 debug objfiles.
11509
11510 2010-01-05 Stan Shebs <stan@codesourcery.com>
11511
11512 Add fast tracepoints.
11513 * arch-utils.h (default_fast_tracepoint_valid_at): Declare.
11514 * arch-utils.c (default_fast_tracepoint_valid_at): New function.
11515 * breakpoint.h (enum bptype): Add bp_fast_tracepoint.
11516 * breakpoint.c (tracepoint_type): New function.
11517 (ALL_TRACEPOINTS): Use it.
11518 (should_be_inserted): Ditto.
11519 (bpstat_check_location): Ditto.
11520 (print_one_breakpoint_location): Ditto.
11521 (user_settable_breakpoint): Ditto.
11522 (set_breakpoint_location_function): Ditto.
11523 (disable_breakpoints_in_shlibs): Ditto.
11524 (delete_trace_command): Ditto.
11525 (print_it_typical): Add bp_fast_tracepoint case.
11526 (bpstat_what): Ditto.
11527 (print_one_breakpoint_location): Ditto.
11528 (allocate_bp_location): Ditto.
11529 (mention): Ditto.
11530 (breakpoint_re_set_one): Ditto.
11531 (disable_command): Ditto.
11532 (enable_command): Ditto.
11533 (check_fast_tracepoint_sals): New function.
11534 (break_command_really): Call it.
11535 (ftrace_command): New function.
11536 (_initialize_breakpoint): Add ftrace command.
11537 * gdbarch.sh (fast_tracepoint_valid_at): New.
11538 * gdbarch.h, gdbarch.c: Regenerate.
11539 * i386-tdep.c (i386_fast_tracepoint_valid_at): New function.
11540 (i386_gdbarch_init): Use it.
11541 * remote.c (struct remote_state): New field fast_tracepoints.
11542 (PACKET_FastTracepoints): New packet config type.
11543 (remote_fast_tracepoint_feature): New function.
11544 (remote_protocol_features): Add FastTracepoints.
11545 (remote_supports_fast_tracepoints): New function.
11546 (_initialize_remote): Add FastTracepoints.
11547 * tracepoint.c (download_tracepoint): Add fast tracepoint option.
11548 * NEWS: Mention fast tracepoints.
11549
11550 2010-01-06 Joel Brobecker <brobecker@adacore.com>
11551
11552 * gdb-gdb.py: New file.
11553
11554 2010-01-05 Michael Snyder <msnyder@vmware.com>
11555
11556 * infrun.c (handle_inferior_event): Fix typo in comment.
11557
11558 2010-01-05 Jan Kratochvil <jan.kratochvil@redhat.com>
11559
11560 * symfile.c (syms_from_objfile): Remove the !MAINLINE conditional.
11561
11562 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
11563
11564 * features/Makefile (WHICH): Add s390-linux32, s390-linux64,
11565 and s390x-linux64.
11566 (s390-linux32-expedite): Define.
11567 (s390-linux64-expedite): Define.
11568 (s390x-linux64-expedite): Define.
11569 * features/s390-acr.xml: New file.
11570 * features/s390-fpr.xml: New file.
11571 * features/s390-core32.xml: New file.
11572 * features/s390-core64.xml: New file.
11573 * features/s390x-core64.xml: New file.
11574 * features/s390-linux32.xml: New file.
11575 * features/s390-linux64.xml: New file.
11576 * features/s390x-linux64.xml: New file.
11577 * features/s390-linux32.c: New generated file.
11578 * features/s390-linux64.c: New generated file.
11579 * features/s390x-linux64.c: New generated file.
11580
11581 * regformats/s390-linux32.dat: New generated file.
11582 * regformats/s390-linux64.dat: New generated file.
11583 * regformats/s390x-linux64.dat: New generated file.
11584 * regformats/reg-s390.dat: Remove.
11585 * regformats/reg-s390x.dat: Remove.
11586
11587 * s390-nat.c: Include "auxv.h" and <elf.h>.
11588 (HWCAP_S390_HIGH_GPRS): Define if undefined.
11589 (s390_target_wordsize): New function.
11590 (s390_auxv_parse): Likewise.
11591 (s390_get_hwcap): Likewise.
11592 (s390_read_description): Likewise.
11593 (_initialize_s390_nat): Install s390_auxv_parse and
11594 s390_read_description.
11595
11596 * s390-tdep.c: Include "features/s390-linux32.c",
11597 "features/s390-linux64.c", and "features/s390x-linux64.c".
11598 (struct gdbarch_tdep): Add gpr_full_regnum, pc_regnum, and cc_regnum.
11599 (s390_register_call_saved): New function.
11600 (s390_register_name): Remove.
11601 (s390_register_type): Remove.
11602 (s390_dwarf_regmap): Add lower half GPR pseudo DWARF CFI regnums.
11603 (s390_dwarf_reg_to_regnum): Remap GPR regnums to full GPRs.
11604 (s390_adjust_frame_regnum): Remap GPR regnums to lower halves for CFI.
11605 (s390_pseudo_register_name): New function.
11606 (s390_pseudo_register_type): New function.
11607 (s390_pseudo_register_read): Handle both 32-bit and 64-bit cases.
11608 Handle full GPR pesudos and varying pseudo register numbers.
11609 (s390_pseudo_register_write): Likewise
11610 (s390x_pseudo_register_read): Remove.
11611 (s390x_pseudo_register_write): Likewise.
11612 (s390_register_group): Remove.
11613 (s390_pseudo_register_group): New function.
11614 (s390_regmap_gregset): Add GPR upper halves.
11615 (s390x_regmap_gregset): Likewise.
11616 (s390_regmap_fpregset): Likewise.
11617 (s390_regmap_upper): New global variable.
11618 (s390_upper_regset): New global variable.
11619 (s390_upper_regset_sections): New global variable.
11620 (s390_regset_from_core_section): Handle GPR upper halves.
11621 (s390_core_read_description): New function.
11622 (s390_prologue_frame_unwind_cache): Set up ABI call-saved/clobbered
11623 register information. Handle varying pseudo register numbers.
11624 (s390_backchain_frame_unwind_cache): Likewise.
11625 (s390_frame_prev_register): Unwind full GPRs to show lower halves.
11626 (s390_stub_frame_unwind_cache): Handle varying pseudo register numbers.
11627 (s390_sigtramp_frame_unwind_cache): Unwind PSWM and PSWA as well as
11628 PC and CC pseudos. Unwind upper halves and full GPRs as appropriate.
11629 Handle varying pseudo register numbers.
11630 (s390_unwind_pc): Handle varying pseudo register numbers.
11631 (s390_dwarf2_prev_register): New function.
11632 (s390_dwarf2_frame_init_reg): Set up ABI call-saved/clobbered
11633 register information. Handle varying pseudo register numbers.
11634 Install s390_dwarf2_prev_register to unwind full GPRs.
11635 (s390_gdbarch_init): Handle target descriptions. Assign varying
11636 pseudo register numbers. Install s390_adjust_frame_regnum.
11637 (_initialize_s390_tdep): Initialize target descriptions.
11638
11639 * s390-tdep.h (S390_R0_UPPER_REGNUM .. S390_R15_UPPER_REGNUM): Define.
11640 (S390_NUM_REGS): Redefine to include upper half registers.
11641 (S390_PC_REGNUM, S390_CC_REGNUM): Remove.
11642 (S390_NUM_PSEUDO_REGS, S390_NUM_TOTAL_REGS): Likewise.
11643 (tdesc_s390_linux32): Add declaration.
11644 (tdesc_s390_linux64): Likewise.
11645 (tdesc_s390x_linux64): Likewise.
11646
11647 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
11648
11649 * regset.h (struct core_regset_section): Add HUMAN_NAME.
11650 * i386-linux-tdep.c (i386_linux_regset_sections): Fill in HUMAN_NAME.
11651 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections): Likewise.
11652 (ppc_linux_vmx_regset_sections): Likewise.
11653 (ppc_linux_fp_regset_sections): Likewise.
11654
11655 * corelow.c (get_core_register_section): Constify arguments.
11656 (get_core_registers): Use gdbarch_core_regset_sections instead
11657 of hard-coded platform-specific register section names.
11658
11659 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
11660
11661 * dwarf2loc.c (read_pieced_value): If a piece occupies part of
11662 a register, assume the least-significant part is used.
11663 (write_pieced_value): Likewise.
11664
11665 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
11666
11667 * printcmd.c: Include "arch-utils.h".
11668 (do_one_display): Re-parse expression if current architecture changed.
11669
11670 2010-01-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11671 Joel Brobecker <brobecker@adacore.com>
11672
11673 * gdbtypes.c (check_typedef): New comment on type length.
11674 * value.c (allocate_value_lazy): Remove the unused atype variable. New
11675 comment on type length.
11676 (value_primitive_field): Keep the original TYPE value, new comment.
11677
11678 2010-01-01 Jan Kratochvil <jan.kratochvil@redhat.com>
11679
11680 * cli/cli-script.c (process_next_line): Rename p1 as p_end and p2 as
11681 p_start. Change != comparisons to > and < comparisons.
11682
11683 2010-01-01 Jan Kratochvil <jan.kratochvil@redhat.com>
11684
11685 * cli/cli-script.c (process_next_line): Check P2 overrun.
11686
11687 2009-01-01 Joel Brobecker <brobecker@adacore.com>
11688
11689 Update the copyright hearder to add year 2010 for most GDB files.
11690
11691 2009-01-01 Joel Brobecker <brobecker@adacore.com>
11692
11693 Fix build failure in inf-ptrace.c.
11694 * inf-ptrace.c (inf_ptrace_follow_fork): Fix typo.
11695
11696 2010-01-01 Joel Brobecker <brobecker@adacore.com>
11697
11698 * top.c (print_gdb_version): Update copyright year.
11699
11700 2010-01-01, 10 Joel Brobecker <brobecker@adacore.com>
11701
11702 Fix break *FUN'address thread NUM.
11703 * ada-lex.l (task): Expand rule to also match the thread keyword.
11704
11705 2010-01-01 Joel Brobecker <brobecker@adacore.com>
11706
11707 Fix break *FUN'address task NUM.
11708 * ada-lex.l (task): New rule.
11709 * ada-lang.c (valid_task_id): Make sure the Ada task list has
11710 been built before using it.
11711
11712 For older changes see ChangeLog-2009.
11713 \f
11714 Local Variables:
11715 mode: change-log
11716 left-margin: 8
11717 fill-column: 74
11718 version-control: never
11719 coding: utf-8
11720 End: