2010-12-29 Michael Snyder <msnyder@vmware.com>
[binutils-gdb.git] / gdb / ChangeLog
1 2010-12-29 Michael Snyder <msnyder@vmware.com>
2
3 * bcache.c: Comment clean-up.
4 * block.c: Ditto.
5 * blockframe.c: Ditto.
6 * breakpoint.c: Ditto.
7 * bsd-kvm.c: Ditto.
8 * buildsym.c: Ditto.
9
10 2010-12-29 Jie Zhang <jie.zhang@analog.com>
11
12 * configure.tgt (bfin-*-*): Set build_gdbserver to yes.
13 * NEWS: Mention new Blackfin support.
14 * regformats/reg-bfin.dat: New file.
15
16 2010-12-29 Jie Zhang <jie.zhang@analog.com>
17 Mike Frysinger <vapier@gentoo.org>
18
19 * Makefile.in (ALLDEPFILES): Add bfin-linux-tdep.c and bfin-tdep.c.
20 (HFILES_NO_SRCDIR): Add bfin-tdep.h.
21 (ALL_TARGET_OBS): Add bfin-linux-tdep.o and bfin-tdep.o.
22 * NEWS: Mention new Blackfin port.
23 * bfin-tdep.c, bfin-tdep.h, bfin-linux-tdep.c,
24 syscalls/bfin-linux.xml: New files.
25 * configure.tgt (bfin-*-*): Handle bfin targets.
26
27 2010-12-29 Hui Zhu <teawater@gmail.com>
28
29 * ax-gdb.c (gen_expr): Change error message.
30
31 2010-12-29 Joel Brobecker <brobecker@adacore.com>
32
33 * gdb.c: Revert the previous change, which was probably committed
34 by accident.
35
36 2010-12-29 Joel Brobecker <brobecker@adacore.com>
37
38 * ada-lang.c: Fix typo in comment.
39
40 2010-12-29 Joel Brobecker <brobecker@adacore.com>
41
42 * ada-valprint.c (ada_val_print_1): Print null array pointers as
43 `0x0' rather than `(null)'. Add assertion.
44
45 2010-12-29 Joel Brobecker <brobecker@adacore.com>
46
47 * ada-lang.h (ada_coerce_to_simple_array): Add declaration.
48 * ada-lang.c (ada_typedef_target_type): New function.
49 (desc_base_type): Add handling of fat pointer typedefs.
50 (ada_coerce_to_simple_array): Make non-static.
51 (decode_packed_array_bitsize): Add handling of fat pointer typedefs.
52 Add assertion.
53 (ada_template_to_fixed_record_type_1, ada_to_fixed_type)
54 (ada_check_typedef): Add handling of fat pointer typedefs.
55 (ada_evaluate_subexp) [OP_FUNCALL]: Likewise.
56 * ada-typeprint.c (ada_print_type): Add handling of fat pointer
57 typedefs.
58 * ada-valprint.c (ada_val_print_1): Convert fat pointers that are not
59 array accesses to simple arrays rather than simple array pointers.
60 (ada_value_print): In the case of array descriptors, do not print
61 the value type description unless it is an array access.
62
63 2010-12-29 Joel Brobecker <brobecker@adacore.com>
64
65 * target.h (enum target_object): Expand the documentation of
66 TARGET_OBJECT_OSDATA a bit.
67
68 2010-12-28 Michael Snyder <msnyder@vmware.com>
69
70 * command.h: Comment clean-up.
71 * cli/cli-cmds.c: Ditto.
72 * cli/cli-cmds.h: Ditto.
73 * cli/cli-decode.c: Ditto.
74 * cli/cli-decode.h: Ditto.
75 * cli/cli-dump.c: Ditto.
76 * cli/cli-interp.c: Ditto.
77 * cli/cli-logging.c: Ditto.
78 * cli/cli-script.c: Ditto.
79 * cli/cli-setshow.c: Ditto.
80 * cli/cli-setshow.h: Ditto.
81
82 2010-12-28 Michael Snyder <msnyder@vmware.com>
83
84 * event-loop.c: Comment clean-up.
85 * event-loop.h: Ditto.
86 * event-top.c: Ditto.
87 * gdb.c: Ditto.
88 * gdb.h: Ditto.
89 * main.c: Ditto.
90 * top.c: Ditto.
91 * top.h: Ditto.
92
93 2010-12-28 Pedro Alves <pedro@codesourcery.com>
94
95 * ax-gdb.c (gen_expr) <OP_REGISTER>: Error out if trying to
96 collect a user register.
97
98 2010-12-28 Hui Zhu <teawater@gmail.com>
99
100 * gdbarch.sh (ax_pseudo_register_collect,
101 ax_pseudo_register_push_stack): new callbacks.
102 (agent_expr): Forward declare.
103 * gdbarch.h, gdbarch.c: Regenerate.
104 * ax-gdb.c (gen_expr): Remove pseudo-register check code.
105 * ax-general.c (user-regs.h): New include.
106 (ax_reg): Call gdbarch_ax_pseudo_register_push_stack.
107 (ax_reg_mask): Call gdbarch_ax_pseudo_register_collect.
108 * mips-tdep.c (ax.h): New include.
109 (mips_ax_pseudo_register_collect,
110 mips_ax_pseudo_register_push_stack): New functions.
111 (mips_gdbarch_init): Set mips_ax_pseudo_register_collect and
112 mips_ax_pseudo_register_push_stack.
113
114 2010-12-28 Yao Qi <yao@codesourcery.com>
115
116 * arm-tdep.c (arm_register_aliases): Remove sp, pc, and fp.
117
118 2010-12-28 Joel Brobecker <brobecker@adacore.com>
119
120 * inf-child.c (inf_child_acknowledge_created_inferior): Delete.
121 (inf_child_target): Do not set t->to_acknowledge_created_inferior.
122 * inf-ptrace.c (inf_ptrace_create_inferior): Remove call to
123 target_acknowledge_created_inferior.
124 * inf-ttrace.c (inf_ttrace_him): Likewise.
125 * target.h (struct target_ops): Delete to_acknowledge_created_inferior
126 field.
127 (target_acknowledge_created_inferior): Delete.
128 * target.c (update_current_target): Remove setting of
129 to_acknowledge_created_inferior field. Do default value for that
130 field either.
131 (debug_to_acknowledge_created_inferior): Delete.
132 (setup_target_debug): Remove setting of
133 current_target.to_acknowledge_created_inferior.
134
135 2010-12-27 Pedro Alves <pedro@codesourcery.com>
136
137 gdb/
138 * breakpoint.c (breakpoint_restore_shadows): When looking for the
139 location with the lowest address that overlaps the memory range we
140 want to restore shadows for, account for multiple locations at the
141 same address.
142
143 2010-12-27 Jan Kratochvil <jan.kratochvil@redhat.com>
144
145 Code cleanup - renaming.
146 * breakpoint.c: Use bl for `*bp_location' variables, blp_tmp for
147 `**bp_location' helper variables, b_tmp for `*breakpoint' helper
148 variables.
149
150 2010-12-27 Kevin Buettner <kevinb@redhat.com>
151 Hui Zhu <teawater@gmail.com>
152
153 * mips-tedp.c (mips_register_name): Add comments.
154
155 2010-12-23 Yao Qi <yao@codesourcery.com>
156
157 * arm-tdep.c (thumb_analyze_prologue): Move some code ...
158 (EXTRACT_MOVW_MOVT_IMM_T): ... here. New macro.
159 (EXTRACT_MOVW_MOVT_IMM_A): New macro.
160 (arm_analyze_load_stack_chk_guard): New.
161 (arm_skip_stack_protector): New.
162 (arm_skip_prologue): Adjust post_prologue_pc by
163 arm_skip_stack_protector.
164
165
166 2010-12-23 Yao Qi <yao@codesourcery.com>
167
168 * arm-tdep.c (arm_gdbarch_init): Remove invoke to
169 set_gdbarch_deprecated_fp_regnum.
170
171 2010-12-22 Marc Khouzam <marc.khouzam@ericsson.com>
172
173 * inferior.c (remove_inferior_command): Don't remove an active inferior.
174 * mi/mi-main.c (mi_cmd_remove_inferior): Ditto.
175
176 2010-12-21 Tom Tromey <tromey@redhat.com>
177
178 * thread.c (print_thread_info): Make a ui-out table in CLI mode.
179
180 2010-12-20 Yao Qi <yao@codesourcery.com>
181
182 * arm-tdep.c (arm_register_reggroup_p): New.
183 (arm_gdbarch_init): Set arm_register_reggroup_p for hook
184 register_reggroup_p.
185
186 2010-12-20 Yao Qi <yao@codesourcery.com>
187
188 * features/arm-core.xml: Add attribute type to reg from r0 to r12.
189 * features/arm-with-iwmmxt.c: Regenerate.
190 * features/arm-with-neon.c: Regenerate.
191 * features/arm-with-vfpv2.c: Regenerate.
192 * features/arm-with-vfpv3.c: Regenerate.
193
194 2010-12-17 Marc Khouzam <marc.khouzam@ericsson.com>
195
196 * mi/mi-main.c (mi_cmd_remove_inferior): Don't delete current inferior.
197 (get_other_inferior): New.
198
199 2010-12-17 Marc Khouzam <marc.khouzam@ericsson.com>
200
201 * python/py-progspace.c (py_free_pspace): Obtain arch another
202 way to avoid dereferencing a null pointer.
203
204 2010-12-17 Michael Snyder <msnyder@vmware.com>
205
206 * utils.c (do_my_cleanups): Comment fix-up.
207
208 2010-12-17 Kevin Buettner <kevinb@redhat.com>
209
210 * mips-tdep.c (make_mips16_addr): New function.
211 (mips_elf_make_msymbol_special): Don't set the low bit in the
212 symbol's address.
213 (mips_read_pc, mips_unwind_pc, mips_addr_bits_remove): Strip bit
214 indicating mips16 address, if present.
215 (mips_write_pc): Set bit indicating mips16 address when in a mips16
216 function.
217 (mips_eabi_push_dummy_call, mips_o64_push_dummy_call): Likewise,
218 but for each function pointer argument to inferior function call.
219
220 2010-12-17 Tom Tromey <tromey@redhat.com>
221
222 * psympriv.h (struct partial_symtab) <readin>: Move field
223 earlier.
224
225 2010-12-16 Kevin Buettner <kevinb@redhat.com>
226
227 * mips-tdep.c (mips_convert_register_float_case_p)
228 (mips_convert_register_gpreg_case_p): New functions.
229 (mips_convert_register_p): Invoke new functions above.
230 (mips_register_to_value): Add case for fetching value shorter
231 than 64 bits from a 64-bit register.
232 (mips_value_to_register): Add case for storing value shorter
233 than 64 bits into a 64-bit register.
234
235 2010-12-16 Joel Borggrén-Franck <joel.borggren.franck@gmail.com>
236
237 * python/py-value.c (value_object_type) <tp_flags>: Add
238 Py_TPFLAGS_BASETYPE.
239
240 2010-12-16 Mike Frysinger <vapier@gentoo.org>
241
242 * NEWS: Mention new sim --map-info flag.
243
244 2010-12-15 Doug Evans <dje@google.com>
245
246 * dwarf2read.c (_initialize_dwarf2_read): Fix help text of
247 "save gdb-index" command.
248
249 2010-12-15 Tom Tromey <tromey@redhat.com>
250
251 * infrun.c (save_infcall_control_state): Handle the
252 exception-resume breakpoint.
253 (restore_infcall_control_state): Likewise.
254 (discard_infcall_control_state): Likewise.
255
256 2010-12-15 Kevin Buettner <kevinb@redhat.com>
257
258 * mips-tdep.c (mips_pseudo_register_write): Sign extend 32-bit
259 cooked values that are being transferred to 64-bit raw registers.
260 (mips_pseudo_register_read): Revise to preserve symmetry with
261 mips_pseudo_register_write().
262
263 2010-12-15 Greg Watson <g.watson@computer.org>
264
265 * f-exp.y (yylex): Check entire token against keywords.
266
267 2010-12-15 Doug Evans <dje@google.com>
268
269 Rename "maint set python auto-load" to "set auto-load-scripts".
270 * NEWS: Mention it.
271 * python/py-auto-load.c (auto_load_scripts): Renamed from
272 gdbpy_auto_load.
273 (load_auto_scripts_for_objfile): Update.
274 (gdbpy_initialize_auto_load): Rename "maint set python auto-load" to
275 "set auto-load-scripts".
276
277 2010-12-14 Kevin Buettner <kevinb@redhat.com>
278
279 * mips-tdep.c (mips_eabi_push_dummy_call): Place signed, rather
280 than unsigned, values in registers.
281
282 2010-12-14 Ken Werner <ken.werner@de.ibm.com>
283
284 * valops.c (value_one): Use get_array_bounds to compute the number
285 of array elements instead of dividing the length of the array by the
286 length of the element types.
287 * valarith.c (value_complement, value_neg): Likewise.
288
289 2010-12-14 Joel Brobecker <brobecker@adacore.com>
290
291 * irix5-nat.c: Replace fp_r, fp_regs and fp_scr by __fp_r, __fp_regs
292 and __fp_scr respectively throughout.
293 * configure.ac: Compile with -Dsiginfo=__siginfo if building with
294 Python using GCC on IRIX.
295 * configure: Regenerate.
296
297 2010-12-13 Kevin Buettner <kevinb@redhat.com>
298
299 * solib-svr4.c (enable_break): Don't attempt to place breakpoints,
300 when attaching, on the names in bkpt_names: _start, __start, and
301 main.
302
303 2010-12-12 Stan Shebs <stan@codesourcery.com>
304
305 * value.c (value_of_internalvar): Add case for trace state
306 variables.
307
308 2010-12-12 Doug Evans <dje@google.com>
309
310 * dwarf2read.c (dwarf2_per_objfile): New member quick_file_names_table.
311 (dwarf2_per_cu_quick_data): Move definition down to "quick functions"
312 section. Delete members lines full_names. Rename read_lines to
313 no_file_data.
314 (quick_file_names): New struct.
315 (hash_file_name_entry, eq_file_name_entry): New functions.
316 (delete_file_name_entry, create_quick_file_names_table): New functions.
317 (dwarf2_read_index): Initialize quick_file_names_table.
318 (dw2_get_file_names): Renamed from dw2_require_line_header.
319 Return pointer to quick_file_names entry. All callers updated.
320 (dw2_get_real_path): Renamed from dw2_require_full_path.
321 Replace per_cu arg with pointer to quick_file_names entry.
322 All callers updated.
323 (dw2_free_cached_file_names): New function.
324 (dw2_forget_cached_source_info): Call it (via htab_traverse_noresize).
325 (dwarf2_initialize_objfile): Initialize quick_file_names_table in
326 the OBJF_READNOW case.
327 (dwarf2_free_objfile): Rewrite freeing of quick file names tables.
328
329 2010-12-12 Mark Kettenis <kettenis@gnu.org>
330
331 * mips64obsd-tdep.c (floatformats_mips64_quad): New define.
332 (mips64obsd_init_abi): Set long_double_bit and long_double_format.
333
334 2010-12-12 Mark Kettenis <kettenis@gnu.org>
335
336 * sparc-tdep.c: Fix typo in comment.
337
338 2010-12-10 Doug Evans <dje@google.com>
339
340 * dwarf2read.c: Whitespace cleanup, plus comment additions.
341 No code changes.
342
343 2010-12-10 Tom Tromey <tromey@redhat.com>
344
345 * NEWS: Document exception-handling change.
346
347 2010-12-09 Marc Khouzam <marc.khouzam@ericsson.com>
348
349 * mi/mi-parse.c (mi_parse): Wrong error message.
350
351 2010-12-09 Doug Evans <dje@google.com>
352
353 * symfile.h (quick_symbol_functions): Clarify usage of
354 map_symbol_filenames.
355
356 2010-12-09 Tom Tromey <tromey@redhat.com>
357
358 * mi/mi-parse.h (mi_parse): Update.
359 * mi/mi-parse.c (mi_parse_cleanup): New function.
360 (mi_parse): Add 'token' argument. Throw exception on error.
361 * mi/mi-main.c (mi_print_exception): New function.
362 (mi_execute_command): Use mi_print_exception. Catch exceptions
363 from mi_parse.
364
365 2010-12-09 Tom Tromey <tromey@redhat.com>
366
367 PR c++/9593:
368 * thread.c (clear_thread_inferior_resources): Call
369 delete_longjmp_breakpoint.
370 * infrun.c (handle_inferior_event): Handle exception breakpoints.
371 (handle_inferior_event): Likewise.
372 (insert_exception_resume_breakpoint): New function.
373 (check_exception_resume): Likewise.
374 * inferior.h (delete_longjmp_breakpoint_cleanup): Declare.
375 * infcmd.c (delete_longjmp_breakpoint_cleanup): No longer static.
376 (step_1): Set thread's initiating frame.
377 (until_next_continuation): New function.
378 (until_next_command): Support exception breakpoints.
379 (finish_command_continuation): Delete longjmp breakpoint.
380 (finish_forward): Support exception breakpoints.
381 * gdbthread.h (struct thread_info) <initiating_frame>: New field.
382 * breakpoint.h (enum bptype) <bp_exception, bp_exception_resume,
383 bp_exception_master>: New constants.
384 (struct bpstat_what) <is_longjmp>: New field.
385 (set_longjmp_breakpoint): Update.
386 * breakpoint.c (create_exception_master_breakpoint): New function.
387 (update_breakpoints_after_exec): Handle bp_exception_master. Call
388 create_exception_master_breakpoint.
389 (print_it_typical): Handle bp_exception_master, bp_exception.
390 (bpstat_stop_status): Handle bp_exception_master.
391 (bpstat_what): Handle bp_exception_master, bp_exception,
392 bp_exception_resume.
393 (bptype_string): Likewise.
394 (print_one_breakpoint_location): Likewise.
395 (allocate_bp_location): Likewise.
396 (set_longjmp_breakpoint): Handle exception breakpoints. Change
397 interface.
398 (delete_longjmp_breakpoint): Handle exception breakpoints.
399 (mention): Likewise.
400 (struct until_break_command_continuation_args) <thread_num>: New
401 field.
402 (until_break_command_continuation): Call
403 delete_longjmp_breakpoint.
404 (until_break_command): Support exception breakpoints.
405 (delete_command): Likewise.
406 (breakpoint_re_set_one): Likewise.
407 (breakpoint_re_set): Likewise.
408
409 2010-12-08 Doug Evans <dje@google.com>
410
411 * gdbtypes.h (TYPE_IS_OPAQUE): Reformat.
412
413 * gdbtypes.c (check_typedef): Tweak comment.
414
415 PR symtab/12302
416 * dwarf2read.c (struct psymtab_cu_index_map): New struct.
417 (hash_psymtab_cu_index, eq_psymtab_cu_index): New functions.
418 (struct addrmap_index_data): New struct.
419 (add_address_entry): Remove arg `pst', new args `start', `end'.
420 (add_address_entry_worker, write_address_map): New functions.
421 (write_psymtabs_to_index): Address table generation moved to
422 write_address_map. Build a table mapping psymtab to CU index
423 to pass to it.
424
425 * dwarf2read.c (write_psymtabs_to_index): When stat fails, pass file
426 name to perror.
427
428 * symfile.h (quick_symbol_functions): Clarify usage of
429 expand_symtabs_with_filename.
430 * dwarf2read.c (dw2_expand_symtabs_with_filename): Only iterate over
431 comp units, ignore type units.
432
433 * dwarf2read.c (dw2_expand_symtabs_with_filename): Use FILENAME_CMP.
434
435 2010-12-07 Doug Evans <dje@google.com>
436
437 * dwarf2read.c (dw2_lookup_symtab): Remove duplicate call to
438 gdb_realpath.
439
440 PR python/12227
441 * NEWS: Mention -data-directory.
442 * main.c (captured_main): Recognize -data-directory.
443
444 2010-12-06 Marc Khouzam <marc.khouzam@ericsson.com>
445
446 * mi/mi-parse.c (mi_parse): Missing else.
447
448 2010-12-04 Masaki Muranaka <monaka@monami-software.com>
449
450 * configure.tgt: Accept microblaze*-*-linux* for linux target
451 and microblaze*-*-* for as target.
452
453 2010-12-02 Keith Seitz <keiths@redhat.com>
454
455 * linespec.c (find_method): Move name canonicalization outside
456 the loop.
457 Be paranoid and use a cleanup.
458
459 2010-12-01 Doug Evans <dje@google.com>
460
461 * dwarf2read.c (save_gdb_index_command): Add comment.
462
463 2010-12-01 Ulrich Weigand <uweigand@de.ibm.com>
464
465 * valops.c (value_assign): Returned value is never lazy. If a
466 C++ class type is returned, fix incorrect enclosing type / embedded
467 offset. If internal variable is returned, allocate new internalvar
468 value using value_of_internalvar.
469
470 * NEWS: Document changes in behavior of "print x = 0" and similar
471 expressions.
472
473 2010-11-29 Doug Evans <dje@google.com>
474
475 * python/lib/gdb/printing.py (register_pretty_printer): Change
476 printer-name:subprinter-name to printer-name;subprinter-name.
477 * python/lib/gdb/command/pretty_printers.py (parse_printer_regexps):
478 Ditto.
479 (InfoPrettyPrinter, EnablePrettyPrinter, DisablePrettyPrinter): Ditto.
480
481 2010-11-29 Tom Tromey <tromey@redhat.com>
482
483 * opencl-lang.c (lval_func_check_synthetic_pointer): New
484 function.
485 * value.h (struct lval_funcs) <indirect, check_synthetic_pointer>:
486 New fields.
487 (value_bits_synthetic_pointer): Declare.
488 * value.c (value_bits_synthetic_pointer): New function.
489 * valprint.c (valprint_check_validity): Handle synthetic
490 pointers.
491 * valops.c (value_ind): Use new 'indirect' lval_funcs method.
492 * valarith.c (value_ptradd): Use set_value_component_location.
493 * p-valprint.c (pascal_object_print_value_fields): Handle
494 synthetic pointers.
495 * jv-valprint.c (java_print_value_fields): Handle synthetic
496 pointers.
497 * dwarf2read.c (dwarf_stack_op_name): Add
498 DW_OP_GNU_implicit_pointer.
499 (dwarf2_fetch_die_location_block): Add get_frame_pc, baton
500 arguments. Handle location lists.
501 (fill_in_loclist_baton): New function.
502 (dwarf2_symbol_mark_computed): Use it.
503 * dwarf2loc.h (dwarf2_find_location_expression): Declare.
504 (dwarf2_fetch_die_location_block): Add get_frame_pc, baton
505 arguments.
506 * dwarf2loc.c (dwarf2_find_location_expression): Rename from
507 find_location_expression. No longer static. Update all callers.
508 (dwarf_expr_frame_pc): New function.
509 (per_cu_dwarf_call): Add get_frame_pc, baton arguments. Update
510 all callers.
511 (struct piece_closure) <per_cu>: New field.
512 (allocate_piece_closure): Add per_cu argument.
513 (read_pieced_value): Handle DWARF_VALUE_IMPLICIT_POINTER.
514 (check_pieced_value_bits): Remove validity argument, add check_for
515 argument. Handle DWARF_VALUE_IMPLICIT_POINTER.
516 (check_pieced_value_validity, check_pieced_value_invalid):
517 Update.
518 (check_pieced_synthetic_pointer): New function.
519 (get_frame_address_in_block_wrapper): New function.
520 (indirect_pieced_value): New function.
521 (pieced_value_funcs): Update.
522 (invalid_synthetic_pointer): New function.
523 (dwarf2_evaluate_loc_desc_full): Rename from
524 dwarf2_evaluate_loc_desc. Add byte_offset argument.
525 (dwarf2_evaluate_loc_desc): Rewrite.
526 (dwarf2_loc_desc_needs_frame): Set new field on context.
527 (get_ax_pc): New function.
528 (disassemble_dwarf_expression): Handle
529 DW_OP_GNU_implicit_pointer.
530 * dwarf2expr.h (enum dwarf_value_location)
531 <DWARF_VALUE_IMPLICIT_POINTER>: New constant.
532 (struct dwarf_expr_context) <get_frame_pc>: New field.
533 (struct dwarf_expr_piece) <v.ptr>: New field.
534 * dwarf2expr.c (add_piece): Handle DWARF_VALUE_IMPLICIT_POINTER.
535 (execute_stack_op): Handle DW_OP_GNU_implicit_pointer.
536 * dwarf2-frame.c (no_get_frame_pc): New function.
537 (execute_stack_op): Set new field on context.
538 * cp-valprint.c (cp_print_value_fields): Handle synthetic
539 pointers.
540
541 2010-11-29 Phil Muldoon <pmuldoon@redhat.com>
542
543 PR python/12199
544
545 * python/py-breakpoint.c (bppy_delete_breakpoint): New function.
546
547 2010-11-28 Jan Kratochvil <jan.kratochvil@redhat.com>
548
549 Fix step_resume_breakpoint unsaved during an infcall.
550 * gdbthread.h (struct thread_control_state): Move here field
551 step_resume_breakpoint ...
552 (struct thread_info): ... from here.
553 * infrun.c (save_infcall_control_state): Reset
554 control.step_resume_breakpoint to NULL.
555 (restore_infcall_control_state, discard_infcall_control_state): Delete
556 control.step_resume_breakpoint.
557 * arm-linux-tdep.c, infrun.c, thread.c: Update all the references to
558 the moved field.
559
560 2010-11-28 Jan Kratochvil <jan.kratochvil@redhat.com>
561
562 Rename and move inferior_thread_state and inferior_status.
563 * gdbthread.h (struct thread_control_state): New struct, move fields
564 step_range_start, step_range_end, step_frame_id, step_stack_frame_id,
565 trap_expected, proceed_to_finish, in_infcall, step_over_calls,
566 stop_step and stop_bpstat here from struct thread_info.
567 (struct thread_suspend_state): New struct, move field stop_signal here
568 from struct thread_info.
569 (struct thread_info): Move the fields above from this struct.
570 * inferior.h: Move the inferior_thread_state and inferior_status
571 declarations comment to their definitions at infrun.c.
572 (struct inferior_control_state): New struct, move field stop_soon from
573 struct inferior here.
574 (struct inferior_suspend_state): New empty struct.
575 (struct inferior): New fields control and suspend. Move out field
576 stop_soon.
577 * infrun.c (struct inferior_thread_state): Rename to ...
578 (infcall_suspend_state): ... here. Replace field stop_signal by
579 fields thread_suspend and inferior_suspend.
580 (save_inferior_thread_state): Rename to ...
581 (save_infcall_suspend_state): ... here. New variable inf. Update the
582 code for new fields.
583 (restore_inferior_thread_state): Rename to ...
584 (restore_infcall_suspend_state): ... here. New variable inf. Update
585 the code for new fields.
586 (do_restore_inferior_thread_state_cleanup): Rename to ...
587 (do_restore_infcall_suspend_state_cleanup): ... here.
588 (make_cleanup_restore_inferior_thread_state): Rename to ...
589 (make_cleanup_restore_infcall_suspend_state): ... here.
590 (discard_inferior_thread_state): Rename to ...
591 (discard_infcall_suspend_state): ... here.
592 (get_inferior_thread_state_regcache): Rename to ...
593 (get_infcall_suspend_state_regcache): ... here.
594 (struct inferior_status): Rename to ...
595 (struct infcall_control_state): ... here. Replace fields
596 step_range_start, step_range_end, step_frame_id, step_stack_frame_id,
597 trap_expected, proceed_to_finish, in_infcall, step_over_calls,
598 stop_step, stop_bpstat and stop_soon by fields thread_control and
599 inferior_control.
600 (save_inferior_status): Rename to ...
601 (save_infcall_control_state): ... here. Update the code for new
602 fields.
603 (restore_inferior_status): Rename to ...
604 (restore_infcall_control_state): ... here. Update the code for new
605 fields.
606 (do_restore_inferior_status_cleanup): Rename to ...
607 (do_restore_infcall_control_state_cleanup): ... here.
608 (make_cleanup_restore_inferior_status): Rename to ...
609 (make_cleanup_restore_infcall_control_state): ... here.
610 (discard_inferior_status): Rename to ...
611 (discard_infcall_control_state): ... here.
612 * alpha-tdep.c, breakpoint.c, dummy-frame.c, dummy-frame.h,
613 exceptions.c, fbsd-nat.c, gdbthread.h, infcall.c, infcmd.c,
614 inferior.c, inferior.h, infrun.c, linux-nat.c, mi/mi-interp.c,
615 mips-tdep.c, procfs.c, solib-irix.c, solib-osf.c, solib-spu.c,
616 solib-sunos.c, solib-svr4.c, thread.c, windows-nat.c: Update all the
617 references to the moved fields and renamed functions.
618
619 2010-11-26 Jan Kratochvil <jan.kratochvil@redhat.com>
620
621 * infcall.c (struct inferior_thread_state) <siginfo_gdbarch>: Fix up
622 the comment.
623 (save_inferior_thread_state): Reset tp->stop_signal.
624
625 2010-11-26 Jan Kratochvil <jan.kratochvil@redhat.com>
626
627 * infcall.c (call_function_by_hand): Remove variable
628 caller_state_cleanup.
629
630 2010-11-25 Marc Khouzam <marc.khouzam@ericsson.com>
631
632 PR breakpoints/12217
633
634 * breakpoint.c (is_marker_spec): Check for NULL.
635
636 2010-11-25 Pedro Alves <pedro@codesourcery.com>
637
638 * breakpoint.h: No longer include python.h or python-internal.h.
639 (struct breakpoint_object): Forward declare.
640 * defs.h (PyObject) [!HAVE_PYTHON]: Don't define.
641 * varobj.c (PyObject) [!HAVE_PYTHON]: Define.
642 * python/py-breakpoint.c (build_bp_list): Cast py_bp_object to
643 PyObject pointer.
644 (gdbpy_breakpoint_created): Remove casts around py_bp_object
645 accesses.
646
647 2010-11-24 Joel Brobecker <brobecker@adacore.com>
648
649 * rs6000-tdep.c (bfd_uses_spe_extensions): Use bfd_elf_get_obj_attr_int
650 only if HAVE_ELF is defined.
651
652 2010-11-24 Jan Kratochvil <jan.kratochvil@redhat.com>
653
654 Code cleanup.
655 * infrun.c (struct inferior_status) <stepping_over_breakpoint>
656 (save_inferior_status) <stepping_over_breakpoint>
657 (restore_inferior_status) <stepping_over_breakpoint>: Rename to
658 trap_expected.
659 (struct inferior_status) <step_resume_break_address>: Remove.
660
661 2010-11-24 Jan Kratochvil <jan.kratochvil@redhat.com>
662
663 Code cleanup.
664 * infrun.c (struct inferior_status, save_inferior_status)
665 (restore_inferior_status): Group and reorder the fields, comment their
666 groups.
667
668 2010-11-24 Jan Kratochvil <jan.kratochvil@redhat.com>
669
670 Code cleanup.
671 * dictionary.c
672 (struct dict_vector) <iter_match_first, iter_match_next>
673 (iter_match_first_hashed, iter_match_next_hashed)
674 (iter_match_first_linear, iter_match_next_linear)
675 (dict_iter_match_first, dict_iter_match_next, iter_match_first_hashed)
676 (iter_match_next_hashed, iter_match_first_linear)
677 (iter_match_next_linear): Use symbol_compare_ftype.
678 * dictionary.h: Include symfile.h.
679 (dict_iter_match_first, dict_iter_match_next): Use
680 symbol_compare_ftype.
681 * dwarf2read.c (dw2_map_matching_symbols): Likewise.
682 * psymtab.c (match_partial_symbol, match_partial_symbol, map_block)
683 (map_matching_symbols_psymtab): Likewise.
684 * symfile.h (symbol_compare_ftype): New typedef.
685 (struct quick_symbol_functions) <map_matching_symbols): Use
686 symbol_compare_ftype.
687
688 2010-11-23 Tom Tromey <tromey@redhat.com>
689
690 * configure: Rebuild.
691 * configure.ac (READLINE_TEXI_INCFLAG): New subst.
692
693 2010-11-19 Tom Tromey <tromey@redhat.com>
694
695 * Makefile.in (SUBDIRS): Add doc.
696 * configure: Rebuild.
697 * configure.ac: Don't configure in doc. Create doc/Makefile.
698
699 2010-11-23 Phil Muldoon <pmuldoon@redhat.com>
700
701 PR python/12212
702
703 * python/py-inferior.c (find_thread_object): Check if PIDGET
704 returns 0.
705
706 010-11-22 Joel Brobecker <brobecker@adacore.com>
707
708 * ada-lang.c (ada_template_to_fixed_record_type_1): Delete bit_incr.
709
710 2010-11-22 Joel Brobecker <brobecker@adacore.com>
711
712 * ada-lang.c (ada_to_fixed_type): Expand function documentation.
713 Return the original type if the main type portions match rather
714 than when the type themselves match.
715
716 2010-11-22 Joel Brobecker <brobecker@adacore.com>
717
718 * ada-lang.c (ada_template_to_fixed_record_type_1):
719 For dynamic fields, check the field size against the maximum
720 object size.
721
722 2010-11-22 Joel Brobecker <brobecker@adacore.com>
723
724 * mips-irix-tdep.c (mips_irix_n32_stack_tramp_frame_init): New
725 function.
726 (mips_irix_n32_stack_tramp_frame): New static global.
727 (mips_irix_init_abi): Add mips_irix_n32_stack_tramp_frame to
728 list of unwinder.
729
730 2010-11-22 Jerome Guitton <guitton@adacore.com>
731
732 * ada-tasks.c (get_tcb_types_info): Use C lookups to get
733 ATCB symbols.
734
735 2010-11-22 Joel Brobecker <brobecker@adacore.com>
736
737 * ada-lang.c (ada_check_typedef): Call ada_check_typedef only
738 if type1 is a typedef.
739
740 2010-11-22 Joel Brobecker <brobecker@adacore.com>
741
742 * ada-lang.h (ADA_KNOWN_AUXILIARY_FUNCTION_NAME_PATTERNS): Add
743 "_finalizer" to the list.
744
745 2010-11-22 Joel Brobecker <brobecker@adacore.com>
746
747 * symfile.c: Remove all "#if 0"/"#endif" blocks.
748
749 2010-11-22 Joel Brobecker <brobecker@adacore.com>
750
751 * symfile.c: Add missing second space after period in various comments.
752
753 2010-11-22 Joel Brobecker <brobecker@adacore.com>
754
755 * ada-typeprint.c (print_array_type): Fix formatting in comment.
756 (print_selected_record_field_types): Fix formatting in function
757 documentation.
758
759 2010-11-22 Joel Brobecker <brobecker@adacore.com>
760
761 * ravenscar-thread.c (_initialize_ravenscar): Fix copy/paste typo
762 in name of "show ravenscar" prefix command name.
763
764 2010-11-22 Joel Brobecker <brobecker@adacore.com>
765
766 * ravenscar-thread.c (show_ravenscar_task_switching_command):
767 Add missing '\n' in output.
768
769 2010-11-22 Joel Brobecker <brobecker@adacore.com>
770
771 * ravenscar-thread.c (running_thread_name): Change value.
772 (read_thread_id): Remove advance declaration.
773 (get_running_thread_msymbol): New function.
774 (has_ravenscar_runtime): Use get_running_thread_msymbol to
775 compute msym_running_thread.
776 (get_running_thread_id): Renames read_thread_id. Slight modifications
777 to not take any argument anymore, using get_running_thread_msymbol
778 to determine which symbol to use instead.
779 (ravenscar_running_thread): Use get_running_thread_id instead of
780 read_thread_id.
781
782 2010-11-22 Joel Brobecker <brobecker@adacore.com>
783
784 * ravenscar-sparc-thread.c (supply_register_at_address):
785 Fix passing of buf in call to regcache_raw_supply.
786
787 2010-11-22 Jan Kratochvil <jan.kratochvil@redhat.com>
788
789 * dwarf2read.c (dwarf2_read_index): Ignore higher .gdb_index versions.
790
791 2010-11-22 Tom Tromey <tromey@redhat.com>
792
793 * Makefile.in (.PRECIOUS): Reference ada-lex.c.
794
795 2010-11-19 Keith Seitz <keiths@redhat.com>
796
797 * data-directory/Makefile.in (SYSCALLS_INSTALL_DIR):
798 Remove extraneous '/' after $(DESTDIR).
799 (PYTHON_INSTALL_DIR): Likewise.
800
801 2010-11-19 Jan Kratochvil <jan.kratochvil@redhat.com>
802
803 Fix stale memory references.
804 * elfread.c (elf_symfile_read): Replace xmalloc by bfd_alloc, drop
805 xfree, new comment.
806
807 2010-11-19 Jan Kratochvil <jan.kratochvil@redhat.com>
808 Tom Tromey <tromey@redhat.com>
809
810 * Makefile.in (.y.c): Directly create $@ from YLWRAP.
811 (.PHONY): Remove for .y outputs.
812
813 2010-11-19 Will Drewry <wad@google.com>
814 Tavis Ormandy <taviso@google.com>
815 Jan Kratochvil <jan.kratochvil@redhat.com>
816
817 * dwarf2read.c (decode_locdesc): Enforce location description stack
818 boundaries.
819
820 2010-11-18 Pierre Muller <muller@ics.u-strasbg.fr>
821
822 * arm-tdep.c (arm_in_function_epilogue_p): Fix code when "MOV SP"
823 instruction is found.
824
825 2010-11-17 Tom Tromey <tromey@redhat.com>
826
827 * value.c (value_entirely_optimized_out): Check the
828 'check_any_valid' field.
829
830 2010-11-16 Jan Kratochvil <jan.kratochvil@redhat.com>
831
832 * ada-lang.c (modify_general_field): Remove.
833 (make_array_descriptor): Replace all modify_general_field calls by
834 modify_field.
835 * value.c (modify_field): Update comment. New variable bytesize.
836 Normalize BITPOS. Initialize BYTESIZE, use it.
837
838 2010-11-16 Jan Kratochvil <jan.kratochvil@redhat.com>
839
840 * dwarf2read.c (dw2_forget_cached_source_info): Clear the FULL_NAMES
841 elements after xfree.
842
843 2010-11-16 Tom Tromey <tromey@redhat.com>
844
845 * gdb-add-index.sh: Really remove.
846
847 2010-11-16 Jan Kratochvil <jan.kratochvil@redhat.com>
848
849 Code cleanup.
850 * dwarf2read.c (alloc_one_comp_unit): Rename prototype to ...
851 (init_one_comp_unit): ... this one.
852 (prepare_one_comp_unit): New prototype.
853 (dw2_require_line_header, process_psymtab_comp_unit): Use
854 init_one_comp_unit.
855 (process_psymtab_comp_unit): Use prepare_one_comp_unit.
856 (load_partial_comp_unit): Remove variable attr. Use
857 init_one_comp_unit with xmalloc. Use prepare_one_comp_unit.
858 (load_full_comp_unit): Use init_one_comp_unit with xmalloc. Use
859 prepare_one_comp_unit.
860 (read_signatured_type): Remove variable attr. Use init_one_comp_unit.
861 Use prepare_one_comp_unit.
862 (alloc_one_comp_unit): Rename to ...
863 (init_one_comp_unit): ... here and remove there calloc, new parameter
864 cu.
865 (prepare_one_comp_unit): New function.
866
867 2010-11-14 Pierre Muller <muller@ics.u-strasbg.fr>
868
869 * arm-tdep.c (arm_in_function_epilogue_p): Fix code to avoid
870 possible used of uninitialized variable.
871
872 2010-11-12 Nathan Froyd <froydnj@codesourcery.com>
873
874 * rs6000-tdep.c (bfd_uses_spe_extensions): New function.
875 (rs6000_gdbarch_init): Call it.
876
877 2010-11-12 Nathan Froyd <froydnj@codesourcery.com>
878
879 * rs6000-tdep.c (gdb_print_insn_powerpc): Disassemble e500
880 instructions if debugging an E500 binary.
881
882 2010-11-12 Tom Tromey <tromey@redhat.com>
883
884 * varobj.c (value_get_print_value): Rearrange. Pass stream to
885 apply_varobj_pretty_printer.
886 * c-lang.c: Include exceptions.h.
887 (c_get_string): Throw MEMORY_ERROR when appropriate.
888 * python/py-prettyprint.c (enum string_repr_result): New.
889 (print_stack_unless_memory_error): New function.
890 (print_string_repr): Change return type. Use
891 print_stack_unless_memory_error.
892 (print_children): Use print_stack_unless_memory_error.
893 (apply_val_pretty_printer): Update. Don't print children if
894 string representation threw an exception.
895 (apply_varobj_pretty_printer): Add 'stream' argument. Use
896 print_stack_unless_memory_error.
897 * python/python.c (gdbpy_gdb_error, gdbpy_gdb_memory_error): New
898 globals.
899 (_initialize_python): Initialize them.
900 * python/python-internal.h (GDB_PY_HANDLE_EXCEPTION): Use
901 gdbpy_convert_exception.
902 (GDB_PY_SET_HANDLE_EXCEPTION): Likewise.
903 (gdbpy_gdb_error, gdbpy_gdb_memory_error): Declare.
904 (gdbpy_convert_exception): Declare.
905 (apply_varobj_pretty_printer): Update.
906 * python/py-utils.c (gdbpy_convert_exception): New function.
907
908 2010-11-12 Marc Khouzam <marc.khouzam@ericsson.com>
909
910 * mi/mi-main.c (mi_cmd_target_detach): Accept new
911 thread-group id format.
912
913 2010-11-12 Jan Kratochvil <jan.kratochvil@redhat.com>
914
915 * spu-tdep.c (spu_catch_start): Fix compilation error typo.
916
917 2010-11-11 Phil Muldoon <pmuldoon@redhat.com>
918
919 * python/py-breakpoint.c (BPPY_REQUIRE_VALID): Check if bp is
920 NULL.
921 (BPPY_SET_REQUIRE_VALID): Ditto.
922 (bpnum_is_valid): Delete function.
923 (bppy_get_visibility): New function.
924 (bppy_new): Parse for, and validate internal keyword. Pass
925 internal keyword to breakpoint or watchpoint functions.
926 (build_bp_list): New function.
927 (gdbpy_breakpoints): Rewrite. Use build_bp_list and
928 iterate_over_breakpoints.
929 (gdbpy_breakpoint_created): Rewrite. Do not store breakpoints in a
930 look-aside vector.
931 (gdbpy_breakpoint_deleted): Rewrite, defer breakpoint management
932 to internal breakpoint chain.
933
934 * breakpoint.c (set_breakpoint_number): New function.
935 (breakpoint_1): Check if breakpoint number is more than zero.
936 (set_raw_breakpoint_without_location): Set py_bp_object to NULL.
937 (create_breakpoint_sal): Take a new parameter called internal.
938 Call set_breakpoint_number with internal parameter. Do not
939 mention internal breakpoints. All callers updated.
940 (create_breakpoint): Ditto.
941 (create_breakpoints_sal): Ditto.
942 (watch_command_1): Ditto.
943 (watch_command_wrapper): Take a new parameter called internal.
944 All callers updated.
945 (rwatch_command_wrapper): Ditto.
946 (awatch_command_wrapper): Ditto.
947 (save_breakpoints): Update breakpoint save condition check.
948 (iterate_over_breakpoints): New function.
949 * breakpoint.h: Add conditional python includes. Add py_bp_object
950 and comment to struct breakpoint. Update all callers.
951 * defs.h: Add PyObject definition for GDB builds without Python.
952
953 2010-11-10 Doug Evans <dje@google.com>
954
955 * python/lib/gdb/command/pretty_printers.py
956 (do_enable_pretty_printer_1): Handle printer.subprinters is None.
957
958 * value.c (set_value_enclosing_type): Renamed from
959 value_change_enclosing_type. All callers updated.
960 * value.h (set_value_enclosing_type): Update.
961 * valops.c (value_full_object): Always return a copy if we need to
962 make changes to the input value.
963
964 2010-11-09 Pedro Alves <pedro@codesourcery.com>
965
966 * breakpoint.c (watch_command_1): Get a pointer of the lazy
967 version of the expression's value, even if reading the value from
968 memory fails. When creating a -location watchpoint, get the
969 value's address from the lazy value pointer.
970
971 2010-11-07 Jan Kratochvil <jan.kratochvil@redhat.com>
972
973 * infrun.c (restore_inferior_thread_state): Use
974 discard_inferior_thread_state to free the data.
975 (discard_inferior_thread_state): xfree also siginfo_data.
976
977 2010-11-05 Doug Evans <dje@google.com>
978
979 Make gdb.parameter("directories") work.
980 New command "set directories".
981 * NEWS: Document them.
982 * source.c (set_directories_command): New function.
983 (show_directories_1): Renamed from show_directories.
984 All callers updated.
985 (show_directories_command): New function.
986 (_initialize_source): Install "directories" as a set/show
987 variable instead of just a show command.
988
989 2010-11-05 Ken Werner <ken.werner@de.ibm.com>
990
991 * NEWS: Mention OpenCL C language support.
992 * Makefile.in (SFILES): Add opencl-lang.c.
993 (COMMON_OBS): Add opencl-lang.o.
994 * opencl-lang.c: New File
995 * defs.h (enum language): Add language_opencl.
996 * dwarf2read.c (read_file_scope): Handle DW_AT_producer for the
997 IBM XL C OpenCL compiler.
998 * c-lang.h: Include "parser-defs.h".
999 (evaluate_subexp_c): Declare.
1000 * c-lang.c (evaluate_subexp_c): Remove the static qualifier.
1001 (c_op_print_tab): Add declaration.
1002 * eval.c (binop_promote): Handle language_opencl.
1003 * c-exp.y: Lookup the primitive types instead of referring to the
1004 builtins.
1005
1006 2010-11-05 Jan Kratochvil <jan.kratochvil@redhat.com>
1007
1008 Fix configure --enable-plugins --without-python.
1009 * configure.ac (for ELF support in BFD) <"$plugins" = "yes">: New.
1010 * configure: Regenerate.
1011
1012 2010-11-05 Jan Kratochvil <jan.kratochvil@redhat.com>
1013
1014 * solib.c (solib_read_symbols): Call exception_fprintf even without
1015 FROM_TTY. Print also so->so_name.
1016
1017 2010-11-04 Sami Wagiaalla <swagiaal@redhat.com>
1018
1019 * gdbtypes.h (struct rank): Created subrank.
1020 * gdbtypes.c: Initialized subrank for all
1021 'BADNESS' constants.
1022 (distance_to_ancestor): New function.
1023 (is_ancestor): Use distance_to_ancestor.
1024 (is_public_ancestor): Ditto.
1025 (sum_ranks): Handle subrank.
1026 (compare_ranks): Ditto.
1027 (rank_one_type): Subrank base conversions.
1028
1029 2010-11-04 Sami Wagiaalla <swagiaal@redhat.com>
1030
1031 * gdbtypes.h: Create struct rank.
1032 Convert all 'BADNESS' macros to const struct rank declarations.
1033 (sum_ranks): New function.
1034 (compare_ranks): New function.
1035 * valops.c (find_oload_champ): Updated.
1036 (classify_oload_match): Use compare_ranks.
1037 Improved comments.
1038 (compare_parameters): Use compare_ranks.
1039 * gdbtypes.c: Initialize 'BADNESS' constants.
1040 (sum_ranks): New function.
1041 (compare_ranks): New function.
1042 (compare_badness): Use compare_ranks.
1043 (rank_function): Use global constants instead of literals.
1044 (rank_one_type): Ditto.
1045 Return struct rank.
1046 Use sum_ranks.
1047
1048 2010-11-04 Doug Evans <dje@google.com>
1049
1050 * python/py-prettyprint.c (find_pretty_printer_from_gdb): Fix comment.
1051 (find_pretty_printer): Fix comments.
1052
1053 2010-11-04 Hui Zhu <teawater@gmail.com>
1054
1055 * tracepoint.c (remote_trace_set_readonly_regions): Change lma to vma.
1056
1057 2010-11-03 Joel Brobecker <brobecker@adacore.com>
1058
1059 * ada-valprint.c (ada_val_print_array): Move variables `eltlen'
1060 and `len' declaration and computation inside block where they
1061 are being used.
1062
1063 2010-11-03 Joel Brobecker <brobecker@adacore.com>
1064
1065 * valprint.c (val_print_array_elements): Put back handling of
1066 empty arrays.
1067
1068 2010-11-03 Ken Werner <ken.werner@de.ibm.com>
1069
1070 * dwarf2read.c (read_array_type): Read the DW_AT_byte_size from the
1071 DIE and set the length of the type.
1072 * gdbtypes.h (get_array_bounds): Move here from valprint.h.
1073 * gdbtypes.c (get_array_bounds): Move here from valprint.c and
1074 return 0 if the corresponding bounds of the type are undefined.
1075 * valprint.h (get_array_bounds): Move declaration to gdbtypes.h.
1076 * valprint.c (get_array_bounds): Move implementation to gdbtypes.c.
1077 (val_print_array_elements): Use get_array_bounds to compute the number
1078 of array elements instead of dividing the length of the array by the
1079 length of the element types.
1080 * valarith.c (vector_binop): Likewise.
1081 * valops.c (value_cast): Likewise.
1082 * c-valprint.c (c_val_print): Likewise.
1083 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
1084
1085 2010-11-03 Ken Werner <ken.werner@de.ibm.com>
1086
1087 * valarith.c (value_pos, value_neg, value_complement): Handle
1088 vector types.
1089 * valops.c (value_one): Likewise.
1090
1091 2010-11-03 Ken Werner <ken.werner@de.ibm.com>
1092
1093 * value.h (value_non_lval): Declare.
1094 * value.c (value_non_lval): New function.
1095 * eval.c (evaluate_subexp_standard) <UNOP_POSTINCREMENT,
1096 UNOP_POSTDECREMENT>: Call value_non_lval to ensure to return a
1097 non-lvalue.
1098
1099 2010-11-02 Doug Evans <dje@google.com>
1100
1101 New python module gdb.printing, and new commands info pretty-printer,
1102 enable pretty-printer, disable pretty-printer.
1103 * NEWS: Mention them.
1104 * data-directory/Makefile.in (PYTHON_FILES): Add gdb/printing.py,
1105 gdb/command/__init__.py, gdb/command/pretty_printers.py.
1106 * python/lib/gdb/__init__.py: Install pretty-printer commands.
1107 * python/lib/gdb/printing.py: New file.
1108 * python/lib/gdb/command/__init__.py: New file.
1109 * python/lib/gdb/command/pretty_printers.py: New file.
1110
1111 2010-11-02 Tom Tromey <tromey@redhat.com>
1112
1113 * NEWS: Mention Guile removal.
1114 * defs.h (enum language) <language_scm>: Remove.
1115 * Makefile.in (SFILES): Remove scm-exp.c, scm-lang.c,
1116 scm-valprint.c.
1117 (HFILES_NO_SRCDIR): Remove scm-lang.h, scm-tags.h.
1118 (COMMON_OBS): Remove scm-exp.o, scm-lang.o, scm-valprint.o.
1119 * scm-exp.c, scm-lang.c, scm-valprint.c, scm-lang.h, scm-tags.h:
1120 Remove.
1121
1122 2010-11-02 Doug Evans <dje@google.com>
1123
1124 * top.c: #include "python/python.h".
1125 (gdb_init): Add a comment regarding initialize_all_files.
1126 Call finish_python_initialization at the end.
1127 * python/python.h (finish_python_initialization): Declare.
1128 * python/python.c (finish_python_initialization): New function.
1129 (_initialize_python): Move python-implemented initialization there
1130 and call it.
1131 (GdbMethods): Use #ifdef HAVE_PYTHON for consistency.
1132
1133 2010-11-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1134
1135 Revert:
1136 2010-10-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1137 Pedro Alves <pedro@codesourcery.com>
1138 * gdbthread.h (currently_stepping): New declaration.
1139 * infrun.c (currently_stepping): Remove the forward declaration.
1140 (currently_stepping): Make it global.
1141 * linux-nat.c (resume_callback) <lp->stopped && lp->status == 0>: New
1142 variables tp and step, initialized them. Pass STEP to to_resume.
1143 Print also possibly "PTRACE_SINGLESTEP" if STEP. Initialize LP->STEP.
1144 * remote.c (currently_stepping_callback): New.
1145 (remote_vcont_resume)
1146 <ptid_equal (ptid, minus_one_ptid) || ptid_is_pid (ptid)>:
1147 New variable tp. Call currently_stepping_callback and step such
1148 thread.
1149
1150 2010-11-01 Hui Zhu <teawater@gmail.com>
1151
1152 * tracepoint.c (tfile_xfer_partial): Change lma to vma.
1153
1154 2010-10-28 Hui Zhu <teawater@gmail.com>
1155
1156 * tracepoint.c (trace_save): Change utp->actions to
1157 utp->step_actions.
1158
1159 2010-10-26 Joel Brobecker <brobecker@adacore.com>
1160
1161 * (_FILE_OFFSET_BITS): Fix typo in comment.
1162
1163 2010-10-26 Joel Brobecker <brobecker@adacore.com>
1164
1165 * python/python-internal.h (_FILE_OFFSET_BITS): Undefine.
1166 (PyEval_InitThreads): Remove duplicate. Define as nothing.
1167 (PyEval_ReleaseLock): Define as nothing.
1168
1169 2010-10-26 Joel Brobecker <brobecker@adacore.com>
1170
1171 * dwarf2read.c (psymtab_include_file_name): Replace call to strcmp
1172 by call to FILENAME_CMP.
1173
1174 2010-10-26 Joel Brobecker <brobecker@adacore.com>
1175
1176 * dictionary.c (dict_hash): Move assignment out of if condition.
1177
1178 2010-10-22 Jie Zhang <jie@codesourcery.com>
1179
1180 * Makefile.in (install): Remove dependency of install-only and
1181 recursively invoke make for install-only.
1182 * data-directory/Makefile.in: Add FLAGS_TO_PASS variable.
1183 (install): Pass FLAGS_TO_PASS when recursively make install-only.
1184
1185 2010-10-20 Hui Zhu <teawater@gmail.com>
1186
1187 * tracepoint.c (tfile_get_traceframe_address): Call
1188 extract_signed_integer.
1189 (tfile_trace_find): Call extract_signed_integer and
1190 extract_unsigned_integer. Change data_size to unsigned int.
1191 (tfile_fetch_registers): Call extract_unsigned_integer.
1192 (tfile_xfer_partial): Ditto.
1193 (tfile_get_trace_state_variable_value): Call
1194 extract_signed_integer and extract_unsigned_integer.
1195
1196 2010-10-20 Vladimir Prus <vladimir@codesourcery.com>
1197
1198 * remote.c (remote_get_threadlist): If we got empty
1199 response, bail out immediately, and don't emit any
1200 warnings.
1201
1202 2010-10-19 Ulrich Weigand <uweigand@de.ibm.com>
1203
1204 * arm-tdep.c (thumb_get_next_pc_raw): Handle Thumb-16 encoding
1205 for "mov pc, REG" as well.
1206 (thumb_instruction_changes_pc): Likewise.
1207
1208 2010-10-19 Sami Wagiaalla <swagiaal@redhat.com>
1209
1210 PR C++/11500:
1211 * valarith.c (value_x_unop): Handle STRUCTOP_PTR.
1212 * eval.c (evaluate_subexp_standard): Check for overload of
1213 'operator->'.
1214 * valarith.c (value_x_binop): Throw NOT_FOUND_ERROR.
1215 (value_x_unop): Ditto.
1216 * valops.c: Include "exceptions.h".
1217 (find_overload_match): Throw NOT_FOUND_ERROR.
1218 (value_struct_elt): Ditto.
1219
1220 2010-10-19 Tom Tromey <tromey@redhat.com>
1221
1222 * python/py-cmd.c (cmdpy_function): Unreference exception state.
1223
1224 2010-10-19 Sami Wagiaalla <swagiaal@redhat.com>
1225
1226 * gdbtypes.h: Introduce BOOL_PTR_CONVERSION_BADNESS.
1227 * gdbtypes.c (rank_one_type): Use BOOL_PTR_CONVERSION_BADNESS
1228 for conversion.
1229 Make all other conversions illegal.
1230
1231 2010-10-18 Doug Evans <dje@google.com>
1232
1233 * c-typeprint.c (c_type_print_base, case TYPE_CODE_TYPEDEF): Verify
1234 assumptions of when this case happens. Print "<unnamed typedef>".
1235
1236 2010-10-18 Tom Tromey <tromey@redhat.com>
1237
1238 * valprint.c (val_print_string): Pass 'encoding' to
1239 LA_PRINT_STRING.
1240
1241 2010-10-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1242
1243 Fix the `stopped language detection' testcase for gcc-4.5.
1244 * dwarf2read.c (read_partial_die): Set also LANGUAGE_OF_MAIN.
1245 * symfile.c (set_initial_language): Move variable filename to a more
1246 inner block. Prefer LANGUAGE_OF_MAIN.
1247 * symtab.c (language_of_main): New variable.
1248 (set_main_name): Always reset LANGUAGE_OF_MAIN.
1249 * symtab.h (language_of_main): New declaration.
1250
1251 2010-10-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1252 Pedro Alves <pedro@codesourcery.com>
1253
1254 * gdbthread.h (currently_stepping): New declaration.
1255 * infrun.c (currently_stepping): Remove the forward declaration.
1256 (currently_stepping): Make it global.
1257 * linux-nat.c (resume_callback) <lp->stopped && lp->status == 0>: New
1258 variables tp and step, initialized them. Pass STEP to to_resume.
1259 Print also possibly "PTRACE_SINGLESTEP" if STEP. Initialize LP->STEP.
1260 * remote.c (currently_stepping_callback): New.
1261 (remote_vcont_resume)
1262 <ptid_equal (ptid, minus_one_ptid) || ptid_is_pid (ptid)>:
1263 New variable tp. Call currently_stepping_callback and step such
1264 thread.
1265
1266 2010-10-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1267
1268 * infrun.c (follow_exec): Replace symbol_file_add_main by
1269 symbol_file_add with SYMFILE_DEFER_BP_RESET, set_initial_language and
1270 breakpoint_re_set.
1271 * m32r-rom.c (m32r_load, m32r_upload_command): Use parameter 0 for
1272 clear_symtab_users.
1273 * objfiles.c (free_all_objfiles): Likewise.
1274 * remote-m32r-sdi.c (m32r_load): Likewise.
1275 * solib-som.c (som_solib_create_inferior_hook): Likewise.
1276 * symfile.c (new_symfile_objfile): New comment for add_flags. Call
1277 clear_symtab_users with ADD_FLAGS.
1278 (reread_symbols): Use parameter 0 for clear_symtab_users.
1279 (clear_symtab_users): New parameter add_flags. Do not call
1280 breakpoint_re_set if SYMFILE_DEFER_BP_RESET.
1281 (clear_symtab_users_cleanup): Use parameter 0 for clear_symtab_users.
1282 * symtab.h (clear_symtab_users): New parameter add_flags.
1283
1284 2010-10-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1285
1286 Fix GCC false warning.
1287 * varobj.c (value_get_print_value) <str_addr>: Initialize it.
1288
1289 2010-10-16 Pierre Muller <muller@ics.u-strasbg.fr>
1290
1291 * p-typeprint.c (pascal_type_print_method_args): Fix problem in
1292 display of type of method arguments.
1293
1294 2010-10-15 Tom Tromey <tromey@redhat.com>
1295
1296 PR python/11948:
1297 * varobj.c (value_get_print_value): Use val_print_string to print
1298 lazy strings.
1299 * python/py-prettyprint.c (print_string_repr): Use
1300 val_print_string to print lazy strings. Fix cleanup logic.
1301 (print_children): Likewise.
1302 * python/python-internal.h (gdbpy_extract_lazy_string): Update.
1303 * python/py-lazy-string.c (gdbpy_extract_lazy_string): Rewrite.
1304 Change return type to 'void', add 'addr' argument.
1305 * value.h (val_print_string): Update.
1306 * valprint.c (val_print_string): Add 'encoding' argument.
1307 * printcmd.c (print_formatted): Update.
1308 * p-valprint.c (pascal_val_print): Update.
1309 * m2-valprint.c (print_unpacked_pointer): Update.
1310 (m2_print_array_contents): Likewise.
1311 * jv-valprint.c (java_value_print): Update.
1312 * f-valprint.c (f_val_print): Update.
1313 * c-valprint.c (c_val_print): Update.
1314 * auxv.c (fprint_target_auxv): Update.
1315
1316 2010-10-15 Doug Evans <dje@google.com>
1317 Jan Kratochvil <jan.kratochvil@redhat.com>
1318
1319 PR exp/12117
1320 * gdbtypes.c (check_typedef): Clean up function comment.
1321 Keep track of instance flags as we strip typedefs and create a new
1322 type to preserve them if necessary.
1323 * gdbtypes.h (type) <instance_flags>: Extend the comment.
1324
1325 2010-10-15 Pierre Muller <muller@ics.u-strasbg.fr>
1326
1327 * p-lang.c (is_pascal_string_type): Use TYPE_FIELD_NAME accessor.
1328
1329 2010-10-14 Sami Wagiaalla <swagiaal@redhat.com>
1330
1331 * gdbtypes.h: Create BASE_PTR_CONVERSION_BADNESS.
1332 * gdbtypes.c (rank_one_type): Move type comparison code out of here
1333 to...
1334 (types_equal): ...here. And changed it as follows:
1335 Outside of typedefs type must be of the same TYPE_CODE.
1336 When compairing two pointers or references they are equal if their
1337 targets are equal.
1338 Correct pointer conversions.
1339
1340 2010-10-14 Pierre Muller <muller@ics.u-strasbg.fr>
1341
1342 * p-lang.c (is_pascal_string_type): Avoid crashes on structures
1343 having fields without names.
1344
1345 2010-10-13 Tom Tromey <tromey@redhat.com>
1346
1347 * language.h (LA_PRINT_ARRAY_INDEX): Fix argument name.
1348
1349 2010-10-13 Doug Evans <dje@google.com>
1350
1351 New python module gdb.types.
1352 * NEWS: Document it.
1353 * data-directory/Makefile.in (PYTHON_FILES): Add gdb/types.py.
1354 * python/lib/gdb/types.py: New file.
1355
1356 * c-typeprint.c: Whitespace cleanup.
1357 (cp_type_print_method_args): Remove unnecessary forward decl.
1358 (cp_type_print_derivation_info): Ditto.
1359 (c_type_print_varspec_prefix): Mark as static at definition.
1360 (c_type_print_modifier): Fix arg descriptions.
1361
1362 2010-10-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1363
1364 * python/py-breakpoint.c (bppy_set_condition): New comment.
1365 * python/py-cmd.c (cmdpy_function): Call also gdbpy_print_stack for
1366 failed PyUnicode_Decode.
1367 (cmdpy_completer): Skip element for failed
1368 python_string_to_host_string.
1369 (cmdpy_init): Return -1 on failed python_string_to_host_string.
1370 * python/py-frame.c (frapy_read_var): Extend the function comment.
1371 * python/py-function.c (fnpy_init): Return -1 on failed
1372 python_string_to_host_string.
1373 * python/py-inferior.c (infpy_read_memory, infpy_write_memory): Extend
1374 the function comment.
1375 (infpy_search_memory): Extend the function comment. Remove the
1376 PyErr_SetString call on already set error state.
1377 * python/py-param.c (set_parameter_value): Extend the function
1378 comment. Return -1 on failed python_string_to_host_string, twice.
1379 (set_attr): Extend the function comment.
1380 (compute_enum_values): Extend the function comment. New variable
1381 back_to. Protect self->enumeration by BACK_TO cleanups. Return 0 on
1382 failed python_string_to_host_string.
1383 (get_doc_string): Call gdbpy_print_stack on failed
1384 python_string_to_host_string.
1385 (parmpy_init): Extend the function comment.
1386 * python/py-prettyprint.c (pretty_print_one_value): Likewise.
1387 (gdbpy_get_display_hint, print_children): Call gdbpy_print_stack on
1388 failed python_string_to_host_string.
1389 * python/py-value.c (valpy_new, valpy_getitem, valpy_call)
1390 (valpy_binop, valpy_richcompare): Extend the function comment.
1391 * python/python.c
1392 (struct python_env) <error_type, error_value, error_traceback>: New
1393 fields.
1394 (restore_python_env): Handle PyErr_Occurred. Call PyErr_Restore.
1395 (ensure_python_env): Call PyErr_Fetch.
1396 * varobj.c (update_dynamic_varobj_children): Call gdbpy_print_stack on
1397 failed convert_value_from_python.
1398 (value_get_print_value): Call gdbpy_print_stack on failed
1399 python_string_to_target_python_string.
1400
1401 2010-10-12 Tom Tromey <tromey@redhat.com>
1402
1403 * python/py-prettyprint.c (search_pp_list): Fix error checking.
1404
1405 2010-10-12 Sami Wagiaalla <swagiaal@redhat.com>
1406
1407 * gdbtypes.c (do_is_ancestor): New function.
1408 (is_ancestor): Use do_is_ancestor.
1409 (is_public_ancestor): Use do_is_ancestor.
1410
1411 2010-10-12 Pierre Muller <muller@ics.u-strasbg.fr>
1412
1413 * ser-go32.c (struct dos_ops): Add missing fdopen field.
1414
1415 2010-10-12 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
1416
1417 * arm-tdep.c (arm_mode_strings): Add NULL entry at end of array.
1418
1419 2010-10-11 Doug Evans <dje@google.com>
1420
1421 * c-typeprint.c (c_type_print_modifier): Add note that this prints
1422 the address space id too.
1423
1424 2010-10-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1425
1426 Fix attaching to re-prelinked executables on ppc64.
1427 * solib-svr4.c (svr4_exec_displacement): New variable plt2_asect,
1428 initialize it, try to adjust FILESZ field by it.
1429
1430 2010-10-08 Daniel Jacobowitz <dan@codesourcery.com>
1431
1432 * tracepoint.c (merge_uploaded_trace_state_variables): Only print
1433 messages if info_verbose.
1434
1435 2010-10-08 Ken Werner <ken.werner@de.ibm.com>
1436
1437 * valops.c (value_cast): Handle vector types.
1438 * valarith.c (value_binop): Widen scalar to vector if appropriate.
1439
1440 2010-10-08 Ulrich Weigand <uweigand@de.ibm.com>
1441
1442 * arm-tdep.c (thumb_expand_immediate): New function.
1443 (thumb_instruction_changes_pc): Likewise.
1444 (thumb2_instruction_changes_pc): Likewise.
1445 (thumb_analyze_prologue): Handle 32-bit Thumb instructions during
1446 prologue parsing. Improved support for optimized code.
1447 (thumb_scan_prologue): Do not reply on line-number information,
1448 use same heuristics as arm_scan_prologue insead.
1449 (skip_prologue_function): Accept functions
1450 "__tls_get_addr" and "__aeabi_read_tp".
1451
1452 2010-10-08 Ulrich Weigand <uweigand@de.ibm.com>
1453 Daniel Jacobowitz <dan@codesourcery.com>
1454
1455 * arm-tdep.c (thumb_in_function_epilogue_p)
1456 (arm_in_function_epilogue_p): New.
1457 (arm_gdbarch_init): Install arm_in_function_epilogue_p as
1458 gdbarch_in_function_epilogue_p callback.
1459
1460 2010-10-07 Doug Evans <dje@google.com>
1461
1462 * cc-with-index.sh (output_file): Default to a.out.
1463
1464 * dwarf2read.c (mapped_index): Rename member index_table to
1465 symbol_table and index_table_slots to symbol_table_slots.
1466 All uses updated.
1467 (create_symbol_hash_table): Renamed from create_index_table.
1468 All callers updated.
1469 (add_indices_to_cpool): Rename arg index_table to symbol_hash_table.
1470 (write_hash_table): Rename local index_table to symbol_hash_table.
1471
1472 * addrmap.h (addrmap_foreach_fn): New typedef.
1473 (addrmap_foreach): Declare.
1474 * addrmap.c (struct addrmap_funcs): New member foreach.
1475 (addrmap_foreach): New function.
1476 (addrmap_fixed_foreach): New function.
1477 (addrmap_fixed_funcs): Update.
1478 (struct mutable_foreach_data): New struct.
1479 (addrmap_mutable_foreach_worker): New function.
1480 (addrmap_mutable_foreach): New function.
1481 (addrmap_mutable_funcs): Update.
1482
1483 2010-10-07 Paul Hilfinger <hilfinger@adacore.com>
1484
1485 * dictionary.c (dict_hash): Revert to msymbol_hash_iw in
1486 more cases.
1487
1488 2010-10-07 Paul Hilfinger <hilfinger@adacore.com>
1489
1490 * ada-lang.c (full_match): Declare.
1491 (ada_match_name): Rename to match_name (we should avoid prefixing static
1492 symbols with "ada_").
1493 (match_name): New name for ada_match_name.
1494 (struct ada_psym_data): Remove and replace with...
1495 (struct match_data): User data for map_matching_symbols.
1496 (ada_add_psyms): Remove.
1497 (aux_add_nonlocal_symbols): New function, used as callback for
1498 map_matching_symbols.
1499 (compare_names): Ordering function adopted from strcmp_iw for Ada-encoded
1500 symbols.
1501 (ada_add_non_local_symbols): Rename to add_nonlocal_symbols.
1502 (add_nonlocal_symbols): Renamed from ada_add_non_local_symbols.
1503 Rework to use map_matching_symbols instead of map_ada_symtabs.
1504 (ada_lookup_symbol_list): Use add_nonlocal_symbols.
1505 * psymtab.c: Include dependency on dictionary.h.
1506 (match_partial_symbol): New function.
1507 (ada_lookup_partial_symbol): Remove.
1508 (map_block): New function, auxiliary to map_matching_symbols_psymtab.
1509 (map_matching_symbols_psymtab): New function.
1510 (psym_functions): Replace map_ada_symtabs with map_matching_symbols_psymtab.
1511 * symfile.h: Replace map_ada_symtabs definition with map_matching_symbols.
1512
1513 2010-10-06 Paul Hilfinger <hilfinger@adacore.com>
1514
1515 * ada-lang.c (ada_match_name): Use new API for wild_match.
1516 (wild_match): Change API to be consistent with that of strcmp_iw;
1517 return 0 for a match, and switch operand order.
1518 (full_match): New function.
1519 (ada_add_block_symbols): Use dict_iter_match_{first,next} for
1520 matching to allow use of hashing.
1521 * dictionary.c (struct dict_vector): Generalize iter_name_first,
1522 iter_name_next ot iter_match_first, iter_match_next.
1523 (iter_name_first_hashed): Replace with iter_match_first_hashed.
1524 (iter_name_next_hashed): Replace with iter_match_next_hashed.
1525 (iter_name_first_linear): Replace with iter_match_first_linear.
1526 (iter_name_next_linear): Replace with iter_match_next_linear.
1527 (dict_iter_name_first): Re-implement to use dict_iter_match_first.
1528 (dict_iter_name_next): Re-implement to use dict_iter_match_next.
1529 (dict_iter_match_first): New function.
1530 (dict_iter_match_next): New function.
1531 (dict_hash): New function.
1532 * dictionary.h (dict_iter_match_first, dict_iter_match_next): Declare.
1533 * psymtab.c (ada_lookup_partial_symbol): Use new wild_match API.
1534
1535 2010-10-06 Doug Evans <dje@google.com>
1536
1537 * data-directory/Makefile.in: Remove @host_makefile_frag@, @frags@.
1538
1539 2010-10-06 Ken Werner <ken.werner@de.ibm.com>
1540
1541 * dwarf2read.c (read_tag_const_type): Handle const arrays.
1542
1543 2010-10-06 Doug Evans <dje@google.com>
1544
1545 * Makefile.in (REQUIRED_SUBDIRS): New var.
1546 (subdir_do): Verify required subdir Makefiles exist.
1547
1548 Create subdir data-directory.
1549 * Makefile.in (XML_SYSCALL_DIR, XML_SYSCALL_FILES): Moved to
1550 data-directory/Makefile.in.
1551 (SUBDIRS): Add data-directory.
1552 (all): Remove xml-syscall-copy dependency.
1553 (xml-syscall-copy): Moved to data-directory/Makefile.in as
1554 stamp-syscalls.
1555 (xml-syscall-install): Moved to data-directory/Makefile.in as
1556 install-syscalls.
1557 (install-only): Remove xml-syscall-install dependency.
1558 (all-data-directory): New rule.
1559 (data-directory/Makefile): New rule.
1560 * configure.ac (AC_OUTPUT): Add data-directory/Makefile.
1561 * configure: Regenerate.
1562 * data-directory/Makefile.in: New file.
1563 * python/lib/gdb/__init__.py: New file.
1564
1565 2010-10-06 Joel Brobecker <brobecker@adacore.com>
1566
1567 Fix ARI warnings in advance_wild_match.
1568 * ada-lang.c (advance_wild_match): Delete local variable t2.
1569 Adjust code accordingly. Minor reformatting.
1570
1571 2010-10-06 Ken Werner <ken.werner@de.ibm.com>
1572
1573 * gdbtypes.h (struct main_type): Remove flag_nottext.
1574 (enum type_flag_value): Remove TYPE_FLAG_NOTTEXT.
1575 (enum type_instance_flag_value): Add TYPE_INSTANCE_FLAG_NOTTEXT.
1576 (TYPE_NOTTEXT): Use TYPE_INSTANCE_FLAG_NOTTEXT instead of flag_nottext.
1577 * gdbtypes.c (make_vector_type): Use TYPE_INSTANCE_FLAG_NOTTEXT instead
1578 of TYPE_FLAG_NOTTEXT.
1579 (init_type): Remove the initialization of the flag_nottext field.
1580 (gdbtypes_post_init): Use TYPE_INSTANCE_FLAG_NOTTEXT instead of
1581 TYPE_FLAG_NOTTEXT.
1582 * c-valprint.c (c_val_print): Remove TYPE_VECTOR check.
1583
1584 2010-10-04 Doug Evans <dje@google.com>
1585
1586 * cc-with-index.sh: New file.
1587
1588 * dwarf2read.c (dw2_do_instantiate_symtab): Insert blank line after
1589 function comment.
1590 (dw2_instantiate_symtab, dw2_get_cu, extract_cu_value): Ditto.
1591 (create_cus_from_index, create_addrmap_from_index): Ditto.
1592 (mapped_index_string_hash, find_slot_in_mapped_hash): Ditto.
1593 (dw2_setup, dw2_require_line_header, dw2_require_full_path): Ditto.
1594 (dw2_do_expand_symtabs_matching): Ditto.
1595 (eq_strtab_entry, create_strtab, add_string): Ditto.
1596 (hash_strtab_entry): Ditto.
1597 (hash_symtab_entry, eq_symtab_entry, delete_symtab_entry): Ditto.
1598 (create_index_table, create_mapped_symtab, find_slot): Ditto.
1599 (hash_expand, add_index_entry, add_indices_to_cpool): Ditto.
1600 (write_hash_table, add_address_entry, write_psymbols): Ditto.
1601 (write_obstack, unlink_if_set, write_one_signatured_type): Ditto.
1602 (write_psymtabs_to_index): Ditto.
1603
1604 2010-10-04 Joel Brobecker <brobecker@adacore.com>
1605
1606 * ada-lang.c: #include "value.h".
1607 (ensure_lval): Delete advance declaration. Remove gdbarch and sp
1608 arguments. Implement using value_allocate_space_in_inferior
1609 instead of allocating memory from the stack.
1610 (make_array_descriptor): Remove gdbarch and sp parameters. Update
1611 calls to ensure_lval.
1612 (ada_convert_actual): Remove gdbarch and sp parameters. Update
1613 calls to make_array_descriptor and ensure_lval.
1614 * ada-lang.h (ada_convert_actual): Update declaration.
1615 * infcall.c (value_arg_coerce): Update call to ada_convert_actual.
1616
1617 2010-10-04 Doug Evans <dje@google.com>
1618
1619 * python/python.c (_initialize_python): Define new function
1620 GdbSetPythonDirectory in python. Use it to update sys.path and
1621 gdb.__path__.
1622
1623 2010-10-03 Paul Hilfinger <hilfinger@adacore.com>
1624
1625 * gdb/ada-typeprint.c (print_selected_record_field_types): New function,
1626 incorporating and generalizing print_record_field_types.
1627 (print_record_field_types): Change return value and update comment.
1628 Re-implement using print_selected_record_field_types.
1629 (print_choices): Print "=>" here.
1630 Handle case of unencoded variant branch.
1631 (print_variant_clauses): Reformat comment.
1632 Special-case unencoded variant branch.
1633
1634 2010-10-03 Paul Hilfinger <hilfinger@adacore.com>
1635
1636 * ada-lang.c (wild_match): Reimplement.
1637 Change API to eliminate unused length argument, reverse arguments and
1638 make 0 the 'true' return value.
1639 (advance_wild_match): New auxiliary function for wild_match to improve
1640 readability.
1641 (ada_match_name, ada_add_block_symbols): Use new API for wild_match.
1642 * psymtab.c (ada_lookup_partial_symbol, map_ada_symtabs): Use new
1643 API for wild_match.
1644 * symfile.h (map_ada_symtabs): Modify declaration to use new API for
1645 wild_match.
1646 * dwarf2read.c (dw2_map_ada_symtabs): Ditto.
1647
1648 2010-10-01 Doug Evans <dje@google.com>
1649
1650 * dwarf2read.c (_initialize_dwarf2_read): Add usage info to help text
1651 for `save gdb-index' command.
1652
1653 2010-10-01 Tom Tromey <tromey@redhat.com>
1654
1655 * symfile.h (allocate_symtab): Update.
1656 * symfile.c (allocate_symtab): Make 'filename' const.
1657 * psymtab.c (add_psymbol_to_bcache): Make 'name' const.
1658 (add_psymbol_to_list): Likewise.
1659 * psympriv.h (struct partial_symtab) <filename, dirname>: Now
1660 const.
1661 (add_psymbol_to_list): Update.
1662 * mdebugread.c (new_symtab): Make 'name' const.
1663 (psymtab_to_symtab_1): Make 'filename' const.
1664 * elfread.c (elfstab_offset_sections): Update.
1665 * dwarf2read.c (dwarf_decode_lines): Make 'comp_dir' const.
1666 (dwarf2_start_subfile): Make 'dirname' and 'comp_dir' const.
1667 (psymtab_include_file_name): Update.
1668 * dbxread.c (find_stab_function_addr): Make 'filename' const.
1669 * buildsym.h (start_subfile): Update.
1670 * buildsym.c (start_subfile): Make arguments const.
1671
1672 2010-09-30 Ali Lakhia <lakhia@alumni.utexas.net>
1673
1674 * fork-child.c (breakup_args): Fix crash if shell forking is
1675 disabled at compile time.
1676
1677 2010-10-01 Joel Brobecker <brobecker@adacore.com>
1678
1679 * ada-lang.c (desc_bounds): Add handling of the case where
1680 the P_BOUNDS field is a pointer to a stub.
1681 (desc_data_target_type): Same for P_ARRAY field.
1682 (ada_check_typedef): Strip the typedef layers from the type
1683 found by ada_find_any_type.
1684
1685 2010-10-01 Joel Brobecker <brobecker@adacore.com>
1686
1687 * sparc-tdep.c (sparc32_frame_align): New function.
1688 (sparc32_gdbarch_init): Set the frame_align gdbarch method.
1689 * sparc64-tdep.c (sparc64_frame_align): New function.
1690 (sparc64_gdbarch_init): Set the frame_align gdbarch method.
1691
1692 2010-09-30 H.J. Lu <hongjiu.lu@intel.com>
1693
1694 * defs.h (MAX_REGISTER_SIZE): Set to 64.
1695
1696 2010-09-30 Tom Tromey <tromey@redhat.com>
1697
1698 * symfile.h (struct sym_fns) <next>: Remove.
1699 (add_symtab_fns): Update.
1700 * symfile.c (sym_fns_ptr): New typedef.
1701 (symtab_fns): Now a VEC.
1702 (add_symtab_fns): Update. Change argument type.
1703 (find_sym_fns): Update. Change return type.
1704 (get_symfile_segment_data): Update.
1705 * objfiles.h (struct objfile) <sf>: Now const.
1706 * somread.c (som_sym_fns): Now const. Update.
1707 * xcoffread.c (xcoff_sym_fns): Now const. Update.
1708 * mipsread.c (ecoff_sym_fns): Now const. Update.
1709 * machoread.c (macho_sym_fns): Now const. Update.
1710 * elfread.c (elf_sym_fns): Now const. Update.
1711 (elf_sym_fns_gdb_index): Likewise.
1712 * dbxread.c (aout_sym_fns): Now const. Update.
1713 * coffread.c (coff_sym_fns): Now const. Update.
1714
1715 2010-09-30 Tom Tromey <tromey@redhat.com>
1716
1717 * value.c (value_primitive_field): Take 'offset' into account for
1718 packed field.
1719
1720 2010-09-30 Tom Tromey <tromey@redhat.com>
1721
1722 * completer.c (count_struct_fields): Handle anonymous structs and
1723 unions.
1724 (add_struct_fields): Likewise.
1725
1726 2010-09-30 Jan Kratochvil <jan.kratochvil@redhat.com>
1727
1728 Fix printing parameters of inlined functions.
1729 * ada-lang.c (is_known_support_routine)
1730 (ada_unhandled_exception_name_addr_from_raise): Provide NULL parameter
1731 for find_frame_funname.
1732 * python/py-frame.c (frapy_name): Likewise.
1733 * stack.c (find_frame_funname): New parameter funcp. Update the
1734 function comment. Fill it in.
1735 (print_frame): New variable func. Initialize it by
1736 find_frame_funname. Print arguments only if FUNC is not NULL. Use
1737 FUNC as the parameter of print_args_stub.
1738 * stack.h (find_frame_funname): New parameter funcp. Remove the
1739 function declaration comment.
1740
1741 2010-09-30 Jan Kratochvil <jan.kratochvil@redhat.com>
1742
1743 PR corefiles/12071.
1744 * inferior.c (have_live_inferiors): New variables old_chain, inf and
1745 tp. Iterate INFERIOR_LIST and call target_has_execution.
1746
1747 2010-09-29 Jan Kratochvil <jan.kratochvil@redhat.com>
1748
1749 Fix GDB crash on inferior calls with self-referencing classes.
1750 * gnu-v3-abi.c (gnuv3_pass_by_reference): Do not call itself on static
1751 member fields.
1752
1753 2010-09-29 Doug Evans <dje@google.com>
1754
1755 Workaround for gcc/45682.
1756 * dwarf2read.c (partial_die_info): New fields fixup_called,
1757 linkage_name.
1758 (guess_partial_die_structure_name): Renamed from guess_structure_name.
1759 Move definition next to use. Use linkage_name to determine if class
1760 is in a namespace. All callers updated.
1761 (fixup_partial_die): Return early if already called.
1762 Set fixup_called when done.
1763 (guess_full_die_structure_name): New function.
1764 (determine_prefix): Call it for class/struct/union dies if c++ and
1765 .debug_types section is present and parent is DW_TAG_compile_unit.
1766
1767 2010-09-28 Joel Brobecker <brobecker@adacore.com>
1768
1769 * configure.tgt (sparc-*-*): Set gdb_sim to ../sim/erc32/libsim.a.
1770 (sparc-*-rtems*): Delete. Now redundant with sparc-*-*.
1771
1772 2010-09-28 Joel Brobecker <brobecker@adacore.com>
1773
1774 * NEWS: Announce Ravenscar Profile support.
1775
1776 2010-09-28 Joel Brobecker <brobecker@adacore.com>
1777 Jerome Guitton <guitton@adacore.com>
1778
1779 * ravenscar-thread.c, ravenscar-thread.h, ravenscar-sparc-thread.c:
1780 New files.
1781 * configure.tgt (sparc-*-*): Add ravenscar-thread.o and
1782 ravenscar-sparc-thread.o to gdb_target_obs.
1783
1784 2010-09-28 Joel Brobecker <brobecker@adacore.com>
1785
1786 * ada-tasks.c (iterate_over_live_ada_tasks): New function.
1787 * ada-lang.h (iterate_over_live_ada_tasks): Declare.
1788
1789 2010-09-27 Pierre Muller <muller@ics.u-strasbg.fr>
1790
1791 * amd64-windows-tdep.c (amd64_skip_main_prologue): New function.
1792 (amd64_windows_init_abi): Register amd64_skip_main_prologue as gdbarch
1793 skip_main_prologue method.
1794
1795 2010-09-27 Tom Tromey <tromey@redhat.com>
1796
1797 * dwarf2read.c (dwarf2_read_index): Only allow version 3.
1798 (write_psymbols): Add 'psyms_seen' and 'is_static' arguments.
1799 Only emit a given psymbol once.
1800 (struct signatured_type_index_data) <psyms_seen>: New field.
1801 (write_one_signatured_type): Update.
1802 (cleanup_htab): New function.
1803 (write_psymtabs_to_index): Update. Create psyms_seen hash. Bump
1804 version to 3.
1805 (save_gdb_index_command): Update index documentation.
1806
1807 2010-09-27 Tom Tromey <tromey@redhat.com>
1808
1809 * bcache.c (expand_hash_table): Use hash_function, not hash.
1810
1811 2010-09-27 Tom Tromey <tromey@redhat.com>
1812
1813 * gdb_wchar.h: Change minimum libiconv to 0x108.
1814
1815 2010-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1816
1817 Fix lost siginfo_t for inferior calls.
1818 * infrun.c
1819 (struct inferior_thread_state) <siginfo_gdbarch, siginfo_data>: New.
1820 (save_inferior_thread_state): New variables regcache, gdbarch and
1821 siginfo_data. Initialize SIGINFO_DATA if gdbarch_get_siginfo_type_p.
1822 Move INF_STATE allocation later, pre-clear it. Initialize REGISTERS
1823 using REGCACHE.
1824 (restore_inferior_thread_state): New variables regcache and gdbarch.
1825 Restore SIGINFO_DATA for matching GDBARCH. Restore REGISTERS using
1826 REGCACHE. Free also SIGINFO_DATA.
1827
1828 2010-09-24 Tom Tromey <tromey@redhat.com>
1829
1830 * dwarf2read.c (dw2_expand_symtabs_matching): Add missing
1831 MAYBE_SWAPs.
1832 (dw2_map_symbol_names): Likewise.
1833
1834 2010-09-24 Sami Wagiaalla <swagiaal@redhat.com>
1835
1836 * valops.c (find_oload_champ_namespace_loop): replace incorrect
1837 discard_cleanups do_cleanups.
1838
1839 2010-09-24 Pedro Alves <pedro@codesourcery.com>
1840
1841 PR gdb/11842
1842
1843 * amd64-linux-nat.c (compat_siginfo_from_siginfo)
1844 (siginfo_from_compat_siginfo): Also copy si_pid and si_uid when
1845 si_code is < 0. Check for si_code == SI_TIMER before checking for
1846 si_code < 0.
1847
1848 2010-09-24 Pedro Alves <pedro@codesourcery.com>
1849
1850 * objfiles.h (ALL_OBJSECTIONS): Handle breaks in the inner loop.
1851
1852 2010-09-22 Joel Brobecker <brobecker@adacore.com>
1853
1854 * ada-tasks.c (read_atcb): Do not compute the task ptid when
1855 debugging a core file.
1856
1857 2010-09-22 Jan Kratochvil <jan.kratochvil@redhat.com>
1858
1859 Code cleanup.
1860 * objfiles.c (allocate_objfile) <objfile->name != NULL>: Remove.
1861 (free_objfile) <objfile->name != NULL>: Remove the conditional around
1862 xfree.
1863 * objfiles.h (struct objfile) <name>: New comment it is never NULL.
1864 * python/py-auto-load.c (auto_load_new_objfile) <!objfile->name>:
1865 Remove.
1866 * python/py-objfile.c (objfpy_get_filename) <obj->objfile->name>
1867 Remove the conditional.
1868 * python/py-progspace.c (pspy_get_filename) <objfile->name>: Likewise.
1869
1870 2010-09-22 Jan Kratochvil <jan.kratochvil@redhat.com>
1871
1872 * main.c: Include objfiles.h.
1873 (captured_main): New variable objfile. Call
1874 load_auto_scripts_for_objfile for ALL_OBJFILES.
1875
1876 2010-09-22 Jan Kratochvil <jan.kratochvil@redhat.com>
1877
1878 * dwarf2read.c (die_needs_namespace) <DW_TAG_variable>: Add also
1879 DW_TAG_constant.
1880
1881 2010-09-22 Joel Brobecker <brobecker@adacore.com>
1882
1883 * dwarf2read.c (scan_partial_symbols): Add handling of
1884 DW_TAG_constant DIEs.
1885 (add_partial_symbol, load_partial_dies, new_symbol): Likewise.
1886
1887 2010-09-22 Joel Brobecker <brobecker@adacore.com>
1888
1889 * configure.ac: Add support for --enable-gdbserver.
1890 * configure: Regenerate.
1891
1892 2010-09-22 Sami Wagiaalla <swagiaal@redhat.com>
1893
1894 PR C++/12028
1895 * valops.c (find_oload_champ_namespace_loop): removed incorrect
1896 'old_cleanups' reassignment.
1897
1898 2010-09-16 Jan Kratochvil <jan.kratochvil@redhat.com>
1899
1900 * charset.c (wchar_iterate) <EILSEQ>: Return any possibly converted
1901 characters.
1902
1903 2010-09-16 Phil Muldoon <pmuldoon@redhat.com>
1904
1905 PR mi/11407
1906 * mi/mi-cmd-stack.c (list_args_or_locals): Catch exceptions from
1907 read_var_value and common_val_print and print a warning.
1908
1909 2010-09-15 Jan Kratochvil <jan.kratochvil@redhat.com>
1910
1911 * MAINTAINERS (GLOBAL MAINTAINERS) <Jan Kratochvil>: Move the entry to
1912 keep the list in alphabetical order. Use longer e-mail address.
1913
1914 2010-09-15 Tom Tromey <tromey@redhat.com>
1915
1916 * MAINTAINERS (GLOBAL MAINTAINERS): Add Jan Kratochvil.
1917
1918 2010-09-15 Tom Tromey <tromey@redhat.com>
1919
1920 * charset.c (iconv_open): New define.
1921 (iconv): Likewise.
1922 (iconv_close): Likewise.
1923 (phony_iconv_open): Add "phony_" prefix.
1924 (phony_iconv_close): Likewise.
1925 (phony_iconv): Likewise.
1926 * gdb_wchar.h: Check _LIBICONV_VERSION, __STDC_ISO_10646__.
1927 Change how INTERMEDIATE_ENCODING is defined.
1928
1929 2010-09-15 Doug Evans <dje@google.com>
1930
1931 * dwarf2read.c (struct die_info): Fix comment.
1932
1933 2010-09-15 Alan Modra <amodra@gmail.com>
1934
1935 PR 4606
1936 * gcore.c (gcore_create_callback): Clear SEC_HAS_CONTENTS rather
1937 than setting SEC_NEVER_LOAD on sections that need not be copied.
1938
1939 2010-09-14 Tom Tromey <tromey@redhat.com>
1940
1941 * psympriv.h (add_psymbol_to_list, init_psymbol_list)
1942 (start_psymtab_common, allocate_psymtab, discard_psymtab):
1943 Declare.
1944 * symfile.h (extend_psymbol_list): Remove.
1945 (add_psymbol_to_list, init_psymbol_list, start_psymtab_common)
1946 (allocate_psymtab, discard_psymtab): Move to psympriv.h.
1947 * psymtab.c (extend_psymbol_list): Move earlier. Now static.
1948
1949 2010-09-14 Jan Kratochvil <jan.kratochvil@redhat.com>
1950
1951 * dwarf2read.c (dw2_map_ada_symtabs): Remove the internal_error.
1952 Update the comment.
1953
1954 2010-09-14 Tom Tromey <tromey@redhat.com>
1955
1956 PR symtab/8399:
1957 * dwarf2loc.c (locexpr_describe_location_piece): Don't call error
1958 for unrecognized frame base expression.
1959
1960 2010-09-14 Tom Tromey <tromey@redhat.com>
1961
1962 PR exp/11803:
1963 * value.c (value_static_field): Use value_of_variable.
1964
1965 2010-09-14 Pierre Muller <muller@ics.u-strasbg.fr>
1966
1967 * m32r-rom.c: Replace winsock.h with winsock2.h header.
1968 * remote-m32r-sdi.c: Replace winsock.h by winsock2.h.
1969
1970 2010-09-13 Sami Wagiaalla <swagiaal@redhat.com>
1971
1972 PR symtab/11992:
1973 * c-exp.y (classify_name): Check is_a_member_of_this before returning
1974 UNKNOWN_CPP_NAME.
1975
1976 2010-09-13 Joel Brobecker <brobecker@adacore.com>
1977
1978 * NEWS: Add x86-lynxos to the list of platforms supported by
1979 gdbserver.
1980
1981 2010-09-13 Joel Brobecker <brobecker@adacore.com>
1982
1983 * NEWS: Announce GDBserver support for version 5.x of ppc-lynxos.
1984
1985 2010-09-13 Tom Tromey <tromey@redhat.com>
1986
1987 * Makefile.in (HFILES_NO_SRCDIR): Add progspace.h.
1988
1989 2010-09-13 H.J. Lu <hongjiu.lu@intel.com>
1990
1991 * i386-tdep.c (i386_ymm_type): Set type name to
1992 builtin_type_vec256i.
1993
1994 2010-09-12 Michael Snyder <msnyder@vmware.com>
1995
1996 * i386-tdep.c (i386_gdbarch_init): Fix typo in comments.
1997
1998 2010-09-12 H.J. Lu <hongjiu.lu@intel.com>
1999
2000 * i386-tdep.c (i386_gdbarch_init): Fix typo in comments.
2001
2002 2010-09-11 H.J. Lu <hongjiu.lu@intel.com>
2003
2004 * amd64-tdep.c (amd64_register_name): Removed.
2005 (amd64_init_abi): Don't call set_gdbarch_register_name.
2006
2007 * i386-tdep.c (i386_ymmh_regnum_p): Make it static.
2008
2009 * i386-tdep.h (i386_ymmh_regnum_p): Removed.
2010
2011 2010-09-11 Jan Kratochvil <jan.kratochvil@redhat.com>
2012 Paul Bolle <pebolle@tiscali.nl>
2013
2014 Redirect also uiout and stdtarg{,err} in execute_command_to_string.
2015 * cli-logging.c (struct saved_output_files) <targerr>: New.
2016 (set_logging_redirect, pop_output_files, handle_redirections):
2017 Redirect also gdb_stdtargerr.
2018 * defs.h (struct ui_out, make_cleanup_ui_out_redirect_pop): New
2019 declarations.
2020 * event-top.c (gdb_setup_readline, gdb_disable_readline): Redirect
2021 also gdb_stdtargerr.
2022 * top.c (execute_command_to_string): Move make_cleanup_ui_file_delete
2023 to the top. Redirect also gdb_stdlog, gdb_stdtarg and gdb_stdtargerr.
2024 Use ui_out_redirect, register make_cleanup_ui_out_redirect_pop.
2025 * tui/tui-io.c (tui_setup_io): Redirect also gdb_stdtargerr.
2026 * utils.c (do_ui_out_redirect_pop, make_cleanup_ui_out_redirect_pop):
2027 New functions.
2028
2029 2010-09-10 Pierre Muller <muller@ics.u-strasbg.fr>
2030
2031 * hppa-tdep.c (unwind_command): Use host_address_to_string function
2032 to display a host address.
2033 * monitor.c (monitor_read_memory): Likewise.
2034 * xtensa-tdep.c (xtensa_push_dummy_call): Likewise.
2035
2036 2010-09-10 Pierre Muller <muller@ics.u-strasbg.fr>
2037
2038 * coffread.c (struct coff_symbol): Change c_value type from `long' to
2039 `CORE_ADDRESS' as it might contain target addresses.
2040
2041 2010-09-10 Pierre Muller <muller@ics.u-strasbg.fr>
2042
2043 * alpha-mdebug-tdep.c (find_proc_desc): Use SYMBOL_VALUE_BYTES macro
2044 before cast to pointer to avoid warning.
2045
2046 2010-09-09 Kevin Buettner <kevinb@redhat.com>
2047
2048 * v850-tdep.c (v850_gdbarch_init): Change the v850's `char'
2049 type to be signed.
2050
2051 2010-09-09 Ulrich Weigand <uweigand@de.ibm.com>
2052
2053 * dwarf2read.c (fixup_partial_die): Do not set dummy name for
2054 anonymous class partial DIEs.
2055
2056 2010-09-08 Daniel Jacobowitz <dan@codesourcery.com>
2057
2058 * dwarf2read.c (dwarf2_compute_name): Check that the first
2059 argument is a pointer.
2060
2061 2010-09-08 Daniel Jacobowitz <dan@codesourcery.com>
2062
2063 * dwarf2read.c (read_func_scope, read_structure_type)
2064 (read_common_block): Check for a NULL return from new_symbol.
2065
2066 2010-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2067
2068 * dwarf2read.c (dwarf2_read_index): Return on no SEC_HAS_CONTENTS.
2069
2070 2010-09-08 Daniel Jacobowitz <dan@codesourcery.com>
2071
2072 * dwarf2read.c (read_structure_type): Move processing of
2073 fields and member functions from here...
2074 (process_structure_scope): ... to here.
2075
2076 2010-09-08 Daniel Jacobowitz <dan@codesourcery.com>
2077
2078 * gnu-v3-abi.c (gnuv3_print_method_ptr): Do not use
2079 the domain type.
2080 (gnuv3_make_method_ptr): Likewise.
2081
2082 2010-09-08 Tom Tromey <tromey@redhat.com>
2083
2084 * breakpoint.c (create_breakpoint): Add missing _().
2085
2086 2010-09-08 Doug Evans <dje@google.com>
2087
2088 * dwarf2-frame.h (dwarf2_frame_build_info): Delete, unused.
2089
2090 2010-09-08 Tom Tromey <tromey@redhat.com>
2091
2092 Revert:
2093 2010-09-01 Tom Tromey <tromey@redhat.com>
2094 * dwarf2read.c, gdbtypes.c, psymtab.c, symfile.h, symtab.c,
2095 symtab.h: Revert earlier change.
2096
2097 2010-09-09 Sami Wagiaalla <swagiaal@redhat.com>
2098
2099 * psymtab.c (add_psymbol_to_bcache): Initialize
2100 obj_section.
2101 memset psymbol.ginfo.value to 0.
2102
2103 2010-09-06 Pedro Alves <pedro@codesourcery.com>
2104
2105 * infrun.c (resume): Extend comment on ignoring single-step
2106 requests on vfork parents waiting for a vfork-done.
2107
2108 2010-09-06 Jan Kratochvil <jan.kratochvil@redhat.com>
2109 Pedro Alves <pedro@codesourcery.com>
2110
2111 * corelow.c (core_open): Use target_signal_from_host if CORE_GDBARCH
2112 is NULL.
2113 * fork-child.c (startup_inferior) <resume_signal>: Use enum
2114 target_signal type.
2115 * linux-nat.c (linux_nat_resume): Use target_signal_to_host before
2116 calling strsignal. Use enum target_signal type for saved_signo.
2117 (linux_handle_extended_wait) <signo>: Use enum target_signal type.
2118 (linux_nat_wait_1): Use enum target_signal type for signo. Use
2119 target_signal_to_host before calling strsignal.
2120 * remote-m32r-sdi.c (m32r_wait, m32r_detach): Replace 0 by
2121 TARGET_SIGNAL_0.
2122
2123 2010-09-06 Pedro Alves <pedro@codesourcery.com>
2124 Jan Kratochvil <jan.kratochvil@redhat.com>
2125
2126 * common/signals.c (ANY): Remove.
2127 (SET): No longer use ANY.
2128
2129 2010-09-06 Yao Qi <yao@codesourcery.com>
2130
2131 * infrunc(resume): When inferior is waiting_for_vfork_done,
2132 clear step and don't use displaced stepping.
2133
2134 2010-09-04 Daniel Jacobowitz <dan@codesourcery.com>
2135
2136 * breakpoint.c (can_use_hardware_watchpoint): Handle the first
2137 value specially.
2138
2139 2010-09-04 Jan Kratochvil <jan.kratochvil@redhat.com>
2140
2141 Code cleanup - split print_stop_reason.
2142 * infrun.c (enum inferior_stop_reason): Remove.
2143 (print_stop_reason): Remove by splitting into ...
2144 (print_exited_reason, print_signal_exited_reason)
2145 (print_no_history_reason, print_signal_received_reason)
2146 (print_end_stepping_range_reason): ... these new functions. Update
2147 the preceding comment.
2148 (handle_inferior_event): Change the calls to print_exited_reason,
2149 print_signal_exited_reason, print_no_history_reason,
2150 print_signal_received_reason, print_end_stepping_range_reason.
2151 (handle_step_into_function, handle_step_into_function_backward):
2152 Change the calls to print_end_stepping_range_reason.
2153
2154 2010-09-03 Jan Kratochvil <jan.kratochvil@redhat.com>
2155
2156 * breakpoint.c (save_breakpoints): Use RETURN_MASK_ALL.
2157 * cli-out.c: Include vec.h.
2158 (cli_field_fmt, cli_spaces, cli_text, cli_message, cli_flush): New
2159 variable stream, initialize it, use it.
2160 (cli_redirect): New function comment. Replace the stream and
2161 original_stream fields by the new streams field. Remove the
2162 original_stream != NULL conditional, assert error on NULL instead.
2163 (out_field_fmt, field_separator): New variable stream, initialize it, use it.
2164 (cli_out_data_ctor): Assert non-NULL stream. Replace the stream and
2165 original_stream fields by the new streams field.
2166 (cli_out_set_stream): Replace the stream field by the new streams
2167 field.
2168 * cli-out.h: Include vec.h.
2169 (ui_filep): New typedef, call DEF_VEC_P for it.
2170 (struct cli_ui_out_data): Replace the stream and original_stream
2171 fields by the new streams field.
2172 * cli/cli-logging.c (set_logging_redirect): Call ui_out_redirect with
2173 NULL first. Extend the comment.
2174 (handle_redirections): Call ui_out_redirect with output.
2175 * python/py-breakpoint.c (bppy_get_commands): Move ui_out_redirect
2176 calls outside of the TRY_CATCH block.
2177
2178 2010-09-03 Joel Brobecker <brobecker@adacore.com>
2179
2180 GDB 7.2 released.
2181
2182 2010-09-02 Joel Brobecker <brobecker@adacore.com>
2183
2184 Back out the following change:
2185 | 2010-06-29 Hui Zhu <teawater@gmail.com>
2186 | * record.c (set_record_pic_cmdlist,
2187 | show_record_pic_cmdlist): New variables.
2188 | (set_record_pic_command,
2189 | show_record_pic_command): New functions.
2190 | (record_pic_function, record_pic_line, record_pic_enum,
2191 | set_record_pic_type, record_pic_hide_nofunction,
2192 | record_pic_hide_nosource, record_pic_hide_same): New variables.
2193 | (record_pic_fputs): New function.
2194 | (function_list, node_list, edge_list): New struct.
2195 | (function_list, node_list, edge_list): New variables.
2196 | (record_pic_cleanups, record_pic_node,
2197 | record_pic_edge, cmd_record_pic): New functions.
2198 | (_initialize_record): Add new commands for record pic.
2199
2200 2010-09-02 Daniel Jacobowitz <dan@codesourcery.com>
2201
2202 * config.in, configure: Regenerated.
2203 * configure.ac: Check for waitpid.
2204 * ser-pipe.c (pipe_close): Wait for the program to exit.
2205
2206 2010-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2207
2208 * cli/cli-logging.c: Include gdb_assert.h.
2209 (set_logging_overwrite): New function.
2210 (logging_redirect): New comment.
2211 (logging_no_redirect_file, set_logging_redirect)
2212 (pop_output_files) <logging_no_redirect_file>: New.
2213 (handle_redirections) <!logging_redirect>: New variable
2214 no_redirect_file. Remove file autoclose for tee_file_new. No longer
2215 discard cleanup for the close of former OUTPUT. Set
2216 LOGGING_NO_REDIRECT_FILE.
2217 (handle_redirections) <logging_redirect>: gdb_assert
2218 LOGGING_NO_REDIRECT_FILE.
2219 (show_logging_command) <logging_redirect handling>: Adjust messages
2220 for SAVED_FILENAME not NULL.
2221 (_initialize_cli_logging): Install set_logging_overwrite and
2222 set_logging_redirect.
2223
2224 2010-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2225
2226 * iq2000-tdep.c (iq2000_scan_prologue): Initialize SAL.END.
2227
2228 2010-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2229
2230 * Makefile.in (GDB_WARN_CFLAGS_NO_FORMAT): Convert it to the no- form.
2231 (monitor.o): Replace $(INTERNAL_WARN_CFLAGS) by $(INTERNAL_CFLAGS) and
2232 add $(GDB_WARN_CFLAGS_NO_FORMAT).
2233 (printcmd.o): Replace $(INTERNAL_CFLAGS_BASE) by $(INTERNAL_CFLAGS).
2234
2235 2010-09-02 Yao Qi <yao@codesourcery.com>
2236
2237 * linux-nat.c (status_to_str): Use WTERMSIG to extract the signal
2238 number from a WIFSIGNALED status.
2239
2240 2010-09-01 Tom Tromey <tromey@redhat.com>
2241
2242 * symtab.h (lookup_type_symbol): Declare.
2243 * symtab.c (lookup_symbol_in_language_full): Rename from
2244 lookup_symbol_in_language. Add 'for_type' argument.
2245 (lookup_symbol_in_language): New function.
2246 (lookup_type_symbol): Likewise.
2247 (lookup_symbol_aux): Add 'for_type' argument.
2248 (match_symbol_aux): New function.
2249 (lookup_symbol_aux_symtabs): Use expand_one_symtab_matching.
2250 (match_transparent_type): New function.
2251 (basic_lookup_transparent_type): Use expand_one_symtab_matching.
2252 * symfile.h (struct quick_symbol_functions)
2253 <pre_expand_symtabs_matching>: Remove.
2254 <expand_one_symtab_matching>: New field.
2255 * psymtab.c (expand_one_symtab_matching_psymtabs): New function.
2256 (pre_expand_symtabs_matching_psymtabs): Remove.
2257 (psym_functions): Update.
2258 * gdbtypes.c (lookup_typename): Use lookup_type_symbol.
2259 * dwarf2read.c (dw2_lookup_symbol): Update comment.
2260 (dw2_pre_expand_symtabs_matching): Remove.
2261 (dw2_expand_one_symtab_matching): New function.
2262 (dwarf2_gdb_index_functions): Update.
2263
2264 2010-09-01 Joel Brobecker <brobecker@adacore.com>
2265
2266 * NEWS: Add entry announcing GDBserver support on powerpc-lynxos.
2267
2268 2010-09-01 Marc Khouzam <marc.khouzam@ericsson.com>
2269
2270 * mi/mi-main.c (mi_cmd_list_target_features): Add `reverse'
2271 as a feature reported by -list-target-features.
2272
2273 2010-09-01 Joel Brobecker <brobecker@adacore.com>
2274
2275 * features/Makefile (WHICH): Add rs6000/powerpc-32.
2276 (powerpc-32.o, powerpc-32.c): New rules.
2277 (clean): Also remove powerpc-32.c.
2278 * regformats/rs6000/powerpc-32.dat: Generate.
2279
2280 2010-08-31 Sami Wagiaalla <swagiaal@redhat.com>
2281
2282 * symfile.c (reread_symbols): Use psymbol_bcache_free, and
2283 psymbol_bcache_init.
2284 * psymtab.h (psymbol_bcache_init): New function prototype.
2285 (psymbol_bcache_free): New function prototype.
2286 (psymbol_bcache_get_bcache): New function prototype.
2287 * psymtab.c (psymbol_bcache_init): New function.
2288 (psymbol_bcache_free): New function.
2289 (psymbol_bcache_full): New function.
2290 (psymbol_bcache_get_bcache): New function.
2291 (add_psymbol_to_bcache): use psymbol_bcache_full.
2292 * objfiles.h (psymbol_cache): Change type of psymbol_cache to
2293 psymbol_bcache.
2294 * symmisc.c (print_symbol_bcache_statistics): Updated.
2295 (print_objfile_statistics): Updated.
2296 * objfiles.c (allocate_objfile): Use psymbol_bcache_init to initialize
2297 psymbol_cache.
2298 (free_objfile): Use psymbol_bcache_free.
2299
2300 2010-08-31 Tom Tromey <tromey@redhat.com>
2301
2302 PR c++/11961:
2303 * dwarf2read.c (new_symbol_full) <DW_TAG_template_type_param>:
2304 Don't set TYPE_NAME on the type.
2305
2306 2010-08-31 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
2307
2308 * infrun.c (set_exec_direction_func): Error out if target does not
2309 support reverse execution.
2310
2311 2010-08-31 Jan Kratochvil <jan.kratochvil@redhat.com>
2312
2313 Make linux_get_siginfo_type `type *' unique.
2314 * linux-tdep.c (linux_gdbarch_data_handle, struct linux_gdbarch_data)
2315 (init_linux_gdbarch_data, get_linux_gdbarch_data): New.
2316 (linux_get_siginfo_type): New variable linux_gdbarch_data. Initialize
2317 it. Use linux_gdbarch_data->siginfo_type as a persistent storage.
2318 (_initialize_linux_tdep): New.
2319
2320 2010-08-31 Jan Kratochvil <jan.kratochvil@redhat.com>
2321
2322 Code cleanup.
2323 * defs.h (find_memory_region_ftype): New typedef.
2324 (exec_set_find_memory_regions): Use it.
2325 * exec.c (exec_set_find_memory_regions): Use find_memory_region_ftype.
2326 * fbsd-nat.c (fbsd_find_memory_regions): Likewise.
2327 * gcore.c (objfile_find_memory_regions): Likewise.
2328 * gnu-nat.c (gnu_find_memory_regions): Likewise.
2329 * linux-nat.c (linux_nat_find_memory_regions): Likewise.
2330 * procfs.c (iterate_over_mappings_cb_ftype): Remove.
2331 (iterate_over_mappings): Rename iterate_over_mappings_cb_ftype to
2332 find_memory_region_ftype.
2333 (insert_dbx_link_bpt_in_region): Likewise.
2334 (iterate_over_mappings): Likewise. Drop the comment part about the
2335 function prototype.
2336 (find_memory_regions_callback): Use find_memory_region_ftype.
2337 (proc_find_memory_regions): Likewise.
2338 (info_mappings_callback): Rename iterate_over_mappings_cb_ftype to
2339 find_memory_region_ftype.
2340 * target.c (dummy_find_memory_regions): Use find_memory_region_ftype.
2341 * target.h (struct target_ops) <to_find_memory_regions>: Likewise.
2342
2343 2010-08-31 Sami Wagiaalla <swagiaal@redhat.com>
2344
2345 * psymtab.c (add_psymbol_to_bcache): Remove 'static' from
2346 'static partial_symbol psymbol'.
2347 (psymbol_hash): New function.
2348 (psymbol_compare): New function.
2349 * bcache.c (hash_continue): New.
2350 (hash): Use hash_continue.
2351 * bcache.c: Add hash_function and compare_function
2352 pointers to bcache struct.
2353 (bcache_full): Use bcache->hash_function, and
2354 bcache->compare_function.
2355 (bcache_compare): New function.
2356 (bcache_xmalloc): Take hash_function and
2357 compare_function arguments and initialize the
2358 bcach's pointers.
2359 Updated comment.
2360 * objfiles.c (allocate_objfile): Updated.
2361 * symfile.c (reread_symbols): Updated.
2362 * python/py-type.c (typy_richcompare): Updated.
2363
2364 2010-08-30 Andre Poenitz <andre.poenitz@nokia.com>
2365 Tom Tromey <tromey@redhat.com>
2366
2367 PR python/11792:
2368 * python/py-value.c (valpy_get_dynamic_type): New function.
2369 (value_object_getset): Add "dynamic_type".
2370 (valpy_get_type): Fail on error.
2371
2372 2010-08-30 Yao Qi <yao@codesourcery.com>
2373
2374 * arm-linux-tdep.c (arm_linux_sigreturn_return_addr): New.
2375 (arm_linux_syscall_next_pc): New.
2376 (arm_linux_copy_svc): Use arm_linux_sigreturn_return_addr instead.
2377 (arm_linux_init_abi): Initialize syscall_next_pc.
2378 * arm-tdep.c (thumb_get_next_pc_raw): Get next pc of SWI in Thumb mode.
2379 (arm_get_next_pc_raw): Get next pc of SWI in ARM mode.
2380 * arm-tdep.h (struct gdbarch_tdep): Add a function pointer syscall_next_pc.
2381 Declare arm_frame_is_thumb.
2382
2383 2010-08-30 Jan Kratochvil <jan.kratochvil@redhat.com>
2384
2385 Code cleanup.
2386 * breakpoint.c (bpstat_alloc): Remove unused prototype.
2387 (bpstat_alloc): Change parameters cbs to bs_link_pointer. Adjust the
2388 code.
2389 (bpstat_stop_status): Change root_bs into bs_head and bs_link. Adjust
2390 calls of bpstat_alloc. Remove explicit bs chain termination.
2391
2392 2010-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2393
2394 Code cleanup.
2395 * linux-nat.c (pull_pid_from_list): Rename status to statusp.
2396 (my_waitpid): Likewise.
2397
2398 2010-08-27 Doug Evans <dje@google.com>
2399
2400 * dwarf2read.c (dw2_require_line_header): Read from .debug_types
2401 as appropriate.
2402
2403 2010-08-27 Tom Tromey <tromey@redhat.com>
2404
2405 * dwarf2read.c (dwarf2_attach_fields_to_type): Don't set
2406 TYPE_FIELD_IGNORE_BITS.
2407
2408 2010-08-27 Doug Evans <dje@google.com>
2409
2410 * dwarf2read.c (dwarf2_per_objfile_free): Reorganize buffers to match
2411 the order they're defined in. munmap .debug_types buffer.
2412
2413 2010-08-26 Doug Evans <dje@google.com>
2414
2415 * dwarf2read.c (dw2_require_full_path): Rename parameter cu to per_cu.
2416 (dw2_forget_cached_source_info): Rename local cu to per_cu.
2417 (dw2_lookup_symtab, dw2_do_expand_symtabs_matching): Ditto.
2418 (dw2_print_stats, dw2_expand_all_symtabs): Ditto.
2419 (dw2_expand_symtabs_with_filename, dw2_find_symbol_file): Ditto.
2420 (dw2_find_symbol_file, dw2_expand_symtabs_matching): Ditto.
2421 (dw2_map_symbol_filenames, dwarf2_initialize_objfile): Ditto.
2422 (dwarf2_free_objfile, write_one_signatured_type): Ditto.
2423 (write_psymtabs_to_index): Ditto.
2424
2425 2010-08-26 Pedro Alves <pedro@codesourcery.com>
2426
2427 * NEWS: Mention libthread_db debugging with core files.
2428
2429 2010-08-26 Doug Evans <dje@google.com>
2430
2431 * dwarf2read.c (dwarf2_build_include_psymtabs): Remove unnecessary
2432 forward decl. Pass pst->dirname to dwarf_decode_lines.
2433 (psymtab_include_file_name): New function.
2434 (dwarf_decode_lines): Call it. Update comments.
2435
2436 2010-08-25 Pedro Alves <pedro@codesourcery.com>
2437
2438 * dwarf2read.c (inherit_abstract_dies): Handle origin die's
2439 compilation unit being different from target die's.
2440
2441 2010-08-24 Doug Evans <dje@google.com>
2442
2443 PR symtab/11942
2444 * dwarf2read.c (dwarf2_per_objfile): New members debug_info_type_hash,
2445 debug_types_type_hash.
2446 (dwarf2_cu, dwarf2_per_cu_data): Delete member type_hash.
2447 All uses updated.
2448 (lookup_die_type): Renamed from tag_type_to_tag. First look in
2449 appropriate type_hash table. All callers updated.
2450 (allocate_signatured_type_table): Renamed from
2451 allocate_signatured_type_hash_table. All callers updated.
2452 (create_signatured_type_table_from_index): Renamed from
2453 create_signatured_type_hash_from_index. All callers updated.
2454 (read_die_type): Add comment. Move actual reading to ...
2455 (read_die_type_1): ... here. New function.
2456 (follow_die_ref_or_sig): Tweak comment.
2457 (set_die_type): Rewrite to use appropriate choice of
2458 debug_info_type_hash or debug_types_type_hash.
2459 (get_die_type_at_offset): New function.
2460 (get_die_type): Call it.
2461
2462 2010-08-24 Jan Kratochvil <jan.kratochvil@redhat.com>
2463
2464 * python/py-type.c (typy_richcompare): Initialize worklist.
2465
2466 2010-08-24 Daniel Jacobowitz <dan@codesourcery.com>
2467 Kazu Hirata <kazu@codesourcery.com>
2468 Jonathan Larmour <jifl@eCosCentric.com>
2469
2470 * arm-tdep.c: Include features/arm-with-m.c.
2471 (arm_psr_thumb_bit): New. Update all uses of CPSR_T to
2472 call this function.
2473 (arm_pc_is_thumb): Add a gdbarch argument. Update all callers.
2474 Check is_m after force-mode.
2475 (arm_gdbarch_init): Check the binary before the target description.
2476 Add check for M profile attribute. If we have an M-profile device,
2477 but no target register description, use arm-with-m. Recognize the
2478 new org.gnu.gdb.arm.m-profile feature and its xpsr register.
2479 (_initialize_arm_tdep): Call initialize_tdesc_arm_with_m.
2480 * arm-tdep.h (XPSR_T): Define.
2481 (struct gdbarch_tdep): Add is_m member.
2482 * features/arm-m-profile.xml, features/arm-with-m.c,
2483 features/arm-with-m.xml: New files.
2484
2485 2010-08-23 Doug Evans <dje@google.com>
2486
2487 * dwarf2read.c (read_structure_type): Add comment.
2488 (read_enumeration_type): Add comment.
2489 (process_enumeration_scope): Move definition of some locals
2490 closer to their use.
2491 (read_namespace_type): Add comment.
2492 (set_die_type): Fix typo in comment.
2493
2494 2010-08-23 Tom Tromey <tromey@redhat.com>
2495
2496 PR python/11145:
2497 * python/py-value.c: Include expression.h.
2498 (valpy_do_cast): New function.
2499 (valpy_cast): Use it.
2500 (valpy_dynamic_cast): New function.
2501 (valpy_reinterpret_cast): Likewise.
2502 (value_object_methods): Add dynamic_cast, reinterpret_cast.
2503
2504 2010-08-23 Tom Tromey <tromey@redhat.com>
2505
2506 PR python/11391:
2507 * python/py-value.c (valpy_nonzero): Don't throw error for other
2508 Value types.
2509
2510 2010-08-23 Tom Tromey <tromey@redhat.com>
2511
2512 PR python/10676:
2513 * python/py-type.c: Include bcache.h, vec.h.
2514 (struct type_equality_entry): New.
2515 (compare_strings): New function.
2516 (check_types_equal): Likewise.
2517 (check_types_worklist): Likewise.
2518 (typy_richcompare): Likewise.
2519 (type_object_type): Set tp_richcompare field.
2520
2521 2010-08-23 Tom Tromey <tromey@redhat.com>
2522
2523 PR python/10953:
2524 * python/py-type.c (typy_fields): Call check_typedef.
2525 (typy_template_argument): Add TRY_CATCH.
2526
2527 2010-08-23 Tom Tromey <tromey@redhat.com>
2528
2529 PR python/11915:
2530 * python/py-type.c (typy_array): New function.
2531 (type_object_methods): Add "array".
2532
2533 2010-08-20 Pedro Alves <pedro@codesourcery.com>
2534
2535 * python/python.c: Include "serial.h".
2536 (gdbpy_event_fds): Change type to `struct serial *' a array from
2537 int array.
2538 (gdbpy_run_events): Change parameters. Use serial_readchar in
2539 place of read.
2540 (gdbpy_post_event): Use serial_write in place of write.
2541 (gdbpy_initialize_events): Use serial_pipe instead of pipe, and
2542 serial_async in place of add_file_handler.
2543
2544 2010-08-20 Pedro Alves <pedro@codesourcery.com>
2545
2546 * serial.h (gdb_pipe, serial_pipe): Declare.
2547 * serial.c (serial_interface_lookup): Take a const char pointer.
2548 (serial_fdopen): Rename to ...
2549 (serial_fdopen_ops): ... this. Add an OPS parameter and use it.
2550 Call the OPS' fdopen function if there is one.
2551 (serial_fdopen): Rewrite as wrapper to serial_fdopen_ops.
2552 (serial_pipe): New.
2553 (struct serial_ops) <fdopen>: New field.
2554
2555 * ser-mingw.c (free_pipe_state):
2556 (free_pipe_state): Close output on non-pex pipes.
2557 (pipe_windows_fdopen): New.
2558 (gdb_pipe): New.
2559 (_initialize_ser_windows): Register pipe_windows_fdopen.
2560 * ser-go32.c (gdb_pipe): New.
2561 * ser-pipe.c (pipe_close): Close file descriptor even if there's
2562 no state pointer.
2563 (pipe_ops): Delete.
2564 (gdb_pipe): New.
2565
2566 2010-08-20 Keith Seitz <keiths@redhat.com>
2567
2568 PR symtab/11465:
2569 * dwarf2read.c (struct delayed_method_info): New struct.
2570 (struct dwarf2_cu): Add vector method_list.
2571 (scan_partial_symbols): Count methods for union, class, structure,
2572 and interface types.
2573 (add_to_method_list): New function.
2574 (free_delayed_list): New function.
2575 (compute_delayed_physnames): New function.
2576 (process_full_comp_unit): Make a cleanup for the CU's delayed
2577 physname list, compute the delayed physnames, and free the
2578 the list.
2579 (dwarf2_add_member_fn): For C++ and Java, delay the computation
2580 of the physname until after the CU is read.
2581
2582 * dwarf2read.c (read_structure_type): Check if the current
2583 DIE's type was already completed after dwarf2_full_name
2584 was called.
2585
2586 2010-08-19 Stan Shebs <stan@codesourcery.com>
2587
2588 * NEWS: Mention some additional changes.
2589
2590 2010-08-19 Tom Tromey <tromey@redhat.com>
2591
2592 * Makefile.in (install-python): Add DESTDIR.
2593
2594 2010-08-19 Doug Evans <dje@google.com>
2595
2596 PR exp/11926
2597 * parser-defs.h (parse_float, parse_c_float): Declare.
2598 * parse.c (parse_float, parse_c_float): New function.
2599 * c-exp.y (parse_number): Call parse_c_float.
2600 * objc-exp.y (parse_number): Ditto.
2601 * p-exp.y (parse_number): Ditto. Use ANSI/ISO-style definition.
2602 * jv-exp.y (parse_number): Call parse_float, fix suffix handling.
2603
2604 2010-08-19 Joel Brobecker <brobecker@adacore.com>
2605
2606 * psymtab.c (map_symbol_filenames_psymtab): Call FUN with
2607 the arguments in the correct order.
2608 * symtab.c (maybe_add_partial_symtab_filename): Declare
2609 the arguments in the correct order.
2610
2611 2010-08-19 Jan Kratochvil <jan.kratochvil@redhat.com>
2612
2613 * varobj.c (varobj_create): Replace variable old_fi with old_id,
2614 initialize it by null_frame_id, wrap its usage by get_frame_id,
2615 frame_id_p and frame_find_by_id.
2616
2617 2010-08-18 Tom Tromey <tromey@redhat.com>
2618
2619 PR python/11900:
2620 * configure: Rebuild.
2621 * configure.ac: Add install-python to CONFIG_INSTALL.
2622 * Makefile.in (install-python): New.
2623
2624 2010-08-18 Doug Evans <dje@google.com>
2625
2626 * gdb_assert.h (gdb_assert_not_reached): New macro.
2627 (gdb_assert_fail): Fix typo in comment.
2628 * avr-tdep.c (avr_return_value): Use gdb_assert_not_reached instead of
2629 gdb_assert (0).
2630 * darwin-nat.c (darwin_check_new_threads): Ditto.
2631 * dwarf2read.c (dwarf2_get_section_info): Ditto.
2632 (munmap_section_buffer): Ditto.
2633 * m32c-tdep.c (make_types): Ditto.
2634 (m32c_decode_srcdest4, m32c_decode_sd23, m32c_frame_base): Ditto.
2635 * macroexp.c (get_character_constant): Ditto.
2636 (get_string_literal): Ditto.
2637 * mep-tdep.c (mep_pseudo_cr_size): Ditto.
2638 (mep_pseudo_cr_index, mep_register_type): Ditto.
2639 (mep_pseudo_register_read, mep_pseudo_register_write): Ditto.
2640 (mep_get_insn, mep_analyze_prologue): Ditto.
2641 * objfiles.c (qsort_cmp): Ditto.
2642 * prologue-value.c (pv_is_identical): Ditto.
2643 * record.c (record_get_loc): Ditto.
2644 * value.c (value_static_field): Ditto.
2645 * xtensa-tdep.c (call0_track_op): Ditto.
2646
2647 2010-08-18 Tom Tromey <tromey@redhat.com>
2648
2649 PR symtab/11919:
2650 * gdbtypes.c (lookup_struct_elt_type): Clean up error emission.
2651 * parse.c (parse_field_expression): Use RETURN_MASK_ERROR. Move
2652 name-copying lower. Document exception behavior.
2653 * completer.c (expression_completer): Catch exceptions from
2654 parse_field_expression.
2655
2656 2010-08-18 Pedro Alves <pedro@codesourcery.com>
2657
2658 PR corefile/8210
2659
2660 * linux-thread-db.c (add_thread_db_info): Skip glibc/BZ5983
2661 workaround on core files.
2662 (try_thread_db_load_1): Don't try enabling thread event reporting
2663 on core files.
2664 (thread_db_load): Allow thread_db on core files.
2665 (attach_thread): Don't check thread signals on core files, nor try
2666 really attaching to the thread, nor enabling thread event event
2667 reporting.
2668 (thread_db_detach): Don't try disabing thread event reporting or
2669 removing thread event breakpoints when debugging a core file.
2670 (find_new_threads_callback): Don't try enabling thread event
2671 reporting on core files.
2672 (thread_db_find_new_threads_2): Don't look for a stopped lwp when
2673 debugging a core file.
2674 (thread_db_find_new_threads): Don't update thread
2675 cores (processors) when debugging a core (dump).
2676
2677 2010-08-18 Pedro Alves <pedro@codesourcery.com>
2678
2679 PR corefile/8210
2680
2681 * corelow.c (add_to_thread_list): Don't use
2682 gdbarch_core_reg_section_encodes_pid. Use bfd_core_file_pid.
2683 (get_core_register_section): Don't use
2684 gdbarch_core_reg_section_encodes_pid.
2685
2686 * gdbarch.sh (core_reg_section_encodes_pid): Delete.
2687 * gdbarch.h, gdbarch.c: Regenerate.
2688 * amd64-sol2-tdep.c (amd64_sol2_init_abi): Don't set
2689 gdbarch_core_reg_section_encodes_pid.
2690 * i386-sol2-tdep.c (i386_sol2_init_abi): Ditto.
2691 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Ditto.
2692 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Ditto.
2693
2694 2010-08-18 Yao Qi <yao@codesourcery.com>
2695
2696 * MAINTAINERS : Add myself under Write After Approval.
2697
2698 2010-08-17 Tom Tromey <tromey@redhat.com>
2699
2700 * NEWS: Mention template parameter support.
2701
2702 2010-08-17 Pedro Alves <pedro@codesourcery.com>
2703
2704 PR breakpoints/11371
2705
2706 * breakpoint.c (decref_bp_location): Assert the reference count is
2707 sane.
2708
2709 2010-08-17 Pedro Alves <pedro@codesourcery.com>
2710
2711 PR breakpoints/11371
2712
2713 * breakpoint.c (breakpoint_init_inferior): Decrement the
2714 location's reference count instead of deleting right away.
2715 (bpstat_free): Decrement the location's reference count. Make
2716 static.
2717 (bpstat_copy): Increment the location's reference count.
2718 (bpstat_find_breakpoint): Adjust.
2719 (bpstat_num): Adjust.
2720 (print_it_typical): Adjust. Use the breakpoint pointer in the
2721 bpstat instead of the location's owner.
2722 (bpstat_alloc): Remove const qualifier from the 'bl' parameter.
2723 Adjust to record the location's owner in the bpstat.
2724 (watchpoint_check): Use the breakpoint pointer in the bpstat
2725 instead of the location's owner.
2726 (bpstat_check_breakpoint_conditions): Don't handle
2727 bp_watchpoint_scope here. Use the breakpoint pointer in the
2728 bpstat instead of the location's owner.
2729 (bpstat_stop_status): Defer inferior function calls to after
2730 building the bpstat list. Handle bp_watchpoint_scope here. Use
2731 the breakpoint pointer in the bpstat instead of the location's
2732 owner.
2733 (bpstat_what): Use the breakpoint pointer in the bpstat instead of
2734 the location's owner.
2735 (free_bp_location): Don't walk bpstats clearing locations.
2736 (incref_bp_location): New.
2737 (decref_bp_location): New.
2738 (breakpoint_auto_delete): Use the breakpoint pointer in the bpstat
2739 instead of the location's owner.
2740 (update_global_location_list): Clear the location's owner, and
2741 decrement the location's reference count instead of deleting it
2742 right away.
2743 (breakpoint_retire_moribund): Decrement the location's reference
2744 count instead of deleting it right away.
2745 (bpstat_remove_bp_location): Delete.
2746 (bpstat_remove_breakpoint): New.
2747 (bpstat_remove_bp_location_callback): Delete.
2748 (bpstat_remove_breakpoint_callback): New.
2749 (delete_breakpoint): Iterate over all threads' stop_bpstat's
2750 clearing references to the breakpoint that is being deleted.
2751
2752 * breakpoint.h (struct bp_location) <refc>: New field.
2753 <owner>: Update comments.
2754 (bpstat_free): Delete declaration.
2755 (struct bpstats): Change the type of the breakpoint_at field to
2756 struct breakpoint point, from struct bp_location pointer. Add new
2757 field bp_location_at.
2758
2759 2010-08-16 Tom Tromey <tromey@redhat.com>
2760
2761 * NEWS: Fix typo.
2762
2763 2010-08-16 Tom Tromey <tromey@redhat.com>
2764
2765 * NEWS: Mention watch -location.
2766
2767 2010-08-16 Jan Kratochvil <jan.kratochvil@redhat.com>
2768
2769 * breakpoint.c (update_watchpoint): Add source empty line. Prefer
2770 EXP_STRING_REPARSE to EXP_STRING.
2771 (watch_command_1): Set also EXP_STRING_REPARSE.
2772 (delete_breakpoint): Free also EXP_STRING_REPARSE.
2773 * breakpoint.h (struct breakpoint): New field exp_string_reparse.
2774 Update comment for exp_string.
2775
2776 2010-08-16 Tom Tromey <tromey@redhat.com>
2777
2778 * value.c (release_value): Clear 'next' pointer.
2779 * breakpoint.c (watch_command_1): Add 'just_location' argument.
2780 (watch_command_wrapper): Update.
2781 (watch_maybe_just_location): New function.
2782 (watch_command): Update.
2783 (rwatch_command_wrapper): Update.
2784 (rwatch_command): Update.
2785 (awatch_command_wrapper): Update.
2786 (awatch_command): Update.
2787 (check_for_argument): New function.
2788 (_initialize_breakpoint): Update help text.
2789
2790 2010-08-14 Ulrich Weigand <uweigand@de.ibm.com>
2791
2792 * arm-tdep.c (arm_push_dummy_call): Handle pointers to
2793 typedef'ed function types correctly.
2794
2795 2010-08-13 Tom Tromey <tromey@redhat.com>
2796
2797 * python/python-internal.h (gdbpy_get_hook_function): Don't
2798 declare.
2799
2800 2010-08-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2801
2802 * cli/cli-logging.c (logging_overwrite, logging_redirect): Make them
2803 static.
2804
2805 2010-08-13 Ken Werner <ken.werner@de.ibm.com>
2806
2807 * python/python.c (gdbpy_solib_name): Remove the const qualifier of
2808 the format strings to be compatible with Python 2.4.
2809
2810 2010-08-13 Vladimir Prus <vladimir@codesourcery.com>
2811
2812 Easier and more stubborn MI memory read commands.
2813
2814 * mi/mi-cmds.c (mi_cmds): Register data-read-memory-bytes
2815 and data-write-memory-bytes.
2816 * mi/mi-cmds.h (mi_cmd_data_read_memory_bytes)
2817 (mi_cmd_data_write_memory_bytes): New.
2818 * mi/mi-main.c (mi_cmd_data_read_memory): Use regular target_read.
2819 (mi_cmd_data_read_memory_bytes, mi_cmd_data_write_memory_bytes):
2820 New.
2821 (mi_cmd_list_features): Add "data-read-memory-bytes" feature.
2822 * target.c (target_read_until_error): Remove.
2823 (read_whatever_is_readable, free_memory_read_result_vector)
2824 (read_memory_robust): New.
2825 * target.h (target_read_until_error): Remove.
2826 (struct memory_read_result, free_memory_read_result_vector)
2827 (read_memory_robust): New.
2828
2829 2010-08-13 Hui Zhu <teawater@gmail.com>
2830
2831 * dwarf2read.c (load_partial_comp_unit): Initialize free_cu_cleanup.
2832 (read_comp_unit): Initialize back_to.
2833
2834 2010-08-12 Daniel Jacobowitz <dan@codesourcery.com>
2835 Pedro Alves <pedro@codesourcery.com>
2836
2837 * dwarf2read.c: Include "c-lang.h" and "valprint.h".
2838 (struct dwarf2_per_objfile) <reading_partial_symbols>: New field.
2839 (struct partial_die_info) <has_template_arguments>: New field.
2840 <num_attrs>: Change type to unsigned char.
2841 <building_fullname>: New field.
2842 (dwarf2_build_psymtabs_hard): Set reading_partial_symbols. Only
2843 allocate a CU if we don't have one already. Add a cleanup for the
2844 CU.
2845 (partial_die_full_name): Handle template arguments not in
2846 DW_AT_name.
2847 (dwarf2_psymtab_to_symtab): Clear reading_partial_symbols.
2848 (load_full_comp_unit): Only allocate a CU if we don't have one
2849 already.
2850 (do_ui_file_peek_last): New.
2851 (dwarf2_compute_name): Handle template parameters not in
2852 DW_AT_name.
2853 (read_comp_unit): Read and free abbrevs if not read yet.
2854 (load_partial_dies): Handle template arguments not in DW_AT_name.
2855 (find_partial_die): If we have a CU, but no a partial dies yet,
2856 also read in the CU.
2857 (dwarf2_const_value_attr): New, abstracted out from
2858 dwarf2_const_value.
2859 (dwarf2_const_value, dwarf2_const_value_data): Adjust to use
2860 dwarf2_const_value_attr.
2861 (determine_prefix): Detect and break loops created by RCVT's debug
2862 info.
2863 (maybe_queue_comp_unit): Bail out early if reading partial
2864 symbols.
2865 (follow_die_offset): Load full CU if we have no dies.
2866 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Make public.
2867 * dwarf2loc.h (dwarf2_evaluate_loc_desc): Declare.
2868
2869 2010-08-11 Tom Tromey <tromey@redhat.com>
2870 Phil Muldoon <pmuldoon@redhat.com>
2871
2872 * python/python.c (gdbpy_run_events): New function.
2873 (gdbpy_post_event): Likewise.
2874 (gdbpy_initialize_events): Likewise.
2875 (_initialize_python): Call gdbpy_initialize_events.
2876
2877 2010-08-11 Ken Werner <ken.werner@de.ibm.com>
2878
2879 * gdb/valarith.c (vector_binop): New function.
2880 (scalar_binop): Likewise.
2881 (value_binop): Call scalar_binop or vector_binop depending on the types.
2882 * gdb/eval.c (ptrmath_type_p): Return 0 in case of TYPE_VECTOR.
2883 (evaluate_subexp_with_coercion): Add vector check to not convert vectors
2884 to pointers.
2885 * gdb/value.c (coerce_array): Add vector check to not coerce vectors.
2886
2887 2010-08-11 Brad Roberts <braddr@puremagic.com>
2888
2889 * d-lang.c (extract_identifiers): Handle multiple digits.
2890
2891 2010-08-11 Jan Kratochvil <jan.kratochvil@redhat.com>
2892
2893 Code cleanup.
2894 * dummy-frame.c (dummy_frame_unwinder): Remove its static qualifier.
2895 Rename to dummy_frame_unwind.
2896 (dummy_frame_unwind): Remove.
2897 * dummy-frame.h (dummy_frame_unwind): Reference directly the struct.
2898 * frame-unwind.c (frame_unwind_init): Use address of
2899 dummy_frame_unwind and inline_frame_unwind.
2900 * frame.c (create_sentinel_frame): Use address of
2901 sentinel_frame_unwind.
2902 * inline-frame.c (inline_frame_unwinder): Rename to
2903 inline_frame_unwind.
2904 (inline_frame_unwind): Remove.
2905 * inline-frame.h (inline_frame_unwind): Reference directly the struct.
2906 * sentinel-frame.c (sentinel_frame_unwinder): Rename to
2907 sentinel_frame_unwind.
2908 (sentinel_frame_unwind): Remove.
2909 * sentinel-frame.h (sentinel_frame_unwind): Reference directly the
2910 struct.
2911
2912 2010-08-11 Jan Kratochvil <jan.kratochvil@redhat.com>
2913
2914 Code cleanup.
2915 * frame-unwind.c (frame_unwind_find_by_frame): Remove the return type
2916 and returned value. New comment from frame-unwind.h.
2917 * frame-unwind.h (frame_unwind_find_by_frame): Remove the return type.
2918 Extend the comment.
2919 * frame.c (get_frame_id, frame_unwind_register_value)
2920 (create_new_frame, get_prev_frame_1, frame_unwinder_is)
2921 (get_frame_type, frame_unwind_arch): Do not use the return value of
2922 frame_unwind_find_by_frame.
2923
2924 2010-08-11 Phil Muldoon <pmuldoon@redhat.com>
2925 Thiago Jung Bauermann <bauerman@br.ibm.com>
2926 Tom Tromey <tromey@redhat.com>
2927
2928 * python/python.c (gdbpy_solib_address): New function.
2929 (gdbpy_decode_line): Likewise.
2930
2931 2010-08-10 Tom Tromey <tromey@redhat.com>
2932
2933 Revert gdb-add-index addition:
2934 * Makefile.in (install-only): Don't install gdb-add-index.
2935 * gdb-add-index.sh: Remove.
2936
2937 2010-08-09 Kevin Buettner <kevinb@redhat.com>
2938
2939 * remote-sim.c (gdbsim_xfer_inferior_memory): Replace
2940 `target_has_execution' check with `to_has_memory' check.
2941 (gdbsim_has_all_memory, gdbsim_has_memory): New functions.
2942 (init_gdbsym_ops): Initialize relevant fields of `gdbsim_ops'
2943 with `gdbsim_has_all_memory' and `gdbsim_has_memory'.
2944
2945 2010-08-09 Kevin Buettner <kevinb@redhat.com>
2946
2947 * remote-sim.c (program_loaded, gdbsim_desc, remote_sim_ptid)
2948 (resume_siggnal, resume_step): Move these static globals...
2949 (struct sim_inferior_data): ...into this new struct.
2950 (sim_inferior_data_key, next_pid, sim_argv, gdbsim_is_open):
2951 New static globals.
2952 (gdb_callback, callbacks_initialized): Move these globals to
2953 a point earlier in the file.
2954 (check_for_duplicate_sim_descriptor, get_sim_inferior_data)
2955 (get_sim_inferior_data_by_ptid, sim_inferior_data_cleanup)
2956 (gdbsim_close_inferior, gdbsim_resume_inferior)
2957 (gdbsim_stop_inferior): New functions.
2958 (SIM_INSTANCE_NOT_NEEDED, SIM_INSTANCE_NEEDED, INITIAL_PID):
2959 New constants.
2960 (gdbsim_fetch_register, gdbsim_store_register, gdbsim_load)
2961 (gdbsim_create_inferior, gdbsim_open, gdbsim_close, gdbsim_resume)
2962 (gdbsim_stop, gdbsim_cntrl_c, gdbsim_wait)
2963 (gdbsim_xfer_inferior_memory, gdbsim_files_info)
2964 (gdbsim_mourn_inferior, simulator_command, gdbsim_thread_alive,
2965 (gdbsim_pid_to_str): Invoke `get_sim_inferior_data' to set
2966 new local variable `sim_data' in each of these functions. Use
2967 `sim_data' to reference former globals `program_loaded',
2968 `gdbsim_desc', `remote_sim_ptid', `resume_siggnal', and
2969 `resume_step'.
2970 (gdbsim_open): Remove local variable `argv'. Put results of call
2971 to `gdb_buildargv' in `sim_argv' rather than in `argv'. Don't
2972 make a cleanup for it. Free it though when a sim instance cannot
2973 be obtained.
2974 (gdbsim_close): Free sim_argv and null it out as appropriate.
2975 Close sim instances in all inferiors.
2976 (gdbsim_cntrl_c): Stop all inferiors.
2977 (gdbsim_wait):
2978 (_initialize_remote_sim): Initialize `sim_inferior_data_key'.
2979
2980 2010-08-09 Sami Wagiaalla <swagiaal@redhat.com>
2981
2982 * dwarf2read.c (new_symbol): Add symbol to variable list at end of
2983 function after symbol construction is complete.
2984 Do the same for template symbol addition to template_symbols list.
2985
2986 2010-08-09 Sami Wagiaalla <swagiaal@redhat.com>
2987
2988 * symtab.c (symbol_get_demangled_name): Remove assertion and
2989 return NULL when language_specific.cplus_specific is not initialized.
2990 * stabsread.c (define_symbol): Set the name before calling
2991 cp_scan_for_anonymous_namespaces.
2992
2993 2010-08-09 Sami Wagiaalla <swagiaal@redhat.com>
2994
2995 * symtab.h: Renamed SYMBOL_INIT_LANGUAGE_SPECIFIC to
2996 SYMBOL_SET_LANGUAGE.
2997 (symbol_init_language_specific): Renamed to symbol_set_language.
2998 * symtab.c (symbol_init_language_specific): Removed redundant check
2999 for language_cplus.
3000 Renamed to symbol_set_language.
3001 * stabsread.c (define_symbol): Updated.
3002 (read_enum_type): Updated
3003 * psymtab.c (add_psymbol_to_bcache): Updated.
3004 * minsyms.c (install_minimal_symbols): Updated.
3005 * coffread.c (process_coff_symbol): SYMBOL_SET_LANGUAGE instead of
3006 SYMBOL_LANGUAGE to set the language.
3007 * minsyms.c (prim_record_minimal_symbol_full): Ditto.
3008 * mdebugread.c (new_symbol): Ditto.
3009 * cp-namespace.c (check_one_possible_namespace_symbol): Ditto.
3010 * dwarf2read.c (new_symbol_full): Ditto.
3011 * jv-lang.c (add_class_symbol): Ditto.
3012
3013 2010-08-07 Jan Kratochvil <jan.kratochvil@redhat.com>
3014
3015 * defs.h (make_cleanup_restore_uinteger, make_cleanup_restore_ui_file)
3016 (make_cleanup_restore_page_info)
3017 (set_batch_flag_and_make_cleanup_restore_page_info): New declarations.
3018 * gdbcmd.h (execute_command_to_string): New declaration.
3019 * python/python.c (struct restore_ui_file_closure, restore_ui_file)
3020 (make_cleanup_restore_ui_file): Move to utils.c
3021 (execute_gdb_command) <to_string>: Move ...
3022 * top.c (execute_command_to_string): ... here. Call
3023 set_batch_flag_and_make_cleanup_restore_page_info.
3024 * utils.c (make_cleanup_restore_integer): New source file blank line.
3025 (make_cleanup_restore_uinteger): New.
3026 (struct restore_ui_file_closure, do_restore_ui_file)
3027 (make_cleanup_restore_ui_file): Move here from python/python.c.
3028 (init_page_info) <batch_flag>
3029 (do_restore_page_info_cleanup, make_cleanup_restore_page_info)
3030 (set_batch_flag_and_make_cleanup_restore_page_info): New.
3031
3032 2010-08-06 Maciej W. Rozycki <macro@codesourcery.com>
3033
3034 * thread.c (add_thread_silent): Use null_ptid instead of
3035 minus_one_ptid while getting rid of stale inferior_ptid.
3036
3037 2010-08-06 Corinna Vinschen <vinschen@redhat.com>
3038
3039 * dwarf2-frame.c (struct dwarf2_cie): Add ptr_size member.
3040 Throughout, call read_encoded_value with ptr_size rather than addr_size.
3041 (decode_frame_entry_1): Remove redundant setting of
3042 addr_size. Call gdbarch_dwarf2_addr_size rather than gdbarch_ptr_bit
3043 to determine addr_size in Dwarf versions < 4. Set ptr_size dependent
3044 on examined frame section. Add comment to explain why.
3045 * gdbarch.sh (dwarf2_addr_size): Define as variable. Add lengthy
3046 comment to explain usage.
3047 * gdbarch.c: Regenerate.
3048 * gdbarch.h: Regenerate.
3049
3050 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set dwarf2_addr_size to 4.
3051
3052 2010-08-06 Jan Kratochvil <jan.kratochvil@redhat.com>
3053
3054 Code cleanup.
3055 * varobj.c (varobj_create): Move variables fi, old_fi and block to
3056 a more inner block.
3057
3058 2010-08-05 Pedro Alves <pedro@codesourcery.com>
3059
3060 * configure.tgt (alpha*-*-linux*, am33_2.0*-*-linux*, frv-*-*)
3061 (hppa*-*-linux*, ia64-*-linux*, m32r*-*-linux*, m68*-*-linux*)
3062 (microblaze*-linux-*, mips*-*-linux*, sh*-*-linux*)
3063 (sparc-*-linux*, sparc64-*-linux*, xtensa*-*-linux*): Add
3064 linux-tdep.o to gdb_target_obs.
3065
3066 2010-08-05 Marc Khouzam <marc.khouzam@ericsson.com>
3067
3068 * mi/mi-main.c (mi_cmd_remove_inferior): Properly access first
3069 argument.
3070
3071 2010-08-05 Hui Zhu <teawater@gmail.com>
3072
3073 * mips-linux-tdep.c(regset.h): New include.
3074 (mips_supply_gregset_wrapper, mips_fill_gregset_wrapper,
3075 mips_supply_fpregset_wrapper, mips_fill_fpregset_wrapper,
3076 mips64_supply_gregset_wrapper, mips64_fill_gregset_wrapper,
3077 mips64_supply_fpregset_wrapper, mips64_fill_fpregset_wrapper,
3078 mips_linux_regset_from_core_section): New functions.
3079 (fetch_core_registers, regset_core_fns): Deleted.
3080 (mips_linux_init_abi): Add mips_linux_regset_from_core_section.
3081 Deleted regset_core_fns.
3082 * mips-tdep.c(mips_gdbarch_init): Initialize tdep->gregset,
3083 tdep->gregset64, tdep->fpregset and tdep->fpregset64.
3084 * mips-tdep.h(gdbarch_tdep): Add gregset, gregset64, fpregset
3085 and fpregset64.
3086
3087 2010-08-04 Pedro Alves <pedro@codesourcery.com>
3088
3089 * s390-tdep.c: Include linux-tdep.h.
3090 (s390_gdbarch_init): Call linux_init_abi.
3091
3092 2010-08-04 Pedro Alves <pedro@codesourcery.com>
3093
3094 * corelow.c (core_pid_to_str): Default to using normal_pid_to_str
3095 instead of printing "Thread" here.
3096 * linux-tdep.c: Include inferior.h.
3097 (linux_core_pid_to_str): New.
3098 (linux_init_abi): New.
3099 * linux-tdep.h (linux_init_abi): Declare.
3100 * alpha-linux-tdep.c: Include linux-tdep.h.
3101 (alpha_linux_init_abi): Call linux_init_abi.
3102 * amd64-linux-tdep.c (amd64_linux_init_abi): Call linux_init_abi.
3103 * arm-linux-tdep.c (arm_linux_init_abi): Call linux_init_abi.
3104 * frv-linux-tdep.c: Include linux-tdep.h
3105 (frv_linux_init_abi): Call linux_init_abi.
3106 * hppa-linux-tdep.c: Include linux-tdep.h
3107 (hppa_linux_init_abi): Call linux_init_abi.
3108 * i386-linux-tdep.c (i386_linux_init_abi): Call linux_init_abi.
3109 * ia64-linux-tdep.c: Include linux-tdep.h.
3110 (ia64_linux_init_abi): Call linux_init_abi.
3111 * m32r-linux-tdep.c: Include linux-tdep.h.
3112 (m32r_linux_init_abi): Call linux_init_abi.
3113 * m68klinux-tdep.c: Include linux-tdep.h.
3114 (m68k_linux_init_abi): Call linux_init_abi.
3115 * microblaze-linux-tdep.c: Include linux-tdep.h.
3116 (microblaze_linux_init_abi): Call linux_init_abi.
3117 * mips-linux-tdep.c: Include linux-tdep.h.
3118 (mips_linux_init_abi): Call linux_init_abi.
3119 * mn10300-linux-tdep.c: Include linux-tdep.h.
3120 (am33_linux_init_osabi): Call linux_init_abi. Rename the
3121 'gdbinfo' parameter to 'info'.
3122 * ppc-linux-tdep.c: Include linux-tdep.h.
3123 (ppc_linux_init_abi): Call linux_init_abi.
3124 * sh-linux-tdep.c: Include linux-tdep.h.
3125 (sh_linux_init_abi): Call linux_init_abi.
3126 * sparc-linux-tdep.c: Include linux-tdep.h.
3127 (sparc32_linux_init_abi): Call linux_init_abi.
3128 * sparc64-linux-tdep.c: Include linux-tdep.h.
3129 (sparc64_linux_init_abi): Call linux_init_abi.
3130 * xtensa-linux-tdep.c: Include linux-tdep.h.
3131 (xtensa_linux_init_abi): Call linux_init_abi.
3132 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): New.
3133 (i386_cygwin_init_abi): Install it as gdbarch_core_pid_to_str
3134 callback.
3135
3136 2010-08-03 Doug Evans <dje@google.com>
3137
3138 * breakpoint.c (bpdisp_text): Constify bpdisps.
3139 * solib-svr4.c (solib_break_names): Constify.
3140 (bkpt_names, main_name_list): Constify.
3141 (match_main): Constify soname arg.
3142 (bfd_lookup_symbol): Remove unnecessary forward decl.
3143 Constify symname arg.
3144 (enable_break): Constify bkpt_namep.
3145 * symtab.c (search_symbols): Constify types, types2, types3, types4.
3146 (symtab_symbol_info): Constify classnames.
3147
3148 2010-08-03 Phil Muldoon <pmuldoon@redhat.com>
3149
3150 * NEWS: Document Python value inferior function calls.
3151
3152 2010-08-02 Doug Evans <dje@google.com>
3153
3154 * dwarf2read.c (dwarf_attr_name): Add DW_AT_GNU_odr_signature.
3155
3156 2010-07-31 Paul Pluzhnikov <ppluzhnikov@google.com>
3157
3158 * linux-thread-db.c (libthread_db_debug): New variable.
3159 (thread_db_find_new_threads_silently): Control verbosity with it.
3160 (try_thread_db_load_1, try_thread_db_load): Likewise.
3161 (find_new_threads_once): Likewise.
3162 (_initialize_thread_db): Set/show it.
3163
3164 2010-07-31 Jan Kratochvil <jan.kratochvil@redhat.com>
3165
3166 * common/signals.c (signals): Move the content to signals.def.
3167 Include it. Remove the INDENT comments.
3168
3169 2010-07-30 Tom Tromey <tromey@redhat.com>
3170
3171 * Makefile.in (install-only): Install gdb-add-index.
3172 * gdb-add-index.sh: New file.
3173
3174 2010-07-31 Renquan Cheng <crq@gcc.gnu.org>
3175
3176 * MAINTAINERS: Add myself for write after approval privileges.
3177
3178 2010-07-30 Jan Kratochvil <jan.kratochvil@redhat.com>
3179
3180 * symfile.c (addr_section_name): New function.
3181 (addrs_section_compar): Use it.
3182 (addr_info_make_relative): Use it. Move variable sect_name into a more
3183 inner block. Make ".dynbss" and ".sdynbss" checks more strict.
3184
3185 2010-07-30 Tom Tromey <tromey@redhat.com>
3186
3187 * configure: Rebuild.
3188 * configure.ac: Add missing case for Python 2.7.
3189
3190 2010-07-29 DJ Delorie <dj@redhat.com>
3191
3192 * rx-tdep.c (rx_analyze_prologue): Don't require branches to have
3193 conditions.
3194
3195 2010-07-29 Pedro Alves <pedro@codesourcery.com>
3196
3197 * PROBLEMS: Remove mention of all problems.
3198
3199 2010-07-28 Pedro Alves <pedro@codesourcery.com>
3200
3201 PR build/11848
3202 * configure.ac: Check for wresize.
3203 * configure, config.in: Regenerate.
3204 * tui/tui-win.c (make_visible_with_new_height): Wrap wresize call
3205 with HAVE_WRESIZE.
3206
3207 2010-07-28 Tom Tromey <tromey@redhat.com>
3208
3209 PR python/11060:
3210 * python/py-type.c (typy_legacy_template_argument): New function,
3211 extracted from typy_template_argument.
3212 (typy_template_argument): Use TYPE_TEMPLATE_ARGUMENT. Return a
3213 value when needed.
3214
3215 2010-07-28 Oleg Nesterov <oleg@redhat.com>
3216
3217 * remote.c (readchar): Call pop_target in case of SERIAL_ERROR.
3218
3219 2010-07-27 Tom Tromey <tromey@redhat.com>
3220
3221 * dwarf2read.c (dwarf2_const_value_data): Never sign extend.
3222
3223 2010-07-28 Daniel Jacobowitz <dan@codesourcery.com>
3224
3225 * dwarf2read.c (read_subroutine_type): Improve THIS detection,
3226 handling DW_AT_object_pointer, and workaround GCC PR 43053.
3227
3228 2010-07-28 Tom Tromey <tromey@redhat.com>
3229
3230 * Makefile.in (HFILES_NO_SRCDIR): Remove link-warning.h.
3231
3232 2010-07-28 Joel Brobecker <brobecker@adacore.com>
3233
3234 * remote.c (remote_download_tracepoint): Add missing gettext markup.
3235 * tracepoint.c (parse_static_tracepoint_marker_definition): Likewise.
3236
3237 2010-07-28 Joel Brobecker <brobecker@adacore.com>
3238
3239 * breakpoint.c (breakpoint_re_set_one): Move call to set_language
3240 down, just before the block that parse the breakpoint addr_string.
3241
3242 2010-07-28 Tom Tromey <tromey@redhat.com>
3243
3244 PR c++/9946:
3245 * symfile.c (reread_symbols): Clear template_symbols.
3246 * symtab.h (struct symbol) <is_cplus_template_function>: New
3247 field.
3248 (SYMBOL_IS_CPLUS_TEMPLATE_FUNCTION): New macro.
3249 (struct template_symbol): New.
3250 * symtab.c (lookup_symbol_aux_local): Use
3251 cp_lookup_symbol_imports_or_template.
3252 * objfiles.h (struct objfile) <template_symbols>: New field.
3253 * objfiles.c (relocate_one_symbol): New function.
3254 (objfile_relocate1): Use it. Relocate isolated symbols.
3255 * gdbtypes.h (struct cplus_struct_type) <n_template_arguments,
3256 template_arguments>: New fields.
3257 (TYPE_N_TEMPLATE_ARGUMENTS): New macro.
3258 (TYPE_TEMPLATE_ARGUMENTS): Likewise.
3259 (TYPE_TEMPLATE_ARGUMENT): Likewise.
3260 (lookup_typename): Update.
3261 * gdbtypes.c (lookup_typename): Constify "block" argument.
3262 * dwarf2read.c: Include vec.h.
3263 (symbolp): New typedef.
3264 (read_func_scope): Read template arguments. Allocate a
3265 template_symbol when needed.
3266 (read_structure_type): Read template arguments.
3267 (new_symbol_full): New function, from new_symbol. Handle
3268 DW_TAG_template_type_param and DW_TAG_template_value_param.
3269 (new_symbol): Rewrite as wrapper.
3270 * cp-support.h (cp_lookup_symbol_imports_or_template): Declare.
3271 * cp-namespace.c: Include language.h.
3272 (search_symbol_list): New function.
3273 (cp_lookup_symbol_imports_or_template): Likewise.
3274
3275 2010-07-28 Balazs Kezes <rlblaster@gmail.com>
3276
3277 * tui/tui-win.c (make_visible_with_new_height): Resize and move
3278 the command window to the new size and position.
3279
3280 2010-07-28 Balazs Kezes <rlblaster@gmail.com>
3281
3282 * tui/tui-win.c (tui_resize_all): Update the locator's origin's
3283 coordinates.
3284
3285 2010-07-28 Balazs Kezes <rlblaster@gmail.com>
3286
3287 * tui/tui-io.c (tui_handle_resize_during_io): Call tui_resize_all
3288 after a detecting a resize.
3289 * tui/tui-win.c (tui_resize_all): Remove tui_set_win_resized_to
3290 call.
3291
3292 2010-07-28 Pedro Alves <pedro@codesourcery.com>
3293
3294 * configure.ac: Check for resize_term.
3295 * configure, config.in: Regenerate.
3296
3297 2010-07-27 Joel Brobecker <brobecker@adacore.com>
3298
3299 * MAINTAINERS (Write After Approval): Reorder a couple of entries.
3300
3301 2010-07-27 Daniel Jacobowitz <dan@codesourcery.com>
3302
3303 * dwarf2read.c (read_string): Rename to ...
3304 (read_direct_string): ... this.
3305 (skip_one_die, read_attribute_value, dwarf_decode_line_header)
3306 (dwarf_decode_lines, dwarf_decode_macros): Adjust.
3307
3308 2010-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3309
3310 * linux-nat.c (linux_nat_lp_status_is_event): New function.
3311 (count_events_callback, select_event_lwp_callback)
3312 (cancel_breakpoints_callback, linux_nat_wait_1): Use it.
3313
3314 2010-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3315
3316 * ia64-linux-nat.c (ia64_linux_status_is_event): New function.
3317 (_initialize_ia64_linux_nat): Install it.
3318 * linux-nat.c (sigtrap_is_event, linux_nat_status_is_event)
3319 (linux_nat_set_status_is_event): New.
3320 (stop_wait_callback, count_events_callback, select_event_lwp_callback)
3321 cancel_breakpoints_callback, linux_nat_filter_event)
3322 (linux_nat_wait_1): Use linux_nat_status_is_event.
3323 * linux-nat.h (linux_nat_set_status_is_event): New prototype.
3324
3325 2010-07-27 Tom Tromey <tromey@redhat.com>
3326
3327 * NEWS: Mention labels, .gdb_index.
3328
3329 2010-07-28 CHENG Renquan <rqcheng@smu.edu.sg>
3330
3331 * cli/cli-cmds.c (disassemble_command): Add support of disassemble
3332 "start,+length" form of arguments.
3333 * NEWS: Add "Changed commands" (disassemble) section for "Changes
3334 since GDB 7.1"; and merge two separated paragraphs of disassemble
3335 description in "Changes in GDB 7.0".
3336
3337 2010-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3338
3339 * top.c (input_from_terminal_p): Return 0 on BATCH_FLAG.
3340 * utils.c (defaulted_query): Do not explicitly check for BATCH_FLAG.
3341 (fputs_maybe_filtered): Do not do filtering also on
3342 ! INPUT_FROM_TERMINAL_P.
3343
3344 2010-07-27 Joel Brobecker <brobecker@adacore.com>
3345
3346 * dwarf2read.c (dw2_find_pc_sect_symtab): Remove trailing newline
3347 in warning message.
3348
3349 2010-07-27 Phil Muldoon <pmuldoon@redhat.com>
3350
3351 * python/py-value.c (valpy_call): New Function.
3352
3353 2010-07-27 Ken Werner <ken.werner@de.ibm.com>
3354
3355 * dwarf2read.c (dwarf2_read_index): Initialize the types_list and
3356 types_list_elements variables.
3357
3358 2010-07-26 Tom Tromey <tromey@redhat.com>
3359
3360 * dwarf2loc.c (locexpr_describe_location_piece): Also recognize
3361 TLS with DW_OP_const4u or DW_OP_const8u.
3362
3363 2010-07-26 Thiago Jung Bauermann <bauerman@br.ibm.com>
3364
3365 * ppc-linux-nat.c (store_vsx_register): Use PTRACE_GETVSXREGS to get
3366 VSX registers contents.
3367
3368 2010-07-26 Jerome Guitton <guitton@adacore.com>
3369
3370 * dwarf2read.c (add_partial_symbol): Do not add a global variable if
3371 its adress is null. Add comment to explain why.
3372 (new_symbol): Ditto.
3373
3374 2010-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
3375
3376 * linux-nat.c (linux_nat_do_thread_registers): Convert STOP_SIGNAL to
3377 the host signal first.
3378
3379 2010-07-23 Tom Tromey <tromey@redhat.com>
3380
3381 * dwarf2read.c (struct dwarf2_per_objfile) <n_type_comp_units,
3382 type_comp_units>: New fields.
3383 (dw2_get_cu): New function.
3384 (create_cus_from_index): Remove unused argument.
3385 (create_signatured_type_hash_from_index): New function.
3386 (create_addrmap_from_index): Update.
3387 (dwarf2_read_index): Handle version 2.
3388 (dw2_find_last_source_symtab, dw2_forget_cached_source_info)
3389 (dw2_lookup_symtab, dw2_do_expand_symtabs_matching)
3390 (dw2_print_stats, dw2_expand_all_symtabs)
3391 (dw2_expand_symtabs_with_filename, dw2_find_symbol_file)
3392 (dw2_expand_symtabs_matching, dw2_map_symbol_filenames): Update.
3393 (dwarf2_initialize_objfile): Call create_debug_types_hash_table.
3394 (allocate_signatured_type_hash_table): New function.
3395 (add_signatured_type_cu_to_list): Likewise.
3396 (create_debug_types_hash_table): Use them. Set type_comp_units.
3397 (read_signatured_type): Ensure section data is available.
3398 (add_address_entry): Don't record empty ranges.
3399 (struct signatured_type_index_data): New.
3400 (write_one_signatured_type): New function.
3401 (write_psymtabs_to_index): Write type CUs.
3402 (save_gdb_index_command): Update comment.
3403 (process_type_comp_unit): Move inititalization of
3404 from_debug_types...
3405 (create_debug_types_hash_table): ... here.
3406
3407 2010-07-23 Jan Kratochvil <jan.kratochvil@redhat.com>
3408
3409 * gdb_gcore.sh (tmpfile): Remove the variable, its initialization,
3410 cleanup and generating of gdb script to it.
3411 (gdb): Use redirection from /dev/null. Use --nx. Turn off pagination
3412 and terminal size. Convert $tmpfile to a series of -ex-es.
3413
3414 2010-07-23 Keith Seitz <keiths@redhat.com>
3415
3416 * symtab.c (basic_lookup_transparent_type): Call pre-expand
3417 hook for STATIC_BLOCK types, too.
3418
3419 2010-07-23 Keith Seitz <keiths@redhat.com>
3420
3421 * dwarf2read.c: Remove unused typedef dwarf2_cu_per_cu_data_ptr
3422 and vector definition.
3423
3424 2010-07-23 Jan Kratochvil <jan.kratochvil@redhat.com>
3425
3426 * linux-nat.c (cancel_breakpoint): Remove unused forward declaration.
3427
3428 2010-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
3429
3430 * dwarf2read.c: Include completer.h.
3431 (save_gdb_index_command): Use matching usage command name.
3432 (_initialize_dwarf2_read): New variable c, initialize it by add_cmd.
3433 Set filename_completer for it.
3434
3435 2010-07-22 Tom Tromey <tromey@redhat.com>
3436
3437 * dwarf2read.c (create_debug_types_hash_table): Set objfile on
3438 type signature's per-CU data.
3439
3440 2010-07-22 Pedro Alves <pedro@codesourcery.com>
3441
3442 * NEWS: Mention target reported shared libraries support by
3443 default.
3444
3445 2010-07-21 Pedro Alves <pedro@codesourcery.com>
3446
3447 PR symtab/11827
3448
3449 Revert:
3450 2010-05-21 Pierre Muller <muller@ics.u-strasbg.fr>
3451 * dwarf2read.c (process_die): Also allow DW_TAG_const_type
3452 and DW_TAG_volatile_type.
3453 (new_symbol): Likewise.
3454
3455 2010-07-21 Sami Wagiaalla <swagiaal@redhat.com>
3456
3457 * eval.c (evaluate_subexp_standard): Disabled evaluation of C++
3458 function symbols before overload resolution.
3459
3460 2010-07-21 Pedro Alves <pedro@codesourcery.com>
3461
3462 * breakpoint.c (bptype_string): New, abstracted out from
3463 print_one_breakpoint_location.
3464 (print_one_breakpoint_location): Adjust.
3465 (breakpoint_1): Adjust the type column width dynamically.
3466
3467 2010-07-20 Jan Kratochvil <jan.kratochvil@redhat.com>
3468
3469 * symfile.c (find_separate_debug_file_by_debuglink): Remove
3470 a gdb_assert call, new comment.
3471
3472 2010-07-20 Jan Kratochvil <jan.kratochvil@redhat.com>
3473
3474 * linux-nat.c (linux_handle_extended_wait): Handle case when
3475 event == PTRACE_EVENT_CLONE && stopping && WSTOPSIG (status) != SIGSTOP.
3476
3477 2010-07-20 Jan Kratochvil <jan.kratochvil@redhat.com>
3478
3479 Code cleanup.
3480 * linux-nat.c (linux_nat_wait_1): Reset STATUS after calling
3481 linux_nat_wait_1. Use always LP->STATUS afterwards.
3482
3483 2010-07-20 Hui Zhu <teawater@gmail.com>
3484
3485 * inf-ptrace.c (inf_ptrace_create_inferior): Initialize back_to.
3486 (inf_ptrace_attach): Ditto.
3487
3488 2010-07-19 Jan Kratochvil <jan.kratochvil@redhat.com>
3489
3490 Make core files the process_stratum.
3491 * corefile.c (core_target): New variable.
3492 (core_file_command): Remove variable t, use core_target.
3493 * corelow.c (core_ops): Make it static.
3494 (init_core_ops): Change to process_stratum. Initialize CORE_TARGET.
3495 * defs.h (make_cleanup_unpush_target): New prototype.
3496 * gdbarch.h: Regenerate.
3497 * gdbarch.sh (core_pid_to_str): Remove core_stratum from its comment.
3498 * gdbcore.h (core_target): New declaration.
3499 * inf-ptrace.c (inf_ptrace_create_inferior, inf_ptrace_attach): New
3500 variables ops_already_pushed and back_to. Use push_target,
3501 make_cleanup_unpush_target and discard_cleanups calls.
3502 * record.c (record_open): Replace core_stratum by a core_bfd check.
3503 * target.c (target_is_pushed): New function.
3504 (find_core_target): Remove.
3505 * target.h (enum strata) <core_stratum>: Remove.
3506 (target_is_pushed): New declaration.
3507 (find_core_target): Remove declaration.
3508 * tracepoint.c (init_tfile_ops) <to_stratum>: Remove comment.
3509 * utils.c (do_unpush_target, make_cleanup_unpush_target): New functions.
3510
3511 2010-07-19 Hui Zhu <teawater@gmail.com>
3512
3513 * breakpoint.c (single_step_breakpoints_inserted): New
3514 function.
3515 * breakpoint.h (single_step_breakpoints_inserted): Extern.
3516 * infrun.c (maybe_software_singlestep): Add check code.
3517 * record.c (record_resume): Add code for software single step.
3518 (record_wait): Ditto.
3519
3520 2010-07-18 Jan Kratochvil <jan.kratochvil@redhat.com>
3521
3522 * linux-nat.c (linux_handle_extended_wait): Move variable new_lp into
3523 a more inner block. Remove its unused declaration initializer.
3524
3525 2010-07-16 Thiago Jung Bauermann <bauerman@br.ibm.com>
3526
3527 * NEWS: Mention support for the new ptrace interface and hardware
3528 accelerated watchpoint conditions on powerpc-linux.
3529
3530 2010-07-16 Ozkan Sezer <sezeroz@gmail.com>
3531
3532 * target.c (debug_to_insert_breakpoint): Instead of casting to unsigned
3533 long and %ld, use core_addr_to_string() and %s to print CORE_ADDR vars
3534 and host_address_to_string() and %s for pointers.
3535 (debug_to_remove_breakpoint): Likewise.
3536 (debug_to_region_ok_for_hw_watchpoint): Likewise.
3537 (debug_to_can_accel_watchpoint_condition): Likewise.
3538 (debug_to_stopped_data_address): Likewise.
3539 (debug_to_watchpoint_addr_within_range): Likewise.
3540 (debug_to_insert_hw_breakpoint): Likewise.
3541 (debug_to_remove_hw_breakpoint): Likewise.
3542 (debug_to_insert_watchpoint): Likewise.
3543 (debug_to_remove_watchpoint): Likewise.
3544
3545 2010-07-16 Sami Wagiaalla <swagiaal@redhat.com>
3546
3547 * symtab.h (symbol_set_demangled_name): Now takes an optional objfile*
3548 argument.
3549 (cplus_specific): New struct.
3550 * symtab.c (symbol_set_demangled_name): Updated.
3551 Use cplus_specific for cplus symbols.
3552 (symbol_get_demangled_name): Retrive the name from the cplus_specific
3553 struct for cplus symbols.
3554 (symbol_init_language_specific): Set cplus_specific for cplus symbols.
3555 (symbol_set_names): Pass objfile to symbol_set_demangled_name.
3556 * symtab.c (symbol_init_cplus_specific): New function.
3557
3558 2010-07-16 Sami Wagiaalla <swagiaal@redhat.com>
3559
3560 * symtab.h (symbol_set_demangled_name): New function.
3561 (symbol_get_demangled_name): New function.
3562 * symtab.c (symbol_set_demangled_name): New function.
3563 (symbol_get_demangled_name): New function.
3564 (symbol_init_language_specific): Use demangled_name setter and getter.
3565 (symbol_set_names): Ditto.
3566 (symbol_natural_name): Ditto.
3567 (symbol_demangled_name): Ditto.
3568 * dwarf2read.c (new_symbol): Ditto.
3569
3570 2010-07-16 Sami Wagiaalla <swagiaal@redhat.com>
3571
3572 * symtab.h: Renamed cplus_specific to mangled_lang.
3573 * symtab.c (symbol_init_language_specific): Updated.
3574 (symbol_set_names): Updated.
3575 (symbol_natural_name): Updated.
3576 (symbol_demangled_name): Updated.
3577 * ada-lang.c (ada_decode_symbol): Updated.
3578 * dwarf2read.c (new_symbol): Updated.
3579
3580 2010-07-14 Ken Werner <ken.werner@de.ibm.com>
3581
3582 * valops.c (value_assign): Do not call to value_coerce_to_target.
3583 (value_must_coerce_to_target): Return 0 in case of TYPE_VECTOR.
3584
3585 2010-07-14 Ken Werner <ken.werner@de.ibm.com>
3586
3587 * MAINTAINERS: Add myself for write after approval privileges.
3588
3589 2010-07-13 Emmanuel Thomé <Emmanuel.Thome@gmail.com>
3590
3591 * c-valprint.c (c_val_print): Add embedded_offset to address in
3592 call to val_print_array_elements.
3593
3594 2010-07-13 Tom Tromey <tromey@redhat.com>
3595
3596 * dwarf2read.c (dwarf2_read_index): Correctly set 'total_size'.
3597
3598 2010-07-13 Tom Tromey <tromey@redhat.com>
3599
3600 * dwarf2read.c (dwarf2_per_cu_text_offset): Fix reference to
3601 objfile.
3602
3603 2010-07-13 Tom Tromey <tromey@redhat.com>
3604
3605 * symfile.c (set_initial_language): Update.
3606 (deduce_language_from_filename): Argument type now const.
3607 * symtab.h (find_main_filename): Update.
3608 (deduce_language_from_filename): Update.
3609 * symtab.c (find_main_filename): Make result const.
3610 * dwarf2read.c (dw2_find_symbol_file): Change return type.
3611 * psymtab.c (find_symbol_file_from_partial): Change return type.
3612 * symfile.h (struct quick_symbol_functions) <find_symbol_file>:
3613 Make result const.
3614
3615 2010-07-13 Tom Tromey <tromey@redhat.com>
3616
3617 * breakpoint.c (save_cmdlist): No longer static.
3618 * gdbcmd.h (save_cmdlist): Declare.
3619 * symfile.c (symbol_file_add_with_addrs_or_offsets): Set
3620 OBJF_READNOW on objfile if readnow_symbol_files.
3621 * elfread.c (elf_symfile_read): Use dwarf2_initialize_objfile.
3622 (elf_sym_fns_gdb_index): New global.
3623 * dwarf2read.c: Include exceptions.h.
3624 (offset_type): New.
3625 (struct mapped_index): New.
3626 (dwarf2_per_cu_data_ptr): New typedef.
3627 (struct dwarf2_per_objfile) <using_index, index_table, gdb_index>:
3628 New fields.
3629 (GDB_INDEX_SECTION): New define.
3630 (struct dwarf2_per_cu_quick_data): New.
3631 (struct dwarf2_per_cu_data) <objfile>: New field.
3632 <psymtab>: Removed.
3633 <v>: New field.
3634 (byte_swap): New function.
3635 (MAYBE_SWAP): New macro.
3636 (INDEX_SUFFIX): New macro.
3637 (dw2_do_instantiate_symtab): New function.
3638 (dw2_instantiate_symtab): Likewise.
3639 (create_cus_from_index): Likewise.
3640 (create_addrmap_from_index): Likewise.
3641 (mapped_index_string_hash): Likewise.
3642 (find_slot_in_mapped_hash): Likewise.
3643 (dwarf2_read_index): Likewise.
3644 (dw2_setup): Likewise.
3645 (dw2_require_line_header): Likewise.
3646 (dw2_require_full_path): Likewise.
3647 (dw2_find_last_source_symtab): Likewise.
3648 (dw2_forget_cached_source_info): Likewise.
3649 (dw2_lookup_symtab): Likewise.
3650 (dw2_lookup_symbol): Likewise.
3651 (dw2_do_expand_symtabs_matching): Likewise.
3652 (dw2_pre_expand_symtabs_matching): Likewise.
3653 (dw2_print_stats): Likewise.
3654 (dw2_dump): Likewise.
3655 (dw2_relocate): Likewise.
3656 (dw2_expand_symtabs_for_function): Likewise.
3657 (dw2_expand_all_symtabs): Likewise.
3658 (dw2_expand_symtabs_with_filename): Likewise.
3659 (dw2_find_symbol_file): Likewise.
3660 (dw2_map_ada_symtabs): Likewise.
3661 (dw2_expand_symtabs_matching): Likewise.
3662 (dw2_find_pc_sect_symtab): Likewise.
3663 (dw2_map_symbol_names): Likewise.
3664 (dw2_map_symbol_filenames): Likewise.
3665 (dw2_has_symbols): Likewise.
3666 (dwarf2_gdb_index_functions): New global.
3667 (dwarf2_initialize_objfile): New function.
3668 (process_psymtab_comp_unit): Update.
3669 (add_partial_subprogram): Likewise.
3670 (dwarf2_psymtab_to_symtab): Likewise.
3671 (psymtab_to_symtab_1): Use dw2_do_instantiate_symtab.
3672 (process_full_comp_unit): Update.
3673 (find_file_and_directory): New function.
3674 (read_file_scope): Use find_file_and_directory.
3675 (dwarf2_per_cu_objfile): Update.
3676 (dwarf2_per_cu_addr_size): Update.
3677 (dwarf2_per_cu_offset_size): Update.
3678 (dwarf2_free_objfile): Free the index, if needed.
3679 (dwarf2_per_objfile_free): Unmap the index, if needed.
3680 (struct strtab_entry): New.
3681 (hash_strtab_entry): New function.
3682 (eq_strtab_entry): Likewise.
3683 (create_strtab): Likewise.
3684 (add_string): Likewise.
3685 (struct symtab_index_entry): New.
3686 (struct mapped_symtab): New.
3687 (hash_symtab_entry): New function.
3688 (eq_symtab_entry): Likewise.
3689 (delete_symtab_entry): Likewise.
3690 (create_index_table): Likewise.
3691 (create_mapped_symtab): Likewise.
3692 (cleanup_mapped_symtab): Likewise.
3693 (find_slot): Likewise.
3694 (hash_expand): Likewise.
3695 (add_index_entry): Likewise.
3696 (add_indices_to_cpool): Likewise.
3697 (write_hash_table): Likewise.
3698 (add_address_entry): Likewise.
3699 (write_psymbols): Likewise.
3700 (write_obstack): Likewise.
3701 (unlink_if_set): Likewise.
3702 (write_psymtabs_to_index): Likewise.
3703 (save_gdb_index_command): Likewise.
3704 (_initialize_dwarf2_read): Install "save gdb-index"
3705 command.
3706 (create_all_comp_units): Initialize 'objfile' field of CU.
3707 (dwarf2_locate_sections): Check for .gdb_index.
3708 * psymtab.h (dwarf2_gdb_index_functions): Declare.
3709 * symfile.h (dwarf2_initialize_objfile): Declare.
3710
3711 2010-07-13 Tom Tromey <tromey@redhat.com>
3712
3713 * symtab.c (lookup_symbol_aux_symtabs): Call pre-expand hook.
3714 (basic_lookup_transparent_type): Likewise.
3715 * symfile.h (struct quick_symbol_functions)
3716 <pre_expand_symtabs_matching>: New field.
3717 * psymtab.c (pre_expand_symtabs_matching_psymtabs): New function.
3718 (psym_functions): Update.
3719
3720 2010-07-13 Tom Tromey <tromey@redhat.com>
3721
3722 PR breakpoints/8357:
3723 * symtab.h (domain_enum_tag) <LABEL_DOMAIN>: Update comment.
3724 * linespec.c (decode_line_1): Update comment. Call decode_label.
3725 (decode_label): New function.
3726 (symbol_found): Handle LOC_LABEL.
3727 * dwarf2read.c (new_symbol) <DW_TAG_label>: Set symbol's type and
3728 domain. Call add_symbol_to_list.
3729
3730 2010-07-13 Tom Tromey <tromey@redhat.com>
3731
3732 * dwarf2loc.h (dwarf2_per_cu_text_offset): Declare.
3733 * dwarf2loc.c (find_location_expression): Use
3734 dwarf2_per_cu_text_offset.
3735 (dwarf2_evaluate_loc_desc): Likewise.
3736 (dwarf2_loc_desc_needs_frame): Likewise.
3737 (compile_dwarf_to_ax): Likewise.
3738 (loclist_describe_location): Likewise.
3739 * dwarf2read.c (dwarf2_per_cu_text_offset): New function.
3740 (dwarf2_per_cu_objfile): Update comment.
3741
3742 2010-07-12 Jan Kratochvil <jan.kratochvil@redhat.com>
3743
3744 * dwarf2read.c (read_subrange_type): Call read_subrange_type.
3745 * p-lang.c (pascal_printstr): Likewise.
3746
3747 2010-07-09 Tom Tromey <tromey@redhat.com>
3748
3749 * python/py-prettyprint.c (gdbpy_get_display_hint): Don't use
3750 'hint' if it is NULL.
3751
3752 2010-07-09 Hui Zhu <teawater@gmail.com>
3753
3754 * source.c (print_source_lines_base): Add check for noprint.
3755
3756 2010-07-08 Joel Brobecker <brobecker@adacore.com>
3757
3758 * python/python-config.py: Resync with Python 2.7 version of this
3759 script.
3760
3761 2010-07-08 Joel Brobecker <brobecker@adacore.com>
3762
3763 * NEWS: Fix typo in section name (s/GDB 7.1/GDB 7.2).
3764
3765 2010-07-07 Joel Brobecker <brobecker@adacore.com>
3766
3767 * NEWS: Create a new section for the next release branch.
3768 Rename the section of the current branch, now that it has
3769 been cut.
3770
3771 2010-07-07 Joel Brobecker <brobecker@adacore.com>
3772
3773 GDB 7.2 branch created (branch timestamp: 2010-07-07 17:00 UTC)
3774 * version.in: Bump version to 7.2.50.20100707-cvs.
3775
3776 2010-07-07 Tom Tromey <tromey@redhat.com>
3777
3778 * dwarf2read.c (dwarf2_const_value) <DW_form_addr>: Create a
3779 LOC_COMPUTED symbol.
3780 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Set new field.
3781 (dwarf2_loc_desc_needs_frame): Likewise.
3782 (compile_dwarf_to_ax) <DW_OP_addr>: Use offset.
3783 * dwarf2expr.h (struct dwarf_expr_context) <offset>: New field.
3784 * dwarf2expr.c (execute_stack_op) <DW_OP_addr>: Use offset.
3785 * dwarf2-frame.c (execute_stack_op): Set 'offset' field. Add
3786 'offset' argument.
3787 (struct dwarf2_frame_cache) <text_offset>: New field.
3788 (dwarf2_frame_cache): Set new field.
3789 (dwarf2_frame_prev_register): Update.
3790 (dwarf2_frame_sniffer): Update.
3791 (dwarf2_frame_base_sniffer): Update.
3792 (dwarf2_frame_find_fde): Add 'out_offset' argument.
3793
3794 2010-07-07 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
3795 Thiago Jung Bauermann <bauerman@br.ibm.com>
3796
3797 Support for hw accelerated condition watchpoints in booke powerpc.
3798
3799 * breakpoint.c (fetch_watchpoint_value): Rename to fetch_subexp_value
3800 and move to eval.c. Change callers.
3801 (insert_bp_location): Pass watchpoint condition in
3802 target_insert_watchpoint.
3803 (remove_breakpoint_1) Pass watchpoint condition in
3804 target_remove_watchpoint.
3805 (watchpoint_locations_match): Call
3806 target_can_accel_watchpoint_condition.
3807 * eval.c: Include wrapper.h.
3808 (fetch_subexp_value): Moved from breakpoint.c.
3809 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint):
3810 Formatting fix.
3811 (can_use_watchpoint_cond_accel): New function.
3812 (calculate_dvc): Likewise.
3813 (num_memory_accesses): Likewise.
3814 (check_condition): Likewise.
3815 (ppc_linux_can_accel_watchpoint_condition): Likewise
3816 (ppc_linux_insert_watchpoint): Call can_use_watchpoint_cond_accel,
3817 check_condition and calculate_dvc.
3818 (ppc_linux_remove_watchpoint): Likewise.
3819 (_initialize_ppc_linux_nat): Set to_can_accel_watchpoint_condition to
3820 ppc_linux_can_accel_watchpoint_condition
3821 * target.c (debug_to_insert_watchpoint): Add argument for watchpoint
3822 condition.
3823 (debug_to_remove_watchpoint): Likewise.
3824 (debug_to_can_accel_watchpoint_condition): New function.
3825 (update_current_target): Set to_can_accel_watchpoint_condition.
3826 (setup_target_debug): Set to_can_accel_watchpoint_condition.
3827 * target.h: Add opaque declaration for struct expression.
3828 (struct target_ops) <to_insert_watchpoint>,
3829 <to_remove_watchpoint>: Add new arguments to pass the watchpoint
3830 <to_can_accel_watchpoint_condition>: New member.
3831 condition. Update all callers and implementations.
3832 (target_can_accel_watchpoint_condition): New macro.
3833 * value.c (free_value_chain): New function.
3834 * value.h (fetch_subexp_value): New prototype.
3835 (free_value_chain): Likewise.
3836
3837 2010-07-07 Ulrich Weigand <uweigand@de.ibm.com>
3838
3839 * linux-nat.c (linux_nat_do_thread_registers): Use section size
3840 from gdbarch_core_regset_sections also for .reg if present.
3841
3842 * amd64-linux-tdep.c (amd64_linux_regset_sections): Fix incorrect
3843 section size for .reg.
3844 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections): Likewise.
3845 (ppc_linux_vmx_regset_sections): Likewise.
3846 (ppc_linux_fp_regset_sections): Likewise.
3847 (ppc64_linux_vsx_regset_sections): New variable.
3848 (ppc64_linux_vmx_regset_sections): Likewise.
3849 (ppc64_linux_fp_regset_sections): Likewise.
3850 (ppc_linux_init_abi): Install core_regset_section lists appropriate
3851 for current word size.
3852
3853 2010-07-06 Joel Brobecker <brobecker@adacore.com>
3854
3855 * server.c (myresume): Make static.
3856
3857 2010-07-06 Tom Tromey <tromey@redhat.com>
3858
3859 * configure, config.in: Rebuild.
3860 * configure.ac (HAVE_LIBPYTHON2_7): New define.
3861 * python/python-internal.h: Handle HAVE_LIBPYTHON2_7.
3862
3863 2010-07-06 Andreas Schwab <schwab@linux-m68k.org>
3864
3865 * breakpoint.c (_initialize_breakpoint): Add "cl" as alias for
3866 "clear".
3867
3868 2010-07-06 Ken Werner <ken.werner@de.ibm.com>
3869
3870 * gdbtypes.h (floatformats_ieee_half): Add declaration.
3871 * gdbtypes.c (floatformats_ieee_half): New variable.
3872 * doublest.c (floatformat_from_length): Set format to
3873 gdbarch_half_format if length matches.
3874 * gdbarch.sh (half_bit): New architecture method.
3875 (half_format): Likewise.
3876 * gdbarch.h: Regenerate.
3877 * gdbarch.c: Likewise.
3878
3879 2010-07-05 Jan Kratochvil <jan.kratochvil@redhat.com>
3880 Joel Brobecker <brobecker@adacore.com>
3881
3882 Fix re-run of PIE executable, PR shlibs/11776.
3883 * solib-svr4.c (svr4_relocate_main_executable) <symfile_objfile>: Remove
3884 the part of pre-set SYMFILE_OBJFILE->SECTION_OFFSETS.
3885
3886 2010-07-05 Jan Kratochvil <jan.kratochvil@redhat.com>
3887 Joel Brobecker <brobecker@adacore.com>
3888
3889 * auxv.c (memory_xfer_auxv): Update attach comment.
3890 * solib-svr4.c (svr4_special_symbol_handling): Remove the call to
3891 svr4_relocate_main_executable.
3892 (svr4_solib_create_inferior_hook): Make the call to
3893 svr4_relocate_main_executable unconditional.
3894
3895 2010-07-05 Jan Kratochvil <jan.kratochvil@redhat.com>
3896 Joel Brobecker <brobecker@adacore.com>
3897
3898 * auxv.c (ld_so_xfer_auxv): Do not error on failed read of data_address.
3899
3900 2010-07-05 Jan Kratochvil <jan.kratochvil@redhat.com>
3901 Joel Brobecker <brobecker@adacore.com>
3902
3903 Fix attaching to PIEs prelinked on the disk after the process was
3904 started.
3905 * solib-svr4.c (svr4_exec_displacement): New variable arch_size.
3906 Verify it against bfd_get_arch_size. Try to match arbitrary
3907 displacement for the phdrs comparison.
3908
3909 2010-07-02 Tom Tromey <tromey@redhat.com>
3910
3911 PR exp/11780:
3912 * libunwind-frame.c (libunwind_frame_prev_register): Don't set
3913 value as optimized-out.
3914
3915 2010-07-02 Ulrich Weigand <uweigand@de.ibm.com>
3916 Thiago Jung Bauermann <bauerman@br.ibm.com>
3917
3918 * breakpoint.c (can_use_hardware_watchpoint): Answer "what does this
3919 represent?" question in comment. Change comment to a proper sentence.
3920
3921 2010-07-02 Ken Werner <ken.werner@de.ibm.com>
3922
3923 * c-valprint.c (c_val_print): Fix printing of character vectors.
3924
3925 2010-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3926
3927 * spu-tdep.c (spu_catch_start): Adjust the caller of changed
3928 create_breakpoint prototype.
3929
3930 2010-07-01 Pedro Alves <pedro@codesourcery.com>
3931
3932 * breakpoint.c (BREAK_ARGS_HELP, _initialize_breakpoint): Clarify
3933 usefulness suggestion of multiple breakpoints at same location.
3934
3935 2010-07-01 Pedro Alves <pedro@codesourcery.com>
3936
3937 * breakpoint.c (BREAK_ARGS_HELP): Add missing `the'.
3938
3939 2010-07-01 Pedro Alves <pedro@codesourcery.com>
3940
3941 * dwarf2loc.c (locexpr_tracepoint_var_ref)
3942 (loclist_tracepoint_var_ref): Handle optimized out values.
3943
3944 2010-07-01 Pedro Alves <pedro@codesourcery.com>
3945
3946 * breakpoint.c (update_watchpoint, _initialize_breakpoint): Remove
3947 unnecessary space in string.
3948 * filesystem.c (_initialize_filesystem): Ditto.
3949 * frame.c (_initialize_frame): Ditto.
3950 * infcmd.c (step_once): Ditto.
3951 * infrun.c (_initialize_infrun): Ditto.
3952 * linux-nat.c (linux_child_follow_fork): Ditto.
3953 * maint.c (maintenance_deprecate): Ditto.
3954 * memattr.c (_initialize_mem): Ditto.
3955 * mips-tdep.c (_initialize_mips_tdep): Ditto.
3956 * monitor.c (monitor_open): Ditto.
3957 * procfs.c (procfs_xfer_memory): Ditto.
3958 * reverse.c (bookmarks_info): Ditto.
3959 * sh64-tdep.c (sh64_show_media_regs, sh64_show_compact_regs): Ditto.
3960 * stack.c (_initialize_stack): Ditto.
3961 * tracepoint.c (_initialize_tracepoint): Ditto.
3962 * xtensa-tdep.c (xtensa_supply_gregset,
3963 xtensa_regset_from_core_section): Ditto.
3964
3965 2010-07-01 Tom Tromey <tromey@redhat.com>
3966
3967 * value.h (struct lval_funcs) <check_any_valid>: Rename from
3968 check_all_valid.
3969 * value.c (value_entirely_optimized_out): Invert result. Update
3970 for new function name.
3971
3972 2010-07-01 Pedro Alves <pedro@codesourcery.com>
3973
3974 Static tracepoints support.
3975
3976 * NEWS: Mention new support for static tracepoints.
3977 (New packets): Mention qTfSTM, qTsSTM, qTSTMat and
3978 qXfer:statictrace:read.
3979 (New features in the GDB remote stub, GDBserver): Mention static
3980 tracepoints support using an UST based backend.
3981 (New commands): Mention "info static-tracepoint-markers" and
3982 "strace".
3983 * breakpoint.c (is_marker_spec): New.
3984 (is_tracepoint): Handle static tracepoints.
3985 (validate_commands_for_breakpoint): Static tracepoints can't do
3986 while-stepping.
3987 (static_tracepoints_here): New.
3988 (bpstat_what): Handle static tracepoints.
3989 (print_one_breakpoint_location, allocate_bp_location, mention):
3990 Ditto.
3991 (create_breakpoint_sal): Ditto.
3992 (decode_static_tracepoint_spec): New.
3993 (create_breakpoint): Replace `hardwareflag', and `traceflag' with
3994 `type_wanted'. Adjust. Handle static tracepoint marker
3995 locations.
3996 (break_command_1): Adjust.
3997 (update_static_tracepoint): New.
3998 (update_breakpoint_locations): Handle static tracepoints.
3999 (breakpoint_re_set_one): Handle static tracepoint marker
4000 locations.
4001 (disable_command, enable_command): Handle static tracepoints.
4002 (trace_command, ftrace_command): Adjust.
4003 (strace_command): New.
4004 (create_tracepoint_from_upload): Adjust.
4005 (save_breakpoints): Handle static tracepoints.
4006 (_initialize_breakpoint): Install the "strace" command.
4007 * breakpoint.h (enum bptype): New bp_static_tracepoint type.
4008 (struct breakpoint): New fields static_trace_marker_id and
4009 static_trace_marker_id_idx.
4010 (breakpoints_here_p): Declare.
4011 (create_breakpoint): Adjust.
4012 (static_tracepoints_here): Declare.
4013 * remote.c (struct remote_state) <static_tracepoints>: New field.
4014 (PACKET_qXfer_statictrace_read, PACKET_StaticTracepoints): New.
4015 (remote_static_tracepoint_marker_at): New.
4016 (remote_static_tracepoint_markers_by_strid): New.
4017 (remote_static_tracepoint_feature): New.
4018 (remote_disconnected_tracing_feature): Handle "StaticTracepoints".
4019 (remote_xfer_partial): Handle TARGET_OBJECT_STATIC_TRACE_DATA.
4020 (remote_supports_static_tracepoints): New.
4021 (remote_download_tracepoint): Download static tracepoints.
4022 (init_remote_ops): Install remote_static_tracepoint_marker_at and
4023 remote_static_tracepoint_markers_by_strid.
4024 (_initialize_remote): Install set|show remote static-tracepoints,
4025 and set|show remote read-sdata-object commands.
4026 * target.c (update_current_target): Inherit and default
4027 to_static_tracepoint_marker_at, and
4028 to_static_tracepoint_markers_by_strid.
4029 * target.h (static_tracepoint_marker): Forward declare.
4030 (enum target_object): New object TARGET_OBJECT_STATIC_TRACE_DATA.
4031 (static_tracepoint_marker_p): New typedef.
4032 (DEF_VEC_P(static_tracepoint_marker_p)): New VEC type.
4033 (struct target_ops): New fields to_static_tracepoint_marker_at and
4034 to_static_tracepoint_markers_by_strid.
4035 (target_static_tracepoint_marker_at)
4036 (target_static_tracepoint_markers_by_strid): New.
4037 * tracepoint.c: Include source.h.
4038 (validate_actionline): Handle $_sdata.
4039 (struct collection_list): New field strace_data.
4040 (add_static_trace_data): New.
4041 (clear_collection_list): Clear strace_data.
4042 (stringify_collection_list): Account for a possible static trace
4043 data collection.
4044 (encode_actions_1): Encode an $_sdata collection.
4045 (parse_tracepoint_definition): Handle static tracepoints.
4046 (parse_static_tracepoint_marker_definition): New.
4047 (release_static_tracepoint_marker): New.
4048 (print_one_static_tracepoint_marker): New.
4049 (info_static_tracepoint_markers_command): New.
4050 (sdata_make_value): New.
4051 (_initialize_tracepoint): Create the $_sdata convenience variable.
4052 Add the "info static-tracepoint-markers" command.
4053 Mention $_sdata in the "collect" command's help output.
4054 * tracepoint.h (struct static_tracepoint_marker): New.
4055 (parse_static_tracepoint_marker_definition)
4056 (release_static_tracepoint_marker): Declare.
4057 * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust.
4058 * python/py-breakpoint.c (bppy_new): Adjust.
4059
4060 2010-06-30 Joel Brobecker <brobecker@adacore.com>
4061
4062 * python/python-internal.h (_XOPEN_SOURCE): Undefine before
4063 including Python.h.
4064
4065 2010-06-29 Doug Evans <dje@google.com>
4066
4067 PR gdb/11702
4068 * dwarf2read.c (dwarf2_add_field): Only create a symbol if
4069 DW_AT_external is present.
4070
4071 PR gdb/11702
4072 * NEWS: Add entry.
4073 * dwarf2read.c (dwarf2_add_field): If DW_AT_const_value is present,
4074 create a symbol for the field and record the value.
4075 (new_symbol): Handle DW_TAG_member.
4076 * gdbtypes.c (field_is_static): Remove FIXME.
4077 * symtab.c (search_symbols): When searching for VARIABLES_DOMAIN,
4078 only ignore LOC_CONST symbols that are enums.
4079
4080 * dwarf2read.c: Remove trailing whitespace.
4081
4082 Delete FIELD_LOC_KIND_DWARF_BLOCK, unused.
4083 * gdbtypes.h (enum field_loc_kind): Delete FIELD_LOC_KIND_DWARF_BLOCK.
4084 (struct main_type, field loc): Delete dwarf_block.
4085 (FIELD_DWARF_BLOCK): Delete.
4086 (SET_FIELD_DWARF_BLOCK): Delete.
4087 (TYPE_FIELD_DWARF_BLOCK): Delete.
4088 * gdb-gdb.py (StructMainTypePrettyPrinter.struct_field_location_img):
4089 Update.
4090
4091 2010-06-29 Hui Zhu <teawater@gmail.com>
4092
4093 * record.c (set_record_pic_cmdlist,
4094 show_record_pic_cmdlist): New variables.
4095 (set_record_pic_command,
4096 show_record_pic_command): New functions.
4097 (record_pic_function, record_pic_line, record_pic_enum,
4098 set_record_pic_type, record_pic_hide_nofunction,
4099 record_pic_hide_nosource, record_pic_hide_same): New variables.
4100 (record_pic_fputs): New function.
4101 (function_list, node_list, edge_list): New struct.
4102 (function_list, node_list, edge_list): New variables.
4103 (record_pic_cleanups, record_pic_node,
4104 record_pic_edge, cmd_record_pic): New functions.
4105 (_initialize_record): Add new commands for record pic.
4106
4107 2010-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4108
4109 * dwarf2read.c (read_structure_type) <fi.typedef_field_list>: Call
4110 ALLOCATE_CPLUS_STRUCT_TYPE.
4111
4112 2010-06-28 Phil Muldoon <pmuldoon@redhat.com>
4113 Tom Tromey <tromey@redhat.com>
4114 Thiago Jung Bauermann <bauerman@br.ibm.com>
4115
4116 * value.c (pack_unsigned_long): New function.
4117 (value_from_ulongest): New function.
4118 * value.h (value_from_ulongest): Declare.
4119 * python/python.c (_initialize_python): Call
4120 gdbpy_initialize_thread and gdbpy_initialize_inferior.
4121 * python/python-internal.h: Define thread_object.
4122 (gdbpy_inferiors, gdbpy_selected_thread)
4123 (frame_info_to_frame_object, create_thread_object)
4124 (find_thread_object, find_inferior_object)
4125 (gdbpy_initialize_thread, gdbpy_initialize_inferiors)
4126 (gdbpy_is_value_object, get_addr_from_python): Declare.
4127 * python/py-value.c (builtin_type_upylong): Define.
4128 (convert_value_from_python): Add logic for ulongest.
4129 (gdbpy_is_value_object): New function.
4130 * python/py-utils.c (get_addr_from_python): New function.
4131 * python/py-frame.c (frame_info_to_frame_object): Return a PyObject.
4132 (gdbpy_selected_frame): Use PyObject over frame_info.
4133 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-inferior and
4134 py-infthread.
4135 (SUBDIR_PYTHON_SRCS): Likewise.
4136 (py-inferior.o): New Rule.
4137 (py-infthread.o): New Rule.
4138 * python/py-inferior.c: New File.
4139 * python/py-infthread.c: New File.
4140
4141 2010-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4142
4143 * c-typeprint.c (c_type_print_base): For no fields check include also
4144 TYPE_TYPEDEF_FIELD_COUNT. Print new typedefs section.
4145 * dwarf2read.c (struct typedef_field_list)
4146 (struct field_info) <typedef_field_list, typedef_field_list_count>: New.
4147 (dwarf2_add_typedef): New.
4148 (read_structure_type): Call dwarf2_add_typedef for DW_TAG_typedef.
4149 Copy also FI.TYPEDEF_FIELD_LIST.
4150 * gdbtypes.h (struct typedef_field)
4151 (struct cplus_struct_type) <typedef_field, typedef_field_count>
4152 (TYPE_TYPEDEF_FIELD_ARRAY, TYPE_TYPEDEF_FIELD, TYPE_TYPEDEF_FIELD_NAME)
4153 (TYPE_TYPEDEF_FIELD_TYPE, TYPE_TYPEDEF_FIELD_COUNT): New.
4154
4155 2010-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4156
4157 * cp-namespace.c (cp_lookup_nested_type): New variable
4158 concatenated_name. Turn the current return condition into a reverse
4159 one. Call also lookup_static_symbol_aux on the constructed qualified
4160 name.
4161 * symtab.c (lookup_symbol_aux): Move variable objfile and searching in
4162 other files into a called ...
4163 (lookup_static_symbol_aux): ... new function here.
4164 * symtab.h (lookup_static_symbol_aux): New prototype.
4165 * valops.c (value_maybe_namespace_elt): Call also
4166 lookup_static_symbol_aux if we failed otherwise.
4167
4168 2010-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4169
4170 Fix PR c++/11703 and PR gdb/1448.
4171 * c-exp.y (yylex) <last_was_coloncolon && first_was_coloncolon>: Add
4172 FIRST_ITER check.
4173
4174 2010-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4175
4176 Fix modification of cplus_struct_default.
4177 * dwarf2read.c (dwarf2_add_member_fn) <no DW_AT_vtable_elem_location>:
4178 Call ALLOCATE_CPLUS_STRUCT_TYPE.
4179 * gdbtypes.c (cplus_struct_default): New empty initializer, comment it.
4180
4181 2010-06-28 Joel Brobecker <brobecker@adacore.com>
4182
4183 * NEWS: Add entry announcing the python directory.
4184
4185 2010-06-28 Tom Tromey <tromey@redhat.com>
4186
4187 * dwarf2read.c (read_structure_type): Allocate null cleanup later.
4188
4189 2010-06-28 Doug Evans <dje@google.com>
4190
4191 * breakpoint.c (breakpoint_sals_to_pc): Delete arg address, unused.
4192 All callers updated.
4193
4194 2010-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4195
4196 * cp-valprint.c (cp_print_value_fields) <recurse == 0>: Call
4197 obstack_begin after each obstack_free.
4198
4199 2010-06-27 Doug Evans <dje@google.com>
4200
4201 * value.c (value_static_field): Use `switch' instead of `if'.
4202 Assert-fail if passed invalid TYPE_FIELD_LOC_KIND.
4203
4204 * valops.c (search_struct_field): Fix typo in error message.
4205
4206 2010-06-26 Ulrich Weigand <uweigand@de.ibm.com>
4207
4208 * dwarf2expr.c (execute_stack_op): Place preprocessor
4209 directives at the start of the source line.
4210
4211 2010-06-25 Paul Hilfinger <hilfinger@adacore.com>
4212
4213 * defs.h (make_command_stats_cleanup): Declare.
4214 (set_display_time): Declare.
4215 (set_display_space): Declare.
4216 * event-top.c (command_handler): Use make_command_stats_cleanup.
4217 * main.c (display_time, display_space): Move definitions to utils.c.
4218 (captured_main): Use make_command_stats_cleanup to get start-up
4219 statistics.
4220 Use set_display_time and set_display_space for processing OPT_STATISTICS
4221 case.
4222 * maint.c (maintenance_time_display): Use set_display_time.
4223 (maintenance_space_display): Use set_display_space.
4224 * top.c (execute_command): Remove obsolete 'maint time' code.
4225 (command_loop): Use make_command_stats_cleanup.
4226 * utils.c (struct cmd_stats): Structure for storing initial time
4227 and space usage.
4228 (display_time, display_space): Move definitions here from utils.c.
4229 (set_display_time): New function.
4230 (set_display_space): New function.
4231 (make_command_stats_cleanup): New function.
4232 (report_command_stats): New auxiliary function for
4233 make_command_stats_cleanup.
4234
4235 2010-06-25 Ulrich Weigand <uweigand@de.ibm.com>
4236
4237 * solib-spu.c (append_ocl_sos): Fix xsnprintf statement for
4238 hosts where CORE_ADDR is long long.
4239
4240 2010-06-25 Tom Tromey <tromey@redhat.com>
4241
4242 PR python/10808:
4243 * python/python.c (execute_gdb_command): Add keywords. Accept
4244 "to_string" argument.
4245 (struct restore_ui_file_closure): New.
4246 (restore_ui_file): New function.
4247 (make_cleanup_restore_ui_file): Likewise.
4248 (GdbMethods) <execute>: Update.
4249
4250 2010-06-25 Ulrich Weigand <uweigand@de.ibm.com>
4251
4252 * s390-tdep.c (s390_push_dummy_call): Error on stack overflow
4253 during inferior call stack frame setup.
4254
4255 2010-06-25 Ken Werner <ken.werner@de.ibm.com>
4256
4257 * solib-spu.c: Include "exception.h".
4258 (ocl_program_data_key): New variable.
4259 (append_ocl_sos): New function.
4260 (ocl_enable_break): Likewise.
4261 (spu_current_sos): Call append_ocl_sos.
4262 (spu_solib_loaded): Call ocl_enable_break.
4263 (_initialize_spu_solib): Register ocl_program_data_key.
4264
4265 2010-06-25 Ulrich Weigand <uweigand@de.ibm.com>
4266
4267 * cp-support.c (reset_directive_searched): New function.
4268 (make_symbol_overload_list_using): Prevent recursive calls.
4269
4270 2010-06-25 Phil Muldoon <pmuldoon@redhat.com>
4271
4272 * printcmd.c (print_variable_and_value): Print error message on
4273 caught exception.
4274
4275 2010-06-25 Ulrich Weigand <uweigand@de.ibm.com>
4276
4277 * dwarf2expr.h (struct dwarf_value_location): Use ULONGEST as type
4278 of stack values.
4279 (struct dwarf_expr_piece): Rename "expr" member to "mem". Add new
4280 "value" member.
4281 (dwarf_expr_push): Change input type to ULONGEST.
4282 (dwarf_expr_fetch): Change return type to ULONGEST.
4283 (dwarf_expr_fetch_address): Add prototype.
4284 (dwarf2_read_address): Remove prototype.
4285 * dwarf2expr.c (dwarf_expr_push): Use ULONGEST as type of stack values.
4286 Truncate stack values to ctx->addr_size bytes.
4287 (dwarf_expr_fetch): Change return value to ULONGEST.
4288 (dwarf_expr_fetch_address): New function.
4289 (add_piece): Use dwarf_expr_fetch_address instead of dwarf_expr_fetch
4290 when appropriate. Update for struct dwarf_expr_piece changes.
4291 (dwarf2_read_address): Remove.
4292 (unsigned_address_type): Remove.
4293 (signed_address_type): Remove.
4294 (execute_stack_op): Use dwarf_expr_fetch_address instead of
4295 dwarf_expr_fetch when appropriate. Use ULONGEST as type of stack
4296 values. Perform operations on ULONGEST instead of on GDB values,
4297 sign-extending from ctx->addr_size bytes as needed. Read DW_OP_addr
4298 values and DW_OP_deref results as unsigned integers.
4299 * dwarf2loc.c (read_pieced_value): Update for struct dwarf_expr_piece
4300 changes.
4301 (write_pieced_value): Likewise.
4302 (dwarf2_evaluate_loc_desc): Use dwarf_expr_fetch_address instead of
4303 dwarf_expr_fetch when appropriate.
4304 (compile_dwarf_to_ax): Read DW_OP_addr values as unsigned integers.
4305 * dwarf2-frame.c (execute_stack_op): Use dwarf_expr_fetch_address
4306 instead of dwarf_expr_fetch when appropriate.
4307
4308 2010-06-25 Pierre Muller <muller@ics.u-strasbg.fr>
4309
4310 * c-typeprint.c (c_print_typedef): Append new type name for typedefs.
4311
4312 2010-06-24 Joel Brobecker <brobecker@adacore.com>
4313
4314 * python/python.c (_initialize_python): Add new "constant"
4315 PYTHONDIR in gdb module. Insert this path at the head of
4316 sys.path. Set gdb.__path__ to gdb.PYTHONDIR + '/gdb' and
4317 exec its __init__.py script if it exists in that directory.
4318
4319 2010-06-24 Kevin Buettner <kevinb@redhat.com>
4320
4321 * rx-tdep.c (RX_ACC_REGNUM): Define.
4322 (RX_NUM_REGS): Redefine to 26.
4323 (rx_register_name): Add register "acc". Change order of several
4324 registers. Change name of "vct" register to "fintv" to match RX
4325 documentation.
4326 (rx_register_type): Add case for RX_ACC_REGNUM.
4327
4328 2010-06-24 Tom Tromey <tromey@redhat.com>
4329
4330 * psymtab.c (lookup_partial_symbol): Mark definition as static.
4331
4332 2010-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
4333 Tom Tromey <tromey@redhat.com>
4334
4335 Fix GDB startup on readonly filesystem.
4336 * charset.c (find_charset_names): Use PEX_USE_PIPES for pex_init.
4337
4338 2010-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
4339 Pedro Alves <pedro@codesourcery.com>
4340
4341 Fix PR 9436.
4342 * breakpoint.c (handle_jit_event): New function.
4343 (bpstat_what): Remove enum class, kc, ss, sn, sgl, slr, clr, sr, shl,
4344 jit, err, table and bs_class. New variables shlib_event, jit_event,
4345 this_action and bptype. Change bs_class assignments to this_action
4346 assignments. new unhandled bptype internal error. Move here
4347 shlib_event and jit_event handling from handle_inferior_event.
4348 * breakpoint.h (enum bpstat_what_main_action): Extend the comment.
4349 Reorder items. Remove BPSTAT_WHAT_CHECK_SHLIBS and
4350 BPSTAT_WHAT_CHECK_JIT.
4351 * inferior.h (debug_infrun, stop_on_solib_events): New declarations.
4352 * infrun.c (debug_infrun, stop_on_solib_events): Remove static.
4353 (handle_inferior_event): Reinitialize frame and gdbarch after
4354 bpstat_what call. Move BPSTAT_WHAT_CHECK_SHLIBS and
4355 BPSTAT_WHAT_CHECK_JIT handling to bpstat_what. Reinitialize even
4356 gdbarch when frame gets reinitialized.
4357
4358 2010-06-24 Hui Zhu <teawater@gmail.com>
4359
4360 * printcmd.c (ui_printf): New function.
4361 (printf_command): Call ui_printf.
4362 (_initialize_printcmd): New command "eval".
4363
4364 2010-06-23 Ulrich Weigand <uweigand@de.ibm.com>
4365
4366 * infrun.c (handle_inferior_event): Handle presence of single-step
4367 breakpoints for TARGET_WAITKIND_FORKED and TARGET_WAITKIND_VFORKED.
4368 Cancel single-step breakpoints for TARGET_WAITKIND_EXITED,
4369 TARGET_WAITKIND_SIGNALED, and TARGET_WAITKIND_EXECD.
4370 * breakpoint.c (detach_single_step_breakpoints): New function.
4371 (detach_breakpoints): Call it.
4372 (cancel_single_step_breakpoints): New function.
4373 * breakpoint.h (cancel_single_step_breakpoints): Add prototype.
4374
4375 * spu-tdep.c (spu_memory_remove_breakpoint): New function.
4376 (spu_gdbarch_init): Install it.
4377
4378 2010-06-23 Jan Kratochvil <jan.kratochvil@redhat.com>
4379
4380 * configure.ac: Always set RDYNAMIC at least as `-rdynamic'.
4381 * configure: Regenerate.
4382
4383 2010-06-22 Hui Zhu <teawater@gmail.com>
4384
4385 * i386-tdep.c (i386_record_lea_modrm): Change warning to query.
4386 (i386_process_record): Ditto.
4387 * record.c (record_memory_query): New variable.
4388 (_initialize_record): New command "set record memory-query".
4389 * record.h (record_memory_query): New extern.
4390
4391 2010-06-21 Doug Evans <dje@google.com>
4392
4393 * i386-tdep.h (i386_displaced_step_copy_insn): Declare.
4394 * i386-tdep.c (i386_displaced_step_copy_insn): New function.
4395 (i386_syscall_p): Change type of lengthp to int.
4396 (i386_displaced_step_fixup): Handle kernels that run one past a
4397 syscall insn.
4398 * i386-linux-tdep.c (i386_linux_init_abi): Use
4399 i386_displaced_step_copy_insn instead of
4400 simple_displaced_step_copy_insn.
4401
4402 2010-06-21 Tom Tromey <tromey@redhat.com>
4403
4404 * dwarf2read.c (read_base_type): Handle DW_ATE_UTF.
4405 (dwarf_type_encoding_name): Likewise.
4406
4407 2010-06-21 Tom Tromey <tromey@redhat.com>
4408
4409 * p-valprint.c (pascal_val_print): Use TYPE_ERROR_NAME.
4410 * p-typeprint.c (pascal_type_print_base): Use TYPE_ERROR_NAME.
4411 * m2-valprint.c (m2_val_print): Use TYPE_ERROR_NAME.
4412 * gdbtypes.h (TYPE_ERROR_NAME): New macro.
4413 * f-valprint.c (f_val_print): Use TYPE_ERROR_NAME.
4414 * f-typeprint.c (f_type_print_base): Use TYPE_ERROR_NAME.
4415 * dwarf2read.c (tag_type_to_type): Create a new error type on
4416 failure.
4417 * c-valprint.c (c_val_print): Use TYPE_ERROR_NAME.
4418 * c-typeprint.c (c_type_print_base): Use TYPE_ERROR_NAME.
4419
4420 2010-06-21 Michael Snyder <msnyder@vmware.com>
4421
4422 * breakpoint.c (_initialize_breakpoint): Use add_prefix_cmd,
4423 not add_abbrev_prefix_cmd, for "enable breakpoints".
4424
4425 2010-06-21 Ulrich Weigand <uweigand@de.ibm.com>
4426
4427 * dwarf2loc.c (find_location_expression): Add relocation offset
4428 to base-address-selection entry base addresses. Read addresses
4429 (and offsets) as signed/unsigned integers, depending on the
4430 BFD's sign_extend_vma flag. Do not call dwarf2_read_address.
4431 (loclist_describe_location): Likewise.
4432 (disassemble_dwarf_expression): Read DW_OP_addr operand as
4433 unsigned integer. Do not call dwarf2_read_address.
4434 (locexpr_describe_location): Likewise for DW_OP_GNU_push_tls_address.
4435
4436 2010-06-19 Ulrich Weigand <uweigand@de.ibm.com>
4437
4438 * spu-tdep.c (spu_frame_unwind_cache): Use LSLR register
4439 value instead of hard-coded SPU_LS_SIZE.
4440 (spu_software_single_step): Likewise.
4441 * spu-tdep.h (SPU_LS_SIZE): Remove.
4442
4443 2010-06-19 Ulrich Weigand <uweigand@de.ibm.com>
4444
4445 * spu-multiarch.c (spu_xfer_partial): Wrap around local store
4446 limit on local store memory accesses.
4447 * spu-linux-nat.c (spu_xfer_partial): Likewise.
4448 * spu-tdep.c (spu_lslr): Remove.
4449 (spu_pointer_to_address): Do not truncate addresses.
4450 (spu_integer_to_address): Likewise.
4451 (spu_overlay_new_objfile): Use SPU_OVERLAY_LMA.
4452 * spu-tdep.h: Add comments.
4453 (SPUADDR_SPU): Respect SPU_OVERLAY_LMA bit.
4454 (SPU_OVERLAY_LMA): Define.
4455
4456 2010-06-18 Stan Shebs <stan@codesourcery.com>
4457
4458 * osdata.c (get_osdata): Warn separately if target does not report
4459 type list.
4460 (info_osdata_command): Allow empty type, report error if target
4461 does not return available types of OS data.
4462 * linux-nat.c (linux_nat_xfer_osdata): Report list of OS data
4463 types if no annex supplied.
4464
4465 * thread.c (thread_id_make_value): Make a value representing the
4466 current thread.
4467 (_initialize_thread): Create $_thread.
4468
4469 2010-06-17 Joel Brobecker <brobecker@adacore.com>
4470
4471 * dwarf2read.c (psymtabs_addrmap_cleanup): Add empty line after
4472 last local variable declaration. No real code change.
4473
4474 2010-06-17 Tom Tromey <tromey@redhat.com>
4475
4476 * dwarf2read.c (psymtabs_addrmap_cleanup): New function.
4477 (dwarf2_build_psymtabs_hard): Use it. Create addrmap on a
4478 temporary obstack.
4479
4480 2010-06-16 Sergio Durigan Junior <sergiodj@redhat.com>
4481 Jan Kratochvil <jan.kratochvil@redhat.com>
4482
4483 * breakpoint.c: Include parser-defs.h.
4484 (watchpoint_exp_is_const): New function.
4485 (watch_command_1): Call watchpoint_exp_is_const to check
4486 if the expression is constant.
4487
4488 2010-06-15 Andreas Schwab <schwab@linux-m68k.org>
4489
4490 * configure.ac: Check for RDYNAMIC also for cross builds.
4491 * configure: Regenerate.
4492
4493 2010-06-15 Pedro Alves <pedro@codesourcery.com>
4494
4495 * Makefile.in (ALL_TARGET_OBS): Remove solib-target.o.
4496 (SFILES): Remove solib-null.c, add solib-target.c.
4497 (COMMON_OBS): Remove solib-null.o, add solib-target.o.
4498 (ALLDEPFILES): Remove solib-target.c.
4499 * solib-target.c (_initialize_solib_target): Set
4500 current_target_so_ops to solib_target_so_ops if not already set.
4501 * solib-null.c: Delete.
4502
4503 2010-06-14 Pedro Alves <pedro@codesourcery.com>
4504
4505 * NEWS: Mention GDBserver's JIT compilation of tracepoint
4506 bytecode.
4507
4508 2010-06-14 Ulrich Weigand <uweigand@de.ibm.com>
4509
4510 * cp-valprint.c (cp_print_static_field): Members of
4511 dont_print_stat_array_obstack are of type "struct type *".
4512 (_initialize_cp_valprint): Likewise.
4513
4514 2010-06-14 Ulrich Weigand <uweigand@de.ibm.com>
4515
4516 * frame.c (frame_register_unwind): Do not access contents
4517 of "optimized out" unwound register value.
4518
4519 2010-06-14 Jan Kratochvil <jan.kratochvil@redhat.com>
4520
4521 * ada-lang.h (ada_print_type): Make varstring const.
4522 * ada-typeprint.c (print_func_type): Make name const.
4523 (ada_print_type): Make varstring const.
4524 * c-lang.h (c_print_type): Make varstring const.
4525 * c-typeprint.c (c_print_type): Likewise.
4526 * f-lang.h (f_print_type): Likewise.
4527 * f-typeprint.c (f_print_type): Likewise.
4528 * jv-lang.h (java_print_type): Likewise.
4529 * jv-typeprint.c (java_print_type): Likewise.
4530 * language.c (unk_lang_print_type): Likewise.
4531 * language.h (struct language_defn) <la_print_type>: Likewise.
4532 * m2-lang.h (m2_print_type): Likewise.
4533 * m2-typeprint.c (m2_print_type): Likewise.
4534 * p-lang.h (pascal_print_type): Likewise.
4535 * p-typeprint.c (pascal_print_type): Likewise.
4536
4537 2010-06-11 Stan Shebs <stan@codesourcery.com>
4538
4539 Add per-operation permission flags.
4540
4541 * target.h (struct target_ops): New method to_set_permissions.
4542 (target_set_permissions): New macro.
4543 (target_insert_breakpoint): Change macro to function.
4544 (target_remove_breakpoint): Ditto.
4545 (target_stop): Ditto.
4546 (may_write_registers): Declare.
4547 (may_write_memory): Declare.
4548 (may_insert_breakpoints): Declare.
4549 (may_insert_tracepoints): Declare.
4550 (may_insert_fast_tracepoints): Declare.
4551 (may_stop): Declare.
4552 * target.c (may_write_registers, may_write_registers_1): New globals.
4553 (may_write_memory, may_write_memory_1): New globals.
4554 (may_insert_breakpoints, may_insert_breakpoints_1): New globals.
4555 (may_insert_tracepoints, may_insert_tracepoints_1): New globals.
4556 (may_insert_fast_tracepoints, may_insert_fast_tracepoints_1): New
4557 globals.
4558 (may_stop, may_stop_1): New global.
4559 (target_xfer_partial): Test for write permission.
4560 (target_store_registers): Ditto.
4561 (target_insert_breakpoint): New function.
4562 (target_remove_breakpoint): New function.
4563 (target_stop): New function.
4564 (_initialize_targets): Add new set/show variables.
4565 (set_write_memory_permission): New function.
4566 (update_target_permissions): New function.
4567 (set_target_permissions): New function.
4568 (update_current_target): Default to_set_permissions.
4569 (_initialize_targets): Use new globals and setter function.
4570 * tracepoint.c (start_tracing): Test for permission.
4571 * inferior.h (update_observer_mode): Declare.
4572 * infrun.c (non_stop_1): Define earlier.
4573 (observer_mode, observer_mode_1): New globals.
4574 (set_observer_mode, show_observer_mode): New functions.
4575 (update_observer_mode): New function.
4576 (_initialize_infrun): Define "set observer" command.
4577 * remote.c (PACKET_QAllow): New optional packet.
4578 (remote_protocol_features): Add QAllow.
4579 (remote_set_permissions): New function.
4580 (remote_start_remote): Call it.
4581 (init_remote_ops): Add it to target vector.
4582 (_initialize_remote): Add config command for QAllow.
4583
4584 2010-06-11 Tom Tromey <tromey@redhat.com>
4585
4586 * dwarf2read.c (dwarf2_add_member_fn): Handle correct form of
4587 DW_AT_vtable_elem_location even when GCC extension is seen.
4588
4589 2010-06-11 Tom Tromey <tromey@redhat.com>
4590
4591 PR gdb/9977, PR exp/11636:
4592 * value.h (value_offset): Update.
4593 (struct lval_funcs) <check_validity>: New field.
4594 <copy_closure>: Make argument const.
4595 (value_computed_closure): Update.
4596 (value_contents_for_printing): Declare.
4597 (value_bits_valid): Likewise.
4598 (val_print): Likewise.
4599 (set_value_component_location): Update.
4600 (value_entirely_optimized_out): Declare.
4601 * value.c (value_offset): Argument now const.
4602 (require_not_optimized_out): New function.
4603 (value_contents_for_printing): New function.
4604 (value_contents_all): Call require_not_optimized_out.
4605 (value_contents): Likewise.
4606 (value_bits_valid): New function.
4607 (value_computed_closure): Argument now const.
4608 (set_value_component_location): Make 'whole' argument const.
4609 (value_entirely_optimized_out): New function.
4610 (value_bitsize): Argument now 'const'.
4611 (value_bitpos): Likewise.
4612 (value_type): Likewise.
4613 * valprint.h (val_print_array_elements): Update.
4614 * valprint.c (val_print): Add 'val' argument. Use
4615 valprint_check_validity.
4616 (valprint_check_validity): New function.
4617 (value_check_printable): Use value_entirely_optimized_out.
4618 (common_val_print): Update.
4619 (value_print): Likewise.
4620 (val_print_array_elements): Add 'val' argument.
4621 * valops.c (value_fetch_lazy): Use value_contents_for_printing,
4622 value_bits_valid. Reinit frame cache for lval_computed.
4623 * sh64-tdep.c (sh64_do_register): Update.
4624 * scm-valprint.c (scm_val_print): Add 'val' argument.
4625 * scm-lang.h (scm_val_print): Update.
4626 * python/python.h (apply_val_pretty_printer): Update.
4627 * python/py-prettyprint.c (apply_val_pretty_printer): Add 'val'
4628 argument. Call set_value_component_location.
4629 * printcmd.c (print_scalar_formatted): Update.
4630 * p-valprint.c (pascal_val_print): Add 'val' argument.
4631 (pascal_object_print_value_fields): Likewise.
4632 (pascal_object_print_value): Likewise.
4633 (pascal_object_print_static_field): Update.
4634 * p-lang.h (pascal_val_print): Update.
4635 (pascal_object_print_value_fields): Update.
4636 * mt-tdep.c (mt_registers_info): Update.
4637 * mi/mi-main.c (get_register): Update.
4638 (mi_cmd_data_evaluate_expression): Use common_val_print.
4639 * m2-valprint.c (m2_print_array_contents): Add 'val' argument.
4640 (m2_print_unbounded_array): Likewise.
4641 (m2_val_print): Likewise.
4642 * m2-lang.h (m2_val_print): Update.
4643 * language.h (struct language_defn) <la_val_print>: Add 'val'
4644 argument.
4645 (LA_VAL_PRINT): Likewise.
4646 * language.c (unk_lang_val_print): Add 'val' argument.
4647 * jv-valprint.c (java_print_value_fields): Add 'val' argument.
4648 (java_val_print): Likewise.
4649 * jv-lang.h (java_val_print): Add 'val' argument.
4650 * infcmd.c (default_print_registers_info): Update.
4651 * f-valprint.c (f77_print_array_1): Add 'val' argument.
4652 (f77_print_array): Likewise.
4653 (f_val_print): Likewise.
4654 * f-lang.h (f_val_print): Add 'val' argument.
4655 * dwarf2loc.c (read_pieced_value): Use value_bitsize and
4656 value_bitpos.
4657 <DWARF_VALUE_OPTIMIZED_OUT>: Don't print warning. Call
4658 set_value_optimized_out.
4659 (write_pieced_value): Use value_bitsize and value_bitpos.
4660 <default>: Don't exit loop.
4661 (check_pieced_value_validity): New function.
4662 (pieced_value_funcs): Reference check_pieced_value_validity,
4663 check_pieced_value_invalid.
4664 (copy_pieced_value_closure): Update.
4665 (check_pieced_value_bits): New function.
4666 (check_pieced_value_invalid): New function.
4667 * d-valprint.c (dynamic_array_type): Add 'val' argument.
4668 (d_val_print): Likewise.
4669 * d-lang.h (d_val_print): Update.
4670 * cp-valprint.c (cp_print_value_fields): Add 'val' argument.
4671 (cp_print_value_fields_rtti): Likewise.
4672 (cp_print_value): Likewise.
4673 (cp_print_static_field): Update.
4674 * c-valprint.c (c_val_print): Add 'val' argument.
4675 (c_value_print): Update.
4676 * c-lang.h (c_val_print): Update.
4677 (cp_print_value_fields): Likewise.
4678 (cp_print_value_fields_rtti): Likewise.
4679 * ada-valprint.c (struct ada_val_print_args): Remove.
4680 (val_print_packed_array_elements): Add 'val' argument.
4681 (ada_val_print): Likewise. Rewrite.
4682 (ada_val_print_stub): Remove.
4683 (ada_val_print_array): Add 'val' argument.
4684 (ada_val_print_1): Likewise.
4685 (print_variant_part): Likewise.
4686 (ada_value_print): Update.
4687 (print_record): Add 'val' argument.
4688 (print_field_values): Likewise.
4689 * ada-lang.h (ada_val_print): Update.
4690
4691 2010-06-11 Tom Tromey <tromey@redhat.com>
4692
4693 * vec.h (VEC_cleanup): New macro.
4694 (DEF_VEC_ALLOC_FUNC_I): Update.
4695 (DEF_VEC_ALLOC_FUNC_P): Likewise.
4696 (DEF_VEC_ALLOC_FUNC_O): Likewise.
4697 * dwarf2loc.c (struct axs_var_loc): Remove.
4698 (unimplemented): New function.
4699 (translate_register): Likewise.
4700 (access_memory): Likewise.
4701 (compile_dwarf_to_ax): Likewise.
4702 (dwarf2_tracepoint_var_loc): Remove.
4703 (dwarf2_tracepoint_var_access): Likewise.
4704 (dwarf2_tracepoint_var_ref): Likewise.
4705 (locexpr_tracepoint_var_ref): Use compile_dwarf_to_ax.
4706 (loclist_tracepoint_var_ref): Likewise.
4707 * dwarf2expr.h (dwarf_expr_require_composition): Declare.
4708 * dwarf2expr.c (dwarf_expr_require_composition): Rename from
4709 require_composition. No longer static.
4710 (execute_stack_op): Update.
4711 * ax-gdb.h (trace_kludge): Declare.
4712
4713 2010-06-11 Jan Kratochvil <jan.kratochvil@redhat.com>
4714
4715 * breakpoint.c (breakpoint_restore_shadows): New OWNER comment.
4716 (should_be_inserted): Return zero also on NULL OWNER.
4717 (breakpoint_program_space_exit): New OWNER comment.
4718 (insert_breakpoint_locations): Extend comment for OWNER.
4719 (remove_breakpoint_1, remove_breakpoint): Assert on OWNER.
4720 (breakpoint_init_inferior, breakpoint_here_p, breakpoint_thread_match):
4721 New OWNER comment.
4722 (print_it_typical): Return PRINT_UNKNOWN on NULL OWNER.
4723 (watchpoint_check): New assert on BREAKPOINT_AT and OWNER.
4724 (bpstat_check_location): New assert on OWNER.
4725 (bpstat_check_watchpoint, bpstat_check_breakpoint_conditions): Move BL
4726 and B initializations to the code block. New assert on them.
4727 (print_one_breakpoint_location): New OWNER comment.
4728 (watchpoint_locations_match): Assert on OWNER.
4729 (breakpoint_locations_match): Move HW_POINT1 and HW_POINT2
4730 initializations to the code block. New assert on OWNER.
4731 (set_breakpoint_location_function): New assert on OWNER.
4732 (disable_breakpoints_in_shlibs, disable_breakpoints_in_unloaded_shlib)
4733 (bp_location_compare, update_global_location_list)
4734 (update_global_location_list): New OWNER comment.
4735
4736 2010-06-09 Ulrich Weigand <uweigand@de.ibm.com>
4737
4738 * Makefile.in (HFILES_NO_SRCDIR): Remove config/i386/nm-linux.h
4739
4740 2010-06-09 Ulrich Weigand <uweigand@de.ibm.com>
4741
4742 * config/nm-linux.h (struct target_ops): Remove forward declaration.
4743 (lin_thread_get_thread_signals): Remove prototype.
4744 (GET_THREAD_SIGNALS): Remove.
4745 * linux-nat.h (lin_thread_get_thread_signals): Add prototype.
4746 * linux-thread-db.c (check_thread_signals): Directly call
4747 lin_thread_get_thread_signals; do not check GET_THREAD_SIGNALS.
4748
4749 2010-06-09 Ulrich Weigand <uweigand@de.ibm.com>
4750
4751 * gregset.h (GDB_FPXREGSET_T): Remove.
4752 (gdb_fpxregset_t): Likewise.
4753 (supply_fpxregset): Remove prototype.
4754 (fill_fpxregset): Likewise.
4755 * i386-linux-nat.c (supply_fpxregset): Remove.
4756 (fill_fpxregset): Likewise.
4757 (fetch_fpxregs): Inline supply_fpxregset call.
4758 (store_fpxregs): Inline fill_fpxregset call.
4759
4760 * config/i386/linux.mh: Set NAT_FILE to config/nm-linux.h.
4761 * config/i386/nm-linux.h: Remove file.
4762
4763 2010-06-09 Michael Snyder <msnyder@vmware.com>
4764
4765 * target.c (update_current_target): Fix spelling error in comment.
4766 (target_mourn_inferior): Fix spelling error in error message.
4767
4768 2010-06-08 Paul Hilfinger <hilfingr@adacore.com>
4769
4770 * dictionary.h (dict_iter_name_first, dict_iter_name_next): Refer to
4771 SYMBOL_SEARCH_NAME, not SYMBOL_BEST_NAME, in comments.
4772
4773 2010-06-08 Michael Snyder <msnyder@vmware.com>
4774
4775 * remote.c (remote_close): Set inferior_ptid to null_ptid.
4776
4777 2010-06-08 Jan Kratochvil <jan.kratochvil@redhat.com>
4778
4779 * configure.ac <"${have_libpython}" != no>: New workaround of
4780 python#4434.
4781 * configure: Regenerate.
4782
4783 2010-06-08 Hui Zhu <teawater@gmail.com>
4784
4785 * record.c (record_wait): Move signal out of replay code.
4786
4787 2010-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
4788
4789 Fix PR 10640.
4790 * dwarf2-frame.c (no_dwarf_call): New function.
4791 (execute_stack_op): Set CTX->DWARF_CALL.
4792 * dwarf2expr.c (execute_stack_op) <DW_OP_call2, DW_OP_call4>: New.
4793 * dwarf2expr.h (struct dwarf_expr_context) <dwarf_call>: New.
4794 (struct dwarf_expr_context) <get_subr>: Remove the #if0-ed field.
4795 * dwarf2loc.c (per_cu_dwarf_call, dwarf_expr_dwarf_call): New functions.
4796 (dwarf2_evaluate_loc_desc): Initialize CTX->DWARF_CALL.
4797 (needs_frame_dwarf_call): New function.
4798 (dwarf2_loc_desc_needs_frame): Initialize CTX->DWARF_CALL.
4799 * dwarf2read.c (follow_die_offset): Based on former follow_die_ref.
4800 Update the comment. Move variables die, offset and error call to ...
4801 (follow_die_ref): ... a new function.
4802 (dwarf2_fetch_die_location_block): New function.
4803 * dwarf2loc.h (dwarf2_fetch_die_location_block): New prototype.
4804
4805 2010-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
4806
4807 * dwarf2loc.c (struct dwarf_expr_baton) Replace objfile by per_cu.
4808 (dwarf_expr_tls_address): Use per_cu instead of objfile.
4809 (dwarf2_evaluate_loc_desc): Drop initialization of BATON.OBJFILE.
4810 Initialize new BATON.PER_CU. Adjust CTX->GDBARCH initialization for
4811 this change.
4812 (struct needs_frame_baton): New field per_cu.
4813 (dwarf2_loc_desc_needs_frame): Initialize new BATON.PER_CU.
4814 * dwarf2read.c (struct dwarf2_per_cu_data) <cu>: Extend the comment.
4815
4816 2010-06-07 Sami Wagiaalla <swagiaal@redhat.com>
4817
4818 * cp-support.c (make_symbol_overload_list_namespace): Only search
4819 static and global blocks.
4820 (make_symbol_overload_list_block): New function.
4821 (make_symbol_overload_list): Separate namespace search from block
4822 search.
4823 (make_symbol_overload_list_qualified): Use
4824 make_symbol_overload_list_block.
4825
4826 2010-06-07 Sami Wagiaalla <swagiaal@redhat.com>
4827
4828 * value.h: Created oload_search_type enum.
4829 (find_overload_match): Use oload_search_type enum.
4830 * valops.c (find_overload_match): Support combined member and
4831 non-member search.
4832 * eval.c (evaluate_subexp_standard): Calls to
4833 find_overload_match now use oload_search_type enum.
4834 (oload_method_static): Verify index is a proper value.
4835 * valarith.c (value_user_defined_cpp_op): Search for and handle
4836 both member and non-member operators.
4837 (value_user_defined_cpp_op): New function.
4838 (value_user_defined_op): New function.
4839 (value_x_unop): Use value_user_defined_op.
4840 (value_x_binop): Ditto.
4841 * cp-support.c (make_symbol_overload_list_using): Added block
4842 iteration.
4843 Add check for namespace aliases and imported declarations.
4844
4845 2010-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
4846
4847 * breakpoint.h (owner): Extend the comment.
4848
4849 2010-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
4850
4851 Clear stale specific bp_location from former whole breakpoint.
4852 * breakpoint.c (delete_breakpoint): Move the stale referencing clear
4853 code ...
4854 (free_bp_location): ... here. Rename there the called function to
4855 bpstat_remove_bp_location_callback.
4856 (bpstat_remove_breakpoint_callback): Rename to ...
4857 (bpstat_remove_bp_location_callback): ... here, change DATA resolution
4858 to struct bp_location. Change the called function to
4859 bpstat_remove_bp_location. Create new declaration for the function.
4860 (bpstat_remove_breakpoint): Rename to ...
4861 (bpstat_remove_bp_location): ..., change the parameter to loc, adjust
4862 code for the new parameter type.
4863
4864 2010-06-07 Nathan Sidwell <nathan@codesourcery.com>
4865
4866 * README: Make version-agnostic.
4867
4868 2010-06-05 Jan Kratochvil <jan.kratochvil@redhat.com>
4869
4870 Fix duplicate types for single DIE.
4871 * dwarf2read.c (read_structure_type): Move set_descriptive_type after
4872 set_die_type.
4873 (read_array_type): Remove type initialization. Recheck get_die_type
4874 after initial die_type. Move set_die_type before set_descriptive_type.
4875 (read_set_type): New variable domain_type. Recheck get_die_type after
4876 initial die_type. Move attr initialization later.
4877 (read_tag_pointer_type, read_tag_reference_type): New variable
4878 target_type. Recheck get_die_type after initial die_type.
4879 (read_tag_ptr_to_member_type): Recheck get_die_type after initial
4880 die_type and die_containing_type.
4881 (read_tag_const_type, read_tag_volatile_type, read_subroutine_type):
4882 Recheck get_die_type after initial die_type.
4883 (read_subrange_type): Recheck get_die_type after initial die_type.
4884 Move set_die_type before set_descriptive_type.
4885 (set_die_type): Extend the function comment. Call complaint if DIE has
4886 some type already set.
4887
4888 2010-06-05 Vladimir Prus <vladimir@codesourcery.com>
4889
4890 * mi/mi-main.c (mi_cmd_list_thread_groups): Adjust
4891 for current naming of thread groups (iN, not N).
4892
4893 2010-06-04 Sergio Durigan Junior <sergiodj@redhat.com>
4894
4895 * ada-lang.c (ada_operator_length): Constify `struct expression'.
4896 * parse.c (operator_length): Likewise.
4897 (operator_length_standard): Likewise.
4898 * parser-defs.h (operator_length): Likewise.
4899 (operator_length_standard): Likewise.
4900 (struct exp_descriptor <operator_length>): Likewise.
4901
4902 2010-06-04 Doug Evans <dje@google.com>
4903
4904 Add support for enabling/disabling individual pretty-printers.
4905 * python/py-prettyprint.c (search_pp_list): Skip disabled printers.
4906 * python/python-internal.h (gdbpy_enabled_cst): Declare.
4907 * python/python.c (gdbpy_enabled_cst): Define.
4908 (_initialize_python): Initialize gdbpy_enabled_cst.
4909 * NEWS: Add entry.
4910
4911 2010-06-04 Jan Kratochvil <jan.kratochvil@redhat.com>
4912
4913 * breakpoint.c (update_global_location_list): Fix comment typo.
4914
4915 2010-06-04 Hui Zhu <teawater@gmail.com>
4916
4917 * dwarf2loc.c (disassemble_dwarf_expression): Change ul to l.
4918
4919 2010-06-03 Doug Evans <dje@google.com>
4920
4921 * configure.ac: Don't fail if python is unusable when
4922 configured with --with-python=auto.
4923 * configure: Regenerate.
4924
4925 2010-06-03 Sami Wagiaalla <swagiaal@redhat.com>
4926
4927 * dwarf2read.c (new_symbol): Remove redundant naming of symbol.
4928
4929 2010-06-03 Pierre Muller <muller@ics.u-strasbg.fr>
4930
4931 * valprint.h (get_array_bounds): Change low and high parameter types
4932 to LONGEST *.
4933 * valprint.c (get_array_bounds): Use get_discrete_bounds call to
4934 compute bounds.
4935 (val_print_array_elements): Adapt to change above.
4936 * ada-valprint.c (print_optional_low_bound): Adapt to change above.
4937 * p-valprint.c (pascal_val_print): Likewise.
4938
4939 2010-06-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4940
4941 * symfile.c (init_filename_language_table): New extensions .for, .FOR,
4942 .ftn, .FTN, .fpp, .FPP, .f90, .F90, .f95, .F95, .f03, .F03, .f08 and
4943 .F08.
4944
4945 2010-06-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4946
4947 Support DW_TAG_module as separate namespaces.
4948 * dwarf2read.c (typename_concat): New parameter physname.
4949 (read_module_type): New function and declaration.
4950 (scan_partial_symbols): Scan also DW_TAG_module children.
4951 (partial_die_parent_scope): Accept scope even from DW_TAG_module. Pass
4952 to typename_concat backward compatible physname value 0.
4953 (partial_die_full_name, read_namespace_type): Pass to typename_concat
4954 backward compatible physname value 0.
4955 (add_partial_module, read_module): Remove FIXME comment.
4956 (process_die) <DW_TAG_module>: Set PROCESSING_HAS_NAMESPACE_INFO.
4957 (die_needs_namespace) <DW_TAG_variable>: Allow returning true even for
4958 DIEs under DW_TAG_module.
4959 (dwarf2_compute_name): Move the ada block for DW_AT_linkage_name and
4960 DW_AT_MIPS_linkage_name first, extend it for language_fortran
4961 && physname and return there instead of just setting NAME. Extend
4962 the main block for language_fortran. Pass physname parameter to the
4963 typename_concat call.
4964 (read_import_statement, read_func_scope, get_scope_pc_bounds)
4965 (load_partial_dies, determine_prefix): Support also DW_TAG_module.
4966 (new_symbol): Fill in cplus_specific.demangled_name if it is still
4967 missing from SYMBOL_SET_NAMES in the language_fortran case.
4968 (new_symbol) <DW_TAG_variable>: Force LOC_UNRESOLVED for gfortran module
4969 variables.
4970 (read_type_die) <DW_TAG_module>: New.
4971 (MAX_SEP_LEN): Increase to 7.
4972 (typename_concat): New parameter physname. New variable lead. Support
4973 also language_fortran.
4974 * f-exp.y (yylex): Consider : also as a symbol name character class.
4975 * f-lang.c: Include cp-support.h.
4976 (f_word_break_characters, f_make_symbol_completion_list): New functions.
4977 (f_language_defn): Use cp_lookup_symbol_nonlocal,
4978 f_word_break_characters and f_make_symbol_completion_list.
4979 * f-typeprint.c (f_type_print_base) <TYPE_CODE_MODULE>: New.
4980 * gdbtypes.h (enum type_code) <TYPE_CODE_MODULE>: New.
4981 * symtab.c (symbol_init_language_specific): Support language_fortran.
4982 (symbol_find_demangled_name): New comment on language_fortran.
4983 (symbol_natural_name, symbol_demangled_name): Use demangled_name even
4984 for language_fortran.
4985 (lookup_symbol_aux_local): Check imports also for language_fortran.
4986 (default_make_symbol_completion_list): Rename to ...
4987 (default_make_symbol_completion_list_break_on): ... this name. New
4988 parameter break_on, use it.
4989 (default_make_symbol_completion_list): New stub.
4990 * symtab.h (default_make_symbol_completion_list_break_on): New
4991 prototype.
4992
4993 2010-06-02 Joel Brobecker <brobecker@adacore.com>
4994
4995 * remote.c (remote_get_noisy_reply): Remove trailing "\n" in call
4996 to error.
4997
4998 2010-06-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4999
5000 * dwarf2read.c (typename_concat): Add const to the variable sep.
5001
5002 2010-06-02 Tom Tromey <tromey@redhat.com>
5003
5004 * dwarf2loc.h (dwarf2_per_cu_data): Declare.
5005 * dwarf2read.c (dwarf_stack_op_name): No longer static. Return
5006 type is const. Add 'def' argument. Add missing operators, remove
5007 unhandled ones.
5008 (decode_locdesc): Update.
5009 (dwarf2_always_disassemble): New global.
5010 (show_dwarf2_always_disassemble): New function.
5011 (_initialize_dwarf2_read): Add always-disassemble.
5012 (dwarf2_per_cu_offset_size): New function.
5013 * dwarf2loc.c (dwarf2_always_disassemble): Declare.
5014 (piece_end_p): New function.
5015 (locexpr_describe_location_piece): Replace 'size' argument with
5016 'end'. Use piece_end_p. Rewrite recognition of TLS. Recognize
5017 some constants. Remove errors.
5018 (disassemble_dwarf_expression): New function.
5019 (locexpr_describe_location_1): Use disassemble_dwarf_expression.
5020 Add 'offset_size' argument.
5021 (loclist_describe_location): Change output formatting.
5022 * dwarf2expr.h (dwarf_stack_op_name): Declare.
5023
5024 2010-06-02 Sami Wagiaalla <swagiaal@redhat.com>
5025
5026 * cp-support.c (make_symbol_overload_list_adl_namespace): Handle
5027 anonymous type case.
5028
5029 2010-06-02 Pierre Muller <muller@ics.u-strasbg.fr>
5030
5031 * dwarf2read.c (read_subrange_type): Handle missing base type
5032 according to Dwarf-2 specifications.
5033
5034 2010-06-01 Sergio Durigan Junior <sergiodj@redhat.com>
5035
5036 * expprint.c (print_subexp_standard): Remove exp_opcodes BINOP_INCL,
5037 BINOP_EXCL.
5038 (op_name_standard): Remove exp_opcodes BINOP_INCL, BINOP_EXCL,
5039 UNOP_LOWER, UNOP_UPPER, UNOP_LENGTH.
5040 (dump_subexp_body_standard): Remove exp_opcodes BINOP_INCL,
5041 BINOP_EXCL, UNOP_LOWER, UNOP_UPPER, UNOP_LENGTH, UNOP_CARD,
5042 UNOP_CHMAX, UNOP_CHMIN.
5043 * expression.h (enum exp_opcode) <BINOP_INCL, BINOP_EXCL,
5044 UNOP_LOWER, UNOP_UPPER, UNOP_LENGTH, UNOP_CARD, UNOP_CHMAX,
5045 UNOP_CHMIN>: Remove opcodes.
5046
5047 2010-06-01 Pierre Muller <muller@ics.u-strasbg.fr>
5048
5049 * dwarf2read.c (read_func_scope): Do not complain for
5050 external function if bounds are not found.
5051
5052 2010-06-01 Pedro Alves <pedro@codesourcery.com>
5053
5054 * NEWS: Mention gdbserver fast tracepoints support.
5055
5056 2010-05-31 Pierre Muller <muller@ics.u-strasbg.fr>
5057
5058 * windows-nat.c (GetConsoleFontSize, GetCurrentConsoleFont):
5059 New macros.
5060 (windows_set_console_info): New function.
5061 (windows_create_inferior): Call windows_set_console_info
5062 if NEW_CONSOLE is true.
5063 (bad_GetCurrentConsoleFont, bad_GetConsoleFontSize): New functions.
5064 (_initialize_loadable): Initialize GetConsoleFontSize and
5065 GetCurrentConsoleFont.
5066
5067 2010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
5068
5069 * Makefile.in (RDYNAMIC): New.
5070 (SFILES): Add proc-service.list.
5071 * config/alpha/alpha-linux.mh (NAT_CDEPS): New.
5072 (LOADLIBES): Replace -rdynamic by $(RDYNAMIC).
5073 * config/arm/linux.mh: Likewise.
5074 * config/i386/linux.mh: Likewise.
5075 * config/i386/linux64.mh: Likewise.
5076 * config/ia64/linux.mh: Likewise.
5077 * config/m32r/linux.mh: Likewise.
5078 * config/m68k/linux.mh: Likewise.
5079 * config/mips/linux.mh: Likewise.
5080 * config/pa/linux.mh: Likewise.
5081 * config/powerpc/linux.mh: Likewise.
5082 * config/powerpc/ppc64-linux.mh: Likewise.
5083 * config/s390/s390.mh: Likewise.
5084 * config/sparc/linux.mh: Likewise.
5085 * config/sparc/linux64.mh: Likewise.
5086 * config/xtensa/linux.mh: Likewise.
5087 * configure.ac: New RDYNAMIC on native host and GCC.
5088 (solaris*): Replace -Wl,-export-dynamic by $RDYNAMIC.
5089 * configure: Regenerate.
5090 * proc-service.list: New.
5091
5092 2010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
5093
5094 * linux-nat.c (linux_nat_core_of_thread_1): Fix crash on invalid
5095 CONTENT.
5096
5097 2010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
5098
5099 * linux-nat.c (linux_nat_wait_1): Do not call
5100 linux_nat_core_of_thread_1 on TARGET_WAITKIND_EXITED or
5101 TARGET_WAITKIND_SIGNALLED.
5102
5103 2010-05-27 Joel Brobecker <brobecker@adacore.com>
5104
5105 * ada-lang.c (ada_inferior_data): New struct.
5106 (ada_inferior_data): New static global.
5107 (ada_inferior_data_cleanup, get_ada_inferior_data, ada_inferior_exit)
5108 (ada_get_tsd_type): New functions.
5109 (ada_tag_name_2): Use ada_get_tsd_type instead of ada_find_any_type
5110 to look the tsd type up.
5111 (_initialize_ada_language): Attach ada_inferior_exit to inferior_exit
5112 event. Set ada_inferior_data.
5113
5114 2010-05-27 Pedro Alves <pedro@codesourcery.com>
5115
5116 * remote.c (unpack_varlen_hex): Remove forward declaration.
5117 (remote_console_output): Make static, and add forward declaration.
5118 * remote.h: Drop FIXME comment.
5119 (unpack_varlen_hex): Declare.
5120 (remote_console_output, remote_cisco_objfile_relocate)
5121 (deprecated_target_resume_hook, deprecated_target_wait_loop_hook):
5122 Delete declarations.
5123 * tracepoint.c: Include "remote.h".
5124 (unpack_varlen_hex): Delete declaration.
5125
5126 2010-05-27 Tom Tromey <tromey@redhat.com>
5127
5128 * dwarf2loc.c (struct piece_closure) <refc>: New field.
5129 (allocate_piece_closure): Initialize refc.
5130 (copy_pieced_value_closure): Use refc.
5131 (free_pieced_value_closure): Likewise.
5132
5133 2010-05-27 Tom Tromey <tromey@redhat.com>
5134
5135 * arm-tdep.c (push_stack_item): 'contents' now const.
5136 (arm_push_dummy_call): Make 'val' const. Use value_contents, not
5137 value_contents_writeable. Introduce new temporary.
5138
5139 2010-05-27 Tom Tromey <tromey@redhat.com>
5140
5141 * findcmd.c (parse_find_args): Use value_contents, not
5142 value_contents_raw.
5143
5144 2010-05-27 Tom Tromey <tromey@redhat.com>
5145
5146 * alpha-tdep.c (alpha_push_dummy_call): Make alpha_arg.contents
5147 const. Use value_contents, not value_contents_writeable.
5148
5149 2010-05-27 Joel Brobecker <brobecker@adacore.com>
5150
5151 * ada-lang.c (ensure_lval): Replace call to value_contents_raw
5152 by call to value_contents.
5153
5154 2010-05-27 Ozkan Sezer <sezeroz@gmail.com>
5155
5156 * MAINTAINERS: Add myself for write after approval privileges.
5157
5158 2010-05-26 Doug Evans <dje@google.com>
5159
5160 Allow python to find its files if moved from original location.
5161 * acinclude.m4 (GDB_AC_DEFINE_RELOCATABLE): New function.
5162 (GDB_AC_WITH_DIR): Call it.
5163 * configure.ac: Define WITH_PYTHON_PATH if we can find the
5164 python installation directory.
5165 * config.in: Regenerate.
5166 * configure: Regenerate.
5167 * defs.h (python_libdir): Declare.
5168 * main.c (python_libdir): Define.
5169 (captured_main): Initialize python_libdir.
5170 * python/python.c (_initialize_python): #ifdef WITH_PYTHON_PATH,
5171 call Py_SetProgramName to make sure python can find its libraries
5172 and modules.
5173
5174 * configure.ac: Try to use python's distutils to fetch compilation
5175 parameters.
5176 * configure: Regenerate.
5177 * python/python-config.py: New file.
5178
5179 2010-05-26 Ozkan Sezer <sezeroz@gmail.com>
5180
5181 * ser-tcp.c (net_open): Check error return from socket() call by its
5182 equality to -1 not by it being negative.
5183 (net_close): Likewise.
5184
5185 2010-05-26 Pedro Alves <pedro@codesourcery.com>
5186
5187 * NEWS: Mention the `qRelocInsn' feature.
5188 * gdbarch.sh (relocate_instruction): New.
5189 * amd64-tdep.c (rip_relative_offset): New.
5190 (append_insns): New.
5191 (amd64_relocate_instruction): New.
5192 (amd64_init_abi): Install it.
5193 * i386-tdep.c (append_insns): New.
5194 (i386_relocate_instruction): New.
5195 (i386_gdbarch_init): Install it.
5196 * remote.c (remote_get_noisy_reply): Handle qRelocInsn requests.
5197 * gdbarch.h, gdbarch.c: Regenerate.
5198
5199 2010-05-26 Tom Tromey <tromey@redhat.com>
5200
5201 * dwarf2loc.h (struct dwarf2_locexpr_baton) <data>: Now const.
5202 (struct dwarf2_loclist_baton) <data>: Likewise.
5203 * dwarf2loc.c (find_location_expression): Constify return type.
5204 (dwarf2_evaluate_loc_desc): Make 'data' argument const.
5205 (dwarf2_loc_desc_needs_frame): Likewise.
5206 (loclist_read_variable): Constify.
5207 (loclist_describe_location): Likewise.
5208 (loclist_tracepoint_var_ref): Likewise.
5209
5210 2010-05-25 Tom Tromey <tromey@redhat.com>
5211
5212 * dwarf2loc.c (dwarf_expr_frame_base): Constify.
5213 (dwarf_expr_frame_base_1): Likewise.
5214 (read_pieced_value): Update.
5215 (needs_frame_frame_base): Constify.
5216 (dwarf2_tracepoint_var_loc): Likewise.
5217 (dwarf2_tracepoint_var_access): Likewise.
5218 (locexpr_describe_location_piece): Likewise.
5219 (locexpr_describe_location_1): Likewise.
5220 * dwarf2expr.h (struct dwarf_expr_context) <get_frame_base>:
5221 Constify.
5222 (data): Now const.
5223 (struct dwarf_expr_piece) <v.literal.data>: Likewise.
5224 (dwarf_expr_eval, read_uleb128, read_sleb128)
5225 (dwarf2_read_address): Update.
5226 * dwarf2expr.c (dwarf_expr_eval): Constify.
5227 (read_uleb128): Likewise.
5228 (read_sleb128): Likewise.
5229 (dwarf2_read_address): Likewise.
5230 (require_composition): Likewise.
5231 (execute_stack_op): Likewise.
5232 * dwarf2-frame.h (struct dwarf2_frame_state_reg) <loc.exp>: Now a
5233 "const gdb_byte *".
5234 * dwarf2-frame.c (struct dwarf2_frame_state_reg_info) <cfa_exp>:
5235 Now const.
5236 (no_get_frame_base): Constify.
5237 (execute_stack_op): Likewise.
5238 (execute_cfa_program): Likewise.
5239 (read_encoded_value): Likewise.
5240
5241 2010-05-25 Doug Evans <dje@google.com>
5242
5243 * ser-pipe.c (pipe_open): Ignore SIGINTs in child.
5244
5245 * event-loop.h (GDB_READABLE, GDB_WRITABLE, GDB_EXCEPTION): Move to ...
5246 * event-loop.c: ... here.
5247 * tui/tui-io.c (tui_readline_output): Rename parameter `code' to
5248 `error' for clarity.
5249 (tui_getc): Pass correct value for `error' parameter to
5250 tui_readline_output.
5251
5252 Add python gdb.GdbError and gdb.string_to_argv.
5253 * NEWS: Document them.
5254 * python/py-cmd.c (cmdpy_function): Don't print a traceback if
5255 the exception is gdb.GdbError. Print a second traceback if there's
5256 an error computing the error message.
5257 (gdbpy_string_to_argv): New function.
5258 * python/py-utils.c (gdbpy_obj_to_string): New function.
5259 (gdbpy_exception_to_string): New function.
5260 * python/python-internal.h (gdbpy_string_to_argv): Declare.
5261 (gdbpy_obj_to_string, gdbpy_exception_to_string): Declare.
5262 (gdbpy_gdberror_exc): Declare.
5263 * python/python.c (gdbpy_gdberror_exc): New global.
5264 (_initialize_python): Initialize gdbpy_gdberror_exc and create
5265 gdb.GdbError.
5266 (GdbMethods): Add string_to_argv.
5267
5268 2010-05-21 Pierre Muller <muller@ics.u-strasbg.fr>
5269
5270 * windows-nat.c (display_selector): Call GetLastError to give better
5271 failure explanation.
5272
5273 2010-05-24 Pedro Alves <pedro@codesourcery.com>
5274
5275 * config.in: Regenerate.
5276
5277 2010-05-23 Jan Kratochvil <jan.kratochvil@redhat.com>
5278
5279 Code cleanup.
5280 * target.c (push_target): Return only void. Remove the return value
5281 comment.
5282 * target.h (push_target): Return only void.
5283
5284 2010-05-23 Pedro Alves <pedro@codesourcery.com>
5285
5286 Update gnulib from latest git.
5287 (250b80067c1e1d8faa0c42fb572f721975b929c5)
5288
5289 * gnulib/memcmp.c: Removed.
5290 * gnulib/memchr.valgrind: New.
5291 * gnulib/stddef.in.h: New.
5292 * gnulib/Makefile.am: Updated.
5293 * gnulib/memchr.c: Updated.
5294 * gnulib/memmem.c: Updated.
5295 * gnulib/stdint.in.h: Updated.
5296 * gnulib/str-two-way.h: Updated.
5297 * gnulib/string.in.h: Updated.
5298 * gnulib/wchar.in.h: Updated.
5299
5300 * gnulib/extra/link-warning.h: Removed.
5301 * gnulib/extra/c++defs.h: New.
5302 * gnulib/extra/warn-on-use.h: New.
5303 * gnulib/extra/arg-nonnull.h: Updated.
5304
5305 * gnulib/m4/extensions.m4: Updated.
5306 * gnulib/m4/gnulib-cache.m4: Updated.
5307 * gnulib/m4/gnulib-common.m4: Updated.
5308 * gnulib/m4/gnulib-comp.m4: Updated.
5309 * gnulib/m4/gnulib-tool.m4: Updated.
5310 * gnulib/m4/include_next.m4: Updated.
5311 * gnulib/m4/longlong.m4: Updated.
5312 * gnulib/m4/memchr.m4: Updated.
5313 * gnulib/m4/memmem.m4: Updated.
5314 * gnulib/m4/stdint.m4: Updated.
5315 * gnulib/m4/string_h.m4: Updated.
5316 * gnulib/m4/memcmp.m4: Removed.
5317 * gnulib/m4/onceonly_2_57.m4: Removed.
5318 * gnulib/m4/00gnulib.m4: New.
5319 * gnulib/m4/mmap-anon.m4: New.
5320 * gnulib/m4/multiarch.m4: New.
5321 * gnulib/m4/onceonly.m4: New.
5322 * gnulib/m4/stddef_h.m4: New.
5323 * gnulib/m4/warn-on-use.m4: New.
5324 * gnulib/m4/wchar.m4: Removed.
5325 * gnulib/m4/wchar_h.m4: New.
5326 * gnulib/m4/wchar_t.m4: New.
5327 * gnulib/m4/wint_t.m4: New.
5328
5329 * aclocal.m4: Regenerate.
5330 * config.in: Likewise.
5331 * configure: Likewise.
5332 * gnulib/Makefile.in: Likewise.
5333
5334 2010-05-21 Tom Tromey <tromey@redhat.com>
5335
5336 * dwarf2loc.c (extract_bits_primitive): New function.
5337 (extract_bits): Likewise.
5338 (insert_bits): Likewise.
5339 (copy_bitwise): Likewise.
5340 (read_pieced_value): Do all operations in bits.
5341 (write_pieced_value): Likewise.
5342 * dwarf2expr.h (struct dwarf_expr_piece) <offset>: New field.
5343 * dwarf2expr.c (add_piece): New arguments bit_piece, offset.
5344 Always use xrealloc to resize piece array.
5345 (execute_stack_op) <DW_OP_reg0>: Handle DW_OP_bit_piece.
5346 <DW_OP_piece>: Update.
5347 <DW_OP_bit_piece>: New case.
5348
5349 2010-05-21 Tom Tromey <tromey@redhat.com>
5350
5351 * dwarf2loc.c (read_pieced_value): Exit loop when result is full.
5352 <DWARF_VALUE_OPTIMIZED_OUT>: New case.
5353 * dwarf2expr.h (enum dwarf_value_location)
5354 <DWARF_VALUE_OPTIMIZED_OUT>: New constant.
5355 * dwarf2expr.c (dwarf_expr_stack_empty_p): New function.
5356 (add_piece): Handle empty piece.
5357 (execute_stack_op) <DW_OP_piece>: Handle
5358 DWARF_VALUE_OPTIMIZED_OUT.
5359
5360 2010-05-21 Tom Tromey <tromey@redhat.com>
5361
5362 * eval.c (evaluate_subexp_standard) <BINOP_SUBSCRIPT>: Call
5363 evaluate_subexp, not evaluate_subexp_with_coercion.
5364
5365 2010-05-21 Pierre Muller <muller@ics.u-strasbg.fr>
5366
5367 * dwarf2read.c (new_symbol): Handle DW_AT_variable_parameter
5368 attribute.
5369
5370 2010-05-21 Tom Tromey <tromey@redhat.com>
5371
5372 * dwarf2loc.c (read_pieced_value): Work properly when 'v' has an
5373 offset.
5374 (write_pieced_value): Likewise.
5375
5376 2010-05-21 Pierre Muller <muller@ics.u-strasbg.fr>
5377
5378 * dwarf2read.c (process_die): Also allow DW_TAG_const_type
5379 and DW_TAG_volatile_type.
5380 (new_symbol): Likewise.
5381
5382 2010-05-20 Pierre Muller <muller@ics.u-strasbg.fr>
5383
5384 * p-valprint.c (pascal_val_print): Call get_array_bounds
5385 to obtain the number of elements in an array.
5386
5387 2010-05-19 Doug Evans <dje@google.com>
5388
5389 * python.c (gdbpy_print_stack): Ensure output ends with a newline.
5390
5391 * python.c (source_python_script): Add comment.
5392 (source_python_script_for_objfile): Remove unnecessary call to
5393 gdbpy_print_stack.
5394
5395 2010-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
5396 Sergio Durigan Junior <sergiodj@redhat.com>
5397
5398 Code cleanup.
5399 * parse.c (exp_iterate): Use operator_length wrapper function.
5400
5401 2010-05-18 Michael Snyder <msnyder@vmware.com>
5402
5403 * ada-lang.c: White space.
5404 * ada-typeprint.c: White space.
5405 * ada-valprint.c: White space.
5406 * addrmap.c: White space.
5407 * auxv.c: White space.
5408 * ax-gdb.c: White space.
5409
5410 2010-05-18 Hui Zhu <teawater@gmail.com>
5411
5412 * linux-fork.c (inferior_call_waitpid_cleanup): Add check
5413 for oldfp.
5414 (inferior_call_waitpid): Move make_cleanup out of check.
5415 Check the return of waitpid.
5416 (delete_checkpoint_command): Add pptid to save fi->parent_ptid.
5417
5418 2010-05-17 Michael Snyder <msnyder@vmware.com>
5419
5420 * tui/tui.c: White space.
5421 * tui/tui-data.c: White space.
5422 * tui/tui-disasm.c: White space.
5423 * tui/tui-file.c: White space.
5424 * tui/tui-interp.c: White space.
5425 * tui/tui-main.c: White space.
5426 * tui/tui-out.c: White space.
5427 * tui/tui-regs.c: White space.
5428 * tui/tui-source.c: White space.
5429 * tui/tui-stack.c: White space.
5430 * tui/tui-win.c: White space.
5431 * tui/tui-winsource.c: White space.
5432
5433 * procfs.c: White space.
5434
5435 * python/py-auto-load.c: White space.
5436 * python/py-block.c: White space.
5437 * python/py-breakpoint.c: White space.
5438 * python/py-cmd.c: White space.
5439 * python/py-function.c: White space.
5440 * python/py-lazy-string.c: White space.
5441 * python/py-objfile.c: White space.
5442 * python/py-param.c: White space.
5443 * python/py-prettyprint.c: White space.
5444 * python/py-progspace.c: White space.
5445 * python/py-symtab.c: White space.
5446 * python/python.c: White space.
5447 * python/py-type.c: White space.
5448 * python/py-utils.c: White space.
5449 * python/py-value.c: White space.
5450
5451 * mi/mi-cmd-break.c: White space.
5452 * mi/mi-cmd-env.c: White space.
5453 * mi/mi-cmds.c: White space.
5454 * mi/mi-cmd-stack.c: White space.
5455 * mi/mi-cmd-var.c: White space.
5456 * mi/mi-console.c: White space.
5457 * mi/mi-getopt.c: White space.
5458 * mi/mi-interp.c: White space.
5459 * mi/mi-main.c: White space.
5460 * mi/mi-out.c: White space.
5461 * mi/mi-parse.c: White space.
5462
5463 * cli/cli-cmds.c: White space.
5464 * cli/cli-decode.c: White space.
5465 * cli/cli-dump.c: White space.
5466 * cli/cli-interp.c: White space.
5467 * cli/cli-logging.c: White space.
5468 * cli/cli-script.c: White space.
5469 * cli/cli-setshow.c: White space.
5470
5471 * valarith.c: White space.
5472 * valops.c: White space.
5473 * valprint.c: White space.
5474 * value.c: White space.
5475 * varobj.c: White space.
5476 * xcoffread.c: White space.
5477 * xml-support.c: White space.
5478 * xml-tdesc.c: White space.
5479
5480 2010-05-17 Andreas Schwab <schwab@redhat.com>
5481
5482 PR gdb/11092
5483 * c-lang.c (c_printstr): Compute real length of NUL terminated
5484 string at first.
5485
5486 2010-05-17 Joel Brobecker <brobecker@adacore.com>
5487
5488 * parse.c (parse_exp_in_context): When block is not NULL, use
5489 its associated language to parse the expression instead of
5490 the current_language.
5491
5492 2010-05-17 Joel Brobecker <brobecker@adacore.com>
5493
5494 * jv-lang.c (java_lookup_class): Remove commented out code.
5495 (type_from_class): Likewise.
5496 (java_op_print_tab): Remove commented-out elements.
5497
5498 2010-05-17 Joel Brobecker <brobecker@adacore.com>
5499
5500 * ada-lang.c (to_fixed_range_type): The the raw index type as
5501 argument instead of the raw type name. Remove orig_type parameter.
5502 Update calls throughout.
5503 (ada_fixup_array_indexes_type): New function.
5504 (ada_array_bound_from_type): Add call to ada_fixup_array_indexes_type.
5505 * ada-lang.h (ada_fixup_array_indexes_type): Add declaration.
5506 * ada-typeprint.c (print_range_type): Renames print_range_type_named.
5507 Remove name parameter.
5508 (print_array_type): Add call to ada_fixup_array_indexes_type.
5509 Update calls to print_range_type.
5510 (ada_print_type): Update calls to print_range_type.
5511
5512 2010-05-17 Pierre Muller <muller@ics.u-strasbg.fr>
5513
5514 * dwarf2read.c (read_set_type): Set type length if
5515 DW_AT_byte_size attribute is present.
5516
5517 2010-05-17 Pierre Muller <muller@ics.u-strasbg.fr>
5518
5519 * p-valprint.c (pascal_val_print): Handle set type if range limits
5520 are undefined but size is known.
5521
5522 2010-05-17 Pedro Alves <pedro@codesourcery.com>
5523
5524 * procfs.c: Reformat.
5525
5526 2010-05-16 Michael Snyder <msnyder@vmware.com>
5527
5528 * target.c: White space.
5529 * target-descriptions.c: White space.
5530 * target-memory.c: White space.
5531 * thread.c: White space.
5532 * top.c: White space.
5533 * tracepoint.c: White space.
5534 * trad-frame.c: White space.
5535 * tramp-frame.c: White space.
5536 * ui-file.c: White space.
5537 * ui-out.c: White space.
5538 * user-regs.c: White space.
5539 * utils.c: White space.
5540
5541 * scm-exp.c: White space.
5542 * scm-lang.c: White space.
5543 * scm-valprint.c: White space.
5544 * sentinel-frame.c: White space.
5545 * ser-base.c: White space.
5546 * ser-go32.c: White space.
5547 * serial.c: White space.
5548 * ser-mingw.c: White space.
5549 * ser-pipe.c: White space.
5550 * ser-tcp.c: White space.
5551 * ser-unix.c: White space.
5552 * solib.c: White space.
5553 * solib-darwin.c: White space.
5554 * solib-frv.c: White space.
5555 * solib-irix.c: White space.
5556 * solib-osf.c: White space.
5557 * solib-pa64.c: White space.
5558 * solib-som.c: White space.
5559 * solib-spu.c: White space.
5560 * solib-svr4.c: White space.
5561 * solib-target.c: White space.
5562 * source.c: White space.
5563 * stabsread.c: White space.
5564 * stack.c: White space.
5565 * std-regs.c: White space.
5566 * symfile.c: White space.
5567 * symmisc.c: White space.
5568 * symtab.c: White space.
5569
5570 2010-05-16 Michael Snyder <msnyder@vmware.com>
5571
5572 * source.c (_initialize_source): Add "rev" as an abbreviation
5573 for the "reverse-search" command.
5574
5575 2010-05-16 Michael Snyder <msnyder@vmware.com>
5576
5577 * record.c: White space.
5578 * regcache.c: White space.
5579 * reggroups.c: White space.
5580 * remote-fileio.c: White space.
5581 * remote-m32r-sdi.c: White space.
5582 * remote-mips.c: White space.
5583 * remote-sim.c: White space.
5584 * remote.c: White space.
5585 (process_g_packet): Remove orphan braces.
5586
5587 2010-05-15 Michael Snyder <msnyder@vmware.com>
5588
5589 * parse.c: White space.
5590 * p-lang.c: White space.
5591 * posix-hdep.c: White space.
5592 * printcmd.c: White space.
5593 * progspace.c: White space.
5594 * prologue-value.c: White space.
5595 * psymtab.c: White space.
5596 * p-typeprint.c: White space.
5597 * p-valprint.c: White space.
5598
5599 * objc-lang.c: White space.
5600 * objfiles.c: White space.
5601 * observer.c: White space.
5602 * osabi.c: White space.
5603 * osdata.c: White space.
5604
5605 * m2-lang.c: White space.
5606 * m2-valprint.c: White space.
5607 * macrocmd.c: White space.
5608 * macroexp.c: White space.
5609 * macroscope.c: White space.
5610 * macrotab.c: White space.
5611 * main.c: White space.
5612 * maint.c: White space.
5613 * mdebugread.c: White space.
5614 * memattr.c: White space.
5615 * minsyms.c: White space.
5616 * monitor.c: White space.
5617
5618 2010-05-14 Michael Snyder <msnyder@vmware.com>
5619
5620 * jv-lang.c: White space.
5621 * jv-typeprint.c: White space.
5622 * jv-valprint.c: White space.
5623 * language.c: White space.
5624 * libunwind-frame.c: White space.
5625 * linespec.c: White space.
5626 * linux-nat.c: White space.
5627 * linux-record.c: White space.
5628 * linux-thread-db.c: White space.
5629
5630 * infcall.c: White space.
5631 * inf-child.c: White space.
5632 * infcmd.c: White space.
5633 * inferior.c: White space.
5634 * inf-loop.c: White space.
5635 * inflow.c: White space.
5636 * inline-frame.c: White space.
5637 * interps.c: White space.
5638
5639 * gcore.c: White space.
5640 * gdb.c: White space.
5641 * gdbtypes.c: White space.
5642 * gnu-nat.c: White space.
5643 * gnu-v2-abi.c: White space.
5644 * gnu-v3-abi.c: White space.
5645
5646 * findcmd.c: White space.
5647 * findvar.c: White space.
5648 * fork-child.c: White space.
5649 * frame-base.c: White space.
5650 * frame.c: White space.
5651 * frame-unwind.c: White space.
5652 * f-valprint.c: White space.
5653
5654 * elfread.c: White space.
5655 * environ.c: White space.
5656 * eval.c: White space.
5657 * event-loop.c: White space.
5658 * event-top.c: White space.
5659 * exceptions.c: White space.
5660 * exec.c: White space.
5661 * expprint.c: White space.
5662
5663 * dbxread.c: White space.
5664 * dcache.c: White space.
5665 * disasm.c: White space.
5666 * doublest.c: White space.
5667 * dsrec.c: White space.
5668 * dummy-frame.c: White space.
5669 * dwarf2expr.c: White space.
5670 * dwarf2-frame.c: White space.
5671 * dwarf2loc.c: White space.
5672 * dwarf2read.c: White space.
5673
5674 2010-05-14 Phil Muldoon <pmuldoon@redhat.com>
5675
5676 PR python/11482
5677
5678 * python/py-value.c (valpy_hash): New function.
5679 (value_object_type): Register valpy_hash.
5680
5681 2010-05-14 Hui Zhu <teawater@gmail.com>
5682 Michael Snyder <msnyder@vmware.com>
5683
5684 * linux-fork.c (gdbthread.h): New include.
5685 (fork_info): Add parent_ptid.
5686 (inferior_call_waitpid_cleanup, inferior_call_waitpid): New
5687 functions.
5688 (delete_checkpoint_command): Call inferior_call_waitpid.
5689 (checkpoint_command): Set parent_ptid.
5690
5691 2010-05-13 Michael Snyder <msnyder@vmware.com>
5692
5693 * dictionary.c: Re-indent to GNU coding standard.
5694
5695 * charset.c: White space.
5696 * c-lang.c: White space.
5697 * cli-out.c: White space.
5698 * coffread.c: White space.
5699 * complaints.c: White space.
5700 * completer.c: White space.
5701 * corefile.c: White space.
5702 * corelow.c: White space.
5703 * cp-abi.c: White space.
5704 * cp-namespace.c: White space.
5705 * cp-support.c: White space.
5706 * cp-valprint.c: White space.
5707 * c-typeprint.c: White space.
5708 * c-valprint.c: White space.
5709 * blockframe.c: White space.
5710 * breakpoint.c: White space.
5711 * buildsym.c: White space.
5712 * blockframe.c: White space.
5713 * bcache.c: White space.
5714 * gdbarch.sh: White space, add blank lines.
5715 * arch-utils.c: Ditto.
5716 * gdbarch.c: Regenerate.
5717 * frame.c: White space, add blank lines.
5718 * stack.c: White space, add blank lines.
5719 (initialize_stack): Remove long-dead code.
5720
5721 2010-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
5722
5723 Code cleanup.
5724 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Change the parameter to type.
5725 (locexpr_read_variable, loclist_read_variable): Update the callers.
5726
5727 2010-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
5728
5729 Code cleanup.
5730 * dwarf2read.c (die_type, die_descriptive_type): Remove variable type.
5731 Remove check of NULL returned by tag_type_to_type.
5732 (die_containing_type): Remove variable type. Remove type_die variable
5733 initialization. Remove check of NULL returned by tag_type_to_type.
5734
5735 2010-05-11 Pierre Muller <muller@ics.u-strasbg.fr>
5736
5737 PR exp/11530.
5738 * gdbtypes.c (lookup_struct_elt_type): Also lookup
5739 names of unnamed structures or unions.
5740
5741 2010-05-11 Pierre Muller <muller@ics.u-strasbg.fr>
5742
5743 * procfs.c (proc_watchpoint_address): New function.
5744 (procfs_stopped_by_watchpoint): Remove useless check after
5745 find_procinfo_or_die call.
5746 (procfs_stopped_data_address): New function.
5747 (procfs_use_watchpoints): Register new watchpoint related function.
5748
5749 2010-05-11 Tom Tromey <tromey@redhat.com>
5750
5751 * eval.c (evaluate_subexp_standard): Revert inadvertent change.
5752
5753 2010-05-10 Michael Snyder <msnyder@vmware.com>
5754
5755 * utils.c: White space cleanup.
5756
5757 2010-05-10 Tom Tromey <tromey@redhat.com>
5758
5759 * eval.c (ptrmath_type_p): Add 'lang' argument.
5760 (evaluate_subexp_standard): Update.
5761 (evaluate_subexp_with_coercion): Update.
5762 * language.h (CAST_IS_CONVERSION): Add 'LANG' argument.
5763
5764 2010-05-10 Michael Snyder <msnyder@vmware.com>
5765
5766 * utils.c (do_fclose_cleanup) Restore local variable.
5767
5768 2010-05-09 Doug Evans <dje@google.com>
5769
5770 * record.c (init_record_core_ops): Rename record_core to record-core.
5771
5772 2010-05-08 Joel Brobecker <brobecker@adacore.com>
5773
5774 Implement task switching on pa-hpux.
5775 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): New function.
5776 (inf_ttrace_target): Set t->to_get_ada_task_ptid.
5777
5778 2010-05-08 Pierre Muller <muller@ics.u-strasbg.fr>
5779
5780 * valops.c (find_overload_match): Add missing i18n markup.
5781
5782 2010-05-08 Pierre Muller <muller@ics.u-strasbg.fr>
5783
5784 * p-exp.y (exp : SIZEOF '(' exp ')'): New rule.
5785
5786 2010-05-08 Jan Kratochvil <jan.kratochvil@redhat.com>
5787
5788 * dwarf2read.c (typename_concat): Use (char *) NULL terminated stdarg
5789 list for the obconcat call.
5790 * mdebugread.c (parse_symbol): Likewise.
5791 * stabsread.c (define_symbol, read_member_functions, read_cpp_abbrev):
5792 Likewise.
5793 * symfile.c (obconcat): Replace the s1, s2 and s3 parameters by `...'.
5794 New variable ap. Remove variables len and val.
5795 * symfile.h (obconcat): Likewise for the prototype.
5796
5797 2010-05-07 Michael Snyder <msnyder@vmware.com>
5798
5799 * python/python.c (execute_gdb_command): Remove unused variables.
5800 * python/py-block.c (gdbpy_block_for_pc): Remove unused variable.
5801 * python/py-breakpoint.c (gdbpy_breakpoint_created):
5802 Remove unused variable.
5803 * python/py-cmd.c (cmdpy_function): Remove unused variable.
5804 (cmdpy_completer): Remove unused variable.
5805 * python/py-frame.c (frapy_find_sal): Remove unused variable.
5806 * python/py-function.c (fnpy_call): Remove unused variable.
5807 * python/py-objfile.c (objfile_to_objfile_object):
5808 Remove unused variable.
5809 * python/py-param.c (parmpy_init): Remove unused variable.
5810 * python/py-prettyprint.c (apply_varobj_pretty_printer):
5811 Remove unused variable.
5812 (gdbpy_default_visualizer): Remove unused variable.
5813 * python/py-progspace.c (pspace_to_pspace_object):
5814 Remove unused variable.
5815 * python/py-symtab.c (symtab_and_line_to_sal_object):
5816 Remove unused variable.
5817 * python/py-type.c (typy_template_argument):
5818 Remove unused variable.
5819 * python/py-value.c (valpy_string): Remove unused variable.
5820 (convert_value_from_python): Remove unused variables.
5821
5822 2010-05-07 Michael Snyder <msnyder@vmware.com>
5823
5824 * valops.c (value_cast_pointers): Restore unused variable 'type1',
5825 and use it to compute variable 't1'.
5826
5827 2010-05-07 Joel Brobecker <brobecker@adacore.com>
5828
5829 * ada-lang.c (assign_aggregate): Remove unused variable.
5830
5831 2010-05-07 Sami Wagiaalla <swagiaal@redhat.com>
5832
5833 PR C++/7943:
5834 * valops.c (find_overload_match): Handle fsym == NULL case.
5835 Add int no_adl argument.
5836 (find_oload_champ_namespace_loop): Call make_symbol_overload_list_adl
5837 when appropriate.
5838 Add int no_adl argument.
5839 (find_oload_champ_namespace): Add int no_adl argument.
5840 * parse.c (operator_length_standard): Return length for OP_ADL_FUNC
5841 expression.
5842 * expprint.c (op_name_standard): Added string for OP_ADL_FUNC case.
5843 * eval.c (evaluate_subexp_standard): Added OP_ADL_FUNC case.
5844 Evaluate arguments and use them to perform ADL lookup.
5845 Pass no_adl argument to find_overload_match.
5846 Disable adl lookup when evaluating a fully qualified OP_FUNCALL.
5847 * cp-support.h: Added prototype for
5848 make_symbol_overload_list_namespace.
5849 * cp-support.c (make_symbol_overload_list_namespace): New function.
5850 (make_symbol_overload_list_adl_namespace): New function.
5851 (make_symbol_overload_list_adl): New function.
5852 (make_symbol_overload_list_using): Moved code to add function to
5853 overload set to make_symbol_overload_list_namespace.
5854 * c-exp.y: create UNKNOWN_CPP_NAME token.
5855 Add parse rule for ADL functions.
5856 (classify_name): Recognize an UNKNOWN_CPP_NAME.
5857
5858 2010-05-07 Jan Kratochvil <jan.kratochvil@redhat.com>
5859
5860 * fbsd-nat.c (fbsd_make_corefile_notes): Add cast to NULL used as
5861 sentinel.
5862
5863 2010-05-07 Joel Brobecker <brobecker@adacore.com>
5864
5865 Implement task switching on solaris targets.
5866 * sol-thread.c (thread_db_find_thread_from_tid)
5867 (sol_get_ada_task_ptid): New functions.
5868 (init_sol_thread_ops): Set sol_thread_ops.to_get_ada_task_ptid.
5869
5870 2010-05-07 Pedro Alves <pedro@codesourcery.com>
5871
5872 * remote.c (remote_query_supported_append): Use reconcat.
5873 (remote_query_supported): Install a cleanup. Use reconcat.
5874
5875 2010-05-07 Pedro Alves <pedro@codesourcery.com>
5876
5877 * gdbarch.sh (qsupported): Delete.
5878 * gdbarch.h, gdbarch.c: Regenerate.
5879 * remote.c (remote_query_supported): Remove use of
5880 gdbarch_qsupported.
5881
5882 2010-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
5883
5884 * xml-syscall.c (syscall_start_syscalls_info): Remove unused
5885 function.
5886
5887 2010-05-06 Michael Snyder <msnyder@vmware.com>
5888
5889 * xml-support.c (xinclude_start_include): Delete unused variable.
5890 (xml_process_xincludes): Delete unused variable.
5891 * xml-syscall.c (syscall_parse_xml): Delete unused variable.
5892 * target-descriptions.c (tdesc_gdb_type): Delete unused variable.
5893 (tdesc_find_arch_register): Delete unused variable.
5894 (tdesc_use_registers): Delete unused variable.
5895 * xml-tdesc.c (tdesc_start_target): Delete unused variable.
5896 * inferior.c (print_inferior): Delete unused variable.
5897 * record.c (record_open_1): Delete unused variable.
5898 (record_restore): Delete unused variable.
5899 (cmd_record_save): Delete unused variable.
5900 * gcore.c (derive_heap_segment): Delete unused variable.
5901 (objfile_find_memory_regions): Use unused variable.
5902 * jit.c (jit_inferior_init): Delete unused variable.
5903 * progspace.c (clone_program_space): Delete unused variable.
5904 (pspace_empty_p): Delete unused variable.
5905
5906 * frame-unwind.c (frame_unwind_find_by_frame):
5907 Delete unused variable.
5908 * gnu-v2-abi.c (gnuv2_value_rtti_type): Delete unused variable.
5909 * cp-support.c (mangled_name_to_comp): Delete unused variable.
5910 (method_name_from_physname): Delete unused variable.
5911 (cp_func_name): Delete unused variable.
5912 (cp_validate_operator): Delete unused variable.
5913 * cp-namespace.c (cp_scan_for_anonymous_namespaces):
5914 Delete unused variable.
5915 * trad-frame.c (trad_frame_get_prev_register):
5916 Delete unused variable.
5917 * tramp-frame.c (tramp_frame_cache): Delete unused variable.
5918
5919 * serial.c (serial_for_fd): Delete unused variable.
5920 * mdebugread.c (psymtab_to_symtab_1): Delete unused variable.
5921 * top.c (execute_command): Delete unused variable.
5922 (init_main): Delete unused variable.
5923 * utils.c (do_fclose_cleanup): Delete unused variable.
5924 (do_all_inferior_continuations): Delete unused variable.
5925 (initialize_utils): Delete unused variable.
5926 (internal_problem_mode): Delete unused global.
5927 * frame.c (get_prev_frame): Delete unused global.
5928 (get_frame_locals_address): Delete unused global.
5929 (get_frame_args_address): Delete unused global.
5930
5931 * p-typeprint.c (pascal_type_print_base): Delete unused variable.
5932 (pascal_type_print_varspec_prefix): Delete unused variable.
5933 * f-typeprint.c (f_type_print_base): Delete unused variable.
5934 (f_type_print_varspec_suffix): Delete unused variable.
5935 * m2-typeprint.c (m2_print_type): Delete unused variable.
5936 (m2_long_set): Delete unused variable.
5937 * ada-valprint.c (ada_val_print_1): Delete unused variable.
5938 * d-valprint.c (dynamic_array_type): Delete unused variable.
5939 * f-valprint.c (f77_get_dynamic_length_of_aggregate):
5940 Delete unused variable.
5941 (f77_create_arrayprint_offset_tbl): Delete unused variable.
5942 * m2-valprint.c (m2_val_print): Delete unused variable.
5943
5944 * ui-out.c (ui_out_field_int): Delete unused variable.
5945 (ui_out_field_fmt_int): Delete unused variable.
5946 * varobj.c (varobj_list_children): Delete unused variable.
5947 (varobj_set_value): Delete unused variable.
5948 (install_new_value_visualizer): Delete unused variable.
5949 (varobj_set_visualizer): Delete unused variable.
5950 (varobj_update): Delete unused variable.
5951 (varobj_editable_p): Delete unused variable.
5952 (c_value_of_root): Delete unused variable.
5953 (cplus_describe_child): Delete unused variable.
5954
5955 * ada-lang.c (add_defn_to_vec): Delete unused variable.
5956 (decode_constrained_packed_array_type): Delete unused variable.
5957 (add_defn_to_vec): Delete unused variable.
5958 (symbol_completion_match): Delete unused variable.
5959 (value_tag_from_contents_and_address): Delete unused variable.
5960 (ada_evaluate_subexp): Delete unused variable.
5961 * c-lang.c (classify_type): Delete unused variable.
5962 * f-lang.c (f_printstr): Delete unused variable.
5963 * objc-lang.c (objc_printstr): Delete unused variable.
5964 * ada-tasks.c (get_known_tasks_addr): Delete unused variable.
5965 * jv-lang.c (type_from_class): ifdef unused variable.
5966 (java_class_name_from_physname): Delete unused variable.
5967 * m2-lang.c (m2_printstr): Delete unused variable.
5968
5969 * objfiles.c (objfile_relocate): Delete unused variable.
5970 * maint.c (_initialize_maint_cmds): Delete unused variable.
5971 * demangle.c (_initialize_demangler): Delete unused variable.
5972 * corefile.c (reopen_exec_file): Delete unused variable.
5973 * dwarf2expr.c (dwarf2_read_address): Delete unused variable.
5974 * dwarf2-frame.c (decode_frame_entry): Delete unused variable.
5975
5976 * osabi.c (_initialize_gdb_osabi): Delete unused variable.
5977 * memattr.c (mem_delete): Delete unused variable.
5978 (invalidate_target_mem_regions): Delete unused variable.
5979 * mem-break.c (default_memory_insert_breakpoint):
5980 Delete unused variable.
5981 * target.c (target_get_osdata): Delete unused variable.
5982 * parse.c (length_of_subexp): Delete unused variable.
5983 (prefixify_subexp): Delete unused variable.
5984 (exp_iterate): Delete unused variable.
5985 * reverse.c (delete_bookmark_command): Delete unused variable.
5986
5987 * macrocmd.c (_initialize_macrocmd): Delete unused variable.
5988 * macroexp.c (gather_arguments): Delete unused variable.
5989 (substitute_args): Delete unused variable.
5990 * completer.c (gdb_completer_loc_break_characters): Unused, delete.
5991 * gdbarch.sh (gdbarch_printable_names): Delete unused variable.
5992 (_initialize_gdbarch): Delete unused variable.
5993 * gdbarch.c, gdbarch.h: Regenerate.
5994 * arch-utils.c (initialize_current_architecture):
5995 Delete unused variable.
5996 (_initialize_gdbarch_utils): Delete unused variable.
5997 * gdbtypes.c (make_cv_type): Delete unused variable.
5998 (make_type_with_address_space): Delete unused variable.
5999
6000 * linespec.c (decode_compound): Delete unused variable.
6001 * dictionary.c (iterator_next_hashed): Delete unused variable.
6002 * infcall.c (call_function_by_hand): Delete unused variable.
6003 * infcmd.c (step_1): Delete unused variable.
6004 (registers_info): Delete unused variable.
6005 (attach_command): Delete unused variable.
6006 * infrun.c (follow_exec): Delete unused variable.
6007 (handle_step_into_function_backwards): Delete unused variable.
6008 (_initialize_infrun): Delete unused variable.
6009 * stack.c (parse_frame_specification_1): Delete unused variable.
6010 (frame_info): Delete unused variable.
6011 (backtrace_command_1): Delete unused variable.
6012 (catch_info): Delete unused variable.
6013
6014 * eval.c (evaluate_subexp_standard): Delete unused variable.
6015 * valops.c (value_cast_pointers): Delete unused variable.
6016 (value_dynamic_cast): Delete unused variable.
6017 (value_array): Delete unused variable.
6018 (find_overload_match): Delete unused variable.
6019 * valarith.c (value_subscript): Delete unused variable.
6020 (value_binop): Delete unused variable.
6021 * valprint.c (_initialize_valprint): Delete unused variable.
6022 * printcmd.c (print_command_1): Delete unused variable.
6023 (address_info): Delete unused variable.
6024 (printf_command): Delete unused variable.
6025
6026 * auxv.c (target_auxv_search): Delete unused variable.
6027 * blockframe.c (get_frame_block): Delete unused variable.
6028 * regcache.c (regcache_cpy): Delete unused variable.
6029 (regcache_cpy_no_passthrough): Delete unused variable.
6030 * charset.c (wchar_iterate): Delete unused variable.
6031 (find_charset_names): Delete unused variable.
6032 (_initialize_charset): Delete unused variable.
6033 * disasm.c (do_mixed_source_and_assembly):
6034 Delete unused variable.
6035 * source.c (set_default_source_symtab_and_line):
6036 Delete unused variable.
6037 (set_substitute_path_command): Delete unused variable.
6038 * value.c (preserve_values): Delete unused variable.
6039 (value_from_double): Delete unused variable.
6040
6041 2010-05-05 Michael Snyder <msnyder@vmware.com>
6042
6043 * psymtab.c (lookup_partial_symbol): Delete unused variable.
6044 (find_last_source_symtab_from_partial): Delete unused variable.
6045 * symfile.c (place_section): Delete unused variable.
6046 (default_symfile_offsets): Delete unused variable.
6047 (get_debug_link_info): Delete unused variable.
6048 (find_separate_debug_file_by_debuglink): Delete unused variable.
6049 (add_symbol_file_command): Delete unused variable.
6050 (symfile_find_segment_sections): Delete unused variable.
6051 * symmisc.c (free_symtab): Delete unused variable.
6052 (dump_symtab_1): Delete unused variable.
6053 * symtab.c (lookup_symbil_aux_quick): Delete unused variable.
6054 (find_pc_sect_symtab): Delete unused variable.
6055 (skip_prologue_using_lineinfo): Delete unused variable.
6056 (sources_info): Delete unused variable.
6057 (completion_list_add_name): Delete unused variable.
6058 (expand_line_sal): Delete unused variable.
6059
6060 * breakpoint.c (validate_commands_for_breakpoint):
6061 Delete unused variables.
6062 (insert_catchpoint): Delete unused variable.
6063 (update_watchpoint): Delete unused variable.
6064 (insert_bp_location): Delete unused variable.
6065 (insert_breakpoint_locations): Delete unused variable.
6066 (remove_breakpoint_1): Delete unused variable.
6067 (software_breakpoint_inserted_here_p): Delete unused variable.
6068 (watchpoints_triggered): Delete unused variable.
6069 (bpstat_check_watchpoint): Delete unused variable.
6070 (bpstat_stop_status): Delete unused variable.
6071 (print_one_breakpoint_location): Delete unused variable.
6072 (allocate_bp_location): Delete unused variable.
6073 (create_breakpoint): Delete unused variable.
6074 (watch_command_1): Delete unused variable.
6075 (catch_exception_command_1): Delete unused variable.
6076 (catch_ada_exception_command): Delete unused variable.
6077 (delete_breakpoint): Delete unused variable.
6078 (breakpoint_re_set_one): Delete unused variable.
6079 (do_enable_breakpoint): Delete unused variable.
6080
6081 2010-05-06 Pedro Alves <pedro@codesourcery.com>
6082
6083 * amd64-tdep.c: Include disasm.h.
6084 (amd64_insn_length_fprintf, amd64_insn_length_init_dis)
6085 (amd64_insn_length): Moved to disasm.c and renamed.
6086 (fixup_riprel): Adjust.
6087 * disasm.c (do_ui_file_delete): New.
6088 (gdb_insn_length): New.
6089 (gdb_buffered_insn_length_fprintf)
6090 (gdb_buffered_insn_length_init_dis)
6091 (gdb_buffered_insn_length): New, moved from amd64-tdep.c, and
6092 renamed.
6093 * disasm.h (gdb_insn_length): Declare.
6094 (gdb_buffered_insn_length): Declare.
6095
6096 2010-05-06 Pedro Alves <pedro@codesourcery.com>
6097
6098 * remote.c (clear_threads_parsing_context): New.
6099 (remote_threads_info): Delete unused null_cleanup. Install a
6100 cleanup to clear the threads_parsing_context in case parsing
6101 throws.
6102
6103 2010-05-05 Michael Snyder <msnyder@vmware.com>
6104
6105 * c-exp.y (parse_string_or_char): Delete unused variable.
6106 (c_lex): Delete unused variable.
6107 * cp-name-parser.y (cpname_lex): Delete unused variable.
6108 * ada-exp.y (find_primitive_type): Delete unused variable.
6109 (write_var_or_type): Delete unused variable.
6110 * jv-exp.y (java_parse): Delete unused variable.
6111 (push_expression_name): Delete unused variable.
6112 * p-exp.y (pascal_lex): Delete unused variable.
6113
6114 2010-05-05 Pedro Alves <pedro@codesourcery.com>
6115
6116 * remote.c (remote_threads_info): Really revert previous previous
6117 change.
6118
6119 2010-05-05 Michael Snyder <msnyder@vmware.com>
6120
6121 * elfread.c (elf_symtab_read): Delete unused variable.
6122 (find_separate_debug_file_by_buildid): Delete unused variables.
6123 (elf_symfile_read): Delete unused variable.
6124
6125 * coffread.c (coff_symfile_read): Delete unused variables.
6126
6127 * coff-pe-read.c (add_pe_exported_sym): Delete unused variable.
6128 (read_pe_exported_syms): Delete unused variable.
6129
6130 * stabsread.c (define_symbol): Delete unused variable.
6131
6132 * dwarf2read.c (read_type_comp_unit_head): Delete unused variable.
6133 (process_psymtab_comp_unit): Delete unused variable.
6134 (dwarf2_build_psymtabs_hard): Delete unused variable.
6135 (load_partial_comp_unit): Delete unused variable.
6136 (create_all_comp_units): Delete unused variable.
6137 (scan_partial_symbols): Delete unused variable.
6138 (add_partial_symbol): Delete unused variable.
6139 (add_partial_namespace): Delete unused variable.
6140 (add_partial_enumeration): Delete unused variable.
6141 (load_full_comp_unit): Delete unused variable.
6142 (process_full_comp_unit): Delete unused variable.
6143 (read_file_scope): Delete unused variable.
6144 (read_type_unit_scope): Delete unused variable.
6145 (process_structure_scope): Delete unused variable.
6146 (process_enumeration_scope): Delete unused variable.
6147 (read_tag_ptr_to_member_type): Delete unused variable.
6148 (read_typedef): Delete unused variable.
6149 (read_partial_die): Delete unused variable.
6150 (decode_locdesc): Delete unused variable.
6151 (zeroed_partial_die): Delete unused global variable.
6152
6153 * tui/tui-interp.c (_initialize_tui_interp):
6154 Delete unused variable.
6155 * tui/tui-regs.c tui_display_registers_from):
6156 Delete unused variable.
6157 (tui_check_register_values): Delete unused variable.
6158 (tui_register_format): Delete unused variable.
6159 * tui/tui-win.c (_initialize_tui_win): Delete unused variable.
6160 * tui/tui-windata.c (tui_display_data_from_line):
6161 Delete unused variables.
6162 (tui_vertical_data_scroll): Delete unused variables.
6163
6164 2010-05-05 Michael Snyder <msnyder@vmware.com>
6165
6166 * remote.c (remote_threads_info): Revert questionable part of
6167 the previous change.
6168
6169 2010-05-05 Michael Snyder <msnyder@vmware.com>
6170
6171 * mi/mi-out.c (mi_table_begin): Delete unused variable.
6172 * mi/mi-cmd-var.c (print_varobj): Delete unused variable.
6173 (mi_cmd_var_list_children): Delete unused variable.
6174 (varobj_update_one): Delete unused variable.
6175 * mi/mi-cmd-break.c (mi_cmd_break_insert): Delete unused variables.
6176 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals):
6177 Delete unused variable.
6178 (mi_cmd_stack_list_variables): Delete unused variable.
6179 (list_args_or_locals): Delete unused variable.
6180 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file):
6181 Delete unused variables.
6182 (mi_cmd_file_list_exec_source_files): Delete unused variable.
6183 * mi/mi-cmd-target.c (mi_cmd_target_file_delete):
6184 Delete unused variable.
6185 * mi/mi-interp.c (mi_interpreter_exec): Delete unused variable.
6186 (mi_cmd_interpreter_exec): Delete unused variable.
6187 (mi_on_normal_stop): Delete unused variable.
6188 * mi/mi-main.c (run_one_inferior): Delete unused variable.
6189 (print_one_inferior): Delete unused variables.
6190 (mi_execute_command): Delete unused variable.
6191 (mi_cmd_execute): Delete unused variable.
6192 (timestamp): Delete unused variable.
6193
6194 * cli/cli-dump.c (dump_memory_to_file): Delete unused variable.
6195 (restore_binary_file): Delete unused variable.
6196 * cli/cli-decode.c (deprecated_cmd_warning): Delete unused variables.
6197 * cli/cli-script.c (define_command): Delete unused variables.
6198 (recurse_read_control_structure): Delete unused variable.
6199 (script_from_file): Delete unused variable.
6200 * cli/cli-cmds.c (complete_command): Delete unused variable.
6201 (disassemble_command): Delete unused variable.
6202
6203 * ax-gdb.c (gen_struct_elt_for_reference): Delete unused variables.
6204 * tracepoint.c (delete_trace_variable_command):
6205 Delete unused variables.
6206 (encode_actions_1): Delete unused variables.
6207 (start_tracing): Delete unused variable.
6208 (trace_status_mi): Delete unused variable.
6209 (tfind_1): Delete unused variable.
6210 (trace_find_pc_command): Delete unused variable.
6211 (trace_find_line_command): Delete unused variables.
6212 (trace_find_range_command): Delete unused variables.
6213 (trace_find_outside_command): Delete unused variables.
6214 (parse_tracepoint_definition): Delete unused variables.
6215 (tfile_fetch_registers): Delete unused variable.
6216
6217 * dcache.c (dcache_init): Delete unused variable.
6218 (dcache_info): Delete unused variable.
6219
6220 * remote.c (remote_threads_info): Delete unused variable.
6221 (process_stop_reply) :Delete unused variable.
6222 (remote_get_trace_status): Delete unused variables.
6223
6224 * linux-thread-db.c (add_thread_db_info): Delete unused variable.
6225 (thread_from_lwp): Delete unused variable.
6226 (enable_thread_event_reporting): Delete unused variable.
6227 (check_for_thread_db): Delete unused variables.
6228 (thread_db_find_new_threads_2): Delete unused variable.
6229
6230 * linux-fork.c (info_checkpoints_command): Delete unused variables.
6231 (checkpoint_command): Delete unused variable.
6232 (linux_fork_context): Delete unused variables.
6233
6234 * linux-nat.c (linux_parent_pid): Delete unused global variable.
6235 (linux_tracefork_child): Delete unused variable.
6236 (linux_child_follow_fork): Delete unused variable.
6237 (linux_nat_detach): Delete unused variable.
6238 (linux_handle_extended_wait): Delete unused variable.
6239 (linux_nat_has_pending_sigint): Delete unused variable.
6240 (linux_nat_find_memory_regions): Delete unused variable.
6241 (linux_nat_make_corefile_notes): Delete unused variables.
6242 (linux_nat_info_proc_cmd): Delete unused variable.
6243 (linux_proc_pending_signals): Delete unused variable.
6244 (linux_nat_stop_lwp): Delete unused variables.
6245 (_initialize_linux_nat): Delete unused variable.
6246
6247 * ser-pipe.c (pipe_ops): Delete unused global variable.
6248
6249 * linux-record.c (record_linux_system_call):
6250 Delete unused variables.
6251
6252 * corelow.c (core_xfer_partial): Delete unused variables.
6253
6254 * solib-svr4.c (find_program_interpreter): Delete unused variable.
6255 (svr4_solib_create_inferior_hook): Add ifdef around
6256 conditionally-used variable declarations.
6257
6258 * solib.c (solib_find): Delete unused variable.
6259 (free_so_symbols): Delete unused variable.
6260 (info_sharedlibrary_command): Delete unused variable.
6261 (reload_shared_libraries_1): Delete unused variable.
6262 (_initialize_solib): Delete unused variable.
6263
6264 * i386-tdep.c (i386_supply_xstateregset) Delete unused variable.
6265 (i386_collect_xstateregset): Delete unused variable.
6266 * i387-tdep.c (i387_print_float_info): Delete unused variable.
6267
6268 * features/i386/i386-mmx.c (initialize_tdesc_i386_mmx):
6269 Delete unused variable 'type'.
6270
6271 2010-05-05 Joel Brobecker <brobecker@adacore.com>
6272
6273 * gdbtypes.h (MAX_OF_TYPE, MIN_OF_TYPE): Delete macros. *
6274 ada-lang.c: Remove comment mentioning these macros.
6275 * m2-exp.y: Delete commented out code.
6276
6277 2010-05-05 Joel Brobecker <brobecker@adacore.com>
6278
6279 * sparc-tdep.c (sparc_structure_or_union_p): Return non-zero
6280 for array types.
6281 * sparc64-tdep.c (sparc64_structure_or_union_p): Likewise.
6282
6283 2010-05-04 Pierre Muller <muller@ics.u-strasbg.fr>
6284
6285 ARI fix: Remove ATTRIBUTE_UNUSED throughout.
6286 * arm-linux-tdep.c (arm_linux_cleanup_svc): Remove
6287 ATTRIBUTE_UNUSED.
6288 (cleanup_kernel_helper_return): Likewise.
6289 * arm-tdep.c (copy_unmodified): Likewise.
6290 (copy_preload): Likewise.
6291 (copy_copro_load_store): Likewise.
6292 (cleanup_branch): Likewise.
6293 (copy_b_bl_blx): Likewise.
6294 (copy_bx_blx_reg): Likewise.
6295 (copy_alu_imm): Likewise.
6296 (copy_alu_reg): Likewise.
6297 (copy_alu_shifted_reg): Likewise.
6298 (cleanup_load): Likewise.
6299 (cleanup_store): Likewise.
6300 (cleanup_block_load_pc): Likewise.
6301 (cleanup_svc): Likewise.
6302 (copy_undef): Likewise.
6303 (copy_unpred): Likewise.
6304 * remote.c (register_remote_support_xml): Likewise.
6305
6306 2010-05-05 Hui Zhu <teawater@gmail.com>
6307
6308 * gdbarch.h (gdbarch_has_dos_based_file_system): Update comment.
6309
6310 2010-05-04 Mark Kettenis <kettenis@gnu.org>
6311
6312 * remote.c (register_remote_support_xml)
6313 (remote_query_supported_append, remote_query_supported): Add cast
6314 to NULL used as sentinel.
6315 * tracepoint.c (tvariables_info_1): Likewise.
6316 * utils.c (add_internal_problem_command): Likewise.
6317
6318 2010-05-04 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
6319
6320 * dwarf2loc.c (read_pieced_value, write_pieced_value,
6321 dwarf2_evaluate_loc_desc): Handle not being able to access DWARF
6322 registers gracefully.
6323
6324 2010-05-04 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
6325
6326 * exec.c (print_section_info): Display entry point without arch
6327 specific parts.
6328
6329 2010-05-04 Pierre Muller <muller@ics.u-strasbg.fr>
6330
6331 PR exp/11349.
6332 * printcmd.c (x_command): Only dereference once implicitly for
6333 TYPE_CODE_REF.
6334
6335 2010-05-03 Doug Evans <dje@google.com>
6336
6337 * event-loop.c (gdb_timer): Delete unused global.
6338 (create_timer): Update.
6339
6340 2010-05-03 Jan Kratochvil <jan.kratochvil@redhat.com>
6341
6342 * cp-namespace.c (cp_lookup_symbol_imports): Support ALIAS for the
6343 CURRENT->DECLARATION case.
6344 * cp-support.h (struct using_direct): Provide extended comment.
6345
6346 2010-05-03 Mark Kettenis <kettenis@gnu.org>
6347
6348 * hppaobsd-tdep.c (HPPAOBSD_SIZEOF_GREGS): Renamed from
6349 HPPABSD_SIZEOF_GREGS.
6350 (HPPAOBSD_SIZEOF_FPREGS): New define.
6351 (hppaobsd_supply_gregset): Renamed from hppabsd_supply_gregset.
6352 (hppaobsd_supply_fpregset): New function.
6353 (hppaobsd_gregset): Renamed from hppabsd_gregset.
6354 (hppaobsd_fpregset): New variable.
6355 (hppaobsd_regset_from_core_section): Handle floating-point registers.
6356 (_initialize_hppabsd_tdep): Remove spurious blank line.
6357
6358 2010-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
6359
6360 PR pascal/11349.
6361 * p-valprint.c (pascal_value_print): Always dereference a value with
6362 type code TYPE_CODE_REF.
6363
6364 2010-05-03 Pedro Alves <pedro@codesourcery.com>
6365
6366 * remote.c (remote_notice_signals): New.
6367 (remote_start_remote): In non-stop mode, update the remote end on
6368 which signals it can silently pass.
6369 (init_remote_ops): Install remote_notice_signals.
6370
6371 2010-05-02 Jan Kratochvil <jan.kratochvil@redhat.com>
6372
6373 * cli/cli-cmds.h (error_no_arg): Remove. Move the comment ...
6374 * command.h (error_no_arg): ... here. Remove NORETURN, change
6375 ATTR_NORETURN to ATTRIBUTE_NORETURN.
6376 * defs.h (NORETURN, ATTR_NORETURN): Remove.
6377 (perror_with_name, verror, error, error_stream, vfatal, fatal)
6378 (internal_verror, internal_error, nomem): Remove NORETURN, change
6379 ATTR_NORETURN to ATTRIBUTE_NORETURN.
6380 * exceptions.c (throw_exception, deprecated_throw_reason, throw_verror)
6381 (throw_vfatal, throw_error): Remove NORETURN.
6382 (throw_it): Remove NORETURN, change ATTR_NORETURN to ATTRIBUTE_NORETURN.
6383 * exceptions.h (throw_exception, throw_verror, throw_vfatal)
6384 (throw_error, deprecated_throw_reason): Remove NORETURN, change
6385 ATTR_NORETURN to ATTRIBUTE_NORETURN.
6386 * linespec.c (cplusplus_error): Remove NORETURN, change ATTR_NORETURN
6387 to ATTRIBUTE_NORETURN for prototype, for the definition only remove
6388 NORETURN.
6389 * remote-mips.c (mips_error): Change NORETURN to ATTRIBUTE_NORETURN.
6390 * remote-sim.c (gdb_os_error): Change ATTR_NORETURN to
6391 ATTRIBUTE_NORETURN.
6392 * target.c (tcomplain): Likewise.
6393 * target.h (noprocess): Remove NORETURN, change ATTR_NORETURN to
6394 ATTRIBUTE_NORETURN.
6395 * utils.c (verror, error, vfatal, fatal, error_stream, internal_verror)
6396 (internal_error, perror_with_name, nomem): Remove NORETURN.
6397 * xml-support.h (gdb_xml_error): Change ATTR_NORETURN to
6398 ATTRIBUTE_NORETURN.
6399
6400 2010-05-02 Jan Kratochvil <jan.kratochvil@redhat.com>
6401
6402 * ada-lang.c (lim_warning): Change ATTR_FORMAT to ATTRIBUTE_PRINTF.
6403 * amd64-tdep.c (amd64_insn_length_fprintf): Likewise.
6404 * cli-out.c (cli_field_fmt): New ATTRIBUTE_PRINTF.
6405 (cli_message, out_field_fmt): Change ATTR_FORMAT to ATTRIBUTE_PRINTF.
6406 * complaints.c (find_complaint): New ATTRIBUTE_PRINTF.
6407 (vcomplaint): Change ATTR_FORMAT to ATTRIBUTE_PRINTF.
6408 * complaints.h (complaint, internal_complaint): Likewise.
6409 * defs.h: Change ATTR_FORMAT to ATTRIBUTE_PRINTF in the top comment.
6410 (ATTR_FORMAT): Remove.
6411 (query, nquery, yquery, vprintf_filtered, vfprintf_filtered)
6412 (fprintf_filtered, fprintfi_filtered, printf_filtered, printfi_filtered)
6413 (vprintf_unfiltered, vfprintf_unfiltered, fprintf_unfiltered)
6414 (printf_unfiltered, xasprintf, xvasprintf, xstrprintf, xstrvprintf)
6415 (xsnprintf, verror, error, vfatal, fatal, internal_verror)
6416 (internal_error, internal_vwarning, internal_warning, warning)
6417 (vwarning): Change ATTR_FORMAT to ATTRIBUTE_PRINTF.
6418 * disasm.c (fprintf_disasm): Likewise.
6419 * exceptions.c (throw_it): Likewise.
6420 * exceptions.h (exception_fprintf, throw_verror, throw_vfatal)
6421 (throw_error): Likewise.
6422 * language.h (type_error, range_error): Likewise.
6423 * linespec.c (cplusplus_error): Likewise.
6424 * mi/mi-interp.c (mi_interp_query_hook): Likewise.
6425 * mi/mi-out.c (mi_field_fmt, mi_message): Likewise.
6426 * monitor.c (monitor_debug): Likewise.
6427 * parser-defs.h (parser_fprintf): Likewise.
6428 * serial.h (serial_printf): Likewise.
6429 * tui/tui-hooks.c (tui_query_hook): Likewise.
6430 * ui-out.c (default_field_fmt, default_message, uo_field_fmt)
6431 (uo_message): Likewise.
6432 * ui-out.h (ui_out_field_fmt, ui_out_message): Likewise.
6433 * utils.c (vfprintf_maybe_filtered, internal_vproblem, defaulted_query):
6434 Likewise.
6435 * xml-support.h (gdb_xml_debug, gdb_xml_error): Likewise.
6436
6437 2010-05-02 Pedro Alves <pedro@codesourcery.com>
6438
6439 * cli-out.c (cli_table_begin, cli_table_body, cli_table_end)
6440 (cli_table_header, cli_begin, cli_end, cli_field_int)
6441 (cli_field_skip, cli_field_string, cli_field_fmt, cli_spaces)
6442 (cli_text, cli_message, cli_wrap_hint, cli_flush, cli_redirect):
6443 Delete forward declarations.
6444 (cli_ui_out_impl): Move below the callbacks.
6445 (_initialize_cli_out): Delete.
6446
6447 2010-05-02 Pedro Alves <pedro@codesourcery.com>
6448
6449 * README: Use consistent `GDB' and `GDBserver' spellings.
6450
6451 2010-05-02 Jan Kratochvil <jan.kratochvil@redhat.com>
6452
6453 * cli/cli-dump.h (parse_and_eval_with_error): Remove the declaration.
6454
6455 2010-05-01 Pedro Alves <pedro@codesourcery.com>
6456
6457 * infrun.c (prepare_for_detach): In non-stop, context switch to
6458 the thread that got the event before handling the event.
6459
6460 2010-04-30 Tom Tromey <tromey@redhat.com>
6461
6462 * symtab.c (symbol_set_names): Fix typo.
6463
6464 2010-04-30 Pierre Muller <muller@ics.u-strasbg.fr>
6465
6466 * python/py-param.c (parm_constants): Avoid ARI warning
6467 by adding ARI comment.
6468 (parmpy_init): Likewise.
6469
6470 2010-04-30 Pierre Muller <muller@ics.u-strasbg.fr>
6471
6472 * windows-tdep.c (windows_get_tlb_type): Remember last GDBARCH
6473 and created type for re-use.
6474
6475 2010-04-30 Pierre Muller <muller@ics.u-strasbg.fr>
6476
6477 * NEWS: Mention gdbserver support for x86_64 Windows 64-bit.
6478
6479 2010-04-29 Doug Evans <dje@google.com>
6480
6481 * ser-base.h (reschedule): Delete prototype.
6482 * ser-base.c (reschedule): Make static.
6483
6484 2010-04-29 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
6485
6486 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Remove.
6487 (ARM_LINUX_JB_PC_FPA): Add, offset of PC in longjmp buffer for FPA.
6488 (ARM_LINUX_JB_PC_EABI): Add, offset of PC in longjmp buffer for
6489 EABI.
6490 (arm_linux_init_abi): Set up JB_PC field dependent on FP model in
6491 use.
6492
6493 2010-04-29 Pedro Alves <pedro@codesourcery.com>
6494
6495 PR gdb/11557
6496
6497 * regcache.c (registers_changed): Rename to ...
6498 (registers_changed_ptid): ... this, and only delete register cache
6499 entries matching the ptid filter argument.
6500 (registers_changed): Reimplement on top of registers_changed_ptid.
6501 * regcache.h (registers_changed_ptid): Declare.
6502 * target.c (target_resume): Flush register caches.
6503
6504 2010-04-29 Phil Muldoon <pmuldoon@redhat.com>
6505 Tom Tromey <tromey@redhat.com>
6506 Thiago Jung Bauermann <bauerman@br.ibm.com>
6507
6508 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-parameter.
6509 (SUBDIR_PYTHON_SRCS): Likewise.
6510 (py-parameter.o): New rule.
6511 * python/py-parameter.c: New file.
6512 * python/python-internal.h (gdbpy_initialize_parameter)
6513 (gdbpy_parameter, gdbpy_parameter_value)
6514 (gdbpy_parse_command_name): Declare.
6515 * python/py-cmd.c (parse_command_name): Rename to
6516 gdbpy_parse_command_name.
6517 (gdbpy_parse_command_name): Accept a starting list parameter and
6518 use over cmdlist.
6519 (cmdpy_init): Use gdbpy_parse_command_name.
6520 * python/python.c (parameter_to_python): Rename to
6521 gdbpy_parameter_to_python. Accept enum var_types and value.
6522 (gdbpy_parameter): Use gdbpy_parameter_value.
6523 (_initialize_python): Call gdbpy_initialize_parameters.
6524
6525 2010-04-29 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
6526
6527 * MAINTAINERS: Add myself for write after approval privileges.
6528
6529 2010-04-29 Mihail Zenkov <mihail.zenkov@gmail.com>
6530
6531 D language support.
6532 * Makefile.in (SFILES): Add d-lang.c d-valprint.c.
6533 (COMMON_OBS): Add d-lang.o d-valprint.o.
6534 (HFILES_NO_SRCDIR): Add d-lang.h.
6535 * NEWS: Mention D language support.
6536 * c-lang.c (c_emit_char, exp_descriptor_c): Make public.
6537 * c-lang.h (c_emit_char, exp_descriptor_c): Add declaration.
6538 * d-lang.c: New file.
6539 * d-lang.h: New file.
6540 * d-valprint.c: New file.
6541 * defs.h (enum language): Add language_d.
6542 * dwarf2read.c (set_cu_language): Add DW_LANG_D.
6543 * language.c (binop_result_type, integral_type, character_type)
6544 (string_type, boolean_type, structured_type): Add language_d.
6545 * symfile.c (init_filename_language_table): Add language_d.
6546 * symtab.c: Include d-lang.h.
6547 (symbol_init_language_specific, symbol_find_demangled_name)
6548 (symbol_natural_name, lookup_symbol_in_language)
6549 (symbol_demangled_name, symbol_matches_domain): Add language_d.
6550
6551 2010-04-27 Joel Brobecker <brobecker@adacore.com>
6552
6553 * solib-svr4.c (solib_svr4_r_map): Expand function description.
6554
6555 2010-04-27 Joel Brobecker <brobecker@adacore.com>
6556
6557 * symfile.c (init_filename_language_table): Register .dg files
6558 with language_ada.
6559
6560 2010-04-27 Joel Brobecker <brobecker@adacore.com>
6561
6562 * gdbtypes.h (struct main_type): Expand comment about target_type
6563 field.
6564
6565 2010-04-27 Pedro Alves <pedro@codesourcery.com>
6566 Tristan Gingold <gingold@adacore.com>
6567
6568 * symfile.c (reread_symbols): Also search for file in libraries.
6569 Update comment.
6570
6571 2010-04-27 Joel Brobecker <brobecker@adacore.com>
6572
6573 * configure.tgt: Treat x86-lynxos targets as x86 bareboard targets
6574 in terms of configuration.
6575
6576 2010-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
6577
6578 * objfiles.c: Include solist.h.
6579 (free_all_objfiles): New variable so. Check stale solist objfiles.
6580 * symfile.c (symbol_file_clear): Swap the order of free_all_objfiles
6581 and no_shared_libraries.
6582
6583 2010-04-27 Joel Brobecker <brobecker@adacore.com>
6584
6585 ARI warning fix.
6586 * python/py-auto-load.c (source_section_scripts): Remove trailing
6587 new-line in i18n string.
6588
6589 2010-04-26 Doug Evans <dje@google.com>
6590
6591 * serial.c (serial_write): Handle serial_debug_p akin to serial_read.
6592
6593 2010-04-26 Tom Tromey <tromey@redhat.com>
6594
6595 * cli/cli-decode.c (complete_on_cmdlist): Make two passes over the
6596 command list.
6597
6598 2010-04-26 Pierre Muller <muller@ics.u-strasbg.fr>
6599
6600 Removal of config/i386/nm-i386sol2.h native configuration file.
6601 * config/i386/nm-i386sol2.h: Remove file.
6602 * config/i386/i386sol2.mh: Remove NAT_FILE definition.
6603 * config/i386/sol2-64.mh: Idem.
6604 * config/djgpp/fnchange.lst: Remove reference to that file.
6605 * Makefile.in (HFILES_NO_SRCDIR): Idem.
6606
6607 2010-04-26 Pierre Muller <muller@ics.u-strasbg.fr>
6608
6609 PR breakpoints/11531.
6610 * config/i386/nm-i386sol2.h (CANNOT_STEP_HW_WATCHPOINTS): Remove
6611 macro definition and related comment.
6612 * infrun.c (CANNOT_STEP_HW_WATCHPOINTS): Remove macro.
6613 (resume): Remove code and comment related to this macro.
6614
6615 2010-04-26 Jan Kratochvil <jan.kratochvil@redhat.com>
6616
6617 * cp-namespace.c (cp_lookup_symbol_in_namespace): Fix alloca size.
6618 Fix whitespace.
6619
6620 2010-04-24 Pedro Alves <pedro@codesourcery.com>
6621
6622 * defs.h: Adjust comment.
6623 * filesystem.h, filesystem.c: New files.
6624 * Makefile.in (SFILES): Add filesystem.c.
6625 (COMMON_OBS): Add filesystem.o.
6626 * solib.c (solib_find): Handle DOS-based filesystems. Handle
6627 different target and host path flavours.
6628 * arm-symbian-tdep.c (arm_symbian_init_abi): Set
6629 has_dos_based_file_system on the gdbarch.
6630 * arm-wince-tdep.c (arm_wince_init_abi): Ditto.
6631 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Ditto.
6632 * i386-tdep.c (i386_go32_init_abi): Ditto.
6633 * gdbarch.sh (has_dos_based_file_system): New.
6634 * gdbarch.h, gdbarch.c: Regenerate.
6635 * NEWS: Mention improved support for remote targets with DOS-based
6636 filesystems. Mention new `set/show target-file-system-kind'
6637 commands.
6638
6639 2010-04-23 Stan Shebs <stan@codesourcery.com>
6640
6641 * ax.h (struct agent_expr): Merge in agent_reqs fields, add some
6642 comments.
6643 (struct agent_reqs): Remove.
6644 (ax_reg_mask): Declare.
6645 * ax-general.c (new_agent_expr): Add gdbarch argument, set new fields.
6646 (free_agent_expr): Free reg_mask.
6647 (ax_print): Add scope and register mask info.
6648 (ax_reqs): Remove agent_reqs argument, use agent expression
6649 fields, and move part of register mask computation to...
6650 (ax_reg_mask): New function.
6651 * ax-gdb.c (gen_trace_static_fields): Call it.
6652 (gen_traced_pop): Ditto.
6653 (is_nontrivial_conversion): Add dummy gdbarch to new_agent_expr.
6654 (gen_trace_for_var): Pass gdbarch to new_agent_expr.
6655 (gen_trace_for_expr): Ditto, and clear optimized_out flag.
6656 (gen_eval_for_expr): Ditto, and require an rvalue.
6657 (agent_command): Call ax_reqs.
6658 (agent_eval_command): Ditto.
6659 * tracepoint.c (report_agent_reqs_errors): Use agent expression fields.
6660 (validate_action_line): Ditto.
6661 (collect_symbol): Ditto.
6662 (encode_actions_1): Ditto.
6663
6664 2010-04-23 Daniel Jacobowitz <dan@codesourcery.com>
6665 Paul Pluzhnikov <ppluzhnikov@google.com>
6666 Jan Kratochvil <jan.kratochvil@redhat.com>
6667
6668 Fix deadlock on looped list of loaded shared objects.
6669 * solib-svr4.c (LM_PREV): New function.
6670 (IGNORE_FIRST_LINK_MAP_ENTRY): Use it.
6671 (svr4_current_sos): Check for correct l_prev. New variables prev_lm
6672 and next_lm. Clear prev_lm for solib_svr4_r_ldsomap.
6673 * config/djgpp/fnchange.lst: Add translation for solib-corrupted.exp.
6674
6675 2010-04-23 Doug Evans <dje@google.com>
6676
6677 * configure.ac (CONFIG_SRCS): Add py-auto-load.o even if not using
6678 python.
6679 * configure: Regenerate.
6680 * main.c: #include "python/python.h".
6681 (captured_main): Defer loading auto-loaded scripts until after
6682 local_gdbinit has been sourced.
6683 * python/py-auto-load.c (gdbpy_global_auto_load): New global.
6684 (load_auto_scripts_for_objfile): New function.
6685 (auto_load_new_objfile): Call it.
6686 * python/python.h (gdbpy_global_auto_load): Declare.
6687 (load_auto_scripts_for_objfile): Declare.
6688
6689 Add support for auto-loading scripts from .debug_gdb_scripts section.
6690 * NEWS: Add entry for .debug_gdb_scripts.
6691 * Makefile.in SUBDIR_PYTHON_OBS): Add py-auto-load.o.
6692 (SUBDIR_PYTHON_SRCS): Add py-auto-load.c.
6693 (py-auto-load.o): New rule.
6694 * cli/cli-cmds.c (find_and_open_script): Make externally visible.
6695 * cli/cli-cmds.h (find_and_open_script): Update prototype.
6696 * python/py-auto-load.c: New file.
6697 * python/python-internal.h: #include <stdio.h>.
6698 (set_python_list, show_python_list): Declare.
6699 (gdbpy_initialize_auto_load): Declare.
6700 (source_python_script_for_objfile): Declare.
6701 * python/python.c: Remove #include of observer.h.
6702 (gdbpy_auto_load): Moved to py-auto-load.c.
6703 (GDBPY_AUTO_FILENAME): Ditto.
6704 (gdbpy_new_objfile): Delete.
6705 (source_python_script_for_objfile): New function.
6706 (set_python_list, show_python_list): Make externally visible.
6707 (_initialize_python): Move "auto-load" command to py-auto-load.c
6708 and observer_attach_new_objfile to py-auto-load.c.
6709
6710 2010-04-23 Jerome Guitton <guitton@adacore.com>
6711
6712 * alpha-tdep.c (INSN_OPCODE, MEM_RA, MEM_RB, MEM_DISP, BR_RA)
6713 (OPR_FUNCTION, OPR_HAS_IMMEDIATE, OPR_RA, OPR_RC, OPR_LIT): New macros.
6714 (lda_opcode, stq_opcode, bne_opcode, subq_opcode, subq_function):
6715 New constants.
6716 (alpha_heuristic_analyze_probing_loop): New function.
6717 (alpha_heuristic_frame_unwind_cache): In the prologue analysis, detect
6718 and handle cases when a stack probe loop is generated.
6719 * alpha-mdebug-tdep.c (alpha_mdebug_frameless): New function.
6720 (alpha_mdebug_max_frame_size_exceeded): New function.
6721 (alpha_mdebug_after_prologue): Use alpha_mdebug_frameless.
6722 (alpha_mdebug_frame_sniffer, alpha_mdebug_frame_base_sniffer):
6723 Return 0 when the maximum debuggable frame size has been exceeded.
6724
6725 2010-04-23 Joel Brobecker <brobecker@adacore.com>
6726
6727 Fix ARI warning.
6728 * ppc-linux-nat.c (booke_cmp_hw_point): Do not mark inline.
6729
6730 2010-04-20 Chris Moller <cmoller@redhat.com>
6731
6732 PR 10179
6733
6734 * symtab.c (rbreak_command): Added code to include a filename
6735 specification in the rbreak argument.
6736 * NEWS: Added a brief description of filename-qualified rbreak.
6737
6738 2010-04-22 Jan Kratochvil <jan.kratochvil@redhat.com>
6739
6740 Fix crashes on dangling display expressions.
6741 * ada-lang.c (ada_operator_check): New function.
6742 (ada_exp_descriptor): Fill-in the field operator_check.
6743 * c-lang.c (exp_descriptor_c): Fill-in the field operator_check.
6744 * jv-lang.c (exp_descriptor_java): Likewise.
6745 * m2-lang.c (exp_descriptor_modula2): Likewise.
6746 * scm-lang.c (exp_descriptor_scm): Likewise.
6747 * parse.c (exp_descriptor_standard): Likewise.
6748 (operator_check_standard): New function.
6749 (exp_iterate, exp_uses_objfile_iter, exp_uses_objfile): New functions.
6750 * parser-defs.h (struct exp_descriptor): New field operator_check.
6751 (operator_check_standard, exp_uses_objfile): New declarations.
6752 * printcmd.c: Remove the inclusion of solib.h.
6753 (display_uses_solib_p): Remove the function.
6754 (clear_dangling_display_expressions): Call lookup_objfile_from_block
6755 and exp_uses_objfile instead of display_uses_solib_p.
6756 * solist.h (struct so_list) <objfile>: New comment.
6757 * symtab.c (lookup_objfile_from_block): Remove the static qualifier.
6758 * symtab.h (lookup_objfile_from_block): New declaration.
6759 (struct general_symbol_info) <obj_section>: Extend the comment.
6760
6761 2010-04-22 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
6762 Thiago Jung Bauermann <bauerman@br.ibm.com>
6763
6764 * ppc-linux-nat.c (PTRACE_GET_DEBUGREG): Update comment.
6765 (PPC_PTRACE_GETWDBGINFO, PPC_PTRACE_SETHWDEBUG, PPC_PTRACE_DELHWDEBUG,
6766 ppc_debug_info, PPC_DEBUG_FEATURE_INSN_BP_RANGE,
6767 PPC_DEBUG_FEATURE_INSN_BP_MASK, PPC_DEBUG_FEATURE_DATA_BP_RANGE,
6768 PPC_DEBUG_FEATURE_DATA_BP_MASK, ppc_hw_breakpoint,
6769 PPC_BREAKPOINT_TRIGGER_EXECUTE, PPC_BREAKPOINT_TRIGGER READ,
6770 PPC_BREAKPOINT_TRIGGER_WRITE, PPC_BREAKPOINT_TRIGGER_RW,
6771 PPC_BREAKPOINT_MODE_EXACT PPC_BREAKPOINT_MODE_RANGE_INCLUSIVE,
6772 PPC_BREAKPOINT_MODE_RANGE_EXCLUSIVE, PPC_BREAKPOINT_MODE_MASK,
6773 PPC_BREAKPOINT_CONDITION_NONE, PPC_BREAKPOINT_CONDITION_AND,
6774 PPC_BREAKPOINT_CONDITION_EXACT, PPC_BREAKPOINT_CONDITION_OR,
6775 PPC_BREAKPOINT_CONDITION_AND_OR, PPC_BREAKPOINT_CONDITION_BE_ALL,
6776 PPC_BREAKPOINT_CONDITION_BE_SHIFT, PPC_BREAKPOINT_CONDITION_BE):
6777 Define, in case <ptrace.h> doesn't provide it.
6778 (booke_debug_info): New variable.
6779 (max_slots_number): Ditto.
6780 (hw_break_tuple): New struct.
6781 (thread_points): Ditto.
6782 (ppc_threads): New variable.
6783 (PPC_DEBUG_CURRENT_VERSION): New define.
6784 (have_ptrace_new_debug_booke): New function.
6785 (ppc_linux_check_watch_resources): Renamed to ...
6786 (ppc_linux_can_use_hw_breakpoint): ... this. Handle BookE processors.
6787 (ppc_linux_region_ok_for_hw_watchpoint): Handle BookE processors.
6788 (booke_cmp_hw_point): New function.
6789 (booke_find_thread_points_by_tid): Ditto.
6790 (booke_insert_point): Ditto.
6791 (booke_remove_point): Ditto.
6792 (ppc_linux_insert_hw_breakpoint): Ditto.
6793 (ppc_linux_remove_hw_breakpoint): Ditto.
6794 (get_trigger_type): Ditto.
6795 (ppc_linux_insert_watchpoint): Handle BookE processors.
6796 (ppc_linux_remove_watchpoint): Ditto.
6797 (ppc_linux_new_thread): Ditto.
6798 (ppc_linux_thread_exit): New function..
6799 (ppc_linux_stopped_data_address): Handle BookE processors.
6800 (ppc_linux_watchpoint_addr_within_range): Ditto.
6801 (_initialize_ppc_linux_nat): Initialize to_insert_hw_breakpoint and
6802 to_remove_hw_breakpoint fields of the target operations struct.
6803 Add observe for the thread_exit event.
6804
6805 2010-04-22 H.J. Lu <hongjiu.lu@intel.com>
6806
6807 * i386-linux-nat.c (regmap): Removed.
6808 (fetch_register): Replace regmap with
6809 i386_linux_gregset_reg_offset.
6810 (store_register): Likewise.
6811 (supply_gregset): Likewise.
6812 (fill_gregset): Likewise.
6813
6814 * i386-linux-tdep.c (i386_linux_gregset_reg_offset): Make it
6815 global.
6816
6817 * i386-linux-tdep.h (i386_linux_gregset_reg_offset): New.
6818
6819 2010-04-22 Chris Moller <cmoller@redhat.com>
6820
6821 * cp-valprint.c (cp_print_value_fields): Replaced obstack_base()
6822 method of popping recursion-detection stack with a method based on
6823 obstack_object_size(). (Similar to the PR9167 patch below, but for
6824 the static array obstack rather than the static member obstack.)
6825
6826 2010-04-22 H.J. Lu <hongjiu.lu@intel.com>
6827
6828 * amd64-linux-nat.c (amd64_linux_gregset64_reg_offset): Removed.
6829 (_initialize_amd64_linux_nat): Replace
6830 amd64_linux_gregset64_reg_offset with
6831 amd64_linux_gregset_reg_offset.
6832
6833 * amd64-linux-tdep.c (amd64_linux_gregset_reg_offset): Make it
6834 global.
6835
6836 * amd64-tdep.h (amd64_linux_gregset_reg_offset): New.
6837
6838 2010-04-22 Pierre Muller <muller@ics.u-strasbg.fr>
6839
6840 PR stabs/11479.
6841 * stabsread.c (set_length_in_type_chain): New function.
6842 (read_struct_type): Call set_length_in_type_chain function.
6843 (read_enum_type): Idem.
6844
6845 2010-04-21 Stan Shebs <stan@codesourcery.com>
6846 Nathan Sidwell <nathan@codesourcery.com>
6847
6848 * tracepoint.c (trace_save): Open in binary mode.
6849
6850 2010-04-22 Pierre Muller <muller@ics.u-strasbg.fr>
6851
6852 * gdbtypes.h (builtin_type): Add builtin_char16 and builtin_char32
6853 fields.
6854 * gdbtypes.c (gdbtypes_post_init): Set builtin_char16 and
6855 builtin_char32 fields.
6856 * printcmd.c (decode_format): Set char size to '\0'
6857 for strings unless explicit size is given.
6858 (print_formatted): Correct calculation of NEXT_ADDRESS
6859 for 16 or 32 bit strings.
6860 (do_examine): Do not force byte size for strings.
6861 Use builtin_char16 and builtin_char32 types to display
6862 16 or 32 bit-wide strings.
6863 (x_command): Set LAST_SIZE to 'b' for string type.
6864
6865 2010-04-21 H.J. Lu <hongjiu.lu@intel.com>
6866
6867 PR corefiles/11523
6868 * amd64-linux-tdep.c (amd64_linux_core_read_description): Check
6869 XCR0 first.
6870
6871 * i386-linux-tdep.c (i386_linux_core_read_xcr0): Return 0 if
6872 there is no .reg-xstate section.
6873 (i386_linux_core_read_description): Check XCR0 first.
6874
6875 2010-04-21 Mike Frysinger <vapier@gentoo.org>
6876
6877 * gdb/sparc-tdep.c (sparc32_store_return_value): Add gdb_assert ()
6878 for len <= 8.
6879
6880 2010-04-21 Chris Moller <cmoller@redhat.com>
6881
6882 PR 9167
6883 * cp-valprint.c (cp_print_value_fields): Replaced obstack_base()
6884 method of popping recursion-detection stack with a method based on
6885 obstack_object_size().
6886
6887 2010-04-21 Pierre Muller <muller@ics.u-strasbg.fr>
6888
6889 PR pascal/11492.
6890 * p-valprint.c (pascal_val_print): Fix default printing of integer
6891 arrays.
6892
6893 2010-04-21 Pierre Muller <muller@ics.u-strasbg.fr>
6894
6895 Fix compilation warning on gcc-4.1.2.
6896 * rs6000-aix-tdep.c (rs6000_convert_from_func_ptr_addr): Initialize
6897 local variable`pc' to zero.
6898
6899 2010-04-20 Joel Brobecker <brobecker@adacore.com>
6900
6901 Implement thread support with core files on alpha-tru64.
6902 * dec-thread.c (dec_thread_find_new_threads): New function,
6903 extracted from resync_thread_list.
6904 (resync_thread_list): Add OPS parameter. Replace extracted-out
6905 code by call to dec_thread_find_new_threads.
6906 (dec_thread_wait): Update call to resync_thread_list.
6907 (init_dec_thread_ops): Set dec_thread_ops.to_find_new_threads.
6908
6909 2010-04-20 Joel Brobecker <brobecker@adacore.com>
6910
6911 * ada-lang.c (value_pointer): New function.
6912 (make_array_descriptor): Call value_pointer to convert addresses to
6913 pointers.
6914
6915 2010-04-20 Joel Brobecker <brobecker@adacore.com>
6916
6917 * rs6000-aix-tdep.c: #include exceptions.h.
6918 (rs6000_convert_from_func_ptr_addr): If an exception is thrown
6919 while reading the memory at ADDR, then ADDR cannot be a function
6920 descriptor.
6921
6922 2010-04-20 Joel Brobecker <brobecker@adacore.com>
6923
6924 * ada-typeprint.c (ada_print_typedef): New function.
6925 * ada-lang.h (ada_print_typedef): Add declaration.
6926 * ada-lang.c (ada_language_defn): set la_print_typdef field
6927 to ada_print_typedef.
6928
6929 2010-04-20 Joel Brobecker <brobecker@adacore.com>
6930
6931 * procfs.c (procfs_address_to_host_pointer): Only define when used.
6932
6933 2010-04-20 Joel Brobecker <brobecker@adacore.com>
6934
6935 * procfs.c (iterate_over_mappings_cb_ftype): New typedef.
6936 (iterate_over_mappings): Adjust function profile. Add declaration.
6937 (insert_dbx_link_bpt_in_region, info_mappings_callback):
6938 Adjust accordingly.
6939
6940 2010-04-20 Joel Brobecker <brobecker@adacore.com>
6941
6942 * procfs.c (solib_mappings_callback): Move function up to avoid
6943 a compiler warning.
6944
6945 2010-04-20 Joel Brobecker <brobecker@adacore.com>
6946
6947 * procfs.c (find_signalled_thread, find_stop_signal): Move
6948 these functions down to define them only when used.
6949
6950 2010-04-20 Joel Brobecker <brobecker@adacore.com>
6951
6952 * valprint.c (common_val_print): Fix the value before extracting
6953 its contents.
6954 * ada-lang.c (ada_to_fixed_value): Make this function extern.
6955 * ada-lang.h (ada_to_fixed_value): New function declaration.
6956 * ada-valprint.c (ada_value_print): Use ada_to_fixed_value
6957 to avoid code duplication and fix a bug in the handling of
6958 fixed types contents.
6959
6960 2010-04-20 Tom Tromey <tromey@redhat.com>
6961
6962 * dwarf2read.c (dwarf2_compute_name): Handle DW_AT_linkage_name.
6963 (read_partial_die): Likewise.
6964 (dwarf_attr_name): Likewise.
6965
6966 2010-04-20 Chris Moller <cmoller@redhat.com>
6967
6968 PR 10867
6969
6970 * cp-valprint.c (global): Adding new static array recursion
6971 detection obstack.
6972 (cp_print_value_fields, cp_print_static_field): Added new static
6973 array recursion detection code.
6974
6975 2010-04-20 Mark Kettenis <kettenis@gnu.org>
6976
6977 * i386-linux-tdep.c (i386_linux_regset_sections): Size of the
6978 general-purpose register set should be 68 instead of 144.
6979 (i386_linux_sse_regset_sections): Likewise.
6980 (i386_linux_avx_regset_sections): Likewise.
6981
6982 2010-04-20 Stan Shebs <stan@codesourcery.com>
6983 Nathan Sidwell <nathan@codesourcery.com>
6984
6985 * dwarf2loc.c (struct axs_var_loc): New struct.
6986 (dwarf2_tracepoint_var_loc): New function.
6987 (dwarf2_tracepoint_var_access): New function.
6988 (dwarf2_tracepoint_var_ref): Use dwarf2_tracepoint_var_loc, deal
6989 with DW_OP_piece.
6990 (locexpr_describe_location_piece): New function.
6991 (locexpr_describe_location_1): New function.
6992 (locexpr_describe_location): Call it, update signature.
6993 (loclist_describe_location): Rewrite to loop over locations,
6994 update signature.
6995 * symtab.h (struct symbol_computed_ops): Add address to
6996 describe_location arguments, return void.
6997 * printcmd.c (address_info): Get context PC, pass to computed
6998 location description.
6999 * tracepoint.c (scope_info): Ditto.
7000 * ax-gdb.c (trace_kludge): Export.
7001
7002 2010-04-20 Tom Tromey <tromey@redhat.com>
7003
7004 * dwarf2-frame.c (decode_frame_entry_1): Handle CIE version 4.
7005 (struct dwarf2_cie) <segment_size>: New field.
7006 * dwarf2read.c (partial_read_comp_unit_head): Accept DWARF 4.
7007 (skip_one_die): Handle DW_FORM_flag_present, DW_FORM_sec_offset,
7008 DW_FORM_exprloc.
7009 (read_attribute_value): Handle DW_FORM_flag_present,
7010 DW_FORM_sec_offset, DW_FORM_exprloc.
7011 (dump_die_shallow): Likewise.
7012 (attr_form_is_section_offset): Handle DW_FORM_sec_offset.
7013 (dwarf2_const_value): Handle DW_FORM_exprloc.
7014 (attr_form_is_block): Likewise.
7015 (struct line_header) <maximum_ops_per_instruction>: New field.
7016 (dwarf_decode_line_header): Set new field.
7017 (dwarf_decode_lines): Handle new field.
7018
7019 2010-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
7020
7021 * f-exp.y: Add new production to recognize the `logical*8' type.
7022 (LOGICAL_S8_KEYWORD): New token.
7023 * f-lang.c (enum f_primitive_types)
7024 <f_primitive_type_logical_s8>: New field.
7025 (f_language_arch_info): Handling `logical*8' type.
7026 (build_fortran_types): Building `logical*8' type.
7027 * f-lang.h (struct builtin_f_type) <builtin_logical_s8>: New field.
7028
7029 2010-04-19 Doug Evans <dje@google.com>
7030
7031 * ser-base.c (generic_readchar): Watch for EOF in read of error_fd.
7032 * ser-pipe.c (pipe_open): Fix file descriptor leaks.
7033 (pipe_close): Ditto.
7034
7035 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
7036
7037 * configure.tgt (x86_64-*-mingw*): Set BUILD_GDBSERVER to yes.
7038
7039 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
7040
7041 * windows-tdep.c (windows_get_tlb_type): Change current_seh.handle
7042 type to void function.
7043
7044 2010-04-19 Stan Shebs <stan@codesourcery.com>
7045 Vladimir Prus <vladimir@codesourcery.com>
7046
7047 * tracepoint.c (tfind_1): Add missing newline, report exit from
7048 tfind mode as such.
7049 * target.c (update_current_target): Make default
7050 to_trace_find return -1.
7051
7052 2010-04-19 Mike Frysinger <vapier@gentoo.org>
7053
7054 * objc-lang.c (find_methods): Move symname check up.
7055
7056 2010-04-19 Pedro Alves <pedro@codesourcery.com>
7057
7058 * ada-lang.c (print_recreate_exception)
7059 <ex_catch_exception_unhandled>: It's "catch exception unhandled",
7060 not "catch unhandled".
7061
7062 2010-04-19 Pedro Alves <pedro@codesourcery.com>
7063
7064 PR breakpoints/8554.
7065
7066 Implement `save-breakpoints'.
7067
7068 * breakpoint.c (save_cmdlist): New.
7069 (breakpoint_set_cmdlist, breakpoint_show_cmdlist): Moved up close
7070 to save_cmdlist.
7071 (print_recreate_catch_fork): New.
7072 (catch_fork_breakpoint_ops): Install it.
7073 (print_recreate_catch_vfork): New.
7074 (catch_vfork_breakpoint_ops): Install it.
7075 (print_recreate_catch_syscall): New.
7076 (catch_syscall_breakpoint_ops): Install it.
7077 (print_recreate_catch_exec): New.
7078 (catch_exec_breakpoint_ops): Install it.
7079 (print_recreate_exception_catchpoint): New.
7080 (gnu_v3_exception_catchpoint_ops): Install it.
7081 (save_breakpoints): New, based on tracepoint_save_command, but
7082 handle all breakpoint types.
7083 (save_breakpoints_command): New.
7084 (tracepoint_save_command): Rename to...
7085 (save_tracepoints_command): ... this, and reimplement using
7086 save_breakpoints.
7087 (save_command): New.
7088 (_initialize_breakpoints): Install the "save" command prefix.
7089 Install the "save breakpoints" command. Make "save-tracepoints" a
7090 deprecated alias for "save tracepoints".
7091 * breakpoint.h (struct breakpoint_ops): New field `print_recreate'.
7092 * ada-lang.c (print_recreate_exception): New.
7093 (print_recreate_catch_exception): New.
7094 (catch_exception_breakpoint_ops): Install it.
7095 (print_recreate_catch_exception_unhandled): New.
7096 (catch_exception_unhandled_breakpoint_ops): Install it.
7097 (print_recreate_catch_assert): New.
7098 (catch_assert_breakpoint_ops): Install it.
7099
7100 * NEWS: Mention the new `save breakpoints' command. Mention the
7101 new `save tracepoints' alias and that `save-tracepoints' is now
7102 deprecated.
7103
7104 2010-04-18 Pedro Alves <pedro@codesourcery.com>
7105
7106 PR tui/9217
7107
7108 * tui/tui-out.c: Include cli-out.h.
7109 (tui_table_begin, tui_table_body, tui_table_end, tui_table_header)
7110 (tui_begin, tui_end, tui_field_int, tui_field_skip)
7111 (tui_field_string, tui_field_fmt, tui_spaces, tui_text)
7112 (tui_message, tui_wrap_hint, tui_flush): Delete forward
7113 declarations.
7114 (struct ui_out_data): Rename to...
7115 (struct tui_ui_out_data): ... this. Remove `stream' and
7116 `suppress_output' fields, and inherit cli_ui_out_data.
7117 (tui_out_data): New typedef.
7118 (tui_ui_out_impl): Don't initialize fields staticaly.
7119 (tui_table_begin, tui_table_body, tui_table_end, tui_table_header)
7120 (tui_begin, tui_end): Delete.
7121 (tui_field_int): Adjust to delegate most work to the base type.
7122 (tui_field_skip): Delete.
7123 (tui_field_string, tui_field_fmt): Adjust comment. Adjust to
7124 delegate most work to the base type.
7125 (tui_spaces): Delete.
7126 (tui_text): Adjust to delegate most work to the base type.
7127 (tui_message): Delete.
7128 (tui_wrap_hint): Delete.
7129 (tui_flush): Delete.
7130 (out_field_fmt): Delete.
7131 (field_separator): Delete.
7132 (tui_out_new): Adjust to initialize the base type.
7133 (_initialize_tui_out): Initialize tui_ui_out_impl.
7134 * cli-out.c (struct ui_out_data): Moved out to cli-out.h, renamed
7135 cli_ui_out_data.
7136 (cli_out_data): Adjust.
7137 (cli_ui_out_impl): Make extern.
7138 (cli_table_header, cli_field_int, cli_field_skip): Use
7139 uo_field_string instead of cli_field_string.
7140 (cli_redirect): Adjust to use cli_out_data.
7141 (cli_out_data_ctor): New.
7142 (cli_out_new): Use it.
7143 * cli-out.h (struct ui_file): Remove forward declaration.
7144 (struct cli_ui_out_data): New, moved from cli-out.c, and renamed.
7145 (cli_ui_out_impl): Declare.
7146 (cli_out_data_ctor): Declare.
7147 * ui-out.c (struct ui_out) <data>: Change type to void pointer.
7148 (uo_field_string): No longer static.
7149 (ui_out_data): Change return type to void pointer.
7150 (ui_out_new): Change `data' parameter type to void pointer.
7151 * ui-out.h (struct ui_out_data): Don't forward declare.
7152 (ui_out_data): Change return type to void pointer.
7153 (ui_out_new): Change `data' parameter type to void pointer.
7154 (uo_field_string): Declare.
7155
7156 2010-04-17 Pedro Alves <pedro@codesourcery.com>
7157
7158 * ui-file.c (tee_file_isatty): Return whether `tee->one' is a tty,
7159 instead of always false.
7160
7161 2010-04-17 H.J. Lu <hongjiu.lu@intel.com>
7162
7163 PR corefiles/11511
7164 * amd64-linux-tdep.c (amd64_linux_gregset_reg_offset): Support
7165 orig_rax.
7166
7167 2010-04-17 Pedro Alves <pedro@codesourcery.com>
7168
7169 * breakpoint.c (watchpoints_triggered): Use
7170 is_hardware_watchpoint.
7171 (watchpoints_triggered): Ditto.
7172 (bpstat_check_location): Use is_watchpoint and
7173 is_hardware_watchpoint.
7174 (bpstat_check_watchpoint): Use is_watchpoint and
7175 is_hardware_watchpoint.
7176 (bpstat_stop_status): Fix comment.
7177 (user_settable_breakpoint): Use is_watchpoint.
7178 (hw_watchpoint_used_count): Use is_hardware_watchpoint.
7179 (disable_watchpoints_before_interactive_call_start): Use
7180 is_watchpoint.
7181 (enable_watchpoints_after_interactive_call_stop): Use
7182 is_watchpoint.
7183 (clear_command): Use is_watchpoint.
7184 (do_enable_breakpoint): Use is_watchpoint.
7185
7186 2010-04-16 Mike Frysinger <vapier@gentoo.org>
7187
7188 * solib-frv.c (enable_break1_done): Delete.
7189 (enable_break2): Do not check enable_break1_done. Move the
7190 enable_break2_done setting and call to
7191 remove_solib_event_breakpoints() to the end. Return without
7192 warning when the contents of _dl_debug_addr are 0.
7193 (enable_break): Do not set enable_break1_done.
7194 (frv_clear_solib): Likewise.
7195
7196 2010-04-16 Kevin Buettner <kevinb@redhat.com>
7197
7198 * m32c-tdep.c (m32c_m16c_address_to_pointer): Print warning
7199 instead of an error if no PLT entry is found. Return a
7200 potentially useful result.
7201 (m32c_m16c_pointer_to_address): Add code to search for function
7202 address when no .plt entry is found.
7203
7204 2010-04-16 Stan Shebs <stan@codesourcery.com>
7205
7206 * tracepoint.c (trace_variable_command): Run a cleanup.
7207
7208 2010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
7209
7210 * p-lang.c (pascal_one_char): Do not restrict C to 0..255 range.
7211
7212 2010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
7213
7214 Support for Windows OS Thread Information Block.
7215 * NEWS: Document new feature.
7216 * remote.c (PACKET_qGetTIBAddr): New enum element.
7217 (remote_get_tib_address): New function.
7218 (init_remote_ops): Set to_get_tib_address field
7219 to remote_get_tib_address.
7220 (_initialize_remote): Add add_packet_config_cmd
7221 for PACKET_qGetTIBAddr.
7222 * target.c (update_current_target): Set default value for
7223 new to_get_tib_address field.
7224 * target.h (target_ops): New field to_get_tib_address.
7225 (target_get_tib_address): New macro.
7226 * windows-nat.c (thread_info): Add thread_local_base field.
7227 (windows_add_thread): Add tlb argument of type 'void *'.
7228 (fake_create_process): Adapt windows_add_thread call.
7229 (get_windows_debug_event): Idem.
7230 (windows_get_tib_address): New function.
7231 (init_windows_ops): Set to_get_tib_address field
7232 to remote_get_tib_address.
7233 (_initialize_windows_nat): Replace info_w32_cmdlist
7234 initialization by a call to init_w32_command_list.
7235 (info_w32_command, info_w32_cmdlist): Removed from here...
7236 to windows-tdep.c file.
7237 * windows-tdep.h (info_w32_cmdlist): Declare.
7238 (init_w32_command_list): New external function
7239 declaration.
7240 * windows-tdep.c: Add several headers.
7241 (info_w32_cmdlist): to here, made global.
7242 (thread_information_32): New struct.
7243 (thread_information_64): New struct.
7244 (TIB_NAME): New char array.
7245 (MAX_TIB32, MAX_TIB64, FULL_TIB_SIZE): New constants.
7246 (maint_display_all_tib): New static variable.
7247 (windows_get_tlb_type): New function.
7248 (tlb_value_read, tlb_value_write): New functions.
7249 (tlb_value_funcs): New static struct.
7250 (tlb_make_value): New function.
7251 (display_one_tib): New function.
7252 (display_tib): New function.
7253 (show_maint_show_all_tib):New function.
7254 (info_w32_command): Moved from windows-nat.c.
7255 (init_w32_command_list): New function.
7256 (_initialize_windows_tdep): New function.
7257 New "maint set/show show-all-tib" command
7258 New "$_tlb" internal variable.
7259
7260 2010-04-16 Joel Brobecker <brobecker@adacore.com>
7261
7262 * tui/tui-regs.c (tui_display_register): Add comment about
7263 a couple of casts.
7264 * tui/tui-stack.c (tui_show_locator_content): Ditto.
7265
7266 2010-04-15 Stan Shebs <stan@codesourcery.com>
7267
7268 * frame.c: Include tracepoint.h.
7269 (get_current_frame): Allow a trace frame to be an alternate source
7270 of stack frame data.
7271 * tracepoint.c (tfind_1): Don't try to get current stack frame if
7272 it won't succeed.
7273
7274 2010-04-15 Pedro Alves <pedro@codesourcery.com>
7275
7276 * ppc-linux-tdep.c (bsd_uthread_solib_loaded): Always pass 0 for
7277 flags.
7278 * solib-spu.c (spu_solib_loaded): Always pass 0 for flags.
7279
7280 2010-04-15 Doug Evans <dje@google.com>
7281
7282 * NEWS: Add entry for python program space support.
7283 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-progspace.o.
7284 (SUBDIR_PYTHON_SRCS): Add py-progspace.c.
7285 (py-progspace.o): New rule.
7286 * python/py-prettyprint.c (find_pretty_printer_from_objfiles): New
7287 function.
7288 (find_pretty_printer_from_progspace): New function.
7289 (find_pretty_printer_from_gdb): New function.
7290 (find_pretty_printer): Rewrite.
7291 * python/py-progspace.c: New file.
7292 * python/python-internal.h (program_space): Add forward decl.
7293 (pspace_to_pspace_object, pspy_get_printers): Declare.
7294 (gdbpy_initialize_pspace): Declare.
7295 * python/python.c: #include "progspace.h".
7296 (gdbpy_get_current_progspace, gdbpy_progspaces): New functions.
7297 (_initialize_python): Call gdbpy_initialize_pspace.
7298 (GdbMethods): Add current_progspace, progspaces.
7299
7300 Add -s option to source command.
7301 * NEWS: Document new option.
7302 * cli/cli-cmds.c (find_and_open_script): Add function comment.
7303 Delete from_tty and cleanupp args. Split filep arg into file and
7304 full_pathp. New arg search_path.
7305 (source_script_from_stream): New function.
7306 (source_script_with_search): New function.
7307 (source_script): Rewrite.
7308 (source_command): Parse "-s" option.
7309 (init_cli_cmds): Add "-s" docs to source command help, and reformat.
7310 * python/python.c (source_python_script): Make file arg a const char *.
7311 Don't call fclose, leave for caller.
7312 * python/python.h (source_python_script): Update.
7313
7314 2010-04-14 Daniel Jacobowitz <dan@codesourcery.com>
7315 Pedro Alves <pedro@codesourcery.com>
7316
7317 Avoid rereading shared libraries that haven't changed.
7318
7319 * solib.c (free_so_symbols): New function, from ...
7320 (free_so): ... here. Call it.
7321 (solib_read_symbols): Don't warn here if symbols have already been
7322 loaded.
7323 (solib_add): Warn here instead, if a pattern was specified.
7324 (reload_shared_libraries_1): New.
7325 (reload_shared_libraries): Rewrite to not fetch the library list.
7326
7327 2010-04-14 Doug Evans <dje@google.com>
7328
7329 * source.c (openp): Strip DOS drive letter if present before
7330 concatenating string to search path.
7331
7332 2010-04-14 Pedro Alves <pedro@codesourcery.com>
7333
7334 * objfiles.h (gdb_bfd_close_or_warn): Declare.
7335 * objfiles.c (gdb_bfd_close_or_warn): New.
7336 * corelow.c: Include objfiles.h
7337 (core_close): Use gdb_bfd_close_or_warn.
7338 * elfread.c (build_id_verify): Ditto.
7339 * exec.c (exec_close, exec_close_1): Ditto.
7340
7341 2010-04-14 Daniel Jacobowitz <dan@codesourcery.com>
7342 Pedro Alves <pedro@codesourcery.com>
7343
7344 Group errors for many missing shared libraries.
7345
7346 * solist.h (struct so_list): Remove from_tty.
7347 * solib.c (solib_bfd_open): Return NULL if we failed to open a BFD.
7348 (solib_map_sections): Take so_list argument. Return 0 if we
7349 failed to open a BFD. Add target sections here.
7350 (symbol_add_stub): Delete.
7351 (solib_read_symbols): Inline symbol_add_stub. Use current flags,
7352 not from_tty copied from the so_list. Don't warn a second time
7353 for a missing library.
7354 (update_solib_list): Don't save from_tty. Use TRY_CATCH. Do not
7355 add to the section table here. Print out a single warning for all
7356 missing libraries.
7357 * bsd-uthread.c (bsd_uthread_solib_loaded): Always pass 0 for
7358 flags.
7359
7360 2010-04-14 Phil Muldoon <pmuldoon@redhat.com>
7361
7362 * python/py-block.c (gdbpy_block_for_pc): Use i8n to encompass
7363 error/warning messages. Capitalize and use complete sentences.
7364 (blpy_block_syms_iternext): Likewise.
7365 * python/py-cmd.c (parse_command_name, cmdpy_init): Likewise.
7366 * python/py-frame.c (FRAPY_REQUIRE_VALID, frapy_block)
7367 (frame_info_to_frame_object, frapy_read_var)
7368 (gdbpy_frame_stop_reason_string): Likewise.
7369 * python/py-lazy-string.c (stpy_convert_to_value)
7370 (gdbpy_create_lazy_string_object): Likewise.
7371 * python/py-objfile.c (objfpy_set_printers): Likewise.
7372 * python/py-prettyprint.c (gdbpy_default_visualizer): Likewise.
7373 * python/python.c (parameter_to_python): Likewise.
7374 * python/py-type.c (typy_range, typy_target): Likewise.
7375 * python/py-value.c (valpy_cast, valpy_length, valpy_getitem)
7376 (valpy_richcompare, valpy_int, valpy_long, valpy_float): Likewise.
7377
7378
7379 2010-04-14 Phil Muldoon <pmuldoon@redhat.com>
7380
7381 PR python/11381
7382
7383 * python/py-prettyprint.c (pretty_print_one_value): Test for
7384 Py_None.
7385 (print_string_repr): Test for Py_None. Set flags accordingly.
7386 Return value depending on return type.
7387 (print_children): Take a value indicating whether data was printed
7388 before this function was called. Alter output accordingly.
7389 (apply_val_pretty_printer): Capture return value from
7390 print_string_repr and pass to print_children.
7391
7392 2010-04-13 Mark Kettenis <kettenis@gnu.org>
7393
7394 PR corefiles/11481
7395 * i386-linux-tdep.c (i386_linux_regset_sections): Remove extended
7396 register note sections.
7397 (i386_linux_sse_regset_sections, i386_linux_avx_regset_sections):
7398 New variables.
7399 (i386_linux_init_abi): Install list of supported register note
7400 sections that matches the target description.
7401
7402 2010-04-13 Pedro Alves <pedro@codesourcery.com>
7403
7404 * remote.c (remote_get_noisy_reply): Don't error out on empty
7405 replies.
7406 (remote_start_remote): Update and merge tracepoints and trace
7407 state variables as long as the target supports tracepoints.
7408 (remote_trace_init): Fix prototype.
7409 (remote_download_trace_state_variable): Validate reply.
7410 (remote_trace_set_readonly_regions): Fix prototype.
7411 (remote_trace_start): Fix prototype. Check for empty reply.
7412 (remote_get_trace_status): Small cleanup.
7413 (remote_trace_stop): Fix prototype. Check for empty reply.
7414 (remote_trace_find): Check for empty reply.
7415 (remote_save_trace_data): Validate reply.
7416 (remote_set_disconnected_tracing): Check for empty reply, and
7417 validate reply.
7418 (remote_set_circular_trace_buffer): Ditto.
7419
7420 2010-04-13 Pierre Muller <muller@ics.u-strasbg.fr>
7421
7422 Suppress unused value warning during compilation.
7423 * tui/tui-regs.c (tui_display_register): Cast wstandout and wstandend
7424 calls to void.
7425 * tui/tui-stack.c (tui_show_locator_content): Likewise.
7426
7427 2010-04-12 Stan Shebs <stan@codesourcery.com>
7428
7429 * tracepoint.c (tfile_xfer_partial): Check read result.
7430
7431 2010-04-12 Mike Frysinger <vapier@gentoo.org>
7432
7433 * remote-m32r-sdi.c (m32r_files_info): Add const to local "file" var.
7434 * remote-sim.c (gdbsim_files_info): Likewise.
7435
7436 2010-04-12 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
7437
7438 * arm-tdep.h (gdb_regnum): Add ARM_FPSCR_REGNUM
7439 * arm-linux-nat.c (arm_linux_vfp_register_count): New
7440 variable.
7441 (fetch_vfp_registers): New function to fetch VFP registers.
7442 (store_vfp_registers): New function to store VFP registers.
7443 (arm_linux_fetch_inferior_registers): Add support for VFP
7444 registers.
7445 (arm_linux_store_inferior_registers): Likewise.
7446 (arm_linux_read_description): Likewise.
7447 (_initialize_arm_linux_nat): Delay initialising iWMMX tdesc
7448 until we need it.
7449
7450 2010-04-11 H.J. Lu <hongjiu.lu@intel.com>
7451
7452 * amd64-tdep.c (amd64_supply_xstateregset): Remove the unused
7453 tdep.
7454 (amd64_collect_xstateregset): Likewise.
7455
7456 2010-04-09 Stan Shebs <stan@codesourcery.com>
7457
7458 * tracepoint.c (trace_status_mi): Report frames created.
7459
7460 * tracepoint.c (trace_dump_command): Include default-collect
7461 expressions.
7462
7463 2010-04-09 Ulrich Weigand <uweigand@de.ibm.com>
7464
7465 * symtab.c (find_function_start_sal): Never return SAL pointing
7466 before function start address, even if line info is missing.
7467
7468 2010-04-09 Pedro Alves <pedro@codesourcery.com>
7469
7470 * NEWS: Mention tracepoints support.
7471
7472 2010-04-09 Pedro Alves <pedro@codesourcery.com>
7473
7474 * tracepoint.c (trace_status_mi): Report disconnected tracing and
7475 circular trace buffer statuses.
7476
7477 2010-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
7478
7479 * config/djgpp/fnchange.lst: Fix typo in translations for
7480 symbol-without-target_section.exp and symbol-without-target_section.c.
7481
7482 2010-04-09 Pedro Alves <pedro@codesourcery.com>
7483
7484 * breakpoint.c (condition_command): Pass condition expression to
7485 set_breakpoint_condition stripped from breakpoint number.
7486
7487 2010-04-09 Phil Muldoon <pmuldoon@redhat.com>
7488 Thiago Jung Bauermann <bauerman@br.ibm.com>
7489 Tom Tromey <tromey@redhat.com>
7490
7491 * breakpoint.c (condition_command): Simplify. Move condition
7492 setting code to ...
7493 (set_breakpoint_condition): ... here. New function.
7494 * breakpoint.h (set_breakpoint_condition): Declare.
7495 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-breakpoint.
7496 (SUBDIR_PYTHON_SRCS): Likewise.
7497 (py-breakpoint.o): New rule.
7498 * python/py-breakpoint.c: New file.
7499 * python/python-internal.h (gdbpy_breakpoints)
7500 (gdbpy_initialize_breakpoints): Declare.
7501 (GDB_PY_SET_HANDLE_EXCEPTION) Define.
7502
7503 2010-04-09 Pedro Alves <pedro@codesourcery.com>
7504
7505 * regformats/regdat.sh: Include server.h. Don't include
7506 regcache.h.
7507
7508 2010-04-08 Stan Shebs <stan@codesourcery.com>
7509 Pedro Alves <pedro@codesourcery.com>
7510
7511 * tracepoint.h (struct trace_status): New fields disconnected_tracing
7512 and circular_buffer.
7513 (disconnect_tracing): Rename from disconnect_or_stop_tracing.
7514 * tracepoint.c (trace_status_command): Display target's status for
7515 disconnected tracing and circular buffer.
7516 (disconnect_tracing): Rename from disconnect_or_stop_tracing, add
7517 query for non-disconnected-tracing case, remove the stop_tracing
7518 call.
7519 (tfile_open): Clear disconnected and circular buffer status.
7520 (trace_save): Save disconnected and circular buffer status.
7521 (parse_trace_status): Parse disconnected and circular buffer status,
7522 also recognize disconnected as a stop reason.
7523 * remote.c (remote_set_disconnected_tracing): Only set
7524 QTDisconnected if the remote end supports disconnected tracing.
7525 Warn otherwise, if trying to enable disconnected tracing.
7526 * infcmd.c (detach_command): Update disconnect_tracing call.
7527 * cli/cli-cmds.c (quit_command): Ditto.
7528
7529 2010-04-08 H.J. Lu <hongjiu.lu@intel.com>
7530
7531 * i387-tdep.c (i387_collect_xsave): Replace abort with
7532 internal_error.
7533
7534 2010-04-08 Stan Shebs <stan@codesourcery.com>
7535
7536 * breakpoint.c (default_collect_info): New function.
7537 (breakpoints_info): Call it.
7538 (maintenance_info_breakpoints): Ditto.
7539 (tracepoints_info): Ditto.
7540
7541 2010-04-08 H.J. Lu <hongjiu.lu@intel.com>
7542
7543 * i387-tdep.c (i387_collect_xsave): Re-indent.
7544
7545 2010-04-08 H.J. Lu <hongjiu.lu@intel.com>
7546
7547 * i386-linux-nat.c (have_ptrace_getfpxregs): Initialize to -1
7548 if HAVE_PTRACE_GETFPXREGS is defined.
7549 (i386_linux_read_description): Set have_ptrace_getfpxregs and
7550 have_ptrace_getregset to 0 if ptrace PTRACE_GETFPXREGS failed.
7551
7552 * i386-linux-tdep.c: Include "features/i386/i386-mmx-linux.c"
7553 (i386_linux_core_read_description): Return tdesc_i386_mmx_linux
7554 if .reg-xfp section doesn't exist.
7555 (_initialize_i386_linux_tdep): Call initialize_tdesc_i386_mmx_linux.
7556
7557 * i386-linux-tdep.h (tdesc_i386_mmx_linux): New.
7558
7559 * i386-tdep.c: Include "features/i386/i386-mmx.c".
7560 (i386_go32_init_abi): Set tdesc to tdesc_i386_mmx.
7561 (i386_validate_tdesc_p): Make org.gnu.gdb.i386.sse optional. Set
7562 xcr0 to I386_XSTATE_X87_MASK if SSE isn't available.
7563 (i386_gdbarch_init): Update comments.
7564 (_initialize_i386_tdep): Call initialize_tdesc_i386_mmx.
7565
7566 * common/i386-xstate.h (I386_XSTATE_X87_MASK): New.
7567
7568 * config/djgpp/fnchange.lst: Add i386 MMX XML files.
7569
7570 * features/Makefile (i386/i386-mmx-expedite): New.
7571 (i386/i386-mmx-linux-expedite): Likewise.
7572 ($(outdir)/i386/i386-mmx.dat): Likewise.
7573 ($(outdir)/i386/i386-mmx-linux.dat): Likewise.
7574
7575 * features/i386/i386-mmx-linux.c: New.
7576 * features/i386/i386-mmx-linux.xml: Likewise.
7577 * features/i386/i386-mmx.c: Likewise.
7578 * features/i386/i386-mmx.xml: Likewise.
7579 * regformats/i386/i386-mmx-linux.dat: Likewise.
7580 * regformats/i386/i386-mmx.dat: Likewise.
7581
7582 * features/Makefile (WHICH): Add i386/i386-mmx and
7583 i386/i386-mmx-linux.
7584
7585 2010-04-08 Doug Evans <dje@google.com>
7586
7587 * source.c (openp): Skip $cdir in PATH.
7588
7589 2010-04-08 Phil Muldoon <pmuldoon@redhat.com>
7590
7591 PR python/11417
7592 * python/py-lazy-string.c (stpy_convert_to_value): Check for
7593 a NULL address.
7594 (gdbpy_create_lazy_string_object): Allow strings with a NULL
7595 address and a zero length.
7596
7597 2010-04-08 Hui Zhu <teawater@gmail.com>
7598
7599 * i386-tdep.c (i386_process_record): Add support for insn
7600 rdtsc.
7601
7602 2010-04-07 Doug Evans <dje@google.com>
7603
7604 * python/python.c (source_python_script): Use ensure_python_env
7605 to prepare environment for script.
7606
7607 2010-04-07 H.J. Lu <hongjiu.lu@intel.com>
7608
7609 * amd64-linux-nat.c: Include "regset.h", "elf/common.h",
7610 <sys/uio.h> and "i386-xstate.h".
7611 (PTRACE_GETREGSET): New.
7612 (PTRACE_SETREGSET): Likewise.
7613 (have_ptrace_getregset): Likewise.
7614 (amd64_linux_gregset64_reg_offset): Include 16 upper YMM
7615 registers.
7616 (amd64_linux_gregset32_reg_offset): Include 8 upper YMM
7617 registers.
7618 (amd64_linux_fetch_inferior_registers): Support PTRACE_GETFPREGS.
7619 (amd64_linux_store_inferior_registers): Likewise.
7620 (amd64_linux_read_description): Check and enable AVX target
7621 descriptions.
7622
7623 * amd64-linux-tdep.c: Include "regset.h", "i386-linux-tdep.h"
7624 and "features/i386/amd64-avx-linux.c".
7625 (amd64_linux_regset_sections): New.
7626 (amd64_linux_core_read_description): Check and enable AVX
7627 target description.
7628 (amd64_linux_init_abi): Set xsave_xcr0_offset. Call
7629 set_gdbarch_core_regset_sections.
7630 (_initialize_amd64_linux_tdep): Call
7631 initialize_tdesc_amd64_avx_linux.
7632
7633 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Replace
7634 AMD64_MXCSR_REGNUM with AMD64_YMM15H_REGNUM.
7635 (tdesc_amd64_avx_linux): New.
7636 (amd64_linux_update_xstateregset): Likewise.
7637
7638 * amd64-tdep.c: Include "features/i386/amd64-avx.c".
7639 (amd64_ymm_names): New.
7640 (amd64_ymmh_names): Likewise.
7641 (amd64_register_name): Likewise.
7642 (amd64_supply_xstateregset): Likewise.
7643 (amd64_collect_xstateregset): Likewise.
7644 (amd64_supply_xsave): Likewise.
7645 (amd64_collect_xsave): Likewise.
7646 (AMD64_NUM_REGS): Removed.
7647 (amd64_dwarf_reg_to_regnum): Return %ymmN register number for
7648 %xmmN if AVX is available.
7649 (amd64_pseudo_register_name): Support pseudo YMM registers.
7650 (amd64_regset_from_core_section): Support .reg-xstate section.
7651 (amd64_init_abi): Set ymmh_register_names, num_ymm_regs
7652 and ymm0h_regnum. Call set_gdbarch_register_name.
7653 (amd64_init_abi): Call initialize_tdesc_amd64_avx.
7654
7655 * amd64-tdep.h (amd64_regnum): Add AMD64_YMM0H_REGNUM and
7656 AMD64_YMM15H_REGNUM.
7657 (AMD64_NUM_REGS): New.
7658 (amd64_supply_xsave): Likewise.
7659 (amd64_collect_xsave): Likewise.
7660 (amd64_register_name): Removed.
7661 (amd64_register_type): Likewise.
7662
7663 2010-04-07 H.J. Lu <hongjiu.lu@intel.com>
7664
7665 * i387-tdep.c: Include "i386-xstate.h".
7666 (XSAVE_XSTATE_BV_ADDR): New.
7667 (xsave_avxh_offset): Likewise.
7668 (XSAVE_AVXH_ADDR): Likewise.
7669 (i387_supply_xsave): Likewise.
7670 (i387_collect_xsave): Likewise.
7671
7672 * i387-tdep.h (I387_NUM_YMM_REGS): New.
7673 (I387_YMM0H_REGNUM): Likewise.
7674 (I387_YMMENDH_REGNUM): Likewise.
7675 (i387_supply_xsave): Likewise.
7676 (i387_collect_xsave): Likewise.
7677
7678 2010-04-07 H.J. Lu <hongjiu.lu@intel.com>
7679
7680 * i386-linux-nat.c: Include "regset.h", "elf/common.h",
7681 <sys/uio.h> and "i386-xstate.h".
7682 (PTRACE_GETREGSET): New.
7683 (PTRACE_SETREGSET): Likewise.
7684 (fetch_xstateregs): Likewise.
7685 (store_xstateregs): Likewise.
7686 (GETXSTATEREGS_SUPPLIES): Likewise.
7687 (regmap): Include 8 upper YMM registers.
7688 (i386_linux_fetch_inferior_registers): Support XSAVE extended
7689 state.
7690 (i386_linux_store_inferior_registers): Likewise.
7691 (i386_linux_read_description): Check and enable AVX target
7692 descriptions.
7693
7694 * i386-linux-tdep.c: Include "regset.h", "i387-tdep.h",
7695 "i386-xstate.h" and "features/i386/i386-avx-linux.c".
7696 (i386_linux_regset_sections): Add ".reg-xstate".
7697 (i386_linux_gregset_reg_offset): Include 8 upper YMM registers.
7698 (i386_linux_core_read_xcr0): New.
7699 (i386_linux_core_read_description): Check and enable AVX target
7700 description.
7701 (i386_linux_init_abi): Set xsave_xcr0_offset.
7702 (_initialize_i386_linux_tdep): Call
7703 initialize_tdesc_i386_avx_linux.
7704
7705 * i386-linux-tdep.h (I386_LINUX_ORIG_EAX_REGNUM): Replace
7706 I386_SSE_NUM_REGS with I386_AVX_NUM_REGS.
7707 (i386_linux_core_read_xcr0): New.
7708 (tdesc_i386_avx_linux): Likewise.
7709 (I386_LINUX_XSAVE_XCR0_OFFSET): Likewise.
7710
7711 * i386-tdep.c: Include "i386-xstate.h" and
7712 "features/i386/i386-avx.c".
7713 (i386_ymm_names): New.
7714 (i386_ymmh_names): Likewise.
7715 (i386_ymmh_regnum_p): Likewise.
7716 (i386_ymm_regnum_p): Likewise.
7717 (i386_xmm_regnum_p): Likewise.
7718 (i386_register_name): Likewise.
7719 (i386_ymm_type): Likewise.
7720 (i386_supply_xstateregset): Likewise.
7721 (i386_collect_xstateregset): Likewise.
7722 (i386_sse_regnum_p): Removed.
7723 (i386_pseudo_register_name): Support pseudo YMM registers.
7724 (i386_pseudo_register_type): Likewise.
7725 (i386_pseudo_register_read): Likewise.
7726 (i386_pseudo_register_write): Likewise.
7727 (i386_dbx_reg_to_regnum): Return %ymmN register number for
7728 %xmmN if AVX is available.
7729 (i386_regset_from_core_section): Support .reg-xstate section.
7730 (i386_register_reggroup_p): Supper upper YMM and YMM registers.
7731 (i386_process_record): Replace i386_sse_regnum_p with
7732 i386_xmm_regnum_p.
7733 (i386_validate_tdesc_p): Support org.gnu.gdb.i386.avx feature.
7734 Set ymmh_register_names, num_ymm_regs, ymm0h_regnum and xcr0.
7735 (i386_gdbarch_init): Set xstateregset. Set xsave_xcr0_offset.
7736 Call set_gdbarch_register_name. Replace I386_SSE_NUM_REGS with
7737 I386_AVX_NUM_REGS. Set ymmh_register_names, ymm0h_regnum and
7738 num_ymm_regs. Add num_ymm_regs to set_gdbarch_num_pseudo_regs.
7739 Set ymm0_regnum.
7740 (_initialize_i386_tdep): Call initialize_tdesc_i386_avx.
7741
7742 * i386-tdep.h (gdbarch_tdep): Add xstateregset, ymm0_regnum,
7743 xcr0, xsave_xcr0_offset, ymm0h_regnum, ymmh_register_names and
7744 i386_ymm_type.
7745 (i386_regnum): Add I386_YMM0H_REGNUM, and I386_YMM7H_REGNUM.
7746 (I386_AVX_NUM_REGS): New.
7747 (i386_xmm_regnum_p): Likewise.
7748 (i386_ymm_regnum_p): Likewise.
7749 (i386_ymmh_regnum_p): Likewise.
7750
7751 * common/i386-xstate.h: New.
7752
7753 2010-04-07 H.J. Lu <hongjiu.lu@intel.com>
7754
7755 * config/djgpp/fnchange.lst: Add x86 AVX XML files.
7756
7757 * features/Makefile (WHICH): Add i386/i386-avx,
7758 i386/i386-avx-linux, i386/x86-64-avx and i386/x86-64-avx-linux.
7759 (i386/i386-avx-expedite): New.
7760 (i386/i386-avx-linux-expedite): Likewise.
7761 (i386/x86-64-avx-expedite):Likewise.
7762 (i386/x86-64-avx-linux-expedite): Likewise.
7763 ($(outdir)/i386/i386-avx.dat): New dependency.
7764 ($(outdir)/i386/i386-avx-linux.dat): Likewise.
7765 ($(outdir)/i386/x86-avx-64.dat): Likewise.
7766 ($(outdir)/i386/x86-64-avx-linux.dat): Likewise.
7767
7768 * features/i386/32bit-avx.xml: New.
7769 * features/i386/64bit-avx.xml: Likewise.
7770 * features/i386/i386-avx-linux.c: Likewise.
7771 * features/i386/i386-avx-linux.xml: Likewise.
7772 * features/i386/i386-avx.c: Likewise.
7773 * features/i386/i386-avx.xml: Likewise.
7774 * features/i386/x86-64-avx-linux.c: Likewise.
7775 * features/i386/x86-64-avx-linux.xml: Likewise.
7776 * features/i386/x86-64-avx.c: Likewise.
7777 * features/i386/x86-64-avx.xml: Likewise.
7778 * regformats/i386/i386-avx-linux.dat: Likewise.
7779 * regformats/i386/i386-avx.dat: Likewise.
7780 * regformats/i386/x86-64-avx-linux.dat: Likewise.
7781 * regformats/i386/x86-64-avx.dat: Likewise.
7782
7783 2010-04-07 Doug Evans <dje@google.com>
7784
7785 * top.c (source_file_name): Make const char *.
7786 * top.h (source_file_name): Update.
7787 * cli/cli-script.c (source_cleanup_lines_args): Make old_file
7788 const char *.
7789 (script_from_file): Change `file' arg to const char *.
7790 * cli/cli-script.h (script_from_file): Update.
7791
7792 2010-04-06 Doug Evans <dje@google.com>
7793
7794 * cli/cli-cmds.c (source_command): Run cleanups.
7795
7796 2010-04-06 Stan Shebs <stan@codesourcery.com>
7797
7798 * defs.h (char_ptr): Move typedef here from...
7799 * ada-lang.c (char_ptr): Remove.
7800 * charset.c (char_ptr): Remove.
7801 * tracepoint.h (struct uploaded_string): Remove.
7802 (struct uploaded_tp): Use vectors for string arrays.
7803 * tracepoint.c (trace_save): Use vectors of actions.
7804 (parse_tracepoint_definition): Ditto.
7805 (get_uploaded_tp): Clear vectors.
7806 * breakpoint.c (create_tracepoint_from_upload): Use vectors.
7807 (next_cmd): Change to an int.
7808 (read_next_cmd): Use vector of command strings.
7809
7810 2010-04-06 Doug Evans <dje@google.com>
7811
7812 * top.h (source_script, cd_command): Delete.
7813 * main.c: #include "cli/cli-cmds.h"
7814
7815 2010-04-06 Kevin Buettner <kevinb@redhat.com>
7816
7817 * m32c-tdep.c (make_types): When calling `arch_type', pass size of
7818 type in bytes, not bits.
7819
7820 2010-04-06 Pierre Muller <muller@ics.u-strasbg.fr>
7821
7822 * stabsread.c (define_symbol): Add support for char
7823 and string constants.
7824
7825 2010-04-06 Pierre Muller <muller@ics.u-strasbg.fr>
7826
7827 Remove remaining "%ll" uses.
7828 * go32-nat.c (go32_pte_for_address): Replace "0x%llx" using
7829 hex_string call.
7830 * rs6000-nat.c (rs6000_ptrace64): Idem.
7831 * solib-pa64.c (pa64_current_sos): Idem.
7832 * solib-spu.c (spu_current_sos): Idem.
7833 * linux-nat.c (linux_nat_find_memory_regions): Replace "%lld" using
7834 plongest call.
7835 * nto-procfs.c (procfs_meminfo): Replace "0x%016llx" using
7836 phex (VAR, 8) call.
7837 * sh64-tdep.c (sh64_show_media_regs): Idem.
7838
7839 2010-04-05 Stan Shebs <stan@codesourcery.com>
7840
7841 * tracepoint.c: Include gdbcore.h.
7842 (tfile_xfer_partial): Return partial results, also try reading
7843 from executable.
7844 (tfile_has_all_memory): New function.
7845 (init_tfile_ops): Use it.
7846
7847 2010-04-05 Sergio Durigan Junior <sergiodj@redhat.com>
7848
7849 PR gdb/10736:
7850 * xml-syscall.c (my_gdb_datadir): New variable to keep track of
7851 the changes in data-directory.
7852 (init_sysinfo): Reload the syscall XML file if the data-directory
7853 has changed.
7854
7855 2010-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
7856
7857 Code cleanup.
7858 * breakpoint.c (bpstat_stop_status): Use bpstat_causes_stop.
7859
7860 2010-04-04 Stan Shebs <stan@codesourcery.com>
7861 Nathan Sidwell <nathan@codesourcery.com>
7862
7863 * breakpoint.c (breakpoint_1): Add filter argument, return number of
7864 breakpoints printed.
7865 (is_hardware_watchpoint): Make argument const.
7866 (is_watchpoint): Ditto.
7867 (is_tracepoint): Merge of tracepoint_type and breakpoint_is_tracepoint,
7868 use it everywhere.
7869 (breakpoints_info): Pass NULL to breakpoint_1.
7870 (maintenance_info_breakpoints): Ditto.
7871 (watchpoints_info): New function.
7872 (tracepoints_info): Use breakpoint_1 filter.
7873 (set_ignore_count): Warn that tracepoint ignore count will be ignored.
7874 (_initialize_breakpoint): Make "info watchpoints" its own command.
7875 * breakpoint.h (is_tracepoint): Rename from breakpoint_is_tracepoint.
7876 * mi/mi-cmd-break.c (mi_cmd_break_commands): Use is_tracepoint.
7877
7878 2010-04-04 Stan Shebs <stan@codesourcery.com>
7879
7880 * tracepoint.c (tfile_fetch_registers): Add fallback case.
7881
7882 2010-04-04 Jan Kratochvil <jan.kratochvil@redhat.com>
7883
7884 * infcmd.c (run_command_1): Call proceed with regcache_read_pc address.
7885 * config/djgpp/fnchange.lst: Add translation for break-entry.exp.
7886
7887 2010-04-04 Jan Kratochvil <jan.kratochvil@redhat.com>
7888
7889 * breakpoint.c (bpstat_find_step_resume_breakpoint): Remove.
7890 * breakpoint.h (bpstat_find_step_resume_breakpoint): Remove.
7891
7892 2010-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
7893
7894 * dwarf2read.c (read_namespace_type): Use common "return set_die_type"
7895 code form.
7896
7897 2010-04-02 Hui Zhu <teawater@gmail.com>
7898
7899 * i386-tdep.c (OT_DQUAD): New enum.
7900 (i386_process_record): Add code for MMX, 3DNow!, SSE, SSE2,
7901 SSE3, SSSE3 and SSE4.
7902
7903 2010-04-02 Hui Zhu <teawater@gmail.com>
7904
7905 * i386-tdep.c (i386_record_lea_modrm_addr): Remove useless
7906 "*addr = 0".
7907
7908 2010-04-02 Pedro Alves <pedro@codesourcery.com>
7909
7910 * tracepoint.c (trace_dump_actions): New, factored out from
7911 trace_dump_command, and adjusted to recurse into while-stepping's
7912 action list.
7913 (trace_dump_command): Use it.
7914
7915 2010-04-02 Pedro Alves <pedro@codesourcery.com>
7916
7917 * breakpoint.h (struct counted_command_line): Moved definition to
7918 breakpoint.c, and forward declare.
7919 (breakpoint_commands): Declare.
7920 * breakpoint.c (struct counted_command_line): Moved here.
7921 (breakpoint_commands): New.
7922 * tracepoint.c (encode_actions): Use breakpoint_commands.
7923 * remote.c (remote_download_tracepoint): Ditto.
7924
7925 2010-04-01 H.J. Lu <hongjiu.lu@intel.com>
7926
7927 * remote.c (remote_parse_stop_reply): Use hex_string instead
7928 of phex_nz for error.
7929
7930 2010-04-01 Stan Shebs <stan@codesourcery.com>
7931 Nathan Sidwell <nathan@codesourcery.com>
7932
7933 * tracepoint.h (enum actionline_type): Remove.
7934 (validate_actionline): Change return to void.
7935 * tracepoint.c (report_agent_reqs_errors): New function.
7936 (validate_actionline): Call it, change return to void, report errors
7937 more consistently.
7938 (collect_symbol): Call report_agent_reqs_errors.
7939 (encode_actions_1): Ditto.
7940 (encode_actions): Don't expect a result from validate_actionline.
7941
7942 2010-04-01 Stan Shebs <stan@codesourcery.com>
7943
7944 * tracepoint.c (trace_start_command): Confirm if trace is running.
7945 (trace_stop_command): Error if trace not running.
7946
7947 2010-04-01 H.J. Lu <hongjiu.lu@intel.com>
7948
7949 * amd64-tdep.c (amd64_byte_names): Add "ah", "bh", "ch", "dh".
7950 (AMD64_NUM_LOWER_BYTE_REGS): New.
7951 (amd64_pseudo_register_read): Handle "ah", "bh", "ch", "dh".
7952 (amd64_pseudo_register_write): Likewise.
7953 (amd64_init_abi): Set num_byte_regs to 20.
7954
7955 2010-04-01 Pedro Alves <pedro@codesourcery.com>
7956
7957 * breakpoint.c (multi_start, multi_end, last_was_multi): Delete.
7958 (prev_breakpoint_count): New.
7959 (set_breakpoint_count): Adjust.
7960 (rbreak_start_breakpoint_count): New.
7961 (start_rbreak_breakpoints): Adjust.
7962 (end_rbreak_breakpoints): Adjust.
7963 (struct commands_info) <arg>: New field.
7964 (do_map_commands_command): Tweak output to include breakpoint spec
7965 range.
7966 (commands_command_1): Adjust. Avoid setting an xfree cleanup if
7967 ARG was empty on entry. Set INFO's arg.
7968 (create_breakpoint): Adjust.
7969
7970 * NEWS: Clarify `commands' changes.
7971
7972 2010-04-01 Pedro Alves <pedro@codesourcery.com>
7973
7974 * tracepoint.c: Include stack.h.
7975 (struct add_local_symbols_data): New.
7976 (do_collect_symbol): New.
7977 (add_local_symbols): Rewrite using iterate_over_block_arg_vars and
7978 iterate_over_block_local_vars.
7979 * stack.c (print_block_frame_locals): Rewrite as ...
7980 (iterate_over_block_locals): ... this. Take a callback function
7981 pointer and generic data pointer, and call that instead of
7982 print_variable_and_value.
7983 (struct print_variable_and_value_data): New.
7984 (do_print_variable_and_value): New.
7985 (iterate_over_block_local_vars): New, abstracted out from
7986 print_frame_local_vars.
7987 (print_frame_local_vars): Rewrite using
7988 iterate_over_block_local_vars.
7989 (iterate_over_block_arg_vars): New, abstracted out from
7990 print_frame_arg_vars.
7991 (print_frame_arg_vars): Rewrite using iterate_over_block_arg_vars.
7992 * stack.h (iterate_over_block_arg_local_vars_cb): New typedef.
7993 (iterate_over_block_arg_vars, iterate_over_block_local_vars): Declare.
7994
7995 2010-03-31 Richard Earnshaw <rearnsha@arm.com>
7996
7997 * arm-tdep.c (thumb_get_next_pc_raw): Correctly detect TBH
7998 instructions. Use the PC+4 if the base of the TBB or TBH is the
7999 PC register.
8000
8001 2010-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
8002
8003 Fix crash on reading wrong function declaration DWARF.
8004 * dwarf2read.c (read_subroutine_type): New variable void_type.
8005 Pre-fill all TYPE_FIELD_TYPEs. Move nparams and iparams initialization
8006 more close to their use.
8007
8008 2010-03-31 Stan Shebs <stan@codesourcery.com>
8009
8010 * breakpoint.c (tracepoint_save_command): Include variables,
8011 conditionals, tracepoint types, and default-collect.
8012 * tracepoint.c (save_trace_state_variables): New function.
8013 * tracepoint.h (save_trace_state_variables): Declare it.
8014
8015 2010-03-31 Pierre Muller <muller@ics.u-strasbg.fr>
8016
8017 * remote.c (end_thread): ARI fix: Use xstrdup instead of strdup.
8018
8019 2010-03-30 Keith Seitz <keiths@redhat.com>
8020
8021 * c-typeprint.c (c_type_print_args): Don't print "void"
8022 for java, regardless of whether it is TYPE_PROTOTYPED.
8023 Use the passed-in language instead of current_language.
8024 (c_type_print_varspec_suffix): Use current_language instead
8025 of assuming language_c.
8026 * jv-typeprint.c (java_type_print_base): (bz 9320) Strip off
8027 any return type specifier from the physname.
8028
8029 2010-03-30 Pedro Alves <pedro@codesourcery.com>
8030
8031 * tui/tui-interp.c (tui_is_toplevel): New.
8032 (tui_init): Set it.
8033 (tui_allowed_p): New.
8034 * tui/tui.c (tui_enable): Check if the TUI is allowed before
8035 enabling it.
8036 * tui/tui.h (tui_allowed_p): Declare.
8037
8038 2010-03-30 Ozkan Sezer <sezeroz@gmail.com>
8039
8040 * serial.h: Include winsock2.h before windows.h.
8041
8042 2010-03-30 H.J. Lu <hongjiu.lu@intel.com>
8043
8044 * NEWS: Mention xmlRegisters= in qSupported packet.
8045
8046 * i386-tdep.c: Include "remote.h".
8047 (_initialize_i386_tdep): Call register_remote_support_xml.
8048
8049 * remote.c (remote_support_xml): New.
8050 (register_remote_support_xml): Likewise.
8051 (remote_query_supported_append): Likewise.
8052 (remote_query_supported): Support remote_support_xml.
8053
8054 * remote.h (register_remote_support_xml): New.
8055
8056 2010-03-29 Stan Shebs <stan@codesourcery.com>
8057
8058 * tracepoint.c (trace_find_line_command): Remove dead code.
8059
8060 * tracepoint.h (struct uploaded_string): New struct.
8061 (struct uploaded_tp): New fields for source strings.
8062 * breakpoint.c (this_utp, next_cmd): New globals.
8063 (read_uploaded_action): New function.
8064 (create_tracepoint_from_upload): Fill in more parts
8065 of a tracepoint.
8066 * tracepoint.c (encode_source_string): New function.
8067 (trace_save): Write out source strings, fix error checks.
8068 (parse_tracepoint_definition): Add source string parsing.
8069 * remote.c (PACKET_TracepointSource): New packet type.
8070 (remote_download_command_source): New function.
8071 (remote_download_tracepoint): Download source pieces also.
8072 (_initialize_remote): Add packet config command.
8073
8074 * tracepoint.c (collect_symbol): Send LOC_UNRESOLVED symbols to
8075 expression handler.
8076
8077 * tracepoint.c (start_tracing): Check tracepoints before sending
8078 commands to target, don't start if all tracepoints disabled.
8079
8080 2010-03-28 Pedro Alves <pedro@codesourcery.com>
8081
8082 * cli/cli-script.c (process_next_line): Handle 'stepping'.
8083
8084 2010-03-26 Stan Shebs <stan@codesourcery.com>
8085
8086 * tracepoint.c (disconnect_or_stop_tracing): Get out of tfind mode.
8087
8088 2010-03-26 Tom Tromey <tromey@redhat.com>
8089
8090 * breakpoint.c (commands_command_1): Duplicate 'arg'.
8091
8092 2010-03-26 Ulrich Weigand <uweigand@de.ibm.com>
8093
8094 * breakpoint.c (expand_line_sal_maybe): Always call skip_prologue_sal.
8095 (skip_prologue_sal): Remove local definition.
8096 (resolve_sal_pc): Remove now unnecessary code.
8097 * linespec.c (minsym_found): Call skip_prologue_sal.
8098 * symtab.c (find_function_start_pc): Remove.
8099 (find_function_start_sal): Extract prologue skipping into ...
8100 (skip_prologue_sal): ... this new function. Handle code both
8101 with and without debug info. Respect SAL's explicit_pc and
8102 explicit_line flags. Inline old find_function_start_pc.
8103 * symtab.h (find_function_start_pc): Remove.
8104 (skip_prologue_sal): Add prototype.
8105
8106 2010-03-26 Ulrich Weigand <uweigand@de.ibm.com>
8107
8108 * dwarf2read.c (read_func_scope): Also scan specification DIEs
8109 for DW_TAG_imported_module children.
8110
8111 2010-03-26 Ulrich Weigand <uweigand@de.ibm.com>
8112
8113 * dwarf2read.c (dwarf2_name): Work around GCC bugzilla debug/41828 by
8114 ignoring spurious DW_AT_name attributes for unnamed structs or unions.
8115 * completer.c (add_struct_fields): Fix inverted logic.
8116
8117 2010-03-26 Ulrich Weigand <uweigand@de.ibm.com>
8118
8119 * breakpoint.c (bpstat_clear_actions): Reset bs->commands_left.
8120
8121 2010-03-26 Pedro Alves <pedro@codesourcery.com>
8122
8123 * tracepoint.c (current_trace_status): Don't make sure error_desc
8124 is non-NULL here.
8125 (parse_trace_status): Release a previous error_desc string, and
8126 set it to NULL by default. If stop reason is tracepoint_error,
8127 make sure error_desc is not left NULL.
8128
8129 2010-03-26 Pedro Alves <pedro@codesourcery.com>
8130
8131 * tracepoint.c (trace_save): Remove X from tracepoint error
8132 description.
8133
8134 2010-03-26 Pedro Alves <pedro@codesourcery.com>
8135
8136 * tracepoint.c (parse_trace_status): Don't allow plain strings in
8137 the terror description. Don't expect an X prefix.
8138
8139 2010-03-25 Stan Shebs <stan@codesourcery.com>
8140
8141 * tracepoint.h (trace_stop_reason): Add tracepoint_error.
8142 (struct trace_status): New field error_desc.
8143 * tracepoint.c (stop_reason_names): Add terror.
8144 (current_trace_status): Ensure non-NULL error description.
8145 (trace_status_command): Add error report.
8146 (trace_status_mi): Ditto.
8147 (trace_save): Add special case for error description.
8148 (parse_trace_status): Add case for errors.
8149
8150 2010-03-25 Keith Seitz <keiths@redhat.com>
8151
8152 * dwarf2read.c (read_subroutine_type): If the compilation unit
8153 language is Java, mark any formal parameter named "this" as
8154 artificial (GCC/43521).
8155 (dwarf2_name): Add special handling for Java constructors.
8156
8157 2010-03-25 Tom Tromey <tromey@redhat.com>
8158
8159 PR gdb/11327, PR gdb/11328, PR breakpoints/11368:
8160 * infrun.c (handle_inferior_event): Change initialization of
8161 stop_stack_dummy.
8162 (handle_inferior_event): Change assignment to stop_stack_dummy.
8163 (normal_stop): Update use of stop_stack_dummy.
8164 (struct inferior_status) <stop_stack_dummy>: Change type.
8165 * inferior.h (stop_stack_dummy): Update.
8166 * infcmd.c (stop_stack_dummy): Change type.
8167 * infcall.c (cleanup_delete_std_terminate_breakpoint): New
8168 function.
8169 (call_function_by_hand): Call set_std_terminate_breakpoint.
8170 Rewrite std::terminate handling.
8171 * breakpoint.h (enum bptype) <bp_std_terminate,
8172 bp_std_terminate_master>: New.
8173 (enum stop_stack_kind): New.
8174 (struct bpstat_what) <call_dummy>: Change type.
8175 (set_std_terminate_breakpoint, delete_std_terminate_breakpoint):
8176 Declare.
8177 * breakpoint.c (create_std_terminate_master_breakpoint): New
8178 function.
8179 (update_breakpoints_after_exec): Handle bp_std_terminate_master.
8180 Call create_std_terminate_master_breakpoint.
8181 (print_it_typical): Handle new breakpoint kinds.
8182 (bpstat_stop_status): Handle bp_std_terminate_master.
8183 (bpstat_what): Correctly set call_dummy field. Handle
8184 bp_std_terminate_master and bp_std_terminate.
8185 (print_one_breakpoint_location): Update.
8186 (allocate_bp_location): Update.
8187 (set_std_terminate_breakpoint): New function.
8188 (delete_std_terminate_breakpoint): Likewise.
8189 (create_thread_event_breakpoint): Update.
8190 (delete_command): Update.
8191 (breakpoint_re_set_one): Update.
8192 (breakpoint_re_set): Call create_std_terminate_master_breakpoint.
8193
8194 2010-03-25 Jan Kratochvil <jan.kratochvil@redhat.com>
8195
8196 * symfile.c (build_section_addr_info_from_bfd): New.
8197 (build_section_addr_info_from_objfile): Base it on
8198 build_section_addr_info_from_bfd.
8199 (addrs_section_compar, addrs_section_sort): New.
8200 (addr_info_make_relative): New variables my_cleanup, abfd_addrs,
8201 addrs_sorted, abfd_addrs_sorted and addrs_to_abfd_addrs. Build
8202 addrs_to_abfd_addrs. Use it for recalculating ADDRS.
8203
8204 2010-03-24 Michael Snyder <msnyder@localhost.localdomain>
8205
8206 * elfread.c (find_separate_debug_file_by_buildid):
8207 Remove unused local variable.
8208
8209 2010-03-24 Tom Tromey <tromey@redhat.com>
8210
8211 PR breakpoints/9352:
8212 * NEWS: Mention changes to `commands' and `rbreak'.
8213 * symtab.c (do_end_rbreak_breakpoints): New function.
8214 (rbreak_command): Call start_rbreak_breakpoints; arrange to call
8215 end_rbreak_breakpoints.
8216 * breakpoint.c (breakpoint_count, tracepoint_count): Now static.
8217 (set_breakpoint_count): Likewise. Clear last_was_multi.
8218 (multi_start, multi_end, last_was_multi): New globals.
8219 (start_rbreak_breakpoints, end_rbreak_breakpoints): New
8220 functions.
8221 (struct commands_info): New
8222 (do_map_commands_command): New function.
8223 (commands_command_1): New function.
8224 (commands_command): Use it.
8225 (commands_from_control_command): Likewise.
8226 (do_delete_breakpoint): New function.
8227 (delete_command): Use it.
8228 (map_breakpoint_numbers): Add 'data' argument. Pass to callback.
8229 (do_map_disable_breakpoint): New function.
8230 (disable_command): Use it.
8231 (do_map_enable_breakpoint): New function.
8232 (enable_command): Use it.
8233 (enable_once_breakpoint): Add argument.
8234 (enable_once_command): Update.
8235 (enable_delete_breakpoint): Add argument.
8236 (enable_delete_command): Update.
8237 (break_command_really): Set last_was_multi when needed.
8238 (check_tracepoint_command): Fix formatting.
8239 (validate_commands_for_breakpoint): New function.
8240 (breakpoint_set_commands): Use it.
8241 (tracepoint_save_command): Update.
8242 * breakpoint.h (start_rbreak_breakpoints, end_rbreak_breakpoints):
8243 Declare.
8244
8245 2010-03-24 Tom Tromey <tromey@redhat.com>
8246
8247 * breakpoint.h (struct counted_command_line): New struct.
8248 (struct breakpoint) <commands>: Change type.
8249 (struct bpstats) <commands>: Change type.
8250 <commands_left>: New field.
8251 * breakpoint.c (alloc_counted_command_line): New function.
8252 (incref_counted_command_line): Likewise.
8253 (decref_counted_command_line): Likewise.
8254 (do_cleanup_counted_command_line): Likewise.
8255 (make_cleanup_decref_counted_command_line): Likewise.
8256 (breakpoint_set_commands): Use decref_counted_command_line and
8257 alloc_counted_command_line.
8258 (commands_command): Don't error if breakpoint commands are
8259 executing.
8260 (commands_from_control_command): Likewise.
8261 (bpstat_free): Update.
8262 (bpstat_copy): Likewise.
8263 (bpstat_clear_actions): Likewise.
8264 (bpstat_do_actions_1): Likewise.
8265 (bpstat_stop_status): Likewise.
8266 (print_one_breakpoint_location): Likewise.
8267 (delete_breakpoint): Likewise.
8268 (bpstat_alloc): Initialize new field.
8269 (tracepoint_save_command): Update.
8270 * tracepoint.c (encode_actions): Update.
8271 (trace_dump_command): Update.
8272
8273 2010-03-24 Daniel Jacobowitz <dan@codesourcery.com>
8274
8275 * dwarf2-frame.c (dwarf2_frame_find_quirks): Use producer_is_realview.
8276 * dwarf2read.c (load_full_comp_unit): Read DW_AT_producer.
8277 (read_structure_type): For RealView, set TYPE_STUB on structures with
8278 no byte size and no children.
8279 (read_subroutine_type): Mark functions as prototyped by default.
8280 * symtab.c (producer_is_realview): New function.
8281 * symtab.h (expand_line_sal): Fix declaration formatting.
8282 (producer_is_realview): Declare.
8283
8284 2010-03-24 Daniel Jacobowitz <dan@codesourcery.com>
8285
8286 * arm-tdep.c (skip_prologue_function): New function.
8287 (submask, bit, bits, sbits, BranchDest): Move higher in the file.
8288 (thumb_analyze_prologue): Document return value. Recognize more
8289 Thumb instructions, skippable calls, and some Thumb-2 instructions.
8290 Add debug output.
8291 (arm_skip_prologue): Remove call dummy check. Check the prologue
8292 for non-GNU compilers.
8293 (arm_instruction_changes_pc): New function.
8294 (arm_analyze_prologue): New function, broken out from
8295 arm_scan_prologue. Recognize more ARM instructions and skippable
8296 calls. Update comments. Handle NULL cache. Return the address
8297 of the first unrecognized instruction. Do not skip past other
8298 instructions which change control flow. Add debug output.
8299 (arm_scan_prologue): Use arm_analyze_prologue.
8300 (ARM_PC_32): Delete.
8301 (shifted_reg_val): Simplify ARM_PC_32 check.
8302
8303 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
8304
8305 * tracepoint.c (tvariables_info_1): Actually compute
8306 the number of rows in the result.
8307
8308 2010-03-24 Pedro Alves <pedro@codesourcery.com>
8309
8310 * remote.c (crc32): Constify `buf' parameter.
8311 (remote_verify_memory): New, abstracted out from...
8312 (compare_sections_command): ... this. Remove hardcoded target
8313 checks.
8314 (init_remote_ops): Install remote_verify_memory.
8315 * target.c (target_verify_memory): New.
8316 * target.h (struct target_ops) <to_verify_memory>: New field.
8317 (target_verify_memory): Declare.
8318
8319 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
8320
8321 Implement -trace-save.
8322
8323 * mi-cmds.h (mi_cmds_trace_save): Declare.
8324 * mi-cmds.c (mi_cmds): Register -trace-save.
8325 * mi/mi-main.c (mi_cmd_trace_save): New.
8326 * remote.c (remote_save_trace_data): Take const parameter.
8327 * target.h (struct target_ops::to_save_trace_data): Take
8328 const parameter.
8329 * target.c (update_current_target): Adjust to the above.
8330 * tracepoint.c (trave_save): New, extracted from
8331 (trace_save_command): ...this.
8332 (tfile_trace_find): Remove message that is unnecessary now
8333 that 'tfind' reports found frame.
8334 * tracepoint.h (trace_save): Declare.
8335
8336 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
8337
8338 Implement -trace-find.
8339
8340 * mi/mi-cmds.c (mi_cmds): Register -trace-find.
8341 * mi/mi-cmds.h (mi_cmd_trace_find): Declare.
8342 * mi/mi-main.c (mi_cmd_trace_find): New.
8343 * target.h (struct target_ops): Document to_trace_find.
8344 * tracepoint.h (tfind_1): Declare.
8345 * tracepoint.c (finish_tfind_command): Rename to...
8346 (tfind_1): ...this.
8347 * remote.c (remote_trace_find): Return -1 if target say
8348 there's no frame. Improve error diagnostics.
8349
8350 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
8351
8352 -trace-define-variable and -trace-list-variables.
8353
8354 * tracepoint.c (create_trace_state_variable): Make
8355 private copy of name, as opposed to assuming the
8356 pointer lives forever.
8357 (tvariables_info_1): New.
8358 (tvariables_info): Use the above.
8359 * tracepoint.h (create_trace_state_variable, tvariables_info_1):
8360 Declare.
8361 * mi/mi-cmds.c (mi_cmds): Register -trace-define-variable
8362 and -trace-list-variables.
8363 * mi/mi-cmds.h (mi_cmd_trace_define_variable)
8364 (mi_cmd_trace_list_variables): New.
8365 * mi/mi-main.c (mi_cmd_trace_define_variable)
8366 (mi_cmd_trace_list_variables): New.
8367
8368 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
8369
8370 Implement -break-passcount.
8371
8372 * mi/mi-cmd-break.c (mi_cmd_break_passcount): New.
8373 * mi/mi-cmds.c (mi_cmds): Register -break-passcount.
8374 * mi/mi-cmds.h (mi_cmd_break_passcount): Declare.
8375
8376 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
8377
8378 -trace-start/-trace-end/-trace-status.
8379
8380 * mi/mi-cmds.c (mi_cmds): Register -trace-start, -trace-status
8381 and -trace-stop.
8382 * mi/mi-cmds.h (mi_cmd_trace_start, mi_cmd_trace_status)
8383 (mi_cmd_trace_stop): Declare.
8384 * mi/mi-main.c (mi_cmd_trace_start, mi_cmd_trace_status)
8385 (mi_cmd_trace_stop): New.
8386 * tracepoint.c (start_tracing): New, extracted from...
8387 (trace_start_command): ...this.
8388 (trace_status_mi): New.
8389 * tracepoint.h (struct trace_status): Document
8390 stopping_tracepoint.
8391 (start_tracing, stop_tracing, trace_status_mi): Declare.
8392
8393 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
8394
8395 Implement creating tracepoints with -break-insert.
8396
8397 * mi/mi-cmd-break.c (mi_cmd_break_insert): Handle -a
8398 to mean that tracepoint should be created.
8399
8400 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
8401
8402 * breakpoint.c (check_no_tracepoint_commands): Use
8403 current spelling of 'teval'.
8404
8405 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
8406
8407 Unify actions and commands
8408
8409 * defs.h (read_command_lines, read_command_lines_1): New
8410 parameters validator and closure.
8411 * tracepoint.h (struct action_line): Remove.
8412 * breakpoint.h (struct breakpoint): Remove the 'actions'
8413 field.
8414 * defs.h (enum command_control_type): New value
8415 while_stepping_control.
8416 (struct command_line): Add comments.
8417 * breakpoint.c (breakoint_is_tracepoint): New.
8418 (breakpoint_set_commands): For tracepoints,
8419 verify the commands are permissible.
8420 (check_tracepoint_commands): New.
8421 (commands_command): Require that each new line is validated using
8422 check_tracepoint_command, if we set commands for a tracepoint.
8423 (create_tracepoint_from_upload): Likewise.
8424 (print_one_breakpoint_location): Remove the code to print
8425 actions specifically.
8426 (tracepoint_save_command): Relay to print_command_lines.
8427 * cli/cli-script.c (process_next_line): New parameters validator
8428 and closure. Handle 'while-stepping'. Call validator if not null.
8429 (read_command_lines, read_command_lines1): Likewise.
8430 (recurse_read_control_structure): New parameters validator and
8431 closure. Handle while_stepping_control.
8432 (print_command_lines): Handle while-stepping.
8433 (get_command_line, define_command, document_command): Adjust.
8434 * remote.c (remote_download_tracepoint): Adjust.
8435 * tracepoint.c (make_cleanup_free_actions, read_actions)
8436 (free_actions, do_free_actions_cleanup): Remove.
8437 (trace_actions_command): Use read_command_lines.
8438 (validate_actionline): Use error in one place.
8439 (encode_actions_1): New, extracted from...
8440 (encode_actions): ...this. Also use cleanups for exception
8441 safety.
8442 (trace_dump_command): Adjust.
8443 * mi/mi-cmd-break (mi_cmd_break_commands): Validate commands if
8444 it's tracepoint.
8445
8446 2010-03-23 Mike Frysinger <vapier@gentoo.org>
8447
8448 * Makefile.in (OPCODES_CFLAGS): Add -I$(OPCODES_SRC)/..
8449
8450 2010-03-22 Stan Shebs <stan@codesourcery.com>
8451
8452 * value.c (value_static_field): Be lazy about the field's value.
8453
8454 2010-03-22 Reid Kleckner <reid@kleckner.net>
8455
8456 PR gdb/11094
8457 * breakpoint.c (disable_breakpoints_in_unloaded_shlib): Add
8458 bp_jit_event.
8459 (disable_breakpoints_in_shlibs): Likewise.
8460
8461 2010-03-22 Ulrich Weigand <uweigand@de.ibm.com>
8462
8463 * dwarf2read.c (partial_die_parent_scope): Work around buggy
8464 GCC 4.1 debug info generation (GCC PR c++/28460).
8465 (determine_prefix): Likewise.
8466
8467 2010-03-20 Daniel Jacobowitz <dan@codesourcery.com>
8468
8469 * tui/tui-disasm.c (tui_get_begin_asm_address): Default to
8470 get_current_arch.
8471 * tui/tui-layout.c (extract_display_start_addr): Likewise.
8472
8473 2010-03-19 Stan Shebs <stan@codesourcery.com>
8474
8475 * ax-gdb.c (gen_fetch): Handle bool.
8476 (gen_usual_unary): Ditto.
8477 (gen_cast): Ditto.
8478 (gen_equal): New function.
8479 (gen_less): New function.
8480 (gen_expr_binop_rest): Call them, also return integer type from
8481 logical operations.
8482 (gen_expr): Ditto.
8483
8484 2010-03-19 Tom Tromey <tromey@redhat.com>
8485
8486 * jv-lang.c (jv_dynamics_objfile_data_key)
8487 (jv_type_objfile_data_key): New globals.
8488 (class_symtab): Move earlier.
8489 (jv_per_objfile_free): New function.
8490 (get_dynamics_objfile): Call set_objfile_data. Add 'gdbarch'
8491 parameter.
8492 Remove ancient #if 1.
8493 (add_class_symbol): Remove redundant declaration.
8494 (java_lookup_class): Use alloc_type, not alloc_type_arch.
8495 (java_link_class_type): Mark as static. Update.
8496 (jv_clear_object_type): New function.
8497 (set_java_object_type): Likewise.
8498 (get_java_object_type): Use set_java_object_type.
8499 (is_object_type): Likewise.
8500 (_initialize_java_language): Register new objfile keys.
8501 (get_java_class_symtab): Add 'gdbarch' parameter.
8502 (add_class_symtab_symbol): Update.
8503 (type_from_class): Update.
8504
8505 2010-03-19 Stan Shebs <stan@codesourcery.com>
8506
8507 * ax-general.c (ax_const_l): Fix a sizing bug.
8508
8509 2010-03-18 Joel Brobecker <brobecker@adacore.com>
8510
8511 GDB 7.1 released.
8512
8513 2010-03-18 Stan Shebs <stan@codesourcery.com>
8514 Pedro Alves <pedro@codesourcery.com>
8515
8516 * target.h (struct target_ops): New method
8517 to_set_circular_trace_buffer.
8518 (target_set_circular_trace_buffer): New macro.
8519 * target.c (update_current_target): Add
8520 to_set_circular_trace_buffer, fix to_set_disconnected_tracing
8521 default behavior.
8522 * remote.c (remote_set_circular_trace_buffer): New function.
8523 (init_remote_ops): Add it to vector.
8524 * tracepoint.h (struct trace_status): New field traceframes_created,
8525 change buffer_size and buffer_free to int.
8526 * tracepoint.c (circular_trace_buffer): New global.
8527 (start_tracing): Send values of disconnected tracing and circular
8528 trace buffer settings.
8529 (set_circular_trace_buffer): New function.
8530 (parse_trace_state): Handle total space and frames created.
8531 (trace_status_command): Display total space and total frames
8532 created.
8533 (trace_save): Write out new status values.
8534 (parse_trace_status): Set traceframe_count, traceframes_created,
8535 buffer_free and buffer_size to -1 by default.
8536 (_initialize_tracepoint): New setshow for circular-trace-buffer.
8537 * NEWS: Mention the circular trace buffer option.
8538
8539 2010-03-18 Tom Tromey <tromey@redhat.com>
8540
8541 * infcmd.c (finish_command_continuation): Wrap print_return_value
8542 in TRY_CATCH.
8543
8544 2010-03-18 Joel Brobecker <brobecker@adacore.com>
8545
8546 * dwarf2read.c (add_partial_subprogram): Make sure the subprogram
8547 DIE has a name before creating the associated partial symbol.
8548 (read_func_scope): Emit a complaint if the subprogram does not
8549 have a name or when we can't extract the subprogram PC bounds.
8550
8551 2010-03-18 Ulrich Weigand <uweigand@de.ibm.com>
8552
8553 * mi/mi-main.c (mi_cmd_list_thread_groups): Use get_current_arch
8554 instead of selected frame architecture.
8555
8556 2010-03-18 Pedro Alves <pedro@codesourcery.com>
8557
8558 * infcmd.c (until_command): Use ERROR_NO_INFERIOR. Ensure there's
8559 a valid selected thread, and that it is not running.
8560 (advance_command): Ditto.
8561 (finish_command): Ditto.
8562
8563 2010-03-17 Stan Shebs <stan@codesourcery.com>
8564
8565 * ax-gdb.c (require_rvalue): Disallow non-scalars.
8566
8567 * infcall.c: Include tracepoint.h.
8568 (call_function_by_hand): Disallow calls in tfind mode.
8569 * infcmd.c: Include tracepoint.h.
8570 (ensure_not_tfind_mode): New function.
8571 (continue_1): Call it.
8572 (step_1) Ditto.
8573 (jump_command): Ditto.
8574 (signal_command): Ditto.
8575 (advance_command): Ditto.
8576 (until_command): Ditto.
8577 (finish_command): Ditto.
8578 * tracepoint.h (disconnect_or_stop_tracing): Declare.
8579
8580 * ax-gdb.h (struct axs_value): New field optimized_out.
8581 (gen_trace_for_var): Add gdbarch argument.
8582 * ax-gdb.c (gen_trace_static_fields): New function.
8583 (gen_traced_pop): Call it, add gdbarch argument.
8584 (gen_trace_for_expr): Update call to it.
8585 (gen_trace_for_var): Ditto, and report optimized-out variables.
8586 (gen_struct_ref_recursive): Check for optimized-out value.
8587 (gen_struct_elt_for_reference): Ditto.
8588 (gen_static_field): Pass gdbarch instead of expression, assume
8589 optimization if field not found.
8590 (gen_var_ref): Set the optimized_out flag.
8591 (gen_expr): Error on optimized-out variable.
8592 * tracepoint.c (collect_symbol): Handle struct-valued vars as
8593 expressions, skip optimized-out variables with computed locations.
8594 * dwarf2loc.c (dwarf2_tracepoint_var_ref): Flag instead of
8595 erroring out if location expression missing.
8596 (loclist_tracepoint_var_ref): Don't error out here.
8597
8598 2010-03-17 Tom Tromey <tromey@redhat.com>
8599
8600 * dwarf2read.c (dwarf2_get_section_info): Handle case where no
8601 DWARF data is available.
8602
8603 2010-03-17 Daniel Jacobowitz <dan@codesourcery.com>
8604
8605 * symfile.c (generic_load): Reset breakpoints after loading.
8606
8607 2010-03-17 Tom Tromey <tromey@redhat.com>
8608
8609 * linux-nat.c (linux_nat_detach): Check debug_linux_nat.
8610
8611 2010-03-17 Jan Kratochvil <jan.kratochvil@redhat.com>
8612
8613 * spu-tdep.c (spu_catch_start): Replace set_breakpoint call with the
8614 create_breakpoint call, adjust the parameters.
8615
8616 2010-03-16 Jan Kratochvil <jan.kratochvil@redhat.com>
8617 Chandru <chandru@in.ibm.com>
8618
8619 * dwarf2read.c (read_subrange_type): Set TYPE_HIGH_BOUND_UNDEFINED.
8620 * valarith.c (value_subscripted_rvalue): Suppress error if
8621 TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED.
8622
8623 2010-03-16 Holger Hans Peter Freyther <zecke@selfish.org>
8624
8625 * linux-record.c (record_linux_msghdr): Remove unintended semicolons.
8626
8627 2010-03-16 Joel Brobecker <brobecker@adacore.com>
8628
8629 * ada-tasks.c (task_command_1): Check that the task ptid is valid
8630 before doing the associated thread switch.
8631
8632 2010-03-16 Daniel Jacobowitz <dan@codesourcery.com>
8633
8634 * MAINTAINERS: Update my email address.
8635
8636 2010-03-16 Vladimir Prus <vladimir@codesourcery.com>
8637
8638 Simplify MI breakpoint setting.
8639
8640 * breakpoint.c (break_command_really): Make nonstatic and
8641 rename to...
8642 (create_breakpoint): ...this. Rename prior function by this name
8643 to...
8644 (create_breakpoint_sal): ...this.
8645 (create_breakpoints): Rename to...
8646 (create_breakpoints_sal): ...this.
8647 (set_breakpoint): Remove.
8648 * breakpoint.h: Adjust to above changes.
8649 * mi/mi-cmd-break.c (mi_cmd_break_insert): Simplify.
8650
8651 2010-03-15 Stan Shebs <stan@codesourcery.com>
8652
8653 * ax-gdb.c: Include cp-support.h.
8654 (find_field): Remove.
8655 (gen_primitive_field): New function.
8656 (gen_struct_ref_recursive): New function.
8657 (gen_struct_ref): Rewrite to call gen_struct_ref_recursive instead
8658 of find_field.
8659 (gen_static_field): New function.
8660 (gen_struct_elt_for_reference): New.
8661 (gen_namespace_elt): New.
8662 (gen_maybe_namespace_elt): New.
8663 (gen_aggregate_elt_ref): New.
8664 (gen_expr): Add OP_SCOPE, display opcode name in error message.
8665
8666 2010-03-15 Tom Tromey <tromey@redhat.com>
8667
8668 * dwarf2read.c (die_needs_namespace): Also return 0 for
8669 DW_TAG_subprogram.
8670
8671 2010-03-15 Sami Wagiaalla <swagiaal@redhat.com>
8672
8673 PR c++/7936:
8674 * cp-support.h: Added char *declaration element to using_direct
8675 data struct.
8676 (cp_add_using): Added char *declaration argument.
8677 (cp_add_using_directive): Ditto.
8678 (cp_lookup_symbol_imports): made extern.
8679 * cp-namespace.c: Updated with the above changes.
8680 * dwarf2read.c (read_import_statement): Ditto.
8681 (read_namespace): Ditto.
8682 (read_import_statement): Support import declarations.
8683 * cp-namespace.c (cp_lookup_symbol_imports): Check for imported
8684 declarations.
8685 Added support for 'declaration_only' search.
8686 (cp_lookup_symbol_namespace): Attempt to search for the name as
8687 is before consideration of imports.
8688 * symtab.c (lookup_symbol_aux_local): Added a 'declaration_only'
8689 search at every block level search.
8690 Now takes language argument.
8691 (lookup_symbol_aux): Updated.
8692
8693 2010-03-15 Tom Tromey <tromey@redhat.com>
8694
8695 * c-exp.y (name_not_typename): Add 'operator' clause.
8696
8697 2010-03-15 Ralf Corsepius <ralf.corsepius@rtems.org> (tiny change)
8698
8699 * configure.ac: Exit if ${gdb_target_obs}" is not set.
8700 * configure: Regenerate.
8701
8702 2010-03-15 Jan Kratochvil <jan.kratochvil@redhat.com>
8703
8704 * symfile.c (addr_info_make_relative): Ignore also missing ".dynbss"
8705 and ".sdynbss". Update the comment.
8706
8707 2010-03-15 Jie Zhang <jie@codesourcery.com>
8708
8709 * MAINTAINERS: Update my email address.
8710
8711 2010-03-14 Daniel Jacobowitz <dan@codesourcery.com>
8712
8713 * gdbtypes.h (TYPE_IS_OPAQUE): Correct HAVE_CPLUS_STRUCT check.
8714
8715 2010-03-14 Daniel Jacobowitz <dan@codesourcery.com>
8716
8717 * charset.c [USE_WIN32API]: Include <windows.h>.
8718 (_initialize_charset): Correct type of w32_host_default_charset.
8719
8720 2010-03-14 Pedro Alves <pedro@codesourcery.com>
8721
8722 * infrun.c (ptid_match): Don't assert that PTID is not a pid ptid.
8723
8724 2010-03-12 Tom Tromey <tromey@redhat.com>
8725
8726 PR c++/9708:
8727 * dwarf2read.c (die_needs_namespace) <DW_TAG_variable>: A variable
8728 in a lexical block does not need a namespace.
8729 (new_symbol) <DW_TAG_variable>: Put extern variables on
8730 list_in_scope in all cases.
8731
8732 2010-03-12 Stan Shebs <stan@codesourcery.com>
8733
8734 * ax-gdb.c (gen_expr): Add shift expressions.
8735 (gen_expr_binop_rest): Ditto.
8736
8737 2010-03-12 Sami Wagiaalla <swagiaal@redhat.com>
8738
8739 * buildsym.c (finish_block): Reset using_directives pointer
8740 after block initialization.
8741
8742 2010-03-12 H.J. Lu <hongjiu.lu@intel.com>
8743
8744 * amd64-tdep.c (amd64_word_names): Replace "sp" with "".
8745 * i386-tdep.c (i386_word_names): Likewise.
8746
8747 2010-03-12 Pedro Alves <pedro@codesourcery.com>
8748
8749 * target.c (memory_xfer_partial): Don't use the stack cache if
8750 inspecting trace frames.
8751 * tracepoint.c (finish_tfind_command): Invalidate the target
8752 dcache.
8753
8754 2010-03-11 Jan Kratochvil <jan.kratochvil@redhat.com>
8755
8756 * solib-svr4.c (LM_ADDR_CHECK) <info_verbose>: Use printf_unfiltered
8757 for the PIC displacement, print also the displacement value.
8758 (svr4_exec_displacement): Print DISPLACEMENT if INFO_VERBOSE.
8759
8760 2010-03-10 Kevin Buettner <kevinb@redhat.com>
8761
8762 * remote-mips.c (close_ports, mips_initialize_cleanups)
8763 (mips_exit_cleanups, mips_send_command, mips_open, pmon_open)
8764 (ddb_open, lsi_open, mips_remove_breakpoint, mips_remove_watchpoint)
8765 (mips_stopped_by_watchpoint, send_srec, pmon_checkset)
8766 (pmon_make_fastrec, pmon_check_ack, mips_expect_download)
8767 (pmon_check_entry_address, pmon_check_total, pmon_end_download)
8768 (pmon_download, pmon_load_fast, _initialize_remote_mips): Add
8769 comments describing each of these functions.
8770 (mips_enter_debug, mips_exit_debug, common_open)
8771 (mips_signal_from_protocol, pmon_makeb64, pmon_zeroset): Add
8772 blank line after the comment describing the function.
8773
8774 2010-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
8775
8776 * solib-svr4.c (svr4_exec_displacement): Return now success, new
8777 parameter displacementp. Update comment.
8778 (svr4_relocate_main_executable): Return if non-zero SECTION_OFFSETS
8779 element exists. Return if svr4_exec_displacement was not successful.
8780 Update comment.
8781
8782 2010-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
8783 Daniel Jacobowitz <dan@codesourcery.com>
8784
8785 * solib-svr4.c (read_program_header): Support type == -1 to read
8786 all program headers.
8787 (read_program_headers_from_bfd): New function.
8788 (svr4_static_exec_displacement): Remove and move the comment ...
8789 (svr4_exec_displacement): ... here. Remove variable found. New
8790 variable displacement. Check also DYNAMIC. Verify DISPLACEMENT
8791 alignment for ELF targets. Compare target vs. exec_bfd PHDRs for ELF
8792 targets using read_program_headers_from_bfd. Remove the call of
8793 svr4_static_exec_displacement.
8794
8795 2010-03-10 Tom Tromey <tromey@redhat.com>
8796
8797 * dwarf2read.c (struct pubnames_header): Remove.
8798 (_PUBNAMES_HEADER): Remove.
8799 (_ACTUAL_PUBNAMES_HEADER_SIZE): Remove.
8800 (struct aranges_header): Remove.
8801 (_ARANGES_HEADER, _ACTUAL_ARANGES_HEADER_SIZE): Remove.
8802 (struct dwarf2_per_objfile) <pubnames, aranges>: Remove.
8803 (PUBNAMES_SECTION): Remove.
8804 (ARANGES_SECTION): Remove.
8805 (dwarf2_locate_sections): Don't handle pubnames or aranges.
8806 (dwarf2_build_psymtabs): Remove dead code.
8807 (dwarf2_build_psymtabs_easy): Remove.
8808
8809 2010-03-10 Tom Tromey <tromey@redhat.com>
8810
8811 * elfread.c (elf_symfile_read): Don't call
8812 dwarf2_build_frame_info.
8813 * dwarf2read.c (struct dwarf2_section_info) <readin>: New field.
8814 (struct dwarf2_per_objfile) <objfile>: New field.
8815 (dwarf2_has_info): Now idempotent. Set objfile field.
8816 (dwarf2_read_section): Check and set readin field. Call
8817 posix_madvise.
8818 (dwarf2_build_psymtabs): Don't read all sections.
8819 (read_type_comp_unit_head): Read types section.
8820 (create_debug_types_hash_table): Likewise.
8821 (init_cu_die_reader): Add asserts.
8822 (process_type_comp_unit): Add assert.
8823 (dwarf2_build_psymtabs_hard): Read info section.
8824 (load_partial_comp_unit): Add assert.
8825 (create_all_comp_units): Read info section.
8826 (load_full_comp_unit): Likewise.
8827 (dwarf2_ranges_read): Read ranges section.
8828 (dwarf2_record_block_ranges): Add assert.
8829 (dwarf2_read_abbrevs): Read abbrev section.
8830 (read_indirect_string): Read str section.
8831 (dwarf_decode_line_header): Read line section.
8832 (read_signatured_type_at_offset): Read types section.
8833 (dwarf_decode_macros): Read macinfo section.
8834 (dwarf2_symbol_mark_computed): Read loc section.
8835 * dwarf2-frame.c (dwarf2_frame_find_fde): Call
8836 dwarf2_build_frame_info.
8837 (dwarf2_build_frame_info): Unconditionally set
8838 dwarf2_frame_objfile_data on the objfile.
8839 * configure.ac: Check for posix_madvise.
8840 * config.in, configure: Rebuild.
8841
8842 2010-03-10 Tom Tromey <tromey@redhat.com>
8843
8844 * xcoffread.c (xcoff_start_psymtab): Update.
8845 (xcoff_end_psymtab): Update.
8846 * psymtab.c (allocate_psymtab): Remove dead code.
8847 * psympriv.h (struct partial_symtab) <read_symtab_private>: Now
8848 void*.
8849 * mdebugread.c (parse_partial_symbols): Update.
8850 (new_psymtab): Likewise.
8851 * dwarf2read.c (process_psymtab_comp_unit): Update.
8852 (psymtab_to_symtab_1): Update.
8853 * dbxread.c (start_psymtab): Update.
8854 (end_psymtab): Likewise.
8855
8856 2010-03-10 Tom Tromey <tromey@redhat.com>
8857
8858 * xcoffread.c: Include psymtab.h.
8859 (xcoff_sym_fns): Update.
8860 * symtab.h (struct partial_symbol): Remove.
8861 (PSYMBOL_DOMAIN, PSYMBOL_CLASS): Remove.
8862 (struct partial_symtab): Remove.
8863 (PSYMTAB_TO_SYMTAB): Remove.
8864 (lookup_partial_symbol, lookup_partial_symtab, find_pc_psymtab)
8865 (find_pc_sect_psymtab): Remove.
8866 (find_pc_sect_symtab_via_partial): Declare.
8867 (find_pc_psymtab, find_pc_sect_psymbol, psymtab_to_symtab)
8868 (find_main_psymtab): Remove.
8869 (find_main_filename): Declare.
8870 (fixup_psymbol_section): Remove.
8871 (fixup_section): Declare.
8872 * symtab.c: Include psymtab.h.
8873 (lookup_symtab): Use lookup_symtab method.
8874 (lookup_partial_symtab): Remove.
8875 (find_pc_sect_psymtab_closer): Remove.
8876 (find_pc_sect_psymtab): Remove.
8877 (find_pc_sect_symtab_via_partial): New function.
8878 (find_pc_psymtab, find_pc_sect_psymbol, find_pc_psymbol): Remove.
8879 (fixup_section): No longer static.
8880 (fixup_psymbol_section): Remove.
8881 (lookup_symbol_aux): Use lookup_symbol_aux_quick.
8882 (lookup_global_symbol_from_objfile): Likewise.
8883 (lookup_symbol_aux_psymtabs): Remove.
8884 (lookup_symbol_aux_quick): New function.
8885 (lookup_symbol_global): Use lookup_symbol_aux_quick.
8886 (lookup_partial_symbol): Remove.
8887 (basic_lookup_transparent_type_quick): New function.
8888 (basic_lookup_transparent_type): Use it.
8889 (find_main_psymtab): Remove.
8890 (find_main_filename): New function.
8891 (find_pc_sect_symtab): Use find_pc_sect_symtab method.
8892 (find_line_symtab): Use expand_symtabs_with_filename method.
8893 (output_partial_symbol_filename): New function.
8894 (sources_info): Use map_partial_symbol_filenames.
8895 (struct search_symbols_data): New type.
8896 (search_symbols_file_matches): New function.
8897 (search_symbols_name_matches): Likewise.
8898 (search_symbols): Use expand_symtabs_matching method.
8899 (struct add_name_data): Rename from add_macro_name_data.
8900 (add_macro_name): Update.
8901 (add_partial_symbol_name): New function.
8902 (default_make_symbol_completion_list): Use
8903 map_partial_symbol_names.
8904 (struct add_partial_symbol_name): New type.
8905 (maybe_add_partial_symtab_filename): New function.
8906 (make_source_files_completion_list): Use
8907 map_partial_symbol_filenames.
8908 (expand_line_sal): Use expand_symtabs_with_filename method.
8909 * symmisc.c: Include psymtab.h.
8910 (print_objfile_statistics): Use print_stats method.
8911 (dump_objfile): Use dump method.
8912 (dump_psymtab, maintenance_print_psymbols)
8913 (maintenance_info_psymtabs, maintenance_check_symtabs)
8914 (extend_psymbol_list): Remove.
8915 * symfile.h (struct quick_symbol_functions): New struct.
8916 (struct sym_fns) <qf>: New field.
8917 (sort_pst_symbols): Remove.
8918 (increment_reading_symtab): Declare.
8919 * symfile.c: Include psymtab.h.
8920 (compare_psymbols, sort_pst_symbols): Remove.
8921 (psymtab_to_symtab): Remove.
8922 (increment_reading_symtab): New function.
8923 (symbol_file_add_with_addrs_or_offsets): Use expand_all_symtabs
8924 method.
8925 (set_initial_language): Use find_main_filename.
8926 (allocate_psymtab, discard_psymtab, cashier_psymtab): Remove.
8927 (free_named_symtabs): Remove unused code.
8928 (start_psymtab_common, add_psymbol_to_bcache)
8929 (append_psymbol_to_list, add_psymbol_to_list, init_psymbol_list):
8930 Remove.
8931 * stack.c: Include psymtab.h, symfile.h.
8932 (backtrace_command_1): Use find_pc_sect_symtab_via_partial.
8933 * source.h (psymtab_to_fullname): Don't declare.
8934 * source.c: Include psymtab.h.
8935 (select_source_symtab): Use find_last_source_symtab method.
8936 (forget_cached_source_info): Use forget_cached_source_info
8937 method.
8938 (find_and_open_source): No longer static.
8939 (psymtab_to_fullname): Remove.
8940 * somread.c: Include psymtab.h.
8941 (som_sym_fns): Update.
8942 * psympriv.h: New file.
8943 * psymtab.h: New file.
8944 * psymtab.c: New file.
8945 * objfiles.h: (ALL_OBJFILE_PSYMTABS): Remove.
8946 (ALL_PSYMTABS, ALL_PSPACE_PSYMTABS): Likewise.
8947 * objfiles.c: Include psymtab.h.
8948 (objfile_relocate1): Use relocate method.
8949 (objfile_has_partial_symbols): Use has_symbols method.
8950 * mipsread.c: Include psymtab.h.
8951 (ecoff_sym_fns): Update.
8952 * mi/mi-cmd-file.c: Include psymtab.h.
8953 (print_partial_file_name): New function.
8954 (mi_cmd_file_list_exec_source_files): Use
8955 map_partial_symbol_filenames.
8956 * mdebugread.c: Include psympriv.h.
8957 * machoread.c: Include psympriv.h.
8958 (macho_sym_fns): Update.
8959 * m2-exp.y (yylex): Use lookup_symtab.
8960 * elfread.c: Include psympriv.h.
8961 (elf_sym_fns): Update.
8962 * dwarf2read.c: Include psympriv.h.
8963 * dbxread.c: Include psympriv.h.
8964 (aout_sym_fns): Update.
8965 * cp-support.c: Include psymtab.h.
8966 (read_in_psymtabs): Remove.
8967 (make_symbol_overload_list_qualified): Use
8968 expand_symtabs_for_function method.
8969 * coffread.c: Include psympriv.h.
8970 (coff_sym_fns): Update.
8971 * blockframe.c: Include psymtab.h.
8972 (find_pc_partial_function): Use find_pc_sect_symtab method.
8973 * ada-lang.h (ada_update_initial_language): Update.
8974 * ada-lang.c: Include psymtab.h.
8975 (ada_update_initial_language): Remove 'main_pst' argument.
8976 (ada_lookup_partial_symbol): Remove.
8977 (struct ada_psym_data): New type.
8978 (ada_add_psyms): New function.
8979 (ada_add_non_local_symbols): Use map_ada_symtabs method.
8980 (struct add_partial_datum): New type.
8981 (ada_add_partial_symbol_completions): New function.
8982 (ada_make_symbol_completion_list): Use map_partial_symbol_names.
8983 (ada_exception_support_info_sniffer): Update.
8984 * Makefile.in (SFILES): Add psymtab.c.
8985 (COMMON_OBS): Add psymtab.o.
8986 (HFILES_NO_SRCDIR): Add psymtab.h, psympriv.h.
8987
8988 2010-03-10 Pierre Muller <muller@ics.u-strasbg.fr>
8989
8990 * remote-fileio.c (cygwin_conv_path): Define macro for old cygwin API.
8991
8992 2010-03-10 Sami Wagiaalla <swagiaal@redhat.com>
8993
8994 PR C++/11236:
8995 * cp-namespace.c (cp_add_using): Deleted.
8996 (cp_add_using_directive): Use obstack allocations.
8997 Merged the function cp_add_using into this one.
8998 Added 'struct obstack *' argument.
8999 (cp_scan_for_anonymous_namespaces): Updated.
9000 * cp-support.h: Updated.
9001 * dwarf2read.c (read_import_statement): Updated.
9002 (read_namespace): Updated.
9003
9004 2010-03-10 Pierre Muller <muller@ics.u-strasbg.fr>
9005
9006 * windows-nat.c (cygwin_conv_path): Remove old macro.
9007
9008 2010-03-10 Pedro Alves <pedro@codesourcery.com>
9009
9010 * breakpoint.c (condition_command): Handle watchpoint conditions.
9011 (is_hardware_watchpoint): Add comment.
9012 (is_watchpoint): New.
9013 (update_watchpoint): Don't reparse the watchpoint's condition
9014 unless necessary.
9015 (WP_IGNORE): New.
9016 (watchpoint_check): Use it.
9017 (bpstat_check_watchpoint): Handle it.
9018 (bpstat_check_breakpoint_conditions): Evaluate watchpoint local
9019 conditions in a frame where it makes sense.
9020 (watch_command_1): Store the innermost block of the condition
9021 expression.
9022 (delete_breakpoint): Delete the watchpoint condition expression.
9023 * breakpoint.h (struct bp_location) <cond>: Update comment.
9024 (struct breakpoint): New field `cond_exp_valid_block'.
9025
9026 2010-03-09 Joel Brobecker <brobecker@adacore.com>
9027
9028 Adjust handling of Ada DIEs after dwarf2_physname patch.
9029 * dwarf2read.c (dwarf2_compute_name): Add handling of Ada DIEs.
9030
9031 2010-03-09 Christopher Faylor <me+cygwin@cgf.cx>
9032 Pierre Muller <muller@ics.u-strasbg.fr>
9033
9034 * windows-nat.c (cygwin_conv_path): Redefine to properly convert
9035 from/to posix/win32.
9036 (windows_make_so): Use non-Cygwin 1.7 specific function.
9037 (windows_create_inferior): Make sure that cygallargs points to
9038 original args in non Cygwin 1.7. case.
9039
9040 2010-03-09 Michael Snyder <msnyder@vmware.com>
9041
9042 * i386-tdep.c (i386_record_lea_modrm_addr): Use extract_signed_int
9043 after target_read_memory to get host byte order.
9044 (i386_process_record): Ditto.
9045
9046 2010-03-09 Keith Seitz <keiths@redhat.com>
9047
9048 Based on work from Daniel Jacobowitz <dan@codesourcery.com>
9049 * c-typeprint.c (cp_type_print_method_args): For non-static methods,
9050 print out const or volatile qualifiers, too.
9051 (c_type_print_args): Add parameters show_artificial and language.
9052 Skip artificial parameters when requested.
9053 Use the appropriate language printer.
9054 (c_type_print_varspec): Tell c_type_print_args to skip artificial
9055 parameters and pass language_c.
9056 * dwarf2read.c (die_list): New file global.
9057 (struct partial_die_info): Update comments for name field.
9058 (pdi_needs_namespace): Renamed to ...
9059 (die_needs_namespace): ... this. Rewrite.
9060 (dwarf2_linkage_name): Remove.
9061 (add_partial_symbol): Do not predicate the call to
9062 partial_die_full_name based on pdi_needs_namespace.
9063 Remove call to cp_check_possible_namespace_symbols and associated
9064 outdated comments.
9065 (guess_structure_name): Do not inspect child subprogram DIEs.
9066 (dwarf2_fullname): Update comments.
9067 Use die_needs_namespace to assist in computing the name.
9068 (read_func_scope): Use dwarf2_name to get the DIE's name.
9069 Use dwarf2_physname to get the "linkage name" of the DIE.
9070 (dwarf2_add_member_field): Use dwarf2_physname instead of
9071 dwarf2_linkage_name.
9072 (read_structure_type): For structs and classes, set TYPE_NAME, too.
9073 (determine_class): Remove.
9074 (read_partial_die): Ignore DW_AT_MIPS_linkage_name for all languages
9075 except Ada.
9076 (new_symbol): Unconditionally call dwarf2_name.
9077 Compute the "linkage name" using dwarf2_physname.
9078 Use dwarf2_name instead of dwarf2_full_name for enumerator DIEs.
9079 When determining to scan for anonymous C++ namespaces, ignore
9080 the linkage name.
9081 (dwarf2_physname): New function.
9082 (dwarf2_full_name): Move content to new function and call
9083 that.
9084 (dwarf2_compute_name): "New" function.
9085 (_initialize_dwarf2_read): Initialize die_list.
9086 * gnu-v3-eabi.c (gnu_v3_find_method_in): Remove unused variable
9087 physname.
9088 (gnu_v3_print_method_ptr): Use the physname for virtual methods
9089 without a demangled name.
9090 Print out type information for non-virtual methods.
9091 * linespec.c (decode_line_1): Force ANY string using "::" (or
9092 "." for java) to use decode_compound, and clean up any stray quoting.
9093 If we found a file symtab, re-evaluate whether the remainder is_quoted.
9094 (decode_compound): Stop consuming at an open parenthesis.
9095 Keep template parameters.
9096 Keep any overload information.
9097 Keep keywords like "const".
9098 Remove paren_pointer.
9099 Move is_quoted check from set_flags to here.
9100 Remove #if 0 code from 2000. Ten years is long enough.
9101 (find_method): Before comparing symbol names, canonicalize the string
9102 from the user.
9103 If a specific overload is requested, find it. Otherwise throw an error.
9104 (find_method_overload_end): New function.
9105 (set_flags): Remove.
9106 (decode_compound): Assume that parentheses are matched.
9107 It's a lot easier.
9108 * symtab.c (symbol_find_demangled_name): Add DMGL_VERBOSE flag
9109 to cplus_demangle.
9110 * linespec.c (decode_line_1): Keep important keywords like
9111 "const" and "volatile".
9112 * symtab.h (SYMBOL_CPLUS_DEMANGLED_NAME): Remove.
9113 * typeprint.h (c_type_print_args): Add declaration.
9114 * ui-file.c (do_ui_file_obsavestring): New function.
9115 (ui_file_obsavestring): New function.
9116 * ui-file.h (ui_file_obsavestring): Add declaration.
9117 * valops.c (find_overload_match): Resolve the object to
9118 a non-pointer type.
9119 If the object is a data member, search the object for the member
9120 and return with staticp set.
9121 Use SYMBOL_NATURAL_NAME instead of SYMBOL_CPLUS_DEMANGLED_NAME.
9122 Do not attempt to extract a function name from non-function types.
9123 If the extracted function name and the original name are the same,
9124 we don't have a C++ method.
9125
9126 From Jan Kratochvil <jan.kratochvil@redhat.com>:
9127 * dwarf2read.c (new_symbol <DW_TAG_enumerator>): Call dwarf2_full_name.
9128
9129 * ada-lang.c (ada_lookup_symbol): Remove linkage_name parameters
9130 and arguments from symbol lookups.
9131 * ax-gdb.c (gen_expr): Likewise.
9132 * cp-namespace.c (cp_lookup_symbol_nonlocal, lookup_namespace_scope,
9133 cp_lookup_symbol_namespace, lookup_symbol_file, lookup_nested_type,
9134 lookup_possible_namespace_symbol): Likewise.
9135 * cp-support.c (read_in_psymtabs): Likewise.
9136 * cp-support.h (cp_lookup_symbol_nonlocal): Likewise.
9137 * language.h (la_lookup_symbol_nonlocal): Likewise.
9138 * scm-valprint.c (scm_inferior_print): Likewise.
9139 * solib-darwin.c (darwin_relocate_section_addresses): Likewise.
9140 * solib-svr.c (elf_lookup_lib): Likewise.
9141 * solib.c (show_auto_solib_add): Likewise.
9142 * solist.h (lookup_lib_global, solib_global_lookup): Likewise.
9143 * symmisc.c (maintenance_check_symtabs): Likewise.
9144 * symtab.c (lookup_symbol_in_language, lookup_symbol_aux,
9145 lookup_symbol_aux_local, lookup_symbol_aux_block,
9146 lookup_symbol_from_objfile, lookup_symbol_aux_symtabs,
9147 lookup_symbol_aux_psymtabs,basic_lookup_symbol_nonlocal,
9148 lookup_symbol_static, lookup_symbol_global, symbol_matches_domain,
9149 basic_lookup_transparent_type, find_main_psymtab,
9150 lookup_block_symbol): Likewise.
9151 * symtab.h (basic_lookp_symbol_nonlocal, lookup_symbol_static,
9152 lookup_symbol_global, lookup_symbol_aux_block,
9153 lookup_symbol_partial_symbol, lookup_block_symbol,
9154 lookup_global_symbol, value_maybe_namespace_elt): Likewise.
9155
9156 2010-03-09 Pierre Muller <muller@ics.u-strasbg.fr>
9157
9158 * python/python-internal.h: Include symtab.h.
9159
9160 2010-03-09 Joel Brobecker <brobecker@adacore.com>
9161 Pierre Muller <muller@ics.u-strasbg.fr>
9162
9163 * p-lang.c (is_pascal_string_type): Remove unneeded parentheses.
9164 * p-valprint.c (pascal_val_print): Remove undeed block and fix
9165 indentation.
9166
9167 2010-03-08 Tom Tromey <tromey@redhat.com>
9168
9169 * breakpoint.c (breakpoint_1): Add "QUIT".
9170
9171 2010-03-08 Daniel Jacobowitz <dan@codesourcery.com>
9172 Pedro Alves <pedro@codesourcery.com>
9173
9174 * solib.c (solib_find): Replace extension if
9175 solib_symbols_extension is set in the target gdbarch.
9176 * arm-symbian-tdep.c (arm_symbian_init_abi): Set
9177 solib_symbols_extension to "sym".
9178 * gdbarch.sh (solib_symbols_extension): New variable.
9179 (pstring): New function.
9180 * gdbarch.h, gdbarch.c: Regenerate.
9181
9182 2010-03-08 Tom Tromey <tromey@redhat.com>
9183
9184 PR cli/9591:
9185 * NEWS: Update.
9186 * utils.c: Include main.h.
9187 (fputs_maybe_filtered): Don't paginate if `batch_flag'.
9188 (defaulted_query): Use default answer if `batch_flag'.
9189 * main.h (batch_flag): Declare.
9190 * main.c (batch_flag): New global.
9191 (captured_main): Remove 'batch'. Update.
9192
9193 2010-03-08 Kevin Buettner <kevinb@redhat.com>
9194
9195 From Richard Sandiford, Martin M. Hunt, Corinna Vinschen,
9196 and Kevin Buettner:
9197
9198 * remote-mips.c (rockhopper_ops): New target_ops struct.
9199 (MON_ROCKHOPPER): New mips_monitor_type.
9200 (read_hex_value): New function.
9201 (mips_request): Send 8-byte values with a 'T' packet. Read the
9202 packet argument as a string and use read_hex_value to parse it.
9203 (mips_exit_debug): Wait for response when using MON_ROCKHOPPER.
9204 (rockhopper_open): New function.
9205 (mips_wait): Read the PC, FP and SP fields as strings. Use
9206 read_hex_value to parse them and mips_set_register to commit them.
9207 (mips_set_register): New function.
9208 (mips_fetch_registers): Do not cast register value to "unsigned"
9209 when reading a MON_ROCKHOPPER 't' packet. Use mips_set_register.
9210 (mips_store_registers): Use a 'T' packet to set registers when
9211 using MON_ROCKHOPPER.
9212 (pmon_end_download): Don't run initEther if using MON_ROCKHOPPER
9213 and expect the total to be printed before the entry address.
9214 (_initialize_remote_mips): Initialize and add rockhopper_ops.
9215
9216 2010-03-08 Kevin Buettner <kevinb@redhat.com>
9217
9218 * remote-mips.c (mips_fetch_word): Add new parameter, `valp'.
9219 Change return value to int. Store value fetched in location
9220 addressed by `val'. Use function's return value as success
9221 or failure indicator. Adjust all callers.
9222
9223 2010-03-08 Pierre Muller <muller@ics.u-strasbg.fr>
9224
9225 * p-lang.c (is_pascal_string_type): Check that TYPE arg is non NULL.
9226
9227 2010-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
9228 Hui Zhu <teawater@gmail.com>
9229
9230 * record.c (record_open_1): Check tmp_to_stopped_by_watchpoint and
9231 tmp_to_stopped_data_address.
9232 (record_open): Reset tmp_to_stopped_by_watchpoint and
9233 tmp_to_stopped_data_address.
9234 * target.c (init_dummy_target): Add to_stopped_by_watchpoint and
9235 to_stopped_data_address.
9236
9237 2010-03-08 Hui Zhu <teawater@gmail.com>
9238
9239 * i386-tdep.c (i386_process_record): Initialize regnum.
9240
9241 2010-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
9242
9243 * symfile.c (addr_info_make_relative): New variable sect_name, use it.
9244 Do not warn on ".gnu.liblist" and ".gnu.conflict".
9245
9246 2010-03-08 Joel Brobecker <brobecker@adacore.com>
9247
9248 Memory error when reading wrong core file.
9249 * solib-svr4.c (solib_svr4_r_map): catch and print all exception
9250 errors while reading the inferior memory, and return zero if
9251 an exception was raised.
9252
9253 2010-03-07 Michael Snyder <msnyder@vmware.com>
9254
9255 * record.c (record_restore): Rename tmpu8 to rectype.
9256
9257 * i386-tdep.c (i386_record_lea_modrm_addr): Rename local variables
9258 tmpu8, tmpi16, tmpi32, tmpulongest to addr8, addr16, addr32, addr64.
9259
9260 (i386_record_push): Rename local tmpulongest to addr.
9261
9262 (i386_process_record): Rename local tmpulongest to addr.
9263
9264 Rename local variables tmpu16, tmpu32, tmpu64 to addr16, addr32,
9265 addr64.
9266
9267 Rename local variable tmpu8 to opcode8 and regnum.
9268
9269 2010-03-07 Joel Brobecker <brobecker@adacore.com>
9270
9271 * remote.c (remote_get_ada_task_ptid): New function.
9272 (init_remote_ops): Set remote_ops.to_get_ada_task_ptid.
9273
9274 2010-03-06 Christopher Faylor <me+cygwin@cgf.cx>
9275
9276 * windows-nat.c: Reorganize #ifdef __CYGWIN__ considerations into one
9277 block. Define helper macros to reduce ifdefs in code.
9278 (get_module_name): Use cygwin_buf_t for buffer and __PMAX for buffer
9279 size. Call unadorned GetModuleFileNameEx rather than
9280 GetModuleFileNameEx*.
9281 (windows_make_so): Use __PMAX to denote maximum buffer size and
9282 cygwin_buf_t for buffer type. Use GetSystemDirectory{W,A} as
9283 appropriate.
9284 (get_image_name): Use __PMAX to denote maximum buffer size.
9285 (handle_load_dll): Likewise.
9286 (windows_pid_to_exec_file): Likewise.
9287 (windows_create_inferior): Add many accommodations for older Cygwin and
9288 non-Cygwin.
9289 (bad_GetModuleFileNameExW): Control inclusion of this function based on
9290 __USEWIDE conditional.
9291 (bad_GetModuleFileNameExA): Likewise.
9292 (_initialize_loadable): Just use real function names without the dyn_
9293 part since they are defined earlier.
9294
9295 2010-03-05 Corinna Vinschen <vinschen@redhat.com>
9296 Tom Tromey <tromey@redhat.com>
9297
9298 * utils.c (host_char_to_target): Add 'gdbarch' argument.
9299 (parse_escape): Likewise.
9300 * python/py-utils.c (unicode_to_target_string): Update.
9301 (unicode_to_target_python_string): Update.
9302 (target_string_to_unicode): Update.
9303 * printcmd.c (printf_command): Update.
9304 * p-exp.y (yylex): Update.
9305 * objc-exp.y (yylex): Update.
9306 * mi/mi-parse.c: Include charset.h.
9307 (mi_parse_escape): New function.
9308 (mi_parse_argv): Use it.
9309 * jv-exp.y (yylex): Update.
9310 * i386-cygwin-tdep.c (i386_cygwin_auto_wide_charset): New
9311 function.
9312 (i386_cygwin_init_abi): Call set_gdbarch_auto_wide_charset.
9313 * gdbarch.sh (auto_charset, auto_wide_charset): New.
9314 * gdbarch.c: Rebuild.
9315 * gdbarch.h: Rebuild.
9316 * defs.h (parse_escape): Update.
9317 * cli/cli-setshow.c: Include arch-utils.h.
9318 (do_setshow_command): Update.
9319 * cli/cli-cmds.c (echo_command): Update.
9320 * charset.h (target_charset, target_wide_charset): Update.
9321 * charset.c: Include arch-utils.h.
9322 (target_charset_name): Default to "auto".
9323 (target_wide_charset_name): Likewise.
9324 (show_target_charset_name): Handle "auto".
9325 (show_target_wide_charset_name): Likewise.
9326 (be_le_arch): New global.
9327 (set_be_le_names): Add 'gdbarch' argument.
9328 (validate): Likewise. Don't call set_be_le_names.
9329 (set_charset_sfunc, set_host_charset_sfunc)
9330 (set_target_charset_sfunc, set_target_wide_charset_sfunc):
9331 Update.
9332 (target_charset): Add 'gdbarch' argument.
9333 (target_wide_charset): Likewise. Remove 'byte_order' argument.
9334 (auto_target_charset_name): New global.
9335 (default_auto_charset, default_auto_wide_charset): New functions.
9336 (_initialize_charset): Set auto_target_charset_name. Allow "auto"
9337 for target charsets. Copy result of nl_langinfo. Use GetACP if
9338 USE_WIN32API.
9339 * c-lang.c (charset_for_string_type): Add 'gdbarch' argument,
9340 remove 'byte_order' argument. Update.
9341 (classify_type): Likewise.
9342 (c_emit_char): Update.
9343 (c_printchar): Update.
9344 (c_printstr): Update.
9345 (c_get_string): Update.
9346 (evaluate_subexp_c): Update.
9347 * arch-utils.h (default_auto_charset, default_auto_wide_charset):
9348 Declare.
9349 * python/python.c (gdbpy_target_charset): New function.
9350 (gdbpy_target_wide_charset): Likewise.
9351 (GdbMethods): Update.
9352 * NEWS: Update.
9353
9354 2010-03-05 Ulrich Weigand <uweigand@de.ibm.com>
9355
9356 * symfile.c (build_section_addr_info_from_objfile): Do not mask
9357 off high address bits.
9358
9359 2010-03-05 Ulrich Weigand <uweigand@de.ibm.com>
9360
9361 * python/py-lazy-string.c (gdbpy_extract_lazy_string): Extract
9362 address as UnsignedLongLong, not LongLong.
9363
9364 2010-03-05 Kevin Buettner <kevinb@redhat.com>
9365 Pedro Alves <pedro@codesourcery.com>
9366
9367 * remote-mips.c (gdbthread.h): Include.
9368 (remote_mips_ptid): Declare.
9369 (mips_error): Only mourn the inferior when inferior_ptid is non-null.
9370 (common_open): Set inferior_ptid, add it as an inferior, and
9371 as a thread too. Delete FIXME comment regarding start_remote().
9372 (mips_close): Invoke generic_mourn_inferior().
9373 (mips_kill): Make sure that target_mourn_inferior is invoked.
9374 (mips_mourn_inferior): Don't invoke generic_mourn_inferior, as
9375 it's now invoked from mips_close().
9376 (mips_load): Don't null out inferior_ptid. Don't call
9377 clear_symtab_users().
9378 (mips_thread_alive, mips_pid_to_str): New functions.
9379 (_initialize_remote_mips): Initialize remote_mips_ptid. Initialize
9380 to_thread_alive and to_pid_to_str operations.
9381
9382 2010-03-04 Tom Tromey <tromey@redhat.com>
9383
9384 * dwarf2read.c (skip_one_die) <DW_FORM_ref_addr>: Use offset size
9385 in DWARF 3 and later.
9386 (read_attribute_value) <DW_FORM_ref_addr>: Likewise.
9387
9388 2010-03-04 Keith Seitz <keiths@redhat.com>
9389
9390 * linespec.c (decode_line_1): Update comments for is_quote_enclosed.
9391 If the filename portion of the linespec was quoted, recheck the
9392 remainder for additional quoting.
9393 (locate_first_half): Skip over completer chars, too.
9394
9395 2010-03-04 Tom Tromey <tromey@redhat.com>
9396
9397 * printcmd.c (printf_command): Pass dummy argument to
9398 printf_filtered.
9399
9400 2010-03-04 Doug Evans <dje@google.com>
9401
9402 * arm-tdep.c (arm_make_stub_cache): Delete unused locals reg,
9403 unwound_fp.
9404
9405 * arm-tdep.c (arm_stub_unwind_sniffer): Add comment.
9406
9407 2010-03-04 Pedro Alves <pedro@codesourcery.com>
9408
9409 * breakpoint.c (update_watchpoint): Create a sentinel location if
9410 the software watchpoint isn't watching any memory.
9411 (breakpoint_address_bits): Skip dummy software watchpoint locations.
9412
9413 2010-03-04 Pedro Alves <pedro@codesourcery.com>
9414
9415 * utils.c (fputs_maybe_filtered): Check if there's already a top
9416 level interpreter before dereferencing it. If there isn't one,
9417 don't paginate either.
9418
9419 2010-03-04 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
9420
9421 * arm-tdep.c (arm_pc_is_thumb): Add heuristic that tries to get
9422 the state right when single stepping.
9423 (arm_get_next_pc_raw, thumb_get_next_pc_raw): New functions.
9424 Get the next PC along with the instruction state.
9425 (thumb_get_next_pc): Remove.
9426 (arm_get_next_pc): Modified to use arm_get_next_pc_raw.
9427
9428 2010-03-04 Hui Zhu <teawater@gmail.com>
9429
9430 * i386-tdep.c (i386_process_record): Change "addr" to "tmpu64".
9431
9432 2010-03-03 Pedro Alves <pedro@codesourcery.com>
9433
9434 * utils.c (fputs_maybe_filtered): Always disable pagination if the
9435 top level interpreter is MI.
9436
9437 2010-03-03 Stan Shebs <stan@codesourcery.com>
9438
9439 * remote.c (remote_download_tracepoint): Iterate over locations.
9440 * tracepoint.c (validate_actionline): Ditto.
9441 (encode_actions): Add location argument.
9442 (trace_dump_command): Check all locations to see if stepping
9443 frame.
9444
9445 2010-03-03 H.J. Lu <hongjiu.lu@intel.com>
9446 Eli Zaretskii <eliz@gnu.org>
9447
9448 * NEWS: Add X86 general purpose registers section.
9449
9450 2010-03-03 Tom Tromey <tromey@redhat.com>
9451
9452 PR mi/11098:
9453 * varobj.c (install_new_value): Handle case where new print_value
9454 is NULL.
9455
9456 2010-03-03 Dainis Jonitis <jonitis@gmail.com>
9457
9458 PR gdb/11345:
9459 * printcmd.c (printf_command): Print end of format string using
9460 printf_filtered.
9461
9462 2010-03-02 Tom Tromey <tromey@redhat.com>
9463
9464 * mi/mi-cmd-break.c (mi_read_next_line): Add missing 'void'.
9465 * defs.h (read_command_lines_1): Add missing 'void'.
9466 * cli/cli-script.c (recurse_read_control_structure): Add missing
9467 'void'.
9468 (read_next_line): Likewise.
9469 (read_command_lines_1): Likewise.
9470
9471 2010-03-02 Ulrich Weigand <uweigand@de.ibm.com>
9472
9473 * spu-tdep.c (spu_analyze_prologue): Track instruction to
9474 store backchain as part of prologue.
9475
9476 2010-03-02 Daniel Jacobowitz <dan@codesourcery.com>
9477
9478 * progspace.c (update_address_spaces): Update inferior address spaces
9479 also.
9480
9481 2010-03-02 Doug Evans <dje@google.com>
9482
9483 * dwarf2read.c (add_partial_subprogram): Add missing baseaddr to
9484 lowpc,highpc args to addrmap_set_empty.
9485
9486 2010-03-02 H.J. Lu <hongjiu.lu@intel.com>
9487
9488 * amd64-tdep.c (amd64_byte_names): New.
9489 (amd64_word_names): Likewise.
9490 (amd64_dword_names): Likewise.
9491 (amd64_pseudo_register_name): Likewise.
9492 (amd64_pseudo_register_read): Likewise.
9493 (amd64_pseudo_register_write): Likewise.
9494 (amd64_init_abi): Set num_byte_regs, num_word_regs, num_dword_regs
9495 and num_mmx_regs. Call set_gdbarch_pseudo_register_read,
9496 set_gdbarch_pseudo_register_write and
9497 set_tdesc_pseudo_register_name. Don't call
9498 set_gdbarch_num_pseudo_regs. Don't set mm0_regnum.
9499
9500 * i386-tdep.c (i386_num_mmx_regs): Removed.
9501 (i386_num_pseudo_regs): Likewise.
9502 (i386_byte_names): New.
9503 (i386_word_names): Likewise.
9504 (i386_byte_regnum_p): Likewise.
9505 (i386_word_regnum_p): Likewise.
9506 (i386_mmx_regnum_p): Updated.
9507 (i386_pseudo_register_name): Make it global. Handle byte and
9508 word pseudo-registers.
9509 (i386_pseudo_register_read): Likewise.
9510 (i386_pseudo_register_write): Likewise.
9511 (i386_pseudo_register_type): Handle byte, word and dword
9512 pseudo-registers
9513 (i386_register_reggroup_p): Don't include pseudo
9514 registers, except for MXX, in any register groups. Don't
9515 include pseudo byte, word, dword registers in general_reggroup.
9516 (i386_gdbarch_init): Set num_byte_regs, num_word_regs,
9517 num_dword_regs, al_regnum, ax_regnum and eax_regnum. Put MMX
9518 pseudo-registers after word pseudo-registers. Call
9519 set_gdbarch_num_pseudo_regs after calling gdbarch_init_osabi.
9520
9521 * i386-tdep.h (gdbarch_tdep): Add num_mmx_regs, num_byte_regs,
9522 al_regnum, num_word_regs, ax_regnum, num_dword_regs and
9523 eax_regnum.
9524 (i386_byte_regnum_p): New.
9525 (i386_word_regnum_p): Likewise.
9526 (i386_dword_regnum_p): Likewise.
9527 (i386_pseudo_register_name): Likewise.
9528 (i386_pseudo_register_read): Likewise.
9529 (i386_pseudo_register_write): Likewise.
9530
9531 2010-03-01 H.J. Lu <hongjiu.lu@intel.com>
9532
9533 * target-descriptions.c (tdesc_type): Remove
9534 TDESC_TYPE_I386_EFLAGS and TDESC_TYPE_I386_MXCSR.
9535 (tdesc_predefined_types): Likewise.
9536 (tdesc_gdb_type): Likewise. Pass NULL to append_flags_type_flag
9537 if flag name is empty.
9538 (maint_print_c_tdesc_cmd): Handle TDESC_TYPE_FLAGS.
9539
9540 * features/i386/32bit-core.xml: Define i386_eflags.
9541 * features/i386/64bit-core.xml: Likewise.
9542
9543 * features/i386/32bit-sse.xml: Define i386_mxcsr.
9544 * features/i386/64bit-sse.xml: Likewise.
9545
9546 * features/i386/amd64-linux.c: Regenerated.
9547 * features/i386/amd64.c: Likewise.
9548 * features/i386/i386-linux.c: Likewise.
9549 * features/i386/i386.c: Likewise.
9550
9551 2010-03-01 Daniel Jacobowitz <dan@codesourcery.com>
9552
9553 * gdbtypes.c (append_composite_type_field_raw): New.
9554 (append_composite_type_field_aligned): Use the new function.
9555 * gdbtypes.h (append_composite_type_field_raw): Declare.
9556 * target-descriptions.c (struct tdesc_type_field): Add start and end.
9557 (struct tdesc_type_flag): New type.
9558 (struct tdesc_type): Add TDESC_TYPE_STRUCT and TDESC_TYPE_FLAGS to
9559 kind. Add size to u.u. Add u.f for flags.
9560 (tdesc_gdb_type): Handle TDESC_TYPE_STRUCT and TDESC_TYPE_FLAGS.
9561 (tdesc_free_type): Likewise.
9562 (tdesc_create_struct, tdesc_set_struct_size, tdesc_create_flags): New.
9563 (tdesc_add_field): Handle TDESC_TYPE_STRUCT.
9564 (tdesc_add_bitfield, tdesc_add_flag): New.
9565 * target-descriptions.h (tdesc_create_struct, tdesc_set_struct_size)
9566 (tdesc_create_flags, tdesc_add_bitfield, tdesc_add_flag): Declare.
9567 * xml-tdesc.c (struct tdesc_parsing_data): Rename current_union to
9568 current_type. Add current_type_size and current_type_is_flags.
9569 (tdesc_start_union): Clear the new fields.
9570 (tdesc_start_struct, tdesc_start_flags): New.
9571 (tdesc_start_field): Handle struct fields, including bitfields.
9572 (field_attributes): Make type optional. Add start and end.
9573 (union_children): Rename to struct_union_children.
9574 (union_attributes): Rename to struct_union_attributes. Add optional
9575 size.
9576 (flags_attributes): New.
9577 (feature_children): Add struct and flags.
9578 * features/gdb-target.dtd: Add flags and struct to features.
9579 Make field type optional. Add field start and end.
9580
9581 2010-03-01 H.J. Lu <hongjiu.lu@intel.com>
9582
9583 * amd64-linux-nat.c (AMD64_LINUX_USER64_CS): New.
9584 (amd64_linux_read_description): Likewise.
9585 (_initialize_amd64_linux_nat): Set to_read_description to
9586 amd64_linux_read_description.
9587
9588 * amd64-linux-tdep.c: Include "features/i386/amd64-linux.c".
9589 (amd64_linux_register_name): Removed.
9590 (amd64_linux_register_type): Likewise.
9591 (amd64_linux_core_read_description): New.
9592 (amd64_linux_init_abi): Set target description to
9593 tdesc_amd64_linux if needed. Support orig_rax in target
9594 description. Don't call set_gdbarch_register_name nor
9595 set_gdbarch_register_type. Call
9596 set_gdbarch_core_read_description.
9597 (_initialize_amd64_linux_tdep): Call
9598 initialize_tdesc_amd64_linux.
9599
9600 * amd64-linux-tdep.h (tdesc_amd64_linux): New.
9601
9602 * amd64-tdep.c: Include "features/i386/amd64.c".
9603 (amd64_register_names): Removed.
9604 (amd64_register_name): Likewise.
9605 (amd64_register_type): Likewise.
9606 (amd64_init_abi): Set num_core_regs and register_names. Set
9607 target description to tdesc_amd64 if needed. Don't call
9608 set_gdbarch_register_name nor set_gdbarch_register_type.
9609 (_initialize_amd64_tdep): New.
9610
9611 * i386-linux-nat.c (i386_linux_read_description): New.
9612 (_initialize_i386_linux_nat): Set to_read_description to
9613 i386_linux_read_description.
9614
9615 * i386-linux-tdep.c: Include "features/i386/i386-linux.c".
9616 (i386_linux_register_name): Removed.
9617 (i386_linux_core_read_description): New.
9618 (i386_linux_read_description): Likewise.
9619 (i386_linux_init_abi): Don't call set_gdbarch_register_name.
9620 Set target description to tdesc_i386_linux if needed. Support
9621 orig_eax. Set register_reggroup_p. Call
9622 set_gdbarch_core_read_description.
9623 (_initialize_i386_linux_tdep): Call initialize_tdesc_i386_linux.
9624
9625 * i386-linux-tdep.h (tdesc_i386_linux): New.
9626
9627 * i386-nto-tdep.c (i386nto_regset_id): Replace I386_NUM_FREGS
9628 with I387_NUM_REGS.
9629
9630 * i386-tdep.c: Include "features/i386/i386.c".
9631 (i386_register_names): Make it const.
9632 (i386_mmx_names): Likewise.
9633 (i386_num_register_names): Removed.
9634 (i386_register_name): Likewise.
9635 (i386_eflags_type): Likewise.
9636 (i386_mxcsr_type): Likewise.
9637 (i386_sse_type): Likewise.
9638 (i386_register_type): Likewise.
9639 (i387_ext_type): Call tdesc_find_type instead of arch_float_type.
9640 (i386_pseudo_register_name): New.
9641 (i386_pseudo_register_type): Likewise.
9642 (i386_mmx_type): Make it static.
9643 (i386_gdbarch_init): Check arch. Replace I386_NUM_FREGS with
9644 I387_NUM_REGS. Set num_core_regs and register_names. Don't
9645 call set_gdbarch_register_name nor set_gdbarch_register_type.
9646 Set register_reggroup_p. Set target description to tdesc_i386
9647 if needed. Call set_tdesc_pseudo_register_type,
9648 set_tdesc_pseudo_register_name and tdesc_use_registers.
9649 (_initialize_i386_tdep): Call initialize_tdesc_i386.
9650 initialize_tdesc_x86_64.
9651
9652 * i386-tdep.h (gdbarch_tdep): Remove i386_eflags_type,
9653 i386_mxcsr_type and i386_sse_type. Add num_core_regs,
9654 register_names, tdesc and register_reggroup_p.
9655 (I386_NUM_FREGS): Removed.
9656 (i386_eflags_type): Likewise.
9657 (i386_mxcsr_type): Likewise.
9658 (i386_mmx_type): Likewise.
9659 (i386_sse_type): Likewise.
9660 (i386_register_name): Likewise.
9661 (i386_regnum): Add I386_MXCSR_REGNUM.
9662 (I386_SSE_NUM_REGS): Defined with I386_MXCSR_REGNUM.
9663
9664 * i387-tdep.h (I387_NUM_REGS): New.
9665
9666 * regformats/i386/i386-linux.dat: Generated.
9667 * regformats/i386/i386.dat: Likewise.
9668 * regformats/i386/amd64-linux.dat: Likewise.
9669 * regformats/i386/amd64.dat: Likewise.
9670
9671 * regformats/reg-i386-linux.dat: Removed.
9672 * regformats/reg-i386.dat: Likewise.
9673 * regformats/reg-x86-64-linux.dat: Likewise.
9674 * regformats/reg-x86-64.dat: Likewise.
9675
9676 2010-03-01 Corinna Vinschen <vinschen@redhat.com>
9677
9678 * remote-fileio.c (remote_fileio_func_rename): Use Cygwin 1.7
9679 cygwin_conv_path API rather than the deprecated
9680 cygwin_conv_to_full_posix_path.
9681 * windows-nat.c:
9682 (GetModuleFileNameExA): Undefine for Cygwin.
9683 (GetModuleFileNameExW): Define for Cygwin.
9684 (get_module_name): Change size of pathbuf to PATH_MAX for Cygwin.
9685 Call GetModuleFileNameExW and convert path to POSIX using
9686 cygwin_conv_path.
9687 (windows_make_so): Always define p. Drop unused variable m.
9688 Don't use Win32 functions to check file existance, rather use
9689 access on Cygwin. Fetch system directory using GetSystemDirectoryW.
9690 Use canonicalize_file_name to get full path.
9691 (get_image_name): Use wcstombs, rather than WideCharToMultiByte
9692 to convert Unicode pathname to multibyte on Cygwin. Otherwise,
9693 use correct target buffer size in call to WideCharToMultiByte.
9694 (handle_load_dll): Change size of dll_buf to PATH_MAX for Cygwin.
9695 (windows_pid_to_exec_file): Change size of path to PATH_MAX for Cygwin.
9696 (windows_create_inferior): Convert all paths and arguments to wchar_t
9697 and use CreateProcessW on Cygwin.
9698 (_initialize_windows_nat): Disable DOS-style path warning on Cygwin.
9699 (bad_GetModuleFileNameExA): Undefine for Cygwin.
9700 (bad_GetModuleFileNameExW): Define for Cygwin.
9701 (_initialize_loadable): Load GetModuleFileNameExW into
9702 dyn_GetModuleFileNameExW on Cygwin. Don't load ANSI function on Cygwin.
9703
9704 2010-02-28 Phil Muldoon <pmuldoon@redhat.com>
9705
9706 PR python/11036
9707 * python/py-frame.c (frapy_read_var): Add block argument and logic
9708 to cope with user provided blocks.
9709
9710 2010-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
9711
9712 * infcall.c (call_function_by_hand): Remove gdb_assert on sp and old_sp.
9713 New comment.
9714
9715 2010-02-28 Corinna Vinschen <vinschen@redhat.com>
9716
9717 * Makefile.in (SUBDIR_MI_OBS): Move mi-common.o from here...
9718 (COMMON_OBS): ... to here since it's used unconditionally.
9719 (SUBDIR_MI_SRCS): Move mi/mi-common.c from here...
9720 (SFILES): To here.
9721
9722 2010-02-26 David Daney <ddaney@caviumnetworks.com>
9723
9724 * mips-linux-tdep.c: Update struct sigframe comments.
9725 (SIGFRAME_CODE_OFFSET): Delete macro.
9726 (mips_linux_o32_sigframe_init): Calculate sigcontext_base using
9727 this_frame's sp.
9728 (mips_linux_n32n64_sigframe_init): Same.
9729
9730 2010-02-26 Kevin Buettner <kevinb@redhat.com>
9731
9732 * remote-mips.c (mips_load): Don't use pseudo-register when
9733 invalidating regcache.
9734
9735 2010-02-26 Daniel Jacobowitz <dan@codesourcery.com>
9736
9737 * arm-tdep.c (thumb_get_next_pc): Correct conditional branch opcode.
9738
9739 2010-02-26 Pedro Alves <pedro@codesourcery.com>
9740
9741 * NEWS: Add "New targets" section, and mention ARM Symbian
9742 support.
9743
9744 2010-02-26 Ulrich Weigand <uweigand@de.ibm.com>
9745
9746 * dwarf2loc.c (struct piece_closure): Remove ARCH member,
9747 add ADDR_SIZE member.
9748 (allocate_piece_closure): Update.
9749 (copy_pieced_value_closure): Likewise.
9750 (dwarf2_evaluate_loc_desc): Likewise.
9751 (read_pieced_value): Use DWARF address size instead of
9752 GDB's gdbarch_addr_bit as size of values on the DWARF stack.
9753
9754 2010-02-26 Phil Muldoon <pmuldoon@redhat.com>
9755 Tom Tromey <tromey@redhat.com>
9756
9757 * python/py-type.c (typy_lookup_typename): Add in block argument.
9758 If provided restrict lookup to specified blocks.
9759 (gdbpy_lookup_type): Likewise.
9760 (typy_lookup_type): Likewise.
9761
9762 2010-02-25 Daniel Jacobowitz <dan@codesourcery.com>
9763
9764 Symbian config
9765
9766 gdb/
9767 * arm-symbian-tdep.c: New.
9768 * configure.tgt (arm*-*-symbianelf*): New target.
9769 (*-*-symbianelf*): New OS.
9770 * osabi.c (gdb_osabi_names): Add Symbian.
9771 * defs.h (gdb_osabi): Add GDB_OSABI_SYMBIAN.
9772 * Makefile.in (ALL_TARGET_OBJS): Add arm-symbian-tdep.o.
9773 (ALLDEPFILES): Add arm-symbian-tdep.c.
9774
9775 2010-02-25 Daniel Jacobowitz <dan@codesourcery.com>
9776
9777 * symfile.c (find_lowest_section): Include SEC_ALLOC sections.
9778
9779 2010-02-24 Pedro Alves <pedro@codesourcery.com>
9780
9781 * mi/mi-main.c (mi_cmd_execute): Fix typo.
9782
9783 2010-02-24 Phil Muldoon <pmuldoon@redhat.com>
9784 Tom Tromey <tromey@redhat.com>
9785 Thiago Jung Bauermann <bauerman@br.ibm.com>
9786
9787 * python/python.c (_initialize_python): Call
9788 gdbpy_initialize_symtabs, gdbpy_initialize_symbols and
9789 gdbpy_initialize_blocks.
9790 * python/python-internal.h: Declare struct symbol, block and
9791 symtab_and_line. Declare block_object_type and
9792 symbol_object_type
9793 (gdbpy_lookup_symbol gdbpy_block_for_pc)
9794 (symtab_and_line_to_sal_object, symtab_to_symtab_object)
9795 (symbol_to_symbol_object, block_to_block_object)
9796 (gdbpy_initialize_symtabs,gdbpy_initialize_symbols)
9797 (gdbpy_initialize_blocks ): Declare.
9798 * python/py-frame.c (frapy_block, frapy_function, frapy_find_sal)
9799 (frapy_select): Add methods.
9800 (frapy_read_var): Add symbol branch.
9801 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-symbol, py-symtab,
9802 py-block.
9803 (SUBDIR_PYTHON_SRCS): Likewise.
9804 (py-symbol.o): New rule.
9805 (py-symtab.o): Likewise.
9806 (py-block.o): Likewise.
9807 * python/py-symbol.c: New file.
9808 * python/py-symtab.c: Likewise.
9809 * python/py-block.c: Likewise.
9810
9811 2010-02-24 Pedro Alves <pedro@codesourcery.com>
9812
9813 PR gdb/11321
9814
9815 * inferior.h (prepare_for_detach): Declare.
9816 (struct inferior) <detaching>: New field.
9817 * infrun.c (prepare_for_detach): New.
9818 (handle_inferior_event) <random signal>: Don't stop if detaching.
9819 * target.c (target_detach): Call prepare_for_detach.
9820
9821 2010-02-24 Pedro Alves <pedro@codesourcery.com>
9822
9823 Per-process displaced stepping queue.
9824
9825 * infrun.c (displaced_step_ptid, displaced_step_request_queue)
9826 (displaced_step_gdbarch, displaced_step_closure,
9827 (displaced_step_original, displaced_step_copy): Move globals to
9828 this...
9829 (struct displaced_step_inferior_state): ... new structure.
9830 (displaced_step_inferior_states): New global.
9831 (get_displaced_stepping_state, add_displaced_stepping_state)
9832 (remove_displaced_stepping_state, infrun_inferior_exit): New
9833 functions.
9834 (displaced_step_clear): Add displaced_step_inferior_state
9835 parameter, and adjust to handle it.
9836 (displaced_step_clear_cleanup): Parameter is now a
9837 displaced_step_inferior_state. Adjust.
9838 (displaced_step_prepare): Adjust.
9839 (displaced_step_fixup, displaced_step_fixup)
9840 (infrun_thread_ptid_changed, resume): Adjust.
9841 (init_wait_for_inferior): Don't call displaced_step_clear.
9842 (infrun_thread_stop_requested): Rewrite.
9843 (_initialize_infrun): Install infrun_inferior_exit as
9844 inferior_exit observer.
9845
9846 2010-02-24 Pedro Alves <pedro@codesourcery.com>
9847
9848 * inferior.h (ptid_match): Declare.
9849 * infrun.c (ptid_match): New.
9850 * remote.c (queued_stop_reply): Rewrite and use ptid_match.
9851 (handle_notification): Add debug output.
9852 * linux-nat.c (ptid_match): Delete.
9853
9854 2010-02-24 David S. Miller <davem@davemloft.net>
9855
9856 * gdb_ptrace.h (PT_SYSCALL): If PTRACE_SYSCALL is available, use it.
9857 * syscalls/sparc-linux.xml: New.
9858 * syscalls/sparc64-linux.xml: New.
9859 * Makefile.in (XML_SYSCALL_FILES): Add new syscall XML files.
9860 * sparc-linux-tdep.c (XML_SYSCALL_FILENAME_SPARC32): Define.
9861 (sparc32_linux_get_syscall_number): New function.
9862 (sparc32_linux_init_abi): Set syscall XML file name and hook up
9863 syscall number fetcher.
9864 * sparc64-linux-tdep.c (XML_SYSCALL_FILENAME_SPARC64): Define.
9865 (sparc64_linux_get_syscall_number): New function.
9866 (sparc64_linux_init_abi): Set syscall XML file name and hook up
9867 syscall number fetcher.
9868
9869 2010-02-24 Vladimir Prus <vladimir@codesourcery.com>
9870
9871 Multiexec MI
9872
9873 * breakpoint.c (clear_syscall_counts): Take struct inferior*.
9874 * inferior.c (add_inferior_silent): Notify inferior_added
9875 observer.
9876 (delete_inferior_1): Notify inferior_removed observer.
9877 (exit_inferior_1): Pass inferior, not pid, to observer.
9878 (inferior_appeared): Likewise.
9879 (add_inferior_with_spaces): New.
9880 (add_inferior_command): Use the above.
9881 * inferior.h (delete_inferior_1, add_inferior_with_spaces):
9882 Declare.
9883
9884 * inflow.c (inflow_inferior_exit): Likewise.
9885 * jit.c (jit_inferior_exit_hook): Likewise.
9886
9887 * mi/mi-cmds.c (mi_cmds): Register add-inferior and
9888 remove-inferior.
9889 * mi/mi-cmds.h (mi_cmd_add_inferior, mi_cmd_remove_inferior): New.
9890 * mi/mi-interp.c (mi_inferior_added, mi_inferior_removed): New.
9891 (report_initial_inferior): New.
9892 (mi_inferior_removed): Register the above. Make sure
9893 inferior_added observer is called on the first inferior.
9894 (mi_new_thread, mi_thread_exit): Thread group is now identified by
9895 inferior number, not pid.
9896 (mi_solib_loaded, mi_solib_unloaded): Report which inferiors are
9897 affected.
9898 * mi/mi-main.c (current_context): New.
9899 (proceed_thread_callback): Use typed closure.
9900 Proceed everything if pid is 0. Most implementation split into
9901 (proceed_thread): ... this.
9902 (run_one_inferior): New.
9903 (mi_cmd_exec_continue, mi_cmd_exec_interrupt, mi_cmd_exec_run):
9904 Adjust for multiexec behaviour.
9905 (mi_cmd_add_inferior, mi_cmd_remove_inferior): New.
9906 (mi_cmd_execute): Handle the 'thread-group' option here.
9907 Do some extra checks.
9908 * mi-parse.c (mi_parse): Handle the --all and --thread-group
9909 options.
9910 * mi-parse.h (struct mi_parse): New fields all and thread_group.
9911
9912 2010-02-24 Vladimir Prus <vladimir@codesourcery.com>
9913
9914 Make -exec-run a proper MI commands.
9915
9916 * mi/mi-cmds.h (mi_cmd_exec_run): Declare.
9917 * mi/mi-cmds.c (mi_cmds): Adjust.
9918 * mi/mi-main.c (mi_cmd_exec_run): New.
9919
9920 2010-02-24 Pedro Alves <pedro@codesourcery.com>
9921 Stan Shebs <stan@codesourcery.com>
9922
9923 * tracepoint.h (set_traceframe_number)
9924 (cleanup_restore_current_traceframe): Declare.
9925 * tracepoint.c (set_traceframe_number): New.
9926 (struct current_traceframe_cleanup): New.
9927 (do_restore_current_traceframe_cleanup)
9928 (restore_current_traceframe_cleanup_dtor)
9929 (make_cleanup_restore_current_traceframe): New.
9930 * infrun.c: Include tracepoint.h.
9931 (fetch_inferior_event): Switch out and in of tfind mode.
9932
9933 2010-02-24 Pedro Alves <pedro@codesourcery.com>
9934
9935 * breakpoint.c (breakpoint_init_inferior): Also delete
9936 bp_shlib_event breakpoints.
9937 * solib-frv.c (enable_break): Remove call to
9938 remove_solib_event_breakpoints.
9939 * solib-svr4.c (enable_break): Ditto.
9940 * solib-darwin.c (darwin_solib_create_inferior_hook): Ditto.
9941 * solib-pa64.c (pa64_solib_create_inferior_hook): Ditto.
9942 * solib-som.c (som_solib_create_inferior_hook): Ditto.
9943 * solib-spu.c (spu_enable_break): Ditto.
9944
9945 2010-02-23 Harald Koenig <H.Koenig@science-computing.de>
9946
9947 * c-exp.y (token_and_value): s/union YYSTYPE/YYSTYPE.
9948
9949 2010-02-23 Harald Koenig <H.Koenig@science-computing.de>
9950
9951 * varobj.c (varobj_update): Avoid non-constants in initializers.
9952
9953 2010-02-23 Tom Tromey <tromey@redhat.com>
9954
9955 * dwarf2loc.c (read_pieced_value) <DWARF_VALUE_STACK>: Correctly
9956 handle big-endian values.
9957 (dwarf2_evaluate_loc_desc) <DWARF_VALUE_STACK>: Likewise.
9958
9959 2010-02-22 Pedro Alves <pedro@codesourcery.com>
9960
9961 PR9605
9962
9963 gdb/
9964 * breakpoint.c (insert_bp_location): If inserting the read
9965 watchpoint failed, fallback to an access watchpoint.
9966 (bpstat_check_watchpoint): Stop for read watchpoint triggers even
9967 if the value changed, if not watching the same memory for writes.
9968 (watchpoint_locations_match): Add comment.
9969 (update_global_location_list): Copy the location's watchpoint type.
9970 * i386-nat.c (i386_length_and_rw_bits): It's an internal error to
9971 handle read watchpoints here.
9972 (i386_insert_watchpoint): Read watchpoints aren't supported.
9973 * remote.c (remote_insert_watchpoint): Return 1 for unsupported
9974 packets.
9975 * target.h (target_insert_watchpoint): Update description.
9976
9977 2010-02-19 Tom Tromey <tromey@redhat.com>
9978
9979 * p-typeprint.c (pascal_type_print_varspec_prefix): Update.
9980 * m2-typeprint.c (m2_print_type): Update.
9981 * gdbtypes.c (recursive_dump_type): Update.
9982 (copy_type_recursive): Update.
9983 * c-typeprint.c (c_type_print_varspec_prefix): Update.
9984 (c_type_print_base): Update.
9985 * gdbtypes.h (TYPE_CODE_TEMPLATE, TYPE_CODE_TEMPLATE_ARG):
9986 Remove.
9987 (struct cplus_struct_type) <ntemplate_args>: Remove.
9988 <struct template_arg>: Remove.
9989 <is_dynamic>: Move earlier.
9990 (TYPE_TEMPLATE_ARGS): Remove.
9991 (TYPE_NTEMPLATE_ARGS): Remove.
9992 (TYPE_TEMPLATE_ARG): Remove.
9993
9994 2010-02-19 Tom Tromey <tromey@redhat.com>
9995
9996 PR c++/8693, PR c++/9496:
9997 * cp-namespace.c (cp_lookup_nested_type): Handle TYPE_CODE_UNION.
9998 * c-exp.y (lex_one_token): Rename from yylex. Don't call
9999 write_dollar_variable. Don't try to classify NAME tokens.
10000 (token_and_value): New type.
10001 (token_fifo, popping, name_obstack): New globals.
10002 (classify_name): New function.
10003 (classify_inner_name): Likewise.
10004 (yylex): Likewise.
10005 (VARIABLE): Now has type sval.
10006 (exp : VARIABLE): Call write_dollar_variable.
10007 (qualified_name): Use TYPENAME, not typebase. Add production for
10008 multiple "::" instances.
10009 (variable): Use name_not_typename.
10010 (qualified_type): Remove.
10011 (typebase): Update.
10012
10013 2010-02-19 Jan Kratochvil <jan.kratochvil@redhat.com>
10014
10015 * symfile.c (addr_info_make_relative): Extend comment. Move SECT to
10016 a more inner block. Initialize ADDR by LOWER_OFFSET only if it was
10017 found by bfd_get_section_by_name.
10018 * symfile.h (struct section_addr_info) <sectindex>: New comment.
10019
10020 2010-02-19 Joel Brobecker <brobecker@adacore.com>
10021
10022 * NEWS: Add new "[...] since 7.1" section. Rename the "[...] since
10023 7.0 section" into "Changes in 7.1".
10024
10025 2010-02-19 Joel Brobecker <brobecker@adacore.com>
10026
10027 GDB 7.1 branch created (branch timestamp: 2010-02-18 20:00 UTC)
10028 * version.in: Bump version to 7.1.50.20100219-cvs.
10029
10030 2010-02-18 Harald Koenig <H.Koenig@science-computing.de>
10031
10032 * mi/mi-main.c (mi_cmd_exec_jump): Drop unneeded `return'.
10033 * symfile.c (symfile_map_offsets_to_segments): Fix assertion.
10034
10035 2010-02-17 Tom Tromey <tromey@redhat.com>
10036
10037 * NEWS: Add Python API Improvements section.
10038
10039 2010-02-18 Daniel Jacobowitz <dan@codesourcery.com>
10040
10041 * NEWS: Correct typo.
10042
10043 2010-02-17 Tom Tromey <tromey@redhat.com>
10044
10045 * objfiles.c (gdb_bfd_ref): Handle abfd==NULL.
10046
10047 2010-02-17 Jan Kratochvil <jan.kratochvil@redhat.com>
10048
10049 * symfile.c (build_section_addr_info_from_objfile): Include sections
10050 only if they are SEC_ALLOC or SEC_LOAD.
10051
10052 2010-02-17 H.J. Lu <hongjiu.lu@intel.com>
10053
10054 PR shlibs/11293
10055 * solib-svr4.c (enable_break): Check size of CORE_ADDR instead
10056 of ULONGEST for address size.
10057
10058 2010-02-17 Tom Tromey <tromey@redhat.com>
10059
10060 * NEWS: Add C++ improvements section.
10061
10062 2010-02-17 Ulrich Weigand <uweigand@de.ibm.com>
10063
10064 * python/python-internal.h [!WITH_THREAD] (PyGILState_Release,
10065 PyThreadState_Swap): Avoid "statement with no effect" warning.
10066
10067 2010-02-17 Jan Kratochvil <jan.kratochvil@redhat.com>
10068
10069 * solib-svr4.c (enable_break <target_auxv_search>): New variable
10070 addr_bit. Adjust LOAD_ADDR sign for cross-arch inferiors.
10071
10072 2010-02-17 Tristan Gingold <gingold@adacore.com>
10073 Petr Hluzin <petr.hluzin@gmail.com>
10074
10075 * avr-tdep.c (avr_scan_prologue): Convert an if statement to a
10076 gdb_assert. Fix info->size for SIG prologue.
10077
10078 2010-02-16 Daniel Jacobowitz <dan@codesourcery.com>
10079
10080 * infcmd.c (show_inferior_tty_command): Check for NULL.
10081 Correct output message.
10082
10083 2010-02-16 Daniel Jacobowitz <dan@codesourcery.com>
10084
10085 * linespec.c (decode_line_1): Handle FILE:FUNCTION even if
10086 FUNCTION contains parentheses. Improve removal of a trailing
10087 single quote.
10088
10089 2010-02-16 Daniel Jacobowitz <dan@codesourcery.com>
10090
10091 * gcore.c (do_bfd_delete_cleanup): New function.
10092 (gcore_command): Use it. Discard the cleanup after success.
10093 (gcore_copy_callback): Delete dead code.
10094
10095 2010-02-16 Daniel Jacobowitz <dan@codesourcery.com>
10096
10097 * symfile.c (addr_info_make_relative): Always use
10098 find_lowest_section.
10099
10100 2010-02-16 Sami Wagiaalla <swagiaal@redhat.com>
10101
10102 * NEWS: Added entry for namespace fixes.
10103
10104 2010-02-15 Tom Tromey <tromey@redhat.com>
10105
10106 * dwarf2read.c (guess_structure_name): Allocate name on the
10107 objfile obstack.
10108
10109 2010-02-15 Tom Tromey <tromey@redhat.com>
10110
10111 * c-typeprint.c (c_type_print_base): Reverse order of test.
10112
10113 2010-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
10114
10115 * solib-svr4.c (LM_ADDR_CHECK): New variable minpagesize. Optionally
10116 initialize it from ELF BFD. Extend the prelink condition by it.
10117
10118 2010-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
10119
10120 * defs.h (parse_pid_to_attach): New.
10121 * utils.c (parse_pid_to_attach): New.
10122 * darwin-nat.c (darwin_attach): Replace ARGS parsing by parse_pid.
10123 * gnu-nat.c (gnu_attach): Likewise.
10124 * nto-procfs.c (procfs_attach): Likewise.
10125 * procfs.c (procfs_attach): Likewise.
10126 * windows-nat.c (windows_attach): Likewise.
10127 * inf-ptrace.c (inf_ptrace_attach): Likewise. Remove variable dummy.
10128 * inf-ttrace.c (inf_ttrace_attach): Likewise.
10129 * remote.c (extended_remote_attach_1): Likewise. New comment on getpid
10130 check.
10131
10132 2010-02-14 Masaki Muranaka <monaka@monami-software.com>
10133
10134 * MAINTAINERS: Add myself for write after approval privileges.
10135
10136 2010-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
10137
10138 * solib-svr4.c: (LM_ADDR_CHECK): Move variable align to a more inner
10139 block.
10140
10141 2010-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
10142
10143 * solib-svr4.c: (LM_ADDR_CHECK): Print successful prelink adjustment
10144 only if INFO_VERBOSE.
10145
10146 2010-02-12 Tomas Holmberg <th@virtutech.com>
10147
10148 * mi/mi-main.c: Added the --reverse flag to the following MI
10149 commands: exec-continue, exec-finish, exec-next, exec-step,
10150 exec-next-instruction, exec-step-instruction. This is to
10151 support reverse execution over the MI interface to gdb.
10152
10153 2010-02-12 Pedro Alves <pedro@codesourcery.com>
10154
10155 * tracepoint.c (_initialize_tracepoint): Specify that the address
10156 range of `tfind outsize' is exclusive, and that the address range
10157 of `tfind range' is inclusive, in the commands' help strings.
10158
10159 2010-02-12 Joel Brobecker <brobecker@adacore.com>
10160
10161 Spurious "dll not found" error messages on x64-windows.
10162 * windows-nat.c: Add include of complaints.h.
10163 (handle_unload_dll): Change dll-not-found error into a complaint.
10164
10165 2010-02-12 Pedro Alves <pedro@codesourcery.com>
10166
10167 * breakpoint.c (allocate_bp_location): Use bp_loc_other for
10168 bp_tracepoint and bp_fast_tracepoint, not
10169 bp_loc_software_breakpoint.
10170 (update_global_location_list): Tracepoints are never duplicates of
10171 anything.
10172
10173 2010-02-12 Pedro Alves <pedro@codesourcery.com>
10174
10175 * breakpoint.c (break_command_really): Change return type to int.
10176 Return false if no breakpoint was created, true otherwise.
10177 (trace_command): Don't set the tracepoint count if no tracepoint
10178 was created.
10179 (ftrace_command): Ditto.
10180 (create_tracepoint_from_upload): Bail out if the tracepoint wasn't
10181 created in the breakpoints table.
10182
10183 2010-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
10184 Ulrich Weigand <uweigand@de.ibm.com>
10185
10186 * solib-svr4.c (LM_ADDR_CHECK): New comment on PPC-aware condition.
10187
10188 2010-02-11 Pedro Alves <pedro@codesourcery.com>
10189
10190 * ax-gdb.c (gen_exp_binop_rest) [BINOP_SUBSCRIPT]: Error out if
10191 the offset value isn't of integral type.
10192
10193 2010-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
10194
10195 * breakpoint.c (delete_breakpoint) <bpt->related_breakpoint != NULL>:
10196 New.
10197
10198 2010-02-11 Pedro Alves <pedro@codesourcery.com>
10199
10200 * ax-gdb.c (gen_exp_binop_rest) [BINOP_SUBSCRIPT]: Error out on
10201 non-subscriptable types.
10202 * valarith.c (binop_types_user_defined_p): New, abstracted out
10203 from ...
10204 (binop_user_defined_p): ... this.
10205 * value.h (binop_types_user_defined_p): Declare.
10206
10207 2010-02-11 Pedro Alves <pedro@codesourcery.com>
10208
10209 * tracepoint.c (tfile_open): Remove spurious discard_cleanups.
10210 Merge uploaded TSVs before merging uploaded tracepoints.
10211
10212 2010-02-11 Pedro Alves <pedro@codesourcery.com>
10213
10214 * ax-gdb.c (gen_deref): Don't allow dereferencing void pointers.
10215
10216 2010-02-11 Vladimir Prus <vladimir@codesourcery.com>
10217
10218 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Add extra
10219 whitespace character after a dot in comment.
10220 (mi_cmd_stack_list_arguments, mi_cmd_stack_list_variables):
10221 Likewise.
10222 (list_args_or_locals): For the 'all' (that is
10223 -stack-list-variables) case, always output list of tuples.
10224 Output 'arg' field if variable is argument.
10225
10226 2010-02-10 Tom Tromey <tromey@redhat.com>
10227
10228 * parser-defs.h (parser_debug): Declare.
10229 * parse.c (_initialize_parse): Install "debug parser" set/show
10230 command.
10231 (parser_debug): New global.
10232 (show_parserdebug): New function.
10233 * c-exp.y (c_parse): Set yydebug.
10234
10235 2010-02-10 H.J. Lu <hongjiu.lu@intel.com>
10236
10237 * target-descriptions.c (tdesc_type): Add TDESC_TYPE_I387_EXT,
10238 TDESC_TYPE_I386_EFLAGS and TDESC_TYPE_I386_MXCSR.
10239 (tdesc_predefined_types): Add i387_ext, i386_eflags and
10240 i386_mxcsr.
10241 (tdesc_find_type): New.
10242 (tdesc_gdb_type): Use tdesc_find_type. Handle TDESC_TYPE_I387_EXT,
10243 TDESC_TYPE_I386_EFLAGS and TDESC_TYPE_I386_MXCSR.
10244
10245 * target-descriptions.h (tdesc_find_type): New.
10246
10247 2010-02-10 Michael Snyder <msnyder@vmware.com>
10248
10249 * gdb-gdb.py: Comment fix.
10250
10251 2010-02-09 Tristan Gingold <gingold@adacore.com>
10252
10253 * machoread.c (macho_symfile_relocate): New function.
10254 (macho_sym_fns): Use macho_symfile_relocate instead of
10255 default_symfile_relocate.
10256 (macho_oso_data): New type.
10257 (current_oso): New variable.
10258 (macho_add_oso_symfile): Do not compute section_addr_info, but
10259 instead set vma of sections.
10260 Do not set SYMFILE_VERBOSE to call symbol_file_add_from_bfd.
10261 Set and clear current_oso.
10262
10263 2010-02-09 Joel Brobecker <brobecker@adacore.com>
10264
10265 Wrong type description for tagged type parameter.
10266 * ada-lang.c (ada_evaluate_subexp) [OP_VAR_VALUE]: When noside is
10267 EVAL_AVOID_SIDE_EFFECTS, also handle the case when type is a
10268 reference to a tagged type.
10269
10270 2010-02-09 Tristan Gingold <gingold@adacore.com>
10271
10272 * objfiles.c (objfile_separate_debug_iterate): Do not iterate on
10273 brothers of the parent.
10274
10275 2010-02-08 Tom Tromey <tromey@redhat.com>
10276
10277 PR c++/8017:
10278 * value.h: Update.
10279 * valops.c (search_struct_field): Make 'name' const.
10280 (search_struct_method): Likewise.
10281 (find_method_list): Make 'method' const.
10282 (value_struct_elt): Make 'name' and 'err' const.
10283 (value_find_oload_method_list): Make 'method' const.
10284 (find_overload_match): Make 'name' const.
10285 * eval.c (evaluate_subexp_standard): New locals function,
10286 function_name.
10287 <OP_FUNCALL>: Handle OP_SCOPE specially.
10288
10289 2010-02-08 Ulrich Weigand <uweigand@de.ibm.com>
10290
10291 * infrun.c (handle_inferior_event): Do not look up regcache
10292 for exited processes.
10293
10294 2010-02-08 Chris Moller <moller@mollerware.com>
10295
10296 PR gdb/10728
10297 * valarith.c (value_ptrdiff): Added a test for a zero type length,
10298 warn if found, and assume length = 1.
10299
10300 2010-02-08 Chris Moller <cmoller@redhat.com>
10301
10302 PR gdb/9067
10303 * cp-valprint.c (cp_print_value_fields) Fix use of obstacks.
10304 (cp_print_static_field) Fix use of obstacks.
10305
10306 2010-02-08 Pedro Alves <pedro@codesourcery.com>
10307
10308 * linux-nat.c (linux_nat_resume): In non-stop, also only tag
10309 resumed LWPs as resumed.
10310 (linux_nat_wait_1): If there's no resumed LWP in the set of LWPs
10311 we're waiting for, bail out with TARGET_WAITKIND_IGNORE, instead
10312 of throwing an internal error. If an LWP of a process we're not
10313 waiting for reports a signal, don't force collecting a SIGSTOP,
10314 and if it was breakpoint hit in non-stop mode, cancel it. Don't
10315 go through all LWPs cancelling breakpoints in non-stop mode.
10316 (resume_stopped_resumed_lwps): New.
10317 (linux_nat_wait): Use it.
10318
10319 2010-02-07 H.J. Lu <hongjiu.lu@intel.com>
10320
10321 * features/Makefile (WHICH): Add i386/i386, i386/i386-linux,
10322 i386/amd64 and i386/amd64-linux.
10323 (i386/i386-expedite): New.
10324 (i386/i386-linux-expedite): Likewise.
10325 (i386/amd64-expedite):Likewise.
10326 (i386/amd64-linux-expedite): Likewise.
10327 ($(outdir)/i386/i386-linux.dat): Likewise.
10328 ($(outdir)/i386/amd64.dat): Likewise.
10329 ($(outdir)/i386/amd64-linux.dat): Likewise.
10330
10331 * features/i386/32bit-core.xml: New.
10332 * features/i386/32bit-linux.xml: Likewise.
10333 * features/i386/32bit-sse.xml: Likewise.
10334 * features/i386/64bit-core.xml: Likewise.
10335 * features/i386/64bit-linux.xml: Likewise.
10336 * features/i386/64bit-sse.xml: Likewise.
10337 * features/i386/i386-linux.xml: Likewise.
10338 * features/i386/i386.xml: Likewise.
10339 * features/i386/amd64-linux.xml: Likewise.
10340 * features/i386/amd64.xml: Likewise.
10341 * features/i386/i386-linux.c: Likewise.
10342 * features/i386/i386.c: Likewise.
10343 * features/i386/amd64-linux.c: Likewise.
10344 * features/i386/amd64.c: Likewise.
10345
10346 2010-02-05 Sami Wagiaalla <swagiaal@redhat.com>
10347
10348 PR c++/7935:
10349 * cp-support.h: Added char* alias element to using_direct data
10350 struct.
10351 (cp_add_using): Added char* alias argument.
10352 (cp_add_using_directive): Ditto.
10353 * cp-namespace.c: Updated with the above changes.
10354 (cp_lookup_symbol_imports): Check for aliases.
10355 * dwarf2read.c (read_import_statement): Figure out local alias
10356 for the import and pass it on to cp_add_using.
10357 (read_namespace): Pass alias argument to cp_add_using.
10358
10359 2010-02-05 Hui Zhu <teawater@gmail.com>
10360
10361 * defs.h (gdb_bfd_errmsg): New extern.
10362 * exec.c (exec_file_attach): Change bfd_errmsg to
10363 gdb_bfd_errmsg.
10364 * utils.c (AMBIGUOUS_MESS1): New macro.
10365 (AMBIGUOUS_MESS2): New macro.
10366 (gdb_bfd_errmsg): New function.
10367
10368 2010-02-04 Doug Evans <dje@google.com>
10369
10370 * solib-svr4.c (enable_break): Add comment.
10371
10372 2010-02-04 Anthony Green <green@moxielogic.com>
10373
10374 * moxie-tdep.c (moxie_analyze_prologue): Fail protocol analysis
10375 gracefully.
10376
10377 2010-02-04 Tom Tromey <tromey@redhat.com>
10378
10379 * valops.c (search_struct_field): Account for
10380 value_embedded_offset. Fix check for virtual base past the end of
10381 the object. Use value_copy when making a slice of the value.
10382
10383 2010-02-04 H.J. Lu <hongjiu.lu@intel.com>
10384
10385 PR tui/9622
10386 * tui/tui-interp.c (tui_init): Call tui_initialize_readline
10387 only if gdb_stdout is a tty.
10388
10389 2010-02-04 H.J. Lu <hongjiu.lu@intel.com>
10390
10391 * target-descriptions.c: Include "osabi.h".
10392 (maint_print_c_tdesc_cmd): Generate set_tdesc_osabi for valid
10393 OSABI.
10394
10395 2010-02-04 Tristan Gingold <gingold@adacore.com>
10396
10397 * machoread.c (macho_add_oso): Renamed to macho_register_oso.
10398 (macho_symtab_read): Adjust calls to macho_add_oso.
10399 (macho_oso_symfile): Renamed to macho_symfile_read_all_oso.
10400 (macho_symfile_read): Adjust call to macho_oso_symfile.
10401 (macho_new_init): Move this function after declarations.
10402 (macho_symfile_init): Ditto.
10403 * darwin-nat-info.c (darwin_lib_gdb_ports): Remove.
10404 * darwin-nat.c (darwin_lookup_task): Remove unused prototype.
10405
10406 2010-02-04 Vladimir Prus <vladimir@codesourcery.com>
10407
10408 Include MI command in remotelog.
10409
10410 * mi/mi-main.c (mi_execute_command): Call target_log_command.
10411
10412 2010-02-03 H.J. Lu <hongjiu.lu@intel.com>
10413
10414 * remote.c (remote_state): Remove gdbarch.
10415 (init_remote_state): Don't set gdbarch.
10416 (remote_query_supported): Pass target_gdbarch instead of
10417 rs->gdbarch to gdbarch_qsupported.
10418
10419 2010-02-03 H.J. Lu <hongjiu.lu@intel.com>
10420
10421 * gdbarch.sh: Add qsupported.
10422
10423 * gdbarch.c: Regenerated.
10424 * gdbarch.h: Likewise.
10425
10426 * remote.c (remote_state): Add gdbarch.
10427 (init_remote_state): Set gdbarch.
10428 (remote_query_supported): Support gdbarch_qsupported.
10429
10430 2010-02-03 Daniel Jacobowitz <dan@codesourcery.com>
10431
10432 * amd64fbsd-nat.c (amd64fbsd_supply_pcb): Also check for
10433 __FreeBSD_kernel_version.
10434
10435 2010-02-03 Tristan Gingold <gingold@adacore.com>
10436
10437 * symfile.h (struct sym_fns): Add sym_relocate field.
10438 (default_symfile_relocate): New prototype.
10439 (symfile_relocate_debug_section): First argument is now an objfile.
10440 * symfile.c (default_symfile_relocate): Rename from
10441 symfile_relocate_debug_section, first argument is now an objfile.
10442 (symfile_relocate_debug_section): New function.
10443 * coffread.c (coff_sym_fns): Set sym_relocate field.
10444 * somread.c (som_sym_fns): Ditto.
10445 * mipsread.c (ecoff_sym_fns): Ditto.
10446 * machoread.c (macho_sym_fns): Ditto.
10447 * elfread.c (elf_sym_fns): Ditto.
10448 * dwarf2read.c (dwarf2_read_section): Ditto.
10449 * xcoffread.c (xcoff_sym_fns): Ditto.
10450 * dbxread.c (aout_sym_fns): Ditto.
10451 (dbx_psymtab_to_symtab): Adjust call to symfile_relocate_debug_section.
10452 (elfstab_build_psymtabs): Ditto.
10453
10454 2010-02-03 H.J. Lu <hongjiu.lu@intel.com>
10455
10456 * defs.h (MAX_REGISTER_SIZE): Increase to 32.
10457
10458 2010-02-02 Tom Tromey <tromey@redhat.com>
10459
10460 * valops.c (value_cast_structs): Try downcasting using the RTTI
10461 type.
10462
10463 2010-02-02 Tom Tromey <tromey@redhat.com>
10464
10465 * gnu-v2-abi.c: Don't include gnu-v2-abi.h.
10466 (gnuv2_baseclass_offset): Now static.
10467 * Makefile.in (HFILES_NO_SRCDIR): Remove gnu-v2-abi.h.
10468 * gnu-v2-abi.h: Remove.
10469
10470 2010-02-02 Tom Tromey <tromey@redhat.com>
10471
10472 * m2-typeprint.c (m2_record_fields): Don't use
10473 TYPE_DECLARED_TYPE.
10474 * gdbtypes.h (TYPE_DECLARED_CLASS): New macro.
10475 (struct main_type) <flag_declared_class>: New field.
10476 (struct cplus_struct_type) <declared_type>: Remove.
10477 <ntemplate_args>: Move earlier.
10478 (DECLARED_TYPE_CLASS, DECLARED_TYPE_UNION, DECLARED_TYPE_STRUCT)
10479 (DECLARED_TYPE_TEMPLATE): Remove.
10480 (TYPE_DECLARED_TYPE): Remove.
10481 * gdbtypes.c (lookup_union): Don't use TYPE_DECLARED_TYPE.
10482 * dwarf2read.c (read_structure_type): Set TYPE_DECLARED_CLASS.
10483 * c-typeprint.c (c_type_print_base): Use TYPE_DECLARED_CLASS, not
10484 TYPE_DECLARED_TYPE.
10485
10486 2010-02-02 Tom Tromey <tromey@redhat.com>
10487
10488 PR c++/11226, PR c++/9629, PR c++/9688, PR c++/8890:
10489 * valops.c (search_struct_field): Compute nbases after calling
10490 CHECK_TYPEDEF.
10491 (check_field): Call CHECK_TYPEDEF.
10492 * cp-valprint.c (cp_print_value): Pass correct address to
10493 baseclass_offset. Fix check for virtual base past the end of the
10494 object. Don't offset address passed to cp_print_value_fields or
10495 apply_val_pretty_printer.
10496 (cp_print_value_fields): Fix call to val_print.
10497 (cp_print_value_fields_rtti): New function.
10498 * c-valprint.c (c_val_print): Use cp_print_value_fields_rtti.
10499 * p-valprint.c (pascal_object_print_value_fields): Fix call to
10500 val_print.
10501 * python/py-prettyprint.c (apply_val_pretty_printer): Add embedded
10502 offset to address.
10503 * language.h (struct language_defn) <la_val_print>: Document.
10504 * c-lang.h (cp_print_value_fields_rtti): Declare.
10505
10506 2010-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
10507
10508 PR libc/11214:
10509 * linux-low.c (linux_tracefork_child) [!(__UCLIBC__ && HAS_NOMMU)]: New.
10510 (linux_test_for_tracefork): Move `stack' into [__UCLIBC__ && HAS_NOMMU].
10511 (linux_test_for_tracefork) [!(__UCLIBC__ && HAS_NOMMU)]: New.
10512
10513 2010-02-01 Michael Matz <matz@suse.de>
10514 Daniel Jacobowitz <dan@codesourcery.com>
10515
10516 * i386-tdep.c (i386_frame_cache): Assume valid anonymous
10517 functions use a frame pointer.
10518
10519 2010-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
10520
10521 * solib-svr4.c (scan_dyntag): New variable dyn_addr. Replace gdb_assert
10522 by a conditional setting DYN_ADDR. Use DYN_ADDR.
10523 * config/djgpp/fnchange.lst: Add translations for
10524 symbol-without-target_section.exp and symbol-without-target_section.c.
10525
10526 2010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
10527
10528 * gdbarch.sh: Set LANG and LC_ALL to C, not c.
10529 (remote_breakpoint_for_pc): Correct invalid_p check.
10530 * gdbarch.c: Regenerated.
10531
10532 2010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
10533
10534 * arm-tdep.c (arm_find_mapping_symbol): New function, from
10535 arm_pc_is_thumb.
10536 (arm_pc_is_thumb): Use arm_find_mapping_symbol.
10537 (extend_buffer_earlier): New function.
10538 (MAX_IT_BLOCK_PREFIX, IT_SCAN_THRESHOLD): New constants.
10539 (arm_adjust_breakpoint_address): New function.
10540 (arm_gdbarch_init): Register arm_adjust_breakpoint_address.
10541
10542 2010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
10543
10544 * arm-linux-tdep.c (arm_linux_thumb2_be_breakpoint)
10545 (arm_linux_thumb2_le_breakpoint): New constants.
10546 (arm_linux_init_abi): Set thumb2_breakpoint and
10547 thumb2_breakpoint_size.
10548 * arm-tdep.c (thumb_insn_size, thumb_advance_itstate): New functions.
10549 (thumb_get_next_pc): Add a comment. Rename IT to ITSTATE.
10550 Implement support for single stepping through IT blocks if
10551 a 32-bit Thumb breakpoint instruction is available.
10552 (arm_breakpoint_from_pc): If a 32-bit Thumb breakpoint instruction
10553 is available, use it when needed.
10554 (arm_remote_breakpoint_from_pc): New function.
10555 (arm_gdbarch_init): Register arm_remote_breakpoint_from_pc.
10556 * arm-tdep.h (struct gdbarch_tdep): Correct thumb_breakpoint
10557 comment. Add thumb2_breakpoint and thumb2_breakpoint_size.
10558
10559 2010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
10560
10561 * arch-utils.c (default_remote_breakpoint_from_pc): New function.
10562 * arch-utils.h (default_remote_breakpoint_from_pc): Declare.
10563 * gdbarch.c, gdbarch.h: Regenerated.
10564 * gdbarch.sh (remote_breakpoint_from_pc): New architecture method.
10565 * remote.c (remote_insert_breakpoint, remote_insert_hw_breakpoint): Use
10566 gdbarch_remote_breakpoint_from_pc.
10567
10568 2010-01-29 Daniel Jacobowitz <dan@codesourcery.com>
10569
10570 * infrun.c (prepare_to_proceed): Handle other signals which might
10571 match a breakpoint.
10572 (handle_inferior_event): Move the check for unusual breakpoint
10573 signals earlier.
10574
10575 2010-01-29 Paul Hilfinger <hilfinger@adacore.com>
10576
10577 amd64 - function returning record with field straddling 2 registers.
10578 * amd64-tdep.c (amd_classify_aggregate): Handle the case of
10579 a record of length <= 16 in which a field straddles the two
10580 eightbytes.
10581
10582 2010-01-29 Joel Brobecker <brobecker@adacore.com>
10583
10584 Implement return values on amd64-windows.
10585 * amd64-windows-tdep.c: #include gdbcore.h and regcache.h.
10586 (amd64_windows_return_value): New function.
10587 (amd64_windows_init_abi): Call set_gdbarch_return_value with
10588 amd64_windows_return_value.
10589
10590 2010-01-29 Joel Brobecker <brobecker@adacore.com>
10591
10592 amd64-windows: 32 bytes allocated on stack by caller for integer
10593 parameter registers.
10594 * i386-tdep.h (struct gdbarch_tdep): Add new field
10595 integer_param_regs_saved_in_caller_frame.
10596 * amd64-windows-tdep.c (amd64_windows_init_abi): Set
10597 tdep->integer_param_regs_saved_in_caller_frame to 1.
10598 * amd64-tdep.c (amd64_push_dummy_call): Allocate some memory on
10599 stack if tdep->integer_param_regs_saved_in_caller_frame is set.
10600
10601 2010-01-29 Joel Brobecker <brobecker@adacore.com>
10602
10603 amd64-windows: memory args passed by pointer during function calls.
10604 * i386-tdep.h (gdbarch_tdep): Add field memory_args_by_pointer.
10605 * amd64-tdep.c (amd64_push_arguments): Add handling of architectures
10606 where tdep->memory_args_by_pointer is non-zero.
10607 * amd64-windows-tdep.c (amd64_windows_init_abi): Set
10608 tdep->memory_args_by_pointer to 1.
10609
10610 2010-01-29 Joel Brobecker <brobecker@adacore.com>
10611
10612 amd64-windows: Integer parameters in function calls.
10613 * i386-tdep.h (enum amd64_reg_class): New, moved here from
10614 amd64-tdep.c.
10615 (struct gdbarch_tdep): Add fields call_dummy_num_integer_regs,
10616 call_dummy_integer_regs, and classify.
10617 * amd64-tdep.h (amd64_classify): Add declaration.
10618 * amd64-tdep.c (amd64_dummy_call_integer_regs): New static constant.
10619 (amd64_reg_class): Delete, moved to i386-tdep.h.
10620 (amd64_classify): Make non-static. Move declaration to amd64-tdep.h.
10621 Replace call to amd64_classify by call to tdep->classify.
10622 (amd64_push_arguments): Get the list of registers to use for
10623 passing integer parameters from the gdbarch tdep structure,
10624 rather than using a hardcoded one. Replace calls to amd64_classify
10625 by calls to tdep->classify.
10626 (amd64_push_dummy_call): Get the register number used for
10627 the "hidden" argument from tdep->call_dummy_integer_regs.
10628 (amd64_init_abi): Initialize tdep->call_dummy_num_integer_regs
10629 and tdep->call_dummy_integer_regs. Set tdep->classify.
10630 * amd64-windows-tdep.c: Add include of gdbtypes.h.
10631 (amd64_windows_dummy_call_integer_regs): New static global.
10632 (amd64_windows_classify): New function.
10633 (amd64_windows_init_abi): Initialize tdep->call_dummy_num_integer_regs
10634 tdep->call_dummy_integer_regs and tdep->classify.
10635
10636 2010-01-28 Daniel Jacobowitz <dan@codesourcery.com>
10637
10638 * regcache.c (regcache_xmalloc): Add aspace argument. Use it
10639 for the new regcache. All callers updated.
10640 (regcache_cpy, regcache_cpy_no_passthrough): Do not set aspace here.
10641 (get_thread_arch_regcache): Do not set aspace here.
10642 * regcache.h (regcache_xmalloc): Update declaration.
10643
10644 * frame.c, infcall.c, ppc-linux-tdep.c: Calls to
10645 regcache_xmalloc updated.
10646
10647 2010-01-28 Joel Brobecker <brobecker@adacore.com>
10648
10649 Another -Wunused-function error in procfs.c (sparc-solaris)
10650 * procfs.c (insert_dbx_link_breakpoint): Delete declaration. Move up.
10651 Only define if SYS_syssgi is defined.
10652 (remove_dbx_link_breakpoint): Delete declaration. Move up.
10653 (dbx_link_addr, insert_dbx_link_bpt_in_file)
10654 (insert_dbx_link_bpt_in_region): Move up. Only define if SYS_syssgi
10655 is itself defined.
10656
10657 2010-01-27 Christopher Faylor <me+cygwin@cgf.cx>
10658
10659 * windows-nat.c (windows_initialization_done): New variable.
10660 (get_windows_debug_event): Issue error when process dies before
10661 completely initializing.
10662 (do_initial_windows_stuff): Set flag to indicate when we are done with
10663 the initial steps of attaching to the child.
10664
10665 2010-01-27 Jan Kratochvil <jan.kratochvil@redhat.com>
10666
10667 * symtab.h (struct symbol <symtab>): New comment on NULL values.
10668
10669 2010-01-27 Doug Evans <dje@google.com>
10670
10671 * solib-svr4.c (solib_break_names): Add __dl_rtld_db_dlactivity.
10672
10673 * breakpoint.c (bpstat_stop_status): Delete useless code.
10674
10675 2010-01-27 Jan Kratochvil <jan.kratochvil@redhat.com>
10676
10677 * printcmd.c (display_uses_solib_p): Remove variable section. Access
10678 objfile via SYMBOL_SYMTAB.
10679
10680 2010-01-26 Tom Tromey <tromey@redhat.com>
10681
10682 PR exp/7643:
10683 * eval.c (evaluate_subexp_for_address) <UNOP_IND>: Call
10684 coerce_array on result.
10685
10686 2010-01-26 Sami Wagiaalla <swagiaal@redhat.com>
10687
10688 * cp-namespace.c (cp_lookup_symbol_namespace): Added
10689 search_parent argument.
10690 (cp_add_using): Initialize 'searched' field.
10691 (reset_directive_searched): New function.
10692 * cp-support.h: Add 'searched' field to using_direct struct.
10693 (cp_lookup_symbol_imports): Ditto.
10694 * cp-namespace.c (cp_lookup_symbol_imports): Ditto.
10695 Perform recursive search.
10696 Implement non parent search.
10697 * valops.c (value_maybe_namespace_elt): Updated.
10698
10699 2010-01-26 Sami Wagiaalla <swagiaal@redhat.com>
10700
10701 PR gdb/10929:
10702 * dwarf2read.c (read_lexical_block_scope): Create blocks for
10703 scopes which contain using directives even if they contain no
10704 declarations.
10705 * symtab.c (lookup_symbol_aux): Pass lowest level block to
10706 la_lookup_symbol_nonlocal.
10707 * cp-namespace.c (cp_lookup_symbol_nonlocal): call
10708 cp_lookup_symbol_namespace.
10709 (cp_lookup_symbol_namespace): Perform an import lookup at every
10710 block level.
10711 (cp_lookup_symbol_imports): New function.
10712 (cp_lookup_symbol_in_namespace): New function.
10713
10714 2010-01-25 Tom Tromey <tromey@redhat.com>
10715
10716 PR gdb/11049:
10717 * c-valprint.c (c_val_print): Fix test of extract_unsigned_integer
10718 result.
10719
10720 2010-01-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10721
10722 * configure.ac: Only use host_os part when disabling TUI on osf.
10723 Use test to check variables, prefix strings with x.
10724 * configure: Regenerate.
10725
10726 * solib-osf.c (osf_current_sos): Initialize tail.
10727
10728 2010-01-25 gingold <gingold@adacore.com>
10729
10730 * windows-nat.c (windows_continue): Use %x to print thread id.
10731 (get_windows_debug_event): Ditto.
10732
10733 2010-01-22 Tom Tromey <tromey@redhat.com>
10734
10735 PR symtab/11199:
10736 * dwarf2read.c (quirk_gcc_member_function_pointer): Change return
10737 type and arguments. Use smash_to_methodptr_type.
10738 (read_structure_type): Call quirk_gcc_member_function_pointer
10739 later.
10740 * gdbtypes.h (smash_to_methodptr_type): Declare.
10741 * gdbtypes.c (smash_to_methodptr_type): New function.
10742 (lookup_methodptr_type): Use it.
10743
10744 2010-01-21 Tom Tromey <tromey@redhat.com>
10745
10746 PR symtab/11198:
10747 * symtab.h (lookup_minimal_symbol_and_objfile): Declare.
10748 * minsyms.c (lookup_minimal_symbol_and_objfile): New function.
10749 * glibc-tdep.c (find_minsym_and_objfile): Remove.
10750 (glibc_skip_solib_resolver): Use
10751 lookup_minimal_symbol_and_objfile.
10752
10753 2010-01-21 Kai Tietz <kai.tietz@onevision.com>
10754
10755 * inflow.c (check_syscall): Guard by #if clause for GO32 and
10756 WIN32 targets.
10757
10758 2010-01-20 Tom Tromey <tromey@redhat.com>
10759
10760 PR backtrace/10770:
10761 * valarith.c (value_binop): Handle BINOP_GTR, BINOP_LEQ, and
10762 BINOP_GEQ. Handle BINOP_NOTEQUAL in the signed case.
10763 * dwarf2expr.c (new_dwarf_expr_context): Allocate
10764 dwarf_stack_values, not CORE_ADDRs.
10765 (execute_stack_op): Change DW_OP_div and comparison operators to
10766 use signed operands.
10767
10768 2010-01-20 Vladimir Prus <vladimir@codesourcery.com>
10769
10770 Per-inferior args and tty and environment.
10771
10772 * infcmd.c (inferior_args): Rename to ...
10773 (inferior_args_scratch): ... this.
10774 (inferior_io_terminal): Rename to ...
10775 (inferior_io_terminal_scratch): ... this.
10776 (inferior_argc, inferior_argv): Remove.
10777 (set_inferior_io_terminal, get_inferior_io_terminal): Store
10778 inside current_inferior().
10779 (set_inferior_tty_command, show_inferior_tty_command): New.
10780 (get_inferior_args, set_inferior_args): Store inside
10781 current_inferior().
10782 (notice_args_set): Likewise and rename to...
10783 (set_args_command): ... this.
10784 (set_inferior_args_vector): Likewise.
10785 (notice_args_read): Rename to...
10786 (show_args_command): ...new.
10787 (tty_command): Remove.
10788 (run_command_1): Don't free old args, as they are freed by
10789 set_inferior_arg now.
10790 (run_no_args_command): Likewise.
10791 (inferior_environ): Remove.
10792 (run_command_1): Use environment of the current inferior.
10793 (environment_info, set_environment_command)
10794 (unset_environment_command, path_info, path_command): Likewise.
10795 (_initialize_infcmd): Adjust for function and variable renames.
10796 Do not init inferior_environ.
10797 * inferior.h (set_inferior_arg): Adjust prototype.
10798 (struct inferior): New fields args, argc, argv, terminal, environment.
10799 (inferior_environ): Remove declaration.
10800 * inferior.c (free_inferior): Free new fields.
10801 (add_inferior_silent): Initialize 'environment' field.
10802 * main.c (captured_main): Set arguments only after the initial
10803 inferior has been created. Set set_inferior_io_terminal,
10804 not tty_command.
10805 * mi/mi-main.c (mi_cmd_env_path): Use environment of the current
10806 inferior.
10807 (_initialize_mi_cmd_env): Adjust for disappearance of global
10808 inferior_environ.
10809 * solib.c (solib_find): Use environment of the current inferior.
10810
10811 2010-01-20 Jan Kratochvil <jan.kratochvil@redhat.com>
10812
10813 * varobj.c (varobj_add_child, install_dynamic_child): Wrap into #if
10814 HAVE_PYTHON.
10815 (instantiate_pretty_printer): Move HAVE_PYTHON outside of the function.
10816
10817 2010-01-20 Joel Brobecker <brobecker@adacore.com>
10818
10819 Get rid of ada-lang.c:function_name_from_pc.
10820 * ada-lang.c: Add "stack.h" #include.
10821 (function_name_from_pc): Delete.
10822 (is_known_support_routine): Replace call to function_name_from_pc
10823 by call to find_frame_funname.
10824 (ada_unhandled_exception_name_addr_from_raise): Likewise.
10825
10826 2010-01-19 Tom Tromey <tromey@redhat.com>
10827
10828 PR c++/11026:
10829 * dwarf2read.c (read_partial_die): Allocate partial DIE's name on
10830 objfile obstack.
10831
10832 2010-01-19 Tom Tromey <tromey@redhat.com>
10833
10834 * top.c (stop_sig, float_handler, do_nothing): Remove.
10835
10836 2010-01-19 Jan Kratochvil <jan.kratochvil@redhat.com>
10837
10838 * breakpoint.c (watchpoint_check): Check the call
10839 gdbarch_in_function_epilogue_p before calling frame_find_by_id.
10840 Extend the comment.
10841 * config/djgpp/fnchange.lst: Add translations for
10842 watchpoint-cond-gone.exp, watchpoint-cond-gone.c and
10843 watchpoint-cond-gone-stripped.c.
10844
10845 2010-01-19 Tom Tromey <tromey@redhat.com>
10846
10847 PR c++/8000:
10848 * dwarf2read.c (partial_die_parent_scope): Put enumeration type
10849 into parent scope, and enumerator into grandparent scope.
10850
10851 2010-01-19 Joel Brobecker <brobecker@adacore.com>
10852
10853 * NEWS: Add entry for "set/show ada trust-PAD-over-XVS" commands.
10854
10855 2010-01-19 Joel Brobecker <brobecker@adacore.com>
10856
10857 * configure.host: Make x86_64-*-solaris2.1[0-9]* an alias of
10858 i[34567]86-*-solaris2.1[0-9]*.
10859 * configure.tgt: Likewise.
10860
10861 2010-01-19 Joel Brobecker <brobecker@adacore.com>
10862
10863 * NEWS: Document the source command enhancement allowing it
10864 to load Python scripts. Document the "set/show script-extension"
10865 commands.
10866
10867 2010-01-19 Joel Brobecker <brobecker@adacore.com>
10868
10869 Add -Wunused-function to compile flags.
10870 * configure.ac: Add -Wunused-function to build_warnings.
10871 * configure: Regenerate.
10872
10873 2010-01-19 Joel Brobecker <brobecker@adacore.com>
10874
10875 "delete" ada-lex.c:input function, not used.
10876 * ada-lex.l: #define YY_NO_INPUT.
10877
10878 2010-01-19 Joel Brobecker <brobecker@adacore.com>
10879
10880 Delete free_named_symtabs and associated cleanup.
10881 * symfile.h (free_named_symtabs): Delete declaration.
10882 * symfile.c: Remove some commented out code (clear_symtab_users_once).
10883 (cashier_psymtab): Comment function out.
10884 Delete declaration.
10885 (free_named_symtabs): Delete.
10886 * coffread.c (coff_end_symtab): Remove call to free_named_symtabs.
10887 * dbxread.c (end_psymtab): Likewise.
10888 * dwarf2read.c (process_psymtab_comp_unit): Ditto.
10889 * exec.c (exec_close_1): Ditto.
10890 * xcoffread.c (xcoff_end_psymtab): Likewise.
10891
10892 2010-01-19 Joel Brobecker <brobecker@adacore.com>
10893
10894 * stack.c (print_block_frame_labels): Comment function out.
10895
10896 2010-01-19 Joel Brobecker <brobecker@adacore.com>
10897
10898 Delete unused or undefined functions.
10899 * breakpoint.c (ep_parse_optional_filename): Delete.
10900 * dcache.c (dcache_write_line): Remove declaration.
10901 * infrun.c (build_infrun): Remove declaration.
10902 * tracepoint.c (tracepoint_save_command): Remove declaration.
10903 * linux-nat.c (init_lwp_list): Delete. No longer used.
10904 * event-loop.c (check_async_signal_handlers): Delete declaration.
10905 * infrun.c (init_execution_control_state): Delete.
10906 (proceed): Update comment to avoid mentioning
10907 init_execution_control_state.
10908 * target.c (kill_or_be_killed, nosupport_runtime): Delete.
10909 * ada-lang.c (ada_to_static_fixed_value): Delete.
10910 * scm-lang.c (evaluate_subexp_scm): Delete declaration.
10911 * cp-namespace.c (cp_copy_usings): Delete.
10912 * xml-syscall.c (xml_number_of_syscalls): Delete.
10913 * progspace.c (find_program_space_by_num): Delete.
10914 * inflow.c (handle_sigio): Delete declaration.
10915 * hppa-tdep.c (hppa_alignof): Delete.
10916 * mipsnbsd-tdep.c (mipsnbsd_sigtramp_offset)
10917 (mipsnbsd_core_osabi_sniffer): Delete.
10918
10919 2010-01-18 Tom Tromey <tromey@redhat.com>
10920
10921 PR c++/9680:
10922 * c-exp.y (REINTERPRET_CAST, DYNAMIC_CAST, STATIC_CAST)
10923 (CONST_CAST): New tokens.
10924 (exp): Add new productions.
10925 (ident_tokens): Add const_cast, dynamic_cast, static_cast, and
10926 reinterpret_cast.
10927 (is_cast_operator): New function.
10928 (yylex): Handle cast operators specially.
10929 * eval.c (evaluate_subexp_standard) <UNOP_DYNAMIC_CAST,
10930 UNOP_REINTERPRET_CAST>: New cases.
10931 * expprint.c (print_subexp_standard): Likewise.
10932 (op_name_standard): Likewise.
10933 (dump_subexp_body_standard): Likewise.
10934 * parse.c (operator_length_standard): Likewise.
10935 * expression.h (enum exp_opcode): New constants UNOP_DYNAMIC_CAST,
10936 UNOP_REINTERPRET_CAST.
10937 * gdbtypes.c (class_types_same_p): New function.
10938 (is_ancestor): Use it.
10939 (is_public_ancestor): New function.
10940 (is_unique_ancestor_worker): Likewise.
10941 (is_unique_ancestor): Likewise.
10942 * gdbtypes.h (class_types_same_p, is_public_ancestor)
10943 (is_unique_ancestor): Declare.
10944 * valops.c (value_reinterpret_cast): New function.
10945 (dynamic_cast_check_1): Likewise.
10946 (dynamic_cast_check_2): Likewise.
10947 (value_dynamic_cast): Likewise.
10948 * value.h (value_reinterpret_cast, value_dynamic_cast): Declare.
10949
10950 2010-01-18 Joel Brobecker <brobecker@adacore.com>
10951
10952 Fix build failure when building without Python support.
10953 * python/python.c: Always include exceptions.h, even when HAVE_PYTHON
10954 is not defined.
10955
10956 2010-01-18 Joel Brobecker <brobecker@adacore.com>
10957
10958 Use XVS field type instead of doing a parallel lookup.
10959 * ada-lang.c (ada_get_base_type): Follow the XVS field type
10960 if it is a reference type instead of doing a type lookup using
10961 the XVS field name.
10962
10963 2010-01-18 Joel Brobecker <brobecker@adacore.com>
10964
10965 Trust PAD types instead of using PAD___XVS.
10966 * ada-lang.c (trust_pad_over_xvs): New static variable.
10967 (ada_is_aligner_type): If !trust_pad_over_xvs and there is a
10968 parallel XVS type, follow the XVS type instead of the PAD type.
10969 (unwrap_value): Make sure that there is no parallel XVE type
10970 before returning the value as is.
10971 (set_ada_list, show_ada_list): New static variables.
10972 (set_ada_command, show_ada_command): New functions.
10973 (_initialize_ada_language): Add new "set/show ada" prefix commands.
10974 Add new "set/show ada trust-PAD-over-XVS" setting.
10975
10976 2010-01-18 Tom Tromey <tromey@redhat.com>
10977 Thiago Jung Bauermann <bauerman@br.ibm.com>
10978
10979 Allow "source" to load python scripts.
10980 * exceptions.h (enum errors): Add UNSUPPORTED_ERROR.
10981 * python/python.c (source_python_script): New function.
10982 * python/python.h (source_python_script): Add declaration.
10983 * cli/cli-cmds.c: #include exceptions.h and python/python.h.
10984 (script_ext_off, script_ext_soft, script_ext_strict)
10985 (script_ext_enums, script_ext_mode): New static constants.
10986 (show_script_ext_mode, find_and_open_script): New functions.
10987 (source_script): Enhance to handle Python scripts.
10988 (init_cli_cmds): Add set/show script-extension commands.
10989
10990 2010-01-16 Stan Shebs <stan@codesourcery.com>
10991
10992 * tracepoint.h (struct trace_status): Use unsigned long long
10993 instead of size_t.
10994 * tracepoint.c (trace_status_command): Fix printf directive.
10995 (trace_save_command): Check fwrite returns, fix printf directive.
10996 (trace_filename): New global.
10997 (tfile_open): Set it, check read returns.
10998 (tfile_close): Free trace_filename.
10999 (tfile_get_traceframe_address): Check read returns.
11000 (tfile_trace_find): Ditto.
11001 (tfile_fetch_registers): Ditto.
11002 (tfile_xfer_partial): Ditto.
11003 (tfile_get_trace_state_variable_value): Ditto.
11004
11005 2010-01-15 Stan Shebs <stan@codesourcery.com>
11006
11007 Add trace file support.
11008 * tracepoint.h (enum trace_stop_reason): New enum.
11009 (struct trace_status): New struct.
11010 (parse_trace_status): Declare.
11011 (struct uploaded_tp): Move here from remote.c,
11012 add fields for actions.
11013 (struct uploaded_tsv): New struct.
11014 * tracepoint.c (tfile_ops): New target vector.
11015 (trace_fd): New global.
11016 (tfile_open): New function.
11017 (tfile_close): New function.
11018 (tfile_files_info): New function.
11019 (tfile_get_trace_status): New function.
11020 (tfile_get_traceframe_address): New function.
11021 (tfile_trace_find): New function.
11022 (tfile_fetch_registers): New function.
11023 (tfile_xfer_partial): New function.
11024 (tfile_get_trace_state_variable_value): New function.
11025 (init_tfile_ops): New function.
11026 (_initialize_tracepoint): Call it, add tfile target.
11027 (trace_status): New global.
11028 (current_trace_status): New function.
11029 (trace_running_p): Remove, change all users to get from
11030 current_trace_status()->running.
11031 (get_trace_status): Remove.
11032 (trace_status_command): Call target_get_trace_status directly,
11033 report more detail including tracing stop reasons.
11034 (trace_find_command): Always allow tfind on a file.
11035 (trace_find_pc_command): Ditto.
11036 (trace_find_tracepoint_command): Ditto.
11037 (trace_find_line_command): Ditto.
11038 (trace_find_range_command): Ditto.
11039 (trace_find_outside_command): Ditto.
11040 (trace_frames_offset, cur_offset): Declare as off_t.
11041 (trace_regblock_size): Rename from reg_size, update users.
11042 (parse_trace_status): New function.
11043 (tfile_interp_line): New function.
11044 (disconnect_or_stop_tracing): Ensure current trace
11045 status before asking what to do.
11046 (stop_reason_names): New global.
11047 (trace_save_command): New command.
11048 (get_uploaded_tp): Move here from remote.c.
11049 (find_matching_tracepoint): Ditto.
11050 (merge_uploaded_tracepoints): New function.
11051 (parse_trace_status): Use stop_reason_names.
11052 (_initialize_tracepoint): Define tsave command.
11053 * target.h (target_ops): New fields to_save_trace_data,
11054 to_upload_tracepoints, to_upload_trace_state_variables,
11055 to_get_raw_trace_data, change to_get_trace_status
11056 to take a pointer to a status struct.
11057 (target_save_trace_data): New macro.
11058 (target_upload_tracepoints): New macro.
11059 (target_upload_trace_state_variables): New macro.
11060 (target_get_raw_trace_data): New macro.
11061 * target.c (update_current_target): Add new methods, change
11062 signature of to_get_trace_status.
11063 * remote.c (hex2bin): Make globally visible.
11064 (bin2hex): Ditto.
11065 (remote_download_trace_state_variable): Download name also.
11066 (remote_get_trace_status): Update parameter, use
11067 parse_trace_status.
11068 (remote_save_trace_data): New function.
11069 (remote_upload_tracepoints): New function.
11070 (remote_upload_trace_state_variables): New function.
11071 (remote_get_raw_trace_data): New function.
11072 (remote_start_remote): Use them.
11073 (_initialize_remote_ops): Add operations.
11074 * ax-gdb.c: Include breakpoint.h.
11075 * breakpoint.c (create_tracepoint_from_upload): Use
11076 break_command_really, return tracepoint, warn about unimplemented
11077 parts.
11078 * NEWS: Mention trace file addition.
11079
11080 2010-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
11081
11082 Fix compilation warning on gcc-3.4.
11083 * exec.c (print_section_info): Move the `displacement' variable
11084 initialization to its declaration.
11085
11086 2010-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
11087
11088 * gdb-gdb.py (StructMainTypePrettyPrinter): Fix TYPE_CODE_RANGE
11089 comparison.
11090
11091 2010-01-15 Eric Botcazou <botcazou@adacore.com>
11092
11093 "info tasks" broken by typedefs in ATCB type definitions.
11094 * ada-lang.c (ada_template_to_fixed_record_type_1): Add call to
11095 ada_check_typedef before retrieving the length of the type for
11096 regular fields.
11097
11098 2010-01-15 Joel Brobecker <brobecker@adacore.com>
11099
11100 Do not use name-based lookup for unconstrained packed arrays.
11101 * ada-lang.c (find_parallel_type_by_descriptive_type):
11102 Limit the fallback to name-based lookups to the case where
11103 the type is a constrained packed array.
11104
11105 2010-01-15 Joel Brobecker <brobecker@adacore.com>
11106
11107 Enhance gdb-gdb.py to handle main_type.type_specific.
11108 * gdb-gdb.py: Print the type-specific part of struct main_type.
11109
11110 2010-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
11111
11112 * configure.ac (AC_CHECK_FUNCS): Check for setrlimit and getrlimit.
11113 * configure: Regenerate.
11114 * config.in: Regenerate.
11115 * utils.c: Include sys/resource.h.
11116 (dump_core, can_dump_core): New.
11117 (internal_vproblem): Update the comment. Check can_dump_core while
11118 setting dump_core_p. Replace two abort calls by dump_core calls.
11119
11120 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
11121 Eli Zaretskii <eliz@gnu.org>
11122
11123 * NEWS: Document the PIE support.
11124
11125 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
11126
11127 * linux-tdep.c: Remove includes gdbcore.h, observer.h and elf-bfd.h.
11128 (check_is_pie_binary, _initialize_linux_tdep): Remove.
11129
11130 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
11131
11132 * solib-svr4.c (svr4_exec_displacement): New comment for entry_point.
11133 Replace exec_entry_point call by bfd_get_start_address.
11134
11135 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
11136
11137 Support Valgrind attachments broken by the PIE support.
11138 * auxv.c: Include gdbcore.h.
11139 (procfs_xfer_auxv): Make static. Reduce its comment. Drop its
11140 parameters ops, object and annex. Remove their assertions.
11141 (ld_so_xfer_auxv, memory_xfer_auxv): New function.
11142 * auxv.h (procfs_xfer_auxv): Remove comment. Rename to ...
11143 (memory_xfer_auxv): ... here.
11144 * linux-nat.c (linux_xfer_partial): Rename procfs_xfer_auxv to
11145 memory_xfer_auxv.
11146 * procfs.c (procfs_xfer_partial): Likewise.
11147 * solib-svr4.c (svr4_relocate_main_executable): New prototype.
11148 (svr4_special_symbol_handling): Call svr4_relocate_main_executable.
11149 (svr4_solib_create_inferior_hook): Conditionalize the
11150 svr4_relocate_main_executable call.
11151
11152 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
11153
11154 * solib-svr4.c (scan_dyntag): Remove variable dyn_addr. New variable
11155 target_section. Find SECT in current_target_sections, gdb_assert it.
11156 (elf_lookup_lib_symbol): Pass the binary file if given symfile_objfile.
11157 New variable abfd.
11158 * symtab.c (lookup_objfile_from_block): Return the binary file instead
11159 of separate debug info file.
11160
11161 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
11162
11163 Support PIEs with no symfile_objfile.
11164 * exec.c (print_section_info <abfd == exec_bfd>): Relocate Entry point.
11165 * solib-svr4.c (svr4_relocate_main_executable <exec_bfd>): New block.
11166
11167 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
11168
11169 * solib-svr4.c (svr4_relocate_main_executable): Move the static exec
11170 code part to ...
11171 (svr4_static_exec_displacement): ... a new function.
11172 (svr4_exec_displacement): New function.
11173 (svr4_relocate_main_executable): Call svr4_exec_displacement. Allocate
11174 new_offsets using alloca now. Remove variable old_chain and changed.
11175 Call objfile_relocate unconditionally now.
11176
11177 2010-01-14 Doug Evans <dje@google.com>
11178
11179 * gdbtypes.c (arch_flags_type): Fix comment.
11180 * gdbtypes.h (arch_composite_type): Fix comment.
11181
11182 2009-01-14 Tristan Gingold <gingold@adacore.com>
11183
11184 * machoread.c (macho_add_oso_symfile): Add symfile_flags parameter.
11185 Call xstrdup for abfd->filename. Pass symfile_flags and objfile flags
11186 to symbol_file_add_from_bfd. Add OSO as separate objfile.
11187 (macho_oso_symfile): Add symfile_flags parameter. Pass it to
11188 macho_add_oso_symfile.
11189 (macho_symfile_read): Pass symfile_flags to macho_oso_symfile.
11190
11191 2010-01-14 Joel Brobecker <brobecker@adacore.com>
11192
11193 Tru64: Dead threads are never deleted.
11194 * dec-thread.c (dec_thread_ptid_is_alive): New function.
11195 (dec_thread_count_gdb_threads): Fix counter increment.
11196 (dec_thread_add_gdb_thread): Fix *listp increment.
11197 (resync_thread_list): Fix bug in deletion of dead threads that
11198 caused all threads to be deleted, instead of just the dead ones.
11199
11200 2010-01-13 Phil Muldoon <pmuldoon@redhat.com>
11201
11202 PR python/10705
11203
11204 * python/python-internal.h: Add lazy_string_object_type
11205 definition.
11206 (create_lazy_string_object, gdbpy_initialize_lazy_string)
11207 (gdbpy_is_lazystring, gdbpy_extract_lazy_string): Define.
11208 * python/py-value.c (valpy_lazy_string): New function.
11209 (convert_value_from_python): Add lazy string conversion.
11210 * python/py-prettyprint.c (pretty_print_one_value): Check if
11211 return is also a lazy string.
11212 (print_string_repr): Add lazy string printing branch.
11213 (print_children): Likewise.
11214 * python/py-lazy-string.c: New file. Implement lazy strings.
11215 * python/python.c (_initialize_python): Call
11216 gdbpy_initialize_lazy_string.
11217 * varobj.c (value_get_print_value): Add lazy string printing
11218 branch. Account for encoding.
11219 * c-lang.c (c_printstr): Account for new encoding argument. If
11220 encoding is NULL, find encoding suited for type, otherwise use
11221 user encoding.
11222 * language.h (language_defn): Add encoding argument.
11223 (LA_PRINT_STRING): Likewise.
11224 * language.c (unk_lang_printstr): Update to reflect new encoding
11225 argument to language_defn.
11226 * ada-lang.h (ada_printstr): Likewise.
11227 * c-lang.h (c_printstr): Likewise.
11228 * p-lang.h (pascal_printstr);
11229 * f-lang.c (f_printstr): Likewise.
11230 * m2-lang.c (m2_printstr): Likewise.
11231 * objc-lang.c (objc_printstr): Likewise.
11232 * p-lang.c (pascal_printstr): Likewise.
11233 * scm-lang.c (scm_printstr): Likewise.
11234 * c-valprint.c (c_val_print): Update LA_PRINT_STRING call for
11235 encoding argument.
11236 * ada-valprint.c (ada_printstr): Likewise.
11237 * f-valprint.c (f_val_print): Likewise
11238 * m2-valprint.c (m2_val_print): Likewise.
11239 * p-valprint.c (pascal_val_print): Likewise.
11240 * expprint.c (print_subexp_standard): Likewise.
11241 * valprint.c (val_print_string): Likewise.
11242 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-lazy-string.
11243 (SUBDIR_PYTHON_SRCS): Likewise.
11244 (py-lazy-string.o): New rule.
11245
11246 2010-01-13 Doug Evans <dje@google.com>
11247
11248 * mi/mi-main.c (list_available_thread_groups): Avoid "may be used
11249 uninitialized" warning from gcc on local `tree'.
11250
11251 2010-01-13 Vladimir Prus <vladimir@codesourcery.com>
11252
11253 Implement core awareness.
11254
11255 * bcache.c (compare_ints): Remove
11256 (print_percentage): Use compare_positive_ints.
11257 * defs.h (compare_positive_ints): Declare.
11258 * linux-nat.h (struct lin_lwp): New field core.
11259 (linux_nat_core_of_thread_1): Declare.
11260 * linux-nat.c (add_lwp): Init the 'core' field.
11261 (linux_nat_wait_1): Record the core.
11262 (linux_nat_core_of_thread_1, linux_nat_core_of_thread): New.
11263 (linux_nat_add_target): Register the above.
11264 * linux-thread-db.c (update_thread_core): New.
11265 (thread_db_find_new_threads): Update core information for
11266 every thread.
11267 * remote.c (struct private_thread_info): New.
11268 (free_private_thread_info, demand_private_info): New.
11269 (PACKET_qXfer_threads, use_osdata_threads): New.
11270 (struct thread_item, threads_parsing_context
11271 (start_thread, end_thread, thread_attributes)
11272 (thread_children, threads_children, threads_elements): New.
11273 (remote_threads_info): Try qXfer:threads before anything
11274 else.
11275 (remote_protocol_packets): Register qXfer:threads.
11276 (remote_open_1): Init use_osdata_threads.
11277 (struct stop_reply): New field 'core'.
11278 (remote_parse_stop_reply): Parse core number.
11279 (process_stop_reply): Record core number.
11280 (remote_xfer_partial): Handle qXfer:threads.
11281 (remote_core_of_thread): New.
11282 (init_remote_ops): Register remote_core_of_thread.
11283 (_initialize_remote): Register qXfer:read.
11284 * target.c (target_core_of_thread): New
11285 * target.h (enum target_object): New value TARGET_OBJECT_THREADS.
11286 (struct target_ops): New field to_core_of_threads.
11287 (target_core_of_thread): Declare.
11288 * gdbthread.h (struct thread_info): New field private_dtor.
11289 * thread.c (print_thread_info): Report the core.
11290 * ui-out.c (MAX_UI_OUT_LEVELS): Increase.
11291 * utils.c (compare_positive_ints): New.
11292 * features/threads.dtd: New.
11293 * mi/mi-interp.c (mi_on_normal_stop): Report the core.
11294 * mi/mi-main.c (struct collect_cores_data, collect_cores)
11295 (do_nothing, free_vector_of_osdata_items)
11296 (splay_tree_int_comparator, free_splay_tree): New.
11297 (print_one_inferior_data): Implemented printing of selected
11298 inferiors. Collect and print cores.
11299 (output_cores): New.
11300 (mi_cmd_list_thread_groups): Support --recurse. Permit specifying
11301 thread groups together with --available.
11302
11303 2010-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
11304
11305 * configure: Regenerate (for _STRUCTURED_PROC).
11306
11307 2010-01-12 Joel Brobecker <brobecker@adacore.com>
11308
11309 Delete dead function.
11310 * ada-lang.c (extract_string): Delete. No longer used.
11311
11312 2010-01-12 Joel Brobecker <brobecker@adacore.com>
11313
11314 Fix -Wunused warning in dec-thread.c.
11315 * dec-thread.c (dec_thread_count_gdb_threads)
11316 (dec_thread_add_gdb_thread): Prevent -Wunused warning.
11317
11318 2010-01-12 Joel Brobecker <brobecker@adacore.com>
11319
11320 * ada-valprint.c (ada_print_floating): Remove trailing space.
11321
11322 2010-01-12 Joel Brobecker <brobecker@adacore.com>
11323
11324 Add support for DW_AT_GNAT_descriptive_type.
11325 * gdbtypes.h (enum type_specific_kind): New enum.
11326 (struct main_type) [type_specific_field]: New component.
11327 [type_specific]: Add new component "gnat_stuff".
11328 (struct gnat_aux_type): New type.
11329 (INIT_CPLUS_SPECIFIC): Also set TYPE_SPECIFIC_FIELD (type).
11330 (HAVE_CPLUS_STRUCT): Also check TYPE_SPECIFIC_FIELD (type).
11331 (gnat_aux_default, allocate_gnat_aux_type): Add declaration.
11332 (INIT_GNAT_SPECIFIC, ALLOCATE_GNAT_AUX_TYPE, HAVE_GNAT_AUX_INFO)
11333 (TYPE_SPECIFIC_FIELD): New macros.
11334 (TYPE_CPLUS_SPECIFIC): Return cplus_struct_default if the given
11335 type does not hold any cplus-specific data.
11336 (TYPE_RAW_CPLUS_SPECIFIC): New macro.
11337 (TYPE_GNAT_SPECIFIC, TYPE_DESCRIPTIVE_TYPE): New macros.
11338 (TYPE_IS_OPAQUE): Use HAVE_CPLUS_STRUCT to check if type has
11339 cplus-specific data.
11340 * gdbtypes.c (allocate_cplus_struct_type): Minor stylistic rewrite.
11341 Set new component TYPE_SPECIFIC_FIELD (type).
11342 (gnat_aux_default): New constant.
11343 (allocate_gnat_aux_type): New function.
11344 (init_type): Add initialization the type-specific stuff for
11345 TYPE_CODE_FLT and TYPE_CODE_FUNC types.
11346 (print_gnat_stuff): New function.
11347 (recursive_dump_type): Use HAVE_CPLUS_STRUCT to check for cplus-
11348 specific data. Adjust code that prints the contents of the
11349 type-specific union using the TYPE_SPECIFIC_FIELD value.
11350 * dwarf2read.c (dwarf2_attach_fields_to_type): Do not allocate
11351 the type cplus stuff for Ada types.
11352 (dwarf2_add_member_fn, dwarf2_attach_fn_fields_to_type):
11353 Error out if these routines are called with an Ada type.
11354 (read_structure_type, read_array_type, read_subrange_type):
11355 Add call to set_descriptive_type.
11356 (set_die_type): Initialize the gnat-specific data if necessary.
11357 (need_gnat_info, die_descriptive_type, set_descriptive_type):
11358 New functions.
11359 * ada-lang.c (decode_constrained_packed_array_type): Use
11360 decode_constrained_packed_array_type instead of doing a standard
11361 lookup to locate a parallel type.
11362 (find_parallel_type_by_descriptive_type): New function.
11363 (ada_find_parallel_type_with_name): New function.
11364 (ada_find_parallel_type): Reimplement using
11365 ada_find_parallel_type_with_name.
11366 * ada-valprint.c (print_field_values): Use HAVE_CPLUS_STRUCT
11367 to check if type has a cplus stuff.
11368 * linespec.c (total_number_of_methods): Likewise.
11369 * mdebugread.c (new_type): Likewise.
11370
11371 2010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
11372
11373 * NEWS: Document the 0b binary number prefix parsing.
11374
11375 2010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
11376
11377 * objfiles.c (objfile_relocate1): Change the return type to int.
11378 Describe the new return value. Return non-zero if data changed.
11379 (objfile_relocate): New variable changed. Set it. Call
11380 breakpoint_re_set depending on CHANGED.
11381
11382 2010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
11383
11384 Implement binary numbers parsing.
11385 * c-exp.y (parse_number): New case 'b' and 'B'.
11386
11387 2010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
11388 Tristan Gingold <gingold@adacore.com>
11389
11390 * solib.c (info_sharedlibrary_command): Replace
11391 objfile_has_partial_symbols and objfile_has_full_symbols calls by
11392 objfile_has_symbols.
11393
11394 2010-01-10 Joel Brobecker <brobecker@adacore.com>
11395
11396 * NEWS: Document the improvements made to the mips-irix port.
11397
11398 2010-01-09 Joel Brobecker <brobecker@adacore.com>
11399
11400 Fix the documentation of valprint.c:value_print.
11401 * valprint.c (value_print): Update the function description to
11402 mention that the syntax of the output follows the current_language,
11403 not necessarily C.
11404
11405 2010-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
11406
11407 Fix displacement of separate debug info files.
11408 * objfiles.c (objfile_relocate): Rename to ...
11409 (objfile_relocate1): ... here and make it static. Extend the comment.
11410 (objfile_relocate): New function.
11411 * solib-spu.c (spu_relocate_main_executable): Explicitly check if
11412 SYMFILE_OBJFILE is NULL. Remove variables objfile and old_chain.
11413 Remove following of SEPARATE_DEBUG_OBJFILE. new_offsets is now
11414 allocated using alloca.
11415 * symfile.c (copy_section_addr_info): Remove.
11416 (build_section_addr_info_from_objfile): Make it global. New variables
11417 addr_bit and mask, use them.
11418 * symfile.h (build_section_addr_info_from_objfile): New prototype.
11419 (copy_section_addr_info): Remove.
11420
11421 2010-01-09 Joel Brobecker <brobecker@adacore.com>
11422
11423 Signal unwinder for mips-irix N32.
11424 * mips-irix-tdep.c: #include mips-tdep.h, trad-frame.h, and
11425 tramp-frame.h.
11426 (SIGTRAMP_FRAME_SIZE, SIGCONTEXT_PC_OFF, SIGCONTEXT_REGS_OFF)
11427 (SIGCONTEXT_FPREGS_OFF, SIGCONTEXT_FPCSR_OFF, SIGCONTEXT_HI_OFF)
11428 (SIGCONTEXT_LO_OFF): New macros.
11429 (mips_irix_n32_tramp_frame_init): New function.
11430 (mips_irix_n32_tramp_frame): New static constant.
11431 (mips_irix_init_abi): Prepend the mips_irix_n32_tramp_frame unwinder.
11432
11433 2010-01-09 Joel Brobecker <brobecker@adacore.com>
11434
11435 Breakpoint in shared library does not work on mips-irix.
11436 * procfs.c: #include "observer.h".
11437 (procfs_inferior_created): New function, moving here the code
11438 which unsets the syssgi syscall-exit notifications.
11439 (procfs_create_inferior): Remove the code which unsets the syssgi
11440 syscall-exit notifications. It is too early to do this here.
11441 (_initialize_procfs): Attach the procfs_inferior_created observer.
11442
11443 2010-01-09 Joel Brobecker <brobecker@adacore.com>
11444
11445 Wrong return convention for arrays (mips-irix).
11446 * mips-tdep.c (mips_n32n64_return_value): Arrays whose size is
11447 128 bits or smaller are returned the same way as structs
11448 and unions of the the same size.
11449
11450 2010-01-09 Joel Brobecker <brobecker@adacore.com>
11451
11452 Cannot set the PC on mips-irix.
11453 * irix5-nat.c (fill_gregset): Check regno against the raw PC
11454 register number, no the cooked one.
11455
11456 2010-01-09 Joel Brobecker <brobecker@adacore.com>
11457
11458 Error while loading core file on mips-irix.
11459 * solib-irix.c (irix_solib_create_inferior_hook): Do nothing
11460 if debugging from a core file.
11461
11462 2010-01-09 Joel Brobecker <brobecker@adacore.com>
11463
11464 GDB hangs when attaching to process on mips-irix.
11465 * solib-irix.c (irix_solib_create_inferior_hook): Do nothing if
11466 attaching to a process.
11467
11468 2010-01-09 Joel Brobecker <brobecker@adacore.com>
11469
11470 Use the correct breakpoint instruction on mips-irix.
11471 * mips-tdep.c (mips_breakpoint_from_pc): Add new static variable
11472 containing the correct breakpoint instruction to use on mips-irix.
11473 Use it when the osabi is GDB_OSABI_IRIX.
11474
11475 2010-01-09 Joel Brobecker <brobecker@adacore.com>
11476
11477 -Wunused warning in procfs.c (mips-irix only).
11478 * procfs.c (gdb_praddset, gdb_prdelset): New macros. Use them
11479 throughout instead of using praddset and prdelset respectively.
11480
11481 2010-01-09 Joel Brobecker <brobecker@adacore.com>
11482
11483 GDB crash while stepping into function.
11484 * infrun.c (handle_inferior_event): Refetch the current frame
11485 after handling what.main_action, in case that pointer became
11486 dangling.
11487
11488 2010-01-09 Joel Brobecker <brobecker@adacore.com>
11489
11490 Fix build failure of solaris-hosted cross debuggers.
11491 * ada-valprint.c, parse.c: Include defs.h before including ctype.h.
11492
11493 2010-01-09 Daniel Gutson <dgutson@codesourcery.com>
11494
11495 Fix build failure on sparc-solaris.
11496 * procfs.c: (procfs_do_thread_registers) Use elfcore_write_lwpstatus.
11497
11498 2010-01-08 Jan Kratochvil <jan.kratochvil@redhat.com>
11499
11500 Move some symfile code into subroutines.
11501 * symfile.h (relative_addr_info_to_section_offsets)
11502 (addr_info_make_relative): New prototypes.
11503 * symfile.c (default_symfile_offsets): Move a part to ...
11504 (relative_addr_info_to_section_offsets): ... this new function.
11505 (default_symfile_offsets): Call it.
11506 (syms_from_objfile <!mainline && addrs && addrs->other[0].name>): Move
11507 this part to ...
11508 (addr_info_make_relative): ... this new function.
11509
11510 2010-01-08 Jan Kratochvil <jan.kratochvil@redhat.com>
11511
11512 Add from_tty to solib_create_inferior_hook.
11513 * infcmd.c (post_create_inferior): Move solib_add after
11514 solib_create_inferior_hook. Pass from_tty to
11515 solib_create_inferior_hook. Call solib_add and SOLIB_ADD with
11516 0 from_tty and comment why.
11517 * infrun.c (follow_exec): Pass from_tty solib_create_inferior_hook as 0.
11518 * linux-nat.c (linux_child_follow_fork): Likewise.
11519 * nto-procfs.c (procfs_post_attach, procfs_create_inferior): Likewise.
11520 * solib-darwin.c (darwin_solib_create_inferior_hook): New parameter
11521 from_tty.
11522 * solib-frv.c (frv_solib_create_inferior_hook): Likewise.
11523 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
11524 * solib-null.c (null_solib_create_inferior_hook): Likewise.
11525 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
11526 * solib-pa64.c (pa64_solib_create_inferior_hook): Likewise.
11527 * solib-som.c (som_solib_create_inferior_hook): Likewise.
11528 * solib-spu.c (spu_solib_create_inferior_hook): New parameter from_tty.
11529 Pass it to svr4_so_ops.solib_create_inferior_hook.
11530 * solib-sunos.c (sunos_solib_create_inferior_hook): New parameter
11531 from_tty.
11532 * solib-svr4.c (enable_break): New parameter from_tty. Pass it to
11533 solib_add.
11534 (svr4_solib_create_inferior_hook): New parameter from_tty. Pass it to
11535 enable_break.
11536 * solib-target.c (solib_target_solib_create_inferior_hook): New
11537 parameter from_tty.
11538 * solib.c (solib_create_inferior_hook): New parameter from_tty. Pass
11539 it to ops->solib_create_inferior_hook.
11540 (reload_shared_libraries): Pass from_tty to solib_create_inferior_hook.
11541 Move solib_add after solib_create_inferior_hook, call it now with
11542 from_tty as 0. New comment there.
11543 * solib.h (solib_create_inferior_hook): New parameter from_tty.
11544 * solist.h (struct target_so_ops <solib_create_inferior_hook>):
11545 Likewise.
11546
11547 2010-01-08 Vladimir Prus <vladimir@codesourcery.com>
11548
11549 Fix multiexec race.
11550 * infrun.c (handle_inferior_event): Use get_thread_regcache
11551 with events ptid, not get_current_regcache.
11552
11553 2009-01-08 Joel Brobecker <brobecker@adacore.com>
11554
11555 GDB crash with empty executable name (MinGW).
11556 * source.c (openp): Add assert that parameter string is not NULL.
11557 if parameter string is an empty string, then return with a failure
11558 immediately.
11559
11560 2009-01-08 Joel Brobecker <brobecker@adacore.com>
11561
11562 Get rid of support for VAX Floats.
11563 * ada-lang.h (ada_is_vax_floating_type, ada_vax_float_type_suffix)
11564 (ada_vax_float_print_function): Delete.
11565 * ada-lang.c (ada_is_vax_floating_type, ada_vax_float_type_suffix)
11566 (ada_vax_float_print_function): Delete.
11567 * ada-typeprint.c (print_vax_floating_point_type): Delete.
11568 (ada_print_type): Remove support for VAX floats.
11569 * ada-valprint.c (ada_val_print_1): Remove support for VAX floats.
11570
11571 2010-01-08 Jan Kratochvil <jan.kratochvil@redhat.com>
11572
11573 * stabsread.c (read_args): Handle zero arguments.
11574
11575 2009-01-08 Joel Brobecker <brobecker@adacore.com>
11576
11577 Cannot find in-tree libiconv.a after reconfigure.
11578 * acinclude.m4 (AM_ICONV): If we find an in-tree libiconv.a
11579 that we can use, then cache the path to this archive.
11580 * configure: Regenerate.
11581
11582 2010-01-07 Stan Shebs <stan@codesourcery.com>
11583
11584 Make tracepoint operations go through target vector.
11585 * target.h (enum trace_find_type): New enum.
11586 (struct target_ops): New fields to_trace_init,
11587 to_download_tracepoint, to_download_trace_state_variable,
11588 to_trace_set_readonly_regions, to_trace_start, to_get_trace_status,
11589 to_trace_stop, to_trace_find, to_get_trace_state_variable_value,
11590 to_set_disconnected_tracing.
11591 (target_trace_init): New macro.
11592 (target_download_tracepoint): New macro.
11593 (target_download_trace_state_variable): New macro.
11594 (target_trace_start): New macro.
11595 (target_trace_set_readonly_regions): New macro.
11596 (target_get_trace_status): New macro.
11597 (target_trace_stop): New macro.
11598 (target_trace_find): New macro.
11599 (target_get_trace_state_variable_value): New macro.
11600 (target_set_disconnected_tracing): New macro.
11601 * target.c (update_current_target): Inherit and set defaults for
11602 tracepoint operations.
11603 * tracepoint.c (default_collect): Make globally visible.
11604 (target_is_remote): Remove, along with all calls.
11605 (tvariables_info): Call target_get_trace_state_variable_value.
11606 (remote_set_transparent_ranges): Remove.
11607 (trace_start_command): Call target_trace_init,
11608 target_download_tracepoint, etc.
11609 (download_tracepoint): Remove.
11610 (trace_stop_command): Simplify.
11611 (stop_tracing): Call target_trace_stop.
11612 (get_trace_status): Call target_get_trace_status.
11613 (trace_status_command): Add case for targets that cannot trace.
11614 (finish_tfind_command): Change to take numerical arguments, call
11615 target_trace_find.
11616 (trace_find_command): Update call to finish_tfind_command.
11617 (trace_find_pc_command): Ditto.
11618 (trace_find_tracepoint_command): Ditto.
11619 (trace_find_line_command): Ditto.
11620 (trace_find_range_command): Ditto.
11621 (trace_find_outside_command): Ditto.
11622 (set_disconnected_tracing_value): Call
11623 target_set_disconnected_tracing.
11624 * remote.c: Add protocol encoding bits from tracepoint.c.
11625 (trace_error): Move from tracepoint.c.
11626 (remote_get_noisy_reply): Ditto.
11627 (free_actions_list_cleanup_wrapper): Ditto.
11628 (free_actions_list): Ditto.
11629 (remote_trace_init): New function.
11630 (remote_download_tracepoint): New function.
11631 (remote_download_trace_state_variable): New function.
11632 (remote_trace_set_readonly_regions): New function.
11633 (remote_trace_start): New function.
11634 (remote_get_trace_status): New function.
11635 (remote_trace_stop): New function.
11636 (remote_trace_find): New function.
11637 (remote_download_trace_state_variable): New function.
11638 (remote_set_disconnected_tracing): New function.
11639 (init_remote_ops): Add tracepoint operations.
11640
11641 * tracepoint.c (trace_dump_command): Don't decr_pc_after_break.
11642
11643 2010-01-07 Tristan Gingold <gingold@adacore.com>
11644
11645 * symfile.c (build_section_addr_info_from_objfile): New function.
11646 (symbol_file_add_separate): Don't use offsets from objfile but
11647 built an addr info.
11648
11649 2010-01-06 Stan Shebs <stan@codesourcery.com>
11650
11651 Support disconnected tracing.
11652 * infcmd.c (detach_command): Ask whether to stop tracing.
11653 * cli/cli-cmds.c (quit_command): Ditto.
11654 * breakpoint.h (struct breakpoint): New field number_on_target.
11655 * breakpoint.c (create_tracepoint_from_upload): New function.
11656 (get_tracepoint_by_number_on_target): New function.
11657 * remote.c (struct remote): New field disconnected_tracing.
11658 (remote_disconnected_tracing_feature): New function.
11659 (remote_protocol_features): Add DisconnectedTracing.
11660 (struct uploaded_tp): New struct.
11661 (uploaded_tps): New global.
11662 (get_uploaded_tp): New function.
11663 (find_matching_tracepoint): New function.
11664 (remote_get_tracing_state): New function.
11665 (remote_start_remote): Call it.
11666 * tracepoint.c (disconnected_tracing): New global.
11667 (trace_start_command): Initialize number_on_target.
11668 (stop_tracing): New function, split out from...
11669 (trace_stop_command): Call stop_tracing.
11670 (get_trace_status): New function, split out from...
11671 (trace_status_command): Call get_trace_status, add info on
11672 disconnection behavior.
11673 (disconnect_or_stop_tracing): New function.
11674 (finish_tfind_command): Translate from number on target.
11675 (trace_find_tracepoint_command): Translate to number on target.
11676 (send_disconnected_tracing_value): New function.
11677 (set_disconnected_tracing): New function.
11678 (_initialize_tracepoint): Add disconnected-tracing variable.
11679 * NEWS: Mention disconnected tracing.
11680
11681 2010-01-06 Tristan Gingold <gingold@adacore.com>
11682
11683 * symtab.c (lookup_global_symbol_from_objfile): Rename objfile
11684 parameter to main_objfile. Iterate on all separate debug objfiles.
11685 * symfile.h (symbol_file_add_separate)
11686 (find_separate_debug_file_by_debuglink): Remove parameter names.
11687 * symfile.c (symbol_file_add_separate): Use add_separate_objfile.
11688 (reread_symbols): Use free_objfile_separate_debug.
11689 * objfiles.h (struct objfile): Add separate_debug_objfile_link.
11690 Adjust comment.
11691 (objfile_separate_debug_iterate, add_separate_debug_objfile)
11692 (free_objfile_separate_debug): New prototypes.
11693 * objfiles.c (objfile_separate_debug_iterate): New function.
11694 (add_separate_debug_objfile, free_objfile_separate_debug): New
11695 functions.
11696 (free_objfile): Use free_objfile_separate_debug. Adjust for
11697 multiple separate debug objfile.
11698 (objfile_has_symbols): Adjust comment. Iterate on all separate
11699 debug objfiles.
11700 * minsyms.c (lookup_minimal_symbol): Adjust for multiple separate
11701 debug objfile.
11702 (lookup_minimal_symbol_text): Ditto.
11703 (lookup_minimal_symbol_by_pc_name): Ditto.
11704 (lookup_minimal_symbol_solib_trampoline): Ditto.
11705 (lookup_minimal_symbol_by_pc_section_1): Iterate on all separate
11706 debug objfiles.
11707
11708 2010-01-05 Stan Shebs <stan@codesourcery.com>
11709
11710 Add fast tracepoints.
11711 * arch-utils.h (default_fast_tracepoint_valid_at): Declare.
11712 * arch-utils.c (default_fast_tracepoint_valid_at): New function.
11713 * breakpoint.h (enum bptype): Add bp_fast_tracepoint.
11714 * breakpoint.c (tracepoint_type): New function.
11715 (ALL_TRACEPOINTS): Use it.
11716 (should_be_inserted): Ditto.
11717 (bpstat_check_location): Ditto.
11718 (print_one_breakpoint_location): Ditto.
11719 (user_settable_breakpoint): Ditto.
11720 (set_breakpoint_location_function): Ditto.
11721 (disable_breakpoints_in_shlibs): Ditto.
11722 (delete_trace_command): Ditto.
11723 (print_it_typical): Add bp_fast_tracepoint case.
11724 (bpstat_what): Ditto.
11725 (print_one_breakpoint_location): Ditto.
11726 (allocate_bp_location): Ditto.
11727 (mention): Ditto.
11728 (breakpoint_re_set_one): Ditto.
11729 (disable_command): Ditto.
11730 (enable_command): Ditto.
11731 (check_fast_tracepoint_sals): New function.
11732 (break_command_really): Call it.
11733 (ftrace_command): New function.
11734 (_initialize_breakpoint): Add ftrace command.
11735 * gdbarch.sh (fast_tracepoint_valid_at): New.
11736 * gdbarch.h, gdbarch.c: Regenerate.
11737 * i386-tdep.c (i386_fast_tracepoint_valid_at): New function.
11738 (i386_gdbarch_init): Use it.
11739 * remote.c (struct remote_state): New field fast_tracepoints.
11740 (PACKET_FastTracepoints): New packet config type.
11741 (remote_fast_tracepoint_feature): New function.
11742 (remote_protocol_features): Add FastTracepoints.
11743 (remote_supports_fast_tracepoints): New function.
11744 (_initialize_remote): Add FastTracepoints.
11745 * tracepoint.c (download_tracepoint): Add fast tracepoint option.
11746 * NEWS: Mention fast tracepoints.
11747
11748 2010-01-06 Joel Brobecker <brobecker@adacore.com>
11749
11750 * gdb-gdb.py: New file.
11751
11752 2010-01-05 Michael Snyder <msnyder@vmware.com>
11753
11754 * infrun.c (handle_inferior_event): Fix typo in comment.
11755
11756 2010-01-05 Jan Kratochvil <jan.kratochvil@redhat.com>
11757
11758 * symfile.c (syms_from_objfile): Remove the !MAINLINE conditional.
11759
11760 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
11761
11762 * features/Makefile (WHICH): Add s390-linux32, s390-linux64,
11763 and s390x-linux64.
11764 (s390-linux32-expedite): Define.
11765 (s390-linux64-expedite): Define.
11766 (s390x-linux64-expedite): Define.
11767 * features/s390-acr.xml: New file.
11768 * features/s390-fpr.xml: New file.
11769 * features/s390-core32.xml: New file.
11770 * features/s390-core64.xml: New file.
11771 * features/s390x-core64.xml: New file.
11772 * features/s390-linux32.xml: New file.
11773 * features/s390-linux64.xml: New file.
11774 * features/s390x-linux64.xml: New file.
11775 * features/s390-linux32.c: New generated file.
11776 * features/s390-linux64.c: New generated file.
11777 * features/s390x-linux64.c: New generated file.
11778
11779 * regformats/s390-linux32.dat: New generated file.
11780 * regformats/s390-linux64.dat: New generated file.
11781 * regformats/s390x-linux64.dat: New generated file.
11782 * regformats/reg-s390.dat: Remove.
11783 * regformats/reg-s390x.dat: Remove.
11784
11785 * s390-nat.c: Include "auxv.h" and <elf.h>.
11786 (HWCAP_S390_HIGH_GPRS): Define if undefined.
11787 (s390_target_wordsize): New function.
11788 (s390_auxv_parse): Likewise.
11789 (s390_get_hwcap): Likewise.
11790 (s390_read_description): Likewise.
11791 (_initialize_s390_nat): Install s390_auxv_parse and
11792 s390_read_description.
11793
11794 * s390-tdep.c: Include "features/s390-linux32.c",
11795 "features/s390-linux64.c", and "features/s390x-linux64.c".
11796 (struct gdbarch_tdep): Add gpr_full_regnum, pc_regnum, and cc_regnum.
11797 (s390_register_call_saved): New function.
11798 (s390_register_name): Remove.
11799 (s390_register_type): Remove.
11800 (s390_dwarf_regmap): Add lower half GPR pseudo DWARF CFI regnums.
11801 (s390_dwarf_reg_to_regnum): Remap GPR regnums to full GPRs.
11802 (s390_adjust_frame_regnum): Remap GPR regnums to lower halves for CFI.
11803 (s390_pseudo_register_name): New function.
11804 (s390_pseudo_register_type): New function.
11805 (s390_pseudo_register_read): Handle both 32-bit and 64-bit cases.
11806 Handle full GPR pesudos and varying pseudo register numbers.
11807 (s390_pseudo_register_write): Likewise
11808 (s390x_pseudo_register_read): Remove.
11809 (s390x_pseudo_register_write): Likewise.
11810 (s390_register_group): Remove.
11811 (s390_pseudo_register_group): New function.
11812 (s390_regmap_gregset): Add GPR upper halves.
11813 (s390x_regmap_gregset): Likewise.
11814 (s390_regmap_fpregset): Likewise.
11815 (s390_regmap_upper): New global variable.
11816 (s390_upper_regset): New global variable.
11817 (s390_upper_regset_sections): New global variable.
11818 (s390_regset_from_core_section): Handle GPR upper halves.
11819 (s390_core_read_description): New function.
11820 (s390_prologue_frame_unwind_cache): Set up ABI call-saved/clobbered
11821 register information. Handle varying pseudo register numbers.
11822 (s390_backchain_frame_unwind_cache): Likewise.
11823 (s390_frame_prev_register): Unwind full GPRs to show lower halves.
11824 (s390_stub_frame_unwind_cache): Handle varying pseudo register numbers.
11825 (s390_sigtramp_frame_unwind_cache): Unwind PSWM and PSWA as well as
11826 PC and CC pseudos. Unwind upper halves and full GPRs as appropriate.
11827 Handle varying pseudo register numbers.
11828 (s390_unwind_pc): Handle varying pseudo register numbers.
11829 (s390_dwarf2_prev_register): New function.
11830 (s390_dwarf2_frame_init_reg): Set up ABI call-saved/clobbered
11831 register information. Handle varying pseudo register numbers.
11832 Install s390_dwarf2_prev_register to unwind full GPRs.
11833 (s390_gdbarch_init): Handle target descriptions. Assign varying
11834 pseudo register numbers. Install s390_adjust_frame_regnum.
11835 (_initialize_s390_tdep): Initialize target descriptions.
11836
11837 * s390-tdep.h (S390_R0_UPPER_REGNUM .. S390_R15_UPPER_REGNUM): Define.
11838 (S390_NUM_REGS): Redefine to include upper half registers.
11839 (S390_PC_REGNUM, S390_CC_REGNUM): Remove.
11840 (S390_NUM_PSEUDO_REGS, S390_NUM_TOTAL_REGS): Likewise.
11841 (tdesc_s390_linux32): Add declaration.
11842 (tdesc_s390_linux64): Likewise.
11843 (tdesc_s390x_linux64): Likewise.
11844
11845 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
11846
11847 * regset.h (struct core_regset_section): Add HUMAN_NAME.
11848 * i386-linux-tdep.c (i386_linux_regset_sections): Fill in HUMAN_NAME.
11849 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections): Likewise.
11850 (ppc_linux_vmx_regset_sections): Likewise.
11851 (ppc_linux_fp_regset_sections): Likewise.
11852
11853 * corelow.c (get_core_register_section): Constify arguments.
11854 (get_core_registers): Use gdbarch_core_regset_sections instead
11855 of hard-coded platform-specific register section names.
11856
11857 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
11858
11859 * dwarf2loc.c (read_pieced_value): If a piece occupies part of
11860 a register, assume the least-significant part is used.
11861 (write_pieced_value): Likewise.
11862
11863 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
11864
11865 * printcmd.c: Include "arch-utils.h".
11866 (do_one_display): Re-parse expression if current architecture changed.
11867
11868 2010-01-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11869 Joel Brobecker <brobecker@adacore.com>
11870
11871 * gdbtypes.c (check_typedef): New comment on type length.
11872 * value.c (allocate_value_lazy): Remove the unused atype variable. New
11873 comment on type length.
11874 (value_primitive_field): Keep the original TYPE value, new comment.
11875
11876 2010-01-01 Jan Kratochvil <jan.kratochvil@redhat.com>
11877
11878 * cli/cli-script.c (process_next_line): Rename p1 as p_end and p2 as
11879 p_start. Change != comparisons to > and < comparisons.
11880
11881 2010-01-01 Jan Kratochvil <jan.kratochvil@redhat.com>
11882
11883 * cli/cli-script.c (process_next_line): Check P2 overrun.
11884
11885 2009-01-01 Joel Brobecker <brobecker@adacore.com>
11886
11887 Update the copyright hearder to add year 2010 for most GDB files.
11888
11889 2009-01-01 Joel Brobecker <brobecker@adacore.com>
11890
11891 Fix build failure in inf-ptrace.c.
11892 * inf-ptrace.c (inf_ptrace_follow_fork): Fix typo.
11893
11894 2010-01-01 Joel Brobecker <brobecker@adacore.com>
11895
11896 * top.c (print_gdb_version): Update copyright year.
11897
11898 2010-01-01, 10 Joel Brobecker <brobecker@adacore.com>
11899
11900 Fix break *FUN'address thread NUM.
11901 * ada-lex.l (task): Expand rule to also match the thread keyword.
11902
11903 2010-01-01 Joel Brobecker <brobecker@adacore.com>
11904
11905 Fix break *FUN'address task NUM.
11906 * ada-lex.l (task): New rule.
11907 * ada-lang.c (valid_task_id): Make sure the Ada task list has
11908 been built before using it.
11909
11910 For older changes see ChangeLog-2009.
11911 \f
11912 Local Variables:
11913 mode: change-log
11914 left-margin: 8
11915 fill-column: 74
11916 version-control: never
11917 coding: utf-8
11918 End: